Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/error/strict.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/error/strict.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/error/strict.js
-
curl -L -o strict.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/error/strict.js
683 Bytes
| /*! | |
| * Module dependencies. | |
| */ | |
| ; | |
| const MongooseError = require('./mongooseError'); | |
| class StrictModeError extends MongooseError { | |
| /** | |
| * Strict mode error constructor | |
| * | |
| * @param {String} path | |
| * @param {String} [msg] | |
| * @param {Boolean} [immutable] | |
| * @inherits MongooseError | |
| * @api private | |
| */ | |
| constructor(path, msg, immutable) { | |
| msg = msg || 'Field `' + path + '` is not in schema and strict ' + | |
| 'mode is set to throw.'; | |
| super(msg); | |
| this.isImmutableError = !!immutable; | |
| this.path = path; | |
| } | |
| } | |
| Object.defineProperty(StrictModeError.prototype, 'name', { | |
| value: 'StrictModeError' | |
| }); | |
| module.exports = StrictModeError; | |