Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/error/invalidSchemaOption.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 600 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/error/invalidSchemaOption.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/error/invalidSchemaOption.js
-
curl -L -o invalidSchemaOption.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/error/invalidSchemaOption.js
600 Bytes
| /*! | |
| * Module dependencies. | |
| */ | |
| ; | |
| const MongooseError = require('./mongooseError'); | |
| class InvalidSchemaOptionError extends MongooseError { | |
| /** | |
| * InvalidSchemaOption Error constructor. | |
| * @param {String} name | |
| * @api private | |
| */ | |
| constructor(name, option) { | |
| const msg = `Cannot create use schema for property "${name}" because the schema has the ${option} option enabled.`; | |
| super(msg); | |
| } | |
| } | |
| Object.defineProperty(InvalidSchemaOptionError.prototype, 'name', { | |
| value: 'InvalidSchemaOptionError' | |
| }); | |
| /*! | |
| * exports | |
| */ | |
| module.exports = InvalidSchemaOptionError; | |