Cleanup
This commit is contained in:
28
node_modules/mongoose/lib/options/SchemaStringOptions.js
generated
vendored
28
node_modules/mongoose/lib/options/SchemaStringOptions.js
generated
vendored
@@ -87,30 +87,52 @@ Object.defineProperty(SchemaStringOptions.prototype, 'uppercase', opts);
|
||||
* If set, Mongoose will add a custom validator that ensures the given
|
||||
* string's `length` is at least the given number.
|
||||
*
|
||||
* Mongoose supports two different spellings for this option: `minLength` and `minlength`.
|
||||
* `minLength` is the recommended way to specify this option, but Mongoose also supports
|
||||
* `minlength` (lowercase "l").
|
||||
*
|
||||
* @api public
|
||||
* @property minlength
|
||||
* @property minLength
|
||||
* @memberOf SchemaStringOptions
|
||||
* @type Number
|
||||
* @instance
|
||||
*/
|
||||
|
||||
Object.defineProperty(SchemaStringOptions.prototype, 'minLength', opts);
|
||||
Object.defineProperty(SchemaStringOptions.prototype, 'minlength', opts);
|
||||
|
||||
/**
|
||||
* If set, Mongoose will add a custom validator that ensures the given
|
||||
* string's `length` is at most the given number.
|
||||
*
|
||||
* Mongoose supports two different spellings for this option: `maxLength` and `maxlength`.
|
||||
* `maxLength` is the recommended way to specify this option, but Mongoose also supports
|
||||
* `maxlength` (lowercase "l").
|
||||
*
|
||||
* @api public
|
||||
* @property maxlength
|
||||
* @property maxLength
|
||||
* @memberOf SchemaStringOptions
|
||||
* @type Number
|
||||
* @instance
|
||||
*/
|
||||
|
||||
Object.defineProperty(SchemaStringOptions.prototype, 'maxLength', opts);
|
||||
Object.defineProperty(SchemaStringOptions.prototype, 'maxlength', opts);
|
||||
|
||||
/**
|
||||
* Sets default [populate options](/docs/populate.html#query-conditions).
|
||||
*
|
||||
* @api public
|
||||
* @property populate
|
||||
* @memberOf SchemaStringOptions
|
||||
* @type Object
|
||||
* @instance
|
||||
*/
|
||||
|
||||
Object.defineProperty(SchemaStringOptions.prototype, 'populate', opts);
|
||||
|
||||
/*!
|
||||
* ignore
|
||||
*/
|
||||
|
||||
module.exports = SchemaStringOptions;
|
||||
module.exports = SchemaStringOptions;
|
||||
|
||||
Reference in New Issue
Block a user