mongoose 6.4.1 → 6.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/.eslintrc.json +4 -2
  2. package/lib/aggregate.js +3 -2
  3. package/lib/cast/date.js +1 -1
  4. package/lib/cast/decimal128.js +1 -1
  5. package/lib/cast/objectid.js +1 -1
  6. package/lib/cast.js +1 -1
  7. package/lib/connection.js +9 -9
  8. package/lib/cursor/AggregationCursor.js +3 -2
  9. package/lib/cursor/QueryCursor.js +5 -4
  10. package/lib/document.js +48 -16
  11. package/lib/drivers/node-mongodb-native/index.js +1 -1
  12. package/lib/error/index.js +12 -12
  13. package/lib/error/messages.js +2 -2
  14. package/lib/error/parallelValidate.js +1 -1
  15. package/lib/helpers/aggregate/prepareDiscriminatorPipeline.js +1 -1
  16. package/lib/helpers/aggregate/stringifyFunctionOperators.js +1 -1
  17. package/lib/helpers/arrayDepth.js +1 -1
  18. package/lib/helpers/cursor/eachAsync.js +1 -1
  19. package/lib/helpers/discriminator/areDiscriminatorValuesEqual.js +1 -1
  20. package/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.js +1 -1
  21. package/lib/helpers/discriminator/getConstructor.js +1 -1
  22. package/lib/helpers/discriminator/getDiscriminatorByValue.js +1 -1
  23. package/lib/helpers/discriminator/getSchemaDiscriminatorByValue.js +1 -1
  24. package/lib/helpers/document/handleSpreadDoc.js +1 -1
  25. package/lib/helpers/each.js +1 -1
  26. package/lib/helpers/get.js +1 -1
  27. package/lib/helpers/getConstructorName.js +1 -1
  28. package/lib/helpers/getDefaultBulkwriteResult.js +1 -1
  29. package/lib/helpers/indexes/applySchemaCollation.js +1 -1
  30. package/lib/helpers/indexes/decorateDiscriminatorIndexOptions.js +1 -1
  31. package/lib/helpers/indexes/isDefaultIdIndex.js +1 -1
  32. package/lib/helpers/indexes/isTextIndex.js +1 -1
  33. package/lib/helpers/isMongooseObject.js +1 -1
  34. package/lib/helpers/isObject.js +1 -1
  35. package/lib/helpers/isPromise.js +1 -1
  36. package/lib/helpers/model/applyHooks.js +1 -1
  37. package/lib/helpers/model/applyStaticHooks.js +1 -1
  38. package/lib/helpers/once.js +1 -1
  39. package/lib/helpers/path/flattenObjectWithDottedPaths.js +1 -1
  40. package/lib/helpers/path/parentPaths.js +1 -1
  41. package/lib/helpers/path/setDottedPath.js +1 -1
  42. package/lib/helpers/pluralize.js +1 -1
  43. package/lib/helpers/populate/SkipPopulateValue.js +1 -1
  44. package/lib/helpers/populate/assignRawDocsToIdStructure.js +1 -1
  45. package/lib/helpers/populate/assignVals.js +1 -1
  46. package/lib/helpers/populate/createPopulateQueryFilter.js +1 -1
  47. package/lib/helpers/populate/getModelsMapForPopulate.js +1 -1
  48. package/lib/helpers/populate/leanPopulateMap.js +1 -1
  49. package/lib/helpers/populate/lookupLocalFields.js +1 -1
  50. package/lib/helpers/populate/markArraySubdocsPopulated.js +1 -1
  51. package/lib/helpers/populate/modelNamesFromRefPath.js +1 -1
  52. package/lib/helpers/populate/removeDeselectedForeignField.js +1 -1
  53. package/lib/helpers/populate/validateRef.js +1 -1
  54. package/lib/helpers/printJestWarning.js +1 -1
  55. package/lib/helpers/processConnectionOptions.js +1 -1
  56. package/lib/helpers/projection/applyProjection.js +1 -1
  57. package/lib/helpers/projection/hasIncludedChildren.js +1 -1
  58. package/lib/helpers/projection/parseProjection.js +1 -1
  59. package/lib/helpers/query/applyGlobalOption.js +1 -1
  60. package/lib/helpers/query/applyQueryMiddleware.js +1 -1
  61. package/lib/helpers/query/cast$expr.js +1 -1
  62. package/lib/helpers/query/castFilterPath.js +1 -1
  63. package/lib/helpers/query/castUpdate.js +4 -4
  64. package/lib/helpers/query/sanitizeFilter.js +1 -1
  65. package/lib/helpers/query/sanitizeProjection.js +1 -1
  66. package/lib/helpers/query/trusted.js +1 -1
  67. package/lib/helpers/query/validOps.js +1 -1
  68. package/lib/helpers/query/wrapThunk.js +1 -1
  69. package/lib/helpers/schema/addAutoId.js +1 -1
  70. package/lib/helpers/schema/applyPlugins.js +1 -1
  71. package/lib/helpers/schema/cleanPositionalOperators.js +1 -1
  72. package/lib/helpers/schema/getKeysInSchemaOrder.js +1 -1
  73. package/lib/helpers/schema/getPath.js +1 -1
  74. package/lib/helpers/schema/handleIdOption.js +1 -1
  75. package/lib/helpers/schema/handleTimestampOption.js +1 -1
  76. package/lib/helpers/specialProperties.js +1 -1
  77. package/lib/helpers/symbols.js +1 -1
  78. package/lib/helpers/timers.js +1 -1
  79. package/lib/helpers/timestamps/setupTimestamps.js +1 -1
  80. package/lib/helpers/topology/allServersUnknown.js +1 -1
  81. package/lib/helpers/topology/isAtlas.js +1 -1
  82. package/lib/helpers/topology/isSSLError.js +1 -1
  83. package/lib/helpers/update/applyTimestampsToChildren.js +1 -1
  84. package/lib/helpers/update/castArrayFilters.js +1 -1
  85. package/lib/helpers/update/moveImmutableProperties.js +1 -1
  86. package/lib/helpers/update/removeUnusedArrayFilters.js +1 -1
  87. package/lib/helpers/update/updatedPathsByArrayFilter.js +1 -1
  88. package/lib/index.js +7 -4
  89. package/lib/model.js +22 -21
  90. package/lib/options/PopulateOptions.js +1 -1
  91. package/lib/options/SchemaArrayOptions.js +3 -3
  92. package/lib/options/SchemaBufferOptions.js +2 -2
  93. package/lib/options/SchemaDateOptions.js +3 -3
  94. package/lib/options/SchemaDocumentArrayOptions.js +3 -3
  95. package/lib/options/SchemaMapOptions.js +2 -2
  96. package/lib/options/SchemaNumberOptions.js +5 -5
  97. package/lib/options/SchemaObjectIdOptions.js +3 -3
  98. package/lib/options/SchemaStringOptions.js +8 -8
  99. package/lib/options/SchemaSubdocumentOptions.js +2 -2
  100. package/lib/options/SchemaTypeOptions.js +15 -15
  101. package/lib/options/VirtualOptions.js +12 -12
  102. package/lib/options/propertyOptions.js +1 -1
  103. package/lib/options/removeOptions.js +1 -1
  104. package/lib/options/saveOptions.js +1 -1
  105. package/lib/plugins/trackTransaction.js +1 -1
  106. package/lib/query.js +74 -71
  107. package/lib/schema/SubdocumentPath.js +10 -6
  108. package/lib/schema/array.js +3 -3
  109. package/lib/schema/boolean.js +5 -5
  110. package/lib/schema/buffer.js +2 -2
  111. package/lib/schema/date.js +2 -2
  112. package/lib/schema/decimal128.js +2 -2
  113. package/lib/schema/documentarray.js +12 -8
  114. package/lib/schema/mixed.js +2 -2
  115. package/lib/schema/number.js +2 -2
  116. package/lib/schema/objectid.js +2 -2
  117. package/lib/schema/string.js +2 -2
  118. package/lib/schema/symbols.js +1 -1
  119. package/lib/schema.js +72 -37
  120. package/lib/schematype.js +9 -10
  121. package/lib/types/DocumentArray/methods/index.js +2 -2
  122. package/lib/types/buffer.js +30 -28
  123. package/lib/types/decimal128.js +4 -4
  124. package/lib/types/map.js +70 -0
  125. package/lib/types/objectid.js +1 -1
  126. package/lib/types/subdocument.js +1 -1
  127. package/lib/virtualtype.js +5 -5
  128. package/package.json +13 -13
  129. package/types/collection.d.ts +1 -1
  130. package/types/document.d.ts +4 -4
  131. package/types/expressions.d.ts +27 -8
  132. package/types/index.d.ts +2 -1
  133. package/types/indexes.d.ts +2 -2
  134. package/types/inferschematype.d.ts +51 -33
  135. package/types/middlewares.d.ts +1 -1
  136. package/types/models.d.ts +8 -7
  137. package/types/mongooseoptions.d.ts +1 -1
  138. package/types/pipelinestage.d.ts +1 -1
  139. package/types/query.d.ts +6 -1
  140. package/types/schemaoptions.d.ts +1 -1
  141. package/types/utility.d.ts +7 -0
