Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/helpers/populate/validateRef.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 384 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/populate/validateRef.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/helpers/populate/validateRef.js
-
curl -L -o validateRef.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/populate/validateRef.js
384 Bytes
| ; | |
| const MongooseError = require('../../error/mongooseError'); | |
| const util = require('util'); | |
| module.exports = validateRef; | |
| function validateRef(ref, path) { | |
| if (typeof ref === 'string') { | |
| return; | |
| } | |
| if (typeof ref === 'function') { | |
| return; | |
| } | |
| throw new MongooseError('Invalid ref at path "' + path + '". Got ' + | |
| util.inspect(ref, { depth: 0 })); | |
| } | |