@colyseus/core 0.14.21 → 0.14.25

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 (2970) hide show
  1. package/build/Logger.d.ts +9 -0
  2. package/build/Logger.js +12 -0
  3. package/build/Logger.js.map +1 -0
  4. package/build/Logger.mjs +8 -0
  5. package/build/Logger.mjs.map +1 -0
  6. package/build/Room.js +2 -0
  7. package/build/Room.js.map +1 -1
  8. package/build/Room.mjs +2 -0
  9. package/build/Room.mjs.map +1 -1
  10. package/build/Server.js +1 -1
  11. package/build/Server.js.map +1 -1
  12. package/build/Server.mjs +1 -1
  13. package/build/Server.mjs.map +1 -1
  14. package/build/_virtual/AggregationCursor.js_commonjs-proxy +3 -0
  15. package/build/_virtual/AggregationCursor.js_commonjs-proxy.map +1 -0
  16. package/build/_virtual/BufferList.js_commonjs-proxy +3 -0
  17. package/build/_virtual/BufferList.js_commonjs-proxy.map +1 -0
  18. package/build/_virtual/ChangeStream.js_commonjs-proxy +3 -0
  19. package/build/_virtual/ChangeStream.js_commonjs-proxy.map +1 -0
  20. package/build/_virtual/PopulateOptions.js_commonjs-proxy +3 -0
  21. package/build/_virtual/PopulateOptions.js_commonjs-proxy.map +1 -0
  22. package/build/_virtual/QueryCursor.js_commonjs-proxy +3 -0
  23. package/build/_virtual/QueryCursor.js_commonjs-proxy.map +1 -0
  24. package/build/_virtual/ReadPreference.js_commonjs-proxy +3 -0
  25. package/build/_virtual/ReadPreference.js_commonjs-proxy.map +1 -0
  26. package/build/_virtual/SchemaArrayOptions.js_commonjs-proxy +3 -0
  27. package/build/_virtual/SchemaArrayOptions.js_commonjs-proxy.map +1 -0
  28. package/build/_virtual/SchemaBufferOptions.js_commonjs-proxy +3 -0
  29. package/build/_virtual/SchemaBufferOptions.js_commonjs-proxy.map +1 -0
  30. package/build/_virtual/SchemaDateOptions.js_commonjs-proxy +3 -0
  31. package/build/_virtual/SchemaDateOptions.js_commonjs-proxy.map +1 -0
  32. package/build/_virtual/SchemaDocumentArrayOptions.js_commonjs-proxy +3 -0
  33. package/build/_virtual/SchemaDocumentArrayOptions.js_commonjs-proxy.map +1 -0
  34. package/build/_virtual/SchemaMapOptions.js_commonjs-proxy +3 -0
  35. package/build/_virtual/SchemaMapOptions.js_commonjs-proxy.map +1 -0
  36. package/build/_virtual/SchemaNumberOptions.js_commonjs-proxy +3 -0
  37. package/build/_virtual/SchemaNumberOptions.js_commonjs-proxy.map +1 -0
  38. package/build/_virtual/SchemaObjectIdOptions.js_commonjs-proxy +3 -0
  39. package/build/_virtual/SchemaObjectIdOptions.js_commonjs-proxy.map +1 -0
  40. package/build/_virtual/SchemaSingleNestedOptions.js_commonjs-proxy +3 -0
  41. package/build/_virtual/SchemaSingleNestedOptions.js_commonjs-proxy.map +1 -0
  42. package/build/_virtual/SchemaStringOptions.js_commonjs-proxy +3 -0
  43. package/build/_virtual/SchemaStringOptions.js_commonjs-proxy.map +1 -0
  44. package/build/_virtual/SchemaTypeOptions.js_commonjs-proxy +3 -0
  45. package/build/_virtual/SchemaTypeOptions.js_commonjs-proxy.map +1 -0
  46. package/build/_virtual/SingleNestedPath.js_commonjs-proxy +3 -0
  47. package/build/_virtual/SingleNestedPath.js_commonjs-proxy.map +1 -0
  48. package/build/_virtual/SkipPopulateValue.js_commonjs-proxy +3 -0
  49. package/build/_virtual/SkipPopulateValue.js_commonjs-proxy.map +1 -0
  50. package/build/_virtual/VirtualOptions.js_commonjs-proxy +3 -0
  51. package/build/_virtual/VirtualOptions.js_commonjs-proxy.map +1 -0
  52. package/build/_virtual/_commonjsHelpers.js +28 -0
  53. package/build/_virtual/_commonjsHelpers.js.map +1 -0
  54. package/build/_virtual/_stream_duplex.js_commonjs-proxy +3 -0
  55. package/build/_virtual/_stream_duplex.js_commonjs-proxy.map +1 -0
  56. package/build/_virtual/_stream_passthrough.js_commonjs-proxy +3 -0
  57. package/build/_virtual/_stream_passthrough.js_commonjs-proxy.map +1 -0
  58. package/build/_virtual/_stream_readable.js_commonjs-proxy +3 -0
  59. package/build/_virtual/_stream_readable.js_commonjs-proxy.map +1 -0
  60. package/build/_virtual/_stream_transform.js_commonjs-proxy +3 -0
  61. package/build/_virtual/_stream_transform.js_commonjs-proxy.map +1 -0
  62. package/build/_virtual/_stream_writable.js_commonjs-proxy +3 -0
  63. package/build/_virtual/_stream_writable.js_commonjs-proxy.map +1 -0
  64. package/build/_virtual/addAutoId.js_commonjs-proxy +3 -0
  65. package/build/_virtual/addAutoId.js_commonjs-proxy.map +1 -0
  66. package/build/_virtual/add_user.js_commonjs-proxy +3 -0
  67. package/build/_virtual/add_user.js_commonjs-proxy.map +1 -0
  68. package/build/_virtual/admin.js_commonjs-proxy +3 -0
  69. package/build/_virtual/admin.js_commonjs-proxy.map +1 -0
  70. package/build/_virtual/aggregate.js_commonjs-proxy +3 -0
  71. package/build/_virtual/aggregate.js_commonjs-proxy.map +1 -0
  72. package/build/_virtual/aggregate2.js_commonjs-proxy +3 -0
  73. package/build/_virtual/aggregate2.js_commonjs-proxy.map +1 -0
  74. package/build/_virtual/aggregation_cursor.js_commonjs-proxy +3 -0
  75. package/build/_virtual/aggregation_cursor.js_commonjs-proxy.map +1 -0
  76. package/build/_virtual/allServersUnknown.js_commonjs-proxy +3 -0
  77. package/build/_virtual/allServersUnknown.js_commonjs-proxy.map +1 -0
  78. package/build/_virtual/any.js_commonjs-proxy +3 -0
  79. package/build/_virtual/any.js_commonjs-proxy.map +1 -0
  80. package/build/_virtual/apm.js_commonjs-proxy +3 -0
  81. package/build/_virtual/apm.js_commonjs-proxy.map +1 -0
  82. package/build/_virtual/apm2.js_commonjs-proxy +3 -0
  83. package/build/_virtual/apm2.js_commonjs-proxy.map +1 -0
  84. package/build/_virtual/applyGlobalMaxTimeMS.js_commonjs-proxy +3 -0
  85. package/build/_virtual/applyGlobalMaxTimeMS.js_commonjs-proxy.map +1 -0
  86. package/build/_virtual/applyHooks.js_commonjs-proxy +3 -0
  87. package/build/_virtual/applyHooks.js_commonjs-proxy.map +1 -0
  88. package/build/_virtual/applyMethods.js_commonjs-proxy +3 -0
  89. package/build/_virtual/applyMethods.js_commonjs-proxy.map +1 -0
  90. package/build/_virtual/applyPlugins.js_commonjs-proxy +3 -0
  91. package/build/_virtual/applyPlugins.js_commonjs-proxy.map +1 -0
  92. package/build/_virtual/applyQueryMiddleware.js_commonjs-proxy +3 -0
  93. package/build/_virtual/applyQueryMiddleware.js_commonjs-proxy.map +1 -0
  94. package/build/_virtual/applyStaticHooks.js_commonjs-proxy +3 -0
  95. package/build/_virtual/applyStaticHooks.js_commonjs-proxy.map +1 -0
  96. package/build/_virtual/applyStatics.js_commonjs-proxy +3 -0
  97. package/build/_virtual/applyStatics.js_commonjs-proxy.map +1 -0
  98. package/build/_virtual/applyTimestampsToChildren.js_commonjs-proxy +3 -0
  99. package/build/_virtual/applyTimestampsToChildren.js_commonjs-proxy.map +1 -0
  100. package/build/_virtual/applyTimestampsToUpdate.js_commonjs-proxy +3 -0
  101. package/build/_virtual/applyTimestampsToUpdate.js_commonjs-proxy.map +1 -0
  102. package/build/_virtual/applyWriteConcern.js_commonjs-proxy +3 -0
  103. package/build/_virtual/applyWriteConcern.js_commonjs-proxy.map +1 -0
  104. package/build/_virtual/areDiscriminatorValuesEqual.js_commonjs-proxy +3 -0
  105. package/build/_virtual/areDiscriminatorValuesEqual.js_commonjs-proxy.map +1 -0
  106. package/build/_virtual/array.js_commonjs-proxy +3 -0
  107. package/build/_virtual/array.js_commonjs-proxy.map +1 -0
  108. package/build/_virtual/array2.js_commonjs-proxy +3 -0
  109. package/build/_virtual/array2.js_commonjs-proxy.map +1 -0
  110. package/build/_virtual/arrayDepth.js_commonjs-proxy +3 -0
  111. package/build/_virtual/arrayDepth.js_commonjs-proxy.map +1 -0
  112. package/build/_virtual/assignRawDocsToIdStructure.js_commonjs-proxy +3 -0
  113. package/build/_virtual/assignRawDocsToIdStructure.js_commonjs-proxy.map +1 -0
  114. package/build/_virtual/assignVals.js_commonjs-proxy +3 -0
  115. package/build/_virtual/assignVals.js_commonjs-proxy.map +1 -0
  116. package/build/_virtual/async.js_commonjs-proxy +3 -0
  117. package/build/_virtual/async.js_commonjs-proxy.map +1 -0
  118. package/build/_virtual/async_iterator.js_commonjs-proxy +3 -0
  119. package/build/_virtual/async_iterator.js_commonjs-proxy.map +1 -0
  120. package/build/_virtual/auth_provider.js_commonjs-proxy +3 -0
  121. package/build/_virtual/auth_provider.js_commonjs-proxy.map +1 -0
  122. package/build/_virtual/aws4.js_commonjs-proxy +3 -0
  123. package/build/_virtual/aws4.js_commonjs-proxy.map +1 -0
  124. package/build/_virtual/binary.js_commonjs-proxy +3 -0
  125. package/build/_virtual/binary.js_commonjs-proxy.map +1 -0
  126. package/build/_virtual/binary2.js_commonjs-proxy +3 -0
  127. package/build/_virtual/binary2.js_commonjs-proxy.map +1 -0
  128. package/build/_virtual/bind.js_commonjs-proxy +3 -0
  129. package/build/_virtual/bind.js_commonjs-proxy.map +1 -0
  130. package/build/_virtual/bitwise.js_commonjs-proxy +3 -0
  131. package/build/_virtual/bitwise.js_commonjs-proxy.map +1 -0
  132. package/build/_virtual/bl.js_commonjs-proxy +3 -0
  133. package/build/_virtual/bl.js_commonjs-proxy.map +1 -0
  134. package/build/_virtual/bluebird.js_commonjs-proxy +3 -0
  135. package/build/_virtual/bluebird.js_commonjs-proxy.map +1 -0
  136. package/build/_virtual/boolean.js_commonjs-proxy +3 -0
  137. package/build/_virtual/boolean.js_commonjs-proxy.map +1 -0
  138. package/build/_virtual/boolean2.js_commonjs-proxy +3 -0
  139. package/build/_virtual/boolean2.js_commonjs-proxy.map +1 -0
  140. package/build/_virtual/browserDocument.js_commonjs-proxy +3 -0
  141. package/build/_virtual/browserDocument.js_commonjs-proxy.map +1 -0
  142. package/build/_virtual/bson.js_commonjs-proxy +3 -0
  143. package/build/_virtual/bson.js_commonjs-proxy.map +1 -0
  144. package/build/_virtual/buffer-util.js_commonjs-proxy +3 -0
  145. package/build/_virtual/buffer-util.js_commonjs-proxy.map +1 -0
  146. package/build/_virtual/buffer.js_commonjs-proxy +3 -0
  147. package/build/_virtual/buffer.js_commonjs-proxy.map +1 -0
  148. package/build/_virtual/buffer2.js_commonjs-proxy +3 -0
  149. package/build/_virtual/buffer2.js_commonjs-proxy.map +1 -0
  150. package/build/_virtual/bulk_write.js_commonjs-proxy +3 -0
  151. package/build/_virtual/bulk_write.js_commonjs-proxy.map +1 -0
  152. package/build/_virtual/calculate_size.js_commonjs-proxy +3 -0
  153. package/build/_virtual/calculate_size.js_commonjs-proxy.map +1 -0
  154. package/build/_virtual/call_get.js_commonjs-proxy +3 -0
  155. package/build/_virtual/call_get.js_commonjs-proxy.map +1 -0
  156. package/build/_virtual/cancel.js_commonjs-proxy +3 -0
  157. package/build/_virtual/cancel.js_commonjs-proxy.map +1 -0
  158. package/build/_virtual/cast.js_commonjs-proxy +3 -0
  159. package/build/_virtual/cast.js_commonjs-proxy.map +1 -0
  160. package/build/_virtual/cast2.js_commonjs-proxy +3 -0
  161. package/build/_virtual/cast2.js_commonjs-proxy.map +1 -0
  162. package/build/_virtual/castArrayFilters.js_commonjs-proxy +3 -0
  163. package/build/_virtual/castArrayFilters.js_commonjs-proxy.map +1 -0
  164. package/build/_virtual/castBulkWrite.js_commonjs-proxy +3 -0
  165. package/build/_virtual/castBulkWrite.js_commonjs-proxy.map +1 -0
  166. package/build/_virtual/castFilterPath.js_commonjs-proxy +3 -0
  167. package/build/_virtual/castFilterPath.js_commonjs-proxy.map +1 -0
  168. package/build/_virtual/castUpdate.js_commonjs-proxy +3 -0
  169. package/build/_virtual/castUpdate.js_commonjs-proxy.map +1 -0
  170. package/build/_virtual/catch_filter.js_commonjs-proxy +3 -0
  171. package/build/_virtual/catch_filter.js_commonjs-proxy.map +1 -0
  172. package/build/_virtual/change_stream.js_commonjs-proxy +3 -0
  173. package/build/_virtual/change_stream.js_commonjs-proxy.map +1 -0
  174. package/build/_virtual/checkEmbeddedDiscriminatorKeyProjection.js_commonjs-proxy +3 -0
  175. package/build/_virtual/checkEmbeddedDiscriminatorKeyProjection.js_commonjs-proxy.map +1 -0
  176. package/build/_virtual/chunk.js_commonjs-proxy +3 -0
  177. package/build/_virtual/chunk.js_commonjs-proxy.map +1 -0
  178. package/build/_virtual/cleanModifiedSubpaths.js_commonjs-proxy +3 -0
  179. package/build/_virtual/cleanModifiedSubpaths.js_commonjs-proxy.map +1 -0
  180. package/build/_virtual/cleanPositionalOperators.js_commonjs-proxy +3 -0
  181. package/build/_virtual/cleanPositionalOperators.js_commonjs-proxy.map +1 -0
  182. package/build/_virtual/clone.js_commonjs-proxy +3 -0
  183. package/build/_virtual/clone.js_commonjs-proxy.map +1 -0
  184. package/build/_virtual/code.js_commonjs-proxy +3 -0
  185. package/build/_virtual/code.js_commonjs-proxy.map +1 -0
  186. package/build/_virtual/collection.js_commonjs-proxy +3 -0
  187. package/build/_virtual/collection.js_commonjs-proxy.map +1 -0
  188. package/build/_virtual/collection2.js_commonjs-proxy +3 -0
  189. package/build/_virtual/collection2.js_commonjs-proxy.map +1 -0
  190. package/build/_virtual/collection3.js_commonjs-proxy +3 -0
  191. package/build/_virtual/collection3.js_commonjs-proxy.map +1 -0
  192. package/build/_virtual/collection4.js_commonjs-proxy +3 -0
  193. package/build/_virtual/collection4.js_commonjs-proxy.map +1 -0
  194. package/build/_virtual/collection_ops.js_commonjs-proxy +3 -0
  195. package/build/_virtual/collection_ops.js_commonjs-proxy.map +1 -0
  196. package/build/_virtual/collections.js_commonjs-proxy +3 -0
  197. package/build/_virtual/collections.js_commonjs-proxy.map +1 -0
  198. package/build/_virtual/command.js_commonjs-proxy +3 -0
  199. package/build/_virtual/command.js_commonjs-proxy.map +1 -0
  200. package/build/_virtual/command2.js_commonjs-proxy +3 -0
  201. package/build/_virtual/command2.js_commonjs-proxy.map +1 -0
  202. package/build/_virtual/command3.js_commonjs-proxy +3 -0
  203. package/build/_virtual/command3.js_commonjs-proxy.map +1 -0
  204. package/build/_virtual/command_cursor.js_commonjs-proxy +3 -0
  205. package/build/_virtual/command_cursor.js_commonjs-proxy.map +1 -0
  206. package/build/_virtual/command_result.js_commonjs-proxy +3 -0
  207. package/build/_virtual/command_result.js_commonjs-proxy.map +1 -0
  208. package/build/_virtual/command_v2.js_commonjs-proxy +3 -0
  209. package/build/_virtual/command_v2.js_commonjs-proxy.map +1 -0
  210. package/build/_virtual/commands.js_commonjs-proxy +3 -0
  211. package/build/_virtual/commands.js_commonjs-proxy.map +1 -0
  212. package/build/_virtual/commands2.js_commonjs-proxy +3 -0
  213. package/build/_virtual/commands2.js_commonjs-proxy.map +1 -0
  214. package/build/_virtual/common.js_commonjs-proxy +3 -0
  215. package/build/_virtual/common.js_commonjs-proxy.map +1 -0
  216. package/build/_virtual/common2.js_commonjs-proxy +3 -0
  217. package/build/_virtual/common2.js_commonjs-proxy.map +1 -0
  218. package/build/_virtual/common3.js_commonjs-proxy +3 -0
  219. package/build/_virtual/common3.js_commonjs-proxy.map +1 -0
  220. package/build/_virtual/common_functions.js_commonjs-proxy +3 -0
  221. package/build/_virtual/common_functions.js_commonjs-proxy.map +1 -0
  222. package/build/_virtual/compile.js_commonjs-proxy +3 -0
  223. package/build/_virtual/compile.js_commonjs-proxy.map +1 -0
  224. package/build/_virtual/completeMany.js_commonjs-proxy +3 -0
  225. package/build/_virtual/completeMany.js_commonjs-proxy.map +1 -0
  226. package/build/_virtual/compression.js_commonjs-proxy +3 -0
  227. package/build/_virtual/compression.js_commonjs-proxy.map +1 -0
  228. package/build/_virtual/connect.js_commonjs-proxy +3 -0
  229. package/build/_virtual/connect.js_commonjs-proxy.map +1 -0
  230. package/build/_virtual/connect2.js_commonjs-proxy +3 -0
  231. package/build/_virtual/connect2.js_commonjs-proxy.map +1 -0
  232. package/build/_virtual/connection.js_commonjs-proxy +3 -0
  233. package/build/_virtual/connection.js_commonjs-proxy.map +1 -0
  234. package/build/_virtual/connection2.js_commonjs-proxy +3 -0
  235. package/build/_virtual/connection2.js_commonjs-proxy.map +1 -0
  236. package/build/_virtual/connection3.js_commonjs-proxy +3 -0
  237. package/build/_virtual/connection3.js_commonjs-proxy.map +1 -0
  238. package/build/_virtual/connection4.js_commonjs-proxy +3 -0
  239. package/build/_virtual/connection4.js_commonjs-proxy.map +1 -0
  240. package/build/_virtual/connection_pool.js_commonjs-proxy +3 -0
  241. package/build/_virtual/connection_pool.js_commonjs-proxy.map +1 -0
  242. package/build/_virtual/connectionstate.js_commonjs-proxy +3 -0
  243. package/build/_virtual/connectionstate.js_commonjs-proxy.map +1 -0
  244. package/build/_virtual/constants.js_commonjs-proxy +3 -0
  245. package/build/_virtual/constants.js_commonjs-proxy.map +1 -0
  246. package/build/_virtual/constants2.js_commonjs-proxy +3 -0
  247. package/build/_virtual/constants2.js_commonjs-proxy.map +1 -0
  248. package/build/_virtual/constants3.js_commonjs-proxy +3 -0
  249. package/build/_virtual/constants3.js_commonjs-proxy.map +1 -0
  250. package/build/_virtual/context.js_commonjs-proxy +3 -0
  251. package/build/_virtual/context.js_commonjs-proxy.map +1 -0
  252. package/build/_virtual/core_array.js_commonjs-proxy +3 -0
  253. package/build/_virtual/core_array.js_commonjs-proxy.map +1 -0
  254. package/build/_virtual/count.js_commonjs-proxy +3 -0
  255. package/build/_virtual/count.js_commonjs-proxy.map +1 -0
  256. package/build/_virtual/count_documents.js_commonjs-proxy +3 -0
  257. package/build/_virtual/count_documents.js_commonjs-proxy.map +1 -0
  258. package/build/_virtual/createClient.js_commonjs-proxy +3 -0
  259. package/build/_virtual/createClient.js_commonjs-proxy.map +1 -0
  260. package/build/_virtual/createPopulateQueryFilter.js_commonjs-proxy +3 -0
  261. package/build/_virtual/createPopulateQueryFilter.js_commonjs-proxy.map +1 -0
  262. package/build/_virtual/create_collection.js_commonjs-proxy +3 -0
  263. package/build/_virtual/create_collection.js_commonjs-proxy.map +1 -0
  264. package/build/_virtual/create_indexes.js_commonjs-proxy +3 -0
  265. package/build/_virtual/create_indexes.js_commonjs-proxy.map +1 -0
  266. package/build/_virtual/cursor.js_commonjs-proxy +3 -0
  267. package/build/_virtual/cursor.js_commonjs-proxy.map +1 -0
  268. package/build/_virtual/cursor2.js_commonjs-proxy +3 -0
  269. package/build/_virtual/cursor2.js_commonjs-proxy.map +1 -0
  270. package/build/_virtual/cursor_ops.js_commonjs-proxy +3 -0
  271. package/build/_virtual/cursor_ops.js_commonjs-proxy.map +1 -0
  272. package/build/_virtual/customErrors.js_commonjs-proxy +3 -0
  273. package/build/_virtual/customErrors.js_commonjs-proxy.map +1 -0
  274. package/build/_virtual/date.js_commonjs-proxy +3 -0
  275. package/build/_virtual/date.js_commonjs-proxy.map +1 -0
  276. package/build/_virtual/date2.js_commonjs-proxy +3 -0
  277. package/build/_virtual/date2.js_commonjs-proxy.map +1 -0
  278. package/build/_virtual/db.js_commonjs-proxy +3 -0
  279. package/build/_virtual/db.js_commonjs-proxy.map +1 -0
  280. package/build/_virtual/db_ops.js_commonjs-proxy +3 -0
  281. package/build/_virtual/db_ops.js_commonjs-proxy.map +1 -0
  282. package/build/_virtual/db_ref.js_commonjs-proxy +3 -0
  283. package/build/_virtual/db_ref.js_commonjs-proxy.map +1 -0
  284. package/build/_virtual/debug.js_commonjs-proxy +3 -0
  285. package/build/_virtual/debug.js_commonjs-proxy.map +1 -0
  286. package/build/_virtual/debuggability.js_commonjs-proxy +3 -0
  287. package/build/_virtual/debuggability.js_commonjs-proxy.map +1 -0
  288. package/build/_virtual/decimal128.js_commonjs-proxy +3 -0
  289. package/build/_virtual/decimal128.js_commonjs-proxy.map +1 -0
  290. package/build/_virtual/decimal1282.js_commonjs-proxy +3 -0
  291. package/build/_virtual/decimal1282.js_commonjs-proxy.map +1 -0
  292. package/build/_virtual/decimal1283.js_commonjs-proxy +3 -0
  293. package/build/_virtual/decimal1283.js_commonjs-proxy.map +1 -0
  294. package/build/_virtual/decimal1284.js_commonjs-proxy +3 -0
  295. package/build/_virtual/decimal1284.js_commonjs-proxy.map +1 -0
  296. package/build/_virtual/decimal1285.js_commonjs-proxy +3 -0
  297. package/build/_virtual/decimal1285.js_commonjs-proxy.map +1 -0
  298. package/build/_virtual/defaultAuthProviders.js_commonjs-proxy +3 -0
  299. package/build/_virtual/defaultAuthProviders.js_commonjs-proxy.map +1 -0
  300. package/build/_virtual/delete_many.js_commonjs-proxy +3 -0
  301. package/build/_virtual/delete_many.js_commonjs-proxy.map +1 -0
  302. package/build/_virtual/delete_one.js_commonjs-proxy +3 -0
  303. package/build/_virtual/delete_one.js_commonjs-proxy.map +1 -0
  304. package/build/_virtual/deque.js_commonjs-proxy +3 -0
  305. package/build/_virtual/deque.js_commonjs-proxy.map +1 -0
  306. package/build/_virtual/deserializer.js_commonjs-proxy +3 -0
  307. package/build/_virtual/deserializer.js_commonjs-proxy.map +1 -0
  308. package/build/_virtual/destroy.js_commonjs-proxy +3 -0
  309. package/build/_virtual/destroy.js_commonjs-proxy.map +1 -0
  310. package/build/_virtual/direct_resolve.js_commonjs-proxy +3 -0
  311. package/build/_virtual/direct_resolve.js_commonjs-proxy.map +1 -0
  312. package/build/_virtual/discriminator.js_commonjs-proxy +3 -0
  313. package/build/_virtual/discriminator.js_commonjs-proxy.map +1 -0
  314. package/build/_virtual/distinct.js_commonjs-proxy +3 -0
  315. package/build/_virtual/distinct.js_commonjs-proxy.map +1 -0
  316. package/build/_virtual/divergentArray.js_commonjs-proxy +3 -0
  317. package/build/_virtual/divergentArray.js_commonjs-proxy.map +1 -0
  318. package/build/_virtual/document.js_commonjs-proxy +3 -0
  319. package/build/_virtual/document.js_commonjs-proxy.map +1 -0
  320. package/build/_virtual/document_provider.js_commonjs-proxy +3 -0
  321. package/build/_virtual/document_provider.js_commonjs-proxy.map +1 -0
  322. package/build/_virtual/documentarray.js_commonjs-proxy +3 -0
  323. package/build/_virtual/documentarray.js_commonjs-proxy.map +1 -0
  324. package/build/_virtual/documentarray2.js_commonjs-proxy +3 -0
  325. package/build/_virtual/documentarray2.js_commonjs-proxy.map +1 -0
  326. package/build/_virtual/double.js_commonjs-proxy +3 -0
  327. package/build/_virtual/double.js_commonjs-proxy.map +1 -0
  328. package/build/_virtual/download.js_commonjs-proxy +3 -0
  329. package/build/_virtual/download.js_commonjs-proxy.map +1 -0
  330. package/build/_virtual/driver.js_commonjs-proxy +3 -0
  331. package/build/_virtual/driver.js_commonjs-proxy.map +1 -0
  332. package/build/_virtual/drop.js_commonjs-proxy +3 -0
  333. package/build/_virtual/drop.js_commonjs-proxy.map +1 -0
  334. package/build/_virtual/drop_index.js_commonjs-proxy +3 -0
  335. package/build/_virtual/drop_index.js_commonjs-proxy.map +1 -0
  336. package/build/_virtual/drop_indexes.js_commonjs-proxy +3 -0
  337. package/build/_virtual/drop_indexes.js_commonjs-proxy.map +1 -0
  338. package/build/_virtual/dynamic_loaders.js_commonjs-proxy +3 -0
  339. package/build/_virtual/dynamic_loaders.js_commonjs-proxy.map +1 -0
  340. package/build/_virtual/each.js_commonjs-proxy +3 -0
  341. package/build/_virtual/each.js_commonjs-proxy.map +1 -0
  342. package/build/_virtual/each2.js_commonjs-proxy +3 -0
  343. package/build/_virtual/each2.js_commonjs-proxy.map +1 -0
  344. package/build/_virtual/eachAsync.js_commonjs-proxy +3 -0
  345. package/build/_virtual/eachAsync.js_commonjs-proxy.map +1 -0
  346. package/build/_virtual/embedded.js_commonjs-proxy +3 -0
  347. package/build/_virtual/embedded.js_commonjs-proxy.map +1 -0
  348. package/build/_virtual/encrypter.js_commonjs-proxy +3 -0
  349. package/build/_virtual/encrypter.js_commonjs-proxy.map +1 -0
  350. package/build/_virtual/env.js_commonjs-proxy +3 -0
  351. package/build/_virtual/env.js_commonjs-proxy.map +1 -0
  352. package/build/_virtual/error.js_commonjs-proxy +3 -0
  353. package/build/_virtual/error.js_commonjs-proxy.map +1 -0
  354. package/build/_virtual/error2.js_commonjs-proxy +3 -0
  355. package/build/_virtual/error2.js_commonjs-proxy.map +1 -0
  356. package/build/_virtual/errors.js_commonjs-proxy +3 -0
  357. package/build/_virtual/errors.js_commonjs-proxy.map +1 -0
  358. package/build/_virtual/errors2.js_commonjs-proxy +3 -0
  359. package/build/_virtual/errors2.js_commonjs-proxy.map +1 -0
  360. package/build/_virtual/es5.js_commonjs-proxy +3 -0
  361. package/build/_virtual/es5.js_commonjs-proxy.map +1 -0
  362. package/build/_virtual/estimated_document_count.js_commonjs-proxy +3 -0
  363. package/build/_virtual/estimated_document_count.js_commonjs-proxy.map +1 -0
  364. package/build/_virtual/event-target.js_commonjs-proxy +3 -0
  365. package/build/_virtual/event-target.js_commonjs-proxy.map +1 -0
  366. package/build/_virtual/events.js_commonjs-proxy +3 -0
  367. package/build/_virtual/events.js_commonjs-proxy.map +1 -0
  368. package/build/_virtual/events2.js_commonjs-proxy +3 -0
  369. package/build/_virtual/events2.js_commonjs-proxy.map +1 -0
  370. package/build/_virtual/execute_db_admin_command.js_commonjs-proxy +3 -0
  371. package/build/_virtual/execute_db_admin_command.js_commonjs-proxy.map +1 -0
  372. package/build/_virtual/execute_operation.js_commonjs-proxy +3 -0
  373. package/build/_virtual/execute_operation.js_commonjs-proxy.map +1 -0
  374. package/build/_virtual/exists.js_commonjs-proxy +3 -0
  375. package/build/_virtual/exists.js_commonjs-proxy.map +1 -0
  376. package/build/_virtual/explain.js_commonjs-proxy +3 -0
  377. package/build/_virtual/explain.js_commonjs-proxy.map +1 -0
  378. package/build/_virtual/extension.js_commonjs-proxy +3 -0
  379. package/build/_virtual/extension.js_commonjs-proxy.map +1 -0
  380. package/build/_virtual/filter.js_commonjs-proxy +3 -0
  381. package/build/_virtual/filter.js_commonjs-proxy.map +1 -0
  382. package/build/_virtual/finally.js_commonjs-proxy +3 -0
  383. package/build/_virtual/finally.js_commonjs-proxy.map +1 -0
  384. package/build/_virtual/find.js_commonjs-proxy +3 -0
  385. package/build/_virtual/find.js_commonjs-proxy.map +1 -0
  386. package/build/_virtual/find_and_modify.js_commonjs-proxy +3 -0
  387. package/build/_virtual/find_and_modify.js_commonjs-proxy.map +1 -0
  388. package/build/_virtual/find_one.js_commonjs-proxy +3 -0
  389. package/build/_virtual/find_one.js_commonjs-proxy.map +1 -0
  390. package/build/_virtual/find_one_and_delete.js_commonjs-proxy +3 -0
  391. package/build/_virtual/find_one_and_delete.js_commonjs-proxy.map +1 -0
  392. package/build/_virtual/find_one_and_replace.js_commonjs-proxy +3 -0
  393. package/build/_virtual/find_one_and_replace.js_commonjs-proxy.map +1 -0
  394. package/build/_virtual/find_one_and_update.js_commonjs-proxy +3 -0
  395. package/build/_virtual/find_one_and_update.js_commonjs-proxy.map +1 -0
  396. package/build/_virtual/float_parser.js_commonjs-proxy +3 -0
  397. package/build/_virtual/float_parser.js_commonjs-proxy.map +1 -0
  398. package/build/_virtual/generators.js_commonjs-proxy +3 -0
  399. package/build/_virtual/generators.js_commonjs-proxy.map +1 -0
  400. package/build/_virtual/geo_haystack_search.js_commonjs-proxy +3 -0
  401. package/build/_virtual/geo_haystack_search.js_commonjs-proxy.map +1 -0
  402. package/build/_virtual/geospatial.js_commonjs-proxy +3 -0
  403. package/build/_virtual/geospatial.js_commonjs-proxy.map +1 -0
  404. package/build/_virtual/get.js_commonjs-proxy +3 -0
  405. package/build/_virtual/get.js_commonjs-proxy.map +1 -0
  406. package/build/_virtual/getConstructor.js_commonjs-proxy +3 -0
  407. package/build/_virtual/getConstructor.js_commonjs-proxy.map +1 -0
  408. package/build/_virtual/getDefaultBulkwriteResult.js_commonjs-proxy +3 -0
  409. package/build/_virtual/getDefaultBulkwriteResult.js_commonjs-proxy.map +1 -0
  410. package/build/_virtual/getDiscriminatorByValue.js_commonjs-proxy +3 -0
  411. package/build/_virtual/getDiscriminatorByValue.js_commonjs-proxy.map +1 -0
  412. package/build/_virtual/getEmbeddedDiscriminatorPath.js_commonjs-proxy +3 -0
  413. package/build/_virtual/getEmbeddedDiscriminatorPath.js_commonjs-proxy.map +1 -0
  414. package/build/_virtual/getEmbeddedDiscriminatorPath2.js_commonjs-proxy +3 -0
  415. package/build/_virtual/getEmbeddedDiscriminatorPath2.js_commonjs-proxy.map +1 -0
  416. package/build/_virtual/getFunctionName.js_commonjs-proxy +3 -0
  417. package/build/_virtual/getFunctionName.js_commonjs-proxy.map +1 -0
  418. package/build/_virtual/getIndexes.js_commonjs-proxy +3 -0
  419. package/build/_virtual/getIndexes.js_commonjs-proxy.map +1 -0
  420. package/build/_virtual/getModelsMapForPopulate.js_commonjs-proxy +3 -0
  421. package/build/_virtual/getModelsMapForPopulate.js_commonjs-proxy.map +1 -0
  422. package/build/_virtual/getPath.js_commonjs-proxy +3 -0
  423. package/build/_virtual/getPath.js_commonjs-proxy.map +1 -0
  424. package/build/_virtual/getSchemaDiscriminatorByValue.js_commonjs-proxy +3 -0
  425. package/build/_virtual/getSchemaDiscriminatorByValue.js_commonjs-proxy.map +1 -0
  426. package/build/_virtual/getSchemaTypes.js_commonjs-proxy +3 -0
  427. package/build/_virtual/getSchemaTypes.js_commonjs-proxy.map +1 -0
  428. package/build/_virtual/getVirtual.js_commonjs-proxy +3 -0
  429. package/build/_virtual/getVirtual.js_commonjs-proxy.map +1 -0
  430. package/build/_virtual/get_more.js_commonjs-proxy +3 -0
  431. package/build/_virtual/get_more.js_commonjs-proxy.map +1 -0
  432. package/build/_virtual/grid_store.js_commonjs-proxy +3 -0
  433. package/build/_virtual/grid_store.js_commonjs-proxy.map +1 -0
  434. package/build/_virtual/gssapi.js_commonjs-proxy +3 -0
  435. package/build/_virtual/gssapi.js_commonjs-proxy.map +1 -0
  436. package/build/_virtual/handleIdOption.js_commonjs-proxy +3 -0
  437. package/build/_virtual/handleIdOption.js_commonjs-proxy.map +1 -0
  438. package/build/_virtual/handleImmutable.js_commonjs-proxy +3 -0
  439. package/build/_virtual/handleImmutable.js_commonjs-proxy.map +1 -0
  440. package/build/_virtual/handleImmutable2.js_commonjs-proxy +3 -0
  441. package/build/_virtual/handleImmutable2.js_commonjs-proxy.map +1 -0
  442. package/build/_virtual/handleSpreadDoc.js_commonjs-proxy +3 -0
  443. package/build/_virtual/handleSpreadDoc.js_commonjs-proxy.map +1 -0
  444. package/build/_virtual/handleTimestampOption.js_commonjs-proxy +3 -0
  445. package/build/_virtual/handleTimestampOption.js_commonjs-proxy.map +1 -0
  446. package/build/_virtual/hasDollarKeys.js_commonjs-proxy +3 -0
  447. package/build/_virtual/hasDollarKeys.js_commonjs-proxy.map +1 -0
  448. package/build/_virtual/helpers.js_commonjs-proxy +3 -0
  449. package/build/_virtual/helpers.js_commonjs-proxy.map +1 -0
  450. package/build/_virtual/hiredis.js_commonjs-proxy +3 -0
  451. package/build/_virtual/hiredis.js_commonjs-proxy.map +1 -0
  452. package/build/_virtual/idGetter.js_commonjs-proxy +3 -0
  453. package/build/_virtual/idGetter.js_commonjs-proxy.map +1 -0
  454. package/build/_virtual/immediate.js_commonjs-proxy +3 -0
  455. package/build/_virtual/immediate.js_commonjs-proxy.map +1 -0
  456. package/build/_virtual/index.js_commonjs-proxy +3 -0
  457. package/build/_virtual/index.js_commonjs-proxy.map +1 -0
  458. package/build/_virtual/index10.js_commonjs-proxy +3 -0
  459. package/build/_virtual/index10.js_commonjs-proxy.map +1 -0
  460. package/build/_virtual/index11.js_commonjs-proxy +3 -0
  461. package/build/_virtual/index11.js_commonjs-proxy.map +1 -0
  462. package/build/_virtual/index12.js_commonjs-proxy +3 -0
  463. package/build/_virtual/index12.js_commonjs-proxy.map +1 -0
  464. package/build/_virtual/index13.js_commonjs-proxy +3 -0
  465. package/build/_virtual/index13.js_commonjs-proxy.map +1 -0
  466. package/build/_virtual/index14.js_commonjs-proxy +3 -0
  467. package/build/_virtual/index14.js_commonjs-proxy.map +1 -0
  468. package/build/_virtual/index15.js_commonjs-proxy +3 -0
  469. package/build/_virtual/index15.js_commonjs-proxy.map +1 -0
  470. package/build/_virtual/index16.js_commonjs-proxy +3 -0
  471. package/build/_virtual/index16.js_commonjs-proxy.map +1 -0
  472. package/build/_virtual/index17.js_commonjs-proxy +3 -0
  473. package/build/_virtual/index17.js_commonjs-proxy.map +1 -0
  474. package/build/_virtual/index18.js_commonjs-proxy +3 -0
  475. package/build/_virtual/index18.js_commonjs-proxy.map +1 -0
  476. package/build/_virtual/index19.js_commonjs-proxy +3 -0
  477. package/build/_virtual/index19.js_commonjs-proxy.map +1 -0
  478. package/build/_virtual/index2.js_commonjs-proxy +3 -0
  479. package/build/_virtual/index2.js_commonjs-proxy.map +1 -0
  480. package/build/_virtual/index20.js_commonjs-proxy +3 -0
  481. package/build/_virtual/index20.js_commonjs-proxy.map +1 -0
  482. package/build/_virtual/index21.js_commonjs-proxy +7 -0
  483. package/build/_virtual/index21.js_commonjs-proxy.map +1 -0
  484. package/build/_virtual/index22.js_commonjs-proxy +3 -0
  485. package/build/_virtual/index22.js_commonjs-proxy.map +1 -0
  486. package/build/_virtual/index23.js_commonjs-proxy +3 -0
  487. package/build/_virtual/index23.js_commonjs-proxy.map +1 -0
  488. package/build/_virtual/index24.js_commonjs-proxy +3 -0
  489. package/build/_virtual/index24.js_commonjs-proxy.map +1 -0
  490. package/build/_virtual/index25.js_commonjs-proxy +3 -0
  491. package/build/_virtual/index25.js_commonjs-proxy.map +1 -0
  492. package/build/_virtual/index26.js_commonjs-proxy +3 -0
  493. package/build/_virtual/index26.js_commonjs-proxy.map +1 -0
  494. package/build/_virtual/index27.js_commonjs-proxy +3 -0
  495. package/build/_virtual/index27.js_commonjs-proxy.map +1 -0
  496. package/build/_virtual/index28.js_commonjs-proxy +3 -0
  497. package/build/_virtual/index28.js_commonjs-proxy.map +1 -0
  498. package/build/_virtual/index29.js_commonjs-proxy +3 -0
  499. package/build/_virtual/index29.js_commonjs-proxy.map +1 -0
  500. package/build/_virtual/index3.js_commonjs-proxy +3 -0
  501. package/build/_virtual/index3.js_commonjs-proxy.map +1 -0
  502. package/build/_virtual/index30.js_commonjs-proxy +3 -0
  503. package/build/_virtual/index30.js_commonjs-proxy.map +1 -0
  504. package/build/_virtual/index31.js_commonjs-proxy +3 -0
  505. package/build/_virtual/index31.js_commonjs-proxy.map +1 -0
  506. package/build/_virtual/index4.js_commonjs-proxy +3 -0
  507. package/build/_virtual/index4.js_commonjs-proxy.map +1 -0
  508. package/build/_virtual/index5.js_commonjs-proxy +3 -0
  509. package/build/_virtual/index5.js_commonjs-proxy.map +1 -0
  510. package/build/_virtual/index6.js_commonjs-proxy +3 -0
  511. package/build/_virtual/index6.js_commonjs-proxy.map +1 -0
  512. package/build/_virtual/index7.js_commonjs-proxy +3 -0
  513. package/build/_virtual/index7.js_commonjs-proxy.map +1 -0
  514. package/build/_virtual/index8.js_commonjs-proxy +3 -0
  515. package/build/_virtual/index8.js_commonjs-proxy.map +1 -0
  516. package/build/_virtual/index9.js_commonjs-proxy +3 -0
  517. package/build/_virtual/index9.js_commonjs-proxy.map +1 -0
  518. package/build/_virtual/index_exists.js_commonjs-proxy +3 -0
  519. package/build/_virtual/index_exists.js_commonjs-proxy.map +1 -0
  520. package/build/_virtual/index_information.js_commonjs-proxy +3 -0
  521. package/build/_virtual/index_information.js_commonjs-proxy.map +1 -0
  522. package/build/_virtual/indexes.js_commonjs-proxy +3 -0
  523. package/build/_virtual/indexes.js_commonjs-proxy.map +1 -0
  524. package/build/_virtual/inherits.js_commonjs-proxy +3 -0
  525. package/build/_virtual/inherits.js_commonjs-proxy.map +1 -0
  526. package/build/_virtual/inherits_browser.js_commonjs-proxy +3 -0
  527. package/build/_virtual/inherits_browser.js_commonjs-proxy.map +1 -0
  528. package/build/_virtual/insert_many.js_commonjs-proxy +3 -0
  529. package/build/_virtual/insert_many.js_commonjs-proxy.map +1 -0
  530. package/build/_virtual/insert_one.js_commonjs-proxy +3 -0
  531. package/build/_virtual/insert_one.js_commonjs-proxy.map +1 -0
  532. package/build/_virtual/int_32.js_commonjs-proxy +3 -0
  533. package/build/_virtual/int_32.js_commonjs-proxy.map +1 -0
  534. package/build/_virtual/internal.js_commonjs-proxy +3 -0
  535. package/build/_virtual/internal.js_commonjs-proxy.map +1 -0
  536. package/build/_virtual/isAtlas.js_commonjs-proxy +3 -0
  537. package/build/_virtual/isAtlas.js_commonjs-proxy.map +1 -0
  538. package/build/_virtual/isBsonType.js_commonjs-proxy +3 -0
  539. package/build/_virtual/isBsonType.js_commonjs-proxy.map +1 -0
  540. package/build/_virtual/isDefaultIdIndex.js_commonjs-proxy +3 -0
  541. package/build/_virtual/isDefaultIdIndex.js_commonjs-proxy.map +1 -0
  542. package/build/_virtual/isDefiningProjection.js_commonjs-proxy +3 -0
  543. package/build/_virtual/isDefiningProjection.js_commonjs-proxy.map +1 -0
  544. package/build/_virtual/isExclusive.js_commonjs-proxy +3 -0
  545. package/build/_virtual/isExclusive.js_commonjs-proxy.map +1 -0
  546. package/build/_virtual/isInclusive.js_commonjs-proxy +3 -0
  547. package/build/_virtual/isInclusive.js_commonjs-proxy.map +1 -0
  548. package/build/_virtual/isIndexEqual.js_commonjs-proxy +3 -0
  549. package/build/_virtual/isIndexEqual.js_commonjs-proxy.map +1 -0
  550. package/build/_virtual/isMongooseObject.js_commonjs-proxy +3 -0
  551. package/build/_virtual/isMongooseObject.js_commonjs-proxy.map +1 -0
  552. package/build/_virtual/isObject.js_commonjs-proxy +3 -0
  553. package/build/_virtual/isObject.js_commonjs-proxy.map +1 -0
  554. package/build/_virtual/isOperator.js_commonjs-proxy +3 -0
  555. package/build/_virtual/isOperator.js_commonjs-proxy.map +1 -0
  556. package/build/_virtual/isPathExcluded.js_commonjs-proxy +3 -0
  557. package/build/_virtual/isPathExcluded.js_commonjs-proxy.map +1 -0
  558. package/build/_virtual/isPathSelectedInclusive.js_commonjs-proxy +3 -0
  559. package/build/_virtual/isPathSelectedInclusive.js_commonjs-proxy.map +1 -0
  560. package/build/_virtual/isPromise.js_commonjs-proxy +3 -0
  561. package/build/_virtual/isPromise.js_commonjs-proxy.map +1 -0
  562. package/build/_virtual/isSSLError.js_commonjs-proxy +3 -0
  563. package/build/_virtual/isSSLError.js_commonjs-proxy.map +1 -0
  564. package/build/_virtual/is_capped.js_commonjs-proxy +3 -0
  565. package/build/_virtual/is_capped.js_commonjs-proxy.map +1 -0
  566. package/build/_virtual/join.js_commonjs-proxy +3 -0
  567. package/build/_virtual/join.js_commonjs-proxy.map +1 -0
  568. package/build/_virtual/kill_cursors.js_commonjs-proxy +3 -0
  569. package/build/_virtual/kill_cursors.js_commonjs-proxy.map +1 -0
  570. package/build/_virtual/leanPopulateMap.js_commonjs-proxy +3 -0
  571. package/build/_virtual/leanPopulateMap.js_commonjs-proxy.map +1 -0
  572. package/build/_virtual/limiter.js_commonjs-proxy +3 -0
  573. package/build/_virtual/limiter.js_commonjs-proxy.map +1 -0
  574. package/build/_virtual/list_collections.js_commonjs-proxy +3 -0
  575. package/build/_virtual/list_collections.js_commonjs-proxy.map +1 -0
  576. package/build/_virtual/list_databases.js_commonjs-proxy +3 -0
  577. package/build/_virtual/list_databases.js_commonjs-proxy.map +1 -0
  578. package/build/_virtual/list_indexes.js_commonjs-proxy +3 -0
  579. package/build/_virtual/list_indexes.js_commonjs-proxy.map +1 -0
  580. package/build/_virtual/logger.js_commonjs-proxy +3 -0
  581. package/build/_virtual/logger.js_commonjs-proxy.map +1 -0
  582. package/build/_virtual/long.js_commonjs-proxy +3 -0
  583. package/build/_virtual/long.js_commonjs-proxy.map +1 -0
  584. package/build/_virtual/lookupLocalFields.js_commonjs-proxy +3 -0
  585. package/build/_virtual/lookupLocalFields.js_commonjs-proxy.map +1 -0
  586. package/build/_virtual/lru.js_commonjs-proxy +3 -0
  587. package/build/_virtual/lru.js_commonjs-proxy.map +1 -0
  588. package/build/_virtual/map.js_commonjs-proxy +3 -0
  589. package/build/_virtual/map.js_commonjs-proxy.map +1 -0
  590. package/build/_virtual/map2.js_commonjs-proxy +3 -0
  591. package/build/_virtual/map2.js_commonjs-proxy.map +1 -0
  592. package/build/_virtual/map3.js_commonjs-proxy +3 -0
  593. package/build/_virtual/map3.js_commonjs-proxy.map +1 -0
  594. package/build/_virtual/map4.js_commonjs-proxy +3 -0
  595. package/build/_virtual/map4.js_commonjs-proxy.map +1 -0
  596. package/build/_virtual/map_reduce.js_commonjs-proxy +3 -0
  597. package/build/_virtual/map_reduce.js_commonjs-proxy.map +1 -0
  598. package/build/_virtual/max_key.js_commonjs-proxy +3 -0
  599. package/build/_virtual/max_key.js_commonjs-proxy.map +1 -0
  600. package/build/_virtual/memory-code-points.js_commonjs-proxy +3 -0
  601. package/build/_virtual/memory-code-points.js_commonjs-proxy.map +1 -0
  602. package/build/_virtual/merge.js_commonjs-proxy +3 -0
  603. package/build/_virtual/merge.js_commonjs-proxy.map +1 -0
  604. package/build/_virtual/message_stream.js_commonjs-proxy +3 -0
  605. package/build/_virtual/message_stream.js_commonjs-proxy.map +1 -0
  606. package/build/_virtual/messages.js_commonjs-proxy +3 -0
  607. package/build/_virtual/messages.js_commonjs-proxy.map +1 -0
  608. package/build/_virtual/method.js_commonjs-proxy +3 -0
  609. package/build/_virtual/method.js_commonjs-proxy.map +1 -0
  610. package/build/_virtual/min_key.js_commonjs-proxy +3 -0
  611. package/build/_virtual/min_key.js_commonjs-proxy.map +1 -0
  612. package/build/_virtual/missingSchema.js_commonjs-proxy +3 -0
  613. package/build/_virtual/missingSchema.js_commonjs-proxy.map +1 -0
  614. package/build/_virtual/mixed.js_commonjs-proxy +3 -0
  615. package/build/_virtual/mixed.js_commonjs-proxy.map +1 -0
  616. package/build/_virtual/model.js_commonjs-proxy +3 -0
  617. package/build/_virtual/model.js_commonjs-proxy.map +1 -0
  618. package/build/_virtual/modifiedPaths.js_commonjs-proxy +3 -0
  619. package/build/_virtual/modifiedPaths.js_commonjs-proxy.map +1 -0
  620. package/build/_virtual/mongo_client.js_commonjs-proxy +3 -0
  621. package/build/_virtual/mongo_client.js_commonjs-proxy.map +1 -0
  622. package/build/_virtual/mongo_credentials.js_commonjs-proxy +3 -0
  623. package/build/_virtual/mongo_credentials.js_commonjs-proxy.map +1 -0
  624. package/build/_virtual/mongocr.js_commonjs-proxy +3 -0
  625. package/build/_virtual/mongocr.js_commonjs-proxy.map +1 -0
  626. package/build/_virtual/mongodb_aws.js_commonjs-proxy +3 -0
  627. package/build/_virtual/mongodb_aws.js_commonjs-proxy.map +1 -0
  628. package/build/_virtual/mongooseError.js_commonjs-proxy +3 -0
  629. package/build/_virtual/mongooseError.js_commonjs-proxy.map +1 -0
  630. package/build/_virtual/mongos.js_commonjs-proxy +3 -0
  631. package/build/_virtual/mongos.js_commonjs-proxy.map +1 -0
  632. package/build/_virtual/mongos2.js_commonjs-proxy +3 -0
  633. package/build/_virtual/mongos2.js_commonjs-proxy.map +1 -0
  634. package/build/_virtual/monitor.js_commonjs-proxy +3 -0
  635. package/build/_virtual/monitor.js_commonjs-proxy.map +1 -0
  636. package/build/_virtual/moveImmutableProperties.js_commonjs-proxy +3 -0
  637. package/build/_virtual/moveImmutableProperties.js_commonjs-proxy.map +1 -0
  638. package/build/_virtual/mquery.js_commonjs-proxy +3 -0
  639. package/build/_virtual/mquery.js_commonjs-proxy.map +1 -0
  640. package/build/_virtual/msg.js_commonjs-proxy +3 -0
  641. package/build/_virtual/msg.js_commonjs-proxy.map +1 -0
  642. package/build/_virtual/multi.js_commonjs-proxy +3 -0
  643. package/build/_virtual/multi.js_commonjs-proxy.map +1 -0
  644. package/build/_virtual/native_topology.js_commonjs-proxy +3 -0
  645. package/build/_virtual/native_topology.js_commonjs-proxy.map +1 -0
  646. package/build/_virtual/node.js_commonjs-proxy +3 -0
  647. package/build/_virtual/node.js_commonjs-proxy.map +1 -0
  648. package/build/_virtual/node2.js_commonjs-proxy +3 -0
  649. package/build/_virtual/node2.js_commonjs-proxy.map +1 -0
  650. package/build/_virtual/nodeback.js_commonjs-proxy +3 -0
  651. package/build/_virtual/nodeback.js_commonjs-proxy.map +1 -0
  652. package/build/_virtual/nodeify.js_commonjs-proxy +3 -0
  653. package/build/_virtual/nodeify.js_commonjs-proxy.map +1 -0
  654. package/build/_virtual/normalizeRefPath.js_commonjs-proxy +3 -0
  655. package/build/_virtual/normalizeRefPath.js_commonjs-proxy.map +1 -0
  656. package/build/_virtual/notFound.js_commonjs-proxy +3 -0
  657. package/build/_virtual/notFound.js_commonjs-proxy.map +1 -0
  658. package/build/_virtual/number.js_commonjs-proxy +3 -0
  659. package/build/_virtual/number.js_commonjs-proxy.map +1 -0
  660. package/build/_virtual/number2.js_commonjs-proxy +3 -0
  661. package/build/_virtual/number2.js_commonjs-proxy.map +1 -0
  662. package/build/_virtual/objectExpected.js_commonjs-proxy +3 -0
  663. package/build/_virtual/objectExpected.js_commonjs-proxy.map +1 -0
  664. package/build/_virtual/objectParameter.js_commonjs-proxy +3 -0
  665. package/build/_virtual/objectParameter.js_commonjs-proxy.map +1 -0
  666. package/build/_virtual/objectid.js_commonjs-proxy +3 -0
  667. package/build/_virtual/objectid.js_commonjs-proxy.map +1 -0
  668. package/build/_virtual/objectid2.js_commonjs-proxy +3 -0
  669. package/build/_virtual/objectid2.js_commonjs-proxy.map +1 -0
  670. package/build/_virtual/objectid3.js_commonjs-proxy +3 -0
  671. package/build/_virtual/objectid3.js_commonjs-proxy.map +1 -0
  672. package/build/_virtual/objectid4.js_commonjs-proxy +3 -0
  673. package/build/_virtual/objectid4.js_commonjs-proxy.map +1 -0
  674. package/build/_virtual/objectid5.js_commonjs-proxy +3 -0
  675. package/build/_virtual/objectid5.js_commonjs-proxy.map +1 -0
  676. package/build/_virtual/operation.js_commonjs-proxy +3 -0
  677. package/build/_virtual/operation.js_commonjs-proxy.map +1 -0
  678. package/build/_virtual/options.js_commonjs-proxy +3 -0
  679. package/build/_virtual/options.js_commonjs-proxy.map +1 -0
  680. package/build/_virtual/options_operation.js_commonjs-proxy +3 -0
  681. package/build/_virtual/options_operation.js_commonjs-proxy.map +1 -0
  682. package/build/_virtual/ordered.js_commonjs-proxy +3 -0
  683. package/build/_virtual/ordered.js_commonjs-proxy.map +1 -0
  684. package/build/_virtual/overwriteModel.js_commonjs-proxy +3 -0
  685. package/build/_virtual/overwriteModel.js_commonjs-proxy.map +1 -0
  686. package/build/_virtual/parallelLimit.js_commonjs-proxy +3 -0
  687. package/build/_virtual/parallelLimit.js_commonjs-proxy.map +1 -0
  688. package/build/_virtual/parallelSave.js_commonjs-proxy +3 -0
  689. package/build/_virtual/parallelSave.js_commonjs-proxy.map +1 -0
  690. package/build/_virtual/parallelValidate.js_commonjs-proxy +3 -0
  691. package/build/_virtual/parallelValidate.js_commonjs-proxy.map +1 -0
  692. package/build/_virtual/parentPaths.js_commonjs-proxy +3 -0
  693. package/build/_virtual/parentPaths.js_commonjs-proxy.map +1 -0
  694. package/build/_virtual/parseProjection.js_commonjs-proxy +3 -0
  695. package/build/_virtual/parseProjection.js_commonjs-proxy.map +1 -0
  696. package/build/_virtual/parser.js_commonjs-proxy +3 -0
  697. package/build/_virtual/parser.js_commonjs-proxy.map +1 -0
  698. package/build/_virtual/parserError.js_commonjs-proxy +3 -0
  699. package/build/_virtual/parserError.js_commonjs-proxy.map +1 -0
  700. package/build/_virtual/permessage-deflate.js_commonjs-proxy +3 -0
  701. package/build/_virtual/permessage-deflate.js_commonjs-proxy.map +1 -0
  702. package/build/_virtual/permissions.js_commonjs-proxy +3 -0
  703. package/build/_virtual/permissions.js_commonjs-proxy.map +1 -0
  704. package/build/_virtual/plain.js_commonjs-proxy +3 -0
  705. package/build/_virtual/plain.js_commonjs-proxy.map +1 -0
  706. package/build/_virtual/pool.js_commonjs-proxy +3 -0
  707. package/build/_virtual/pool.js_commonjs-proxy.map +1 -0
  708. package/build/_virtual/profiling_level.js_commonjs-proxy +3 -0
  709. package/build/_virtual/profiling_level.js_commonjs-proxy.map +1 -0
  710. package/build/_virtual/promise.js_commonjs-proxy +3 -0
  711. package/build/_virtual/promise.js_commonjs-proxy.map +1 -0
  712. package/build/_virtual/promiseOrCallback.js_commonjs-proxy +3 -0
  713. package/build/_virtual/promiseOrCallback.js_commonjs-proxy.map +1 -0
  714. package/build/_virtual/promise_array.js_commonjs-proxy +3 -0
  715. package/build/_virtual/promise_array.js_commonjs-proxy.map +1 -0
  716. package/build/_virtual/promise_provider.js_commonjs-proxy +3 -0
  717. package/build/_virtual/promise_provider.js_commonjs-proxy.map +1 -0
  718. package/build/_virtual/promisify.js_commonjs-proxy +3 -0
  719. package/build/_virtual/promisify.js_commonjs-proxy.map +1 -0
  720. package/build/_virtual/propertyOptions.js_commonjs-proxy +3 -0
  721. package/build/_virtual/propertyOptions.js_commonjs-proxy.map +1 -0
  722. package/build/_virtual/props.js_commonjs-proxy +3 -0
  723. package/build/_virtual/props.js_commonjs-proxy.map +1 -0
  724. package/build/_virtual/query.js_commonjs-proxy +3 -0
  725. package/build/_virtual/query.js_commonjs-proxy.map +1 -0
  726. package/build/_virtual/query2.js_commonjs-proxy +3 -0
  727. package/build/_virtual/query2.js_commonjs-proxy.map +1 -0
  728. package/build/_virtual/queryhelpers.js_commonjs-proxy +3 -0
  729. package/build/_virtual/queryhelpers.js_commonjs-proxy.map +1 -0
  730. package/build/_virtual/queue.js_commonjs-proxy +3 -0
  731. package/build/_virtual/queue.js_commonjs-proxy.map +1 -0
  732. package/build/_virtual/race.js_commonjs-proxy +3 -0
  733. package/build/_virtual/race.js_commonjs-proxy.map +1 -0
  734. package/build/_virtual/re_index.js_commonjs-proxy +3 -0
  735. package/build/_virtual/re_index.js_commonjs-proxy.map +1 -0
  736. package/build/_virtual/read_concern.js_commonjs-proxy +3 -0
  737. package/build/_virtual/read_concern.js_commonjs-proxy.map +1 -0
  738. package/build/_virtual/read_preference.js_commonjs-proxy +3 -0
  739. package/build/_virtual/read_preference.js_commonjs-proxy.map +1 -0
  740. package/build/_virtual/readable.js_commonjs-proxy +3 -0
  741. package/build/_virtual/readable.js_commonjs-proxy.map +1 -0
  742. package/build/_virtual/receiver.js_commonjs-proxy +3 -0
  743. package/build/_virtual/receiver.js_commonjs-proxy.map +1 -0
  744. package/build/_virtual/redisError.js_commonjs-proxy +3 -0
  745. package/build/_virtual/redisError.js_commonjs-proxy.map +1 -0
  746. package/build/_virtual/reduce.js_commonjs-proxy +3 -0
  747. package/build/_virtual/reduce.js_commonjs-proxy.map +1 -0
  748. package/build/_virtual/regexp.js_commonjs-proxy +3 -0
  749. package/build/_virtual/regexp.js_commonjs-proxy.map +1 -0
  750. package/build/_virtual/removeDeselectedForeignField.js_commonjs-proxy +3 -0
  751. package/build/_virtual/removeDeselectedForeignField.js_commonjs-proxy.map +1 -0
  752. package/build/_virtual/removeOptions.js_commonjs-proxy +3 -0
  753. package/build/_virtual/removeOptions.js_commonjs-proxy.map +1 -0
  754. package/build/_virtual/removeSubdocs.js_commonjs-proxy +3 -0
  755. package/build/_virtual/removeSubdocs.js_commonjs-proxy.map +1 -0
  756. package/build/_virtual/removeUnusedArrayFilters.js_commonjs-proxy +3 -0
  757. package/build/_virtual/removeUnusedArrayFilters.js_commonjs-proxy.map +1 -0
  758. package/build/_virtual/remove_user.js_commonjs-proxy +3 -0
  759. package/build/_virtual/remove_user.js_commonjs-proxy.map +1 -0
  760. package/build/_virtual/rename.js_commonjs-proxy +3 -0
  761. package/build/_virtual/rename.js_commonjs-proxy.map +1 -0
  762. package/build/_virtual/replace_one.js_commonjs-proxy +3 -0
  763. package/build/_virtual/replace_one.js_commonjs-proxy.map +1 -0
  764. package/build/_virtual/replset.js_commonjs-proxy +3 -0
  765. package/build/_virtual/replset.js_commonjs-proxy.map +1 -0
  766. package/build/_virtual/replset2.js_commonjs-proxy +3 -0
  767. package/build/_virtual/replset2.js_commonjs-proxy.map +1 -0
  768. package/build/_virtual/replset_state.js_commonjs-proxy +3 -0
  769. package/build/_virtual/replset_state.js_commonjs-proxy.map +1 -0
  770. package/build/_virtual/replyError.js_commonjs-proxy +3 -0
  771. package/build/_virtual/replyError.js_commonjs-proxy.map +1 -0
  772. package/build/_virtual/run_command.js_commonjs-proxy +3 -0
  773. package/build/_virtual/run_command.js_commonjs-proxy.map +1 -0
  774. package/build/_virtual/sanitizeProjection.js_commonjs-proxy +3 -0
  775. package/build/_virtual/sanitizeProjection.js_commonjs-proxy.map +1 -0
  776. package/build/_virtual/saveOptions.js_commonjs-proxy +3 -0
  777. package/build/_virtual/saveOptions.js_commonjs-proxy.map +1 -0
  778. package/build/_virtual/saveSubdocs.js_commonjs-proxy +3 -0
  779. package/build/_virtual/saveSubdocs.js_commonjs-proxy.map +1 -0
  780. package/build/_virtual/schedule.js_commonjs-proxy +3 -0
  781. package/build/_virtual/schedule.js_commonjs-proxy.map +1 -0
  782. package/build/_virtual/schema.js_commonjs-proxy +3 -0
  783. package/build/_virtual/schema.js_commonjs-proxy.map +1 -0
  784. package/build/_virtual/schematype.js_commonjs-proxy +3 -0
  785. package/build/_virtual/schematype.js_commonjs-proxy.map +1 -0
  786. package/build/_virtual/scram.js_commonjs-proxy +3 -0
  787. package/build/_virtual/scram.js_commonjs-proxy.map +1 -0
  788. package/build/_virtual/selectPopulatedFields.js_commonjs-proxy +3 -0
  789. package/build/_virtual/selectPopulatedFields.js_commonjs-proxy.map +1 -0
  790. package/build/_virtual/sender.js_commonjs-proxy +3 -0
  791. package/build/_virtual/sender.js_commonjs-proxy.map +1 -0
  792. package/build/_virtual/serializer.js_commonjs-proxy +3 -0
  793. package/build/_virtual/serializer.js_commonjs-proxy.map +1 -0
  794. package/build/_virtual/server.js_commonjs-proxy +3 -0
  795. package/build/_virtual/server.js_commonjs-proxy.map +1 -0
  796. package/build/_virtual/server2.js_commonjs-proxy +3 -0
  797. package/build/_virtual/server2.js_commonjs-proxy.map +1 -0
  798. package/build/_virtual/server3.js_commonjs-proxy +3 -0
  799. package/build/_virtual/server3.js_commonjs-proxy.map +1 -0
  800. package/build/_virtual/serverSelection.js_commonjs-proxy +3 -0
  801. package/build/_virtual/serverSelection.js_commonjs-proxy.map +1 -0
  802. package/build/_virtual/server_description.js_commonjs-proxy +3 -0
  803. package/build/_virtual/server_description.js_commonjs-proxy.map +1 -0
  804. package/build/_virtual/server_selection.js_commonjs-proxy +3 -0
  805. package/build/_virtual/server_selection.js_commonjs-proxy.map +1 -0
  806. package/build/_virtual/sessions.js_commonjs-proxy +3 -0
  807. package/build/_virtual/sessions.js_commonjs-proxy.map +1 -0
  808. package/build/_virtual/setDefaultsOnInsert.js_commonjs-proxy +3 -0
  809. package/build/_virtual/setDefaultsOnInsert.js_commonjs-proxy.map +1 -0
  810. package/build/_virtual/setDottedPath.js_commonjs-proxy +3 -0
  811. package/build/_virtual/setDottedPath.js_commonjs-proxy.map +1 -0
  812. package/build/_virtual/set_profiling_level.js_commonjs-proxy +3 -0
  813. package/build/_virtual/set_profiling_level.js_commonjs-proxy.map +1 -0
  814. package/build/_virtual/settle.js_commonjs-proxy +3 -0
  815. package/build/_virtual/settle.js_commonjs-proxy.map +1 -0
  816. package/build/_virtual/setupTimestamps.js_commonjs-proxy +3 -0
  817. package/build/_virtual/setupTimestamps.js_commonjs-proxy.map +1 -0
  818. package/build/_virtual/sharding.js_commonjs-proxy +3 -0
  819. package/build/_virtual/sharding.js_commonjs-proxy.map +1 -0
  820. package/build/_virtual/shared.js_commonjs-proxy +3 -0
  821. package/build/_virtual/shared.js_commonjs-proxy.map +1 -0
  822. package/build/_virtual/shared2.js_commonjs-proxy +3 -0
  823. package/build/_virtual/shared2.js_commonjs-proxy.map +1 -0
  824. package/build/_virtual/some.js_commonjs-proxy +3 -0
  825. package/build/_virtual/some.js_commonjs-proxy.map +1 -0
  826. package/build/_virtual/specialProperties.js_commonjs-proxy +3 -0
  827. package/build/_virtual/specialProperties.js_commonjs-proxy.map +1 -0
  828. package/build/_virtual/srv_polling.js_commonjs-proxy +3 -0
  829. package/build/_virtual/srv_polling.js_commonjs-proxy.map +1 -0
  830. package/build/_virtual/statemachine.js_commonjs-proxy +3 -0
  831. package/build/_virtual/statemachine.js_commonjs-proxy.map +1 -0
  832. package/build/_virtual/stats.js_commonjs-proxy +3 -0
  833. package/build/_virtual/stats.js_commonjs-proxy.map +1 -0
  834. package/build/_virtual/stream.js_commonjs-proxy +3 -0
  835. package/build/_virtual/stream.js_commonjs-proxy.map +1 -0
  836. package/build/_virtual/stream2.js_commonjs-proxy +3 -0
  837. package/build/_virtual/stream2.js_commonjs-proxy.map +1 -0
  838. package/build/_virtual/stream_description.js_commonjs-proxy +3 -0
  839. package/build/_virtual/stream_description.js_commonjs-proxy.map +1 -0
  840. package/build/_virtual/strict.js_commonjs-proxy +3 -0
  841. package/build/_virtual/strict.js_commonjs-proxy.map +1 -0
  842. package/build/_virtual/string.js_commonjs-proxy +3 -0
  843. package/build/_virtual/string.js_commonjs-proxy.map +1 -0
  844. package/build/_virtual/string2.js_commonjs-proxy +3 -0
  845. package/build/_virtual/string2.js_commonjs-proxy.map +1 -0
  846. package/build/_virtual/stringToParts.js_commonjs-proxy +3 -0
  847. package/build/_virtual/stringToParts.js_commonjs-proxy.map +1 -0
  848. package/build/_virtual/string_decoder.js_commonjs-proxy +3 -0
  849. package/build/_virtual/string_decoder.js_commonjs-proxy.map +1 -0
  850. package/build/_virtual/stringifyFunctionOperators.js_commonjs-proxy +3 -0
  851. package/build/_virtual/stringifyFunctionOperators.js_commonjs-proxy.map +1 -0
  852. package/build/_virtual/subdocument.js_commonjs-proxy +3 -0
  853. package/build/_virtual/subdocument.js_commonjs-proxy.map +1 -0
  854. package/build/_virtual/symbol.js_commonjs-proxy +3 -0
  855. package/build/_virtual/symbol.js_commonjs-proxy.map +1 -0
  856. package/build/_virtual/symbols.js_commonjs-proxy +3 -0
  857. package/build/_virtual/symbols.js_commonjs-proxy.map +1 -0
  858. package/build/_virtual/symbols2.js_commonjs-proxy +3 -0
  859. package/build/_virtual/symbols2.js_commonjs-proxy.map +1 -0
  860. package/build/_virtual/synchronous_inspection.js_commonjs-proxy +3 -0
  861. package/build/_virtual/synchronous_inspection.js_commonjs-proxy.map +1 -0
  862. package/build/_virtual/text.js_commonjs-proxy +3 -0
  863. package/build/_virtual/text.js_commonjs-proxy.map +1 -0
  864. package/build/_virtual/thenables.js_commonjs-proxy +3 -0
  865. package/build/_virtual/thenables.js_commonjs-proxy.map +1 -0
  866. package/build/_virtual/timers.js_commonjs-proxy +3 -0
  867. package/build/_virtual/timers.js_commonjs-proxy.map +1 -0
  868. package/build/_virtual/timers2.js_commonjs-proxy +3 -0
  869. package/build/_virtual/timers2.js_commonjs-proxy.map +1 -0
  870. package/build/_virtual/timestamp.js_commonjs-proxy +3 -0
  871. package/build/_virtual/timestamp.js_commonjs-proxy.map +1 -0
  872. package/build/_virtual/topology.js_commonjs-proxy +3 -0
  873. package/build/_virtual/topology.js_commonjs-proxy.map +1 -0
  874. package/build/_virtual/topology_base.js_commonjs-proxy +3 -0
  875. package/build/_virtual/topology_base.js_commonjs-proxy.map +1 -0
  876. package/build/_virtual/topology_description.js_commonjs-proxy +3 -0
  877. package/build/_virtual/topology_description.js_commonjs-proxy.map +1 -0
  878. package/build/_virtual/trackTransaction.js_commonjs-proxy +3 -0
  879. package/build/_virtual/trackTransaction.js_commonjs-proxy.map +1 -0
  880. package/build/_virtual/transactions.js_commonjs-proxy +3 -0
  881. package/build/_virtual/transactions.js_commonjs-proxy.map +1 -0
  882. package/build/_virtual/type.js_commonjs-proxy +3 -0
  883. package/build/_virtual/type.js_commonjs-proxy.map +1 -0
  884. package/build/_virtual/unordered.js_commonjs-proxy +3 -0
  885. package/build/_virtual/unordered.js_commonjs-proxy.map +1 -0
  886. package/build/_virtual/updateValidators.js_commonjs-proxy +3 -0
  887. package/build/_virtual/updateValidators.js_commonjs-proxy.map +1 -0
  888. package/build/_virtual/update_many.js_commonjs-proxy +3 -0
  889. package/build/_virtual/update_many.js_commonjs-proxy.map +1 -0
  890. package/build/_virtual/update_one.js_commonjs-proxy +3 -0
  891. package/build/_virtual/update_one.js_commonjs-proxy.map +1 -0
  892. package/build/_virtual/updatedPathsByArrayFilter.js_commonjs-proxy +3 -0
  893. package/build/_virtual/updatedPathsByArrayFilter.js_commonjs-proxy.map +1 -0
  894. package/build/_virtual/upload.js_commonjs-proxy +3 -0
  895. package/build/_virtual/upload.js_commonjs-proxy.map +1 -0
  896. package/build/_virtual/uri_parser.js_commonjs-proxy +3 -0
  897. package/build/_virtual/uri_parser.js_commonjs-proxy.map +1 -0
  898. package/build/_virtual/url_parser.js_commonjs-proxy +3 -0
  899. package/build/_virtual/url_parser.js_commonjs-proxy.map +1 -0
  900. package/build/_virtual/using.js_commonjs-proxy +3 -0
  901. package/build/_virtual/using.js_commonjs-proxy.map +1 -0
  902. package/build/_virtual/util.js_commonjs-proxy +3 -0
  903. package/build/_virtual/util.js_commonjs-proxy.map +1 -0
  904. package/build/_virtual/util2.js_commonjs-proxy +3 -0
  905. package/build/_virtual/util2.js_commonjs-proxy.map +1 -0
  906. package/build/_virtual/utils.js_commonjs-proxy +3 -0
  907. package/build/_virtual/utils.js_commonjs-proxy.map +1 -0
  908. package/build/_virtual/utils2.js_commonjs-proxy +3 -0
  909. package/build/_virtual/utils2.js_commonjs-proxy.map +1 -0
  910. package/build/_virtual/utils3.js_commonjs-proxy +3 -0
  911. package/build/_virtual/utils3.js_commonjs-proxy.map +1 -0
  912. package/build/_virtual/utils4.js_commonjs-proxy +3 -0
  913. package/build/_virtual/utils4.js_commonjs-proxy.map +1 -0
  914. package/build/_virtual/utils5.js_commonjs-proxy +3 -0
  915. package/build/_virtual/utils5.js_commonjs-proxy.map +1 -0
  916. package/build/_virtual/utils6.js_commonjs-proxy +3 -0
  917. package/build/_virtual/utils6.js_commonjs-proxy.map +1 -0
  918. package/build/_virtual/utils7.js_commonjs-proxy +3 -0
  919. package/build/_virtual/utils7.js_commonjs-proxy.map +1 -0
  920. package/build/_virtual/validateBeforeSave.js_commonjs-proxy +3 -0
  921. package/build/_virtual/validateBeforeSave.js_commonjs-proxy.map +1 -0
  922. package/build/_virtual/validateRef.js_commonjs-proxy +3 -0
  923. package/build/_virtual/validateRef.js_commonjs-proxy.map +1 -0
  924. package/build/_virtual/validate_collection.js_commonjs-proxy +3 -0
  925. package/build/_virtual/validate_collection.js_commonjs-proxy.map +1 -0
  926. package/build/_virtual/validation.js_commonjs-proxy +3 -0
  927. package/build/_virtual/validation.js_commonjs-proxy.map +1 -0
  928. package/build/_virtual/validation2.js_commonjs-proxy +3 -0
  929. package/build/_virtual/validation2.js_commonjs-proxy.map +1 -0
  930. package/build/_virtual/validator.js_commonjs-proxy +3 -0
  931. package/build/_virtual/validator.js_commonjs-proxy.map +1 -0
  932. package/build/_virtual/validoptions.js_commonjs-proxy +3 -0
  933. package/build/_virtual/validoptions.js_commonjs-proxy.map +1 -0
  934. package/build/_virtual/version.js_commonjs-proxy +3 -0
  935. package/build/_virtual/version.js_commonjs-proxy.map +1 -0
  936. package/build/_virtual/virtualtype.js_commonjs-proxy +3 -0
  937. package/build/_virtual/virtualtype.js_commonjs-proxy.map +1 -0
  938. package/build/_virtual/websocket-server.js_commonjs-proxy +3 -0
  939. package/build/_virtual/websocket-server.js_commonjs-proxy.map +1 -0
  940. package/build/_virtual/websocket.js_commonjs-proxy +3 -0
  941. package/build/_virtual/websocket.js_commonjs-proxy.map +1 -0
  942. package/build/_virtual/wrapThunk.js_commonjs-proxy +3 -0
  943. package/build/_virtual/wrapThunk.js_commonjs-proxy.map +1 -0
  944. package/build/_virtual/write_command.js_commonjs-proxy +3 -0
  945. package/build/_virtual/write_command.js_commonjs-proxy.map +1 -0
  946. package/build/_virtual/write_concern.js_commonjs-proxy +3 -0
  947. package/build/_virtual/write_concern.js_commonjs-proxy.map +1 -0
  948. package/build/_virtual/x509.js_commonjs-proxy +3 -0
  949. package/build/_virtual/x509.js_commonjs-proxy.map +1 -0
  950. package/build/bundles/colyseus/build/index.mjs +13 -0
  951. package/build/bundles/colyseus/build/index.mjs.js +25 -0
  952. package/build/bundles/colyseus/build/index.mjs.js.map +1 -0
  953. package/build/bundles/colyseus/build/index.mjs.map +1 -0
  954. package/build/matchmaker/controller.js +3 -1
  955. package/build/matchmaker/controller.js.map +1 -1
  956. package/build/matchmaker/controller.mjs +3 -1
  957. package/build/matchmaker/controller.mjs.map +1 -1
  958. package/build/node_modules/aws4/aws4.js +388 -0
  959. package/build/node_modules/aws4/aws4.js.map +1 -0
  960. package/build/node_modules/aws4/aws4.mjs +380 -0
  961. package/build/node_modules/aws4/aws4.mjs.map +1 -0
  962. package/build/node_modules/aws4/lru.js +101 -0
  963. package/build/node_modules/aws4/lru.js.map +1 -0
  964. package/build/node_modules/aws4/lru.mjs +99 -0
  965. package/build/node_modules/aws4/lru.mjs.map +1 -0
  966. package/build/node_modules/bl/bl.js +403 -0
  967. package/build/node_modules/bl/bl.js.map +1 -0
  968. package/build/node_modules/bl/bl.mjs +397 -0
  969. package/build/node_modules/bl/bl.mjs.map +1 -0
  970. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +114 -0
  971. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js.map +1 -0
  972. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.mjs +112 -0
  973. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.mjs.map +1 -0
  974. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +29 -0
  975. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js.map +1 -0
  976. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.mjs +27 -0
  977. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.mjs.map +1 -0
  978. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +1020 -0
  979. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js.map +1 -0
  980. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.mjs +1013 -0
  981. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.mjs.map +1 -0
  982. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +158 -0
  983. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js.map +1 -0
  984. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.mjs +156 -0
  985. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.mjs.map +1 -0
  986. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +667 -0
  987. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js.map +1 -0
  988. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.mjs +665 -0
  989. package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.mjs.map +1 -0
  990. package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/BufferList.js +93 -0
  991. package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/BufferList.js.map +1 -0
  992. package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/BufferList.mjs +87 -0
  993. package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/BufferList.mjs.map +1 -0
  994. package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js +79 -0
  995. package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js.map +1 -0
  996. package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.mjs +77 -0
  997. package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.mjs.map +1 -0
  998. package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.js +12 -0
  999. package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.js.map +1 -0
  1000. package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.mjs +6 -0
  1001. package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.mjs.map +1 -0
  1002. package/build/node_modules/bl/node_modules/readable-stream/readable.js +37 -0
  1003. package/build/node_modules/bl/node_modules/readable-stream/readable.js.map +1 -0
  1004. package/build/node_modules/bl/node_modules/readable-stream/readable.mjs +31 -0
  1005. package/build/node_modules/bl/node_modules/readable-stream/readable.mjs.map +1 -0
  1006. package/build/node_modules/bl/node_modules/string_decoder/lib/string_decoder.js +286 -0
  1007. package/build/node_modules/bl/node_modules/string_decoder/lib/string_decoder.js.map +1 -0
  1008. package/build/node_modules/bl/node_modules/string_decoder/lib/string_decoder.mjs +282 -0
  1009. package/build/node_modules/bl/node_modules/string_decoder/lib/string_decoder.mjs.map +1 -0
  1010. package/build/node_modules/bluebird/js/release/any.js +25 -0
  1011. package/build/node_modules/bluebird/js/release/any.js.map +1 -0
  1012. package/build/node_modules/bluebird/js/release/any.mjs +23 -0
  1013. package/build/node_modules/bluebird/js/release/any.mjs.map +1 -0
  1014. package/build/node_modules/bluebird/js/release/async.js +173 -0
  1015. package/build/node_modules/bluebird/js/release/async.js.map +1 -0
  1016. package/build/node_modules/bluebird/js/release/async.mjs +169 -0
  1017. package/build/node_modules/bluebird/js/release/async.mjs.map +1 -0
  1018. package/build/node_modules/bluebird/js/release/bind.js +71 -0
  1019. package/build/node_modules/bluebird/js/release/bind.js.map +1 -0
  1020. package/build/node_modules/bluebird/js/release/bind.mjs +69 -0
  1021. package/build/node_modules/bluebird/js/release/bind.mjs.map +1 -0
  1022. package/build/node_modules/bluebird/js/release/bluebird.js +17 -0
  1023. package/build/node_modules/bluebird/js/release/bluebird.js.map +1 -0
  1024. package/build/node_modules/bluebird/js/release/bluebird.mjs +15 -0
  1025. package/build/node_modules/bluebird/js/release/bluebird.mjs.map +1 -0
  1026. package/build/node_modules/bluebird/js/release/call_get.js +128 -0
  1027. package/build/node_modules/bluebird/js/release/call_get.js.map +1 -0
  1028. package/build/node_modules/bluebird/js/release/call_get.mjs +126 -0
  1029. package/build/node_modules/bluebird/js/release/call_get.mjs.map +1 -0
  1030. package/build/node_modules/bluebird/js/release/cancel.js +135 -0
  1031. package/build/node_modules/bluebird/js/release/cancel.js.map +1 -0
  1032. package/build/node_modules/bluebird/js/release/cancel.mjs +133 -0
  1033. package/build/node_modules/bluebird/js/release/cancel.mjs.map +1 -0
  1034. package/build/node_modules/bluebird/js/release/catch_filter.js +49 -0
  1035. package/build/node_modules/bluebird/js/release/catch_filter.js.map +1 -0
  1036. package/build/node_modules/bluebird/js/release/catch_filter.mjs +47 -0
  1037. package/build/node_modules/bluebird/js/release/catch_filter.mjs.map +1 -0
  1038. package/build/node_modules/bluebird/js/release/context.js +73 -0
  1039. package/build/node_modules/bluebird/js/release/context.js.map +1 -0
  1040. package/build/node_modules/bluebird/js/release/context.mjs +71 -0
  1041. package/build/node_modules/bluebird/js/release/context.mjs.map +1 -0
  1042. package/build/node_modules/bluebird/js/release/debuggability.js +922 -0
  1043. package/build/node_modules/bluebird/js/release/debuggability.js.map +1 -0
  1044. package/build/node_modules/bluebird/js/release/debuggability.mjs +920 -0
  1045. package/build/node_modules/bluebird/js/release/debuggability.mjs.map +1 -0
  1046. package/build/node_modules/bluebird/js/release/direct_resolve.js +50 -0
  1047. package/build/node_modules/bluebird/js/release/direct_resolve.js.map +1 -0
  1048. package/build/node_modules/bluebird/js/release/direct_resolve.mjs +48 -0
  1049. package/build/node_modules/bluebird/js/release/direct_resolve.mjs.map +1 -0
  1050. package/build/node_modules/bluebird/js/release/each.js +33 -0
  1051. package/build/node_modules/bluebird/js/release/each.js.map +1 -0
  1052. package/build/node_modules/bluebird/js/release/each.mjs +31 -0
  1053. package/build/node_modules/bluebird/js/release/each.mjs.map +1 -0
  1054. package/build/node_modules/bluebird/js/release/errors.js +122 -0
  1055. package/build/node_modules/bluebird/js/release/errors.js.map +1 -0
  1056. package/build/node_modules/bluebird/js/release/errors.mjs +120 -0
  1057. package/build/node_modules/bluebird/js/release/errors.mjs.map +1 -0
  1058. package/build/node_modules/bluebird/js/release/es5.js +88 -0
  1059. package/build/node_modules/bluebird/js/release/es5.js.map +1 -0
  1060. package/build/node_modules/bluebird/js/release/es5.mjs +86 -0
  1061. package/build/node_modules/bluebird/js/release/es5.mjs.map +1 -0
  1062. package/build/node_modules/bluebird/js/release/filter.js +16 -0
  1063. package/build/node_modules/bluebird/js/release/filter.js.map +1 -0
  1064. package/build/node_modules/bluebird/js/release/filter.mjs +14 -0
  1065. package/build/node_modules/bluebird/js/release/filter.mjs.map +1 -0
  1066. package/build/node_modules/bluebird/js/release/finally.js +153 -0
  1067. package/build/node_modules/bluebird/js/release/finally.js.map +1 -0
  1068. package/build/node_modules/bluebird/js/release/finally.mjs +151 -0
  1069. package/build/node_modules/bluebird/js/release/finally.mjs.map +1 -0
  1070. package/build/node_modules/bluebird/js/release/generators.js +229 -0
  1071. package/build/node_modules/bluebird/js/release/generators.js.map +1 -0
  1072. package/build/node_modules/bluebird/js/release/generators.mjs +227 -0
  1073. package/build/node_modules/bluebird/js/release/generators.mjs.map +1 -0
  1074. package/build/node_modules/bluebird/js/release/join.js +172 -0
  1075. package/build/node_modules/bluebird/js/release/join.js.map +1 -0
  1076. package/build/node_modules/bluebird/js/release/join.mjs +170 -0
  1077. package/build/node_modules/bluebird/js/release/join.mjs.map +1 -0
  1078. package/build/node_modules/bluebird/js/release/map.js +173 -0
  1079. package/build/node_modules/bluebird/js/release/map.js.map +1 -0
  1080. package/build/node_modules/bluebird/js/release/map.mjs +171 -0
  1081. package/build/node_modules/bluebird/js/release/map.mjs.map +1 -0
  1082. package/build/node_modules/bluebird/js/release/method.js +61 -0
  1083. package/build/node_modules/bluebird/js/release/method.js.map +1 -0
  1084. package/build/node_modules/bluebird/js/release/method.mjs +59 -0
  1085. package/build/node_modules/bluebird/js/release/method.mjs.map +1 -0
  1086. package/build/node_modules/bluebird/js/release/nodeback.js +57 -0
  1087. package/build/node_modules/bluebird/js/release/nodeback.js.map +1 -0
  1088. package/build/node_modules/bluebird/js/release/nodeback.mjs +55 -0
  1089. package/build/node_modules/bluebird/js/release/nodeback.mjs.map +1 -0
  1090. package/build/node_modules/bluebird/js/release/nodeify.js +64 -0
  1091. package/build/node_modules/bluebird/js/release/nodeify.js.map +1 -0
  1092. package/build/node_modules/bluebird/js/release/nodeify.mjs +62 -0
  1093. package/build/node_modules/bluebird/js/release/nodeify.mjs.map +1 -0
  1094. package/build/node_modules/bluebird/js/release/promise.js +815 -0
  1095. package/build/node_modules/bluebird/js/release/promise.js.map +1 -0
  1096. package/build/node_modules/bluebird/js/release/promise.mjs +813 -0
  1097. package/build/node_modules/bluebird/js/release/promise.mjs.map +1 -0
  1098. package/build/node_modules/bluebird/js/release/promise_array.js +190 -0
  1099. package/build/node_modules/bluebird/js/release/promise_array.js.map +1 -0
  1100. package/build/node_modules/bluebird/js/release/promise_array.mjs +188 -0
  1101. package/build/node_modules/bluebird/js/release/promise_array.mjs.map +1 -0
  1102. package/build/node_modules/bluebird/js/release/promisify.js +321 -0
  1103. package/build/node_modules/bluebird/js/release/promisify.js.map +1 -0
  1104. package/build/node_modules/bluebird/js/release/promisify.mjs +319 -0
  1105. package/build/node_modules/bluebird/js/release/promisify.mjs.map +1 -0
  1106. package/build/node_modules/bluebird/js/release/props.js +125 -0
  1107. package/build/node_modules/bluebird/js/release/props.js.map +1 -0
  1108. package/build/node_modules/bluebird/js/release/props.mjs +123 -0
  1109. package/build/node_modules/bluebird/js/release/props.mjs.map +1 -0
  1110. package/build/node_modules/bluebird/js/release/queue.js +77 -0
  1111. package/build/node_modules/bluebird/js/release/queue.js.map +1 -0
  1112. package/build/node_modules/bluebird/js/release/queue.mjs +75 -0
  1113. package/build/node_modules/bluebird/js/release/queue.mjs.map +1 -0
  1114. package/build/node_modules/bluebird/js/release/race.js +55 -0
  1115. package/build/node_modules/bluebird/js/release/race.js.map +1 -0
  1116. package/build/node_modules/bluebird/js/release/race.mjs +53 -0
  1117. package/build/node_modules/bluebird/js/release/race.mjs.map +1 -0
  1118. package/build/node_modules/bluebird/js/release/reduce.js +178 -0
  1119. package/build/node_modules/bluebird/js/release/reduce.js.map +1 -0
  1120. package/build/node_modules/bluebird/js/release/reduce.mjs +176 -0
  1121. package/build/node_modules/bluebird/js/release/reduce.mjs.map +1 -0
  1122. package/build/node_modules/bluebird/js/release/schedule.js +67 -0
  1123. package/build/node_modules/bluebird/js/release/schedule.js.map +1 -0
  1124. package/build/node_modules/bluebird/js/release/schedule.mjs +65 -0
  1125. package/build/node_modules/bluebird/js/release/schedule.mjs.map +1 -0
  1126. package/build/node_modules/bluebird/js/release/settle.js +49 -0
  1127. package/build/node_modules/bluebird/js/release/settle.js.map +1 -0
  1128. package/build/node_modules/bluebird/js/release/settle.mjs +47 -0
  1129. package/build/node_modules/bluebird/js/release/settle.mjs.map +1 -0
  1130. package/build/node_modules/bluebird/js/release/some.js +155 -0
  1131. package/build/node_modules/bluebird/js/release/some.js.map +1 -0
  1132. package/build/node_modules/bluebird/js/release/some.mjs +153 -0
  1133. package/build/node_modules/bluebird/js/release/some.mjs.map +1 -0
  1134. package/build/node_modules/bluebird/js/release/synchronous_inspection.js +107 -0
  1135. package/build/node_modules/bluebird/js/release/synchronous_inspection.js.map +1 -0
  1136. package/build/node_modules/bluebird/js/release/synchronous_inspection.mjs +105 -0
  1137. package/build/node_modules/bluebird/js/release/synchronous_inspection.mjs.map +1 -0
  1138. package/build/node_modules/bluebird/js/release/thenables.js +92 -0
  1139. package/build/node_modules/bluebird/js/release/thenables.js.map +1 -0
  1140. package/build/node_modules/bluebird/js/release/thenables.mjs +90 -0
  1141. package/build/node_modules/bluebird/js/release/thenables.mjs.map +1 -0
  1142. package/build/node_modules/bluebird/js/release/timers.js +99 -0
  1143. package/build/node_modules/bluebird/js/release/timers.js.map +1 -0
  1144. package/build/node_modules/bluebird/js/release/timers.mjs +97 -0
  1145. package/build/node_modules/bluebird/js/release/timers.mjs.map +1 -0
  1146. package/build/node_modules/bluebird/js/release/using.js +233 -0
  1147. package/build/node_modules/bluebird/js/release/using.js.map +1 -0
  1148. package/build/node_modules/bluebird/js/release/using.mjs +231 -0
  1149. package/build/node_modules/bluebird/js/release/using.mjs.map +1 -0
  1150. package/build/node_modules/bluebird/js/release/util.js +380 -0
  1151. package/build/node_modules/bluebird/js/release/util.js.map +1 -0
  1152. package/build/node_modules/bluebird/js/release/util.mjs +378 -0
  1153. package/build/node_modules/bluebird/js/release/util.mjs.map +1 -0
  1154. package/build/node_modules/bson/index.js +51 -0
  1155. package/build/node_modules/bson/index.js.map +1 -0
  1156. package/build/node_modules/bson/index.mjs +49 -0
  1157. package/build/node_modules/bson/index.mjs.map +1 -0
  1158. package/build/node_modules/bson/lib/bson/binary.js +401 -0
  1159. package/build/node_modules/bson/lib/bson/binary.js.map +1 -0
  1160. package/build/node_modules/bson/lib/bson/binary.mjs +393 -0
  1161. package/build/node_modules/bson/lib/bson/binary.mjs.map +1 -0
  1162. package/build/node_modules/bson/lib/bson/bson.js +422 -0
  1163. package/build/node_modules/bson/lib/bson/bson.js.map +1 -0
  1164. package/build/node_modules/bson/lib/bson/bson.mjs +404 -0
  1165. package/build/node_modules/bson/lib/bson/bson.mjs.map +1 -0
  1166. package/build/node_modules/bson/lib/bson/code.js +33 -0
  1167. package/build/node_modules/bson/lib/bson/code.js.map +1 -0
  1168. package/build/node_modules/bson/lib/bson/code.mjs +29 -0
  1169. package/build/node_modules/bson/lib/bson/code.mjs.map +1 -0
  1170. package/build/node_modules/bson/lib/bson/db_ref.js +41 -0
  1171. package/build/node_modules/bson/lib/bson/db_ref.js.map +1 -0
  1172. package/build/node_modules/bson/lib/bson/db_ref.mjs +37 -0
  1173. package/build/node_modules/bson/lib/bson/db_ref.mjs.map +1 -0
  1174. package/build/node_modules/bson/lib/bson/decimal128.js +826 -0
  1175. package/build/node_modules/bson/lib/bson/decimal128.js.map +1 -0
  1176. package/build/node_modules/bson/lib/bson/decimal128.mjs +822 -0
  1177. package/build/node_modules/bson/lib/bson/decimal128.mjs.map +1 -0
  1178. package/build/node_modules/bson/lib/bson/double.js +42 -0
  1179. package/build/node_modules/bson/lib/bson/double.js.map +1 -0
  1180. package/build/node_modules/bson/lib/bson/double.mjs +38 -0
  1181. package/build/node_modules/bson/lib/bson/double.mjs.map +1 -0
  1182. package/build/node_modules/bson/lib/bson/float_parser.js +138 -0
  1183. package/build/node_modules/bson/lib/bson/float_parser.js.map +1 -0
  1184. package/build/node_modules/bson/lib/bson/float_parser.mjs +133 -0
  1185. package/build/node_modules/bson/lib/bson/float_parser.mjs.map +1 -0
  1186. package/build/node_modules/bson/lib/bson/int_32.js +42 -0
  1187. package/build/node_modules/bson/lib/bson/int_32.js.map +1 -0
  1188. package/build/node_modules/bson/lib/bson/int_32.mjs +38 -0
  1189. package/build/node_modules/bson/lib/bson/int_32.mjs.map +1 -0
  1190. package/build/node_modules/bson/lib/bson/long.js +874 -0
  1191. package/build/node_modules/bson/lib/bson/long.js.map +1 -0
  1192. package/build/node_modules/bson/lib/bson/long.mjs +870 -0
  1193. package/build/node_modules/bson/lib/bson/long.mjs.map +1 -0
  1194. package/build/node_modules/bson/lib/bson/map.js +136 -0
  1195. package/build/node_modules/bson/lib/bson/map.js.map +1 -0
  1196. package/build/node_modules/bson/lib/bson/map.mjs +134 -0
  1197. package/build/node_modules/bson/lib/bson/map.mjs.map +1 -0
  1198. package/build/node_modules/bson/lib/bson/max_key.js +23 -0
  1199. package/build/node_modules/bson/lib/bson/max_key.js.map +1 -0
  1200. package/build/node_modules/bson/lib/bson/max_key.mjs +19 -0
  1201. package/build/node_modules/bson/lib/bson/max_key.mjs.map +1 -0
  1202. package/build/node_modules/bson/lib/bson/min_key.js +23 -0
  1203. package/build/node_modules/bson/lib/bson/min_key.js.map +1 -0
  1204. package/build/node_modules/bson/lib/bson/min_key.mjs +19 -0
  1205. package/build/node_modules/bson/lib/bson/min_key.mjs.map +1 -0
  1206. package/build/node_modules/bson/lib/bson/objectid.js +410 -0
  1207. package/build/node_modules/bson/lib/bson/objectid.js.map +1 -0
  1208. package/build/node_modules/bson/lib/bson/objectid.mjs +401 -0
  1209. package/build/node_modules/bson/lib/bson/objectid.mjs.map +1 -0
  1210. package/build/node_modules/bson/lib/bson/parser/calculate_size.js +271 -0
  1211. package/build/node_modules/bson/lib/bson/parser/calculate_size.js.map +1 -0
  1212. package/build/node_modules/bson/lib/bson/parser/calculate_size.mjs +269 -0
  1213. package/build/node_modules/bson/lib/bson/parser/calculate_size.mjs.map +1 -0
  1214. package/build/node_modules/bson/lib/bson/parser/deserializer.js +798 -0
  1215. package/build/node_modules/bson/lib/bson/parser/deserializer.js.map +1 -0
  1216. package/build/node_modules/bson/lib/bson/parser/deserializer.mjs +796 -0
  1217. package/build/node_modules/bson/lib/bson/parser/deserializer.mjs.map +1 -0
  1218. package/build/node_modules/bson/lib/bson/parser/serializer.js +1200 -0
  1219. package/build/node_modules/bson/lib/bson/parser/serializer.js.map +1 -0
  1220. package/build/node_modules/bson/lib/bson/parser/serializer.mjs +1198 -0
  1221. package/build/node_modules/bson/lib/bson/parser/serializer.mjs.map +1 -0
  1222. package/build/node_modules/bson/lib/bson/parser/utils.js +30 -0
  1223. package/build/node_modules/bson/lib/bson/parser/utils.js.map +1 -0
  1224. package/build/node_modules/bson/lib/bson/parser/utils.mjs +28 -0
  1225. package/build/node_modules/bson/lib/bson/parser/utils.mjs.map +1 -0
  1226. package/build/node_modules/bson/lib/bson/regexp.js +42 -0
  1227. package/build/node_modules/bson/lib/bson/regexp.js.map +1 -0
  1228. package/build/node_modules/bson/lib/bson/regexp.mjs +38 -0
  1229. package/build/node_modules/bson/lib/bson/regexp.mjs.map +1 -0
  1230. package/build/node_modules/bson/lib/bson/symbol.js +65 -0
  1231. package/build/node_modules/bson/lib/bson/symbol.js.map +1 -0
  1232. package/build/node_modules/bson/lib/bson/symbol.mjs +57 -0
  1233. package/build/node_modules/bson/lib/bson/symbol.mjs.map +1 -0
  1234. package/build/node_modules/bson/lib/bson/timestamp.js +863 -0
  1235. package/build/node_modules/bson/lib/bson/timestamp.js.map +1 -0
  1236. package/build/node_modules/bson/lib/bson/timestamp.mjs +859 -0
  1237. package/build/node_modules/bson/lib/bson/timestamp.mjs.map +1 -0
  1238. package/build/node_modules/core-util-is/lib/util.js +147 -0
  1239. package/build/node_modules/core-util-is/lib/util.js.map +1 -0
  1240. package/build/node_modules/core-util-is/lib/util.mjs +129 -0
  1241. package/build/node_modules/core-util-is/lib/util.mjs.map +1 -0
  1242. package/build/node_modules/denque/index.js +446 -0
  1243. package/build/node_modules/denque/index.js.map +1 -0
  1244. package/build/node_modules/denque/index.mjs +444 -0
  1245. package/build/node_modules/denque/index.mjs.map +1 -0
  1246. package/build/node_modules/double-ended-queue/js/deque.js +279 -0
  1247. package/build/node_modules/double-ended-queue/js/deque.js.map +1 -0
  1248. package/build/node_modules/double-ended-queue/js/deque.mjs +277 -0
  1249. package/build/node_modules/double-ended-queue/js/deque.mjs.map +1 -0
  1250. package/build/node_modules/inherits/inherits.js +24 -0
  1251. package/build/node_modules/inherits/inherits.js.map +1 -0
  1252. package/build/node_modules/inherits/inherits.mjs +18 -0
  1253. package/build/node_modules/inherits/inherits.mjs.map +1 -0
  1254. package/build/node_modules/inherits/inherits_browser.js +36 -0
  1255. package/build/node_modules/inherits/inherits_browser.js.map +1 -0
  1256. package/build/node_modules/inherits/inherits_browser.mjs +34 -0
  1257. package/build/node_modules/inherits/inherits_browser.mjs.map +1 -0
  1258. package/build/node_modules/isarray/index.js +10 -0
  1259. package/build/node_modules/isarray/index.js.map +1 -0
  1260. package/build/node_modules/isarray/index.mjs +8 -0
  1261. package/build/node_modules/isarray/index.mjs.map +1 -0
  1262. package/build/node_modules/kareem/index.js +514 -0
  1263. package/build/node_modules/kareem/index.js.map +1 -0
  1264. package/build/node_modules/kareem/index.mjs +512 -0
  1265. package/build/node_modules/kareem/index.mjs.map +1 -0
  1266. package/build/node_modules/memory-pager/index.js +165 -0
  1267. package/build/node_modules/memory-pager/index.js.map +1 -0
  1268. package/build/node_modules/memory-pager/index.mjs +163 -0
  1269. package/build/node_modules/memory-pager/index.mjs.map +1 -0
  1270. package/build/node_modules/mongodb/index.js +93 -0
  1271. package/build/node_modules/mongodb/index.js.map +1 -0
  1272. package/build/node_modules/mongodb/index.mjs +91 -0
  1273. package/build/node_modules/mongodb/index.mjs.map +1 -0
  1274. package/build/node_modules/mongodb/lib/admin.js +307 -0
  1275. package/build/node_modules/mongodb/lib/admin.js.map +1 -0
  1276. package/build/node_modules/mongodb/lib/admin.mjs +305 -0
  1277. package/build/node_modules/mongodb/lib/admin.mjs.map +1 -0
  1278. package/build/node_modules/mongodb/lib/aggregation_cursor.js +376 -0
  1279. package/build/node_modules/mongodb/lib/aggregation_cursor.js.map +1 -0
  1280. package/build/node_modules/mongodb/lib/aggregation_cursor.mjs +374 -0
  1281. package/build/node_modules/mongodb/lib/aggregation_cursor.mjs.map +1 -0
  1282. package/build/node_modules/mongodb/lib/apm.js +41 -0
  1283. package/build/node_modules/mongodb/lib/apm.js.map +1 -0
  1284. package/build/node_modules/mongodb/lib/apm.mjs +35 -0
  1285. package/build/node_modules/mongodb/lib/apm.mjs.map +1 -0
  1286. package/build/node_modules/mongodb/lib/async/async_iterator.js +43 -0
  1287. package/build/node_modules/mongodb/lib/async/async_iterator.js.map +1 -0
  1288. package/build/node_modules/mongodb/lib/async/async_iterator.mjs +39 -0
  1289. package/build/node_modules/mongodb/lib/async/async_iterator.mjs.map +1 -0
  1290. package/build/node_modules/mongodb/lib/bulk/common.js +1381 -0
  1291. package/build/node_modules/mongodb/lib/bulk/common.js.map +1 -0
  1292. package/build/node_modules/mongodb/lib/bulk/common.mjs +1379 -0
  1293. package/build/node_modules/mongodb/lib/bulk/common.mjs.map +1 -0
  1294. package/build/node_modules/mongodb/lib/bulk/ordered.js +119 -0
  1295. package/build/node_modules/mongodb/lib/bulk/ordered.js.map +1 -0
  1296. package/build/node_modules/mongodb/lib/bulk/ordered.mjs +115 -0
  1297. package/build/node_modules/mongodb/lib/bulk/ordered.mjs.map +1 -0
  1298. package/build/node_modules/mongodb/lib/bulk/unordered.js +140 -0
  1299. package/build/node_modules/mongodb/lib/bulk/unordered.js.map +1 -0
  1300. package/build/node_modules/mongodb/lib/bulk/unordered.mjs +136 -0
  1301. package/build/node_modules/mongodb/lib/bulk/unordered.mjs.map +1 -0
  1302. package/build/node_modules/mongodb/lib/change_stream.js +640 -0
  1303. package/build/node_modules/mongodb/lib/change_stream.js.map +1 -0
  1304. package/build/node_modules/mongodb/lib/change_stream.mjs +634 -0
  1305. package/build/node_modules/mongodb/lib/change_stream.mjs.map +1 -0
  1306. package/build/node_modules/mongodb/lib/cmap/connection.js +404 -0
  1307. package/build/node_modules/mongodb/lib/cmap/connection.js.map +1 -0
  1308. package/build/node_modules/mongodb/lib/cmap/connection.mjs +398 -0
  1309. package/build/node_modules/mongodb/lib/cmap/connection.mjs.map +1 -0
  1310. package/build/node_modules/mongodb/lib/cmap/connection_pool.js +608 -0
  1311. package/build/node_modules/mongodb/lib/cmap/connection_pool.js.map +1 -0
  1312. package/build/node_modules/mongodb/lib/cmap/connection_pool.mjs +602 -0
  1313. package/build/node_modules/mongodb/lib/cmap/connection_pool.mjs.map +1 -0
  1314. package/build/node_modules/mongodb/lib/cmap/errors.js +41 -0
  1315. package/build/node_modules/mongodb/lib/cmap/errors.js.map +1 -0
  1316. package/build/node_modules/mongodb/lib/cmap/errors.mjs +39 -0
  1317. package/build/node_modules/mongodb/lib/cmap/errors.mjs.map +1 -0
  1318. package/build/node_modules/mongodb/lib/cmap/events.js +157 -0
  1319. package/build/node_modules/mongodb/lib/cmap/events.js.map +1 -0
  1320. package/build/node_modules/mongodb/lib/cmap/events.mjs +155 -0
  1321. package/build/node_modules/mongodb/lib/cmap/events.mjs.map +1 -0
  1322. package/build/node_modules/mongodb/lib/cmap/message_stream.js +211 -0
  1323. package/build/node_modules/mongodb/lib/cmap/message_stream.js.map +1 -0
  1324. package/build/node_modules/mongodb/lib/cmap/message_stream.mjs +205 -0
  1325. package/build/node_modules/mongodb/lib/cmap/message_stream.mjs.map +1 -0
  1326. package/build/node_modules/mongodb/lib/cmap/stream_description.js +51 -0
  1327. package/build/node_modules/mongodb/lib/cmap/stream_description.js.map +1 -0
  1328. package/build/node_modules/mongodb/lib/cmap/stream_description.mjs +49 -0
  1329. package/build/node_modules/mongodb/lib/cmap/stream_description.mjs.map +1 -0
  1330. package/build/node_modules/mongodb/lib/collection.js +2294 -0
  1331. package/build/node_modules/mongodb/lib/collection.js.map +1 -0
  1332. package/build/node_modules/mongodb/lib/collection.mjs +2288 -0
  1333. package/build/node_modules/mongodb/lib/collection.mjs.map +1 -0
  1334. package/build/node_modules/mongodb/lib/command_cursor.js +276 -0
  1335. package/build/node_modules/mongodb/lib/command_cursor.js.map +1 -0
  1336. package/build/node_modules/mongodb/lib/command_cursor.mjs +274 -0
  1337. package/build/node_modules/mongodb/lib/command_cursor.mjs.map +1 -0
  1338. package/build/node_modules/mongodb/lib/constants.js +13 -0
  1339. package/build/node_modules/mongodb/lib/constants.js.map +1 -0
  1340. package/build/node_modules/mongodb/lib/constants.mjs +11 -0
  1341. package/build/node_modules/mongodb/lib/constants.mjs.map +1 -0
  1342. package/build/node_modules/mongodb/lib/core/auth/auth_provider.js +58 -0
  1343. package/build/node_modules/mongodb/lib/core/auth/auth_provider.js.map +1 -0
  1344. package/build/node_modules/mongodb/lib/core/auth/auth_provider.mjs +56 -0
  1345. package/build/node_modules/mongodb/lib/core/auth/auth_provider.mjs.map +1 -0
  1346. package/build/node_modules/mongodb/lib/core/auth/defaultAuthProviders.js +35 -0
  1347. package/build/node_modules/mongodb/lib/core/auth/defaultAuthProviders.js.map +1 -0
  1348. package/build/node_modules/mongodb/lib/core/auth/defaultAuthProviders.mjs +33 -0
  1349. package/build/node_modules/mongodb/lib/core/auth/defaultAuthProviders.mjs.map +1 -0
  1350. package/build/node_modules/mongodb/lib/core/auth/gssapi.js +162 -0
  1351. package/build/node_modules/mongodb/lib/core/auth/gssapi.js.map +1 -0
  1352. package/build/node_modules/mongodb/lib/core/auth/gssapi.mjs +156 -0
  1353. package/build/node_modules/mongodb/lib/core/auth/gssapi.mjs.map +1 -0
  1354. package/build/node_modules/mongodb/lib/core/auth/mongo_credentials.js +110 -0
  1355. package/build/node_modules/mongodb/lib/core/auth/mongo_credentials.js.map +1 -0
  1356. package/build/node_modules/mongodb/lib/core/auth/mongo_credentials.mjs +108 -0
  1357. package/build/node_modules/mongodb/lib/core/auth/mongo_credentials.mjs.map +1 -0
  1358. package/build/node_modules/mongodb/lib/core/auth/mongocr.js +54 -0
  1359. package/build/node_modules/mongodb/lib/core/auth/mongocr.js.map +1 -0
  1360. package/build/node_modules/mongodb/lib/core/auth/mongocr.mjs +48 -0
  1361. package/build/node_modules/mongodb/lib/core/auth/mongocr.mjs.map +1 -0
  1362. package/build/node_modules/mongodb/lib/core/auth/mongodb_aws.js +275 -0
  1363. package/build/node_modules/mongodb/lib/core/auth/mongodb_aws.js.map +1 -0
  1364. package/build/node_modules/mongodb/lib/core/auth/mongodb_aws.mjs +267 -0
  1365. package/build/node_modules/mongodb/lib/core/auth/mongodb_aws.mjs.map +1 -0
  1366. package/build/node_modules/mongodb/lib/core/auth/plain.js +35 -0
  1367. package/build/node_modules/mongodb/lib/core/auth/plain.js.map +1 -0
  1368. package/build/node_modules/mongodb/lib/core/auth/plain.mjs +33 -0
  1369. package/build/node_modules/mongodb/lib/core/auth/plain.mjs.map +1 -0
  1370. package/build/node_modules/mongodb/lib/core/auth/scram.js +362 -0
  1371. package/build/node_modules/mongodb/lib/core/auth/scram.js.map +1 -0
  1372. package/build/node_modules/mongodb/lib/core/auth/scram.mjs +356 -0
  1373. package/build/node_modules/mongodb/lib/core/auth/scram.mjs.map +1 -0
  1374. package/build/node_modules/mongodb/lib/core/auth/x509.js +41 -0
  1375. package/build/node_modules/mongodb/lib/core/auth/x509.js.map +1 -0
  1376. package/build/node_modules/mongodb/lib/core/auth/x509.mjs +39 -0
  1377. package/build/node_modules/mongodb/lib/core/auth/x509.mjs.map +1 -0
  1378. package/build/node_modules/mongodb/lib/core/connection/apm.js +259 -0
  1379. package/build/node_modules/mongodb/lib/core/connection/apm.js.map +1 -0
  1380. package/build/node_modules/mongodb/lib/core/connection/apm.mjs +257 -0
  1381. package/build/node_modules/mongodb/lib/core/connection/apm.mjs.map +1 -0
  1382. package/build/node_modules/mongodb/lib/core/connection/command_result.js +39 -0
  1383. package/build/node_modules/mongodb/lib/core/connection/command_result.js.map +1 -0
  1384. package/build/node_modules/mongodb/lib/core/connection/command_result.mjs +37 -0
  1385. package/build/node_modules/mongodb/lib/core/connection/command_result.mjs.map +1 -0
  1386. package/build/node_modules/mongodb/lib/core/connection/commands.js +514 -0
  1387. package/build/node_modules/mongodb/lib/core/connection/commands.js.map +1 -0
  1388. package/build/node_modules/mongodb/lib/core/connection/commands.mjs +512 -0
  1389. package/build/node_modules/mongodb/lib/core/connection/commands.mjs.map +1 -0
  1390. package/build/node_modules/mongodb/lib/core/connection/connect.js +367 -0
  1391. package/build/node_modules/mongodb/lib/core/connection/connect.js.map +1 -0
  1392. package/build/node_modules/mongodb/lib/core/connection/connect.mjs +360 -0
  1393. package/build/node_modules/mongodb/lib/core/connection/connect.mjs.map +1 -0
  1394. package/build/node_modules/mongodb/lib/core/connection/connection.js +731 -0
  1395. package/build/node_modules/mongodb/lib/core/connection/connection.js.map +1 -0
  1396. package/build/node_modules/mongodb/lib/core/connection/connection.mjs +724 -0
  1397. package/build/node_modules/mongodb/lib/core/connection/connection.mjs.map +1 -0
  1398. package/build/node_modules/mongodb/lib/core/connection/logger.js +262 -0
  1399. package/build/node_modules/mongodb/lib/core/connection/logger.js.map +1 -0
  1400. package/build/node_modules/mongodb/lib/core/connection/logger.mjs +256 -0
  1401. package/build/node_modules/mongodb/lib/core/connection/logger.mjs.map +1 -0
  1402. package/build/node_modules/mongodb/lib/core/connection/msg.js +232 -0
  1403. package/build/node_modules/mongodb/lib/core/connection/msg.js.map +1 -0
  1404. package/build/node_modules/mongodb/lib/core/connection/msg.mjs +230 -0
  1405. package/build/node_modules/mongodb/lib/core/connection/msg.mjs.map +1 -0
  1406. package/build/node_modules/mongodb/lib/core/connection/pool.js +1304 -0
  1407. package/build/node_modules/mongodb/lib/core/connection/pool.js.map +1 -0
  1408. package/build/node_modules/mongodb/lib/core/connection/pool.mjs +1297 -0
  1409. package/build/node_modules/mongodb/lib/core/connection/pool.mjs.map +1 -0
  1410. package/build/node_modules/mongodb/lib/core/connection/utils.js +59 -0
  1411. package/build/node_modules/mongodb/lib/core/connection/utils.js.map +1 -0
  1412. package/build/node_modules/mongodb/lib/core/connection/utils.mjs +57 -0
  1413. package/build/node_modules/mongodb/lib/core/connection/utils.mjs.map +1 -0
  1414. package/build/node_modules/mongodb/lib/core/cursor.js +891 -0
  1415. package/build/node_modules/mongodb/lib/core/cursor.js.map +1 -0
  1416. package/build/node_modules/mongodb/lib/core/cursor.mjs +885 -0
  1417. package/build/node_modules/mongodb/lib/core/cursor.mjs.map +1 -0
  1418. package/build/node_modules/mongodb/lib/core/error.js +354 -0
  1419. package/build/node_modules/mongodb/lib/core/error.js.map +1 -0
  1420. package/build/node_modules/mongodb/lib/core/error.mjs +352 -0
  1421. package/build/node_modules/mongodb/lib/core/error.mjs.map +1 -0
  1422. package/build/node_modules/mongodb/lib/core/index.js +77 -0
  1423. package/build/node_modules/mongodb/lib/core/index.js.map +1 -0
  1424. package/build/node_modules/mongodb/lib/core/index.mjs +75 -0
  1425. package/build/node_modules/mongodb/lib/core/index.mjs.map +1 -0
  1426. package/build/node_modules/mongodb/lib/core/sdam/common.js +70 -0
  1427. package/build/node_modules/mongodb/lib/core/sdam/common.js.map +1 -0
  1428. package/build/node_modules/mongodb/lib/core/sdam/common.mjs +68 -0
  1429. package/build/node_modules/mongodb/lib/core/sdam/common.mjs.map +1 -0
  1430. package/build/node_modules/mongodb/lib/core/sdam/events.js +127 -0
  1431. package/build/node_modules/mongodb/lib/core/sdam/events.js.map +1 -0
  1432. package/build/node_modules/mongodb/lib/core/sdam/events.mjs +125 -0
  1433. package/build/node_modules/mongodb/lib/core/sdam/events.mjs.map +1 -0
  1434. package/build/node_modules/mongodb/lib/core/sdam/monitor.js +430 -0
  1435. package/build/node_modules/mongodb/lib/core/sdam/monitor.js.map +1 -0
  1436. package/build/node_modules/mongodb/lib/core/sdam/monitor.mjs +424 -0
  1437. package/build/node_modules/mongodb/lib/core/sdam/monitor.mjs.map +1 -0
  1438. package/build/node_modules/mongodb/lib/core/sdam/server.js +584 -0
  1439. package/build/node_modules/mongodb/lib/core/sdam/server.js.map +1 -0
  1440. package/build/node_modules/mongodb/lib/core/sdam/server.mjs +578 -0
  1441. package/build/node_modules/mongodb/lib/core/sdam/server.mjs.map +1 -0
  1442. package/build/node_modules/mongodb/lib/core/sdam/server_description.js +234 -0
  1443. package/build/node_modules/mongodb/lib/core/sdam/server_description.js.map +1 -0
  1444. package/build/node_modules/mongodb/lib/core/sdam/server_description.mjs +232 -0
  1445. package/build/node_modules/mongodb/lib/core/sdam/server_description.mjs.map +1 -0
  1446. package/build/node_modules/mongodb/lib/core/sdam/server_selection.js +246 -0
  1447. package/build/node_modules/mongodb/lib/core/sdam/server_selection.js.map +1 -0
  1448. package/build/node_modules/mongodb/lib/core/sdam/server_selection.mjs +244 -0
  1449. package/build/node_modules/mongodb/lib/core/sdam/server_selection.mjs.map +1 -0
  1450. package/build/node_modules/mongodb/lib/core/sdam/srv_polling.js +155 -0
  1451. package/build/node_modules/mongodb/lib/core/sdam/srv_polling.js.map +1 -0
  1452. package/build/node_modules/mongodb/lib/core/sdam/srv_polling.mjs +145 -0
  1453. package/build/node_modules/mongodb/lib/core/sdam/srv_polling.mjs.map +1 -0
  1454. package/build/node_modules/mongodb/lib/core/sdam/topology.js +1170 -0
  1455. package/build/node_modules/mongodb/lib/core/sdam/topology.js.map +1 -0
  1456. package/build/node_modules/mongodb/lib/core/sdam/topology.mjs +1163 -0
  1457. package/build/node_modules/mongodb/lib/core/sdam/topology.mjs.map +1 -0
  1458. package/build/node_modules/mongodb/lib/core/sdam/topology_description.js +468 -0
  1459. package/build/node_modules/mongodb/lib/core/sdam/topology_description.js.map +1 -0
  1460. package/build/node_modules/mongodb/lib/core/sdam/topology_description.mjs +466 -0
  1461. package/build/node_modules/mongodb/lib/core/sdam/topology_description.mjs.map +1 -0
  1462. package/build/node_modules/mongodb/lib/core/sessions.js +797 -0
  1463. package/build/node_modules/mongodb/lib/core/sessions.js.map +1 -0
  1464. package/build/node_modules/mongodb/lib/core/sessions.mjs +791 -0
  1465. package/build/node_modules/mongodb/lib/core/sessions.mjs.map +1 -0
  1466. package/build/node_modules/mongodb/lib/core/topologies/mongos.js +1415 -0
  1467. package/build/node_modules/mongodb/lib/core/topologies/mongos.js.map +1 -0
  1468. package/build/node_modules/mongodb/lib/core/topologies/mongos.mjs +1408 -0
  1469. package/build/node_modules/mongodb/lib/core/topologies/mongos.mjs.map +1 -0
  1470. package/build/node_modules/mongodb/lib/core/topologies/read_preference.js +273 -0
  1471. package/build/node_modules/mongodb/lib/core/topologies/read_preference.js.map +1 -0
  1472. package/build/node_modules/mongodb/lib/core/topologies/read_preference.mjs +271 -0
  1473. package/build/node_modules/mongodb/lib/core/topologies/read_preference.mjs.map +1 -0
  1474. package/build/node_modules/mongodb/lib/core/topologies/replset.js +1586 -0
  1475. package/build/node_modules/mongodb/lib/core/topologies/replset.js.map +1 -0
  1476. package/build/node_modules/mongodb/lib/core/topologies/replset.mjs +1579 -0
  1477. package/build/node_modules/mongodb/lib/core/topologies/replset.mjs.map +1 -0
  1478. package/build/node_modules/mongodb/lib/core/topologies/replset_state.js +1135 -0
  1479. package/build/node_modules/mongodb/lib/core/topologies/replset_state.js.map +1 -0
  1480. package/build/node_modules/mongodb/lib/core/topologies/replset_state.mjs +1128 -0
  1481. package/build/node_modules/mongodb/lib/core/topologies/replset_state.mjs.map +1 -0
  1482. package/build/node_modules/mongodb/lib/core/topologies/server.js +1006 -0
  1483. package/build/node_modules/mongodb/lib/core/topologies/server.js.map +1 -0
  1484. package/build/node_modules/mongodb/lib/core/topologies/server.mjs +999 -0
  1485. package/build/node_modules/mongodb/lib/core/topologies/server.mjs.map +1 -0
  1486. package/build/node_modules/mongodb/lib/core/topologies/shared.js +464 -0
  1487. package/build/node_modules/mongodb/lib/core/topologies/shared.js.map +1 -0
  1488. package/build/node_modules/mongodb/lib/core/topologies/shared.mjs +462 -0
  1489. package/build/node_modules/mongodb/lib/core/topologies/shared.mjs.map +1 -0
  1490. package/build/node_modules/mongodb/lib/core/transactions.js +188 -0
  1491. package/build/node_modules/mongodb/lib/core/transactions.js.map +1 -0
  1492. package/build/node_modules/mongodb/lib/core/transactions.mjs +186 -0
  1493. package/build/node_modules/mongodb/lib/core/transactions.mjs.map +1 -0
  1494. package/build/node_modules/mongodb/lib/core/uri_parser.js +745 -0
  1495. package/build/node_modules/mongodb/lib/core/uri_parser.js.map +1 -0
  1496. package/build/node_modules/mongodb/lib/core/uri_parser.mjs +737 -0
  1497. package/build/node_modules/mongodb/lib/core/uri_parser.mjs.map +1 -0
  1498. package/build/node_modules/mongodb/lib/core/utils.js +307 -0
  1499. package/build/node_modules/mongodb/lib/core/utils.js.map +1 -0
  1500. package/build/node_modules/mongodb/lib/core/utils.mjs +300 -0
  1501. package/build/node_modules/mongodb/lib/core/utils.mjs.map +1 -0
  1502. package/build/node_modules/mongodb/lib/core/wireprotocol/command.js +193 -0
  1503. package/build/node_modules/mongodb/lib/core/wireprotocol/command.js.map +1 -0
  1504. package/build/node_modules/mongodb/lib/core/wireprotocol/command.mjs +191 -0
  1505. package/build/node_modules/mongodb/lib/core/wireprotocol/command.mjs.map +1 -0
  1506. package/build/node_modules/mongodb/lib/core/wireprotocol/compression.js +83 -0
  1507. package/build/node_modules/mongodb/lib/core/wireprotocol/compression.js.map +1 -0
  1508. package/build/node_modules/mongodb/lib/core/wireprotocol/compression.mjs +77 -0
  1509. package/build/node_modules/mongodb/lib/core/wireprotocol/compression.mjs.map +1 -0
  1510. package/build/node_modules/mongodb/lib/core/wireprotocol/constants.js +16 -0
  1511. package/build/node_modules/mongodb/lib/core/wireprotocol/constants.js.map +1 -0
  1512. package/build/node_modules/mongodb/lib/core/wireprotocol/constants.mjs +14 -0
  1513. package/build/node_modules/mongodb/lib/core/wireprotocol/constants.mjs.map +1 -0
  1514. package/build/node_modules/mongodb/lib/core/wireprotocol/get_more.js +105 -0
  1515. package/build/node_modules/mongodb/lib/core/wireprotocol/get_more.js.map +1 -0
  1516. package/build/node_modules/mongodb/lib/core/wireprotocol/get_more.mjs +103 -0
  1517. package/build/node_modules/mongodb/lib/core/wireprotocol/get_more.mjs.map +1 -0
  1518. package/build/node_modules/mongodb/lib/core/wireprotocol/index.js +26 -0
  1519. package/build/node_modules/mongodb/lib/core/wireprotocol/index.js.map +1 -0
  1520. package/build/node_modules/mongodb/lib/core/wireprotocol/index.mjs +24 -0
  1521. package/build/node_modules/mongodb/lib/core/wireprotocol/index.mjs.map +1 -0
  1522. package/build/node_modules/mongodb/lib/core/wireprotocol/kill_cursors.js +80 -0
  1523. package/build/node_modules/mongodb/lib/core/wireprotocol/kill_cursors.js.map +1 -0
  1524. package/build/node_modules/mongodb/lib/core/wireprotocol/kill_cursors.mjs +78 -0
  1525. package/build/node_modules/mongodb/lib/core/wireprotocol/kill_cursors.mjs.map +1 -0
  1526. package/build/node_modules/mongodb/lib/core/wireprotocol/query.js +247 -0
  1527. package/build/node_modules/mongodb/lib/core/wireprotocol/query.js.map +1 -0
  1528. package/build/node_modules/mongodb/lib/core/wireprotocol/query.mjs +245 -0
  1529. package/build/node_modules/mongodb/lib/core/wireprotocol/query.mjs.map +1 -0
  1530. package/build/node_modules/mongodb/lib/core/wireprotocol/shared.js +122 -0
  1531. package/build/node_modules/mongodb/lib/core/wireprotocol/shared.js.map +1 -0
  1532. package/build/node_modules/mongodb/lib/core/wireprotocol/shared.mjs +120 -0
  1533. package/build/node_modules/mongodb/lib/core/wireprotocol/shared.mjs.map +1 -0
  1534. package/build/node_modules/mongodb/lib/core/wireprotocol/write_command.js +68 -0
  1535. package/build/node_modules/mongodb/lib/core/wireprotocol/write_command.js.map +1 -0
  1536. package/build/node_modules/mongodb/lib/core/wireprotocol/write_command.mjs +66 -0
  1537. package/build/node_modules/mongodb/lib/core/wireprotocol/write_command.mjs.map +1 -0
  1538. package/build/node_modules/mongodb/lib/cursor.js +1156 -0
  1539. package/build/node_modules/mongodb/lib/cursor.js.map +1 -0
  1540. package/build/node_modules/mongodb/lib/cursor.mjs +1149 -0
  1541. package/build/node_modules/mongodb/lib/cursor.mjs.map +1 -0
  1542. package/build/node_modules/mongodb/lib/db.js +1092 -0
  1543. package/build/node_modules/mongodb/lib/db.js.map +1 -0
  1544. package/build/node_modules/mongodb/lib/db.mjs +1085 -0
  1545. package/build/node_modules/mongodb/lib/db.mjs.map +1 -0
  1546. package/build/node_modules/mongodb/lib/dynamic_loaders.js +39 -0
  1547. package/build/node_modules/mongodb/lib/dynamic_loaders.js.map +1 -0
  1548. package/build/node_modules/mongodb/lib/dynamic_loaders.mjs +37 -0
  1549. package/build/node_modules/mongodb/lib/dynamic_loaders.mjs.map +1 -0
  1550. package/build/node_modules/mongodb/lib/encrypter.js +176 -0
  1551. package/build/node_modules/mongodb/lib/encrypter.js.map +1 -0
  1552. package/build/node_modules/mongodb/lib/encrypter.mjs +170 -0
  1553. package/build/node_modules/mongodb/lib/encrypter.mjs.map +1 -0
  1554. package/build/node_modules/mongodb/lib/error.js +48 -0
  1555. package/build/node_modules/mongodb/lib/error.js.map +1 -0
  1556. package/build/node_modules/mongodb/lib/error.mjs +46 -0
  1557. package/build/node_modules/mongodb/lib/error.mjs.map +1 -0
  1558. package/build/node_modules/mongodb/lib/explain.js +60 -0
  1559. package/build/node_modules/mongodb/lib/explain.js.map +1 -0
  1560. package/build/node_modules/mongodb/lib/explain.mjs +58 -0
  1561. package/build/node_modules/mongodb/lib/explain.mjs.map +1 -0
  1562. package/build/node_modules/mongodb/lib/gridfs/chunk.js +242 -0
  1563. package/build/node_modules/mongodb/lib/gridfs/chunk.js.map +1 -0
  1564. package/build/node_modules/mongodb/lib/gridfs/chunk.mjs +240 -0
  1565. package/build/node_modules/mongodb/lib/gridfs/chunk.mjs.map +1 -0
  1566. package/build/node_modules/mongodb/lib/gridfs/grid_store.js +1940 -0
  1567. package/build/node_modules/mongodb/lib/gridfs/grid_store.js.map +1 -0
  1568. package/build/node_modules/mongodb/lib/gridfs/grid_store.mjs +1932 -0
  1569. package/build/node_modules/mongodb/lib/gridfs/grid_store.mjs.map +1 -0
  1570. package/build/node_modules/mongodb/lib/gridfs-stream/download.js +441 -0
  1571. package/build/node_modules/mongodb/lib/gridfs-stream/download.js.map +1 -0
  1572. package/build/node_modules/mongodb/lib/gridfs-stream/download.mjs +434 -0
  1573. package/build/node_modules/mongodb/lib/gridfs-stream/download.mjs.map +1 -0
  1574. package/build/node_modules/mongodb/lib/gridfs-stream/index.js +366 -0
  1575. package/build/node_modules/mongodb/lib/gridfs-stream/index.js.map +1 -0
  1576. package/build/node_modules/mongodb/lib/gridfs-stream/index.mjs +359 -0
  1577. package/build/node_modules/mongodb/lib/gridfs-stream/index.mjs.map +1 -0
  1578. package/build/node_modules/mongodb/lib/gridfs-stream/upload.js +552 -0
  1579. package/build/node_modules/mongodb/lib/gridfs-stream/upload.js.map +1 -0
  1580. package/build/node_modules/mongodb/lib/gridfs-stream/upload.mjs +544 -0
  1581. package/build/node_modules/mongodb/lib/gridfs-stream/upload.mjs.map +1 -0
  1582. package/build/node_modules/mongodb/lib/mongo_client.js +514 -0
  1583. package/build/node_modules/mongodb/lib/mongo_client.js.map +1 -0
  1584. package/build/node_modules/mongodb/lib/mongo_client.mjs +507 -0
  1585. package/build/node_modules/mongodb/lib/mongo_client.mjs.map +1 -0
  1586. package/build/node_modules/mongodb/lib/operations/add_user.js +111 -0
  1587. package/build/node_modules/mongodb/lib/operations/add_user.js.map +1 -0
  1588. package/build/node_modules/mongodb/lib/operations/add_user.mjs +105 -0
  1589. package/build/node_modules/mongodb/lib/operations/add_user.mjs.map +1 -0
  1590. package/build/node_modules/mongodb/lib/operations/aggregate.js +111 -0
  1591. package/build/node_modules/mongodb/lib/operations/aggregate.js.map +1 -0
  1592. package/build/node_modules/mongodb/lib/operations/aggregate.mjs +109 -0
  1593. package/build/node_modules/mongodb/lib/operations/aggregate.mjs.map +1 -0
  1594. package/build/node_modules/mongodb/lib/operations/bulk_write.js +103 -0
  1595. package/build/node_modules/mongodb/lib/operations/bulk_write.js.map +1 -0
  1596. package/build/node_modules/mongodb/lib/operations/bulk_write.mjs +101 -0
  1597. package/build/node_modules/mongodb/lib/operations/bulk_write.mjs.map +1 -0
  1598. package/build/node_modules/mongodb/lib/operations/collection_ops.js +361 -0
  1599. package/build/node_modules/mongodb/lib/operations/collection_ops.js.map +1 -0
  1600. package/build/node_modules/mongodb/lib/operations/collection_ops.mjs +359 -0
  1601. package/build/node_modules/mongodb/lib/operations/collection_ops.mjs.map +1 -0
  1602. package/build/node_modules/mongodb/lib/operations/collections.js +62 -0
  1603. package/build/node_modules/mongodb/lib/operations/collections.js.map +1 -0
  1604. package/build/node_modules/mongodb/lib/operations/collections.mjs +60 -0
  1605. package/build/node_modules/mongodb/lib/operations/collections.mjs.map +1 -0
  1606. package/build/node_modules/mongodb/lib/operations/command.js +126 -0
  1607. package/build/node_modules/mongodb/lib/operations/command.js.map +1 -0
  1608. package/build/node_modules/mongodb/lib/operations/command.mjs +124 -0
  1609. package/build/node_modules/mongodb/lib/operations/command.mjs.map +1 -0
  1610. package/build/node_modules/mongodb/lib/operations/command_v2.js +131 -0
  1611. package/build/node_modules/mongodb/lib/operations/command_v2.js.map +1 -0
  1612. package/build/node_modules/mongodb/lib/operations/command_v2.mjs +129 -0
  1613. package/build/node_modules/mongodb/lib/operations/command_v2.mjs.map +1 -0
  1614. package/build/node_modules/mongodb/lib/operations/common_functions.js +408 -0
  1615. package/build/node_modules/mongodb/lib/operations/common_functions.js.map +1 -0
  1616. package/build/node_modules/mongodb/lib/operations/common_functions.mjs +406 -0
  1617. package/build/node_modules/mongodb/lib/operations/common_functions.mjs.map +1 -0
  1618. package/build/node_modules/mongodb/lib/operations/connect.js +805 -0
  1619. package/build/node_modules/mongodb/lib/operations/connect.js.map +1 -0
  1620. package/build/node_modules/mongodb/lib/operations/connect.mjs +798 -0
  1621. package/build/node_modules/mongodb/lib/operations/connect.mjs.map +1 -0
  1622. package/build/node_modules/mongodb/lib/operations/count.js +74 -0
  1623. package/build/node_modules/mongodb/lib/operations/count.js.map +1 -0
  1624. package/build/node_modules/mongodb/lib/operations/count.mjs +72 -0
  1625. package/build/node_modules/mongodb/lib/operations/count.mjs.map +1 -0
  1626. package/build/node_modules/mongodb/lib/operations/count_documents.js +44 -0
  1627. package/build/node_modules/mongodb/lib/operations/count_documents.js.map +1 -0
  1628. package/build/node_modules/mongodb/lib/operations/count_documents.mjs +42 -0
  1629. package/build/node_modules/mongodb/lib/operations/count_documents.mjs.map +1 -0
  1630. package/build/node_modules/mongodb/lib/operations/create_collection.js +111 -0
  1631. package/build/node_modules/mongodb/lib/operations/create_collection.js.map +1 -0
  1632. package/build/node_modules/mongodb/lib/operations/create_collection.mjs +109 -0
  1633. package/build/node_modules/mongodb/lib/operations/create_collection.mjs.map +1 -0
  1634. package/build/node_modules/mongodb/lib/operations/create_indexes.js +146 -0
  1635. package/build/node_modules/mongodb/lib/operations/create_indexes.js.map +1 -0
  1636. package/build/node_modules/mongodb/lib/operations/create_indexes.mjs +144 -0
  1637. package/build/node_modules/mongodb/lib/operations/create_indexes.mjs.map +1 -0
  1638. package/build/node_modules/mongodb/lib/operations/cursor_ops.js +175 -0
  1639. package/build/node_modules/mongodb/lib/operations/cursor_ops.js.map +1 -0
  1640. package/build/node_modules/mongodb/lib/operations/cursor_ops.mjs +173 -0
  1641. package/build/node_modules/mongodb/lib/operations/cursor_ops.mjs.map +1 -0
  1642. package/build/node_modules/mongodb/lib/operations/db_ops.js +474 -0
  1643. package/build/node_modules/mongodb/lib/operations/db_ops.js.map +1 -0
  1644. package/build/node_modules/mongodb/lib/operations/db_ops.mjs +472 -0
  1645. package/build/node_modules/mongodb/lib/operations/db_ops.mjs.map +1 -0
  1646. package/build/node_modules/mongodb/lib/operations/delete_many.js +44 -0
  1647. package/build/node_modules/mongodb/lib/operations/delete_many.js.map +1 -0
  1648. package/build/node_modules/mongodb/lib/operations/delete_many.mjs +42 -0
  1649. package/build/node_modules/mongodb/lib/operations/delete_many.mjs.map +1 -0
  1650. package/build/node_modules/mongodb/lib/operations/delete_one.js +44 -0
  1651. package/build/node_modules/mongodb/lib/operations/delete_one.js.map +1 -0
  1652. package/build/node_modules/mongodb/lib/operations/delete_one.mjs +42 -0
  1653. package/build/node_modules/mongodb/lib/operations/delete_one.mjs.map +1 -0
  1654. package/build/node_modules/mongodb/lib/operations/distinct.js +102 -0
  1655. package/build/node_modules/mongodb/lib/operations/distinct.js.map +1 -0
  1656. package/build/node_modules/mongodb/lib/operations/distinct.mjs +100 -0
  1657. package/build/node_modules/mongodb/lib/operations/distinct.mjs.map +1 -0
  1658. package/build/node_modules/mongodb/lib/operations/drop.js +60 -0
  1659. package/build/node_modules/mongodb/lib/operations/drop.js.map +1 -0
  1660. package/build/node_modules/mongodb/lib/operations/drop.mjs +58 -0
  1661. package/build/node_modules/mongodb/lib/operations/drop.mjs.map +1 -0
  1662. package/build/node_modules/mongodb/lib/operations/drop_index.js +49 -0
  1663. package/build/node_modules/mongodb/lib/operations/drop_index.js.map +1 -0
  1664. package/build/node_modules/mongodb/lib/operations/drop_index.mjs +47 -0
  1665. package/build/node_modules/mongodb/lib/operations/drop_index.mjs.map +1 -0
  1666. package/build/node_modules/mongodb/lib/operations/drop_indexes.js +30 -0
  1667. package/build/node_modules/mongodb/lib/operations/drop_indexes.js.map +1 -0
  1668. package/build/node_modules/mongodb/lib/operations/drop_indexes.mjs +28 -0
  1669. package/build/node_modules/mongodb/lib/operations/drop_indexes.mjs.map +1 -0
  1670. package/build/node_modules/mongodb/lib/operations/estimated_document_count.js +64 -0
  1671. package/build/node_modules/mongodb/lib/operations/estimated_document_count.js.map +1 -0
  1672. package/build/node_modules/mongodb/lib/operations/estimated_document_count.mjs +62 -0
  1673. package/build/node_modules/mongodb/lib/operations/estimated_document_count.mjs.map +1 -0
  1674. package/build/node_modules/mongodb/lib/operations/execute_db_admin_command.js +41 -0
  1675. package/build/node_modules/mongodb/lib/operations/execute_db_admin_command.js.map +1 -0
  1676. package/build/node_modules/mongodb/lib/operations/execute_db_admin_command.mjs +39 -0
  1677. package/build/node_modules/mongodb/lib/operations/execute_db_admin_command.mjs.map +1 -0
  1678. package/build/node_modules/mongodb/lib/operations/execute_operation.js +173 -0
  1679. package/build/node_modules/mongodb/lib/operations/execute_operation.js.map +1 -0
  1680. package/build/node_modules/mongodb/lib/operations/execute_operation.mjs +171 -0
  1681. package/build/node_modules/mongodb/lib/operations/execute_operation.mjs.map +1 -0
  1682. package/build/node_modules/mongodb/lib/operations/find.js +57 -0
  1683. package/build/node_modules/mongodb/lib/operations/find.js.map +1 -0
  1684. package/build/node_modules/mongodb/lib/operations/find.mjs +55 -0
  1685. package/build/node_modules/mongodb/lib/operations/find.mjs.map +1 -0
  1686. package/build/node_modules/mongodb/lib/operations/find_and_modify.js +138 -0
  1687. package/build/node_modules/mongodb/lib/operations/find_and_modify.js.map +1 -0
  1688. package/build/node_modules/mongodb/lib/operations/find_and_modify.mjs +136 -0
  1689. package/build/node_modules/mongodb/lib/operations/find_and_modify.mjs.map +1 -0
  1690. package/build/node_modules/mongodb/lib/operations/find_one.js +47 -0
  1691. package/build/node_modules/mongodb/lib/operations/find_one.js.map +1 -0
  1692. package/build/node_modules/mongodb/lib/operations/find_one.mjs +45 -0
  1693. package/build/node_modules/mongodb/lib/operations/find_one.mjs.map +1 -0
  1694. package/build/node_modules/mongodb/lib/operations/find_one_and_delete.js +24 -0
  1695. package/build/node_modules/mongodb/lib/operations/find_one_and_delete.js.map +1 -0
  1696. package/build/node_modules/mongodb/lib/operations/find_one_and_delete.mjs +22 -0
  1697. package/build/node_modules/mongodb/lib/operations/find_one_and_delete.mjs.map +1 -0
  1698. package/build/node_modules/mongodb/lib/operations/find_one_and_replace.js +44 -0
  1699. package/build/node_modules/mongodb/lib/operations/find_one_and_replace.js.map +1 -0
  1700. package/build/node_modules/mongodb/lib/operations/find_one_and_replace.mjs +42 -0
  1701. package/build/node_modules/mongodb/lib/operations/find_one_and_replace.mjs.map +1 -0
  1702. package/build/node_modules/mongodb/lib/operations/find_one_and_update.js +44 -0
  1703. package/build/node_modules/mongodb/lib/operations/find_one_and_update.js.map +1 -0
  1704. package/build/node_modules/mongodb/lib/operations/find_one_and_update.mjs +42 -0
  1705. package/build/node_modules/mongodb/lib/operations/find_one_and_update.mjs.map +1 -0
  1706. package/build/node_modules/mongodb/lib/operations/geo_haystack_search.js +87 -0
  1707. package/build/node_modules/mongodb/lib/operations/geo_haystack_search.js.map +1 -0
  1708. package/build/node_modules/mongodb/lib/operations/geo_haystack_search.mjs +85 -0
  1709. package/build/node_modules/mongodb/lib/operations/geo_haystack_search.mjs.map +1 -0
  1710. package/build/node_modules/mongodb/lib/operations/index_exists.js +46 -0
  1711. package/build/node_modules/mongodb/lib/operations/index_exists.js.map +1 -0
  1712. package/build/node_modules/mongodb/lib/operations/index_exists.mjs +44 -0
  1713. package/build/node_modules/mongodb/lib/operations/index_exists.mjs.map +1 -0
  1714. package/build/node_modules/mongodb/lib/operations/index_information.js +29 -0
  1715. package/build/node_modules/mongodb/lib/operations/index_information.js.map +1 -0
  1716. package/build/node_modules/mongodb/lib/operations/index_information.mjs +27 -0
  1717. package/build/node_modules/mongodb/lib/operations/index_information.mjs.map +1 -0
  1718. package/build/node_modules/mongodb/lib/operations/indexes.js +28 -0
  1719. package/build/node_modules/mongodb/lib/operations/indexes.js.map +1 -0
  1720. package/build/node_modules/mongodb/lib/operations/indexes.mjs +26 -0
  1721. package/build/node_modules/mongodb/lib/operations/indexes.mjs.map +1 -0
  1722. package/build/node_modules/mongodb/lib/operations/insert_many.js +67 -0
  1723. package/build/node_modules/mongodb/lib/operations/insert_many.js.map +1 -0
  1724. package/build/node_modules/mongodb/lib/operations/insert_many.mjs +65 -0
  1725. package/build/node_modules/mongodb/lib/operations/insert_many.mjs.map +1 -0
  1726. package/build/node_modules/mongodb/lib/operations/insert_one.js +46 -0
  1727. package/build/node_modules/mongodb/lib/operations/insert_one.js.map +1 -0
  1728. package/build/node_modules/mongodb/lib/operations/insert_one.mjs +44 -0
  1729. package/build/node_modules/mongodb/lib/operations/insert_one.mjs.map +1 -0
  1730. package/build/node_modules/mongodb/lib/operations/is_capped.js +24 -0
  1731. package/build/node_modules/mongodb/lib/operations/is_capped.js.map +1 -0
  1732. package/build/node_modules/mongodb/lib/operations/is_capped.mjs +22 -0
  1733. package/build/node_modules/mongodb/lib/operations/is_capped.mjs.map +1 -0
  1734. package/build/node_modules/mongodb/lib/operations/list_collections.js +113 -0
  1735. package/build/node_modules/mongodb/lib/operations/list_collections.js.map +1 -0
  1736. package/build/node_modules/mongodb/lib/operations/list_collections.mjs +111 -0
  1737. package/build/node_modules/mongodb/lib/operations/list_collections.mjs.map +1 -0
  1738. package/build/node_modules/mongodb/lib/operations/list_databases.js +44 -0
  1739. package/build/node_modules/mongodb/lib/operations/list_databases.js.map +1 -0
  1740. package/build/node_modules/mongodb/lib/operations/list_databases.mjs +42 -0
  1741. package/build/node_modules/mongodb/lib/operations/list_databases.mjs.map +1 -0
  1742. package/build/node_modules/mongodb/lib/operations/list_indexes.js +48 -0
  1743. package/build/node_modules/mongodb/lib/operations/list_indexes.js.map +1 -0
  1744. package/build/node_modules/mongodb/lib/operations/list_indexes.mjs +46 -0
  1745. package/build/node_modules/mongodb/lib/operations/list_indexes.mjs.map +1 -0
  1746. package/build/node_modules/mongodb/lib/operations/map_reduce.js +220 -0
  1747. package/build/node_modules/mongodb/lib/operations/map_reduce.js.map +1 -0
  1748. package/build/node_modules/mongodb/lib/operations/map_reduce.mjs +218 -0
  1749. package/build/node_modules/mongodb/lib/operations/map_reduce.mjs.map +1 -0
  1750. package/build/node_modules/mongodb/lib/operations/operation.js +82 -0
  1751. package/build/node_modules/mongodb/lib/operations/operation.js.map +1 -0
  1752. package/build/node_modules/mongodb/lib/operations/operation.mjs +80 -0
  1753. package/build/node_modules/mongodb/lib/operations/operation.mjs.map +1 -0
  1754. package/build/node_modules/mongodb/lib/operations/options_operation.js +39 -0
  1755. package/build/node_modules/mongodb/lib/operations/options_operation.js.map +1 -0
  1756. package/build/node_modules/mongodb/lib/operations/options_operation.mjs +37 -0
  1757. package/build/node_modules/mongodb/lib/operations/options_operation.mjs.map +1 -0
  1758. package/build/node_modules/mongodb/lib/operations/profiling_level.js +34 -0
  1759. package/build/node_modules/mongodb/lib/operations/profiling_level.js.map +1 -0
  1760. package/build/node_modules/mongodb/lib/operations/profiling_level.mjs +32 -0
  1761. package/build/node_modules/mongodb/lib/operations/profiling_level.mjs.map +1 -0
  1762. package/build/node_modules/mongodb/lib/operations/re_index.js +41 -0
  1763. package/build/node_modules/mongodb/lib/operations/re_index.js.map +1 -0
  1764. package/build/node_modules/mongodb/lib/operations/re_index.mjs +39 -0
  1765. package/build/node_modules/mongodb/lib/operations/re_index.mjs.map +1 -0
  1766. package/build/node_modules/mongodb/lib/operations/remove_user.js +60 -0
  1767. package/build/node_modules/mongodb/lib/operations/remove_user.js.map +1 -0
  1768. package/build/node_modules/mongodb/lib/operations/remove_user.mjs +58 -0
  1769. package/build/node_modules/mongodb/lib/operations/remove_user.mjs.map +1 -0
  1770. package/build/node_modules/mongodb/lib/operations/rename.js +69 -0
  1771. package/build/node_modules/mongodb/lib/operations/rename.js.map +1 -0
  1772. package/build/node_modules/mongodb/lib/operations/rename.mjs +67 -0
  1773. package/build/node_modules/mongodb/lib/operations/rename.mjs.map +1 -0
  1774. package/build/node_modules/mongodb/lib/operations/replace_one.js +61 -0
  1775. package/build/node_modules/mongodb/lib/operations/replace_one.js.map +1 -0
  1776. package/build/node_modules/mongodb/lib/operations/replace_one.mjs +59 -0
  1777. package/build/node_modules/mongodb/lib/operations/replace_one.mjs.map +1 -0
  1778. package/build/node_modules/mongodb/lib/operations/run_command.js +24 -0
  1779. package/build/node_modules/mongodb/lib/operations/run_command.js.map +1 -0
  1780. package/build/node_modules/mongodb/lib/operations/run_command.mjs +22 -0
  1781. package/build/node_modules/mongodb/lib/operations/run_command.mjs.map +1 -0
  1782. package/build/node_modules/mongodb/lib/operations/set_profiling_level.js +52 -0
  1783. package/build/node_modules/mongodb/lib/operations/set_profiling_level.js.map +1 -0
  1784. package/build/node_modules/mongodb/lib/operations/set_profiling_level.mjs +50 -0
  1785. package/build/node_modules/mongodb/lib/operations/set_profiling_level.mjs.map +1 -0
  1786. package/build/node_modules/mongodb/lib/operations/stats.js +51 -0
  1787. package/build/node_modules/mongodb/lib/operations/stats.js.map +1 -0
  1788. package/build/node_modules/mongodb/lib/operations/stats.mjs +49 -0
  1789. package/build/node_modules/mongodb/lib/operations/stats.mjs.map +1 -0
  1790. package/build/node_modules/mongodb/lib/operations/update_many.js +62 -0
  1791. package/build/node_modules/mongodb/lib/operations/update_many.js.map +1 -0
  1792. package/build/node_modules/mongodb/lib/operations/update_many.mjs +60 -0
  1793. package/build/node_modules/mongodb/lib/operations/update_many.mjs.map +1 -0
  1794. package/build/node_modules/mongodb/lib/operations/update_one.js +62 -0
  1795. package/build/node_modules/mongodb/lib/operations/update_one.js.map +1 -0
  1796. package/build/node_modules/mongodb/lib/operations/update_one.mjs +60 -0
  1797. package/build/node_modules/mongodb/lib/operations/update_one.mjs.map +1 -0
  1798. package/build/node_modules/mongodb/lib/operations/validate_collection.js +42 -0
  1799. package/build/node_modules/mongodb/lib/operations/validate_collection.js.map +1 -0
  1800. package/build/node_modules/mongodb/lib/operations/validate_collection.mjs +40 -0
  1801. package/build/node_modules/mongodb/lib/operations/validate_collection.mjs.map +1 -0
  1802. package/build/node_modules/mongodb/lib/read_concern.js +64 -0
  1803. package/build/node_modules/mongodb/lib/read_concern.js.map +1 -0
  1804. package/build/node_modules/mongodb/lib/read_concern.mjs +62 -0
  1805. package/build/node_modules/mongodb/lib/read_concern.mjs.map +1 -0
  1806. package/build/node_modules/mongodb/lib/topologies/mongos.js +454 -0
  1807. package/build/node_modules/mongodb/lib/topologies/mongos.js.map +1 -0
  1808. package/build/node_modules/mongodb/lib/topologies/mongos.mjs +452 -0
  1809. package/build/node_modules/mongodb/lib/topologies/mongos.mjs.map +1 -0
  1810. package/build/node_modules/mongodb/lib/topologies/native_topology.js +86 -0
  1811. package/build/node_modules/mongodb/lib/topologies/native_topology.js.map +1 -0
  1812. package/build/node_modules/mongodb/lib/topologies/native_topology.mjs +84 -0
  1813. package/build/node_modules/mongodb/lib/topologies/native_topology.mjs.map +1 -0
  1814. package/build/node_modules/mongodb/lib/topologies/replset.js +496 -0
  1815. package/build/node_modules/mongodb/lib/topologies/replset.js.map +1 -0
  1816. package/build/node_modules/mongodb/lib/topologies/replset.mjs +494 -0
  1817. package/build/node_modules/mongodb/lib/topologies/replset.mjs.map +1 -0
  1818. package/build/node_modules/mongodb/lib/topologies/server.js +456 -0
  1819. package/build/node_modules/mongodb/lib/topologies/server.js.map +1 -0
  1820. package/build/node_modules/mongodb/lib/topologies/server.mjs +454 -0
  1821. package/build/node_modules/mongodb/lib/topologies/server.mjs.map +1 -0
  1822. package/build/node_modules/mongodb/lib/topologies/topology_base.js +439 -0
  1823. package/build/node_modules/mongodb/lib/topologies/topology_base.js.map +1 -0
  1824. package/build/node_modules/mongodb/lib/topologies/topology_base.mjs +428 -0
  1825. package/build/node_modules/mongodb/lib/topologies/topology_base.mjs.map +1 -0
  1826. package/build/node_modules/mongodb/lib/url_parser.js +646 -0
  1827. package/build/node_modules/mongodb/lib/url_parser.js.map +1 -0
  1828. package/build/node_modules/mongodb/lib/url_parser.mjs +637 -0
  1829. package/build/node_modules/mongodb/lib/url_parser.mjs.map +1 -0
  1830. package/build/node_modules/mongodb/lib/utils.js +919 -0
  1831. package/build/node_modules/mongodb/lib/utils.js.map +1 -0
  1832. package/build/node_modules/mongodb/lib/utils.mjs +917 -0
  1833. package/build/node_modules/mongodb/lib/utils.mjs.map +1 -0
  1834. package/build/node_modules/mongodb/lib/write_concern.js +99 -0
  1835. package/build/node_modules/mongodb/lib/write_concern.js.map +1 -0
  1836. package/build/node_modules/mongodb/lib/write_concern.mjs +97 -0
  1837. package/build/node_modules/mongodb/lib/write_concern.mjs.map +1 -0
  1838. package/build/node_modules/mongodb/package.json.js +146 -0
  1839. package/build/node_modules/mongodb/package.json.js.map +1 -0
  1840. package/build/node_modules/mongodb/package.mjs +127 -0
  1841. package/build/node_modules/mongodb/package.mjs.map +1 -0
  1842. package/build/node_modules/mongoose/index.js +8 -0
  1843. package/build/node_modules/mongoose/index.js.map +1 -0
  1844. package/build/node_modules/mongoose/index.mjs +6 -0
  1845. package/build/node_modules/mongoose/index.mjs.map +1 -0
  1846. package/build/node_modules/mongoose/lib/aggregate.js +1176 -0
  1847. package/build/node_modules/mongoose/lib/aggregate.js.map +1 -0
  1848. package/build/node_modules/mongoose/lib/aggregate.mjs +1170 -0
  1849. package/build/node_modules/mongoose/lib/aggregate.mjs.map +1 -0
  1850. package/build/node_modules/mongoose/lib/browserDocument.js +119 -0
  1851. package/build/node_modules/mongoose/lib/browserDocument.js.map +1 -0
  1852. package/build/node_modules/mongoose/lib/browserDocument.mjs +113 -0
  1853. package/build/node_modules/mongoose/lib/browserDocument.mjs.map +1 -0
  1854. package/build/node_modules/mongoose/lib/cast/boolean.js +41 -0
  1855. package/build/node_modules/mongoose/lib/cast/boolean.js.map +1 -0
  1856. package/build/node_modules/mongoose/lib/cast/boolean.mjs +39 -0
  1857. package/build/node_modules/mongoose/lib/cast/boolean.mjs.map +1 -0
  1858. package/build/node_modules/mongoose/lib/cast/date.js +48 -0
  1859. package/build/node_modules/mongoose/lib/cast/date.js.map +1 -0
  1860. package/build/node_modules/mongoose/lib/cast/date.mjs +42 -0
  1861. package/build/node_modules/mongoose/lib/cast/date.mjs.map +1 -0
  1862. package/build/node_modules/mongoose/lib/cast/decimal128.js +43 -0
  1863. package/build/node_modules/mongoose/lib/cast/decimal128.js.map +1 -0
  1864. package/build/node_modules/mongoose/lib/cast/decimal128.mjs +37 -0
  1865. package/build/node_modules/mongoose/lib/cast/decimal128.mjs.map +1 -0
  1866. package/build/node_modules/mongoose/lib/cast/number.js +50 -0
  1867. package/build/node_modules/mongoose/lib/cast/number.js.map +1 -0
  1868. package/build/node_modules/mongoose/lib/cast/number.mjs +44 -0
  1869. package/build/node_modules/mongoose/lib/cast/number.mjs.map +1 -0
  1870. package/build/node_modules/mongoose/lib/cast/objectid.js +39 -0
  1871. package/build/node_modules/mongoose/lib/cast/objectid.js.map +1 -0
  1872. package/build/node_modules/mongoose/lib/cast/objectid.mjs +33 -0
  1873. package/build/node_modules/mongoose/lib/cast/objectid.mjs.map +1 -0
  1874. package/build/node_modules/mongoose/lib/cast/string.js +40 -0
  1875. package/build/node_modules/mongoose/lib/cast/string.js.map +1 -0
  1876. package/build/node_modules/mongoose/lib/cast/string.mjs +38 -0
  1877. package/build/node_modules/mongoose/lib/cast/string.mjs.map +1 -0
  1878. package/build/node_modules/mongoose/lib/cast.js +382 -0
  1879. package/build/node_modules/mongoose/lib/cast.js.map +1 -0
  1880. package/build/node_modules/mongoose/lib/cast.mjs +376 -0
  1881. package/build/node_modules/mongoose/lib/cast.mjs.map +1 -0
  1882. package/build/node_modules/mongoose/lib/collection.js +333 -0
  1883. package/build/node_modules/mongoose/lib/collection.js.map +1 -0
  1884. package/build/node_modules/mongoose/lib/collection.mjs +327 -0
  1885. package/build/node_modules/mongoose/lib/collection.mjs.map +1 -0
  1886. package/build/node_modules/mongoose/lib/connection.js +1534 -0
  1887. package/build/node_modules/mongoose/lib/connection.js.map +1 -0
  1888. package/build/node_modules/mongoose/lib/connection.mjs +1528 -0
  1889. package/build/node_modules/mongoose/lib/connection.mjs.map +1 -0
  1890. package/build/node_modules/mongoose/lib/connectionstate.js +29 -0
  1891. package/build/node_modules/mongoose/lib/connectionstate.js.map +1 -0
  1892. package/build/node_modules/mongoose/lib/connectionstate.mjs +27 -0
  1893. package/build/node_modules/mongoose/lib/connectionstate.mjs.map +1 -0
  1894. package/build/node_modules/mongoose/lib/cursor/AggregationCursor.js +384 -0
  1895. package/build/node_modules/mongoose/lib/cursor/AggregationCursor.js.map +1 -0
  1896. package/build/node_modules/mongoose/lib/cursor/AggregationCursor.mjs +377 -0
  1897. package/build/node_modules/mongoose/lib/cursor/AggregationCursor.mjs.map +1 -0
  1898. package/build/node_modules/mongoose/lib/cursor/ChangeStream.js +70 -0
  1899. package/build/node_modules/mongoose/lib/cursor/ChangeStream.js.map +1 -0
  1900. package/build/node_modules/mongoose/lib/cursor/ChangeStream.mjs +64 -0
  1901. package/build/node_modules/mongoose/lib/cursor/ChangeStream.mjs.map +1 -0
  1902. package/build/node_modules/mongoose/lib/cursor/QueryCursor.js +522 -0
  1903. package/build/node_modules/mongoose/lib/cursor/QueryCursor.js.map +1 -0
  1904. package/build/node_modules/mongoose/lib/cursor/QueryCursor.mjs +515 -0
  1905. package/build/node_modules/mongoose/lib/cursor/QueryCursor.mjs.map +1 -0
  1906. package/build/node_modules/mongoose/lib/document.js +4305 -0
  1907. package/build/node_modules/mongoose/lib/document.js.map +1 -0
  1908. package/build/node_modules/mongoose/lib/document.mjs +4298 -0
  1909. package/build/node_modules/mongoose/lib/document.mjs.map +1 -0
  1910. package/build/node_modules/mongoose/lib/document_provider.js +40 -0
  1911. package/build/node_modules/mongoose/lib/document_provider.js.map +1 -0
  1912. package/build/node_modules/mongoose/lib/document_provider.mjs +36 -0
  1913. package/build/node_modules/mongoose/lib/document_provider.mjs.map +1 -0
  1914. package/build/node_modules/mongoose/lib/driver.js +27 -0
  1915. package/build/node_modules/mongoose/lib/driver.js.map +1 -0
  1916. package/build/node_modules/mongoose/lib/driver.mjs +22 -0
  1917. package/build/node_modules/mongoose/lib/driver.mjs.map +1 -0
  1918. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/ReadPreference.js +52 -0
  1919. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/ReadPreference.js.map +1 -0
  1920. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/ReadPreference.mjs +50 -0
  1921. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/ReadPreference.mjs.map +1 -0
  1922. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/binary.js +14 -0
  1923. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/binary.js.map +1 -0
  1924. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/binary.mjs +12 -0
  1925. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/binary.mjs.map +1 -0
  1926. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js +470 -0
  1927. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js.map +1 -0
  1928. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.mjs +463 -0
  1929. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.mjs.map +1 -0
  1930. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js +219 -0
  1931. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js.map +1 -0
  1932. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.mjs +217 -0
  1933. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.mjs.map +1 -0
  1934. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/decimal128.js +12 -0
  1935. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/decimal128.js.map +1 -0
  1936. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/decimal128.mjs +10 -0
  1937. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/decimal128.mjs.map +1 -0
  1938. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/index.js +39 -0
  1939. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/index.js.map +1 -0
  1940. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/index.mjs +30 -0
  1941. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/index.mjs.map +1 -0
  1942. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.js +18 -0
  1943. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.js.map +1 -0
  1944. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.mjs +16 -0
  1945. package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.mjs.map +1 -0
  1946. package/build/node_modules/mongoose/lib/error/cast.js +161 -0
  1947. package/build/node_modules/mongoose/lib/error/cast.js.map +1 -0
  1948. package/build/node_modules/mongoose/lib/error/cast.mjs +155 -0
  1949. package/build/node_modules/mongoose/lib/error/cast.mjs.map +1 -0
  1950. package/build/node_modules/mongoose/lib/error/divergentArray.js +35 -0
  1951. package/build/node_modules/mongoose/lib/error/divergentArray.js.map +1 -0
  1952. package/build/node_modules/mongoose/lib/error/divergentArray.mjs +33 -0
  1953. package/build/node_modules/mongoose/lib/error/divergentArray.mjs.map +1 -0
  1954. package/build/node_modules/mongoose/lib/error/index.js +225 -0
  1955. package/build/node_modules/mongoose/lib/error/index.js.map +1 -0
  1956. package/build/node_modules/mongoose/lib/error/index.mjs +223 -0
  1957. package/build/node_modules/mongoose/lib/error/index.mjs.map +1 -0
  1958. package/build/node_modules/mongoose/lib/error/messages.js +32 -0
  1959. package/build/node_modules/mongoose/lib/error/messages.js.map +1 -0
  1960. package/build/node_modules/mongoose/lib/error/messages.mjs +30 -0
  1961. package/build/node_modules/mongoose/lib/error/messages.mjs.map +1 -0
  1962. package/build/node_modules/mongoose/lib/error/missingSchema.js +28 -0
  1963. package/build/node_modules/mongoose/lib/error/missingSchema.js.map +1 -0
  1964. package/build/node_modules/mongoose/lib/error/missingSchema.mjs +26 -0
  1965. package/build/node_modules/mongoose/lib/error/missingSchema.mjs.map +1 -0
  1966. package/build/node_modules/mongoose/lib/error/mongooseError.js +16 -0
  1967. package/build/node_modules/mongoose/lib/error/mongooseError.js.map +1 -0
  1968. package/build/node_modules/mongoose/lib/error/mongooseError.mjs +14 -0
  1969. package/build/node_modules/mongoose/lib/error/mongooseError.mjs.map +1 -0
  1970. package/build/node_modules/mongoose/lib/error/notFound.js +54 -0
  1971. package/build/node_modules/mongoose/lib/error/notFound.js.map +1 -0
  1972. package/build/node_modules/mongoose/lib/error/notFound.mjs +48 -0
  1973. package/build/node_modules/mongoose/lib/error/notFound.mjs.map +1 -0
  1974. package/build/node_modules/mongoose/lib/error/objectExpected.js +35 -0
  1975. package/build/node_modules/mongoose/lib/error/objectExpected.js.map +1 -0
  1976. package/build/node_modules/mongoose/lib/error/objectExpected.mjs +33 -0
  1977. package/build/node_modules/mongoose/lib/error/objectExpected.mjs.map +1 -0
  1978. package/build/node_modules/mongoose/lib/error/objectParameter.js +35 -0
  1979. package/build/node_modules/mongoose/lib/error/objectParameter.js.map +1 -0
  1980. package/build/node_modules/mongoose/lib/error/objectParameter.mjs +33 -0
  1981. package/build/node_modules/mongoose/lib/error/objectParameter.mjs.map +1 -0
  1982. package/build/node_modules/mongoose/lib/error/overwriteModel.js +26 -0
  1983. package/build/node_modules/mongoose/lib/error/overwriteModel.js.map +1 -0
  1984. package/build/node_modules/mongoose/lib/error/overwriteModel.mjs +24 -0
  1985. package/build/node_modules/mongoose/lib/error/overwriteModel.mjs.map +1 -0
  1986. package/build/node_modules/mongoose/lib/error/parallelSave.js +35 -0
  1987. package/build/node_modules/mongoose/lib/error/parallelSave.js.map +1 -0
  1988. package/build/node_modules/mongoose/lib/error/parallelSave.mjs +33 -0
  1989. package/build/node_modules/mongoose/lib/error/parallelSave.mjs.map +1 -0
  1990. package/build/node_modules/mongoose/lib/error/parallelValidate.js +36 -0
  1991. package/build/node_modules/mongoose/lib/error/parallelValidate.js.map +1 -0
  1992. package/build/node_modules/mongoose/lib/error/parallelValidate.mjs +34 -0
  1993. package/build/node_modules/mongoose/lib/error/parallelValidate.mjs.map +1 -0
  1994. package/build/node_modules/mongoose/lib/error/serverSelection.js +69 -0
  1995. package/build/node_modules/mongoose/lib/error/serverSelection.js.map +1 -0
  1996. package/build/node_modules/mongoose/lib/error/serverSelection.mjs +67 -0
  1997. package/build/node_modules/mongoose/lib/error/serverSelection.mjs.map +1 -0
  1998. package/build/node_modules/mongoose/lib/error/strict.js +38 -0
  1999. package/build/node_modules/mongoose/lib/error/strict.js.map +1 -0
  2000. package/build/node_modules/mongoose/lib/error/strict.mjs +36 -0
  2001. package/build/node_modules/mongoose/lib/error/strict.mjs.map +1 -0
  2002. package/build/node_modules/mongoose/lib/error/validation.js +121 -0
  2003. package/build/node_modules/mongoose/lib/error/validation.js.map +1 -0
  2004. package/build/node_modules/mongoose/lib/error/validation.mjs +115 -0
  2005. package/build/node_modules/mongoose/lib/error/validation.mjs.map +1 -0
  2006. package/build/node_modules/mongoose/lib/error/validator.js +99 -0
  2007. package/build/node_modules/mongoose/lib/error/validator.js.map +1 -0
  2008. package/build/node_modules/mongoose/lib/error/validator.mjs +97 -0
  2009. package/build/node_modules/mongoose/lib/error/validator.mjs.map +1 -0
  2010. package/build/node_modules/mongoose/lib/error/version.js +41 -0
  2011. package/build/node_modules/mongoose/lib/error/version.js.map +1 -0
  2012. package/build/node_modules/mongoose/lib/error/version.mjs +39 -0
  2013. package/build/node_modules/mongoose/lib/error/version.mjs.map +1 -0
  2014. package/build/node_modules/mongoose/lib/helpers/aggregate/stringifyFunctionOperators.js +53 -0
  2015. package/build/node_modules/mongoose/lib/helpers/aggregate/stringifyFunctionOperators.js.map +1 -0
  2016. package/build/node_modules/mongoose/lib/helpers/aggregate/stringifyFunctionOperators.mjs +51 -0
  2017. package/build/node_modules/mongoose/lib/helpers/aggregate/stringifyFunctionOperators.mjs.map +1 -0
  2018. package/build/node_modules/mongoose/lib/helpers/arrayDepth.js +36 -0
  2019. package/build/node_modules/mongoose/lib/helpers/arrayDepth.js.map +1 -0
  2020. package/build/node_modules/mongoose/lib/helpers/arrayDepth.mjs +34 -0
  2021. package/build/node_modules/mongoose/lib/helpers/arrayDepth.mjs.map +1 -0
  2022. package/build/node_modules/mongoose/lib/helpers/clone.js +141 -0
  2023. package/build/node_modules/mongoose/lib/helpers/clone.js.map +1 -0
  2024. package/build/node_modules/mongoose/lib/helpers/clone.mjs +139 -0
  2025. package/build/node_modules/mongoose/lib/helpers/clone.mjs.map +1 -0
  2026. package/build/node_modules/mongoose/lib/helpers/common.js +123 -0
  2027. package/build/node_modules/mongoose/lib/helpers/common.js.map +1 -0
  2028. package/build/node_modules/mongoose/lib/helpers/common.mjs +118 -0
  2029. package/build/node_modules/mongoose/lib/helpers/common.mjs.map +1 -0
  2030. package/build/node_modules/mongoose/lib/helpers/cursor/eachAsync.js +163 -0
  2031. package/build/node_modules/mongoose/lib/helpers/cursor/eachAsync.js.map +1 -0
  2032. package/build/node_modules/mongoose/lib/helpers/cursor/eachAsync.mjs +161 -0
  2033. package/build/node_modules/mongoose/lib/helpers/cursor/eachAsync.mjs.map +1 -0
  2034. package/build/node_modules/mongoose/lib/helpers/discriminator/areDiscriminatorValuesEqual.js +19 -0
  2035. package/build/node_modules/mongoose/lib/helpers/discriminator/areDiscriminatorValuesEqual.js.map +1 -0
  2036. package/build/node_modules/mongoose/lib/helpers/discriminator/areDiscriminatorValuesEqual.mjs +17 -0
  2037. package/build/node_modules/mongoose/lib/helpers/discriminator/areDiscriminatorValuesEqual.mjs.map +1 -0
  2038. package/build/node_modules/mongoose/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.js +15 -0
  2039. package/build/node_modules/mongoose/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.js.map +1 -0
  2040. package/build/node_modules/mongoose/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.mjs +13 -0
  2041. package/build/node_modules/mongoose/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.mjs.map +1 -0
  2042. package/build/node_modules/mongoose/lib/helpers/discriminator/getConstructor.js +28 -0
  2043. package/build/node_modules/mongoose/lib/helpers/discriminator/getConstructor.js.map +1 -0
  2044. package/build/node_modules/mongoose/lib/helpers/discriminator/getConstructor.mjs +26 -0
  2045. package/build/node_modules/mongoose/lib/helpers/discriminator/getConstructor.mjs.map +1 -0
  2046. package/build/node_modules/mongoose/lib/helpers/discriminator/getDiscriminatorByValue.js +30 -0
  2047. package/build/node_modules/mongoose/lib/helpers/discriminator/getDiscriminatorByValue.js.map +1 -0
  2048. package/build/node_modules/mongoose/lib/helpers/discriminator/getDiscriminatorByValue.mjs +28 -0
  2049. package/build/node_modules/mongoose/lib/helpers/discriminator/getDiscriminatorByValue.mjs.map +1 -0
  2050. package/build/node_modules/mongoose/lib/helpers/discriminator/getSchemaDiscriminatorByValue.js +29 -0
  2051. package/build/node_modules/mongoose/lib/helpers/discriminator/getSchemaDiscriminatorByValue.js.map +1 -0
  2052. package/build/node_modules/mongoose/lib/helpers/discriminator/getSchemaDiscriminatorByValue.mjs +27 -0
  2053. package/build/node_modules/mongoose/lib/helpers/discriminator/getSchemaDiscriminatorByValue.mjs.map +1 -0
  2054. package/build/node_modules/mongoose/lib/helpers/document/cleanModifiedSubpaths.js +31 -0
  2055. package/build/node_modules/mongoose/lib/helpers/document/cleanModifiedSubpaths.js.map +1 -0
  2056. package/build/node_modules/mongoose/lib/helpers/document/cleanModifiedSubpaths.mjs +29 -0
  2057. package/build/node_modules/mongoose/lib/helpers/document/cleanModifiedSubpaths.mjs.map +1 -0
  2058. package/build/node_modules/mongoose/lib/helpers/document/compile.js +229 -0
  2059. package/build/node_modules/mongoose/lib/helpers/document/compile.js.map +1 -0
  2060. package/build/node_modules/mongoose/lib/helpers/document/compile.mjs +224 -0
  2061. package/build/node_modules/mongoose/lib/helpers/document/compile.mjs.map +1 -0
  2062. package/build/node_modules/mongoose/lib/helpers/document/getEmbeddedDiscriminatorPath.js +46 -0
  2063. package/build/node_modules/mongoose/lib/helpers/document/getEmbeddedDiscriminatorPath.js.map +1 -0
  2064. package/build/node_modules/mongoose/lib/helpers/document/getEmbeddedDiscriminatorPath.mjs +44 -0
  2065. package/build/node_modules/mongoose/lib/helpers/document/getEmbeddedDiscriminatorPath.mjs.map +1 -0
  2066. package/build/node_modules/mongoose/lib/helpers/document/handleSpreadDoc.js +20 -0
  2067. package/build/node_modules/mongoose/lib/helpers/document/handleSpreadDoc.js.map +1 -0
  2068. package/build/node_modules/mongoose/lib/helpers/document/handleSpreadDoc.mjs +18 -0
  2069. package/build/node_modules/mongoose/lib/helpers/document/handleSpreadDoc.mjs.map +1 -0
  2070. package/build/node_modules/mongoose/lib/helpers/each.js +28 -0
  2071. package/build/node_modules/mongoose/lib/helpers/each.js.map +1 -0
  2072. package/build/node_modules/mongoose/lib/helpers/each.mjs +26 -0
  2073. package/build/node_modules/mongoose/lib/helpers/each.mjs.map +1 -0
  2074. package/build/node_modules/mongoose/lib/helpers/get.js +67 -0
  2075. package/build/node_modules/mongoose/lib/helpers/get.js.map +1 -0
  2076. package/build/node_modules/mongoose/lib/helpers/get.mjs +65 -0
  2077. package/build/node_modules/mongoose/lib/helpers/get.mjs.map +1 -0
  2078. package/build/node_modules/mongoose/lib/helpers/getDefaultBulkwriteResult.js +31 -0
  2079. package/build/node_modules/mongoose/lib/helpers/getDefaultBulkwriteResult.js.map +1 -0
  2080. package/build/node_modules/mongoose/lib/helpers/getDefaultBulkwriteResult.mjs +29 -0
  2081. package/build/node_modules/mongoose/lib/helpers/getDefaultBulkwriteResult.mjs.map +1 -0
  2082. package/build/node_modules/mongoose/lib/helpers/getFunctionName.js +11 -0
  2083. package/build/node_modules/mongoose/lib/helpers/getFunctionName.js.map +1 -0
  2084. package/build/node_modules/mongoose/lib/helpers/getFunctionName.mjs +9 -0
  2085. package/build/node_modules/mongoose/lib/helpers/getFunctionName.mjs.map +1 -0
  2086. package/build/node_modules/mongoose/lib/helpers/immediate.js +17 -0
  2087. package/build/node_modules/mongoose/lib/helpers/immediate.js.map +1 -0
  2088. package/build/node_modules/mongoose/lib/helpers/immediate.mjs +15 -0
  2089. package/build/node_modules/mongoose/lib/helpers/immediate.mjs.map +1 -0
  2090. package/build/node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.js +21 -0
  2091. package/build/node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.js.map +1 -0
  2092. package/build/node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.mjs +19 -0
  2093. package/build/node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.mjs.map +1 -0
  2094. package/build/node_modules/mongoose/lib/helpers/indexes/isIndexEqual.js +98 -0
  2095. package/build/node_modules/mongoose/lib/helpers/indexes/isIndexEqual.js.map +1 -0
  2096. package/build/node_modules/mongoose/lib/helpers/indexes/isIndexEqual.mjs +96 -0
  2097. package/build/node_modules/mongoose/lib/helpers/indexes/isIndexEqual.mjs.map +1 -0
  2098. package/build/node_modules/mongoose/lib/helpers/isBsonType.js +16 -0
  2099. package/build/node_modules/mongoose/lib/helpers/isBsonType.js.map +1 -0
  2100. package/build/node_modules/mongoose/lib/helpers/isBsonType.mjs +14 -0
  2101. package/build/node_modules/mongoose/lib/helpers/isBsonType.mjs.map +1 -0
  2102. package/build/node_modules/mongoose/lib/helpers/isMongooseObject.js +24 -0
  2103. package/build/node_modules/mongoose/lib/helpers/isMongooseObject.js.map +1 -0
  2104. package/build/node_modules/mongoose/lib/helpers/isMongooseObject.mjs +22 -0
  2105. package/build/node_modules/mongoose/lib/helpers/isMongooseObject.mjs.map +1 -0
  2106. package/build/node_modules/mongoose/lib/helpers/isObject.js +19 -0
  2107. package/build/node_modules/mongoose/lib/helpers/isObject.js.map +1 -0
  2108. package/build/node_modules/mongoose/lib/helpers/isObject.mjs +17 -0
  2109. package/build/node_modules/mongoose/lib/helpers/isObject.mjs.map +1 -0
  2110. package/build/node_modules/mongoose/lib/helpers/isPromise.js +10 -0
  2111. package/build/node_modules/mongoose/lib/helpers/isPromise.js.map +1 -0
  2112. package/build/node_modules/mongoose/lib/helpers/isPromise.mjs +8 -0
  2113. package/build/node_modules/mongoose/lib/helpers/isPromise.mjs.map +1 -0
  2114. package/build/node_modules/mongoose/lib/helpers/model/applyHooks.js +141 -0
  2115. package/build/node_modules/mongoose/lib/helpers/model/applyHooks.js.map +1 -0
  2116. package/build/node_modules/mongoose/lib/helpers/model/applyHooks.mjs +139 -0
  2117. package/build/node_modules/mongoose/lib/helpers/model/applyHooks.mjs.map +1 -0
  2118. package/build/node_modules/mongoose/lib/helpers/model/applyMethods.js +59 -0
  2119. package/build/node_modules/mongoose/lib/helpers/model/applyMethods.js.map +1 -0
  2120. package/build/node_modules/mongoose/lib/helpers/model/applyMethods.mjs +57 -0
  2121. package/build/node_modules/mongoose/lib/helpers/model/applyMethods.mjs.map +1 -0
  2122. package/build/node_modules/mongoose/lib/helpers/model/applyStaticHooks.js +77 -0
  2123. package/build/node_modules/mongoose/lib/helpers/model/applyStaticHooks.js.map +1 -0
  2124. package/build/node_modules/mongoose/lib/helpers/model/applyStaticHooks.mjs +75 -0
  2125. package/build/node_modules/mongoose/lib/helpers/model/applyStaticHooks.mjs.map +1 -0
  2126. package/build/node_modules/mongoose/lib/helpers/model/applyStatics.js +15 -0
  2127. package/build/node_modules/mongoose/lib/helpers/model/applyStatics.js.map +1 -0
  2128. package/build/node_modules/mongoose/lib/helpers/model/applyStatics.mjs +13 -0
  2129. package/build/node_modules/mongoose/lib/helpers/model/applyStatics.mjs.map +1 -0
  2130. package/build/node_modules/mongoose/lib/helpers/model/castBulkWrite.js +227 -0
  2131. package/build/node_modules/mongoose/lib/helpers/model/castBulkWrite.js.map +1 -0
  2132. package/build/node_modules/mongoose/lib/helpers/model/castBulkWrite.mjs +225 -0
  2133. package/build/node_modules/mongoose/lib/helpers/model/castBulkWrite.mjs.map +1 -0
  2134. package/build/node_modules/mongoose/lib/helpers/model/discriminator.js +212 -0
  2135. package/build/node_modules/mongoose/lib/helpers/model/discriminator.js.map +1 -0
  2136. package/build/node_modules/mongoose/lib/helpers/model/discriminator.mjs +210 -0
  2137. package/build/node_modules/mongoose/lib/helpers/model/discriminator.mjs.map +1 -0
  2138. package/build/node_modules/mongoose/lib/helpers/parallelLimit.js +58 -0
  2139. package/build/node_modules/mongoose/lib/helpers/parallelLimit.js.map +1 -0
  2140. package/build/node_modules/mongoose/lib/helpers/parallelLimit.mjs +56 -0
  2141. package/build/node_modules/mongoose/lib/helpers/parallelLimit.mjs.map +1 -0
  2142. package/build/node_modules/mongoose/lib/helpers/path/parentPaths.js +16 -0
  2143. package/build/node_modules/mongoose/lib/helpers/path/parentPaths.js.map +1 -0
  2144. package/build/node_modules/mongoose/lib/helpers/path/parentPaths.mjs +14 -0
  2145. package/build/node_modules/mongoose/lib/helpers/path/parentPaths.mjs.map +1 -0
  2146. package/build/node_modules/mongoose/lib/helpers/path/setDottedPath.js +19 -0
  2147. package/build/node_modules/mongoose/lib/helpers/path/setDottedPath.js.map +1 -0
  2148. package/build/node_modules/mongoose/lib/helpers/path/setDottedPath.mjs +17 -0
  2149. package/build/node_modules/mongoose/lib/helpers/path/setDottedPath.mjs.map +1 -0
  2150. package/build/node_modules/mongoose/lib/helpers/populate/SkipPopulateValue.js +13 -0
  2151. package/build/node_modules/mongoose/lib/helpers/populate/SkipPopulateValue.js.map +1 -0
  2152. package/build/node_modules/mongoose/lib/helpers/populate/SkipPopulateValue.mjs +11 -0
  2153. package/build/node_modules/mongoose/lib/helpers/populate/SkipPopulateValue.mjs.map +1 -0
  2154. package/build/node_modules/mongoose/lib/helpers/populate/assignRawDocsToIdStructure.js +104 -0
  2155. package/build/node_modules/mongoose/lib/helpers/populate/assignRawDocsToIdStructure.js.map +1 -0
  2156. package/build/node_modules/mongoose/lib/helpers/populate/assignRawDocsToIdStructure.mjs +102 -0
  2157. package/build/node_modules/mongoose/lib/helpers/populate/assignRawDocsToIdStructure.mjs.map +1 -0
  2158. package/build/node_modules/mongoose/lib/helpers/populate/assignVals.js +291 -0
  2159. package/build/node_modules/mongoose/lib/helpers/populate/assignVals.js.map +1 -0
  2160. package/build/node_modules/mongoose/lib/helpers/populate/assignVals.mjs +289 -0
  2161. package/build/node_modules/mongoose/lib/helpers/populate/assignVals.mjs.map +1 -0
  2162. package/build/node_modules/mongoose/lib/helpers/populate/createPopulateQueryFilter.js +82 -0
  2163. package/build/node_modules/mongoose/lib/helpers/populate/createPopulateQueryFilter.js.map +1 -0
  2164. package/build/node_modules/mongoose/lib/helpers/populate/createPopulateQueryFilter.mjs +80 -0
  2165. package/build/node_modules/mongoose/lib/helpers/populate/createPopulateQueryFilter.mjs.map +1 -0
  2166. package/build/node_modules/mongoose/lib/helpers/populate/getModelsMapForPopulate.js +550 -0
  2167. package/build/node_modules/mongoose/lib/helpers/populate/getModelsMapForPopulate.js.map +1 -0
  2168. package/build/node_modules/mongoose/lib/helpers/populate/getModelsMapForPopulate.mjs +544 -0
  2169. package/build/node_modules/mongoose/lib/helpers/populate/getModelsMapForPopulate.mjs.map +1 -0
  2170. package/build/node_modules/mongoose/lib/helpers/populate/getSchemaTypes.js +218 -0
  2171. package/build/node_modules/mongoose/lib/helpers/populate/getSchemaTypes.js.map +1 -0
  2172. package/build/node_modules/mongoose/lib/helpers/populate/getSchemaTypes.mjs +216 -0
  2173. package/build/node_modules/mongoose/lib/helpers/populate/getSchemaTypes.mjs.map +1 -0
  2174. package/build/node_modules/mongoose/lib/helpers/populate/getVirtual.js +75 -0
  2175. package/build/node_modules/mongoose/lib/helpers/populate/getVirtual.js.map +1 -0
  2176. package/build/node_modules/mongoose/lib/helpers/populate/getVirtual.mjs +73 -0
  2177. package/build/node_modules/mongoose/lib/helpers/populate/getVirtual.mjs.map +1 -0
  2178. package/build/node_modules/mongoose/lib/helpers/populate/leanPopulateMap.js +10 -0
  2179. package/build/node_modules/mongoose/lib/helpers/populate/leanPopulateMap.js.map +1 -0
  2180. package/build/node_modules/mongoose/lib/helpers/populate/leanPopulateMap.mjs +8 -0
  2181. package/build/node_modules/mongoose/lib/helpers/populate/leanPopulateMap.mjs.map +1 -0
  2182. package/build/node_modules/mongoose/lib/helpers/populate/lookupLocalFields.js +31 -0
  2183. package/build/node_modules/mongoose/lib/helpers/populate/lookupLocalFields.js.map +1 -0
  2184. package/build/node_modules/mongoose/lib/helpers/populate/lookupLocalFields.mjs +29 -0
  2185. package/build/node_modules/mongoose/lib/helpers/populate/lookupLocalFields.mjs.map +1 -0
  2186. package/build/node_modules/mongoose/lib/helpers/populate/normalizeRefPath.js +48 -0
  2187. package/build/node_modules/mongoose/lib/helpers/populate/normalizeRefPath.js.map +1 -0
  2188. package/build/node_modules/mongoose/lib/helpers/populate/normalizeRefPath.mjs +46 -0
  2189. package/build/node_modules/mongoose/lib/helpers/populate/normalizeRefPath.mjs.map +1 -0
  2190. package/build/node_modules/mongoose/lib/helpers/populate/removeDeselectedForeignField.js +34 -0
  2191. package/build/node_modules/mongoose/lib/helpers/populate/removeDeselectedForeignField.js.map +1 -0
  2192. package/build/node_modules/mongoose/lib/helpers/populate/removeDeselectedForeignField.mjs +32 -0
  2193. package/build/node_modules/mongoose/lib/helpers/populate/removeDeselectedForeignField.mjs.map +1 -0
  2194. package/build/node_modules/mongoose/lib/helpers/populate/validateRef.js +26 -0
  2195. package/build/node_modules/mongoose/lib/helpers/populate/validateRef.js.map +1 -0
  2196. package/build/node_modules/mongoose/lib/helpers/populate/validateRef.mjs +20 -0
  2197. package/build/node_modules/mongoose/lib/helpers/populate/validateRef.mjs.map +1 -0
  2198. package/build/node_modules/mongoose/lib/helpers/printJestWarning.js +16 -0
  2199. package/build/node_modules/mongoose/lib/helpers/printJestWarning.js.map +1 -0
  2200. package/build/node_modules/mongoose/lib/helpers/printJestWarning.mjs +14 -0
  2201. package/build/node_modules/mongoose/lib/helpers/printJestWarning.mjs.map +1 -0
  2202. package/build/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.js +21 -0
  2203. package/build/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.js.map +1 -0
  2204. package/build/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.mjs +19 -0
  2205. package/build/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.mjs.map +1 -0
  2206. package/build/node_modules/mongoose/lib/helpers/projection/isExclusive.js +35 -0
  2207. package/build/node_modules/mongoose/lib/helpers/projection/isExclusive.js.map +1 -0
  2208. package/build/node_modules/mongoose/lib/helpers/projection/isExclusive.mjs +33 -0
  2209. package/build/node_modules/mongoose/lib/helpers/projection/isExclusive.mjs.map +1 -0
  2210. package/build/node_modules/mongoose/lib/helpers/projection/isInclusive.js +37 -0
  2211. package/build/node_modules/mongoose/lib/helpers/projection/isInclusive.js.map +1 -0
  2212. package/build/node_modules/mongoose/lib/helpers/projection/isInclusive.mjs +35 -0
  2213. package/build/node_modules/mongoose/lib/helpers/projection/isInclusive.mjs.map +1 -0
  2214. package/build/node_modules/mongoose/lib/helpers/projection/isPathExcluded.js +38 -0
  2215. package/build/node_modules/mongoose/lib/helpers/projection/isPathExcluded.js.map +1 -0
  2216. package/build/node_modules/mongoose/lib/helpers/projection/isPathExcluded.mjs +36 -0
  2217. package/build/node_modules/mongoose/lib/helpers/projection/isPathExcluded.mjs.map +1 -0
  2218. package/build/node_modules/mongoose/lib/helpers/projection/isPathSelectedInclusive.js +31 -0
  2219. package/build/node_modules/mongoose/lib/helpers/projection/isPathSelectedInclusive.js.map +1 -0
  2220. package/build/node_modules/mongoose/lib/helpers/projection/isPathSelectedInclusive.mjs +29 -0
  2221. package/build/node_modules/mongoose/lib/helpers/projection/isPathSelectedInclusive.mjs.map +1 -0
  2222. package/build/node_modules/mongoose/lib/helpers/projection/parseProjection.js +36 -0
  2223. package/build/node_modules/mongoose/lib/helpers/projection/parseProjection.js.map +1 -0
  2224. package/build/node_modules/mongoose/lib/helpers/projection/parseProjection.mjs +34 -0
  2225. package/build/node_modules/mongoose/lib/helpers/projection/parseProjection.mjs.map +1 -0
  2226. package/build/node_modules/mongoose/lib/helpers/promiseOrCallback.js +49 -0
  2227. package/build/node_modules/mongoose/lib/helpers/promiseOrCallback.js.map +1 -0
  2228. package/build/node_modules/mongoose/lib/helpers/promiseOrCallback.mjs +47 -0
  2229. package/build/node_modules/mongoose/lib/helpers/promiseOrCallback.mjs.map +1 -0
  2230. package/build/node_modules/mongoose/lib/helpers/query/applyGlobalMaxTimeMS.js +18 -0
  2231. package/build/node_modules/mongoose/lib/helpers/query/applyGlobalMaxTimeMS.js.map +1 -0
  2232. package/build/node_modules/mongoose/lib/helpers/query/applyGlobalMaxTimeMS.mjs +16 -0
  2233. package/build/node_modules/mongoose/lib/helpers/query/applyGlobalMaxTimeMS.mjs.map +1 -0
  2234. package/build/node_modules/mongoose/lib/helpers/query/applyQueryMiddleware.js +96 -0
  2235. package/build/node_modules/mongoose/lib/helpers/query/applyQueryMiddleware.js.map +1 -0
  2236. package/build/node_modules/mongoose/lib/helpers/query/applyQueryMiddleware.mjs +94 -0
  2237. package/build/node_modules/mongoose/lib/helpers/query/applyQueryMiddleware.mjs.map +1 -0
  2238. package/build/node_modules/mongoose/lib/helpers/query/castFilterPath.js +58 -0
  2239. package/build/node_modules/mongoose/lib/helpers/query/castFilterPath.js.map +1 -0
  2240. package/build/node_modules/mongoose/lib/helpers/query/castFilterPath.mjs +56 -0
  2241. package/build/node_modules/mongoose/lib/helpers/query/castFilterPath.mjs.map +1 -0
  2242. package/build/node_modules/mongoose/lib/helpers/query/castUpdate.js +561 -0
  2243. package/build/node_modules/mongoose/lib/helpers/query/castUpdate.js.map +1 -0
  2244. package/build/node_modules/mongoose/lib/helpers/query/castUpdate.mjs +559 -0
  2245. package/build/node_modules/mongoose/lib/helpers/query/castUpdate.mjs.map +1 -0
  2246. package/build/node_modules/mongoose/lib/helpers/query/completeMany.js +54 -0
  2247. package/build/node_modules/mongoose/lib/helpers/query/completeMany.js.map +1 -0
  2248. package/build/node_modules/mongoose/lib/helpers/query/completeMany.mjs +52 -0
  2249. package/build/node_modules/mongoose/lib/helpers/query/completeMany.mjs.map +1 -0
  2250. package/build/node_modules/mongoose/lib/helpers/query/getEmbeddedDiscriminatorPath.js +87 -0
  2251. package/build/node_modules/mongoose/lib/helpers/query/getEmbeddedDiscriminatorPath.js.map +1 -0
  2252. package/build/node_modules/mongoose/lib/helpers/query/getEmbeddedDiscriminatorPath.mjs +85 -0
  2253. package/build/node_modules/mongoose/lib/helpers/query/getEmbeddedDiscriminatorPath.mjs.map +1 -0
  2254. package/build/node_modules/mongoose/lib/helpers/query/handleImmutable.js +31 -0
  2255. package/build/node_modules/mongoose/lib/helpers/query/handleImmutable.js.map +1 -0
  2256. package/build/node_modules/mongoose/lib/helpers/query/handleImmutable.mjs +29 -0
  2257. package/build/node_modules/mongoose/lib/helpers/query/handleImmutable.mjs.map +1 -0
  2258. package/build/node_modules/mongoose/lib/helpers/query/hasDollarKeys.js +22 -0
  2259. package/build/node_modules/mongoose/lib/helpers/query/hasDollarKeys.js.map +1 -0
  2260. package/build/node_modules/mongoose/lib/helpers/query/hasDollarKeys.mjs +20 -0
  2261. package/build/node_modules/mongoose/lib/helpers/query/hasDollarKeys.mjs.map +1 -0
  2262. package/build/node_modules/mongoose/lib/helpers/query/isOperator.js +14 -0
  2263. package/build/node_modules/mongoose/lib/helpers/query/isOperator.js.map +1 -0
  2264. package/build/node_modules/mongoose/lib/helpers/query/isOperator.mjs +12 -0
  2265. package/build/node_modules/mongoose/lib/helpers/query/isOperator.mjs.map +1 -0
  2266. package/build/node_modules/mongoose/lib/helpers/query/sanitizeProjection.js +17 -0
  2267. package/build/node_modules/mongoose/lib/helpers/query/sanitizeProjection.js.map +1 -0
  2268. package/build/node_modules/mongoose/lib/helpers/query/sanitizeProjection.mjs +15 -0
  2269. package/build/node_modules/mongoose/lib/helpers/query/sanitizeProjection.mjs.map +1 -0
  2270. package/build/node_modules/mongoose/lib/helpers/query/selectPopulatedFields.js +52 -0
  2271. package/build/node_modules/mongoose/lib/helpers/query/selectPopulatedFields.js.map +1 -0
  2272. package/build/node_modules/mongoose/lib/helpers/query/selectPopulatedFields.mjs +50 -0
  2273. package/build/node_modules/mongoose/lib/helpers/query/selectPopulatedFields.mjs.map +1 -0
  2274. package/build/node_modules/mongoose/lib/helpers/query/wrapThunk.js +21 -0
  2275. package/build/node_modules/mongoose/lib/helpers/query/wrapThunk.js.map +1 -0
  2276. package/build/node_modules/mongoose/lib/helpers/query/wrapThunk.mjs +19 -0
  2277. package/build/node_modules/mongoose/lib/helpers/query/wrapThunk.mjs.map +1 -0
  2278. package/build/node_modules/mongoose/lib/helpers/schema/addAutoId.js +10 -0
  2279. package/build/node_modules/mongoose/lib/helpers/schema/addAutoId.js.map +1 -0
  2280. package/build/node_modules/mongoose/lib/helpers/schema/addAutoId.mjs +8 -0
  2281. package/build/node_modules/mongoose/lib/helpers/schema/addAutoId.mjs.map +1 -0
  2282. package/build/node_modules/mongoose/lib/helpers/schema/applyPlugins.js +47 -0
  2283. package/build/node_modules/mongoose/lib/helpers/schema/applyPlugins.js.map +1 -0
  2284. package/build/node_modules/mongoose/lib/helpers/schema/applyPlugins.mjs +45 -0
  2285. package/build/node_modules/mongoose/lib/helpers/schema/applyPlugins.mjs.map +1 -0
  2286. package/build/node_modules/mongoose/lib/helpers/schema/applyWriteConcern.js +33 -0
  2287. package/build/node_modules/mongoose/lib/helpers/schema/applyWriteConcern.js.map +1 -0
  2288. package/build/node_modules/mongoose/lib/helpers/schema/applyWriteConcern.mjs +31 -0
  2289. package/build/node_modules/mongoose/lib/helpers/schema/applyWriteConcern.mjs.map +1 -0
  2290. package/build/node_modules/mongoose/lib/helpers/schema/cleanPositionalOperators.js +15 -0
  2291. package/build/node_modules/mongoose/lib/helpers/schema/cleanPositionalOperators.js.map +1 -0
  2292. package/build/node_modules/mongoose/lib/helpers/schema/cleanPositionalOperators.mjs +13 -0
  2293. package/build/node_modules/mongoose/lib/helpers/schema/cleanPositionalOperators.mjs.map +1 -0
  2294. package/build/node_modules/mongoose/lib/helpers/schema/getIndexes.js +158 -0
  2295. package/build/node_modules/mongoose/lib/helpers/schema/getIndexes.js.map +1 -0
  2296. package/build/node_modules/mongoose/lib/helpers/schema/getIndexes.mjs +156 -0
  2297. package/build/node_modules/mongoose/lib/helpers/schema/getIndexes.mjs.map +1 -0
  2298. package/build/node_modules/mongoose/lib/helpers/schema/getPath.js +38 -0
  2299. package/build/node_modules/mongoose/lib/helpers/schema/getPath.js.map +1 -0
  2300. package/build/node_modules/mongoose/lib/helpers/schema/getPath.mjs +36 -0
  2301. package/build/node_modules/mongoose/lib/helpers/schema/getPath.mjs.map +1 -0
  2302. package/build/node_modules/mongoose/lib/helpers/schema/handleIdOption.js +23 -0
  2303. package/build/node_modules/mongoose/lib/helpers/schema/handleIdOption.js.map +1 -0
  2304. package/build/node_modules/mongoose/lib/helpers/schema/handleIdOption.mjs +21 -0
  2305. package/build/node_modules/mongoose/lib/helpers/schema/handleIdOption.mjs.map +1 -0
  2306. package/build/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.js +27 -0
  2307. package/build/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.js.map +1 -0
  2308. package/build/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.mjs +25 -0
  2309. package/build/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.mjs.map +1 -0
  2310. package/build/node_modules/mongoose/lib/helpers/schema/merge.js +30 -0
  2311. package/build/node_modules/mongoose/lib/helpers/schema/merge.js.map +1 -0
  2312. package/build/node_modules/mongoose/lib/helpers/schema/merge.mjs +28 -0
  2313. package/build/node_modules/mongoose/lib/helpers/schema/merge.mjs.map +1 -0
  2314. package/build/node_modules/mongoose/lib/helpers/schematype/handleImmutable.js +48 -0
  2315. package/build/node_modules/mongoose/lib/helpers/schematype/handleImmutable.js.map +1 -0
  2316. package/build/node_modules/mongoose/lib/helpers/schematype/handleImmutable.mjs +46 -0
  2317. package/build/node_modules/mongoose/lib/helpers/schematype/handleImmutable.mjs.map +1 -0
  2318. package/build/node_modules/mongoose/lib/helpers/setDefaultsOnInsert.js +134 -0
  2319. package/build/node_modules/mongoose/lib/helpers/setDefaultsOnInsert.js.map +1 -0
  2320. package/build/node_modules/mongoose/lib/helpers/setDefaultsOnInsert.mjs +132 -0
  2321. package/build/node_modules/mongoose/lib/helpers/setDefaultsOnInsert.mjs.map +1 -0
  2322. package/build/node_modules/mongoose/lib/helpers/specialProperties.js +6 -0
  2323. package/build/node_modules/mongoose/lib/helpers/specialProperties.js.map +1 -0
  2324. package/build/node_modules/mongoose/lib/helpers/specialProperties.mjs +4 -0
  2325. package/build/node_modules/mongoose/lib/helpers/specialProperties.mjs.map +1 -0
  2326. package/build/node_modules/mongoose/lib/helpers/symbols.js +61 -0
  2327. package/build/node_modules/mongoose/lib/helpers/symbols.js.map +1 -0
  2328. package/build/node_modules/mongoose/lib/helpers/symbols.mjs +41 -0
  2329. package/build/node_modules/mongoose/lib/helpers/symbols.mjs.map +1 -0
  2330. package/build/node_modules/mongoose/lib/helpers/timers.js +13 -0
  2331. package/build/node_modules/mongoose/lib/helpers/timers.js.map +1 -0
  2332. package/build/node_modules/mongoose/lib/helpers/timers.mjs +9 -0
  2333. package/build/node_modules/mongoose/lib/helpers/timers.mjs.map +1 -0
  2334. package/build/node_modules/mongoose/lib/helpers/timestamps/setupTimestamps.js +114 -0
  2335. package/build/node_modules/mongoose/lib/helpers/timestamps/setupTimestamps.js.map +1 -0
  2336. package/build/node_modules/mongoose/lib/helpers/timestamps/setupTimestamps.mjs +112 -0
  2337. package/build/node_modules/mongoose/lib/helpers/timestamps/setupTimestamps.mjs.map +1 -0
  2338. package/build/node_modules/mongoose/lib/helpers/topology/allServersUnknown.js +14 -0
  2339. package/build/node_modules/mongoose/lib/helpers/topology/allServersUnknown.js.map +1 -0
  2340. package/build/node_modules/mongoose/lib/helpers/topology/allServersUnknown.mjs +12 -0
  2341. package/build/node_modules/mongoose/lib/helpers/topology/allServersUnknown.mjs.map +1 -0
  2342. package/build/node_modules/mongoose/lib/helpers/topology/isAtlas.js +15 -0
  2343. package/build/node_modules/mongoose/lib/helpers/topology/isAtlas.js.map +1 -0
  2344. package/build/node_modules/mongoose/lib/helpers/topology/isAtlas.mjs +13 -0
  2345. package/build/node_modules/mongoose/lib/helpers/topology/isAtlas.mjs.map +1 -0
  2346. package/build/node_modules/mongoose/lib/helpers/topology/isSSLError.js +18 -0
  2347. package/build/node_modules/mongoose/lib/helpers/topology/isSSLError.js.map +1 -0
  2348. package/build/node_modules/mongoose/lib/helpers/topology/isSSLError.mjs +16 -0
  2349. package/build/node_modules/mongoose/lib/helpers/topology/isSSLError.mjs.map +1 -0
  2350. package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToChildren.js +175 -0
  2351. package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToChildren.js.map +1 -0
  2352. package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToChildren.mjs +173 -0
  2353. package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToChildren.mjs.map +1 -0
  2354. package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToUpdate.js +124 -0
  2355. package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToUpdate.js.map +1 -0
  2356. package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToUpdate.mjs +122 -0
  2357. package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToUpdate.mjs.map +1 -0
  2358. package/build/node_modules/mongoose/lib/helpers/update/castArrayFilters.js +63 -0
  2359. package/build/node_modules/mongoose/lib/helpers/update/castArrayFilters.js.map +1 -0
  2360. package/build/node_modules/mongoose/lib/helpers/update/castArrayFilters.mjs +61 -0
  2361. package/build/node_modules/mongoose/lib/helpers/update/castArrayFilters.mjs.map +1 -0
  2362. package/build/node_modules/mongoose/lib/helpers/update/modifiedPaths.js +38 -0
  2363. package/build/node_modules/mongoose/lib/helpers/update/modifiedPaths.js.map +1 -0
  2364. package/build/node_modules/mongoose/lib/helpers/update/modifiedPaths.mjs +36 -0
  2365. package/build/node_modules/mongoose/lib/helpers/update/modifiedPaths.mjs.map +1 -0
  2366. package/build/node_modules/mongoose/lib/helpers/update/moveImmutableProperties.js +56 -0
  2367. package/build/node_modules/mongoose/lib/helpers/update/moveImmutableProperties.js.map +1 -0
  2368. package/build/node_modules/mongoose/lib/helpers/update/moveImmutableProperties.mjs +54 -0
  2369. package/build/node_modules/mongoose/lib/helpers/update/moveImmutableProperties.mjs.map +1 -0
  2370. package/build/node_modules/mongoose/lib/helpers/update/removeUnusedArrayFilters.js +21 -0
  2371. package/build/node_modules/mongoose/lib/helpers/update/removeUnusedArrayFilters.js.map +1 -0
  2372. package/build/node_modules/mongoose/lib/helpers/update/removeUnusedArrayFilters.mjs +19 -0
  2373. package/build/node_modules/mongoose/lib/helpers/update/removeUnusedArrayFilters.mjs.map +1 -0
  2374. package/build/node_modules/mongoose/lib/helpers/update/updatedPathsByArrayFilter.js +27 -0
  2375. package/build/node_modules/mongoose/lib/helpers/update/updatedPathsByArrayFilter.js.map +1 -0
  2376. package/build/node_modules/mongoose/lib/helpers/update/updatedPathsByArrayFilter.mjs +25 -0
  2377. package/build/node_modules/mongoose/lib/helpers/update/updatedPathsByArrayFilter.mjs.map +1 -0
  2378. package/build/node_modules/mongoose/lib/helpers/updateValidators.js +263 -0
  2379. package/build/node_modules/mongoose/lib/helpers/updateValidators.js.map +1 -0
  2380. package/build/node_modules/mongoose/lib/helpers/updateValidators.mjs +261 -0
  2381. package/build/node_modules/mongoose/lib/helpers/updateValidators.mjs.map +1 -0
  2382. package/build/node_modules/mongoose/lib/index.js +1208 -0
  2383. package/build/node_modules/mongoose/lib/index.js.map +1 -0
  2384. package/build/node_modules/mongoose/lib/index.mjs +1201 -0
  2385. package/build/node_modules/mongoose/lib/index.mjs.map +1 -0
  2386. package/build/node_modules/mongoose/lib/internal.js +47 -0
  2387. package/build/node_modules/mongoose/lib/internal.js.map +1 -0
  2388. package/build/node_modules/mongoose/lib/internal.mjs +45 -0
  2389. package/build/node_modules/mongoose/lib/internal.mjs.map +1 -0
  2390. package/build/node_modules/mongoose/lib/model.js +5089 -0
  2391. package/build/node_modules/mongoose/lib/model.js.map +1 -0
  2392. package/build/node_modules/mongoose/lib/model.mjs +5082 -0
  2393. package/build/node_modules/mongoose/lib/model.mjs.map +1 -0
  2394. package/build/node_modules/mongoose/lib/options/PopulateOptions.js +39 -0
  2395. package/build/node_modules/mongoose/lib/options/PopulateOptions.js.map +1 -0
  2396. package/build/node_modules/mongoose/lib/options/PopulateOptions.mjs +37 -0
  2397. package/build/node_modules/mongoose/lib/options/PopulateOptions.mjs.map +1 -0
  2398. package/build/node_modules/mongoose/lib/options/SchemaArrayOptions.js +63 -0
  2399. package/build/node_modules/mongoose/lib/options/SchemaArrayOptions.js.map +1 -0
  2400. package/build/node_modules/mongoose/lib/options/SchemaArrayOptions.mjs +61 -0
  2401. package/build/node_modules/mongoose/lib/options/SchemaArrayOptions.mjs.map +1 -0
  2402. package/build/node_modules/mongoose/lib/options/SchemaBufferOptions.js +42 -0
  2403. package/build/node_modules/mongoose/lib/options/SchemaBufferOptions.js.map +1 -0
  2404. package/build/node_modules/mongoose/lib/options/SchemaBufferOptions.mjs +40 -0
  2405. package/build/node_modules/mongoose/lib/options/SchemaBufferOptions.mjs.map +1 -0
  2406. package/build/node_modules/mongoose/lib/options/SchemaDateOptions.js +68 -0
  2407. package/build/node_modules/mongoose/lib/options/SchemaDateOptions.js.map +1 -0
  2408. package/build/node_modules/mongoose/lib/options/SchemaDateOptions.mjs +66 -0
  2409. package/build/node_modules/mongoose/lib/options/SchemaDateOptions.mjs.map +1 -0
  2410. package/build/node_modules/mongoose/lib/options/SchemaDocumentArrayOptions.js +72 -0
  2411. package/build/node_modules/mongoose/lib/options/SchemaDocumentArrayOptions.js.map +1 -0
  2412. package/build/node_modules/mongoose/lib/options/SchemaDocumentArrayOptions.mjs +70 -0
  2413. package/build/node_modules/mongoose/lib/options/SchemaDocumentArrayOptions.mjs.map +1 -0
  2414. package/build/node_modules/mongoose/lib/options/SchemaMapOptions.js +47 -0
  2415. package/build/node_modules/mongoose/lib/options/SchemaMapOptions.js.map +1 -0
  2416. package/build/node_modules/mongoose/lib/options/SchemaMapOptions.mjs +45 -0
  2417. package/build/node_modules/mongoose/lib/options/SchemaMapOptions.mjs.map +1 -0
  2418. package/build/node_modules/mongoose/lib/options/SchemaNumberOptions.js +103 -0
  2419. package/build/node_modules/mongoose/lib/options/SchemaNumberOptions.js.map +1 -0
  2420. package/build/node_modules/mongoose/lib/options/SchemaNumberOptions.mjs +101 -0
  2421. package/build/node_modules/mongoose/lib/options/SchemaNumberOptions.mjs.map +1 -0
  2422. package/build/node_modules/mongoose/lib/options/SchemaObjectIdOptions.js +67 -0
  2423. package/build/node_modules/mongoose/lib/options/SchemaObjectIdOptions.js.map +1 -0
  2424. package/build/node_modules/mongoose/lib/options/SchemaObjectIdOptions.mjs +65 -0
  2425. package/build/node_modules/mongoose/lib/options/SchemaObjectIdOptions.mjs.map +1 -0
  2426. package/build/node_modules/mongoose/lib/options/SchemaSingleNestedOptions.js +46 -0
  2427. package/build/node_modules/mongoose/lib/options/SchemaSingleNestedOptions.js.map +1 -0
  2428. package/build/node_modules/mongoose/lib/options/SchemaSingleNestedOptions.mjs +44 -0
  2429. package/build/node_modules/mongoose/lib/options/SchemaSingleNestedOptions.mjs.map +1 -0
  2430. package/build/node_modules/mongoose/lib/options/SchemaStringOptions.js +142 -0
  2431. package/build/node_modules/mongoose/lib/options/SchemaStringOptions.js.map +1 -0
  2432. package/build/node_modules/mongoose/lib/options/SchemaStringOptions.mjs +140 -0
  2433. package/build/node_modules/mongoose/lib/options/SchemaStringOptions.mjs.map +1 -0
  2434. package/build/node_modules/mongoose/lib/options/SchemaTypeOptions.js +235 -0
  2435. package/build/node_modules/mongoose/lib/options/SchemaTypeOptions.js.map +1 -0
  2436. package/build/node_modules/mongoose/lib/options/SchemaTypeOptions.mjs +233 -0
  2437. package/build/node_modules/mongoose/lib/options/SchemaTypeOptions.mjs.map +1 -0
  2438. package/build/node_modules/mongoose/lib/options/VirtualOptions.js +167 -0
  2439. package/build/node_modules/mongoose/lib/options/VirtualOptions.js.map +1 -0
  2440. package/build/node_modules/mongoose/lib/options/VirtualOptions.mjs +165 -0
  2441. package/build/node_modules/mongoose/lib/options/VirtualOptions.mjs.map +1 -0
  2442. package/build/node_modules/mongoose/lib/options/propertyOptions.js +11 -0
  2443. package/build/node_modules/mongoose/lib/options/propertyOptions.js.map +1 -0
  2444. package/build/node_modules/mongoose/lib/options/propertyOptions.mjs +9 -0
  2445. package/build/node_modules/mongoose/lib/options/propertyOptions.mjs.map +1 -0
  2446. package/build/node_modules/mongoose/lib/options/removeOptions.js +17 -0
  2447. package/build/node_modules/mongoose/lib/options/removeOptions.js.map +1 -0
  2448. package/build/node_modules/mongoose/lib/options/removeOptions.mjs +15 -0
  2449. package/build/node_modules/mongoose/lib/options/removeOptions.mjs.map +1 -0
  2450. package/build/node_modules/mongoose/lib/options/saveOptions.js +17 -0
  2451. package/build/node_modules/mongoose/lib/options/saveOptions.js.map +1 -0
  2452. package/build/node_modules/mongoose/lib/options/saveOptions.mjs +15 -0
  2453. package/build/node_modules/mongoose/lib/options/saveOptions.mjs.map +1 -0
  2454. package/build/node_modules/mongoose/lib/options.js +25 -0
  2455. package/build/node_modules/mongoose/lib/options.js.map +1 -0
  2456. package/build/node_modules/mongoose/lib/options.mjs +21 -0
  2457. package/build/node_modules/mongoose/lib/options.mjs.map +1 -0
  2458. package/build/node_modules/mongoose/lib/plugins/idGetter.js +31 -0
  2459. package/build/node_modules/mongoose/lib/plugins/idGetter.js.map +1 -0
  2460. package/build/node_modules/mongoose/lib/plugins/idGetter.mjs +29 -0
  2461. package/build/node_modules/mongoose/lib/plugins/idGetter.mjs.map +1 -0
  2462. package/build/node_modules/mongoose/lib/plugins/removeSubdocs.js +34 -0
  2463. package/build/node_modules/mongoose/lib/plugins/removeSubdocs.js.map +1 -0
  2464. package/build/node_modules/mongoose/lib/plugins/removeSubdocs.mjs +32 -0
  2465. package/build/node_modules/mongoose/lib/plugins/removeSubdocs.mjs.map +1 -0
  2466. package/build/node_modules/mongoose/lib/plugins/saveSubdocs.js +69 -0
  2467. package/build/node_modules/mongoose/lib/plugins/saveSubdocs.js.map +1 -0
  2468. package/build/node_modules/mongoose/lib/plugins/saveSubdocs.mjs +67 -0
  2469. package/build/node_modules/mongoose/lib/plugins/saveSubdocs.mjs.map +1 -0
  2470. package/build/node_modules/mongoose/lib/plugins/sharding.js +93 -0
  2471. package/build/node_modules/mongoose/lib/plugins/sharding.js.map +1 -0
  2472. package/build/node_modules/mongoose/lib/plugins/sharding.mjs +89 -0
  2473. package/build/node_modules/mongoose/lib/plugins/sharding.mjs.map +1 -0
  2474. package/build/node_modules/mongoose/lib/plugins/trackTransaction.js +96 -0
  2475. package/build/node_modules/mongoose/lib/plugins/trackTransaction.js.map +1 -0
  2476. package/build/node_modules/mongoose/lib/plugins/trackTransaction.mjs +94 -0
  2477. package/build/node_modules/mongoose/lib/plugins/trackTransaction.mjs.map +1 -0
  2478. package/build/node_modules/mongoose/lib/plugins/validateBeforeSave.js +48 -0
  2479. package/build/node_modules/mongoose/lib/plugins/validateBeforeSave.js.map +1 -0
  2480. package/build/node_modules/mongoose/lib/plugins/validateBeforeSave.mjs +46 -0
  2481. package/build/node_modules/mongoose/lib/plugins/validateBeforeSave.mjs.map +1 -0
  2482. package/build/node_modules/mongoose/lib/promise_provider.js +60 -0
  2483. package/build/node_modules/mongoose/lib/promise_provider.js.map +1 -0
  2484. package/build/node_modules/mongoose/lib/promise_provider.mjs +54 -0
  2485. package/build/node_modules/mongoose/lib/promise_provider.mjs.map +1 -0
  2486. package/build/node_modules/mongoose/lib/query.js +5588 -0
  2487. package/build/node_modules/mongoose/lib/query.js.map +1 -0
  2488. package/build/node_modules/mongoose/lib/query.mjs +5582 -0
  2489. package/build/node_modules/mongoose/lib/query.mjs.map +1 -0
  2490. package/build/node_modules/mongoose/lib/queryhelpers.js +341 -0
  2491. package/build/node_modules/mongoose/lib/queryhelpers.js.map +1 -0
  2492. package/build/node_modules/mongoose/lib/queryhelpers.mjs +339 -0
  2493. package/build/node_modules/mongoose/lib/queryhelpers.mjs.map +1 -0
  2494. package/build/node_modules/mongoose/lib/schema/SingleNestedPath.js +358 -0
  2495. package/build/node_modules/mongoose/lib/schema/SingleNestedPath.js.map +1 -0
  2496. package/build/node_modules/mongoose/lib/schema/SingleNestedPath.mjs +352 -0
  2497. package/build/node_modules/mongoose/lib/schema/SingleNestedPath.mjs.map +1 -0
  2498. package/build/node_modules/mongoose/lib/schema/array.js +676 -0
  2499. package/build/node_modules/mongoose/lib/schema/array.js.map +1 -0
  2500. package/build/node_modules/mongoose/lib/schema/array.mjs +670 -0
  2501. package/build/node_modules/mongoose/lib/schema/array.mjs.map +1 -0
  2502. package/build/node_modules/mongoose/lib/schema/boolean.js +278 -0
  2503. package/build/node_modules/mongoose/lib/schema/boolean.js.map +1 -0
  2504. package/build/node_modules/mongoose/lib/schema/boolean.mjs +276 -0
  2505. package/build/node_modules/mongoose/lib/schema/boolean.mjs.map +1 -0
  2506. package/build/node_modules/mongoose/lib/schema/buffer.js +276 -0
  2507. package/build/node_modules/mongoose/lib/schema/buffer.js.map +1 -0
  2508. package/build/node_modules/mongoose/lib/schema/buffer.mjs +274 -0
  2509. package/build/node_modules/mongoose/lib/schema/buffer.mjs.map +1 -0
  2510. package/build/node_modules/mongoose/lib/schema/date.js +411 -0
  2511. package/build/node_modules/mongoose/lib/schema/date.js.map +1 -0
  2512. package/build/node_modules/mongoose/lib/schema/date.mjs +409 -0
  2513. package/build/node_modules/mongoose/lib/schema/date.mjs.map +1 -0
  2514. package/build/node_modules/mongoose/lib/schema/decimal128.js +218 -0
  2515. package/build/node_modules/mongoose/lib/schema/decimal128.js.map +1 -0
  2516. package/build/node_modules/mongoose/lib/schema/decimal128.mjs +216 -0
  2517. package/build/node_modules/mongoose/lib/schema/decimal128.mjs.map +1 -0
  2518. package/build/node_modules/mongoose/lib/schema/documentarray.js +591 -0
  2519. package/build/node_modules/mongoose/lib/schema/documentarray.js.map +1 -0
  2520. package/build/node_modules/mongoose/lib/schema/documentarray.mjs +584 -0
  2521. package/build/node_modules/mongoose/lib/schema/documentarray.mjs.map +1 -0
  2522. package/build/node_modules/mongoose/lib/schema/index.js +52 -0
  2523. package/build/node_modules/mongoose/lib/schema/index.js.map +1 -0
  2524. package/build/node_modules/mongoose/lib/schema/index.mjs +50 -0
  2525. package/build/node_modules/mongoose/lib/schema/index.mjs.map +1 -0
  2526. package/build/node_modules/mongoose/lib/schema/map.js +84 -0
  2527. package/build/node_modules/mongoose/lib/schema/map.js.map +1 -0
  2528. package/build/node_modules/mongoose/lib/schema/map.mjs +82 -0
  2529. package/build/node_modules/mongoose/lib/schema/map.mjs.map +1 -0
  2530. package/build/node_modules/mongoose/lib/schema/mixed.js +140 -0
  2531. package/build/node_modules/mongoose/lib/schema/mixed.js.map +1 -0
  2532. package/build/node_modules/mongoose/lib/schema/mixed.mjs +138 -0
  2533. package/build/node_modules/mongoose/lib/schema/mixed.mjs.map +1 -0
  2534. package/build/node_modules/mongoose/lib/schema/number.js +443 -0
  2535. package/build/node_modules/mongoose/lib/schema/number.js.map +1 -0
  2536. package/build/node_modules/mongoose/lib/schema/number.mjs +441 -0
  2537. package/build/node_modules/mongoose/lib/schema/number.mjs.map +1 -0
  2538. package/build/node_modules/mongoose/lib/schema/objectid.js +307 -0
  2539. package/build/node_modules/mongoose/lib/schema/objectid.js.map +1 -0
  2540. package/build/node_modules/mongoose/lib/schema/objectid.mjs +305 -0
  2541. package/build/node_modules/mongoose/lib/schema/objectid.mjs.map +1 -0
  2542. package/build/node_modules/mongoose/lib/schema/operators/bitwise.js +43 -0
  2543. package/build/node_modules/mongoose/lib/schema/operators/bitwise.js.map +1 -0
  2544. package/build/node_modules/mongoose/lib/schema/operators/bitwise.mjs +41 -0
  2545. package/build/node_modules/mongoose/lib/schema/operators/bitwise.mjs.map +1 -0
  2546. package/build/node_modules/mongoose/lib/schema/operators/exists.js +15 -0
  2547. package/build/node_modules/mongoose/lib/schema/operators/exists.js.map +1 -0
  2548. package/build/node_modules/mongoose/lib/schema/operators/exists.mjs +13 -0
  2549. package/build/node_modules/mongoose/lib/schema/operators/exists.mjs.map +1 -0
  2550. package/build/node_modules/mongoose/lib/schema/operators/geospatial.js +121 -0
  2551. package/build/node_modules/mongoose/lib/schema/operators/geospatial.js.map +1 -0
  2552. package/build/node_modules/mongoose/lib/schema/operators/geospatial.mjs +115 -0
  2553. package/build/node_modules/mongoose/lib/schema/operators/geospatial.mjs.map +1 -0
  2554. package/build/node_modules/mongoose/lib/schema/operators/helpers.js +46 -0
  2555. package/build/node_modules/mongoose/lib/schema/operators/helpers.js.map +1 -0
  2556. package/build/node_modules/mongoose/lib/schema/operators/helpers.mjs +41 -0
  2557. package/build/node_modules/mongoose/lib/schema/operators/helpers.mjs.map +1 -0
  2558. package/build/node_modules/mongoose/lib/schema/operators/text.js +42 -0
  2559. package/build/node_modules/mongoose/lib/schema/operators/text.js.map +1 -0
  2560. package/build/node_modules/mongoose/lib/schema/operators/text.mjs +40 -0
  2561. package/build/node_modules/mongoose/lib/schema/operators/text.mjs.map +1 -0
  2562. package/build/node_modules/mongoose/lib/schema/operators/type.js +23 -0
  2563. package/build/node_modules/mongoose/lib/schema/operators/type.js.map +1 -0
  2564. package/build/node_modules/mongoose/lib/schema/operators/type.mjs +21 -0
  2565. package/build/node_modules/mongoose/lib/schema/operators/type.mjs.map +1 -0
  2566. package/build/node_modules/mongoose/lib/schema/string.js +681 -0
  2567. package/build/node_modules/mongoose/lib/schema/string.js.map +1 -0
  2568. package/build/node_modules/mongoose/lib/schema/string.mjs +679 -0
  2569. package/build/node_modules/mongoose/lib/schema/string.mjs.map +1 -0
  2570. package/build/node_modules/mongoose/lib/schema/symbols.js +17 -0
  2571. package/build/node_modules/mongoose/lib/schema/symbols.js.map +1 -0
  2572. package/build/node_modules/mongoose/lib/schema/symbols.mjs +12 -0
  2573. package/build/node_modules/mongoose/lib/schema/symbols.mjs.map +1 -0
  2574. package/build/node_modules/mongoose/lib/schema.js +2205 -0
  2575. package/build/node_modules/mongoose/lib/schema.js.map +1 -0
  2576. package/build/node_modules/mongoose/lib/schema.mjs +2198 -0
  2577. package/build/node_modules/mongoose/lib/schema.mjs.map +1 -0
  2578. package/build/node_modules/mongoose/lib/schematype.js +1694 -0
  2579. package/build/node_modules/mongoose/lib/schematype.js.map +1 -0
  2580. package/build/node_modules/mongoose/lib/schematype.mjs +1688 -0
  2581. package/build/node_modules/mongoose/lib/schematype.mjs.map +1 -0
  2582. package/build/node_modules/mongoose/lib/statemachine.js +184 -0
  2583. package/build/node_modules/mongoose/lib/statemachine.js.map +1 -0
  2584. package/build/node_modules/mongoose/lib/statemachine.mjs +182 -0
  2585. package/build/node_modules/mongoose/lib/statemachine.mjs.map +1 -0
  2586. package/build/node_modules/mongoose/lib/types/array.js +91 -0
  2587. package/build/node_modules/mongoose/lib/types/array.js.map +1 -0
  2588. package/build/node_modules/mongoose/lib/types/array.mjs +89 -0
  2589. package/build/node_modules/mongoose/lib/types/array.mjs.map +1 -0
  2590. package/build/node_modules/mongoose/lib/types/buffer.js +283 -0
  2591. package/build/node_modules/mongoose/lib/types/buffer.js.map +1 -0
  2592. package/build/node_modules/mongoose/lib/types/buffer.mjs +281 -0
  2593. package/build/node_modules/mongoose/lib/types/buffer.mjs.map +1 -0
  2594. package/build/node_modules/mongoose/lib/types/core_array.js +982 -0
  2595. package/build/node_modules/mongoose/lib/types/core_array.js.map +1 -0
  2596. package/build/node_modules/mongoose/lib/types/core_array.mjs +976 -0
  2597. package/build/node_modules/mongoose/lib/types/core_array.mjs.map +1 -0
  2598. package/build/node_modules/mongoose/lib/types/decimal128.js +18 -0
  2599. package/build/node_modules/mongoose/lib/types/decimal128.js.map +1 -0
  2600. package/build/node_modules/mongoose/lib/types/decimal128.mjs +16 -0
  2601. package/build/node_modules/mongoose/lib/types/decimal128.mjs.map +1 -0
  2602. package/build/node_modules/mongoose/lib/types/documentarray.js +462 -0
  2603. package/build/node_modules/mongoose/lib/types/documentarray.js.map +1 -0
  2604. package/build/node_modules/mongoose/lib/types/documentarray.mjs +456 -0
  2605. package/build/node_modules/mongoose/lib/types/documentarray.mjs.map +1 -0
  2606. package/build/node_modules/mongoose/lib/types/embedded.js +474 -0
  2607. package/build/node_modules/mongoose/lib/types/embedded.js.map +1 -0
  2608. package/build/node_modules/mongoose/lib/types/embedded.mjs +467 -0
  2609. package/build/node_modules/mongoose/lib/types/embedded.mjs.map +1 -0
  2610. package/build/node_modules/mongoose/lib/types/index.js +31 -0
  2611. package/build/node_modules/mongoose/lib/types/index.js.map +1 -0
  2612. package/build/node_modules/mongoose/lib/types/index.mjs +29 -0
  2613. package/build/node_modules/mongoose/lib/types/index.mjs.map +1 -0
  2614. package/build/node_modules/mongoose/lib/types/map.js +252 -0
  2615. package/build/node_modules/mongoose/lib/types/map.js.map +1 -0
  2616. package/build/node_modules/mongoose/lib/types/map.mjs +246 -0
  2617. package/build/node_modules/mongoose/lib/types/map.mjs.map +1 -0
  2618. package/build/node_modules/mongoose/lib/types/objectid.js +36 -0
  2619. package/build/node_modules/mongoose/lib/types/objectid.js.map +1 -0
  2620. package/build/node_modules/mongoose/lib/types/objectid.mjs +34 -0
  2621. package/build/node_modules/mongoose/lib/types/objectid.mjs.map +1 -0
  2622. package/build/node_modules/mongoose/lib/types/subdocument.js +308 -0
  2623. package/build/node_modules/mongoose/lib/types/subdocument.js.map +1 -0
  2624. package/build/node_modules/mongoose/lib/types/subdocument.mjs +306 -0
  2625. package/build/node_modules/mongoose/lib/types/subdocument.mjs.map +1 -0
  2626. package/build/node_modules/mongoose/lib/utils.js +962 -0
  2627. package/build/node_modules/mongoose/lib/utils.js.map +1 -0
  2628. package/build/node_modules/mongoose/lib/utils.mjs +960 -0
  2629. package/build/node_modules/mongoose/lib/utils.mjs.map +1 -0
  2630. package/build/node_modules/mongoose/lib/validoptions.js +39 -0
  2631. package/build/node_modules/mongoose/lib/validoptions.js.map +1 -0
  2632. package/build/node_modules/mongoose/lib/validoptions.mjs +37 -0
  2633. package/build/node_modules/mongoose/lib/validoptions.mjs.map +1 -0
  2634. package/build/node_modules/mongoose/lib/virtualtype.js +179 -0
  2635. package/build/node_modules/mongoose/lib/virtualtype.js.map +1 -0
  2636. package/build/node_modules/mongoose/lib/virtualtype.mjs +177 -0
  2637. package/build/node_modules/mongoose/lib/virtualtype.mjs.map +1 -0
  2638. package/build/node_modules/mongoose/node_modules/safe-buffer/index.js +80 -0
  2639. package/build/node_modules/mongoose/node_modules/safe-buffer/index.js.map +1 -0
  2640. package/build/node_modules/mongoose/node_modules/safe-buffer/index.mjs +74 -0
  2641. package/build/node_modules/mongoose/node_modules/safe-buffer/index.mjs.map +1 -0
  2642. package/build/node_modules/mongoose/package.json.js +299 -0
  2643. package/build/node_modules/mongoose/package.json.js.map +1 -0
  2644. package/build/node_modules/mongoose/package.mjs +277 -0
  2645. package/build/node_modules/mongoose/package.mjs.map +1 -0
  2646. package/build/node_modules/mongoose-legacy-pluralize/index.js +104 -0
  2647. package/build/node_modules/mongoose-legacy-pluralize/index.js.map +1 -0
  2648. package/build/node_modules/mongoose-legacy-pluralize/index.mjs +102 -0
  2649. package/build/node_modules/mongoose-legacy-pluralize/index.mjs.map +1 -0
  2650. package/build/node_modules/mpath/index.js +12 -0
  2651. package/build/node_modules/mpath/index.js.map +1 -0
  2652. package/build/node_modules/mpath/index.mjs +10 -0
  2653. package/build/node_modules/mpath/index.mjs.map +1 -0
  2654. package/build/node_modules/mpath/lib/index.js +325 -0
  2655. package/build/node_modules/mpath/lib/index.js.map +1 -0
  2656. package/build/node_modules/mpath/lib/index.mjs +323 -0
  2657. package/build/node_modules/mpath/lib/index.mjs.map +1 -0
  2658. package/build/node_modules/mpath/lib/stringToParts.js +51 -0
  2659. package/build/node_modules/mpath/lib/stringToParts.js.map +1 -0
  2660. package/build/node_modules/mpath/lib/stringToParts.mjs +49 -0
  2661. package/build/node_modules/mpath/lib/stringToParts.mjs.map +1 -0
  2662. package/build/node_modules/mquery/lib/collection/collection.js +54 -0
  2663. package/build/node_modules/mquery/lib/collection/collection.js.map +1 -0
  2664. package/build/node_modules/mquery/lib/collection/collection.mjs +52 -0
  2665. package/build/node_modules/mquery/lib/collection/collection.mjs.map +1 -0
  2666. package/build/node_modules/mquery/lib/collection/index.js +17 -0
  2667. package/build/node_modules/mquery/lib/collection/index.js.map +1 -0
  2668. package/build/node_modules/mquery/lib/collection/index.mjs +15 -0
  2669. package/build/node_modules/mquery/lib/collection/index.mjs.map +1 -0
  2670. package/build/node_modules/mquery/lib/collection/node.js +161 -0
  2671. package/build/node_modules/mquery/lib/collection/node.js.map +1 -0
  2672. package/build/node_modules/mquery/lib/collection/node.mjs +159 -0
  2673. package/build/node_modules/mquery/lib/collection/node.mjs.map +1 -0
  2674. package/build/node_modules/mquery/lib/env.js +30 -0
  2675. package/build/node_modules/mquery/lib/env.js.map +1 -0
  2676. package/build/node_modules/mquery/lib/env.mjs +28 -0
  2677. package/build/node_modules/mquery/lib/env.mjs.map +1 -0
  2678. package/build/node_modules/mquery/lib/mquery.js +3276 -0
  2679. package/build/node_modules/mquery/lib/mquery.js.map +1 -0
  2680. package/build/node_modules/mquery/lib/mquery.mjs +3268 -0
  2681. package/build/node_modules/mquery/lib/mquery.mjs.map +1 -0
  2682. package/build/node_modules/mquery/lib/permissions.js +96 -0
  2683. package/build/node_modules/mquery/lib/permissions.js.map +1 -0
  2684. package/build/node_modules/mquery/lib/permissions.mjs +94 -0
  2685. package/build/node_modules/mquery/lib/permissions.mjs.map +1 -0
  2686. package/build/node_modules/mquery/lib/utils.js +373 -0
  2687. package/build/node_modules/mquery/lib/utils.js.map +1 -0
  2688. package/build/node_modules/mquery/lib/utils.mjs +371 -0
  2689. package/build/node_modules/mquery/lib/utils.mjs.map +1 -0
  2690. package/build/node_modules/ms/index.js +166 -0
  2691. package/build/node_modules/ms/index.js.map +1 -0
  2692. package/build/node_modules/ms/index.mjs +164 -0
  2693. package/build/node_modules/ms/index.mjs.map +1 -0
  2694. package/build/node_modules/optional-require/index.js +82 -0
  2695. package/build/node_modules/optional-require/index.js.map +1 -0
  2696. package/build/node_modules/optional-require/index.mjs +76 -0
  2697. package/build/node_modules/optional-require/index.mjs.map +1 -0
  2698. package/build/node_modules/process-nextick-args/index.js +52 -0
  2699. package/build/node_modules/process-nextick-args/index.js.map +1 -0
  2700. package/build/node_modules/process-nextick-args/index.mjs +50 -0
  2701. package/build/node_modules/process-nextick-args/index.mjs.map +1 -0
  2702. package/build/node_modules/redis/index.js +1136 -0
  2703. package/build/node_modules/redis/index.js.map +1 -0
  2704. package/build/node_modules/redis/index.mjs +1127 -0
  2705. package/build/node_modules/redis/index.mjs.map +1 -0
  2706. package/build/node_modules/redis/lib/command.js +19 -0
  2707. package/build/node_modules/redis/lib/command.js.map +1 -0
  2708. package/build/node_modules/redis/lib/command.mjs +17 -0
  2709. package/build/node_modules/redis/lib/command.mjs.map +1 -0
  2710. package/build/node_modules/redis/lib/commands.js +127 -0
  2711. package/build/node_modules/redis/lib/commands.js.map +1 -0
  2712. package/build/node_modules/redis/lib/commands.mjs +125 -0
  2713. package/build/node_modules/redis/lib/commands.mjs.map +1 -0
  2714. package/build/node_modules/redis/lib/createClient.js +87 -0
  2715. package/build/node_modules/redis/lib/createClient.js.map +1 -0
  2716. package/build/node_modules/redis/lib/createClient.mjs +81 -0
  2717. package/build/node_modules/redis/lib/createClient.mjs.map +1 -0
  2718. package/build/node_modules/redis/lib/customErrors.js +69 -0
  2719. package/build/node_modules/redis/lib/customErrors.js.map +1 -0
  2720. package/build/node_modules/redis/lib/customErrors.mjs +62 -0
  2721. package/build/node_modules/redis/lib/customErrors.mjs.map +1 -0
  2722. package/build/node_modules/redis/lib/debug.js +14 -0
  2723. package/build/node_modules/redis/lib/debug.js.map +1 -0
  2724. package/build/node_modules/redis/lib/debug.mjs +12 -0
  2725. package/build/node_modules/redis/lib/debug.mjs.map +1 -0
  2726. package/build/node_modules/redis/lib/extendedApi.js +117 -0
  2727. package/build/node_modules/redis/lib/extendedApi.js.map +1 -0
  2728. package/build/node_modules/redis/lib/extendedApi.mjs +115 -0
  2729. package/build/node_modules/redis/lib/extendedApi.mjs.map +1 -0
  2730. package/build/node_modules/redis/lib/individualCommands.js +620 -0
  2731. package/build/node_modules/redis/lib/individualCommands.js.map +1 -0
  2732. package/build/node_modules/redis/lib/individualCommands.mjs +618 -0
  2733. package/build/node_modules/redis/lib/individualCommands.mjs.map +1 -0
  2734. package/build/node_modules/redis/lib/multi.js +190 -0
  2735. package/build/node_modules/redis/lib/multi.js.map +1 -0
  2736. package/build/node_modules/redis/lib/multi.mjs +188 -0
  2737. package/build/node_modules/redis/lib/multi.mjs.map +1 -0
  2738. package/build/node_modules/redis/lib/utils.js +137 -0
  2739. package/build/node_modules/redis/lib/utils.js.map +1 -0
  2740. package/build/node_modules/redis/lib/utils.mjs +135 -0
  2741. package/build/node_modules/redis/lib/utils.mjs.map +1 -0
  2742. package/build/node_modules/redis-commands/commands.json.js +2785 -0
  2743. package/build/node_modules/redis-commands/commands.json.js.map +1 -0
  2744. package/build/node_modules/redis-commands/commands.mjs +2560 -0
  2745. package/build/node_modules/redis-commands/commands.mjs.map +1 -0
  2746. package/build/node_modules/redis-commands/index.js +177 -0
  2747. package/build/node_modules/redis-commands/index.js.map +1 -0
  2748. package/build/node_modules/redis-commands/index.mjs +175 -0
  2749. package/build/node_modules/redis-commands/index.mjs.map +1 -0
  2750. package/build/node_modules/redis-parser/index.js +21 -0
  2751. package/build/node_modules/redis-parser/index.js.map +1 -0
  2752. package/build/node_modules/redis-parser/index.mjs +15 -0
  2753. package/build/node_modules/redis-parser/index.mjs.map +1 -0
  2754. package/build/node_modules/redis-parser/lib/hiredis.js +69 -0
  2755. package/build/node_modules/redis-parser/lib/hiredis.js.map +1 -0
  2756. package/build/node_modules/redis-parser/lib/hiredis.mjs +63 -0
  2757. package/build/node_modules/redis-parser/lib/hiredis.mjs.map +1 -0
  2758. package/build/node_modules/redis-parser/lib/parser.js +593 -0
  2759. package/build/node_modules/redis-parser/lib/parser.js.map +1 -0
  2760. package/build/node_modules/redis-parser/lib/parser.mjs +587 -0
  2761. package/build/node_modules/redis-parser/lib/parser.mjs.map +1 -0
  2762. package/build/node_modules/redis-parser/lib/parserError.js +34 -0
  2763. package/build/node_modules/redis-parser/lib/parserError.js.map +1 -0
  2764. package/build/node_modules/redis-parser/lib/parserError.mjs +27 -0
  2765. package/build/node_modules/redis-parser/lib/parserError.mjs.map +1 -0
  2766. package/build/node_modules/redis-parser/lib/redisError.js +31 -0
  2767. package/build/node_modules/redis-parser/lib/redisError.js.map +1 -0
  2768. package/build/node_modules/redis-parser/lib/redisError.mjs +25 -0
  2769. package/build/node_modules/redis-parser/lib/redisError.mjs.map +1 -0
  2770. package/build/node_modules/redis-parser/lib/replyError.js +31 -0
  2771. package/build/node_modules/redis-parser/lib/replyError.js.map +1 -0
  2772. package/build/node_modules/redis-parser/lib/replyError.mjs +25 -0
  2773. package/build/node_modules/redis-parser/lib/replyError.mjs.map +1 -0
  2774. package/build/node_modules/regexp-clone/index.js +34 -0
  2775. package/build/node_modules/regexp-clone/index.js.map +1 -0
  2776. package/build/node_modules/regexp-clone/index.mjs +32 -0
  2777. package/build/node_modules/regexp-clone/index.mjs.map +1 -0
  2778. package/build/node_modules/safe-buffer/index.js +76 -0
  2779. package/build/node_modules/safe-buffer/index.js.map +1 -0
  2780. package/build/node_modules/safe-buffer/index.mjs +70 -0
  2781. package/build/node_modules/safe-buffer/index.mjs.map +1 -0
  2782. package/build/node_modules/saslprep/index.js +162 -0
  2783. package/build/node_modules/saslprep/index.js.map +1 -0
  2784. package/build/node_modules/saslprep/index.mjs +160 -0
  2785. package/build/node_modules/saslprep/index.mjs.map +1 -0
  2786. package/build/node_modules/saslprep/lib/memory-code-points.js +47 -0
  2787. package/build/node_modules/saslprep/lib/memory-code-points.js.map +1 -0
  2788. package/build/node_modules/saslprep/lib/memory-code-points.mjs +40 -0
  2789. package/build/node_modules/saslprep/lib/memory-code-points.mjs.map +1 -0
  2790. package/build/node_modules/sift/es5m/index.js +683 -0
  2791. package/build/node_modules/sift/es5m/index.js.map +1 -0
  2792. package/build/node_modules/sift/es5m/index.mjs +652 -0
  2793. package/build/node_modules/sift/es5m/index.mjs.map +1 -0
  2794. package/build/node_modules/sliced/index.js +36 -0
  2795. package/build/node_modules/sliced/index.js.map +1 -0
  2796. package/build/node_modules/sliced/index.mjs +34 -0
  2797. package/build/node_modules/sliced/index.mjs.map +1 -0
  2798. package/build/node_modules/sparse-bitfield/index.js +100 -0
  2799. package/build/node_modules/sparse-bitfield/index.js.map +1 -0
  2800. package/build/node_modules/sparse-bitfield/index.mjs +98 -0
  2801. package/build/node_modules/sparse-bitfield/index.mjs.map +1 -0
  2802. package/build/node_modules/util-deprecate/node.js +16 -0
  2803. package/build/node_modules/util-deprecate/node.js.map +1 -0
  2804. package/build/node_modules/util-deprecate/node.mjs +10 -0
  2805. package/build/node_modules/util-deprecate/node.mjs.map +1 -0
  2806. package/build/node_modules/ws/index.js +17 -0
  2807. package/build/node_modules/ws/index.js.map +1 -0
  2808. package/build/node_modules/ws/index.mjs +15 -0
  2809. package/build/node_modules/ws/index.mjs.map +1 -0
  2810. package/build/node_modules/ws/lib/buffer-util.js +143 -0
  2811. package/build/node_modules/ws/lib/buffer-util.js.map +1 -0
  2812. package/build/node_modules/ws/lib/buffer-util.mjs +137 -0
  2813. package/build/node_modules/ws/lib/buffer-util.mjs.map +1 -0
  2814. package/build/node_modules/ws/lib/constants.js +13 -0
  2815. package/build/node_modules/ws/lib/constants.js.map +1 -0
  2816. package/build/node_modules/ws/lib/constants.mjs +11 -0
  2817. package/build/node_modules/ws/lib/constants.mjs.map +1 -0
  2818. package/build/node_modules/ws/lib/event-target.js +187 -0
  2819. package/build/node_modules/ws/lib/event-target.js.map +1 -0
  2820. package/build/node_modules/ws/lib/event-target.mjs +185 -0
  2821. package/build/node_modules/ws/lib/event-target.mjs.map +1 -0
  2822. package/build/node_modules/ws/lib/extension.js +226 -0
  2823. package/build/node_modules/ws/lib/extension.js.map +1 -0
  2824. package/build/node_modules/ws/lib/extension.mjs +224 -0
  2825. package/build/node_modules/ws/lib/extension.mjs.map +1 -0
  2826. package/build/node_modules/ws/lib/limiter.js +58 -0
  2827. package/build/node_modules/ws/lib/limiter.js.map +1 -0
  2828. package/build/node_modules/ws/lib/limiter.mjs +56 -0
  2829. package/build/node_modules/ws/lib/limiter.mjs.map +1 -0
  2830. package/build/node_modules/ws/lib/permessage-deflate.js +526 -0
  2831. package/build/node_modules/ws/lib/permessage-deflate.js.map +1 -0
  2832. package/build/node_modules/ws/lib/permessage-deflate.mjs +520 -0
  2833. package/build/node_modules/ws/lib/permessage-deflate.mjs.map +1 -0
  2834. package/build/node_modules/ws/lib/receiver.js +620 -0
  2835. package/build/node_modules/ws/lib/receiver.js.map +1 -0
  2836. package/build/node_modules/ws/lib/receiver.mjs +614 -0
  2837. package/build/node_modules/ws/lib/receiver.mjs.map +1 -0
  2838. package/build/node_modules/ws/lib/sender.js +424 -0
  2839. package/build/node_modules/ws/lib/sender.js.map +1 -0
  2840. package/build/node_modules/ws/lib/sender.mjs +418 -0
  2841. package/build/node_modules/ws/lib/sender.mjs.map +1 -0
  2842. package/build/node_modules/ws/lib/stream.js +186 -0
  2843. package/build/node_modules/ws/lib/stream.js.map +1 -0
  2844. package/build/node_modules/ws/lib/stream.mjs +180 -0
  2845. package/build/node_modules/ws/lib/stream.mjs.map +1 -0
  2846. package/build/node_modules/ws/lib/validation.js +117 -0
  2847. package/build/node_modules/ws/lib/validation.js.map +1 -0
  2848. package/build/node_modules/ws/lib/validation.mjs +111 -0
  2849. package/build/node_modules/ws/lib/validation.mjs.map +1 -0
  2850. package/build/node_modules/ws/lib/websocket-server.js +467 -0
  2851. package/build/node_modules/ws/lib/websocket-server.js.map +1 -0
  2852. package/build/node_modules/ws/lib/websocket-server.mjs +459 -0
  2853. package/build/node_modules/ws/lib/websocket-server.mjs.map +1 -0
  2854. package/build/node_modules/ws/lib/websocket.js +1138 -0
  2855. package/build/node_modules/ws/lib/websocket.js.map +1 -0
  2856. package/build/node_modules/ws/lib/websocket.mjs +1126 -0
  2857. package/build/node_modules/ws/lib/websocket.mjs.map +1 -0
  2858. package/build/packages/core/src/Debug.js +34 -0
  2859. package/build/packages/core/src/Debug.js.map +1 -0
  2860. package/build/packages/core/src/Debug.mjs +20 -0
  2861. package/build/packages/core/src/Debug.mjs.map +1 -0
  2862. package/build/packages/core/src/IPC.js +65 -0
  2863. package/build/packages/core/src/IPC.js.map +1 -0
  2864. package/build/packages/core/src/IPC.mjs +60 -0
  2865. package/build/packages/core/src/IPC.mjs.map +1 -0
  2866. package/build/packages/core/src/Logger.js +12 -0
  2867. package/build/packages/core/src/Logger.js.map +1 -0
  2868. package/build/packages/core/src/Logger.mjs +8 -0
  2869. package/build/packages/core/src/Logger.mjs.map +1 -0
  2870. package/build/packages/core/src/MatchMaker.js +401 -0
  2871. package/build/packages/core/src/MatchMaker.js.map +1 -0
  2872. package/build/packages/core/src/MatchMaker.mjs +382 -0
  2873. package/build/packages/core/src/MatchMaker.mjs.map +1 -0
  2874. package/build/packages/core/src/Protocol.js +164 -0
  2875. package/build/packages/core/src/Protocol.js.map +1 -0
  2876. package/build/packages/core/src/Protocol.mjs +154 -0
  2877. package/build/packages/core/src/Protocol.mjs.map +1 -0
  2878. package/build/packages/core/src/Room.js +569 -0
  2879. package/build/packages/core/src/Room.js.map +1 -0
  2880. package/build/packages/core/src/Room.mjs +559 -0
  2881. package/build/packages/core/src/Room.mjs.map +1 -0
  2882. package/build/packages/core/src/Server.js +222 -0
  2883. package/build/packages/core/src/Server.js.map +1 -0
  2884. package/build/packages/core/src/Server.mjs +218 -0
  2885. package/build/packages/core/src/Server.mjs.map +1 -0
  2886. package/build/packages/core/src/Transport.js +17 -0
  2887. package/build/packages/core/src/Transport.js.map +1 -0
  2888. package/build/packages/core/src/Transport.mjs +13 -0
  2889. package/build/packages/core/src/Transport.mjs.map +1 -0
  2890. package/build/packages/core/src/Utils.js +225 -0
  2891. package/build/packages/core/src/Utils.js.map +1 -0
  2892. package/build/packages/core/src/Utils.mjs +209 -0
  2893. package/build/packages/core/src/Utils.mjs.map +1 -0
  2894. package/build/packages/core/src/discovery/index.js +31 -0
  2895. package/build/packages/core/src/discovery/index.js.map +1 -0
  2896. package/build/packages/core/src/discovery/index.mjs +22 -0
  2897. package/build/packages/core/src/discovery/index.mjs.map +1 -0
  2898. package/build/packages/core/src/errors/SeatReservationError.js +12 -0
  2899. package/build/packages/core/src/errors/SeatReservationError.js.map +1 -0
  2900. package/build/packages/core/src/errors/SeatReservationError.mjs +8 -0
  2901. package/build/packages/core/src/errors/SeatReservationError.mjs.map +1 -0
  2902. package/build/packages/core/src/errors/ServerError.js +21 -0
  2903. package/build/packages/core/src/errors/ServerError.js.map +1 -0
  2904. package/build/packages/core/src/errors/ServerError.mjs +17 -0
  2905. package/build/packages/core/src/errors/ServerError.mjs.map +1 -0
  2906. package/build/packages/core/src/index.js +96 -0
  2907. package/build/packages/core/src/index.js.map +1 -0
  2908. package/build/packages/core/src/index.mjs +19 -0
  2909. package/build/packages/core/src/index.mjs.map +1 -0
  2910. package/build/packages/core/src/matchmaker/Lobby.js +31 -0
  2911. package/build/packages/core/src/matchmaker/Lobby.js.map +1 -0
  2912. package/build/packages/core/src/matchmaker/Lobby.mjs +26 -0
  2913. package/build/packages/core/src/matchmaker/Lobby.mjs.map +1 -0
  2914. package/build/packages/core/src/matchmaker/RegisteredHandler.js +72 -0
  2915. package/build/packages/core/src/matchmaker/RegisteredHandler.js.map +1 -0
  2916. package/build/packages/core/src/matchmaker/RegisteredHandler.mjs +67 -0
  2917. package/build/packages/core/src/matchmaker/RegisteredHandler.mjs.map +1 -0
  2918. package/build/packages/core/src/matchmaker/controller.js +46 -0
  2919. package/build/packages/core/src/matchmaker/controller.js.map +1 -0
  2920. package/build/packages/core/src/matchmaker/controller.mjs +39 -0
  2921. package/build/packages/core/src/matchmaker/controller.mjs.map +1 -0
  2922. package/build/packages/core/src/matchmaker/driver/Query.js +53 -0
  2923. package/build/packages/core/src/matchmaker/driver/Query.js.map +1 -0
  2924. package/build/packages/core/src/matchmaker/driver/Query.mjs +49 -0
  2925. package/build/packages/core/src/matchmaker/driver/Query.mjs.map +1 -0
  2926. package/build/packages/core/src/matchmaker/driver/RoomData.js +80 -0
  2927. package/build/packages/core/src/matchmaker/driver/RoomData.js.map +1 -0
  2928. package/build/packages/core/src/matchmaker/driver/RoomData.mjs +76 -0
  2929. package/build/packages/core/src/matchmaker/driver/RoomData.mjs.map +1 -0
  2930. package/build/packages/core/src/matchmaker/driver/index.js +34 -0
  2931. package/build/packages/core/src/matchmaker/driver/index.js.map +1 -0
  2932. package/build/packages/core/src/matchmaker/driver/index.mjs +30 -0
  2933. package/build/packages/core/src/matchmaker/driver/index.mjs.map +1 -0
  2934. package/build/packages/core/src/presence/LocalPresence.js +156 -0
  2935. package/build/packages/core/src/presence/LocalPresence.js.map +1 -0
  2936. package/build/packages/core/src/presence/LocalPresence.mjs +152 -0
  2937. package/build/packages/core/src/presence/LocalPresence.mjs.map +1 -0
  2938. package/build/packages/core/src/rooms/LobbyRoom.js +101 -0
  2939. package/build/packages/core/src/rooms/LobbyRoom.js.map +1 -0
  2940. package/build/packages/core/src/rooms/LobbyRoom.mjs +97 -0
  2941. package/build/packages/core/src/rooms/LobbyRoom.mjs.map +1 -0
  2942. package/build/packages/core/src/rooms/RelayRoom.js +79 -0
  2943. package/build/packages/core/src/rooms/RelayRoom.js.map +1 -0
  2944. package/build/packages/core/src/rooms/RelayRoom.mjs +75 -0
  2945. package/build/packages/core/src/rooms/RelayRoom.mjs.map +1 -0
  2946. package/build/packages/core/src/serializer/NoneSerializer.js +19 -0
  2947. package/build/packages/core/src/serializer/NoneSerializer.js.map +1 -0
  2948. package/build/packages/core/src/serializer/NoneSerializer.mjs +15 -0
  2949. package/build/packages/core/src/serializer/NoneSerializer.mjs.map +1 -0
  2950. package/build/packages/core/src/serializer/SchemaSerializer.js +85 -0
  2951. package/build/packages/core/src/serializer/SchemaSerializer.js.map +1 -0
  2952. package/build/packages/core/src/serializer/SchemaSerializer.mjs +81 -0
  2953. package/build/packages/core/src/serializer/SchemaSerializer.mjs.map +1 -0
  2954. package/build/packages/drivers/mongoose-driver/build/index.mjs +23 -0
  2955. package/build/packages/drivers/mongoose-driver/build/index.mjs.js +25 -0
  2956. package/build/packages/drivers/mongoose-driver/build/index.mjs.js.map +1 -0
  2957. package/build/packages/drivers/mongoose-driver/build/index.mjs.map +1 -0
  2958. package/build/packages/transport/ws-transport/build/WebSocketClient.mjs +70 -0
  2959. package/build/packages/transport/ws-transport/build/WebSocketClient.mjs.js +74 -0
  2960. package/build/packages/transport/ws-transport/build/WebSocketClient.mjs.js.map +1 -0
  2961. package/build/packages/transport/ws-transport/build/WebSocketClient.mjs.map +1 -0
  2962. package/build/packages/transport/ws-transport/build/WebSocketTransport.mjs +102 -0
  2963. package/build/packages/transport/ws-transport/build/WebSocketTransport.mjs.js +110 -0
  2964. package/build/packages/transport/ws-transport/build/WebSocketTransport.mjs.js.map +1 -0
  2965. package/build/packages/transport/ws-transport/build/WebSocketTransport.mjs.map +1 -0
  2966. package/build/rooms/LobbyRoom.js +4 -4
  2967. package/build/rooms/LobbyRoom.js.map +1 -1
  2968. package/build/rooms/LobbyRoom.mjs +4 -4
  2969. package/build/rooms/LobbyRoom.mjs.map +1 -1
  2970. package/package.json +2 -2
@@ -0,0 +1,2294 @@
1
+ 'use strict';
2
+
3
+ var util = require('util');
4
+ var utils = require('./utils.js');
5
+ var index = require('./core/index.js');
6
+ var unordered = require('./bulk/unordered.js');
7
+ var ordered = require('./bulk/ordered.js');
8
+ var change_stream = require('./change_stream.js');
9
+ var write_concern = require('./write_concern.js');
10
+ var read_concern = require('./read_concern.js');
11
+ var aggregation_cursor = require('./aggregation_cursor.js');
12
+ var command_cursor = require('./command_cursor.js');
13
+ var collection_ops = require('./operations/collection_ops.js');
14
+ var common_functions = require('./operations/common_functions.js');
15
+ var aggregate = require('./operations/aggregate.js');
16
+ var bulk_write = require('./operations/bulk_write.js');
17
+ var count_documents = require('./operations/count_documents.js');
18
+ var create_indexes = require('./operations/create_indexes.js');
19
+ var delete_many = require('./operations/delete_many.js');
20
+ var delete_one = require('./operations/delete_one.js');
21
+ var distinct = require('./operations/distinct.js');
22
+ var drop = require('./operations/drop.js');
23
+ var drop_index = require('./operations/drop_index.js');
24
+ var drop_indexes = require('./operations/drop_indexes.js');
25
+ var estimated_document_count = require('./operations/estimated_document_count.js');
26
+ var find = require('./operations/find.js');
27
+ var find_one = require('./operations/find_one.js');
28
+ var find_and_modify = require('./operations/find_and_modify.js');
29
+ var find_one_and_delete = require('./operations/find_one_and_delete.js');
30
+ var find_one_and_replace = require('./operations/find_one_and_replace.js');
31
+ var find_one_and_update = require('./operations/find_one_and_update.js');
32
+ var geo_haystack_search = require('./operations/geo_haystack_search.js');
33
+ var indexes = require('./operations/indexes.js');
34
+ var index_exists = require('./operations/index_exists.js');
35
+ var index_information = require('./operations/index_information.js');
36
+ var insert_many = require('./operations/insert_many.js');
37
+ var insert_one = require('./operations/insert_one.js');
38
+ var is_capped = require('./operations/is_capped.js');
39
+ var list_indexes = require('./operations/list_indexes.js');
40
+ var map_reduce = require('./operations/map_reduce.js');
41
+ var options_operation = require('./operations/options_operation.js');
42
+ var rename = require('./operations/rename.js');
43
+ var re_index = require('./operations/re_index.js');
44
+ var replace_one = require('./operations/replace_one.js');
45
+ var stats = require('./operations/stats.js');
46
+ var update_many = require('./operations/update_many.js');
47
+ var update_one = require('./operations/update_one.js');
48
+ var execute_operation = require('./operations/execute_operation.js');
49
+
50
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
51
+
52
+ var util__default = /*#__PURE__*/_interopDefaultLegacy(util);
53
+
54
+ const deprecate = util__default['default'].deprecate;
55
+ const deprecateOptions = utils.deprecateOptions;
56
+ const emitWarningOnce = utils.emitWarningOnce;
57
+ const checkCollectionName = utils.checkCollectionName;
58
+ const ObjectID = index.BSON.ObjectID;
59
+ const MongoError = index.MongoError;
60
+ const normalizeHintField = utils.normalizeHintField;
61
+ const decorateCommand = utils.decorateCommand;
62
+ const decorateWithCollation = utils.decorateWithCollation;
63
+ const decorateWithReadConcern = utils.decorateWithReadConcern;
64
+ const formattedOrderClause = utils.formattedOrderClause;
65
+ const ReadPreference = index.ReadPreference;
66
+
67
+
68
+
69
+ const executeLegacyOperation = utils.executeLegacyOperation;
70
+
71
+
72
+ const MongoDBNamespace = utils.MongoDBNamespace;
73
+
74
+
75
+
76
+ // Operations
77
+ const ensureIndex = collection_ops.ensureIndex;
78
+ const group = collection_ops.group;
79
+ const parallelCollectionScan = collection_ops.parallelCollectionScan;
80
+ const removeDocuments = common_functions.removeDocuments;
81
+ const save = collection_ops.save;
82
+ const updateDocuments = common_functions.updateDocuments;
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+ const DropCollectionOperation = drop.DropCollectionOperation;
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+ /**
121
+ * @fileOverview The **Collection** class is an internal class that embodies a MongoDB collection
122
+ * allowing for insert/update/remove/find and other command operation on that MongoDB collection.
123
+ *
124
+ * **COLLECTION Cannot directly be instantiated**
125
+ * @example
126
+ * const MongoClient = require('mongodb').MongoClient;
127
+ * const test = require('assert');
128
+ * // Connection url
129
+ * const url = 'mongodb://localhost:27017';
130
+ * // Database Name
131
+ * const dbName = 'test';
132
+ * // Connect using MongoClient
133
+ * MongoClient.connect(url, function(err, client) {
134
+ * // Create a collection we want to drop later
135
+ * const col = client.db(dbName).collection('createIndexExample1');
136
+ * // Show that duplicate records got dropped
137
+ * col.find({}).toArray(function(err, items) {
138
+ * test.equal(null, err);
139
+ * test.equal(4, items.length);
140
+ * client.close();
141
+ * });
142
+ * });
143
+ */
144
+
145
+ const mergeKeys = ['ignoreUndefined'];
146
+
147
+ /**
148
+ * Create a new Collection instance (INTERNAL TYPE, do not instantiate directly)
149
+ * @class
150
+ */
151
+ function Collection(db, topology, dbName, name, pkFactory, options) {
152
+ checkCollectionName(name);
153
+
154
+ // Unpack variables
155
+ const internalHint = null;
156
+ const slaveOk = options == null || options.slaveOk == null ? db.slaveOk : options.slaveOk;
157
+ const serializeFunctions =
158
+ options == null || options.serializeFunctions == null
159
+ ? db.s.options.serializeFunctions
160
+ : options.serializeFunctions;
161
+ const raw = options == null || options.raw == null ? db.s.options.raw : options.raw;
162
+ const promoteLongs =
163
+ options == null || options.promoteLongs == null
164
+ ? db.s.options.promoteLongs
165
+ : options.promoteLongs;
166
+ const promoteValues =
167
+ options == null || options.promoteValues == null
168
+ ? db.s.options.promoteValues
169
+ : options.promoteValues;
170
+ const promoteBuffers =
171
+ options == null || options.promoteBuffers == null
172
+ ? db.s.options.promoteBuffers
173
+ : options.promoteBuffers;
174
+ const collectionHint = null;
175
+
176
+ const namespace = new MongoDBNamespace(dbName, name);
177
+
178
+ // Get the promiseLibrary
179
+ const promiseLibrary = options.promiseLibrary || Promise;
180
+
181
+ // Set custom primary key factory if provided
182
+ pkFactory = pkFactory == null ? ObjectID : pkFactory;
183
+
184
+ // Internal state
185
+ this.s = {
186
+ // Set custom primary key factory if provided
187
+ pkFactory: pkFactory,
188
+ // Db
189
+ db: db,
190
+ // Topology
191
+ topology: topology,
192
+ // Options
193
+ options: options,
194
+ // Namespace
195
+ namespace: namespace,
196
+ // Read preference
197
+ readPreference: ReadPreference.fromOptions(options),
198
+ // SlaveOK
199
+ slaveOk: slaveOk,
200
+ // Serialize functions
201
+ serializeFunctions: serializeFunctions,
202
+ // Raw
203
+ raw: raw,
204
+ // promoteLongs
205
+ promoteLongs: promoteLongs,
206
+ // promoteValues
207
+ promoteValues: promoteValues,
208
+ // promoteBuffers
209
+ promoteBuffers: promoteBuffers,
210
+ // internalHint
211
+ internalHint: internalHint,
212
+ // collectionHint
213
+ collectionHint: collectionHint,
214
+ // Promise library
215
+ promiseLibrary: promiseLibrary,
216
+ // Read Concern
217
+ readConcern: read_concern.fromOptions(options),
218
+ // Write Concern
219
+ writeConcern: write_concern.fromOptions(options)
220
+ };
221
+ }
222
+
223
+ /**
224
+ * The name of the database this collection belongs to
225
+ * @member {string} dbName
226
+ * @memberof Collection#
227
+ * @readonly
228
+ */
229
+ Object.defineProperty(Collection.prototype, 'dbName', {
230
+ enumerable: true,
231
+ get: function() {
232
+ return this.s.namespace.db;
233
+ }
234
+ });
235
+
236
+ /**
237
+ * The name of this collection
238
+ * @member {string} collectionName
239
+ * @memberof Collection#
240
+ * @readonly
241
+ */
242
+ Object.defineProperty(Collection.prototype, 'collectionName', {
243
+ enumerable: true,
244
+ get: function() {
245
+ return this.s.namespace.collection;
246
+ }
247
+ });
248
+
249
+ /**
250
+ * The namespace of this collection, in the format `${this.dbName}.${this.collectionName}`
251
+ * @member {string} namespace
252
+ * @memberof Collection#
253
+ * @readonly
254
+ */
255
+ Object.defineProperty(Collection.prototype, 'namespace', {
256
+ enumerable: true,
257
+ get: function() {
258
+ return this.s.namespace.toString();
259
+ }
260
+ });
261
+
262
+ /**
263
+ * The current readConcern of the collection. If not explicitly defined for
264
+ * this collection, will be inherited from the parent DB
265
+ * @member {ReadConcern} [readConcern]
266
+ * @memberof Collection#
267
+ * @readonly
268
+ */
269
+ Object.defineProperty(Collection.prototype, 'readConcern', {
270
+ enumerable: true,
271
+ get: function() {
272
+ if (this.s.readConcern == null) {
273
+ return this.s.db.readConcern;
274
+ }
275
+ return this.s.readConcern;
276
+ }
277
+ });
278
+
279
+ /**
280
+ * The current readPreference of the collection. If not explicitly defined for
281
+ * this collection, will be inherited from the parent DB
282
+ * @member {ReadPreference} [readPreference]
283
+ * @memberof Collection#
284
+ * @readonly
285
+ */
286
+ Object.defineProperty(Collection.prototype, 'readPreference', {
287
+ enumerable: true,
288
+ get: function() {
289
+ if (this.s.readPreference == null) {
290
+ return this.s.db.readPreference;
291
+ }
292
+
293
+ return this.s.readPreference;
294
+ }
295
+ });
296
+
297
+ /**
298
+ * The current writeConcern of the collection. If not explicitly defined for
299
+ * this collection, will be inherited from the parent DB
300
+ * @member {WriteConcern} [writeConcern]
301
+ * @memberof Collection#
302
+ * @readonly
303
+ */
304
+ Object.defineProperty(Collection.prototype, 'writeConcern', {
305
+ enumerable: true,
306
+ get: function() {
307
+ if (this.s.writeConcern == null) {
308
+ return this.s.db.writeConcern;
309
+ }
310
+ return this.s.writeConcern;
311
+ }
312
+ });
313
+
314
+ /**
315
+ * The current index hint for the collection
316
+ * @member {object} [hint]
317
+ * @memberof Collection#
318
+ */
319
+ Object.defineProperty(Collection.prototype, 'hint', {
320
+ enumerable: true,
321
+ get: function() {
322
+ return this.s.collectionHint;
323
+ },
324
+ set: function(v) {
325
+ this.s.collectionHint = normalizeHintField(v);
326
+ }
327
+ });
328
+
329
+ const DEPRECATED_FIND_OPTIONS = ['maxScan', 'fields', 'snapshot', 'oplogReplay'];
330
+
331
+ /**
332
+ * Creates a cursor for a query that can be used to iterate over results from MongoDB
333
+ * @method
334
+ * @param {object} [query={}] The cursor query object.
335
+ * @param {object} [options] Optional settings.
336
+ * @param {number} [options.limit=0] Sets the limit of documents returned in the query.
337
+ * @param {(array|object)} [options.sort] Set to sort the documents coming back from the query. Array of indexes, [['a', 1]] etc.
338
+ * @param {object} [options.projection] The fields to return in the query. Object of fields to either include or exclude (one of, not both), {'a':1, 'b': 1} **or** {'a': 0, 'b': 0}
339
+ * @param {object} [options.fields] **Deprecated** Use `options.projection` instead
340
+ * @param {number} [options.skip=0] Set to skip N documents ahead in your query (useful for pagination).
341
+ * @param {Object} [options.hint] Tell the query to use specific indexes in the query. Object of indexes to use, {'_id':1}
342
+ * @param {boolean} [options.snapshot=false] DEPRECATED: Snapshot query.
343
+ * @param {boolean} [options.timeout=false] Specify if the cursor can timeout.
344
+ * @param {boolean} [options.tailable=false] Specify if the cursor is tailable.
345
+ * @param {boolean} [options.awaitData=false] Specify if the cursor is a a tailable-await cursor. Requires `tailable` to be true
346
+ * @param {number} [options.batchSize=1000] Set the batchSize for the getMoreCommand when iterating over the query results.
347
+ * @param {boolean} [options.returnKey=false] Only return the index key.
348
+ * @param {number} [options.maxScan] DEPRECATED: Limit the number of items to scan.
349
+ * @param {number} [options.min] Set index bounds.
350
+ * @param {number} [options.max] Set index bounds.
351
+ * @param {boolean} [options.showDiskLoc=false] Show disk location of results.
352
+ * @param {string} [options.comment] You can put a $comment field on a query to make looking in the profiler logs simpler.
353
+ * @param {boolean} [options.raw=false] Return document results as raw BSON buffers.
354
+ * @param {boolean} [options.promoteLongs=true] Promotes Long values to number if they fit inside the 53 bits resolution.
355
+ * @param {boolean} [options.promoteValues=true] Promotes BSON values to native types where possible, set to false to only receive wrapper types.
356
+ * @param {boolean} [options.promoteBuffers=false] Promotes Binary BSON values to native Node Buffers.
357
+ * @param {(ReadPreference|string)} [options.readPreference] The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
358
+ * @param {boolean} [options.partial=false] Specify if the cursor should return partial results when querying against a sharded system
359
+ * @param {number} [options.maxTimeMS] Number of milliseconds to wait before aborting the query.
360
+ * @param {number} [options.maxAwaitTimeMS] The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query. Requires `tailable` and `awaitData` to be true
361
+ * @param {boolean} [options.noCursorTimeout] The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use. Set this option to prevent that.
362
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
363
+ * @param {boolean} [options.allowDiskUse] Enables writing to temporary files on the server.
364
+ * @param {'queryPlanner'|'queryPlannerExtended'|'executionStats'|'allPlansExecution'|boolean} [options.explain] The verbosity mode for the explain output.
365
+ * @param {ClientSession} [options.session] optional session to use for this operation
366
+ * @throws {MongoError}
367
+ * @return {Cursor}
368
+ */
369
+ Collection.prototype.find = deprecateOptions(
370
+ {
371
+ name: 'collection.find',
372
+ deprecatedOptions: DEPRECATED_FIND_OPTIONS,
373
+ optionsIndex: 1
374
+ },
375
+ function(query, options, callback) {
376
+ if (typeof callback === 'object') {
377
+ // TODO(MAJOR): throw in the future
378
+ emitWarningOnce('Third parameter to `find()` must be a callback or undefined');
379
+ }
380
+
381
+ let selector = query;
382
+ // figuring out arguments
383
+ if (typeof callback !== 'function') {
384
+ if (typeof options === 'function') {
385
+ callback = options;
386
+ options = undefined;
387
+ } else if (options == null) {
388
+ callback = typeof selector === 'function' ? selector : undefined;
389
+ selector = typeof selector === 'object' ? selector : undefined;
390
+ }
391
+ }
392
+
393
+ // Ensure selector is not null
394
+ selector = selector == null ? {} : selector;
395
+ // Validate correctness off the selector
396
+ const object = selector;
397
+ if (Buffer.isBuffer(object)) {
398
+ const object_size = object[0] | (object[1] << 8) | (object[2] << 16) | (object[3] << 24);
399
+ if (object_size !== object.length) {
400
+ const error = new Error(
401
+ 'query selector raw message size does not match message header size [' +
402
+ object.length +
403
+ '] != [' +
404
+ object_size +
405
+ ']'
406
+ );
407
+ error.name = 'MongoError';
408
+ throw error;
409
+ }
410
+ }
411
+
412
+ // Check special case where we are using an objectId
413
+ if (selector != null && selector._bsontype === 'ObjectID') {
414
+ selector = { _id: selector };
415
+ }
416
+
417
+ if (!options) options = {};
418
+
419
+ let projection = options.projection || options.fields;
420
+
421
+ if (projection && !Buffer.isBuffer(projection) && Array.isArray(projection)) {
422
+ projection = projection.length
423
+ ? projection.reduce((result, field) => {
424
+ result[field] = 1;
425
+ return result;
426
+ }, {})
427
+ : { _id: 1 };
428
+ }
429
+
430
+ // Make a shallow copy of options
431
+ let newOptions = Object.assign({}, options);
432
+
433
+ // Make a shallow copy of the collection options
434
+ for (let key in this.s.options) {
435
+ if (mergeKeys.indexOf(key) !== -1) {
436
+ newOptions[key] = this.s.options[key];
437
+ }
438
+ }
439
+
440
+ // Unpack options
441
+ newOptions.skip = options.skip ? options.skip : 0;
442
+ newOptions.limit = options.limit ? options.limit : 0;
443
+ newOptions.raw = typeof options.raw === 'boolean' ? options.raw : this.s.raw;
444
+ newOptions.hint =
445
+ options.hint != null ? normalizeHintField(options.hint) : this.s.collectionHint;
446
+ newOptions.timeout = typeof options.timeout === 'undefined' ? undefined : options.timeout;
447
+ // // If we have overridden slaveOk otherwise use the default db setting
448
+ newOptions.slaveOk = options.slaveOk != null ? options.slaveOk : this.s.db.slaveOk;
449
+
450
+ // Add read preference if needed
451
+ newOptions.readPreference = ReadPreference.resolve(this, newOptions);
452
+
453
+ // Set slave ok to true if read preference different from primary
454
+ if (
455
+ newOptions.readPreference != null &&
456
+ (newOptions.readPreference !== 'primary' || newOptions.readPreference.mode !== 'primary')
457
+ ) {
458
+ newOptions.slaveOk = true;
459
+ }
460
+
461
+ // Ensure the query is an object
462
+ if (selector != null && typeof selector !== 'object') {
463
+ throw MongoError.create({ message: 'query selector must be an object', driver: true });
464
+ }
465
+
466
+ // Build the find command
467
+ const findCommand = {
468
+ find: this.s.namespace.toString(),
469
+ limit: newOptions.limit,
470
+ skip: newOptions.skip,
471
+ query: selector
472
+ };
473
+
474
+ if (typeof options.allowDiskUse === 'boolean') {
475
+ findCommand.allowDiskUse = options.allowDiskUse;
476
+ }
477
+
478
+ // Ensure we use the right await data option
479
+ if (typeof newOptions.awaitdata === 'boolean') {
480
+ newOptions.awaitData = newOptions.awaitdata;
481
+ }
482
+
483
+ // Translate to new command option noCursorTimeout
484
+ if (typeof newOptions.timeout === 'boolean') newOptions.noCursorTimeout = !newOptions.timeout;
485
+
486
+ decorateCommand(findCommand, newOptions, ['session', 'collation']);
487
+
488
+ if (projection) findCommand.fields = projection;
489
+
490
+ // Add db object to the new options
491
+ newOptions.db = this.s.db;
492
+
493
+ // Add the promise library
494
+ newOptions.promiseLibrary = this.s.promiseLibrary;
495
+
496
+ // Set raw if available at collection level
497
+ if (newOptions.raw == null && typeof this.s.raw === 'boolean') newOptions.raw = this.s.raw;
498
+ // Set promoteLongs if available at collection level
499
+ if (newOptions.promoteLongs == null && typeof this.s.promoteLongs === 'boolean')
500
+ newOptions.promoteLongs = this.s.promoteLongs;
501
+ if (newOptions.promoteValues == null && typeof this.s.promoteValues === 'boolean')
502
+ newOptions.promoteValues = this.s.promoteValues;
503
+ if (newOptions.promoteBuffers == null && typeof this.s.promoteBuffers === 'boolean')
504
+ newOptions.promoteBuffers = this.s.promoteBuffers;
505
+
506
+ // Sort options
507
+ if (findCommand.sort) {
508
+ findCommand.sort = formattedOrderClause(findCommand.sort);
509
+ }
510
+
511
+ // Set the readConcern
512
+ decorateWithReadConcern(findCommand, this, options);
513
+
514
+ // Decorate find command with collation options
515
+ try {
516
+ decorateWithCollation(findCommand, this, options);
517
+ } catch (err) {
518
+ if (typeof callback === 'function') return callback(err, null);
519
+ throw err;
520
+ }
521
+
522
+ const cursor = this.s.topology.cursor(
523
+ new find(this, this.s.namespace, findCommand, newOptions),
524
+ newOptions
525
+ );
526
+
527
+ // TODO: remove this when NODE-2074 is resolved
528
+ if (typeof callback === 'function') {
529
+ callback(null, cursor);
530
+ return;
531
+ }
532
+
533
+ return cursor;
534
+ }
535
+ );
536
+
537
+ /**
538
+ * Inserts a single document into MongoDB. If documents passed in do not contain the **_id** field,
539
+ * one will be added to each of the documents missing it by the driver, mutating the document. This behavior
540
+ * can be overridden by setting the **forceServerObjectId** flag.
541
+ *
542
+ * @method
543
+ * @param {object} doc Document to insert.
544
+ * @param {object} [options] Optional settings.
545
+ * @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
546
+ * @param {boolean} [options.forceServerObjectId=false] Force server to assign _id values instead of driver.
547
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
548
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
549
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
550
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
551
+ * @param {boolean} [options.checkKeys=true] If true, will throw if bson documents start with `$` or include a `.` in any key value
552
+ * @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
553
+ * @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
554
+ * @param {ClientSession} [options.session] optional session to use for this operation
555
+ * @param {Collection~insertOneWriteOpCallback} [callback] The command result callback
556
+ * @return {Promise} returns Promise if no callback passed
557
+ */
558
+ Collection.prototype.insertOne = function(doc, options, callback) {
559
+ if (typeof options === 'function') (callback = options), (options = {});
560
+ options = options || {};
561
+
562
+ // Add ignoreUndefined
563
+ if (this.s.options.ignoreUndefined) {
564
+ options = Object.assign({}, options);
565
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
566
+ }
567
+
568
+ const insertOneOperation = new insert_one(this, doc, options);
569
+
570
+ return execute_operation(this.s.topology, insertOneOperation, callback);
571
+ };
572
+
573
+ /**
574
+ * Inserts an array of documents into MongoDB. If documents passed in do not contain the **_id** field,
575
+ * one will be added to each of the documents missing it by the driver, mutating the document. This behavior
576
+ * can be overridden by setting the **forceServerObjectId** flag.
577
+ *
578
+ * @method
579
+ * @param {object[]} docs Documents to insert.
580
+ * @param {object} [options] Optional settings.
581
+ * @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
582
+ * @param {boolean} [options.ordered=true] If true, when an insert fails, don't execute the remaining writes. If false, continue with remaining inserts when one fails.
583
+ * @param {boolean} [options.forceServerObjectId=false] Force server to assign _id values instead of driver.
584
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
585
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
586
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
587
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
588
+ * @param {boolean} [options.checkKeys=true] If true, will throw if bson documents start with `$` or include a `.` in any key value
589
+ * @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
590
+ * @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
591
+ * @param {ClientSession} [options.session] optional session to use for this operation
592
+ * @param {Collection~insertWriteOpCallback} [callback] The command result callback
593
+ * @return {Promise} returns Promise if no callback passed
594
+ */
595
+ Collection.prototype.insertMany = function(docs, options, callback) {
596
+ if (typeof options === 'function') (callback = options), (options = {});
597
+ options = options ? Object.assign({}, options) : { ordered: true };
598
+
599
+ const insertManyOperation = new insert_many(this, docs, options);
600
+
601
+ return execute_operation(this.s.topology, insertManyOperation, callback);
602
+ };
603
+
604
+ /**
605
+ * @typedef {Object} Collection~BulkWriteOpResult
606
+ * @property {number} insertedCount Number of documents inserted.
607
+ * @property {number} matchedCount Number of documents matched for update.
608
+ * @property {number} modifiedCount Number of documents modified.
609
+ * @property {number} deletedCount Number of documents deleted.
610
+ * @property {number} upsertedCount Number of documents upserted.
611
+ * @property {object} insertedIds Inserted document generated Id's, hash key is the index of the originating operation
612
+ * @property {object} upsertedIds Upserted document generated Id's, hash key is the index of the originating operation
613
+ * @property {object} result The command result object.
614
+ */
615
+
616
+ /**
617
+ * The callback format for inserts
618
+ * @callback Collection~bulkWriteOpCallback
619
+ * @param {BulkWriteError} error An error instance representing the error during the execution.
620
+ * @param {Collection~BulkWriteOpResult} result The result object if the command was executed successfully.
621
+ */
622
+
623
+ /**
624
+ * Perform a bulkWrite operation without a fluent API
625
+ *
626
+ * Legal operation types are
627
+ *
628
+ * { insertOne: { document: { a: 1 } } }
629
+ *
630
+ * { updateOne: { filter: {a:2}, update: {$set: {a:2}}, upsert:true } }
631
+ *
632
+ * { updateMany: { filter: {a:2}, update: {$set: {a:2}}, upsert:true } }
633
+ *
634
+ * { updateMany: { filter: {}, update: {$set: {"a.$[i].x": 5}}, arrayFilters: [{ "i.x": 5 }]} }
635
+ *
636
+ * { deleteOne: { filter: {c:1} } }
637
+ *
638
+ * { deleteMany: { filter: {c:1} } }
639
+ *
640
+ * { replaceOne: { filter: {c:3}, replacement: {c:4}, upsert:true}}
641
+ *
642
+ * If documents passed in do not contain the **_id** field,
643
+ * one will be added to each of the documents missing it by the driver, mutating the document. This behavior
644
+ * can be overridden by setting the **forceServerObjectId** flag.
645
+ *
646
+ * @method
647
+ * @param {object[]} operations Bulk operations to perform.
648
+ * @param {object} [options] Optional settings.
649
+ * @param {boolean} [options.ordered=true] Execute write operation in ordered or unordered fashion.
650
+ * @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
651
+ * @param {object[]} [options.arrayFilters] Determines which array elements to modify for update operation in MongoDB 3.6 or higher.
652
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
653
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
654
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
655
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
656
+ * @param {boolean} [options.checkKeys=false] If true, will throw if bson documents start with `$` or include a `.` in any key value
657
+ * @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
658
+ * @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
659
+ * @param {ClientSession} [options.session] optional session to use for this operation
660
+ * @param {Collection~bulkWriteOpCallback} [callback] The command result callback
661
+ * @return {Promise} returns Promise if no callback passed
662
+ */
663
+ Collection.prototype.bulkWrite = function(operations, options, callback) {
664
+ if (typeof options === 'function') (callback = options), (options = {});
665
+ options = options || { ordered: true };
666
+
667
+ if (!Array.isArray(operations)) {
668
+ throw MongoError.create({ message: 'operations must be an array of documents', driver: true });
669
+ }
670
+
671
+ const bulkWriteOperation = new bulk_write(this, operations, options);
672
+
673
+ return execute_operation(this.s.topology, bulkWriteOperation, callback);
674
+ };
675
+
676
+ /**
677
+ * @typedef {Object} Collection~WriteOpResult
678
+ * @property {object[]} ops All the documents inserted using insertOne/insertMany/replaceOne. Documents contain the _id field if forceServerObjectId == false for insertOne/insertMany
679
+ * @property {object} connection The connection object used for the operation.
680
+ * @property {object} result The command result object.
681
+ */
682
+
683
+ /**
684
+ * The callback format for inserts
685
+ * @callback Collection~writeOpCallback
686
+ * @param {MongoError} error An error instance representing the error during the execution.
687
+ * @param {Collection~WriteOpResult} result The result object if the command was executed successfully.
688
+ */
689
+
690
+ /**
691
+ * @typedef {Object} Collection~insertWriteOpResult
692
+ * @property {number} insertedCount The total amount of documents inserted.
693
+ * @property {object[]} ops All the documents inserted using insertOne/insertMany/replaceOne. Documents contain the _id field if forceServerObjectId == false for insertOne/insertMany
694
+ * @property {Object.<Number, ObjectId>} insertedIds Map of the index of the inserted document to the id of the inserted document.
695
+ * @property {object} connection The connection object used for the operation.
696
+ * @property {object} result The raw command result object returned from MongoDB (content might vary by server version).
697
+ * @property {number} result.ok Is 1 if the command executed correctly.
698
+ * @property {number} result.n The total count of documents inserted.
699
+ */
700
+
701
+ /**
702
+ * @typedef {Object} Collection~insertOneWriteOpResult
703
+ * @property {number} insertedCount The total amount of documents inserted.
704
+ * @property {object[]} ops All the documents inserted using insertOne/insertMany/replaceOne. Documents contain the _id field if forceServerObjectId == false for insertOne/insertMany
705
+ * @property {ObjectId} insertedId The driver generated ObjectId for the insert operation.
706
+ * @property {object} connection The connection object used for the operation.
707
+ * @property {object} result The raw command result object returned from MongoDB (content might vary by server version).
708
+ * @property {number} result.ok Is 1 if the command executed correctly.
709
+ * @property {number} result.n The total count of documents inserted.
710
+ */
711
+
712
+ /**
713
+ * The callback format for inserts
714
+ * @callback Collection~insertWriteOpCallback
715
+ * @param {MongoError} error An error instance representing the error during the execution.
716
+ * @param {Collection~insertWriteOpResult} result The result object if the command was executed successfully.
717
+ */
718
+
719
+ /**
720
+ * The callback format for inserts
721
+ * @callback Collection~insertOneWriteOpCallback
722
+ * @param {MongoError} error An error instance representing the error during the execution.
723
+ * @param {Collection~insertOneWriteOpResult} result The result object if the command was executed successfully.
724
+ */
725
+
726
+ /**
727
+ * Inserts a single document or a an array of documents into MongoDB. If documents passed in do not contain the **_id** field,
728
+ * one will be added to each of the documents missing it by the driver, mutating the document. This behavior
729
+ * can be overridden by setting the **forceServerObjectId** flag.
730
+ *
731
+ * @method
732
+ * @param {(object|object[])} docs Documents to insert.
733
+ * @param {object} [options] Optional settings.
734
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
735
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
736
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
737
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
738
+ * @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
739
+ * @param {boolean} [options.forceServerObjectId=false] Force server to assign _id values instead of driver.
740
+ * @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
741
+ * @param {ClientSession} [options.session] optional session to use for this operation
742
+ * @param {Collection~insertWriteOpCallback} [callback] The command result callback
743
+ * @return {Promise} returns Promise if no callback passed
744
+ * @deprecated Use insertOne, insertMany or bulkWrite
745
+ */
746
+ Collection.prototype.insert = deprecate(function(docs, options, callback) {
747
+ if (typeof options === 'function') (callback = options), (options = {});
748
+ options = options || { ordered: false };
749
+ docs = !Array.isArray(docs) ? [docs] : docs;
750
+
751
+ if (options.keepGoing === true) {
752
+ options.ordered = false;
753
+ }
754
+
755
+ return this.insertMany(docs, options, callback);
756
+ }, 'collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead.');
757
+
758
+ /**
759
+ * @typedef {Object} Collection~updateWriteOpResult
760
+ * @property {Object} result The raw result returned from MongoDB. Will vary depending on server version.
761
+ * @property {Number} result.ok Is 1 if the command executed correctly.
762
+ * @property {Number} result.n The total count of documents scanned.
763
+ * @property {Number} result.nModified The total count of documents modified.
764
+ * @property {Object} connection The connection object used for the operation.
765
+ * @property {Number} matchedCount The number of documents that matched the filter.
766
+ * @property {Number} modifiedCount The number of documents that were modified.
767
+ * @property {Number} upsertedCount The number of documents upserted.
768
+ * @property {Object} upsertedId The upserted id.
769
+ * @property {ObjectId} upsertedId._id The upserted _id returned from the server.
770
+ * @property {Object} message The raw msg response wrapped in an internal class
771
+ * @property {object[]} [ops] In a response to {@link Collection#replaceOne replaceOne}, contains the new value of the document on the server. This is the same document that was originally passed in, and is only here for legacy purposes.
772
+ */
773
+
774
+ /**
775
+ * The callback format for inserts
776
+ * @callback Collection~updateWriteOpCallback
777
+ * @param {MongoError} error An error instance representing the error during the execution.
778
+ * @param {Collection~updateWriteOpResult} result The result object if the command was executed successfully.
779
+ */
780
+
781
+ /**
782
+ * Update a single document in a collection
783
+ * @method
784
+ * @param {object} filter The Filter used to select the document to update
785
+ * @param {object} update The update operations to be applied to the document
786
+ * @param {object} [options] Optional settings.
787
+ * @param {Array} [options.arrayFilters] optional list of array filters referenced in filtered positional operators
788
+ * @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
789
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
790
+ * @param {object} [options.hint] An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.
791
+ * @param {boolean} [options.upsert=false] When true, creates a new document if no document matches the query..
792
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
793
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
794
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
795
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
796
+ * @param {boolean} [options.checkKeys=false] If true, will throw if bson documents start with `$` or include a `.` in any key value
797
+ * @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
798
+ * @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
799
+ * @param {'queryPlanner'|'queryPlannerExtended'|'executionStats'|'allPlansExecution'|boolean} [options.explain] The verbosity mode for the explain output.
800
+ * @param {ClientSession} [options.session] optional session to use for this operation
801
+ * @param {Collection~updateWriteOpCallback} [callback] The command result callback
802
+ * @return {Promise} returns Promise if no callback passed
803
+ */
804
+ Collection.prototype.updateOne = function(filter, update, options, callback) {
805
+ if (typeof options === 'function') (callback = options), (options = {});
806
+ options = Object.assign({}, options);
807
+
808
+ // Add ignoreUndefined
809
+ if (this.s.options.ignoreUndefined) {
810
+ options = Object.assign({}, options);
811
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
812
+ }
813
+
814
+ return execute_operation(
815
+ this.s.topology,
816
+ new update_one(this, filter, update, options),
817
+ callback
818
+ );
819
+ };
820
+
821
+ /**
822
+ * Replace a document in a collection with another document
823
+ * @method
824
+ * @param {object} filter The Filter used to select the document to replace
825
+ * @param {object} doc The Document that replaces the matching document
826
+ * @param {object} [options] Optional settings.
827
+ * @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
828
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
829
+ * @param {object} [options.hint] An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.
830
+ * @param {boolean} [options.upsert=false] When true, creates a new document if no document matches the query.
831
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
832
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
833
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
834
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
835
+ * @param {boolean} [options.checkKeys=false] If true, will throw if bson documents start with `$` or include a `.` in any key value
836
+ * @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
837
+ * @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
838
+ * @param {ClientSession} [options.session] optional session to use for this operation
839
+ * @param {Collection~updateWriteOpCallback} [callback] The command result callback
840
+ * @return {Promise<Collection~updateWriteOpResult>} returns Promise if no callback passed
841
+ */
842
+ Collection.prototype.replaceOne = function(filter, doc, options, callback) {
843
+ if (typeof options === 'function') (callback = options), (options = {});
844
+ options = Object.assign({}, options);
845
+
846
+ // Add ignoreUndefined
847
+ if (this.s.options.ignoreUndefined) {
848
+ options = Object.assign({}, options);
849
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
850
+ }
851
+
852
+ return execute_operation(
853
+ this.s.topology,
854
+ new replace_one(this, filter, doc, options),
855
+ callback
856
+ );
857
+ };
858
+
859
+ /**
860
+ * Update multiple documents in a collection
861
+ * @method
862
+ * @param {object} filter The Filter used to select the documents to update
863
+ * @param {object} update The update operations to be applied to the documents
864
+ * @param {object} [options] Optional settings.
865
+ * @param {Array} [options.arrayFilters] optional list of array filters referenced in filtered positional operators
866
+ * @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
867
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
868
+ * @param {object} [options.hint] An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.
869
+ * @param {boolean} [options.upsert=false] When true, creates a new document if no document matches the query..
870
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
871
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
872
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
873
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
874
+ * @param {boolean} [options.checkKeys=false] If true, will throw if bson documents start with `$` or include a `.` in any key value
875
+ * @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
876
+ * @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
877
+ * @param {'queryPlanner'|'queryPlannerExtended'|'executionStats'|'allPlansExecution'|boolean} [options.explain] The verbosity mode for the explain output.
878
+ * @param {ClientSession} [options.session] optional session to use for this operation
879
+ * @param {Collection~updateWriteOpCallback} [callback] The command result callback
880
+ * @return {Promise<Collection~updateWriteOpResult>} returns Promise if no callback passed
881
+ */
882
+ Collection.prototype.updateMany = function(filter, update, options, callback) {
883
+ if (typeof options === 'function') (callback = options), (options = {});
884
+ options = Object.assign({}, options);
885
+
886
+ // Add ignoreUndefined
887
+ if (this.s.options.ignoreUndefined) {
888
+ options = Object.assign({}, options);
889
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
890
+ }
891
+
892
+ return execute_operation(
893
+ this.s.topology,
894
+ new update_many(this, filter, update, options),
895
+ callback
896
+ );
897
+ };
898
+
899
+ /**
900
+ * Updates documents.
901
+ * @method
902
+ * @param {object} selector The selector for the update operation.
903
+ * @param {object} update The update operations to be applied to the documents
904
+ * @param {object} [options] Optional settings.
905
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
906
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
907
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
908
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
909
+ * @param {boolean} [options.upsert=false] Update operation is an upsert.
910
+ * @param {boolean} [options.multi=false] Update one/all documents with operation.
911
+ * @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
912
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
913
+ * @param {Array} [options.arrayFilters] optional list of array filters referenced in filtered positional operators
914
+ * @param {ClientSession} [options.session] optional session to use for this operation
915
+ * @param {object} [options.hint] An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.
916
+ * @param {Collection~writeOpCallback} [callback] The command result callback
917
+ * @throws {MongoError}
918
+ * @return {Promise} returns Promise if no callback passed
919
+ * @deprecated use updateOne, updateMany or bulkWrite
920
+ */
921
+ Collection.prototype.update = deprecate(function(selector, update, options, callback) {
922
+ if (typeof options === 'function') (callback = options), (options = {});
923
+ options = options || {};
924
+
925
+ // Add ignoreUndefined
926
+ if (this.s.options.ignoreUndefined) {
927
+ options = Object.assign({}, options);
928
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
929
+ }
930
+
931
+ return executeLegacyOperation(this.s.topology, updateDocuments, [
932
+ this,
933
+ selector,
934
+ update,
935
+ options,
936
+ callback
937
+ ]);
938
+ }, 'collection.update is deprecated. Use updateOne, updateMany, or bulkWrite instead.');
939
+
940
+ /**
941
+ * @typedef {Object} Collection~deleteWriteOpResult
942
+ * @property {Object} result The raw result returned from MongoDB. Will vary depending on server version.
943
+ * @property {Number} result.ok Is 1 if the command executed correctly.
944
+ * @property {Number} result.n The total count of documents deleted.
945
+ * @property {Object} connection The connection object used for the operation.
946
+ * @property {Number} deletedCount The number of documents deleted.
947
+ */
948
+
949
+ /**
950
+ * The callback format for deletes
951
+ * @callback Collection~deleteWriteOpCallback
952
+ * @param {MongoError} error An error instance representing the error during the execution.
953
+ * @param {Collection~deleteWriteOpResult} result The result object if the command was executed successfully.
954
+ */
955
+
956
+ /**
957
+ * Delete a document from a collection
958
+ * @method
959
+ * @param {object} filter The Filter used to select the document to remove
960
+ * @param {object} [options] Optional settings.
961
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
962
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
963
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
964
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
965
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
966
+ * @param {boolean} [options.checkKeys=false] If true, will throw if bson documents start with `$` or include a `.` in any key value
967
+ * @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
968
+ * @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
969
+ * @param {'queryPlanner'|'queryPlannerExtended'|'executionStats'|'allPlansExecution'|boolean} [options.explain] The verbosity mode for the explain output.
970
+ * @param {ClientSession} [options.session] optional session to use for this operation
971
+ * @param {string|object} [options.hint] optional index hint for optimizing the filter query
972
+ * @param {Collection~deleteWriteOpCallback} [callback] The command result callback
973
+ * @return {Promise} returns Promise if no callback passed
974
+ */
975
+ Collection.prototype.deleteOne = function(filter, options, callback) {
976
+ if (typeof options === 'function') (callback = options), (options = {});
977
+ options = Object.assign({}, options);
978
+
979
+ // Add ignoreUndefined
980
+ if (this.s.options.ignoreUndefined) {
981
+ options = Object.assign({}, options);
982
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
983
+ }
984
+
985
+ const deleteOneOperation = new delete_one(this, filter, options);
986
+
987
+ return execute_operation(this.s.topology, deleteOneOperation, callback);
988
+ };
989
+
990
+ Collection.prototype.removeOne = Collection.prototype.deleteOne;
991
+
992
+ /**
993
+ * Delete multiple documents from a collection
994
+ * @method
995
+ * @param {object} filter The Filter used to select the documents to remove
996
+ * @param {object} [options] Optional settings.
997
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
998
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
999
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
1000
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
1001
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
1002
+ * @param {boolean} [options.checkKeys=false] If true, will throw if bson documents start with `$` or include a `.` in any key value
1003
+ * @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
1004
+ * @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
1005
+ * @param {'queryPlanner'|'queryPlannerExtended'|'executionStats'|'allPlansExecution'|boolean} [options.explain] The verbosity mode for the explain output.
1006
+ * @param {ClientSession} [options.session] optional session to use for this operation
1007
+ * @param {string|object} [options.hint] optional index hint for optimizing the filter query
1008
+ * @param {Collection~deleteWriteOpCallback} [callback] The command result callback
1009
+ * @return {Promise} returns Promise if no callback passed
1010
+ */
1011
+ Collection.prototype.deleteMany = function(filter, options, callback) {
1012
+ if (typeof options === 'function') (callback = options), (options = {});
1013
+ options = Object.assign({}, options);
1014
+
1015
+ // Add ignoreUndefined
1016
+ if (this.s.options.ignoreUndefined) {
1017
+ options = Object.assign({}, options);
1018
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
1019
+ }
1020
+
1021
+ const deleteManyOperation = new delete_many(this, filter, options);
1022
+
1023
+ return execute_operation(this.s.topology, deleteManyOperation, callback);
1024
+ };
1025
+
1026
+ Collection.prototype.removeMany = Collection.prototype.deleteMany;
1027
+
1028
+ /**
1029
+ * Remove documents.
1030
+ * @method
1031
+ * @param {object} selector The selector for the update operation.
1032
+ * @param {object} [options] Optional settings.
1033
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
1034
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
1035
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
1036
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
1037
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
1038
+ * @param {boolean} [options.single=false] Removes the first document found.
1039
+ * @param {ClientSession} [options.session] optional session to use for this operation
1040
+ * @param {Collection~writeOpCallback} [callback] The command result callback
1041
+ * @return {Promise} returns Promise if no callback passed
1042
+ * @deprecated use deleteOne, deleteMany or bulkWrite
1043
+ */
1044
+ Collection.prototype.remove = deprecate(function(selector, options, callback) {
1045
+ if (typeof options === 'function') (callback = options), (options = {});
1046
+ options = options || {};
1047
+
1048
+ // Add ignoreUndefined
1049
+ if (this.s.options.ignoreUndefined) {
1050
+ options = Object.assign({}, options);
1051
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
1052
+ }
1053
+
1054
+ return executeLegacyOperation(this.s.topology, removeDocuments, [
1055
+ this,
1056
+ selector,
1057
+ options,
1058
+ callback
1059
+ ]);
1060
+ }, 'collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead.');
1061
+
1062
+ /**
1063
+ * Save a document. Simple full document replacement function. Not recommended for efficiency, use atomic
1064
+ * operators and update instead for more efficient operations.
1065
+ * @method
1066
+ * @param {object} doc Document to save
1067
+ * @param {object} [options] Optional settings.
1068
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
1069
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
1070
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
1071
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
1072
+ * @param {ClientSession} [options.session] optional session to use for this operation
1073
+ * @param {Collection~writeOpCallback} [callback] The command result callback
1074
+ * @return {Promise} returns Promise if no callback passed
1075
+ * @deprecated use insertOne, insertMany, updateOne or updateMany
1076
+ */
1077
+ Collection.prototype.save = deprecate(function(doc, options, callback) {
1078
+ if (typeof options === 'function') (callback = options), (options = {});
1079
+ options = options || {};
1080
+
1081
+ // Add ignoreUndefined
1082
+ if (this.s.options.ignoreUndefined) {
1083
+ options = Object.assign({}, options);
1084
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
1085
+ }
1086
+
1087
+ return executeLegacyOperation(this.s.topology, save, [this, doc, options, callback]);
1088
+ }, 'collection.save is deprecated. Use insertOne, insertMany, updateOne, or updateMany instead.');
1089
+
1090
+ /**
1091
+ * The callback format for results
1092
+ * @callback Collection~resultCallback
1093
+ * @param {MongoError} error An error instance representing the error during the execution.
1094
+ * @param {object} result The result object if the command was executed successfully.
1095
+ */
1096
+
1097
+ /**
1098
+ * The callback format for an aggregation call
1099
+ * @callback Collection~aggregationCallback
1100
+ * @param {MongoError} error An error instance representing the error during the execution.
1101
+ * @param {AggregationCursor} cursor The cursor if the aggregation command was executed successfully.
1102
+ */
1103
+
1104
+ /**
1105
+ * Fetches the first document that matches the query
1106
+ * @method
1107
+ * @param {object} query Query for find Operation
1108
+ * @param {object} [options] Optional settings.
1109
+ * @param {number} [options.limit=0] Sets the limit of documents returned in the query.
1110
+ * @param {(array|object)} [options.sort] Set to sort the documents coming back from the query. Array of indexes, [['a', 1]] etc.
1111
+ * @param {object} [options.projection] The fields to return in the query. Object of fields to include or exclude (not both), {'a':1}
1112
+ * @param {object} [options.fields] **Deprecated** Use `options.projection` instead
1113
+ * @param {number} [options.skip=0] Set to skip N documents ahead in your query (useful for pagination).
1114
+ * @param {Object} [options.hint] Tell the query to use specific indexes in the query. Object of indexes to use, {'_id':1}
1115
+ * @param {boolean} [options.snapshot=false] DEPRECATED: Snapshot query.
1116
+ * @param {boolean} [options.timeout=false] Specify if the cursor can timeout.
1117
+ * @param {boolean} [options.tailable=false] Specify if the cursor is tailable.
1118
+ * @param {number} [options.batchSize=1] Set the batchSize for the getMoreCommand when iterating over the query results.
1119
+ * @param {boolean} [options.returnKey=false] Only return the index key.
1120
+ * @param {number} [options.maxScan] DEPRECATED: Limit the number of items to scan.
1121
+ * @param {number} [options.min] Set index bounds.
1122
+ * @param {number} [options.max] Set index bounds.
1123
+ * @param {boolean} [options.showDiskLoc=false] Show disk location of results.
1124
+ * @param {string} [options.comment] You can put a $comment field on a query to make looking in the profiler logs simpler.
1125
+ * @param {boolean} [options.raw=false] Return document results as raw BSON buffers.
1126
+ * @param {boolean} [options.promoteLongs=true] Promotes Long values to number if they fit inside the 53 bits resolution.
1127
+ * @param {boolean} [options.promoteValues=true] Promotes BSON values to native types where possible, set to false to only receive wrapper types.
1128
+ * @param {boolean} [options.promoteBuffers=false] Promotes Binary BSON values to native Node Buffers.
1129
+ * @param {(ReadPreference|string)} [options.readPreference] The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
1130
+ * @param {boolean} [options.partial=false] Specify if the cursor should return partial results when querying against a sharded system
1131
+ * @param {number} [options.maxTimeMS] Number of milliseconds to wait before aborting the query.
1132
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
1133
+ * @param {'queryPlanner'|'queryPlannerExtended'|'executionStats'|'allPlansExecution'|boolean} [options.explain] The verbosity mode for the explain output.
1134
+ * @param {ClientSession} [options.session] optional session to use for this operation
1135
+ * @param {Collection~resultCallback} [callback] The command result callback
1136
+ * @return {Promise} returns Promise if no callback passed
1137
+ */
1138
+ Collection.prototype.findOne = deprecateOptions(
1139
+ {
1140
+ name: 'collection.find',
1141
+ deprecatedOptions: DEPRECATED_FIND_OPTIONS,
1142
+ optionsIndex: 1
1143
+ },
1144
+ function(query, options, callback) {
1145
+ if (typeof callback === 'object') {
1146
+ // TODO(MAJOR): throw in the future
1147
+ emitWarningOnce('Third parameter to `findOne()` must be a callback or undefined');
1148
+ }
1149
+
1150
+ if (typeof query === 'function') (callback = query), (query = {}), (options = {});
1151
+ if (typeof options === 'function') (callback = options), (options = {});
1152
+ query = query || {};
1153
+ options = options || {};
1154
+
1155
+ const findOneOperation = new find_one(this, query, options);
1156
+
1157
+ return execute_operation(this.s.topology, findOneOperation, callback);
1158
+ }
1159
+ );
1160
+
1161
+ /**
1162
+ * The callback format for the collection method, must be used if strict is specified
1163
+ * @callback Collection~collectionResultCallback
1164
+ * @param {MongoError} error An error instance representing the error during the execution.
1165
+ * @param {Collection} collection The collection instance.
1166
+ */
1167
+
1168
+ /**
1169
+ * Rename the collection.
1170
+ *
1171
+ * @method
1172
+ * @param {string} newName New name of of the collection.
1173
+ * @param {object} [options] Optional settings.
1174
+ * @param {boolean} [options.dropTarget=false] Drop the target name collection if it previously exists.
1175
+ * @param {ClientSession} [options.session] optional session to use for this operation
1176
+ * @param {Collection~collectionResultCallback} [callback] The results callback
1177
+ * @return {Promise} returns Promise if no callback passed
1178
+ */
1179
+ Collection.prototype.rename = function(newName, options, callback) {
1180
+ if (typeof options === 'function') (callback = options), (options = {});
1181
+ options = Object.assign({}, options, { readPreference: ReadPreference.PRIMARY });
1182
+
1183
+ const renameOperation = new rename(this, newName, options);
1184
+
1185
+ return execute_operation(this.s.topology, renameOperation, callback);
1186
+ };
1187
+
1188
+ /**
1189
+ * Drop the collection from the database, removing it permanently. New accesses will create a new collection.
1190
+ *
1191
+ * @method
1192
+ * @param {object} [options] Optional settings.
1193
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
1194
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
1195
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
1196
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
1197
+ * @param {ClientSession} [options.session] optional session to use for this operation
1198
+ * @param {Collection~resultCallback} [callback] The results callback
1199
+ * @return {Promise} returns Promise if no callback passed
1200
+ */
1201
+ Collection.prototype.drop = function(options, callback) {
1202
+ if (typeof options === 'function') (callback = options), (options = {});
1203
+ options = options || {};
1204
+
1205
+ const dropCollectionOperation = new DropCollectionOperation(
1206
+ this.s.db,
1207
+ this.collectionName,
1208
+ options
1209
+ );
1210
+
1211
+ return execute_operation(this.s.topology, dropCollectionOperation, callback);
1212
+ };
1213
+
1214
+ /**
1215
+ * Returns the options of the collection.
1216
+ *
1217
+ * @method
1218
+ * @param {Object} [options] Optional settings
1219
+ * @param {ClientSession} [options.session] optional session to use for this operation
1220
+ * @param {Collection~resultCallback} [callback] The results callback
1221
+ * @return {Promise} returns Promise if no callback passed
1222
+ */
1223
+ Collection.prototype.options = function(opts, callback) {
1224
+ if (typeof opts === 'function') (callback = opts), (opts = {});
1225
+ opts = opts || {};
1226
+
1227
+ const optionsOperation = new options_operation(this, opts);
1228
+
1229
+ return execute_operation(this.s.topology, optionsOperation, callback);
1230
+ };
1231
+
1232
+ /**
1233
+ * Returns if the collection is a capped collection
1234
+ *
1235
+ * @method
1236
+ * @param {Object} [options] Optional settings
1237
+ * @param {ClientSession} [options.session] optional session to use for this operation
1238
+ * @param {Collection~resultCallback} [callback] The results callback
1239
+ * @return {Promise} returns Promise if no callback passed
1240
+ */
1241
+ Collection.prototype.isCapped = function(options, callback) {
1242
+ if (typeof options === 'function') (callback = options), (options = {});
1243
+ options = options || {};
1244
+
1245
+ const isCappedOperation = new is_capped(this, options);
1246
+
1247
+ return execute_operation(this.s.topology, isCappedOperation, callback);
1248
+ };
1249
+
1250
+ /**
1251
+ * Creates an index on the db and collection collection.
1252
+ * @method
1253
+ * @param {(string|array|object)} fieldOrSpec Defines the index.
1254
+ * @param {object} [options] Optional settings.
1255
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
1256
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
1257
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
1258
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
1259
+ * @param {boolean} [options.unique=false] Creates an unique index.
1260
+ * @param {boolean} [options.sparse=false] Creates a sparse index.
1261
+ * @param {boolean} [options.background=false] Creates the index in the background, yielding whenever possible.
1262
+ * @param {boolean} [options.dropDups=false] A unique index cannot be created on a key that has pre-existing duplicate values. If you would like to create the index anyway, keeping the first document the database indexes and deleting all subsequent documents that have duplicate value
1263
+ * @param {number} [options.min] For geospatial indexes set the lower bound for the co-ordinates.
1264
+ * @param {number} [options.max] For geospatial indexes set the high bound for the co-ordinates.
1265
+ * @param {number} [options.v] Specify the format version of the indexes.
1266
+ * @param {number} [options.expireAfterSeconds] Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher)
1267
+ * @param {string} [options.name] Override the autogenerated index name (useful if the resulting name is larger than 128 bytes)
1268
+ * @param {object} [options.partialFilterExpression] Creates a partial index based on the given filter object (MongoDB 3.2 or higher)
1269
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
1270
+ * @param {ClientSession} [options.session] optional session to use for this operation
1271
+ * @param {(number|string)} [options.commitQuorum] (MongoDB 4.4. or higher) Specifies how many data-bearing members of a replica set, including the primary, must complete the index builds successfully before the primary marks the indexes as ready. This option accepts the same values for the "w" field in a write concern plus "votingMembers", which indicates all voting data-bearing nodes.
1272
+ * @param {Collection~resultCallback} [callback] The command result callback
1273
+ * @return {Promise} returns Promise if no callback passed
1274
+ * @example
1275
+ * const collection = client.db('foo').collection('bar');
1276
+ *
1277
+ * await collection.createIndex({ a: 1, b: -1 });
1278
+ *
1279
+ * // Alternate syntax for { c: 1, d: -1 } that ensures order of indexes
1280
+ * await collection.createIndex([ [c, 1], [d, -1] ]);
1281
+ *
1282
+ * // Equivalent to { e: 1 }
1283
+ * await collection.createIndex('e');
1284
+ *
1285
+ * // Equivalent to { f: 1, g: 1 }
1286
+ * await collection.createIndex(['f', 'g'])
1287
+ *
1288
+ * // Equivalent to { h: 1, i: -1 }
1289
+ * await collection.createIndex([ { h: 1 }, { i: -1 } ]);
1290
+ *
1291
+ * // Equivalent to { j: 1, k: -1, l: 2d }
1292
+ * await collection.createIndex(['j', ['k', -1], { l: '2d' }])
1293
+ */
1294
+ Collection.prototype.createIndex = function(fieldOrSpec, options, callback) {
1295
+ if (typeof options === 'function') (callback = options), (options = {});
1296
+ options = options || {};
1297
+
1298
+ const createIndexesOperation = new create_indexes(
1299
+ this,
1300
+ this.collectionName,
1301
+ fieldOrSpec,
1302
+ options
1303
+ );
1304
+
1305
+ return execute_operation(this.s.topology, createIndexesOperation, callback);
1306
+ };
1307
+
1308
+ /**
1309
+ * @typedef {object} Collection~IndexDefinition
1310
+ * @description A definition for an index. Used by the createIndex command.
1311
+ * @see https://docs.mongodb.com/manual/reference/command/createIndexes/
1312
+ */
1313
+
1314
+ /**
1315
+ * Creates multiple indexes in the collection, this method is only supported for
1316
+ * MongoDB 2.6 or higher. Earlier version of MongoDB will throw a command not supported
1317
+ * error.
1318
+ *
1319
+ * **Note**: Unlike {@link Collection#createIndex createIndex}, this function takes in raw index specifications.
1320
+ * Index specifications are defined {@link http://docs.mongodb.org/manual/reference/command/createIndexes/ here}.
1321
+ *
1322
+ * @method
1323
+ * @param {Collection~IndexDefinition[]} indexSpecs An array of index specifications to be created
1324
+ * @param {Object} [options] Optional settings
1325
+ * @param {ClientSession} [options.session] optional session to use for this operation
1326
+ * @param {(number|string)} [options.commitQuorum] (MongoDB 4.4. or higher) Specifies how many data-bearing members of a replica set, including the primary, must complete the index builds successfully before the primary marks the indexes as ready. This option accepts the same values for the "w" field in a write concern plus "votingMembers", which indicates all voting data-bearing nodes.
1327
+ * @param {Collection~resultCallback} [callback] The command result callback
1328
+ * @return {Promise} returns Promise if no callback passed
1329
+ * @example
1330
+ * const collection = client.db('foo').collection('bar');
1331
+ * await collection.createIndexes([
1332
+ * // Simple index on field fizz
1333
+ * {
1334
+ * key: { fizz: 1 },
1335
+ * }
1336
+ * // wildcard index
1337
+ * {
1338
+ * key: { '$**': 1 }
1339
+ * },
1340
+ * // named index on darmok and jalad
1341
+ * {
1342
+ * key: { darmok: 1, jalad: -1 }
1343
+ * name: 'tanagra'
1344
+ * }
1345
+ * ]);
1346
+ */
1347
+ Collection.prototype.createIndexes = function(indexSpecs, options, callback) {
1348
+ if (typeof options === 'function') (callback = options), (options = {});
1349
+
1350
+ options = options ? Object.assign({}, options) : {};
1351
+
1352
+ if (typeof options.maxTimeMS !== 'number') delete options.maxTimeMS;
1353
+
1354
+ const createIndexesOperation = new create_indexes(
1355
+ this,
1356
+ this.collectionName,
1357
+ indexSpecs,
1358
+ options
1359
+ );
1360
+
1361
+ return execute_operation(this.s.topology, createIndexesOperation, callback);
1362
+ };
1363
+
1364
+ /**
1365
+ * Drops an index from this collection.
1366
+ * @method
1367
+ * @param {string} indexName Name of the index to drop.
1368
+ * @param {object} [options] Optional settings.
1369
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
1370
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
1371
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
1372
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
1373
+ * @param {ClientSession} [options.session] optional session to use for this operation
1374
+ * @param {number} [options.maxTimeMS] Number of milliseconds to wait before aborting the query.
1375
+ * @param {Collection~resultCallback} [callback] The command result callback
1376
+ * @return {Promise} returns Promise if no callback passed
1377
+ */
1378
+ Collection.prototype.dropIndex = function(indexName, options, callback) {
1379
+ const args = Array.prototype.slice.call(arguments, 1);
1380
+ callback = typeof args[args.length - 1] === 'function' ? args.pop() : undefined;
1381
+
1382
+ options = args.length ? args.shift() || {} : {};
1383
+ // Run only against primary
1384
+ options.readPreference = ReadPreference.PRIMARY;
1385
+
1386
+ const dropIndexOperation = new drop_index(this, indexName, options);
1387
+
1388
+ return execute_operation(this.s.topology, dropIndexOperation, callback);
1389
+ };
1390
+
1391
+ /**
1392
+ * Drops all indexes from this collection.
1393
+ * @method
1394
+ * @param {Object} [options] Optional settings
1395
+ * @param {ClientSession} [options.session] optional session to use for this operation
1396
+ * @param {number} [options.maxTimeMS] Number of milliseconds to wait before aborting the query.
1397
+ * @param {Collection~resultCallback} [callback] The command result callback
1398
+ * @return {Promise} returns Promise if no callback passed
1399
+ */
1400
+ Collection.prototype.dropIndexes = function(options, callback) {
1401
+ if (typeof options === 'function') (callback = options), (options = {});
1402
+ options = options ? Object.assign({}, options) : {};
1403
+
1404
+ if (typeof options.maxTimeMS !== 'number') delete options.maxTimeMS;
1405
+
1406
+ const dropIndexesOperation = new drop_indexes(this, options);
1407
+
1408
+ return execute_operation(this.s.topology, dropIndexesOperation, callback);
1409
+ };
1410
+
1411
+ /**
1412
+ * Drops all indexes from this collection.
1413
+ * @method
1414
+ * @deprecated use dropIndexes
1415
+ * @param {Collection~resultCallback} callback The command result callback
1416
+ * @return {Promise} returns Promise if no [callback] passed
1417
+ */
1418
+ Collection.prototype.dropAllIndexes = deprecate(
1419
+ Collection.prototype.dropIndexes,
1420
+ 'collection.dropAllIndexes is deprecated. Use dropIndexes instead.'
1421
+ );
1422
+
1423
+ /**
1424
+ * Reindex all indexes on the collection
1425
+ * Warning: reIndex is a blocking operation (indexes are rebuilt in the foreground) and will be slow for large collections.
1426
+ * @method
1427
+ * @deprecated use db.command instead
1428
+ * @param {Object} [options] Optional settings
1429
+ * @param {ClientSession} [options.session] optional session to use for this operation
1430
+ * @param {Collection~resultCallback} [callback] The command result callback
1431
+ * @return {Promise} returns Promise if no callback passed
1432
+ */
1433
+ Collection.prototype.reIndex = deprecate(function(options, callback) {
1434
+ if (typeof options === 'function') (callback = options), (options = {});
1435
+ options = options || {};
1436
+
1437
+ const reIndexOperation = new re_index(this, options);
1438
+
1439
+ return execute_operation(this.s.topology, reIndexOperation, callback);
1440
+ }, 'collection.reIndex is deprecated. Use db.command instead.');
1441
+
1442
+ /**
1443
+ * Get the list of all indexes information for the collection.
1444
+ *
1445
+ * @method
1446
+ * @param {object} [options] Optional settings.
1447
+ * @param {number} [options.batchSize=1000] The batchSize for the returned command cursor or if pre 2.8 the systems batch collection
1448
+ * @param {(ReadPreference|string)} [options.readPreference] The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
1449
+ * @param {ClientSession} [options.session] optional session to use for this operation
1450
+ * @return {CommandCursor}
1451
+ */
1452
+ Collection.prototype.listIndexes = function(options) {
1453
+ const cursor = new command_cursor(
1454
+ this.s.topology,
1455
+ new list_indexes(this, options),
1456
+ options
1457
+ );
1458
+
1459
+ return cursor;
1460
+ };
1461
+
1462
+ /**
1463
+ * Ensures that an index exists, if it does not it creates it
1464
+ * @method
1465
+ * @deprecated use createIndexes instead
1466
+ * @param {(string|object)} fieldOrSpec Defines the index.
1467
+ * @param {object} [options] Optional settings.
1468
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
1469
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
1470
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
1471
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
1472
+ * @param {boolean} [options.unique=false] Creates an unique index.
1473
+ * @param {boolean} [options.sparse=false] Creates a sparse index.
1474
+ * @param {boolean} [options.background=false] Creates the index in the background, yielding whenever possible.
1475
+ * @param {boolean} [options.dropDups=false] A unique index cannot be created on a key that has pre-existing duplicate values. If you would like to create the index anyway, keeping the first document the database indexes and deleting all subsequent documents that have duplicate value
1476
+ * @param {number} [options.min] For geospatial indexes set the lower bound for the co-ordinates.
1477
+ * @param {number} [options.max] For geospatial indexes set the high bound for the co-ordinates.
1478
+ * @param {number} [options.v] Specify the format version of the indexes.
1479
+ * @param {number} [options.expireAfterSeconds] Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher)
1480
+ * @param {number} [options.name] Override the autogenerated index name (useful if the resulting name is larger than 128 bytes)
1481
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
1482
+ * @param {ClientSession} [options.session] optional session to use for this operation
1483
+ * @param {Collection~resultCallback} [callback] The command result callback
1484
+ * @return {Promise} returns Promise if no callback passed
1485
+ */
1486
+ Collection.prototype.ensureIndex = deprecate(function(fieldOrSpec, options, callback) {
1487
+ if (typeof options === 'function') (callback = options), (options = {});
1488
+ options = options || {};
1489
+
1490
+ return executeLegacyOperation(this.s.topology, ensureIndex, [
1491
+ this,
1492
+ fieldOrSpec,
1493
+ options,
1494
+ callback
1495
+ ]);
1496
+ }, 'collection.ensureIndex is deprecated. Use createIndexes instead.');
1497
+
1498
+ /**
1499
+ * Checks if one or more indexes exist on the collection, fails on first non-existing index
1500
+ * @method
1501
+ * @param {(string|array)} indexes One or more index names to check.
1502
+ * @param {Object} [options] Optional settings
1503
+ * @param {ClientSession} [options.session] optional session to use for this operation
1504
+ * @param {Collection~resultCallback} [callback] The command result callback
1505
+ * @return {Promise} returns Promise if no callback passed
1506
+ */
1507
+ Collection.prototype.indexExists = function(indexes, options, callback) {
1508
+ if (typeof options === 'function') (callback = options), (options = {});
1509
+ options = options || {};
1510
+
1511
+ const indexExistsOperation = new index_exists(this, indexes, options);
1512
+
1513
+ return execute_operation(this.s.topology, indexExistsOperation, callback);
1514
+ };
1515
+
1516
+ /**
1517
+ * Retrieves this collections index info.
1518
+ * @method
1519
+ * @param {object} [options] Optional settings.
1520
+ * @param {boolean} [options.full=false] Returns the full raw index information.
1521
+ * @param {ClientSession} [options.session] optional session to use for this operation
1522
+ * @param {Collection~resultCallback} [callback] The command result callback
1523
+ * @return {Promise} returns Promise if no callback passed
1524
+ */
1525
+ Collection.prototype.indexInformation = function(options, callback) {
1526
+ const args = Array.prototype.slice.call(arguments, 0);
1527
+ callback = typeof args[args.length - 1] === 'function' ? args.pop() : undefined;
1528
+ options = args.length ? args.shift() || {} : {};
1529
+
1530
+ const indexInformationOperation = new index_information(
1531
+ this.s.db,
1532
+ this.collectionName,
1533
+ options
1534
+ );
1535
+
1536
+ return execute_operation(this.s.topology, indexInformationOperation, callback);
1537
+ };
1538
+
1539
+ /**
1540
+ * The callback format for results
1541
+ * @callback Collection~countCallback
1542
+ * @param {MongoError} error An error instance representing the error during the execution.
1543
+ * @param {number} result The count of documents that matched the query.
1544
+ */
1545
+
1546
+ /**
1547
+ * An estimated count of matching documents in the db to a query.
1548
+ *
1549
+ * **NOTE:** This method has been deprecated, since it does not provide an accurate count of the documents
1550
+ * in a collection. To obtain an accurate count of documents in the collection, use {@link Collection#countDocuments countDocuments}.
1551
+ * To obtain an estimated count of all documents in the collection, use {@link Collection#estimatedDocumentCount estimatedDocumentCount}.
1552
+ *
1553
+ * @method
1554
+ * @param {object} [query={}] The query for the count.
1555
+ * @param {object} [options] Optional settings.
1556
+ * @param {object} [options.collation] Specify collation settings for operation. See {@link https://docs.mongodb.com/manual/reference/command/aggregate|aggregation documentation}.
1557
+ * @param {boolean} [options.limit] The limit of documents to count.
1558
+ * @param {boolean} [options.skip] The number of documents to skip for the count.
1559
+ * @param {string} [options.hint] An index name hint for the query.
1560
+ * @param {(ReadPreference|string)} [options.readPreference] The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
1561
+ * @param {number} [options.maxTimeMS] Number of milliseconds to wait before aborting the query.
1562
+ * @param {ClientSession} [options.session] optional session to use for this operation
1563
+ * @param {Collection~countCallback} [callback] The command result callback
1564
+ * @return {Promise} returns Promise if no callback passed
1565
+ * @deprecated use {@link Collection#countDocuments countDocuments} or {@link Collection#estimatedDocumentCount estimatedDocumentCount} instead
1566
+ */
1567
+ Collection.prototype.count = deprecate(function(query, options, callback) {
1568
+ const args = Array.prototype.slice.call(arguments, 0);
1569
+ callback = typeof args[args.length - 1] === 'function' ? args.pop() : undefined;
1570
+ query = args.length ? args.shift() || {} : {};
1571
+ options = args.length ? args.shift() || {} : {};
1572
+
1573
+ if (typeof options === 'function') (callback = options), (options = {});
1574
+ options = options || {};
1575
+
1576
+ return execute_operation(
1577
+ this.s.topology,
1578
+ new estimated_document_count(this, query, options),
1579
+ callback
1580
+ );
1581
+ }, 'collection.count is deprecated, and will be removed in a future version.' +
1582
+ ' Use Collection.countDocuments or Collection.estimatedDocumentCount instead');
1583
+
1584
+ /**
1585
+ * Gets an estimate of the count of documents in a collection using collection metadata.
1586
+ *
1587
+ * @method
1588
+ * @param {object} [options] Optional settings.
1589
+ * @param {number} [options.maxTimeMS] The maximum amount of time to allow the operation to run.
1590
+ * @param {Collection~countCallback} [callback] The command result callback.
1591
+ * @return {Promise} returns Promise if no callback passed.
1592
+ */
1593
+ Collection.prototype.estimatedDocumentCount = function(options, callback) {
1594
+ if (typeof options === 'function') (callback = options), (options = {});
1595
+ options = options || {};
1596
+
1597
+ const estimatedDocumentCountOperation = new estimated_document_count(this, options);
1598
+
1599
+ return execute_operation(this.s.topology, estimatedDocumentCountOperation, callback);
1600
+ };
1601
+
1602
+ /**
1603
+ * Gets the number of documents matching the filter.
1604
+ * For a fast count of the total documents in a collection see {@link Collection#estimatedDocumentCount estimatedDocumentCount}.
1605
+ * **Note**: When migrating from {@link Collection#count count} to {@link Collection#countDocuments countDocuments}
1606
+ * the following query operators must be replaced:
1607
+ *
1608
+ * | Operator | Replacement |
1609
+ * | -------- | ----------- |
1610
+ * | `$where` | [`$expr`][1] |
1611
+ * | `$near` | [`$geoWithin`][2] with [`$center`][3] |
1612
+ * | `$nearSphere` | [`$geoWithin`][2] with [`$centerSphere`][4] |
1613
+ *
1614
+ * [1]: https://docs.mongodb.com/manual/reference/operator/query/expr/
1615
+ * [2]: https://docs.mongodb.com/manual/reference/operator/query/geoWithin/
1616
+ * [3]: https://docs.mongodb.com/manual/reference/operator/query/center/#op._S_center
1617
+ * [4]: https://docs.mongodb.com/manual/reference/operator/query/centerSphere/#op._S_centerSphere
1618
+ *
1619
+ * @param {object} [query] the query for the count
1620
+ * @param {object} [options] Optional settings.
1621
+ * @param {object} [options.collation] Specifies a collation.
1622
+ * @param {string|object} [options.hint] The index to use.
1623
+ * @param {number} [options.limit] The maximum number of document to count.
1624
+ * @param {number} [options.maxTimeMS] The maximum amount of time to allow the operation to run.
1625
+ * @param {number} [options.skip] The number of documents to skip before counting.
1626
+ * @param {Collection~countCallback} [callback] The command result callback.
1627
+ * @return {Promise} returns Promise if no callback passed.
1628
+ * @see https://docs.mongodb.com/manual/reference/operator/query/expr/
1629
+ * @see https://docs.mongodb.com/manual/reference/operator/query/geoWithin/
1630
+ * @see https://docs.mongodb.com/manual/reference/operator/query/center/#op._S_center
1631
+ * @see https://docs.mongodb.com/manual/reference/operator/query/centerSphere/#op._S_centerSphere
1632
+ */
1633
+
1634
+ Collection.prototype.countDocuments = function(query, options, callback) {
1635
+ const args = Array.prototype.slice.call(arguments, 0);
1636
+ callback = typeof args[args.length - 1] === 'function' ? args.pop() : undefined;
1637
+ query = args.length ? args.shift() || {} : {};
1638
+ options = args.length ? args.shift() || {} : {};
1639
+
1640
+ const countDocumentsOperation = new count_documents(this, query, options);
1641
+
1642
+ return execute_operation(this.s.topology, countDocumentsOperation, callback);
1643
+ };
1644
+
1645
+ /**
1646
+ * The distinct command returns a list of distinct values for the given key across a collection.
1647
+ * @method
1648
+ * @param {string} key Field of the document to find distinct values for.
1649
+ * @param {object} [query] The query for filtering the set of documents to which we apply the distinct filter.
1650
+ * @param {object} [options] Optional settings.
1651
+ * @param {(ReadPreference|string)} [options.readPreference] The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
1652
+ * @param {number} [options.maxTimeMS] Number of milliseconds to wait before aborting the query.
1653
+ * @param {object} [options.collation] Specify collation settings for operation. See {@link https://docs.mongodb.com/manual/reference/command/aggregate|aggregation documentation}.
1654
+ * @param {'queryPlanner'|'queryPlannerExtended'|'executionStats'|'allPlansExecution'|boolean} [options.explain] The verbosity mode for the explain output.
1655
+ * @param {ClientSession} [options.session] optional session to use for this operation
1656
+ * @param {Collection~resultCallback} [callback] The command result callback
1657
+ * @return {Promise} returns Promise if no callback passed
1658
+ */
1659
+ Collection.prototype.distinct = function(key, query, options, callback) {
1660
+ const args = Array.prototype.slice.call(arguments, 1);
1661
+ callback = typeof args[args.length - 1] === 'function' ? args.pop() : undefined;
1662
+ const queryOption = args.length ? args.shift() || {} : {};
1663
+ const optionsOption = args.length ? args.shift() || {} : {};
1664
+
1665
+ const distinctOperation = new distinct(this, key, queryOption, optionsOption);
1666
+
1667
+ return execute_operation(this.s.topology, distinctOperation, callback);
1668
+ };
1669
+
1670
+ /**
1671
+ * Retrieve all the indexes on the collection.
1672
+ * @method
1673
+ * @param {Object} [options] Optional settings
1674
+ * @param {ClientSession} [options.session] optional session to use for this operation
1675
+ * @param {Collection~resultCallback} [callback] The command result callback
1676
+ * @return {Promise} returns Promise if no callback passed
1677
+ */
1678
+ Collection.prototype.indexes = function(options, callback) {
1679
+ if (typeof options === 'function') (callback = options), (options = {});
1680
+ options = options || {};
1681
+
1682
+ const indexesOperation = new indexes(this, options);
1683
+
1684
+ return execute_operation(this.s.topology, indexesOperation, callback);
1685
+ };
1686
+
1687
+ /**
1688
+ * Get all the collection statistics.
1689
+ *
1690
+ * @method
1691
+ * @param {object} [options] Optional settings.
1692
+ * @param {number} [options.scale] Divide the returned sizes by scale value.
1693
+ * @param {ClientSession} [options.session] optional session to use for this operation
1694
+ * @param {Collection~resultCallback} [callback] The collection result callback
1695
+ * @return {Promise} returns Promise if no callback passed
1696
+ */
1697
+ Collection.prototype.stats = function(options, callback) {
1698
+ const args = Array.prototype.slice.call(arguments, 0);
1699
+ callback = typeof args[args.length - 1] === 'function' ? args.pop() : undefined;
1700
+ options = args.length ? args.shift() || {} : {};
1701
+
1702
+ const statsOperation = new stats(this, options);
1703
+
1704
+ return execute_operation(this.s.topology, statsOperation, callback);
1705
+ };
1706
+
1707
+ /**
1708
+ * @typedef {Object} Collection~findAndModifyWriteOpResult
1709
+ * @property {object} value Document returned from the `findAndModify` command. If no documents were found, `value` will be `null` by default even if a document was upserted unless `returnDocument` is specified as `'after'`, in which case the upserted document will be returned.
1710
+ * @property {object} lastErrorObject The raw lastErrorObject returned from the command. See {@link https://docs.mongodb.com/manual/reference/command/findAndModify/index.html#lasterrorobject|findAndModify command documentation}.
1711
+ * @property {Number} ok Is 1 if the command executed correctly.
1712
+ */
1713
+
1714
+ /**
1715
+ * The callback format for inserts
1716
+ * @callback Collection~findAndModifyCallback
1717
+ * @param {MongoError} error An error instance representing the error during the execution.
1718
+ * @param {Collection~findAndModifyWriteOpResult} result The result object if the command was executed successfully.
1719
+ */
1720
+
1721
+ /**
1722
+ * Find a document and delete it in one atomic operation. Requires a write lock for the duration of the operation.
1723
+ *
1724
+ * @method
1725
+ * @param {object} filter The Filter used to select the document to remove
1726
+ * @param {object} [options] Optional settings.
1727
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
1728
+ * @param {object} [options.projection] Limits the fields to return for all matching documents.
1729
+ * @param {object} [options.sort] Determines which document the operation modifies if the query selects multiple documents.
1730
+ * @param {number} [options.maxTimeMS] The maximum amount of time to allow the query to run.
1731
+ * @param {boolean} [options.checkKeys=false] If true, will throw if bson documents start with `$` or include a `.` in any key value
1732
+ * @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
1733
+ * @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
1734
+ * @param {'queryPlanner'|'queryPlannerExtended'|'executionStats'|'allPlansExecution'|boolean} [options.explain] The verbosity mode for the explain output.
1735
+ * @param {ClientSession} [options.session] optional session to use for this operation
1736
+ * @param {Collection~findAndModifyCallback} [callback] The collection result callback
1737
+ * @return {Promise<Collection~findAndModifyWriteOpResultObject>} returns Promise if no callback passed
1738
+ */
1739
+ Collection.prototype.findOneAndDelete = function(filter, options, callback) {
1740
+ if (typeof options === 'function') (callback = options), (options = {});
1741
+ options = options || {};
1742
+
1743
+ // Add ignoreUndefined
1744
+ if (this.s.options.ignoreUndefined) {
1745
+ options = Object.assign({}, options);
1746
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
1747
+ }
1748
+
1749
+ return execute_operation(
1750
+ this.s.topology,
1751
+ new find_one_and_delete(this, filter, options),
1752
+ callback
1753
+ );
1754
+ };
1755
+
1756
+ /**
1757
+ * Find a document and replace it in one atomic operation. Requires a write lock for the duration of the operation.
1758
+ *
1759
+ * @method
1760
+ * @param {object} filter The Filter used to select the document to replace
1761
+ * @param {object} replacement The Document that replaces the matching document
1762
+ * @param {object} [options] Optional settings.
1763
+ * @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
1764
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
1765
+ * @param {string|object} [options.hint] An optional index to use for this operation
1766
+ * @param {number} [options.maxTimeMS] The maximum amount of time to allow the query to run.
1767
+ * @param {object} [options.projection] Limits the fields to return for all matching documents.
1768
+ * @param {object} [options.sort] Determines which document the operation modifies if the query selects multiple documents.
1769
+ * @param {boolean} [options.upsert=false] Upsert the document if it does not exist.
1770
+ * @param {'before'|'after'} [options.returnDocument='before'] When set to `'after'`, returns the updated document rather than the original. The default is `'before'`.
1771
+ * @param {boolean} [options.returnOriginal=true] **Deprecated** Use `options.returnDocument` instead.
1772
+ * @param {boolean} [options.checkKeys=false] If true, will throw if bson documents start with `$` or include a `.` in any key value
1773
+ * @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
1774
+ * @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
1775
+ * @param {'queryPlanner'|'queryPlannerExtended'|'executionStats'|'allPlansExecution'|boolean} [options.explain] The verbosity mode for the explain output.
1776
+ * @param {ClientSession} [options.session] optional session to use for this operation
1777
+ * @param {Collection~findAndModifyCallback} [callback] The collection result callback
1778
+ * @return {Promise<Collection~findAndModifyWriteOpResultObject>} returns Promise if no callback passed
1779
+ */
1780
+ Collection.prototype.findOneAndReplace = deprecateOptions(
1781
+ {
1782
+ name: 'collection.findOneAndReplace',
1783
+ deprecatedOptions: ['returnOriginal'],
1784
+ optionsIndex: 2
1785
+ },
1786
+ function(filter, replacement, options, callback) {
1787
+ if (typeof options === 'function') (callback = options), (options = {});
1788
+ options = options || {};
1789
+
1790
+ // Add ignoreUndefined
1791
+ if (this.s.options.ignoreUndefined) {
1792
+ options = Object.assign({}, options);
1793
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
1794
+ }
1795
+
1796
+ return execute_operation(
1797
+ this.s.topology,
1798
+ new find_one_and_replace(this, filter, replacement, options),
1799
+ callback
1800
+ );
1801
+ }
1802
+ );
1803
+
1804
+ /**
1805
+ * Find a document and update it in one atomic operation. Requires a write lock for the duration of the operation.
1806
+ *
1807
+ * @method
1808
+ * @param {object} filter The Filter used to select the document to update
1809
+ * @param {object} update Update operations to be performed on the document
1810
+ * @param {object} [options] Optional settings.
1811
+ * @param {Array} [options.arrayFilters] optional list of array filters referenced in filtered positional operators
1812
+ * @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
1813
+ * @param {object} [options.collation] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
1814
+ * @param {string|object} [options.hint] An optional index to use for this operation
1815
+ * @param {number} [options.maxTimeMS] The maximum amount of time to allow the query to run.
1816
+ * @param {object} [options.projection] Limits the fields to return for all matching documents.
1817
+ * @param {object} [options.sort] Determines which document the operation modifies if the query selects multiple documents.
1818
+ * @param {boolean} [options.upsert=false] Upsert the document if it does not exist.
1819
+ * @param {'before'|'after'} [options.returnDocument='before'] When set to `'after'`, returns the updated document rather than the original. The default is `'before'`.
1820
+ * @param {boolean} [options.returnOriginal=true] **Deprecated** Use `options.returnDocument` instead.
1821
+ * @param {boolean} [options.checkKeys=false] If true, will throw if bson documents start with `$` or include a `.` in any key value
1822
+ * @param {boolean} [options.serializeFunctions=false] Serialize functions on any object.
1823
+ * @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
1824
+ * @param {'queryPlanner'|'queryPlannerExtended'|'executionStats'|'allPlansExecution'|boolean} [options.explain] The verbosity mode for the explain output.
1825
+ * @param {ClientSession} [options.session] An ptional session to use for this operation
1826
+ * @param {Collection~findAndModifyCallback} [callback] The collection result callback
1827
+ * @return {Promise<Collection~findAndModifyWriteOpResultObject>} returns Promise if no callback passed
1828
+ */
1829
+ Collection.prototype.findOneAndUpdate = deprecateOptions(
1830
+ {
1831
+ name: 'collection.findOneAndUpdate',
1832
+ deprecatedOptions: ['returnOriginal'],
1833
+ optionsIndex: 2
1834
+ },
1835
+ function(filter, update, options, callback) {
1836
+ if (typeof options === 'function') (callback = options), (options = {});
1837
+ options = options || {};
1838
+
1839
+ // Add ignoreUndefined
1840
+ if (this.s.options.ignoreUndefined) {
1841
+ options = Object.assign({}, options);
1842
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
1843
+ }
1844
+
1845
+ return execute_operation(
1846
+ this.s.topology,
1847
+ new find_one_and_update(this, filter, update, options),
1848
+ callback
1849
+ );
1850
+ }
1851
+ );
1852
+
1853
+ /**
1854
+ * Find and update a document.
1855
+ * @method
1856
+ * @param {object} query Query object to locate the object to modify.
1857
+ * @param {array} sort If multiple docs match, choose the first one in the specified sort order as the object to manipulate.
1858
+ * @param {object} doc The fields/vals to be updated.
1859
+ * @param {object} [options] Optional settings.
1860
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
1861
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
1862
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
1863
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
1864
+ * @param {boolean} [options.remove=false] Set to true to remove the object before returning.
1865
+ * @param {boolean} [options.upsert=false] Perform an upsert operation.
1866
+ * @param {boolean} [options.new=false] Set to true if you want to return the modified object rather than the original. Ignored for remove.
1867
+ * @param {object} [options.projection] Object containing the field projection for the result returned from the operation.
1868
+ * @param {object} [options.fields] **Deprecated** Use `options.projection` instead
1869
+ * @param {ClientSession} [options.session] optional session to use for this operation
1870
+ * @param {Array} [options.arrayFilters] optional list of array filters referenced in filtered positional operators
1871
+ * @param {Collection~findAndModifyCallback} [callback] The command result callback
1872
+ * @return {Promise} returns Promise if no callback passed
1873
+ * @deprecated use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead
1874
+ */
1875
+ Collection.prototype.findAndModify = deprecate(
1876
+ _findAndModify,
1877
+ 'collection.findAndModify is deprecated. Use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead.'
1878
+ );
1879
+
1880
+ /**
1881
+ * @ignore
1882
+ */
1883
+
1884
+ Collection.prototype._findAndModify = _findAndModify;
1885
+
1886
+ function _findAndModify(query, sort, doc, options, callback) {
1887
+ const args = Array.prototype.slice.call(arguments, 1);
1888
+ callback = typeof args[args.length - 1] === 'function' ? args.pop() : undefined;
1889
+ sort = args.length ? args.shift() || [] : [];
1890
+ doc = args.length ? args.shift() : null;
1891
+ options = args.length ? args.shift() || {} : {};
1892
+
1893
+ // Clone options
1894
+ options = Object.assign({}, options);
1895
+ // Force read preference primary
1896
+ options.readPreference = ReadPreference.PRIMARY;
1897
+
1898
+ return execute_operation(
1899
+ this.s.topology,
1900
+ new find_and_modify(this, query, sort, doc, options),
1901
+ callback
1902
+ );
1903
+ }
1904
+
1905
+ /**
1906
+ * Find and remove a document.
1907
+ * @method
1908
+ * @param {object} query Query object to locate the object to modify.
1909
+ * @param {array} sort If multiple docs match, choose the first one in the specified sort order as the object to manipulate.
1910
+ * @param {object} [options] Optional settings.
1911
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
1912
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
1913
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
1914
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
1915
+ * @param {ClientSession} [options.session] optional session to use for this operation
1916
+ * @param {Collection~resultCallback} [callback] The command result callback
1917
+ * @return {Promise} returns Promise if no callback passed
1918
+ * @deprecated use findOneAndDelete instead
1919
+ */
1920
+ Collection.prototype.findAndRemove = deprecate(function(query, sort, options, callback) {
1921
+ const args = Array.prototype.slice.call(arguments, 1);
1922
+ callback = typeof args[args.length - 1] === 'function' ? args.pop() : undefined;
1923
+ sort = args.length ? args.shift() || [] : [];
1924
+ options = args.length ? args.shift() || {} : {};
1925
+
1926
+ // Add the remove option
1927
+ options.remove = true;
1928
+
1929
+ return execute_operation(
1930
+ this.s.topology,
1931
+ new find_and_modify(this, query, sort, null, options),
1932
+ callback
1933
+ );
1934
+ }, 'collection.findAndRemove is deprecated. Use findOneAndDelete instead.');
1935
+
1936
+ /**
1937
+ * Execute an aggregation framework pipeline against the collection, needs MongoDB >= 2.2
1938
+ * @method
1939
+ * @param {object} [pipeline=[]] Array containing all the aggregation framework commands for the execution.
1940
+ * @param {object} [options] Optional settings.
1941
+ * @param {(ReadPreference|string)} [options.readPreference] The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
1942
+ * @param {number} [options.batchSize=1000] The number of documents to return per batch. See {@link https://docs.mongodb.com/manual/reference/command/aggregate|aggregation documentation}.
1943
+ * @param {object} [options.cursor] Return the query as cursor, on 2.6 > it returns as a real cursor on pre 2.6 it returns as an emulated cursor.
1944
+ * @param {number} [options.cursor.batchSize=1000] Deprecated. Use `options.batchSize`
1945
+ * @param {boolean} [options.allowDiskUse=false] allowDiskUse lets the server know if it can use disk to store temporary results for the aggregation (requires mongodb 2.6 >).
1946
+ * @param {number} [options.maxTimeMS] maxTimeMS specifies a cumulative time limit in milliseconds for processing operations on the cursor. MongoDB interrupts the operation at the earliest following interrupt point.
1947
+ * @param {number} [options.maxAwaitTimeMS] The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query.
1948
+ * @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
1949
+ * @param {boolean} [options.raw=false] Return document results as raw BSON buffers.
1950
+ * @param {boolean} [options.promoteLongs=true] Promotes Long values to number if they fit inside the 53 bits resolution.
1951
+ * @param {boolean} [options.promoteValues=true] Promotes BSON values to native types where possible, set to false to only receive wrapper types.
1952
+ * @param {boolean} [options.promoteBuffers=false] Promotes Binary BSON values to native Node Buffers.
1953
+ * @param {object} [options.collation] Specify collation settings for operation. See {@link https://docs.mongodb.com/manual/reference/command/aggregate|aggregation documentation}.
1954
+ * @param {string} [options.comment] Add a comment to an aggregation command
1955
+ * @param {string|object} [options.hint] Add an index selection hint to an aggregation command
1956
+ * @param {'queryPlanner'|'queryPlannerExtended'|'executionStats'|'allPlansExecution'|boolean} [options.explain] The verbosity mode for the explain output.
1957
+ * @param {ClientSession} [options.session] optional session to use for this operation
1958
+ * @param {Collection~aggregationCallback} callback The command result callback
1959
+ * @return {(null|AggregationCursor)}
1960
+ */
1961
+ Collection.prototype.aggregate = function(pipeline, options, callback) {
1962
+ if (Array.isArray(pipeline)) {
1963
+ // Set up callback if one is provided
1964
+ if (typeof options === 'function') {
1965
+ callback = options;
1966
+ options = {};
1967
+ }
1968
+
1969
+ // If we have no options or callback we are doing
1970
+ // a cursor based aggregation
1971
+ if (options == null && callback == null) {
1972
+ options = {};
1973
+ }
1974
+ } else {
1975
+ // Aggregation pipeline passed as arguments on the method
1976
+ const args = Array.prototype.slice.call(arguments, 0);
1977
+ // Get the callback
1978
+ callback = args.pop();
1979
+ // Get the possible options object
1980
+ const opts = args[args.length - 1];
1981
+ // If it contains any of the admissible options pop it of the args
1982
+ options =
1983
+ opts &&
1984
+ (opts.readPreference ||
1985
+ opts.explain ||
1986
+ opts.cursor ||
1987
+ opts.out ||
1988
+ opts.maxTimeMS ||
1989
+ opts.hint ||
1990
+ opts.allowDiskUse)
1991
+ ? args.pop()
1992
+ : {};
1993
+ // Left over arguments is the pipeline
1994
+ pipeline = args;
1995
+ }
1996
+
1997
+ const cursor = new aggregation_cursor(
1998
+ this.s.topology,
1999
+ new aggregate(this, pipeline, options),
2000
+ options
2001
+ );
2002
+
2003
+ // TODO: remove this when NODE-2074 is resolved
2004
+ if (typeof callback === 'function') {
2005
+ callback(null, cursor);
2006
+ return;
2007
+ }
2008
+
2009
+ return cursor;
2010
+ };
2011
+
2012
+ /**
2013
+ * Create a new Change Stream, watching for new changes (insertions, updates, replacements, deletions, and invalidations) in this collection.
2014
+ * @method
2015
+ * @since 3.0.0
2016
+ * @param {Array} [pipeline] An array of {@link https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline/|aggregation pipeline stages} through which to pass change stream documents. This allows for filtering (using $match) and manipulating the change stream documents.
2017
+ * @param {object} [options] Optional settings
2018
+ * @param {string} [options.fullDocument='default'] Allowed values: ‘default’, ‘updateLookup’. When set to ‘updateLookup’, the change stream will include both a delta describing the changes to the document, as well as a copy of the entire document that was changed from some time after the change occurred.
2019
+ * @param {object} [options.resumeAfter] Specifies the logical starting point for the new change stream. This should be the _id field from a previously returned change stream document.
2020
+ * @param {number} [options.maxAwaitTimeMS] The maximum amount of time for the server to wait on new documents to satisfy a change stream query
2021
+ * @param {number} [options.batchSize=1000] The number of documents to return per batch. See {@link https://docs.mongodb.com/manual/reference/command/aggregate|aggregation documentation}.
2022
+ * @param {object} [options.collation] Specify collation settings for operation. See {@link https://docs.mongodb.com/manual/reference/command/aggregate|aggregation documentation}.
2023
+ * @param {ReadPreference} [options.readPreference] The read preference. Defaults to the read preference of the database or collection. See {@link https://docs.mongodb.com/manual/reference/read-preference|read preference documentation}.
2024
+ * @param {Timestamp} [options.startAtOperationTime] receive change events that occur after the specified timestamp
2025
+ * @param {ClientSession} [options.session] optional session to use for this operation
2026
+ * @return {ChangeStream} a ChangeStream instance.
2027
+ */
2028
+ Collection.prototype.watch = function(pipeline, options) {
2029
+ pipeline = pipeline || [];
2030
+ options = options || {};
2031
+
2032
+ // Allow optionally not specifying a pipeline
2033
+ if (!Array.isArray(pipeline)) {
2034
+ options = pipeline;
2035
+ pipeline = [];
2036
+ }
2037
+
2038
+ return new change_stream(this, pipeline, options);
2039
+ };
2040
+
2041
+ /**
2042
+ * The callback format for results
2043
+ * @callback Collection~parallelCollectionScanCallback
2044
+ * @param {MongoError} error An error instance representing the error during the execution.
2045
+ * @param {Cursor[]} cursors A list of cursors returned allowing for parallel reading of collection.
2046
+ */
2047
+
2048
+ /**
2049
+ * Return N number of parallel cursors for a collection allowing parallel reading of entire collection. There are
2050
+ * no ordering guarantees for returned results.
2051
+ * @method
2052
+ * @param {object} [options] Optional settings.
2053
+ * @param {(ReadPreference|string)} [options.readPreference] The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
2054
+ * @param {number} [options.batchSize=1000] Set the batchSize for the getMoreCommand when iterating over the query results.
2055
+ * @param {number} [options.numCursors=1] The maximum number of parallel command cursors to return (the number of returned cursors will be in the range 1:numCursors)
2056
+ * @param {boolean} [options.raw=false] Return all BSON documents as Raw Buffer documents.
2057
+ * @param {Collection~parallelCollectionScanCallback} [callback] The command result callback
2058
+ * @return {Promise} returns Promise if no callback passed
2059
+ */
2060
+ Collection.prototype.parallelCollectionScan = deprecate(function(options, callback) {
2061
+ if (typeof options === 'function') (callback = options), (options = { numCursors: 1 });
2062
+ // Set number of cursors to 1
2063
+ options.numCursors = options.numCursors || 1;
2064
+ options.batchSize = options.batchSize || 1000;
2065
+
2066
+ options = Object.assign({}, options);
2067
+ // Ensure we have the right read preference inheritance
2068
+ options.readPreference = ReadPreference.resolve(this, options);
2069
+
2070
+ // Add a promiseLibrary
2071
+ options.promiseLibrary = this.s.promiseLibrary;
2072
+
2073
+ if (options.session) {
2074
+ options.session = undefined;
2075
+ }
2076
+
2077
+ return executeLegacyOperation(
2078
+ this.s.topology,
2079
+ parallelCollectionScan,
2080
+ [this, options, callback],
2081
+ { skipSessions: true }
2082
+ );
2083
+ }, 'parallelCollectionScan is deprecated in MongoDB v4.1');
2084
+
2085
+ /**
2086
+ * Execute a geo search using a geo haystack index on a collection.
2087
+ *
2088
+ * @method
2089
+ * @param {number} x Point to search on the x axis, ensure the indexes are ordered in the same order.
2090
+ * @param {number} y Point to search on the y axis, ensure the indexes are ordered in the same order.
2091
+ * @param {object} [options] Optional settings.
2092
+ * @param {(ReadPreference|string)} [options.readPreference] The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
2093
+ * @param {number} [options.maxDistance] Include results up to maxDistance from the point.
2094
+ * @param {object} [options.search] Filter the results by a query.
2095
+ * @param {number} [options.limit=false] Max number of results to return.
2096
+ * @param {ClientSession} [options.session] optional session to use for this operation
2097
+ * @param {Collection~resultCallback} [callback] The command result callback
2098
+ * @return {Promise} returns Promise if no callback passed
2099
+ * @deprecated See {@link https://docs.mongodb.com/manual/geospatial-queries/|geospatial queries docs} for current geospatial support
2100
+ */
2101
+ Collection.prototype.geoHaystackSearch = deprecate(function(x, y, options, callback) {
2102
+ const args = Array.prototype.slice.call(arguments, 2);
2103
+ callback = typeof args[args.length - 1] === 'function' ? args.pop() : undefined;
2104
+ options = args.length ? args.shift() || {} : {};
2105
+
2106
+ const geoHaystackSearchOperation = new geo_haystack_search(this, x, y, options);
2107
+
2108
+ return execute_operation(this.s.topology, geoHaystackSearchOperation, callback);
2109
+ }, 'geoHaystackSearch is deprecated, and will be removed in a future version.');
2110
+
2111
+ /**
2112
+ * Run a group command across a collection
2113
+ *
2114
+ * @method
2115
+ * @param {(object|array|function|code)} keys An object, array or function expressing the keys to group by.
2116
+ * @param {object} condition An optional condition that must be true for a row to be considered.
2117
+ * @param {object} initial Initial value of the aggregation counter object.
2118
+ * @param {(function|Code)} reduce The reduce function aggregates (reduces) the objects iterated
2119
+ * @param {(function|Code)} finalize An optional function to be run on each item in the result set just before the item is returned.
2120
+ * @param {boolean} command Specify if you wish to run using the internal group command or using eval, default is true.
2121
+ * @param {object} [options] Optional settings.
2122
+ * @param {(ReadPreference|string)} [options.readPreference] The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
2123
+ * @param {ClientSession} [options.session] optional session to use for this operation
2124
+ * @param {Collection~resultCallback} [callback] The command result callback
2125
+ * @return {Promise} returns Promise if no callback passed
2126
+ * @deprecated MongoDB 3.6 or higher no longer supports the group command. We recommend rewriting using the aggregation framework.
2127
+ */
2128
+ Collection.prototype.group = deprecate(function(
2129
+ keys,
2130
+ condition,
2131
+ initial,
2132
+ reduce,
2133
+ finalize,
2134
+ command,
2135
+ options,
2136
+ callback
2137
+ ) {
2138
+ const args = Array.prototype.slice.call(arguments, 3);
2139
+ callback = typeof args[args.length - 1] === 'function' ? args.pop() : undefined;
2140
+ reduce = args.length ? args.shift() : null;
2141
+ finalize = args.length ? args.shift() : null;
2142
+ command = args.length ? args.shift() : null;
2143
+ options = args.length ? args.shift() || {} : {};
2144
+
2145
+ // Make sure we are backward compatible
2146
+ if (!(typeof finalize === 'function')) {
2147
+ command = finalize;
2148
+ finalize = null;
2149
+ }
2150
+
2151
+ if (
2152
+ !Array.isArray(keys) &&
2153
+ keys instanceof Object &&
2154
+ typeof keys !== 'function' &&
2155
+ !(keys._bsontype === 'Code')
2156
+ ) {
2157
+ keys = Object.keys(keys);
2158
+ }
2159
+
2160
+ if (typeof reduce === 'function') {
2161
+ reduce = reduce.toString();
2162
+ }
2163
+
2164
+ if (typeof finalize === 'function') {
2165
+ finalize = finalize.toString();
2166
+ }
2167
+
2168
+ // Set up the command as default
2169
+ command = command == null ? true : command;
2170
+
2171
+ return executeLegacyOperation(this.s.topology, group, [
2172
+ this,
2173
+ keys,
2174
+ condition,
2175
+ initial,
2176
+ reduce,
2177
+ finalize,
2178
+ command,
2179
+ options,
2180
+ callback
2181
+ ]);
2182
+ },
2183
+ 'MongoDB 3.6 or higher no longer supports the group command. We recommend rewriting using the aggregation framework.');
2184
+
2185
+ /**
2186
+ * Run Map Reduce across a collection. Be aware that the inline option for out will return an array of results not a collection.
2187
+ *
2188
+ * @method
2189
+ * @param {(function|string)} map The mapping function.
2190
+ * @param {(function|string)} reduce The reduce function.
2191
+ * @param {object} [options] Optional settings.
2192
+ * @param {(ReadPreference|string)} [options.readPreference] The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
2193
+ * @param {object} [options.out] Sets the output target for the map reduce job. *{inline:1} | {replace:'collectionName'} | {merge:'collectionName'} | {reduce:'collectionName'}*
2194
+ * @param {object} [options.query] Query filter object.
2195
+ * @param {object} [options.sort] Sorts the input objects using this key. Useful for optimization, like sorting by the emit key for fewer reduces.
2196
+ * @param {number} [options.limit] Number of objects to return from collection.
2197
+ * @param {boolean} [options.keeptemp=false] Keep temporary data.
2198
+ * @param {(function|string)} [options.finalize] Finalize function.
2199
+ * @param {object} [options.scope] Can pass in variables that can be access from map/reduce/finalize.
2200
+ * @param {boolean} [options.jsMode=false] It is possible to make the execution stay in JS. Provided in MongoDB > 2.0.X.
2201
+ * @param {boolean} [options.verbose=false] Provide statistics on job execution time.
2202
+ * @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
2203
+ * @param {'queryPlanner'|'queryPlannerExtended'|'executionStats'|'allPlansExecution'|boolean} [options.explain] The verbosity mode for the explain output.
2204
+ * @param {ClientSession} [options.session] optional session to use for this operation
2205
+ * @param {Collection~resultCallback} [callback] The command result callback
2206
+ * @throws {MongoError}
2207
+ * @return {Promise} returns Promise if no callback passed
2208
+ */
2209
+ Collection.prototype.mapReduce = function(map, reduce, options, callback) {
2210
+ if ('function' === typeof options) (callback = options), (options = {});
2211
+ // Out must allways be defined (make sure we don't break weirdly on pre 1.8+ servers)
2212
+ if (null == options.out) {
2213
+ throw new Error(
2214
+ 'the out option parameter must be defined, see mongodb docs for possible values'
2215
+ );
2216
+ }
2217
+
2218
+ if ('function' === typeof map) {
2219
+ map = map.toString();
2220
+ }
2221
+
2222
+ if ('function' === typeof reduce) {
2223
+ reduce = reduce.toString();
2224
+ }
2225
+
2226
+ if ('function' === typeof options.finalize) {
2227
+ options.finalize = options.finalize.toString();
2228
+ }
2229
+ const mapReduceOperation = new map_reduce(this, map, reduce, options);
2230
+
2231
+ return execute_operation(this.s.topology, mapReduceOperation, callback);
2232
+ };
2233
+
2234
+ /**
2235
+ * Initiate an Out of order batch write operation. All operations will be buffered into insert/update/remove commands executed out of order.
2236
+ *
2237
+ * @method
2238
+ * @param {object} [options] Optional settings.
2239
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
2240
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
2241
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
2242
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
2243
+ * @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
2244
+ * @param {ClientSession} [options.session] optional session to use for this operation
2245
+ * @return {UnorderedBulkOperation}
2246
+ */
2247
+ Collection.prototype.initializeUnorderedBulkOp = function(options) {
2248
+ options = options || {};
2249
+ // Give function's options precedence over session options.
2250
+ if (options.ignoreUndefined == null) {
2251
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
2252
+ }
2253
+
2254
+ options.promiseLibrary = this.s.promiseLibrary;
2255
+ return unordered['default'](this.s.topology, this, options);
2256
+ };
2257
+
2258
+ /**
2259
+ * Initiate an In order bulk write operation. Operations will be serially executed in the order they are added, creating a new operation for each switch in types.
2260
+ *
2261
+ * @method
2262
+ * @param {object} [options] Optional settings.
2263
+ * @param {(number|string)} [options.w] **Deprecated** The write concern. Use writeConcern instead.
2264
+ * @param {number} [options.wtimeout] **Deprecated** The write concern timeout. Use writeConcern instead.
2265
+ * @param {boolean} [options.j=false] **Deprecated** Specify a journal write concern. Use writeConcern instead.
2266
+ * @param {object|WriteConcern} [options.writeConcern] Specify write concern settings.
2267
+ * @param {ClientSession} [options.session] optional session to use for this operation
2268
+ * @param {boolean} [options.ignoreUndefined=false] Specify if the BSON serializer should ignore undefined fields.
2269
+ * @return {null}
2270
+ */
2271
+ Collection.prototype.initializeOrderedBulkOp = function(options) {
2272
+ options = options || {};
2273
+ // Give function's options precedence over session's options.
2274
+ if (options.ignoreUndefined == null) {
2275
+ options.ignoreUndefined = this.s.options.ignoreUndefined;
2276
+ }
2277
+ options.promiseLibrary = this.s.promiseLibrary;
2278
+ return ordered['default'](this.s.topology, this, options);
2279
+ };
2280
+
2281
+ /**
2282
+ * Return the db logger
2283
+ * @method
2284
+ * @return {Logger} return the db logger
2285
+ * @ignore
2286
+ */
2287
+ Collection.prototype.getLogger = function() {
2288
+ return this.s.db.s.logger;
2289
+ };
2290
+
2291
+ var collection = Collection;
2292
+
2293
+ module.exports = collection;
2294
+ //# sourceMappingURL=collection.js.map