@@ -25,7 +25,7 @@ const opts = require('./propertyOptions');
25
25
  * @api public
26
26
  * @property subtype
27
27
  * @memberOf SchemaBufferOptions
28
- * @type Number
28
+ * @type {Number}
29
29
  * @instance
30
30
  */
31
31
 
@@ -35,4 +35,4 @@ Object.defineProperty(SchemaBufferOptions.prototype, 'subtype', opts);
35
35
  * ignore
36
36
  */
37
37
 
38
- module.exports = SchemaBufferOptions;
38
+ module.exports = SchemaBufferOptions;
@@ -26,7 +26,7 @@ const opts = require('./propertyOptions');
26
26
  * @api public
27
27
  * @property min
28
28
  * @memberOf SchemaDateOptions
29
- * @type Date
29
+ * @type {Date}
30
30
  * @instance
31
31
  */
32
32
 
@@ -39,7 +39,7 @@ Object.defineProperty(SchemaDateOptions.prototype, 'min', opts);
39
39
  * @api public
40
40
  * @property max
41
41
  * @memberOf SchemaDateOptions
42
- * @type Date
42
+ * @type {Date}
43
43
  * @instance
44
44
  */
45
45
 
@@ -58,7 +58,7 @@ Object.defineProperty(SchemaDateOptions.prototype, 'max', opts);
58
58
  * @api public
