Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/error/objectParameter.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 716 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/error/objectParameter.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/error/objectParameter.js
-
curl -L -o objectParameter.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/error/objectParameter.js
716 Bytes
| /*! | |
| * Module dependencies. | |
| */ | |
| ; | |
| const MongooseError = require('./mongooseError'); | |
| class ObjectParameterError extends MongooseError { | |
| /** | |
| * Constructor for errors that happen when a parameter that's expected to be | |
| * an object isn't an object | |
| * | |
| * @param {Any} value | |
| * @param {String} paramName | |
| * @param {String} fnName | |
| * @api private | |
| */ | |
| constructor(value, paramName, fnName) { | |
| super('Parameter "' + paramName + '" to ' + fnName + | |
| '() must be an object, got "' + value.toString() + '" (type ' + typeof value + ')'); | |
| } | |
| } | |
| Object.defineProperty(ObjectParameterError.prototype, 'name', { | |
| value: 'ObjectParameterError' | |
| }); | |
| module.exports = ObjectParameterError; | |