This commit is contained in:
爱喝水的木子
2026-03-02 15:35:39 +08:00
commit 00b48da363
1590 changed files with 285117 additions and 0 deletions

32
node_modules/mongoose/lib/error/invalidSchemaOption.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
/*!
* Module dependencies.
*/
'use strict';
const MongooseError = require('./mongooseError');
/**
* InvalidSchemaOption Error constructor.
* @param {String} name
* @api private
*/
class InvalidSchemaOptionError extends MongooseError {
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;