59
59
  * @property expires
60
60
  * @memberOf SchemaDateOptions
61
- * @type Date
61
+ * @type {Date}
62
62
  * @instance
63
63
  */
64
64
 
@@ -35,7 +35,7 @@ const opts = require('./propertyOptions');
35
35
  * @api public
36
36
  * @property excludeIndexes
37
37
  * @memberOf SchemaDocumentArrayOptions
38
- * @type Array
38
+ * @type {Array}
39
39
  * @instance
40
40
  */
41
41
 
@@ -55,7 +55,7 @@ Object.defineProperty(SchemaDocumentArrayOptions.prototype, 'excludeIndexes', op
55
55
  * @api public
56
56
  * @property _id
57
57
  * @memberOf SchemaDocumentArrayOptions
58
- * @type Array
58
+ * @type {Array}
59
59
  * @instance
60
60
  */
61
61
 
@@ -65,4 +65,4 @@ Object.defineProperty(SchemaDocumentArrayOptions.prototype, '_id', opts);
65
65
  * ignore
66
66
  */
67
67
 
68
- module.exports = SchemaDocumentArrayOptions;
68
+ module.exports = SchemaDocumentArrayOptions;
@@ -34,10 +34,10 @@ const opts = require('./propertyOptions');
34
34
  * @api public
35
35
  * @property of
36
36
  * @memberOf SchemaMapOptions
37
- * @type Function|string
37
+ * @type {Function|string}
38
38
  * @instance
39
39
  */
40
40
 
41
41
  Object.defineProperty(SchemaMapOptions.prototype, 'of', opts);
42
42
 
43
- module.exports = SchemaMapOptions;
43
+ module.exports = SchemaMapOptions;
@@ -26,7 +26,7 @@ const opts = require('./propertyOptions');
26
26
  * @api public
27
27
  * @property min
28
28
  * @memberOf SchemaNumberOptions
29
- * @type Number
29
+ * @type {Number}
30
30
  * @instance
31
31
  */
32
32
 
@@ -39,7 +39,7 @@ Object.defineProperty(SchemaNumberOptions.prototype, 'min', opts);
39
39
  * @api public
40
40
  * @property max
41
41
  * @memberOf SchemaNumberOptions
42
- * @type Number
42
+ * @type {Number}
43
43
  * @instance
44
44
  */
45
45
 
@@ -61,7 +61,7 @@ Object.defineProperty(SchemaNumberOptions.prototype, 'max', opts);
61
61
  * @api public
62
62
  * @property enum
63
63
  * @memberOf SchemaNumberOptions
64
- * @type Array
64
+ * @type {Array}
65
65
  * @instance
66
66
  */
67
67
 
@@ -86,7 +86,7 @@ Object.defineProperty(SchemaNumberOptions.prototype, 'enum', opts);
86
86
  * @api public
87
87
  * @property populate
88
88
  * @memberOf SchemaNumberOptions
89
- * @type Object
89
+ * @type {Object}
90
90
  * @instance
91
91
  */
92
92
 
@@ -96,4 +96,4 @@ Object.defineProperty(SchemaNumberOptions.prototype, 'populate', opts);
96
96
  * ignore
97
97
  */
98
98
 
99
- module.exports = SchemaNumberOptions;
99
+ module.exports = SchemaNumberOptions;
@@ -25,7 +25,7 @@ const opts = require('./propertyOptions');
25
25
  * @api public
26
26
  * @property auto
27
27
  * @memberOf SchemaObjectIdOptions
28
- * @type Boolean
28
+ * @type {Boolean}
29
29
  * @instance
30
30
  */
31
31
 
@@ -50,7 +50,7 @@ Object.defineProperty(SchemaObjectIdOptions.prototype, 'auto', opts);
50
50
  * @api public
51
51
  * @property populate
52
52
  * @memberOf SchemaObjectIdOptions
53
- * @type Object
53
+ * @type {Object}
54
54
  * @instance
55
55
  */
56
56
 
@@ -60,4 +60,4 @@ Object.defineProperty(SchemaObjectIdOptions.prototype, 'populate', opts);
60
60
  * ignore
61
61
  */
62
62
 
63
- module.exports = SchemaObjectIdOptions;
63
+ module.exports = SchemaObjectIdOptions;
@@ -25,7 +25,7 @@ const opts = require('./propertyOptions');
25
25
  * @api public
26
26
  * @property enum
27
27
  * @memberOf SchemaStringOptions
28
- * @type Array
28
+ * @type {Array}
29
29
  * @instance
30
30
  */
31
31
 
@@ -38,7 +38,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'enum', opts);
38
38
  * @api public
39
39
  * @property match
40
40
  * @memberOf SchemaStringOptions
41
- * @type RegExp
41
+ * @type {RegExp}
42
42
  * @instance
43
43
  */
44
44
 
@@ -51,7 +51,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'match', opts);
51
51
  * @api public
52
52
  * @property lowercase
53
53
  * @memberOf SchemaStringOptions
54
- * @type Boolean
54
+ * @type {Boolean}
55
55
  * @instance
56
56
  */
57
57
 
@@ -64,7 +64,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'lowercase', opts);
64
64
  * @api public
65
65
  * @property trim
66
66
  * @memberOf SchemaStringOptions
67
- * @type Boolean
67
+ * @type {Boolean}
68
68
  * @instance
69
69
  */
70
70
 
@@ -77,7 +77,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'trim', opts);
77
77
  * @api public
78
78
  * @property uppercase
79
79
  * @memberOf SchemaStringOptions
80
- * @type Boolean
80
+ * @type {Boolean}
81
81
  * @instance
82
82
  */
83
83
 
@@ -94,7 +94,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'uppercase', opts);
94
94
  * @api public
95
95
  * @property minLength
96
96
  * @memberOf SchemaStringOptions
97
- * @type Number
97
+ * @type {Number}
98
98
  * @instance
99
99
  */
100
100
 
@@ -112,7 +112,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'minlength', opts);
112
112
  * @api public
113
113
  * @property maxLength
114
114
  * @memberOf SchemaStringOptions
115
- * @type Number
115
+ * @type {Number}
116
116
  * @instance
117
117
  */
118
118
 
@@ -125,7 +125,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'maxlength', opts);
125
125
  * @api public
126
126
  * @property populate
127
127
  * @memberOf SchemaStringOptions
128
- * @type Object
128
+ * @type {Object}
129
129
  * @instance
130
130
  */
131
131
 
@@ -33,10 +33,10 @@ const opts = require('./propertyOptions');
33
33
  * @api public
34
34
  * @property of
35
35
  * @memberOf SchemaSubdocumentOptions
36
- * @type Function|string
36
+ * @type {Function|string}
37
37
  * @instance
38
38
  */
39
39
 
40
40
  Object.defineProperty(SchemaSubdocumentOptions.prototype, '_id', opts);
41
41
 
42
- module.exports = SchemaSubdocumentOptions;
42
+ module.exports = SchemaSubdocumentOptions;
@@ -31,7 +31,7 @@ const opts = require('./propertyOptions');
31
31
  * @api public
32
32
  * @property type
33
33
  * @memberOf SchemaTypeOptions
34
- * @type Function|String|Object
34
+ * @type {Function|String|Object}
35
35
  * @instance
36
36
  */
37
37
 
@@ -43,7 +43,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'type', opts);
43
43
  * @api public
44
44
  * @property validate
45
45
  * @memberOf SchemaTypeOptions
46
- * @type Function|Object
46
+ * @type {Function|Object}
47
47
  * @instance
48
48
  */
49
49
 
@@ -74,7 +74,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'validate', opts);
74
74
  * @api public
75
75
  * @property cast
76
76
  * @memberOf SchemaTypeOptions
77
- * @type String
77
+ * @type {String}
78
78
  * @instance
79
79
  */
80
80
 
@@ -88,7 +88,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'cast', opts);
88
88
  * @api public
89
89
  * @property required
90
90
  * @memberOf SchemaTypeOptions
91
- * @type Function|Boolean
91
+ * @type {Function|Boolean}
92
92
  * @instance
93
93
  */
94
94
 
@@ -101,7 +101,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'required', opts);
101
101
  * @api public
102
102
  * @property default
103
103
  * @memberOf SchemaTypeOptions
104
- * @type Function|Any
104
+ * @type {Function|Any}
105
105
  * @instance
106
106
  */
107
107
 
@@ -113,7 +113,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'default', opts);
113
113
  * @api public
114
114
  * @property ref
115
115
  * @memberOf SchemaTypeOptions
116
- * @type Function|String
116
+ * @type {Function|String}
117
117
  * @instance
118
118
  */
119
119
 
@@ -126,7 +126,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'ref', opts);
126
126
  * @api public
127
127
  * @property ref
128
128
  * @memberOf SchemaTypeOptions
129
- * @type Function|String
129
+ * @type {Function|String}
130
130
  * @instance
131
131
  */
132
132
 
@@ -139,7 +139,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'refPath', opts);
139
139
  * @api public
140
140
  * @property select
141
141
  * @memberOf SchemaTypeOptions
142
- * @type Boolean|Number
142
+ * @type {Boolean|Number}
143
143
  * @instance
144
144
  */
145
145
 
@@ -152,7 +152,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'select', opts);
152
152
  * @api public
153
153
  * @property index
154
154
  * @memberOf SchemaTypeOptions
155
- * @type Boolean|Number|Object
155
+ * @type {Boolean|Number|Object}
156
156
  * @instance
157
157
  */
158
158
 
@@ -166,7 +166,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'index', opts);
166
166
  * @api public
167
167
  * @property unique
168
168
  * @memberOf SchemaTypeOptions
169
- * @type Boolean|Number
169
+ * @type {Boolean|Number}
170
170
  * @instance
171
171
  */
172
172
 
@@ -180,7 +180,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'unique', opts);
180
180
  * @api public
181
181
  * @property immutable
182
182
  * @memberOf SchemaTypeOptions
183
- * @type Function|Boolean
183
+ * @type {Function|Boolean}
184
184
  * @instance
185
185
  */
186
186
 
@@ -193,7 +193,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'immutable', opts);
193
193
  * @api public
194
194
  * @property sparse
195
195
  * @memberOf SchemaTypeOptions
196
- * @type Boolean|Number
196
+ * @type {Boolean|Number}
197
197
  * @instance
198
198
  */
199
199
 
@@ -206,7 +206,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'sparse', opts);
206
206
  * @api public
207
207
  * @property text
208
208
  * @memberOf SchemaTypeOptions
209
- * @type Boolean|Number|Object
209
+ * @type {Boolean|Number|Object}
210
210
  * @instance
211
211
  */
212
212
 
@@ -235,10 +235,10 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'text', opts);
235
235
  * @api public
236
236
  * @property transform
237
237
  * @memberOf SchemaTypeOptions
238
- * @type Function
238
+ * @type {Function}
239
239
  * @instance
240
240
  */
241
241
 
242
242
  Object.defineProperty(SchemaTypeOptions.prototype, 'transform', opts);
243
243
 
244
- module.exports = SchemaTypeOptions;
244
+ module.exports = SchemaTypeOptions;
@@ -19,7 +19,7 @@ class VirtualOptions {
19
19
  * @api public
20
20
  * @property ref
21
21
  * @memberOf VirtualOptions
22
- * @type String|Model|Function
22
+ * @type {String|Model|Function}
23
23
  * @instance
24
24
  */
25
25
 
@@ -32,7 +32,7 @@ Object.defineProperty(VirtualOptions.prototype, 'ref', opts);
32
32
  * @api public
33
33
  * @property refPath
34
34
  * @memberOf VirtualOptions
35
- * @type String|Function
35
+ * @type {String|Function}
36
36
  * @instance
37
37
  */
38
38
 
@@ -45,7 +45,7 @@ Object.defineProperty(VirtualOptions.prototype, 'refPath', opts);
45
45
  * @api public
46
46
  * @property localField
47
47
  * @memberOf VirtualOptions
48
- * @type String|Function
48
+ * @type {String|Function}
49
49
  * @instance
50
50
  */
51
51
 
@@ -58,7 +58,7 @@ Object.defineProperty(VirtualOptions.prototype, 'localField', opts);
58
58
  * @api public
59
59
  * @property foreignField
60
60
  * @memberOf VirtualOptions
61
- * @type String|Function
61
+ * @type {String|Function}
62
62
  * @instance
63
63
  */
64
64
 
@@ -71,7 +71,7 @@ Object.defineProperty(VirtualOptions.prototype, 'foreignField', opts);
71
71
  * @api public
72
72
  * @property justOne
73
73
  * @memberOf VirtualOptions
74
- * @type Boolean
74
+ * @type {Boolean}
75
75
  * @instance
76
76
  */
77
77
 
@@ -86,7 +86,7 @@ Object.defineProperty(VirtualOptions.prototype, 'justOne', opts);
86
86
  * @api public
87
87
  * @property count
88
88
  * @memberOf VirtualOptions
89
- * @type Boolean
89
+ * @type {Boolean}
90
90
  * @instance
91
91
  */
92
92
 
@@ -99,7 +99,7 @@ Object.defineProperty(VirtualOptions.prototype, 'count', opts);
99
99
  * @api public
100
100
  * @property match
101
101
  * @memberOf VirtualOptions
102
- * @type Object|Function
102
+ * @type {Object|Function}
103
103
  * @instance
104
104
  */
105
105
 
@@ -115,7 +115,7 @@ Object.defineProperty(VirtualOptions.prototype, 'match', opts);
115
115
  * @api public
116
116
  * @property options
117
117
  * @memberOf VirtualOptions
118
- * @type Object
118
+ * @type {Object}
119
119
  * @instance
120
120
  */
121
121
 
@@ -127,7 +127,7 @@ Object.defineProperty(VirtualOptions.prototype, 'options', opts);
127
127
  * @api public
128
128
  * @property skip
129
129
  * @memberOf VirtualOptions
130
- * @type Number
130
+ * @type {Number}
131
131
  * @instance
132
132
  */
133
133
 
@@ -139,7 +139,7 @@ Object.defineProperty(VirtualOptions.prototype, 'skip', opts);
139
139
  * @api public
140
140
  * @property limit
141
141
  * @memberOf VirtualOptions
142
- * @type Number
142
+ * @type {Number}
143
143
  * @instance
144
144
  */
145
145
 
@@ -155,10 +155,10 @@ Object.defineProperty(VirtualOptions.prototype, 'limit', opts);
155
155
  * @api public
156
156
  * @property perDocumentLimit
157
157
  * @memberOf VirtualOptions
158
- * @type Number
158
+ * @type {Number}
159
159
  * @instance
160
160
  */
161
161
 
162
162
  Object.defineProperty(VirtualOptions.prototype, 'perDocumentLimit', opts);
163
163
 
164
- module.exports = VirtualOptions;
164
+ module.exports = VirtualOptions;
@@ -5,4 +5,4 @@ module.exports = Object.freeze({
5
5
  configurable: true,
6
6
  writable: true,
7
7
  value: void 0
8
- });
8
+ });
@@ -11,4 +11,4 @@ class RemoveOptions {
11
11
  }
12
12
  }
13
13
 
14
- module.exports = RemoveOptions;
14
+ module.exports = RemoveOptions;
@@ -11,4 +11,4 @@ class SaveOptions {
11
11
  }
12
12
  }
13
13
 
14
- module.exports = SaveOptions;
14
+ module.exports = SaveOptions;
@@ -89,4 +89,4 @@ function mergeAtomics(destination, source) {
89
89
  }
90
90
 
91
91
  return destination;
92
- }
92
+ }