@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.
- package/build/Logger.d.ts +9 -0
- package/build/Logger.js +12 -0
- package/build/Logger.js.map +1 -0
- package/build/Logger.mjs +8 -0
- package/build/Logger.mjs.map +1 -0
- package/build/Room.js +2 -0
- package/build/Room.js.map +1 -1
- package/build/Room.mjs +2 -0
- package/build/Room.mjs.map +1 -1
- package/build/Server.js +1 -1
- package/build/Server.js.map +1 -1
- package/build/Server.mjs +1 -1
- package/build/Server.mjs.map +1 -1
- package/build/_virtual/AggregationCursor.js_commonjs-proxy +3 -0
- package/build/_virtual/AggregationCursor.js_commonjs-proxy.map +1 -0
- package/build/_virtual/BufferList.js_commonjs-proxy +3 -0
- package/build/_virtual/BufferList.js_commonjs-proxy.map +1 -0
- package/build/_virtual/ChangeStream.js_commonjs-proxy +3 -0
- package/build/_virtual/ChangeStream.js_commonjs-proxy.map +1 -0
- package/build/_virtual/PopulateOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/PopulateOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/QueryCursor.js_commonjs-proxy +3 -0
- package/build/_virtual/QueryCursor.js_commonjs-proxy.map +1 -0
- package/build/_virtual/ReadPreference.js_commonjs-proxy +3 -0
- package/build/_virtual/ReadPreference.js_commonjs-proxy.map +1 -0
- package/build/_virtual/SchemaArrayOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/SchemaArrayOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/SchemaBufferOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/SchemaBufferOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/SchemaDateOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/SchemaDateOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/SchemaDocumentArrayOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/SchemaDocumentArrayOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/SchemaMapOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/SchemaMapOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/SchemaNumberOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/SchemaNumberOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/SchemaObjectIdOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/SchemaObjectIdOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/SchemaSingleNestedOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/SchemaSingleNestedOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/SchemaStringOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/SchemaStringOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/SchemaTypeOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/SchemaTypeOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/SingleNestedPath.js_commonjs-proxy +3 -0
- package/build/_virtual/SingleNestedPath.js_commonjs-proxy.map +1 -0
- package/build/_virtual/SkipPopulateValue.js_commonjs-proxy +3 -0
- package/build/_virtual/SkipPopulateValue.js_commonjs-proxy.map +1 -0
- package/build/_virtual/VirtualOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/VirtualOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/_commonjsHelpers.js +28 -0
- package/build/_virtual/_commonjsHelpers.js.map +1 -0
- package/build/_virtual/_stream_duplex.js_commonjs-proxy +3 -0
- package/build/_virtual/_stream_duplex.js_commonjs-proxy.map +1 -0
- package/build/_virtual/_stream_passthrough.js_commonjs-proxy +3 -0
- package/build/_virtual/_stream_passthrough.js_commonjs-proxy.map +1 -0
- package/build/_virtual/_stream_readable.js_commonjs-proxy +3 -0
- package/build/_virtual/_stream_readable.js_commonjs-proxy.map +1 -0
- package/build/_virtual/_stream_transform.js_commonjs-proxy +3 -0
- package/build/_virtual/_stream_transform.js_commonjs-proxy.map +1 -0
- package/build/_virtual/_stream_writable.js_commonjs-proxy +3 -0
- package/build/_virtual/_stream_writable.js_commonjs-proxy.map +1 -0
- package/build/_virtual/addAutoId.js_commonjs-proxy +3 -0
- package/build/_virtual/addAutoId.js_commonjs-proxy.map +1 -0
- package/build/_virtual/add_user.js_commonjs-proxy +3 -0
- package/build/_virtual/add_user.js_commonjs-proxy.map +1 -0
- package/build/_virtual/admin.js_commonjs-proxy +3 -0
- package/build/_virtual/admin.js_commonjs-proxy.map +1 -0
- package/build/_virtual/aggregate.js_commonjs-proxy +3 -0
- package/build/_virtual/aggregate.js_commonjs-proxy.map +1 -0
- package/build/_virtual/aggregate2.js_commonjs-proxy +3 -0
- package/build/_virtual/aggregate2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/aggregation_cursor.js_commonjs-proxy +3 -0
- package/build/_virtual/aggregation_cursor.js_commonjs-proxy.map +1 -0
- package/build/_virtual/allServersUnknown.js_commonjs-proxy +3 -0
- package/build/_virtual/allServersUnknown.js_commonjs-proxy.map +1 -0
- package/build/_virtual/any.js_commonjs-proxy +3 -0
- package/build/_virtual/any.js_commonjs-proxy.map +1 -0
- package/build/_virtual/apm.js_commonjs-proxy +3 -0
- package/build/_virtual/apm.js_commonjs-proxy.map +1 -0
- package/build/_virtual/apm2.js_commonjs-proxy +3 -0
- package/build/_virtual/apm2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/applyGlobalMaxTimeMS.js_commonjs-proxy +3 -0
- package/build/_virtual/applyGlobalMaxTimeMS.js_commonjs-proxy.map +1 -0
- package/build/_virtual/applyHooks.js_commonjs-proxy +3 -0
- package/build/_virtual/applyHooks.js_commonjs-proxy.map +1 -0
- package/build/_virtual/applyMethods.js_commonjs-proxy +3 -0
- package/build/_virtual/applyMethods.js_commonjs-proxy.map +1 -0
- package/build/_virtual/applyPlugins.js_commonjs-proxy +3 -0
- package/build/_virtual/applyPlugins.js_commonjs-proxy.map +1 -0
- package/build/_virtual/applyQueryMiddleware.js_commonjs-proxy +3 -0
- package/build/_virtual/applyQueryMiddleware.js_commonjs-proxy.map +1 -0
- package/build/_virtual/applyStaticHooks.js_commonjs-proxy +3 -0
- package/build/_virtual/applyStaticHooks.js_commonjs-proxy.map +1 -0
- package/build/_virtual/applyStatics.js_commonjs-proxy +3 -0
- package/build/_virtual/applyStatics.js_commonjs-proxy.map +1 -0
- package/build/_virtual/applyTimestampsToChildren.js_commonjs-proxy +3 -0
- package/build/_virtual/applyTimestampsToChildren.js_commonjs-proxy.map +1 -0
- package/build/_virtual/applyTimestampsToUpdate.js_commonjs-proxy +3 -0
- package/build/_virtual/applyTimestampsToUpdate.js_commonjs-proxy.map +1 -0
- package/build/_virtual/applyWriteConcern.js_commonjs-proxy +3 -0
- package/build/_virtual/applyWriteConcern.js_commonjs-proxy.map +1 -0
- package/build/_virtual/areDiscriminatorValuesEqual.js_commonjs-proxy +3 -0
- package/build/_virtual/areDiscriminatorValuesEqual.js_commonjs-proxy.map +1 -0
- package/build/_virtual/array.js_commonjs-proxy +3 -0
- package/build/_virtual/array.js_commonjs-proxy.map +1 -0
- package/build/_virtual/array2.js_commonjs-proxy +3 -0
- package/build/_virtual/array2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/arrayDepth.js_commonjs-proxy +3 -0
- package/build/_virtual/arrayDepth.js_commonjs-proxy.map +1 -0
- package/build/_virtual/assignRawDocsToIdStructure.js_commonjs-proxy +3 -0
- package/build/_virtual/assignRawDocsToIdStructure.js_commonjs-proxy.map +1 -0
- package/build/_virtual/assignVals.js_commonjs-proxy +3 -0
- package/build/_virtual/assignVals.js_commonjs-proxy.map +1 -0
- package/build/_virtual/async.js_commonjs-proxy +3 -0
- package/build/_virtual/async.js_commonjs-proxy.map +1 -0
- package/build/_virtual/async_iterator.js_commonjs-proxy +3 -0
- package/build/_virtual/async_iterator.js_commonjs-proxy.map +1 -0
- package/build/_virtual/auth_provider.js_commonjs-proxy +3 -0
- package/build/_virtual/auth_provider.js_commonjs-proxy.map +1 -0
- package/build/_virtual/aws4.js_commonjs-proxy +3 -0
- package/build/_virtual/aws4.js_commonjs-proxy.map +1 -0
- package/build/_virtual/binary.js_commonjs-proxy +3 -0
- package/build/_virtual/binary.js_commonjs-proxy.map +1 -0
- package/build/_virtual/binary2.js_commonjs-proxy +3 -0
- package/build/_virtual/binary2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/bind.js_commonjs-proxy +3 -0
- package/build/_virtual/bind.js_commonjs-proxy.map +1 -0
- package/build/_virtual/bitwise.js_commonjs-proxy +3 -0
- package/build/_virtual/bitwise.js_commonjs-proxy.map +1 -0
- package/build/_virtual/bl.js_commonjs-proxy +3 -0
- package/build/_virtual/bl.js_commonjs-proxy.map +1 -0
- package/build/_virtual/bluebird.js_commonjs-proxy +3 -0
- package/build/_virtual/bluebird.js_commonjs-proxy.map +1 -0
- package/build/_virtual/boolean.js_commonjs-proxy +3 -0
- package/build/_virtual/boolean.js_commonjs-proxy.map +1 -0
- package/build/_virtual/boolean2.js_commonjs-proxy +3 -0
- package/build/_virtual/boolean2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/browserDocument.js_commonjs-proxy +3 -0
- package/build/_virtual/browserDocument.js_commonjs-proxy.map +1 -0
- package/build/_virtual/bson.js_commonjs-proxy +3 -0
- package/build/_virtual/bson.js_commonjs-proxy.map +1 -0
- package/build/_virtual/buffer-util.js_commonjs-proxy +3 -0
- package/build/_virtual/buffer-util.js_commonjs-proxy.map +1 -0
- package/build/_virtual/buffer.js_commonjs-proxy +3 -0
- package/build/_virtual/buffer.js_commonjs-proxy.map +1 -0
- package/build/_virtual/buffer2.js_commonjs-proxy +3 -0
- package/build/_virtual/buffer2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/bulk_write.js_commonjs-proxy +3 -0
- package/build/_virtual/bulk_write.js_commonjs-proxy.map +1 -0
- package/build/_virtual/calculate_size.js_commonjs-proxy +3 -0
- package/build/_virtual/calculate_size.js_commonjs-proxy.map +1 -0
- package/build/_virtual/call_get.js_commonjs-proxy +3 -0
- package/build/_virtual/call_get.js_commonjs-proxy.map +1 -0
- package/build/_virtual/cancel.js_commonjs-proxy +3 -0
- package/build/_virtual/cancel.js_commonjs-proxy.map +1 -0
- package/build/_virtual/cast.js_commonjs-proxy +3 -0
- package/build/_virtual/cast.js_commonjs-proxy.map +1 -0
- package/build/_virtual/cast2.js_commonjs-proxy +3 -0
- package/build/_virtual/cast2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/castArrayFilters.js_commonjs-proxy +3 -0
- package/build/_virtual/castArrayFilters.js_commonjs-proxy.map +1 -0
- package/build/_virtual/castBulkWrite.js_commonjs-proxy +3 -0
- package/build/_virtual/castBulkWrite.js_commonjs-proxy.map +1 -0
- package/build/_virtual/castFilterPath.js_commonjs-proxy +3 -0
- package/build/_virtual/castFilterPath.js_commonjs-proxy.map +1 -0
- package/build/_virtual/castUpdate.js_commonjs-proxy +3 -0
- package/build/_virtual/castUpdate.js_commonjs-proxy.map +1 -0
- package/build/_virtual/catch_filter.js_commonjs-proxy +3 -0
- package/build/_virtual/catch_filter.js_commonjs-proxy.map +1 -0
- package/build/_virtual/change_stream.js_commonjs-proxy +3 -0
- package/build/_virtual/change_stream.js_commonjs-proxy.map +1 -0
- package/build/_virtual/checkEmbeddedDiscriminatorKeyProjection.js_commonjs-proxy +3 -0
- package/build/_virtual/checkEmbeddedDiscriminatorKeyProjection.js_commonjs-proxy.map +1 -0
- package/build/_virtual/chunk.js_commonjs-proxy +3 -0
- package/build/_virtual/chunk.js_commonjs-proxy.map +1 -0
- package/build/_virtual/cleanModifiedSubpaths.js_commonjs-proxy +3 -0
- package/build/_virtual/cleanModifiedSubpaths.js_commonjs-proxy.map +1 -0
- package/build/_virtual/cleanPositionalOperators.js_commonjs-proxy +3 -0
- package/build/_virtual/cleanPositionalOperators.js_commonjs-proxy.map +1 -0
- package/build/_virtual/clone.js_commonjs-proxy +3 -0
- package/build/_virtual/clone.js_commonjs-proxy.map +1 -0
- package/build/_virtual/code.js_commonjs-proxy +3 -0
- package/build/_virtual/code.js_commonjs-proxy.map +1 -0
- package/build/_virtual/collection.js_commonjs-proxy +3 -0
- package/build/_virtual/collection.js_commonjs-proxy.map +1 -0
- package/build/_virtual/collection2.js_commonjs-proxy +3 -0
- package/build/_virtual/collection2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/collection3.js_commonjs-proxy +3 -0
- package/build/_virtual/collection3.js_commonjs-proxy.map +1 -0
- package/build/_virtual/collection4.js_commonjs-proxy +3 -0
- package/build/_virtual/collection4.js_commonjs-proxy.map +1 -0
- package/build/_virtual/collection_ops.js_commonjs-proxy +3 -0
- package/build/_virtual/collection_ops.js_commonjs-proxy.map +1 -0
- package/build/_virtual/collections.js_commonjs-proxy +3 -0
- package/build/_virtual/collections.js_commonjs-proxy.map +1 -0
- package/build/_virtual/command.js_commonjs-proxy +3 -0
- package/build/_virtual/command.js_commonjs-proxy.map +1 -0
- package/build/_virtual/command2.js_commonjs-proxy +3 -0
- package/build/_virtual/command2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/command3.js_commonjs-proxy +3 -0
- package/build/_virtual/command3.js_commonjs-proxy.map +1 -0
- package/build/_virtual/command_cursor.js_commonjs-proxy +3 -0
- package/build/_virtual/command_cursor.js_commonjs-proxy.map +1 -0
- package/build/_virtual/command_result.js_commonjs-proxy +3 -0
- package/build/_virtual/command_result.js_commonjs-proxy.map +1 -0
- package/build/_virtual/command_v2.js_commonjs-proxy +3 -0
- package/build/_virtual/command_v2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/commands.js_commonjs-proxy +3 -0
- package/build/_virtual/commands.js_commonjs-proxy.map +1 -0
- package/build/_virtual/commands2.js_commonjs-proxy +3 -0
- package/build/_virtual/commands2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/common.js_commonjs-proxy +3 -0
- package/build/_virtual/common.js_commonjs-proxy.map +1 -0
- package/build/_virtual/common2.js_commonjs-proxy +3 -0
- package/build/_virtual/common2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/common3.js_commonjs-proxy +3 -0
- package/build/_virtual/common3.js_commonjs-proxy.map +1 -0
- package/build/_virtual/common_functions.js_commonjs-proxy +3 -0
- package/build/_virtual/common_functions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/compile.js_commonjs-proxy +3 -0
- package/build/_virtual/compile.js_commonjs-proxy.map +1 -0
- package/build/_virtual/completeMany.js_commonjs-proxy +3 -0
- package/build/_virtual/completeMany.js_commonjs-proxy.map +1 -0
- package/build/_virtual/compression.js_commonjs-proxy +3 -0
- package/build/_virtual/compression.js_commonjs-proxy.map +1 -0
- package/build/_virtual/connect.js_commonjs-proxy +3 -0
- package/build/_virtual/connect.js_commonjs-proxy.map +1 -0
- package/build/_virtual/connect2.js_commonjs-proxy +3 -0
- package/build/_virtual/connect2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/connection.js_commonjs-proxy +3 -0
- package/build/_virtual/connection.js_commonjs-proxy.map +1 -0
- package/build/_virtual/connection2.js_commonjs-proxy +3 -0
- package/build/_virtual/connection2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/connection3.js_commonjs-proxy +3 -0
- package/build/_virtual/connection3.js_commonjs-proxy.map +1 -0
- package/build/_virtual/connection4.js_commonjs-proxy +3 -0
- package/build/_virtual/connection4.js_commonjs-proxy.map +1 -0
- package/build/_virtual/connection_pool.js_commonjs-proxy +3 -0
- package/build/_virtual/connection_pool.js_commonjs-proxy.map +1 -0
- package/build/_virtual/connectionstate.js_commonjs-proxy +3 -0
- package/build/_virtual/connectionstate.js_commonjs-proxy.map +1 -0
- package/build/_virtual/constants.js_commonjs-proxy +3 -0
- package/build/_virtual/constants.js_commonjs-proxy.map +1 -0
- package/build/_virtual/constants2.js_commonjs-proxy +3 -0
- package/build/_virtual/constants2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/constants3.js_commonjs-proxy +3 -0
- package/build/_virtual/constants3.js_commonjs-proxy.map +1 -0
- package/build/_virtual/context.js_commonjs-proxy +3 -0
- package/build/_virtual/context.js_commonjs-proxy.map +1 -0
- package/build/_virtual/core_array.js_commonjs-proxy +3 -0
- package/build/_virtual/core_array.js_commonjs-proxy.map +1 -0
- package/build/_virtual/count.js_commonjs-proxy +3 -0
- package/build/_virtual/count.js_commonjs-proxy.map +1 -0
- package/build/_virtual/count_documents.js_commonjs-proxy +3 -0
- package/build/_virtual/count_documents.js_commonjs-proxy.map +1 -0
- package/build/_virtual/createClient.js_commonjs-proxy +3 -0
- package/build/_virtual/createClient.js_commonjs-proxy.map +1 -0
- package/build/_virtual/createPopulateQueryFilter.js_commonjs-proxy +3 -0
- package/build/_virtual/createPopulateQueryFilter.js_commonjs-proxy.map +1 -0
- package/build/_virtual/create_collection.js_commonjs-proxy +3 -0
- package/build/_virtual/create_collection.js_commonjs-proxy.map +1 -0
- package/build/_virtual/create_indexes.js_commonjs-proxy +3 -0
- package/build/_virtual/create_indexes.js_commonjs-proxy.map +1 -0
- package/build/_virtual/cursor.js_commonjs-proxy +3 -0
- package/build/_virtual/cursor.js_commonjs-proxy.map +1 -0
- package/build/_virtual/cursor2.js_commonjs-proxy +3 -0
- package/build/_virtual/cursor2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/cursor_ops.js_commonjs-proxy +3 -0
- package/build/_virtual/cursor_ops.js_commonjs-proxy.map +1 -0
- package/build/_virtual/customErrors.js_commonjs-proxy +3 -0
- package/build/_virtual/customErrors.js_commonjs-proxy.map +1 -0
- package/build/_virtual/date.js_commonjs-proxy +3 -0
- package/build/_virtual/date.js_commonjs-proxy.map +1 -0
- package/build/_virtual/date2.js_commonjs-proxy +3 -0
- package/build/_virtual/date2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/db.js_commonjs-proxy +3 -0
- package/build/_virtual/db.js_commonjs-proxy.map +1 -0
- package/build/_virtual/db_ops.js_commonjs-proxy +3 -0
- package/build/_virtual/db_ops.js_commonjs-proxy.map +1 -0
- package/build/_virtual/db_ref.js_commonjs-proxy +3 -0
- package/build/_virtual/db_ref.js_commonjs-proxy.map +1 -0
- package/build/_virtual/debug.js_commonjs-proxy +3 -0
- package/build/_virtual/debug.js_commonjs-proxy.map +1 -0
- package/build/_virtual/debuggability.js_commonjs-proxy +3 -0
- package/build/_virtual/debuggability.js_commonjs-proxy.map +1 -0
- package/build/_virtual/decimal128.js_commonjs-proxy +3 -0
- package/build/_virtual/decimal128.js_commonjs-proxy.map +1 -0
- package/build/_virtual/decimal1282.js_commonjs-proxy +3 -0
- package/build/_virtual/decimal1282.js_commonjs-proxy.map +1 -0
- package/build/_virtual/decimal1283.js_commonjs-proxy +3 -0
- package/build/_virtual/decimal1283.js_commonjs-proxy.map +1 -0
- package/build/_virtual/decimal1284.js_commonjs-proxy +3 -0
- package/build/_virtual/decimal1284.js_commonjs-proxy.map +1 -0
- package/build/_virtual/decimal1285.js_commonjs-proxy +3 -0
- package/build/_virtual/decimal1285.js_commonjs-proxy.map +1 -0
- package/build/_virtual/defaultAuthProviders.js_commonjs-proxy +3 -0
- package/build/_virtual/defaultAuthProviders.js_commonjs-proxy.map +1 -0
- package/build/_virtual/delete_many.js_commonjs-proxy +3 -0
- package/build/_virtual/delete_many.js_commonjs-proxy.map +1 -0
- package/build/_virtual/delete_one.js_commonjs-proxy +3 -0
- package/build/_virtual/delete_one.js_commonjs-proxy.map +1 -0
- package/build/_virtual/deque.js_commonjs-proxy +3 -0
- package/build/_virtual/deque.js_commonjs-proxy.map +1 -0
- package/build/_virtual/deserializer.js_commonjs-proxy +3 -0
- package/build/_virtual/deserializer.js_commonjs-proxy.map +1 -0
- package/build/_virtual/destroy.js_commonjs-proxy +3 -0
- package/build/_virtual/destroy.js_commonjs-proxy.map +1 -0
- package/build/_virtual/direct_resolve.js_commonjs-proxy +3 -0
- package/build/_virtual/direct_resolve.js_commonjs-proxy.map +1 -0
- package/build/_virtual/discriminator.js_commonjs-proxy +3 -0
- package/build/_virtual/discriminator.js_commonjs-proxy.map +1 -0
- package/build/_virtual/distinct.js_commonjs-proxy +3 -0
- package/build/_virtual/distinct.js_commonjs-proxy.map +1 -0
- package/build/_virtual/divergentArray.js_commonjs-proxy +3 -0
- package/build/_virtual/divergentArray.js_commonjs-proxy.map +1 -0
- package/build/_virtual/document.js_commonjs-proxy +3 -0
- package/build/_virtual/document.js_commonjs-proxy.map +1 -0
- package/build/_virtual/document_provider.js_commonjs-proxy +3 -0
- package/build/_virtual/document_provider.js_commonjs-proxy.map +1 -0
- package/build/_virtual/documentarray.js_commonjs-proxy +3 -0
- package/build/_virtual/documentarray.js_commonjs-proxy.map +1 -0
- package/build/_virtual/documentarray2.js_commonjs-proxy +3 -0
- package/build/_virtual/documentarray2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/double.js_commonjs-proxy +3 -0
- package/build/_virtual/double.js_commonjs-proxy.map +1 -0
- package/build/_virtual/download.js_commonjs-proxy +3 -0
- package/build/_virtual/download.js_commonjs-proxy.map +1 -0
- package/build/_virtual/driver.js_commonjs-proxy +3 -0
- package/build/_virtual/driver.js_commonjs-proxy.map +1 -0
- package/build/_virtual/drop.js_commonjs-proxy +3 -0
- package/build/_virtual/drop.js_commonjs-proxy.map +1 -0
- package/build/_virtual/drop_index.js_commonjs-proxy +3 -0
- package/build/_virtual/drop_index.js_commonjs-proxy.map +1 -0
- package/build/_virtual/drop_indexes.js_commonjs-proxy +3 -0
- package/build/_virtual/drop_indexes.js_commonjs-proxy.map +1 -0
- package/build/_virtual/dynamic_loaders.js_commonjs-proxy +3 -0
- package/build/_virtual/dynamic_loaders.js_commonjs-proxy.map +1 -0
- package/build/_virtual/each.js_commonjs-proxy +3 -0
- package/build/_virtual/each.js_commonjs-proxy.map +1 -0
- package/build/_virtual/each2.js_commonjs-proxy +3 -0
- package/build/_virtual/each2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/eachAsync.js_commonjs-proxy +3 -0
- package/build/_virtual/eachAsync.js_commonjs-proxy.map +1 -0
- package/build/_virtual/embedded.js_commonjs-proxy +3 -0
- package/build/_virtual/embedded.js_commonjs-proxy.map +1 -0
- package/build/_virtual/encrypter.js_commonjs-proxy +3 -0
- package/build/_virtual/encrypter.js_commonjs-proxy.map +1 -0
- package/build/_virtual/env.js_commonjs-proxy +3 -0
- package/build/_virtual/env.js_commonjs-proxy.map +1 -0
- package/build/_virtual/error.js_commonjs-proxy +3 -0
- package/build/_virtual/error.js_commonjs-proxy.map +1 -0
- package/build/_virtual/error2.js_commonjs-proxy +3 -0
- package/build/_virtual/error2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/errors.js_commonjs-proxy +3 -0
- package/build/_virtual/errors.js_commonjs-proxy.map +1 -0
- package/build/_virtual/errors2.js_commonjs-proxy +3 -0
- package/build/_virtual/errors2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/es5.js_commonjs-proxy +3 -0
- package/build/_virtual/es5.js_commonjs-proxy.map +1 -0
- package/build/_virtual/estimated_document_count.js_commonjs-proxy +3 -0
- package/build/_virtual/estimated_document_count.js_commonjs-proxy.map +1 -0
- package/build/_virtual/event-target.js_commonjs-proxy +3 -0
- package/build/_virtual/event-target.js_commonjs-proxy.map +1 -0
- package/build/_virtual/events.js_commonjs-proxy +3 -0
- package/build/_virtual/events.js_commonjs-proxy.map +1 -0
- package/build/_virtual/events2.js_commonjs-proxy +3 -0
- package/build/_virtual/events2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/execute_db_admin_command.js_commonjs-proxy +3 -0
- package/build/_virtual/execute_db_admin_command.js_commonjs-proxy.map +1 -0
- package/build/_virtual/execute_operation.js_commonjs-proxy +3 -0
- package/build/_virtual/execute_operation.js_commonjs-proxy.map +1 -0
- package/build/_virtual/exists.js_commonjs-proxy +3 -0
- package/build/_virtual/exists.js_commonjs-proxy.map +1 -0
- package/build/_virtual/explain.js_commonjs-proxy +3 -0
- package/build/_virtual/explain.js_commonjs-proxy.map +1 -0
- package/build/_virtual/extension.js_commonjs-proxy +3 -0
- package/build/_virtual/extension.js_commonjs-proxy.map +1 -0
- package/build/_virtual/filter.js_commonjs-proxy +3 -0
- package/build/_virtual/filter.js_commonjs-proxy.map +1 -0
- package/build/_virtual/finally.js_commonjs-proxy +3 -0
- package/build/_virtual/finally.js_commonjs-proxy.map +1 -0
- package/build/_virtual/find.js_commonjs-proxy +3 -0
- package/build/_virtual/find.js_commonjs-proxy.map +1 -0
- package/build/_virtual/find_and_modify.js_commonjs-proxy +3 -0
- package/build/_virtual/find_and_modify.js_commonjs-proxy.map +1 -0
- package/build/_virtual/find_one.js_commonjs-proxy +3 -0
- package/build/_virtual/find_one.js_commonjs-proxy.map +1 -0
- package/build/_virtual/find_one_and_delete.js_commonjs-proxy +3 -0
- package/build/_virtual/find_one_and_delete.js_commonjs-proxy.map +1 -0
- package/build/_virtual/find_one_and_replace.js_commonjs-proxy +3 -0
- package/build/_virtual/find_one_and_replace.js_commonjs-proxy.map +1 -0
- package/build/_virtual/find_one_and_update.js_commonjs-proxy +3 -0
- package/build/_virtual/find_one_and_update.js_commonjs-proxy.map +1 -0
- package/build/_virtual/float_parser.js_commonjs-proxy +3 -0
- package/build/_virtual/float_parser.js_commonjs-proxy.map +1 -0
- package/build/_virtual/generators.js_commonjs-proxy +3 -0
- package/build/_virtual/generators.js_commonjs-proxy.map +1 -0
- package/build/_virtual/geo_haystack_search.js_commonjs-proxy +3 -0
- package/build/_virtual/geo_haystack_search.js_commonjs-proxy.map +1 -0
- package/build/_virtual/geospatial.js_commonjs-proxy +3 -0
- package/build/_virtual/geospatial.js_commonjs-proxy.map +1 -0
- package/build/_virtual/get.js_commonjs-proxy +3 -0
- package/build/_virtual/get.js_commonjs-proxy.map +1 -0
- package/build/_virtual/getConstructor.js_commonjs-proxy +3 -0
- package/build/_virtual/getConstructor.js_commonjs-proxy.map +1 -0
- package/build/_virtual/getDefaultBulkwriteResult.js_commonjs-proxy +3 -0
- package/build/_virtual/getDefaultBulkwriteResult.js_commonjs-proxy.map +1 -0
- package/build/_virtual/getDiscriminatorByValue.js_commonjs-proxy +3 -0
- package/build/_virtual/getDiscriminatorByValue.js_commonjs-proxy.map +1 -0
- package/build/_virtual/getEmbeddedDiscriminatorPath.js_commonjs-proxy +3 -0
- package/build/_virtual/getEmbeddedDiscriminatorPath.js_commonjs-proxy.map +1 -0
- package/build/_virtual/getEmbeddedDiscriminatorPath2.js_commonjs-proxy +3 -0
- package/build/_virtual/getEmbeddedDiscriminatorPath2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/getFunctionName.js_commonjs-proxy +3 -0
- package/build/_virtual/getFunctionName.js_commonjs-proxy.map +1 -0
- package/build/_virtual/getIndexes.js_commonjs-proxy +3 -0
- package/build/_virtual/getIndexes.js_commonjs-proxy.map +1 -0
- package/build/_virtual/getModelsMapForPopulate.js_commonjs-proxy +3 -0
- package/build/_virtual/getModelsMapForPopulate.js_commonjs-proxy.map +1 -0
- package/build/_virtual/getPath.js_commonjs-proxy +3 -0
- package/build/_virtual/getPath.js_commonjs-proxy.map +1 -0
- package/build/_virtual/getSchemaDiscriminatorByValue.js_commonjs-proxy +3 -0
- package/build/_virtual/getSchemaDiscriminatorByValue.js_commonjs-proxy.map +1 -0
- package/build/_virtual/getSchemaTypes.js_commonjs-proxy +3 -0
- package/build/_virtual/getSchemaTypes.js_commonjs-proxy.map +1 -0
- package/build/_virtual/getVirtual.js_commonjs-proxy +3 -0
- package/build/_virtual/getVirtual.js_commonjs-proxy.map +1 -0
- package/build/_virtual/get_more.js_commonjs-proxy +3 -0
- package/build/_virtual/get_more.js_commonjs-proxy.map +1 -0
- package/build/_virtual/grid_store.js_commonjs-proxy +3 -0
- package/build/_virtual/grid_store.js_commonjs-proxy.map +1 -0
- package/build/_virtual/gssapi.js_commonjs-proxy +3 -0
- package/build/_virtual/gssapi.js_commonjs-proxy.map +1 -0
- package/build/_virtual/handleIdOption.js_commonjs-proxy +3 -0
- package/build/_virtual/handleIdOption.js_commonjs-proxy.map +1 -0
- package/build/_virtual/handleImmutable.js_commonjs-proxy +3 -0
- package/build/_virtual/handleImmutable.js_commonjs-proxy.map +1 -0
- package/build/_virtual/handleImmutable2.js_commonjs-proxy +3 -0
- package/build/_virtual/handleImmutable2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/handleSpreadDoc.js_commonjs-proxy +3 -0
- package/build/_virtual/handleSpreadDoc.js_commonjs-proxy.map +1 -0
- package/build/_virtual/handleTimestampOption.js_commonjs-proxy +3 -0
- package/build/_virtual/handleTimestampOption.js_commonjs-proxy.map +1 -0
- package/build/_virtual/hasDollarKeys.js_commonjs-proxy +3 -0
- package/build/_virtual/hasDollarKeys.js_commonjs-proxy.map +1 -0
- package/build/_virtual/helpers.js_commonjs-proxy +3 -0
- package/build/_virtual/helpers.js_commonjs-proxy.map +1 -0
- package/build/_virtual/hiredis.js_commonjs-proxy +3 -0
- package/build/_virtual/hiredis.js_commonjs-proxy.map +1 -0
- package/build/_virtual/idGetter.js_commonjs-proxy +3 -0
- package/build/_virtual/idGetter.js_commonjs-proxy.map +1 -0
- package/build/_virtual/immediate.js_commonjs-proxy +3 -0
- package/build/_virtual/immediate.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index.js_commonjs-proxy +3 -0
- package/build/_virtual/index.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index10.js_commonjs-proxy +3 -0
- package/build/_virtual/index10.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index11.js_commonjs-proxy +3 -0
- package/build/_virtual/index11.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index12.js_commonjs-proxy +3 -0
- package/build/_virtual/index12.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index13.js_commonjs-proxy +3 -0
- package/build/_virtual/index13.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index14.js_commonjs-proxy +3 -0
- package/build/_virtual/index14.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index15.js_commonjs-proxy +3 -0
- package/build/_virtual/index15.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index16.js_commonjs-proxy +3 -0
- package/build/_virtual/index16.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index17.js_commonjs-proxy +3 -0
- package/build/_virtual/index17.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index18.js_commonjs-proxy +3 -0
- package/build/_virtual/index18.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index19.js_commonjs-proxy +3 -0
- package/build/_virtual/index19.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index2.js_commonjs-proxy +3 -0
- package/build/_virtual/index2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index20.js_commonjs-proxy +3 -0
- package/build/_virtual/index20.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index21.js_commonjs-proxy +7 -0
- package/build/_virtual/index21.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index22.js_commonjs-proxy +3 -0
- package/build/_virtual/index22.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index23.js_commonjs-proxy +3 -0
- package/build/_virtual/index23.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index24.js_commonjs-proxy +3 -0
- package/build/_virtual/index24.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index25.js_commonjs-proxy +3 -0
- package/build/_virtual/index25.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index26.js_commonjs-proxy +3 -0
- package/build/_virtual/index26.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index27.js_commonjs-proxy +3 -0
- package/build/_virtual/index27.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index28.js_commonjs-proxy +3 -0
- package/build/_virtual/index28.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index29.js_commonjs-proxy +3 -0
- package/build/_virtual/index29.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index3.js_commonjs-proxy +3 -0
- package/build/_virtual/index3.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index30.js_commonjs-proxy +3 -0
- package/build/_virtual/index30.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index31.js_commonjs-proxy +3 -0
- package/build/_virtual/index31.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index4.js_commonjs-proxy +3 -0
- package/build/_virtual/index4.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index5.js_commonjs-proxy +3 -0
- package/build/_virtual/index5.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index6.js_commonjs-proxy +3 -0
- package/build/_virtual/index6.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index7.js_commonjs-proxy +3 -0
- package/build/_virtual/index7.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index8.js_commonjs-proxy +3 -0
- package/build/_virtual/index8.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index9.js_commonjs-proxy +3 -0
- package/build/_virtual/index9.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index_exists.js_commonjs-proxy +3 -0
- package/build/_virtual/index_exists.js_commonjs-proxy.map +1 -0
- package/build/_virtual/index_information.js_commonjs-proxy +3 -0
- package/build/_virtual/index_information.js_commonjs-proxy.map +1 -0
- package/build/_virtual/indexes.js_commonjs-proxy +3 -0
- package/build/_virtual/indexes.js_commonjs-proxy.map +1 -0
- package/build/_virtual/inherits.js_commonjs-proxy +3 -0
- package/build/_virtual/inherits.js_commonjs-proxy.map +1 -0
- package/build/_virtual/inherits_browser.js_commonjs-proxy +3 -0
- package/build/_virtual/inherits_browser.js_commonjs-proxy.map +1 -0
- package/build/_virtual/insert_many.js_commonjs-proxy +3 -0
- package/build/_virtual/insert_many.js_commonjs-proxy.map +1 -0
- package/build/_virtual/insert_one.js_commonjs-proxy +3 -0
- package/build/_virtual/insert_one.js_commonjs-proxy.map +1 -0
- package/build/_virtual/int_32.js_commonjs-proxy +3 -0
- package/build/_virtual/int_32.js_commonjs-proxy.map +1 -0
- package/build/_virtual/internal.js_commonjs-proxy +3 -0
- package/build/_virtual/internal.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isAtlas.js_commonjs-proxy +3 -0
- package/build/_virtual/isAtlas.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isBsonType.js_commonjs-proxy +3 -0
- package/build/_virtual/isBsonType.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isDefaultIdIndex.js_commonjs-proxy +3 -0
- package/build/_virtual/isDefaultIdIndex.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isDefiningProjection.js_commonjs-proxy +3 -0
- package/build/_virtual/isDefiningProjection.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isExclusive.js_commonjs-proxy +3 -0
- package/build/_virtual/isExclusive.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isInclusive.js_commonjs-proxy +3 -0
- package/build/_virtual/isInclusive.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isIndexEqual.js_commonjs-proxy +3 -0
- package/build/_virtual/isIndexEqual.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isMongooseObject.js_commonjs-proxy +3 -0
- package/build/_virtual/isMongooseObject.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isObject.js_commonjs-proxy +3 -0
- package/build/_virtual/isObject.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isOperator.js_commonjs-proxy +3 -0
- package/build/_virtual/isOperator.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isPathExcluded.js_commonjs-proxy +3 -0
- package/build/_virtual/isPathExcluded.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isPathSelectedInclusive.js_commonjs-proxy +3 -0
- package/build/_virtual/isPathSelectedInclusive.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isPromise.js_commonjs-proxy +3 -0
- package/build/_virtual/isPromise.js_commonjs-proxy.map +1 -0
- package/build/_virtual/isSSLError.js_commonjs-proxy +3 -0
- package/build/_virtual/isSSLError.js_commonjs-proxy.map +1 -0
- package/build/_virtual/is_capped.js_commonjs-proxy +3 -0
- package/build/_virtual/is_capped.js_commonjs-proxy.map +1 -0
- package/build/_virtual/join.js_commonjs-proxy +3 -0
- package/build/_virtual/join.js_commonjs-proxy.map +1 -0
- package/build/_virtual/kill_cursors.js_commonjs-proxy +3 -0
- package/build/_virtual/kill_cursors.js_commonjs-proxy.map +1 -0
- package/build/_virtual/leanPopulateMap.js_commonjs-proxy +3 -0
- package/build/_virtual/leanPopulateMap.js_commonjs-proxy.map +1 -0
- package/build/_virtual/limiter.js_commonjs-proxy +3 -0
- package/build/_virtual/limiter.js_commonjs-proxy.map +1 -0
- package/build/_virtual/list_collections.js_commonjs-proxy +3 -0
- package/build/_virtual/list_collections.js_commonjs-proxy.map +1 -0
- package/build/_virtual/list_databases.js_commonjs-proxy +3 -0
- package/build/_virtual/list_databases.js_commonjs-proxy.map +1 -0
- package/build/_virtual/list_indexes.js_commonjs-proxy +3 -0
- package/build/_virtual/list_indexes.js_commonjs-proxy.map +1 -0
- package/build/_virtual/logger.js_commonjs-proxy +3 -0
- package/build/_virtual/logger.js_commonjs-proxy.map +1 -0
- package/build/_virtual/long.js_commonjs-proxy +3 -0
- package/build/_virtual/long.js_commonjs-proxy.map +1 -0
- package/build/_virtual/lookupLocalFields.js_commonjs-proxy +3 -0
- package/build/_virtual/lookupLocalFields.js_commonjs-proxy.map +1 -0
- package/build/_virtual/lru.js_commonjs-proxy +3 -0
- package/build/_virtual/lru.js_commonjs-proxy.map +1 -0
- package/build/_virtual/map.js_commonjs-proxy +3 -0
- package/build/_virtual/map.js_commonjs-proxy.map +1 -0
- package/build/_virtual/map2.js_commonjs-proxy +3 -0
- package/build/_virtual/map2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/map3.js_commonjs-proxy +3 -0
- package/build/_virtual/map3.js_commonjs-proxy.map +1 -0
- package/build/_virtual/map4.js_commonjs-proxy +3 -0
- package/build/_virtual/map4.js_commonjs-proxy.map +1 -0
- package/build/_virtual/map_reduce.js_commonjs-proxy +3 -0
- package/build/_virtual/map_reduce.js_commonjs-proxy.map +1 -0
- package/build/_virtual/max_key.js_commonjs-proxy +3 -0
- package/build/_virtual/max_key.js_commonjs-proxy.map +1 -0
- package/build/_virtual/memory-code-points.js_commonjs-proxy +3 -0
- package/build/_virtual/memory-code-points.js_commonjs-proxy.map +1 -0
- package/build/_virtual/merge.js_commonjs-proxy +3 -0
- package/build/_virtual/merge.js_commonjs-proxy.map +1 -0
- package/build/_virtual/message_stream.js_commonjs-proxy +3 -0
- package/build/_virtual/message_stream.js_commonjs-proxy.map +1 -0
- package/build/_virtual/messages.js_commonjs-proxy +3 -0
- package/build/_virtual/messages.js_commonjs-proxy.map +1 -0
- package/build/_virtual/method.js_commonjs-proxy +3 -0
- package/build/_virtual/method.js_commonjs-proxy.map +1 -0
- package/build/_virtual/min_key.js_commonjs-proxy +3 -0
- package/build/_virtual/min_key.js_commonjs-proxy.map +1 -0
- package/build/_virtual/missingSchema.js_commonjs-proxy +3 -0
- package/build/_virtual/missingSchema.js_commonjs-proxy.map +1 -0
- package/build/_virtual/mixed.js_commonjs-proxy +3 -0
- package/build/_virtual/mixed.js_commonjs-proxy.map +1 -0
- package/build/_virtual/model.js_commonjs-proxy +3 -0
- package/build/_virtual/model.js_commonjs-proxy.map +1 -0
- package/build/_virtual/modifiedPaths.js_commonjs-proxy +3 -0
- package/build/_virtual/modifiedPaths.js_commonjs-proxy.map +1 -0
- package/build/_virtual/mongo_client.js_commonjs-proxy +3 -0
- package/build/_virtual/mongo_client.js_commonjs-proxy.map +1 -0
- package/build/_virtual/mongo_credentials.js_commonjs-proxy +3 -0
- package/build/_virtual/mongo_credentials.js_commonjs-proxy.map +1 -0
- package/build/_virtual/mongocr.js_commonjs-proxy +3 -0
- package/build/_virtual/mongocr.js_commonjs-proxy.map +1 -0
- package/build/_virtual/mongodb_aws.js_commonjs-proxy +3 -0
- package/build/_virtual/mongodb_aws.js_commonjs-proxy.map +1 -0
- package/build/_virtual/mongooseError.js_commonjs-proxy +3 -0
- package/build/_virtual/mongooseError.js_commonjs-proxy.map +1 -0
- package/build/_virtual/mongos.js_commonjs-proxy +3 -0
- package/build/_virtual/mongos.js_commonjs-proxy.map +1 -0
- package/build/_virtual/mongos2.js_commonjs-proxy +3 -0
- package/build/_virtual/mongos2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/monitor.js_commonjs-proxy +3 -0
- package/build/_virtual/monitor.js_commonjs-proxy.map +1 -0
- package/build/_virtual/moveImmutableProperties.js_commonjs-proxy +3 -0
- package/build/_virtual/moveImmutableProperties.js_commonjs-proxy.map +1 -0
- package/build/_virtual/mquery.js_commonjs-proxy +3 -0
- package/build/_virtual/mquery.js_commonjs-proxy.map +1 -0
- package/build/_virtual/msg.js_commonjs-proxy +3 -0
- package/build/_virtual/msg.js_commonjs-proxy.map +1 -0
- package/build/_virtual/multi.js_commonjs-proxy +3 -0
- package/build/_virtual/multi.js_commonjs-proxy.map +1 -0
- package/build/_virtual/native_topology.js_commonjs-proxy +3 -0
- package/build/_virtual/native_topology.js_commonjs-proxy.map +1 -0
- package/build/_virtual/node.js_commonjs-proxy +3 -0
- package/build/_virtual/node.js_commonjs-proxy.map +1 -0
- package/build/_virtual/node2.js_commonjs-proxy +3 -0
- package/build/_virtual/node2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/nodeback.js_commonjs-proxy +3 -0
- package/build/_virtual/nodeback.js_commonjs-proxy.map +1 -0
- package/build/_virtual/nodeify.js_commonjs-proxy +3 -0
- package/build/_virtual/nodeify.js_commonjs-proxy.map +1 -0
- package/build/_virtual/normalizeRefPath.js_commonjs-proxy +3 -0
- package/build/_virtual/normalizeRefPath.js_commonjs-proxy.map +1 -0
- package/build/_virtual/notFound.js_commonjs-proxy +3 -0
- package/build/_virtual/notFound.js_commonjs-proxy.map +1 -0
- package/build/_virtual/number.js_commonjs-proxy +3 -0
- package/build/_virtual/number.js_commonjs-proxy.map +1 -0
- package/build/_virtual/number2.js_commonjs-proxy +3 -0
- package/build/_virtual/number2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/objectExpected.js_commonjs-proxy +3 -0
- package/build/_virtual/objectExpected.js_commonjs-proxy.map +1 -0
- package/build/_virtual/objectParameter.js_commonjs-proxy +3 -0
- package/build/_virtual/objectParameter.js_commonjs-proxy.map +1 -0
- package/build/_virtual/objectid.js_commonjs-proxy +3 -0
- package/build/_virtual/objectid.js_commonjs-proxy.map +1 -0
- package/build/_virtual/objectid2.js_commonjs-proxy +3 -0
- package/build/_virtual/objectid2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/objectid3.js_commonjs-proxy +3 -0
- package/build/_virtual/objectid3.js_commonjs-proxy.map +1 -0
- package/build/_virtual/objectid4.js_commonjs-proxy +3 -0
- package/build/_virtual/objectid4.js_commonjs-proxy.map +1 -0
- package/build/_virtual/objectid5.js_commonjs-proxy +3 -0
- package/build/_virtual/objectid5.js_commonjs-proxy.map +1 -0
- package/build/_virtual/operation.js_commonjs-proxy +3 -0
- package/build/_virtual/operation.js_commonjs-proxy.map +1 -0
- package/build/_virtual/options.js_commonjs-proxy +3 -0
- package/build/_virtual/options.js_commonjs-proxy.map +1 -0
- package/build/_virtual/options_operation.js_commonjs-proxy +3 -0
- package/build/_virtual/options_operation.js_commonjs-proxy.map +1 -0
- package/build/_virtual/ordered.js_commonjs-proxy +3 -0
- package/build/_virtual/ordered.js_commonjs-proxy.map +1 -0
- package/build/_virtual/overwriteModel.js_commonjs-proxy +3 -0
- package/build/_virtual/overwriteModel.js_commonjs-proxy.map +1 -0
- package/build/_virtual/parallelLimit.js_commonjs-proxy +3 -0
- package/build/_virtual/parallelLimit.js_commonjs-proxy.map +1 -0
- package/build/_virtual/parallelSave.js_commonjs-proxy +3 -0
- package/build/_virtual/parallelSave.js_commonjs-proxy.map +1 -0
- package/build/_virtual/parallelValidate.js_commonjs-proxy +3 -0
- package/build/_virtual/parallelValidate.js_commonjs-proxy.map +1 -0
- package/build/_virtual/parentPaths.js_commonjs-proxy +3 -0
- package/build/_virtual/parentPaths.js_commonjs-proxy.map +1 -0
- package/build/_virtual/parseProjection.js_commonjs-proxy +3 -0
- package/build/_virtual/parseProjection.js_commonjs-proxy.map +1 -0
- package/build/_virtual/parser.js_commonjs-proxy +3 -0
- package/build/_virtual/parser.js_commonjs-proxy.map +1 -0
- package/build/_virtual/parserError.js_commonjs-proxy +3 -0
- package/build/_virtual/parserError.js_commonjs-proxy.map +1 -0
- package/build/_virtual/permessage-deflate.js_commonjs-proxy +3 -0
- package/build/_virtual/permessage-deflate.js_commonjs-proxy.map +1 -0
- package/build/_virtual/permissions.js_commonjs-proxy +3 -0
- package/build/_virtual/permissions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/plain.js_commonjs-proxy +3 -0
- package/build/_virtual/plain.js_commonjs-proxy.map +1 -0
- package/build/_virtual/pool.js_commonjs-proxy +3 -0
- package/build/_virtual/pool.js_commonjs-proxy.map +1 -0
- package/build/_virtual/profiling_level.js_commonjs-proxy +3 -0
- package/build/_virtual/profiling_level.js_commonjs-proxy.map +1 -0
- package/build/_virtual/promise.js_commonjs-proxy +3 -0
- package/build/_virtual/promise.js_commonjs-proxy.map +1 -0
- package/build/_virtual/promiseOrCallback.js_commonjs-proxy +3 -0
- package/build/_virtual/promiseOrCallback.js_commonjs-proxy.map +1 -0
- package/build/_virtual/promise_array.js_commonjs-proxy +3 -0
- package/build/_virtual/promise_array.js_commonjs-proxy.map +1 -0
- package/build/_virtual/promise_provider.js_commonjs-proxy +3 -0
- package/build/_virtual/promise_provider.js_commonjs-proxy.map +1 -0
- package/build/_virtual/promisify.js_commonjs-proxy +3 -0
- package/build/_virtual/promisify.js_commonjs-proxy.map +1 -0
- package/build/_virtual/propertyOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/propertyOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/props.js_commonjs-proxy +3 -0
- package/build/_virtual/props.js_commonjs-proxy.map +1 -0
- package/build/_virtual/query.js_commonjs-proxy +3 -0
- package/build/_virtual/query.js_commonjs-proxy.map +1 -0
- package/build/_virtual/query2.js_commonjs-proxy +3 -0
- package/build/_virtual/query2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/queryhelpers.js_commonjs-proxy +3 -0
- package/build/_virtual/queryhelpers.js_commonjs-proxy.map +1 -0
- package/build/_virtual/queue.js_commonjs-proxy +3 -0
- package/build/_virtual/queue.js_commonjs-proxy.map +1 -0
- package/build/_virtual/race.js_commonjs-proxy +3 -0
- package/build/_virtual/race.js_commonjs-proxy.map +1 -0
- package/build/_virtual/re_index.js_commonjs-proxy +3 -0
- package/build/_virtual/re_index.js_commonjs-proxy.map +1 -0
- package/build/_virtual/read_concern.js_commonjs-proxy +3 -0
- package/build/_virtual/read_concern.js_commonjs-proxy.map +1 -0
- package/build/_virtual/read_preference.js_commonjs-proxy +3 -0
- package/build/_virtual/read_preference.js_commonjs-proxy.map +1 -0
- package/build/_virtual/readable.js_commonjs-proxy +3 -0
- package/build/_virtual/readable.js_commonjs-proxy.map +1 -0
- package/build/_virtual/receiver.js_commonjs-proxy +3 -0
- package/build/_virtual/receiver.js_commonjs-proxy.map +1 -0
- package/build/_virtual/redisError.js_commonjs-proxy +3 -0
- package/build/_virtual/redisError.js_commonjs-proxy.map +1 -0
- package/build/_virtual/reduce.js_commonjs-proxy +3 -0
- package/build/_virtual/reduce.js_commonjs-proxy.map +1 -0
- package/build/_virtual/regexp.js_commonjs-proxy +3 -0
- package/build/_virtual/regexp.js_commonjs-proxy.map +1 -0
- package/build/_virtual/removeDeselectedForeignField.js_commonjs-proxy +3 -0
- package/build/_virtual/removeDeselectedForeignField.js_commonjs-proxy.map +1 -0
- package/build/_virtual/removeOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/removeOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/removeSubdocs.js_commonjs-proxy +3 -0
- package/build/_virtual/removeSubdocs.js_commonjs-proxy.map +1 -0
- package/build/_virtual/removeUnusedArrayFilters.js_commonjs-proxy +3 -0
- package/build/_virtual/removeUnusedArrayFilters.js_commonjs-proxy.map +1 -0
- package/build/_virtual/remove_user.js_commonjs-proxy +3 -0
- package/build/_virtual/remove_user.js_commonjs-proxy.map +1 -0
- package/build/_virtual/rename.js_commonjs-proxy +3 -0
- package/build/_virtual/rename.js_commonjs-proxy.map +1 -0
- package/build/_virtual/replace_one.js_commonjs-proxy +3 -0
- package/build/_virtual/replace_one.js_commonjs-proxy.map +1 -0
- package/build/_virtual/replset.js_commonjs-proxy +3 -0
- package/build/_virtual/replset.js_commonjs-proxy.map +1 -0
- package/build/_virtual/replset2.js_commonjs-proxy +3 -0
- package/build/_virtual/replset2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/replset_state.js_commonjs-proxy +3 -0
- package/build/_virtual/replset_state.js_commonjs-proxy.map +1 -0
- package/build/_virtual/replyError.js_commonjs-proxy +3 -0
- package/build/_virtual/replyError.js_commonjs-proxy.map +1 -0
- package/build/_virtual/run_command.js_commonjs-proxy +3 -0
- package/build/_virtual/run_command.js_commonjs-proxy.map +1 -0
- package/build/_virtual/sanitizeProjection.js_commonjs-proxy +3 -0
- package/build/_virtual/sanitizeProjection.js_commonjs-proxy.map +1 -0
- package/build/_virtual/saveOptions.js_commonjs-proxy +3 -0
- package/build/_virtual/saveOptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/saveSubdocs.js_commonjs-proxy +3 -0
- package/build/_virtual/saveSubdocs.js_commonjs-proxy.map +1 -0
- package/build/_virtual/schedule.js_commonjs-proxy +3 -0
- package/build/_virtual/schedule.js_commonjs-proxy.map +1 -0
- package/build/_virtual/schema.js_commonjs-proxy +3 -0
- package/build/_virtual/schema.js_commonjs-proxy.map +1 -0
- package/build/_virtual/schematype.js_commonjs-proxy +3 -0
- package/build/_virtual/schematype.js_commonjs-proxy.map +1 -0
- package/build/_virtual/scram.js_commonjs-proxy +3 -0
- package/build/_virtual/scram.js_commonjs-proxy.map +1 -0
- package/build/_virtual/selectPopulatedFields.js_commonjs-proxy +3 -0
- package/build/_virtual/selectPopulatedFields.js_commonjs-proxy.map +1 -0
- package/build/_virtual/sender.js_commonjs-proxy +3 -0
- package/build/_virtual/sender.js_commonjs-proxy.map +1 -0
- package/build/_virtual/serializer.js_commonjs-proxy +3 -0
- package/build/_virtual/serializer.js_commonjs-proxy.map +1 -0
- package/build/_virtual/server.js_commonjs-proxy +3 -0
- package/build/_virtual/server.js_commonjs-proxy.map +1 -0
- package/build/_virtual/server2.js_commonjs-proxy +3 -0
- package/build/_virtual/server2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/server3.js_commonjs-proxy +3 -0
- package/build/_virtual/server3.js_commonjs-proxy.map +1 -0
- package/build/_virtual/serverSelection.js_commonjs-proxy +3 -0
- package/build/_virtual/serverSelection.js_commonjs-proxy.map +1 -0
- package/build/_virtual/server_description.js_commonjs-proxy +3 -0
- package/build/_virtual/server_description.js_commonjs-proxy.map +1 -0
- package/build/_virtual/server_selection.js_commonjs-proxy +3 -0
- package/build/_virtual/server_selection.js_commonjs-proxy.map +1 -0
- package/build/_virtual/sessions.js_commonjs-proxy +3 -0
- package/build/_virtual/sessions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/setDefaultsOnInsert.js_commonjs-proxy +3 -0
- package/build/_virtual/setDefaultsOnInsert.js_commonjs-proxy.map +1 -0
- package/build/_virtual/setDottedPath.js_commonjs-proxy +3 -0
- package/build/_virtual/setDottedPath.js_commonjs-proxy.map +1 -0
- package/build/_virtual/set_profiling_level.js_commonjs-proxy +3 -0
- package/build/_virtual/set_profiling_level.js_commonjs-proxy.map +1 -0
- package/build/_virtual/settle.js_commonjs-proxy +3 -0
- package/build/_virtual/settle.js_commonjs-proxy.map +1 -0
- package/build/_virtual/setupTimestamps.js_commonjs-proxy +3 -0
- package/build/_virtual/setupTimestamps.js_commonjs-proxy.map +1 -0
- package/build/_virtual/sharding.js_commonjs-proxy +3 -0
- package/build/_virtual/sharding.js_commonjs-proxy.map +1 -0
- package/build/_virtual/shared.js_commonjs-proxy +3 -0
- package/build/_virtual/shared.js_commonjs-proxy.map +1 -0
- package/build/_virtual/shared2.js_commonjs-proxy +3 -0
- package/build/_virtual/shared2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/some.js_commonjs-proxy +3 -0
- package/build/_virtual/some.js_commonjs-proxy.map +1 -0
- package/build/_virtual/specialProperties.js_commonjs-proxy +3 -0
- package/build/_virtual/specialProperties.js_commonjs-proxy.map +1 -0
- package/build/_virtual/srv_polling.js_commonjs-proxy +3 -0
- package/build/_virtual/srv_polling.js_commonjs-proxy.map +1 -0
- package/build/_virtual/statemachine.js_commonjs-proxy +3 -0
- package/build/_virtual/statemachine.js_commonjs-proxy.map +1 -0
- package/build/_virtual/stats.js_commonjs-proxy +3 -0
- package/build/_virtual/stats.js_commonjs-proxy.map +1 -0
- package/build/_virtual/stream.js_commonjs-proxy +3 -0
- package/build/_virtual/stream.js_commonjs-proxy.map +1 -0
- package/build/_virtual/stream2.js_commonjs-proxy +3 -0
- package/build/_virtual/stream2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/stream_description.js_commonjs-proxy +3 -0
- package/build/_virtual/stream_description.js_commonjs-proxy.map +1 -0
- package/build/_virtual/strict.js_commonjs-proxy +3 -0
- package/build/_virtual/strict.js_commonjs-proxy.map +1 -0
- package/build/_virtual/string.js_commonjs-proxy +3 -0
- package/build/_virtual/string.js_commonjs-proxy.map +1 -0
- package/build/_virtual/string2.js_commonjs-proxy +3 -0
- package/build/_virtual/string2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/stringToParts.js_commonjs-proxy +3 -0
- package/build/_virtual/stringToParts.js_commonjs-proxy.map +1 -0
- package/build/_virtual/string_decoder.js_commonjs-proxy +3 -0
- package/build/_virtual/string_decoder.js_commonjs-proxy.map +1 -0
- package/build/_virtual/stringifyFunctionOperators.js_commonjs-proxy +3 -0
- package/build/_virtual/stringifyFunctionOperators.js_commonjs-proxy.map +1 -0
- package/build/_virtual/subdocument.js_commonjs-proxy +3 -0
- package/build/_virtual/subdocument.js_commonjs-proxy.map +1 -0
- package/build/_virtual/symbol.js_commonjs-proxy +3 -0
- package/build/_virtual/symbol.js_commonjs-proxy.map +1 -0
- package/build/_virtual/symbols.js_commonjs-proxy +3 -0
- package/build/_virtual/symbols.js_commonjs-proxy.map +1 -0
- package/build/_virtual/symbols2.js_commonjs-proxy +3 -0
- package/build/_virtual/symbols2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/synchronous_inspection.js_commonjs-proxy +3 -0
- package/build/_virtual/synchronous_inspection.js_commonjs-proxy.map +1 -0
- package/build/_virtual/text.js_commonjs-proxy +3 -0
- package/build/_virtual/text.js_commonjs-proxy.map +1 -0
- package/build/_virtual/thenables.js_commonjs-proxy +3 -0
- package/build/_virtual/thenables.js_commonjs-proxy.map +1 -0
- package/build/_virtual/timers.js_commonjs-proxy +3 -0
- package/build/_virtual/timers.js_commonjs-proxy.map +1 -0
- package/build/_virtual/timers2.js_commonjs-proxy +3 -0
- package/build/_virtual/timers2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/timestamp.js_commonjs-proxy +3 -0
- package/build/_virtual/timestamp.js_commonjs-proxy.map +1 -0
- package/build/_virtual/topology.js_commonjs-proxy +3 -0
- package/build/_virtual/topology.js_commonjs-proxy.map +1 -0
- package/build/_virtual/topology_base.js_commonjs-proxy +3 -0
- package/build/_virtual/topology_base.js_commonjs-proxy.map +1 -0
- package/build/_virtual/topology_description.js_commonjs-proxy +3 -0
- package/build/_virtual/topology_description.js_commonjs-proxy.map +1 -0
- package/build/_virtual/trackTransaction.js_commonjs-proxy +3 -0
- package/build/_virtual/trackTransaction.js_commonjs-proxy.map +1 -0
- package/build/_virtual/transactions.js_commonjs-proxy +3 -0
- package/build/_virtual/transactions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/type.js_commonjs-proxy +3 -0
- package/build/_virtual/type.js_commonjs-proxy.map +1 -0
- package/build/_virtual/unordered.js_commonjs-proxy +3 -0
- package/build/_virtual/unordered.js_commonjs-proxy.map +1 -0
- package/build/_virtual/updateValidators.js_commonjs-proxy +3 -0
- package/build/_virtual/updateValidators.js_commonjs-proxy.map +1 -0
- package/build/_virtual/update_many.js_commonjs-proxy +3 -0
- package/build/_virtual/update_many.js_commonjs-proxy.map +1 -0
- package/build/_virtual/update_one.js_commonjs-proxy +3 -0
- package/build/_virtual/update_one.js_commonjs-proxy.map +1 -0
- package/build/_virtual/updatedPathsByArrayFilter.js_commonjs-proxy +3 -0
- package/build/_virtual/updatedPathsByArrayFilter.js_commonjs-proxy.map +1 -0
- package/build/_virtual/upload.js_commonjs-proxy +3 -0
- package/build/_virtual/upload.js_commonjs-proxy.map +1 -0
- package/build/_virtual/uri_parser.js_commonjs-proxy +3 -0
- package/build/_virtual/uri_parser.js_commonjs-proxy.map +1 -0
- package/build/_virtual/url_parser.js_commonjs-proxy +3 -0
- package/build/_virtual/url_parser.js_commonjs-proxy.map +1 -0
- package/build/_virtual/using.js_commonjs-proxy +3 -0
- package/build/_virtual/using.js_commonjs-proxy.map +1 -0
- package/build/_virtual/util.js_commonjs-proxy +3 -0
- package/build/_virtual/util.js_commonjs-proxy.map +1 -0
- package/build/_virtual/util2.js_commonjs-proxy +3 -0
- package/build/_virtual/util2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/utils.js_commonjs-proxy +3 -0
- package/build/_virtual/utils.js_commonjs-proxy.map +1 -0
- package/build/_virtual/utils2.js_commonjs-proxy +3 -0
- package/build/_virtual/utils2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/utils3.js_commonjs-proxy +3 -0
- package/build/_virtual/utils3.js_commonjs-proxy.map +1 -0
- package/build/_virtual/utils4.js_commonjs-proxy +3 -0
- package/build/_virtual/utils4.js_commonjs-proxy.map +1 -0
- package/build/_virtual/utils5.js_commonjs-proxy +3 -0
- package/build/_virtual/utils5.js_commonjs-proxy.map +1 -0
- package/build/_virtual/utils6.js_commonjs-proxy +3 -0
- package/build/_virtual/utils6.js_commonjs-proxy.map +1 -0
- package/build/_virtual/utils7.js_commonjs-proxy +3 -0
- package/build/_virtual/utils7.js_commonjs-proxy.map +1 -0
- package/build/_virtual/validateBeforeSave.js_commonjs-proxy +3 -0
- package/build/_virtual/validateBeforeSave.js_commonjs-proxy.map +1 -0
- package/build/_virtual/validateRef.js_commonjs-proxy +3 -0
- package/build/_virtual/validateRef.js_commonjs-proxy.map +1 -0
- package/build/_virtual/validate_collection.js_commonjs-proxy +3 -0
- package/build/_virtual/validate_collection.js_commonjs-proxy.map +1 -0
- package/build/_virtual/validation.js_commonjs-proxy +3 -0
- package/build/_virtual/validation.js_commonjs-proxy.map +1 -0
- package/build/_virtual/validation2.js_commonjs-proxy +3 -0
- package/build/_virtual/validation2.js_commonjs-proxy.map +1 -0
- package/build/_virtual/validator.js_commonjs-proxy +3 -0
- package/build/_virtual/validator.js_commonjs-proxy.map +1 -0
- package/build/_virtual/validoptions.js_commonjs-proxy +3 -0
- package/build/_virtual/validoptions.js_commonjs-proxy.map +1 -0
- package/build/_virtual/version.js_commonjs-proxy +3 -0
- package/build/_virtual/version.js_commonjs-proxy.map +1 -0
- package/build/_virtual/virtualtype.js_commonjs-proxy +3 -0
- package/build/_virtual/virtualtype.js_commonjs-proxy.map +1 -0
- package/build/_virtual/websocket-server.js_commonjs-proxy +3 -0
- package/build/_virtual/websocket-server.js_commonjs-proxy.map +1 -0
- package/build/_virtual/websocket.js_commonjs-proxy +3 -0
- package/build/_virtual/websocket.js_commonjs-proxy.map +1 -0
- package/build/_virtual/wrapThunk.js_commonjs-proxy +3 -0
- package/build/_virtual/wrapThunk.js_commonjs-proxy.map +1 -0
- package/build/_virtual/write_command.js_commonjs-proxy +3 -0
- package/build/_virtual/write_command.js_commonjs-proxy.map +1 -0
- package/build/_virtual/write_concern.js_commonjs-proxy +3 -0
- package/build/_virtual/write_concern.js_commonjs-proxy.map +1 -0
- package/build/_virtual/x509.js_commonjs-proxy +3 -0
- package/build/_virtual/x509.js_commonjs-proxy.map +1 -0
- package/build/bundles/colyseus/build/index.mjs +13 -0
- package/build/bundles/colyseus/build/index.mjs.js +25 -0
- package/build/bundles/colyseus/build/index.mjs.js.map +1 -0
- package/build/bundles/colyseus/build/index.mjs.map +1 -0
- package/build/matchmaker/controller.js +3 -1
- package/build/matchmaker/controller.js.map +1 -1
- package/build/matchmaker/controller.mjs +3 -1
- package/build/matchmaker/controller.mjs.map +1 -1
- package/build/node_modules/aws4/aws4.js +388 -0
- package/build/node_modules/aws4/aws4.js.map +1 -0
- package/build/node_modules/aws4/aws4.mjs +380 -0
- package/build/node_modules/aws4/aws4.mjs.map +1 -0
- package/build/node_modules/aws4/lru.js +101 -0
- package/build/node_modules/aws4/lru.js.map +1 -0
- package/build/node_modules/aws4/lru.mjs +99 -0
- package/build/node_modules/aws4/lru.mjs.map +1 -0
- package/build/node_modules/bl/bl.js +403 -0
- package/build/node_modules/bl/bl.js.map +1 -0
- package/build/node_modules/bl/bl.mjs +397 -0
- package/build/node_modules/bl/bl.mjs.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +114 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.mjs +112 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.mjs.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +29 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.mjs +27 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.mjs.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +1020 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.mjs +1013 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.mjs.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +158 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.mjs +156 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.mjs.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +667 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.mjs +665 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.mjs.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/BufferList.js +93 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/BufferList.js.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/BufferList.mjs +87 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/BufferList.mjs.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js +79 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.mjs +77 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.mjs.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.js +12 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.js.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.mjs +6 -0
- package/build/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.mjs.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/readable.js +37 -0
- package/build/node_modules/bl/node_modules/readable-stream/readable.js.map +1 -0
- package/build/node_modules/bl/node_modules/readable-stream/readable.mjs +31 -0
- package/build/node_modules/bl/node_modules/readable-stream/readable.mjs.map +1 -0
- package/build/node_modules/bl/node_modules/string_decoder/lib/string_decoder.js +286 -0
- package/build/node_modules/bl/node_modules/string_decoder/lib/string_decoder.js.map +1 -0
- package/build/node_modules/bl/node_modules/string_decoder/lib/string_decoder.mjs +282 -0
- package/build/node_modules/bl/node_modules/string_decoder/lib/string_decoder.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/any.js +25 -0
- package/build/node_modules/bluebird/js/release/any.js.map +1 -0
- package/build/node_modules/bluebird/js/release/any.mjs +23 -0
- package/build/node_modules/bluebird/js/release/any.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/async.js +173 -0
- package/build/node_modules/bluebird/js/release/async.js.map +1 -0
- package/build/node_modules/bluebird/js/release/async.mjs +169 -0
- package/build/node_modules/bluebird/js/release/async.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/bind.js +71 -0
- package/build/node_modules/bluebird/js/release/bind.js.map +1 -0
- package/build/node_modules/bluebird/js/release/bind.mjs +69 -0
- package/build/node_modules/bluebird/js/release/bind.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/bluebird.js +17 -0
- package/build/node_modules/bluebird/js/release/bluebird.js.map +1 -0
- package/build/node_modules/bluebird/js/release/bluebird.mjs +15 -0
- package/build/node_modules/bluebird/js/release/bluebird.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/call_get.js +128 -0
- package/build/node_modules/bluebird/js/release/call_get.js.map +1 -0
- package/build/node_modules/bluebird/js/release/call_get.mjs +126 -0
- package/build/node_modules/bluebird/js/release/call_get.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/cancel.js +135 -0
- package/build/node_modules/bluebird/js/release/cancel.js.map +1 -0
- package/build/node_modules/bluebird/js/release/cancel.mjs +133 -0
- package/build/node_modules/bluebird/js/release/cancel.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/catch_filter.js +49 -0
- package/build/node_modules/bluebird/js/release/catch_filter.js.map +1 -0
- package/build/node_modules/bluebird/js/release/catch_filter.mjs +47 -0
- package/build/node_modules/bluebird/js/release/catch_filter.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/context.js +73 -0
- package/build/node_modules/bluebird/js/release/context.js.map +1 -0
- package/build/node_modules/bluebird/js/release/context.mjs +71 -0
- package/build/node_modules/bluebird/js/release/context.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/debuggability.js +922 -0
- package/build/node_modules/bluebird/js/release/debuggability.js.map +1 -0
- package/build/node_modules/bluebird/js/release/debuggability.mjs +920 -0
- package/build/node_modules/bluebird/js/release/debuggability.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/direct_resolve.js +50 -0
- package/build/node_modules/bluebird/js/release/direct_resolve.js.map +1 -0
- package/build/node_modules/bluebird/js/release/direct_resolve.mjs +48 -0
- package/build/node_modules/bluebird/js/release/direct_resolve.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/each.js +33 -0
- package/build/node_modules/bluebird/js/release/each.js.map +1 -0
- package/build/node_modules/bluebird/js/release/each.mjs +31 -0
- package/build/node_modules/bluebird/js/release/each.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/errors.js +122 -0
- package/build/node_modules/bluebird/js/release/errors.js.map +1 -0
- package/build/node_modules/bluebird/js/release/errors.mjs +120 -0
- package/build/node_modules/bluebird/js/release/errors.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/es5.js +88 -0
- package/build/node_modules/bluebird/js/release/es5.js.map +1 -0
- package/build/node_modules/bluebird/js/release/es5.mjs +86 -0
- package/build/node_modules/bluebird/js/release/es5.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/filter.js +16 -0
- package/build/node_modules/bluebird/js/release/filter.js.map +1 -0
- package/build/node_modules/bluebird/js/release/filter.mjs +14 -0
- package/build/node_modules/bluebird/js/release/filter.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/finally.js +153 -0
- package/build/node_modules/bluebird/js/release/finally.js.map +1 -0
- package/build/node_modules/bluebird/js/release/finally.mjs +151 -0
- package/build/node_modules/bluebird/js/release/finally.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/generators.js +229 -0
- package/build/node_modules/bluebird/js/release/generators.js.map +1 -0
- package/build/node_modules/bluebird/js/release/generators.mjs +227 -0
- package/build/node_modules/bluebird/js/release/generators.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/join.js +172 -0
- package/build/node_modules/bluebird/js/release/join.js.map +1 -0
- package/build/node_modules/bluebird/js/release/join.mjs +170 -0
- package/build/node_modules/bluebird/js/release/join.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/map.js +173 -0
- package/build/node_modules/bluebird/js/release/map.js.map +1 -0
- package/build/node_modules/bluebird/js/release/map.mjs +171 -0
- package/build/node_modules/bluebird/js/release/map.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/method.js +61 -0
- package/build/node_modules/bluebird/js/release/method.js.map +1 -0
- package/build/node_modules/bluebird/js/release/method.mjs +59 -0
- package/build/node_modules/bluebird/js/release/method.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/nodeback.js +57 -0
- package/build/node_modules/bluebird/js/release/nodeback.js.map +1 -0
- package/build/node_modules/bluebird/js/release/nodeback.mjs +55 -0
- package/build/node_modules/bluebird/js/release/nodeback.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/nodeify.js +64 -0
- package/build/node_modules/bluebird/js/release/nodeify.js.map +1 -0
- package/build/node_modules/bluebird/js/release/nodeify.mjs +62 -0
- package/build/node_modules/bluebird/js/release/nodeify.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/promise.js +815 -0
- package/build/node_modules/bluebird/js/release/promise.js.map +1 -0
- package/build/node_modules/bluebird/js/release/promise.mjs +813 -0
- package/build/node_modules/bluebird/js/release/promise.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/promise_array.js +190 -0
- package/build/node_modules/bluebird/js/release/promise_array.js.map +1 -0
- package/build/node_modules/bluebird/js/release/promise_array.mjs +188 -0
- package/build/node_modules/bluebird/js/release/promise_array.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/promisify.js +321 -0
- package/build/node_modules/bluebird/js/release/promisify.js.map +1 -0
- package/build/node_modules/bluebird/js/release/promisify.mjs +319 -0
- package/build/node_modules/bluebird/js/release/promisify.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/props.js +125 -0
- package/build/node_modules/bluebird/js/release/props.js.map +1 -0
- package/build/node_modules/bluebird/js/release/props.mjs +123 -0
- package/build/node_modules/bluebird/js/release/props.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/queue.js +77 -0
- package/build/node_modules/bluebird/js/release/queue.js.map +1 -0
- package/build/node_modules/bluebird/js/release/queue.mjs +75 -0
- package/build/node_modules/bluebird/js/release/queue.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/race.js +55 -0
- package/build/node_modules/bluebird/js/release/race.js.map +1 -0
- package/build/node_modules/bluebird/js/release/race.mjs +53 -0
- package/build/node_modules/bluebird/js/release/race.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/reduce.js +178 -0
- package/build/node_modules/bluebird/js/release/reduce.js.map +1 -0
- package/build/node_modules/bluebird/js/release/reduce.mjs +176 -0
- package/build/node_modules/bluebird/js/release/reduce.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/schedule.js +67 -0
- package/build/node_modules/bluebird/js/release/schedule.js.map +1 -0
- package/build/node_modules/bluebird/js/release/schedule.mjs +65 -0
- package/build/node_modules/bluebird/js/release/schedule.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/settle.js +49 -0
- package/build/node_modules/bluebird/js/release/settle.js.map +1 -0
- package/build/node_modules/bluebird/js/release/settle.mjs +47 -0
- package/build/node_modules/bluebird/js/release/settle.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/some.js +155 -0
- package/build/node_modules/bluebird/js/release/some.js.map +1 -0
- package/build/node_modules/bluebird/js/release/some.mjs +153 -0
- package/build/node_modules/bluebird/js/release/some.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/synchronous_inspection.js +107 -0
- package/build/node_modules/bluebird/js/release/synchronous_inspection.js.map +1 -0
- package/build/node_modules/bluebird/js/release/synchronous_inspection.mjs +105 -0
- package/build/node_modules/bluebird/js/release/synchronous_inspection.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/thenables.js +92 -0
- package/build/node_modules/bluebird/js/release/thenables.js.map +1 -0
- package/build/node_modules/bluebird/js/release/thenables.mjs +90 -0
- package/build/node_modules/bluebird/js/release/thenables.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/timers.js +99 -0
- package/build/node_modules/bluebird/js/release/timers.js.map +1 -0
- package/build/node_modules/bluebird/js/release/timers.mjs +97 -0
- package/build/node_modules/bluebird/js/release/timers.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/using.js +233 -0
- package/build/node_modules/bluebird/js/release/using.js.map +1 -0
- package/build/node_modules/bluebird/js/release/using.mjs +231 -0
- package/build/node_modules/bluebird/js/release/using.mjs.map +1 -0
- package/build/node_modules/bluebird/js/release/util.js +380 -0
- package/build/node_modules/bluebird/js/release/util.js.map +1 -0
- package/build/node_modules/bluebird/js/release/util.mjs +378 -0
- package/build/node_modules/bluebird/js/release/util.mjs.map +1 -0
- package/build/node_modules/bson/index.js +51 -0
- package/build/node_modules/bson/index.js.map +1 -0
- package/build/node_modules/bson/index.mjs +49 -0
- package/build/node_modules/bson/index.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/binary.js +401 -0
- package/build/node_modules/bson/lib/bson/binary.js.map +1 -0
- package/build/node_modules/bson/lib/bson/binary.mjs +393 -0
- package/build/node_modules/bson/lib/bson/binary.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/bson.js +422 -0
- package/build/node_modules/bson/lib/bson/bson.js.map +1 -0
- package/build/node_modules/bson/lib/bson/bson.mjs +404 -0
- package/build/node_modules/bson/lib/bson/bson.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/code.js +33 -0
- package/build/node_modules/bson/lib/bson/code.js.map +1 -0
- package/build/node_modules/bson/lib/bson/code.mjs +29 -0
- package/build/node_modules/bson/lib/bson/code.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/db_ref.js +41 -0
- package/build/node_modules/bson/lib/bson/db_ref.js.map +1 -0
- package/build/node_modules/bson/lib/bson/db_ref.mjs +37 -0
- package/build/node_modules/bson/lib/bson/db_ref.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/decimal128.js +826 -0
- package/build/node_modules/bson/lib/bson/decimal128.js.map +1 -0
- package/build/node_modules/bson/lib/bson/decimal128.mjs +822 -0
- package/build/node_modules/bson/lib/bson/decimal128.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/double.js +42 -0
- package/build/node_modules/bson/lib/bson/double.js.map +1 -0
- package/build/node_modules/bson/lib/bson/double.mjs +38 -0
- package/build/node_modules/bson/lib/bson/double.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/float_parser.js +138 -0
- package/build/node_modules/bson/lib/bson/float_parser.js.map +1 -0
- package/build/node_modules/bson/lib/bson/float_parser.mjs +133 -0
- package/build/node_modules/bson/lib/bson/float_parser.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/int_32.js +42 -0
- package/build/node_modules/bson/lib/bson/int_32.js.map +1 -0
- package/build/node_modules/bson/lib/bson/int_32.mjs +38 -0
- package/build/node_modules/bson/lib/bson/int_32.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/long.js +874 -0
- package/build/node_modules/bson/lib/bson/long.js.map +1 -0
- package/build/node_modules/bson/lib/bson/long.mjs +870 -0
- package/build/node_modules/bson/lib/bson/long.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/map.js +136 -0
- package/build/node_modules/bson/lib/bson/map.js.map +1 -0
- package/build/node_modules/bson/lib/bson/map.mjs +134 -0
- package/build/node_modules/bson/lib/bson/map.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/max_key.js +23 -0
- package/build/node_modules/bson/lib/bson/max_key.js.map +1 -0
- package/build/node_modules/bson/lib/bson/max_key.mjs +19 -0
- package/build/node_modules/bson/lib/bson/max_key.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/min_key.js +23 -0
- package/build/node_modules/bson/lib/bson/min_key.js.map +1 -0
- package/build/node_modules/bson/lib/bson/min_key.mjs +19 -0
- package/build/node_modules/bson/lib/bson/min_key.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/objectid.js +410 -0
- package/build/node_modules/bson/lib/bson/objectid.js.map +1 -0
- package/build/node_modules/bson/lib/bson/objectid.mjs +401 -0
- package/build/node_modules/bson/lib/bson/objectid.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/parser/calculate_size.js +271 -0
- package/build/node_modules/bson/lib/bson/parser/calculate_size.js.map +1 -0
- package/build/node_modules/bson/lib/bson/parser/calculate_size.mjs +269 -0
- package/build/node_modules/bson/lib/bson/parser/calculate_size.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/parser/deserializer.js +798 -0
- package/build/node_modules/bson/lib/bson/parser/deserializer.js.map +1 -0
- package/build/node_modules/bson/lib/bson/parser/deserializer.mjs +796 -0
- package/build/node_modules/bson/lib/bson/parser/deserializer.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/parser/serializer.js +1200 -0
- package/build/node_modules/bson/lib/bson/parser/serializer.js.map +1 -0
- package/build/node_modules/bson/lib/bson/parser/serializer.mjs +1198 -0
- package/build/node_modules/bson/lib/bson/parser/serializer.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/parser/utils.js +30 -0
- package/build/node_modules/bson/lib/bson/parser/utils.js.map +1 -0
- package/build/node_modules/bson/lib/bson/parser/utils.mjs +28 -0
- package/build/node_modules/bson/lib/bson/parser/utils.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/regexp.js +42 -0
- package/build/node_modules/bson/lib/bson/regexp.js.map +1 -0
- package/build/node_modules/bson/lib/bson/regexp.mjs +38 -0
- package/build/node_modules/bson/lib/bson/regexp.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/symbol.js +65 -0
- package/build/node_modules/bson/lib/bson/symbol.js.map +1 -0
- package/build/node_modules/bson/lib/bson/symbol.mjs +57 -0
- package/build/node_modules/bson/lib/bson/symbol.mjs.map +1 -0
- package/build/node_modules/bson/lib/bson/timestamp.js +863 -0
- package/build/node_modules/bson/lib/bson/timestamp.js.map +1 -0
- package/build/node_modules/bson/lib/bson/timestamp.mjs +859 -0
- package/build/node_modules/bson/lib/bson/timestamp.mjs.map +1 -0
- package/build/node_modules/core-util-is/lib/util.js +147 -0
- package/build/node_modules/core-util-is/lib/util.js.map +1 -0
- package/build/node_modules/core-util-is/lib/util.mjs +129 -0
- package/build/node_modules/core-util-is/lib/util.mjs.map +1 -0
- package/build/node_modules/denque/index.js +446 -0
- package/build/node_modules/denque/index.js.map +1 -0
- package/build/node_modules/denque/index.mjs +444 -0
- package/build/node_modules/denque/index.mjs.map +1 -0
- package/build/node_modules/double-ended-queue/js/deque.js +279 -0
- package/build/node_modules/double-ended-queue/js/deque.js.map +1 -0
- package/build/node_modules/double-ended-queue/js/deque.mjs +277 -0
- package/build/node_modules/double-ended-queue/js/deque.mjs.map +1 -0
- package/build/node_modules/inherits/inherits.js +24 -0
- package/build/node_modules/inherits/inherits.js.map +1 -0
- package/build/node_modules/inherits/inherits.mjs +18 -0
- package/build/node_modules/inherits/inherits.mjs.map +1 -0
- package/build/node_modules/inherits/inherits_browser.js +36 -0
- package/build/node_modules/inherits/inherits_browser.js.map +1 -0
- package/build/node_modules/inherits/inherits_browser.mjs +34 -0
- package/build/node_modules/inherits/inherits_browser.mjs.map +1 -0
- package/build/node_modules/isarray/index.js +10 -0
- package/build/node_modules/isarray/index.js.map +1 -0
- package/build/node_modules/isarray/index.mjs +8 -0
- package/build/node_modules/isarray/index.mjs.map +1 -0
- package/build/node_modules/kareem/index.js +514 -0
- package/build/node_modules/kareem/index.js.map +1 -0
- package/build/node_modules/kareem/index.mjs +512 -0
- package/build/node_modules/kareem/index.mjs.map +1 -0
- package/build/node_modules/memory-pager/index.js +165 -0
- package/build/node_modules/memory-pager/index.js.map +1 -0
- package/build/node_modules/memory-pager/index.mjs +163 -0
- package/build/node_modules/memory-pager/index.mjs.map +1 -0
- package/build/node_modules/mongodb/index.js +93 -0
- package/build/node_modules/mongodb/index.js.map +1 -0
- package/build/node_modules/mongodb/index.mjs +91 -0
- package/build/node_modules/mongodb/index.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/admin.js +307 -0
- package/build/node_modules/mongodb/lib/admin.js.map +1 -0
- package/build/node_modules/mongodb/lib/admin.mjs +305 -0
- package/build/node_modules/mongodb/lib/admin.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/aggregation_cursor.js +376 -0
- package/build/node_modules/mongodb/lib/aggregation_cursor.js.map +1 -0
- package/build/node_modules/mongodb/lib/aggregation_cursor.mjs +374 -0
- package/build/node_modules/mongodb/lib/aggregation_cursor.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/apm.js +41 -0
- package/build/node_modules/mongodb/lib/apm.js.map +1 -0
- package/build/node_modules/mongodb/lib/apm.mjs +35 -0
- package/build/node_modules/mongodb/lib/apm.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/async/async_iterator.js +43 -0
- package/build/node_modules/mongodb/lib/async/async_iterator.js.map +1 -0
- package/build/node_modules/mongodb/lib/async/async_iterator.mjs +39 -0
- package/build/node_modules/mongodb/lib/async/async_iterator.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/bulk/common.js +1381 -0
- package/build/node_modules/mongodb/lib/bulk/common.js.map +1 -0
- package/build/node_modules/mongodb/lib/bulk/common.mjs +1379 -0
- package/build/node_modules/mongodb/lib/bulk/common.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/bulk/ordered.js +119 -0
- package/build/node_modules/mongodb/lib/bulk/ordered.js.map +1 -0
- package/build/node_modules/mongodb/lib/bulk/ordered.mjs +115 -0
- package/build/node_modules/mongodb/lib/bulk/ordered.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/bulk/unordered.js +140 -0
- package/build/node_modules/mongodb/lib/bulk/unordered.js.map +1 -0
- package/build/node_modules/mongodb/lib/bulk/unordered.mjs +136 -0
- package/build/node_modules/mongodb/lib/bulk/unordered.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/change_stream.js +640 -0
- package/build/node_modules/mongodb/lib/change_stream.js.map +1 -0
- package/build/node_modules/mongodb/lib/change_stream.mjs +634 -0
- package/build/node_modules/mongodb/lib/change_stream.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/cmap/connection.js +404 -0
- package/build/node_modules/mongodb/lib/cmap/connection.js.map +1 -0
- package/build/node_modules/mongodb/lib/cmap/connection.mjs +398 -0
- package/build/node_modules/mongodb/lib/cmap/connection.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/cmap/connection_pool.js +608 -0
- package/build/node_modules/mongodb/lib/cmap/connection_pool.js.map +1 -0
- package/build/node_modules/mongodb/lib/cmap/connection_pool.mjs +602 -0
- package/build/node_modules/mongodb/lib/cmap/connection_pool.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/cmap/errors.js +41 -0
- package/build/node_modules/mongodb/lib/cmap/errors.js.map +1 -0
- package/build/node_modules/mongodb/lib/cmap/errors.mjs +39 -0
- package/build/node_modules/mongodb/lib/cmap/errors.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/cmap/events.js +157 -0
- package/build/node_modules/mongodb/lib/cmap/events.js.map +1 -0
- package/build/node_modules/mongodb/lib/cmap/events.mjs +155 -0
- package/build/node_modules/mongodb/lib/cmap/events.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/cmap/message_stream.js +211 -0
- package/build/node_modules/mongodb/lib/cmap/message_stream.js.map +1 -0
- package/build/node_modules/mongodb/lib/cmap/message_stream.mjs +205 -0
- package/build/node_modules/mongodb/lib/cmap/message_stream.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/cmap/stream_description.js +51 -0
- package/build/node_modules/mongodb/lib/cmap/stream_description.js.map +1 -0
- package/build/node_modules/mongodb/lib/cmap/stream_description.mjs +49 -0
- package/build/node_modules/mongodb/lib/cmap/stream_description.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/collection.js +2294 -0
- package/build/node_modules/mongodb/lib/collection.js.map +1 -0
- package/build/node_modules/mongodb/lib/collection.mjs +2288 -0
- package/build/node_modules/mongodb/lib/collection.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/command_cursor.js +276 -0
- package/build/node_modules/mongodb/lib/command_cursor.js.map +1 -0
- package/build/node_modules/mongodb/lib/command_cursor.mjs +274 -0
- package/build/node_modules/mongodb/lib/command_cursor.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/constants.js +13 -0
- package/build/node_modules/mongodb/lib/constants.js.map +1 -0
- package/build/node_modules/mongodb/lib/constants.mjs +11 -0
- package/build/node_modules/mongodb/lib/constants.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/auth_provider.js +58 -0
- package/build/node_modules/mongodb/lib/core/auth/auth_provider.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/auth_provider.mjs +56 -0
- package/build/node_modules/mongodb/lib/core/auth/auth_provider.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/defaultAuthProviders.js +35 -0
- package/build/node_modules/mongodb/lib/core/auth/defaultAuthProviders.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/defaultAuthProviders.mjs +33 -0
- package/build/node_modules/mongodb/lib/core/auth/defaultAuthProviders.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/gssapi.js +162 -0
- package/build/node_modules/mongodb/lib/core/auth/gssapi.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/gssapi.mjs +156 -0
- package/build/node_modules/mongodb/lib/core/auth/gssapi.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/mongo_credentials.js +110 -0
- package/build/node_modules/mongodb/lib/core/auth/mongo_credentials.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/mongo_credentials.mjs +108 -0
- package/build/node_modules/mongodb/lib/core/auth/mongo_credentials.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/mongocr.js +54 -0
- package/build/node_modules/mongodb/lib/core/auth/mongocr.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/mongocr.mjs +48 -0
- package/build/node_modules/mongodb/lib/core/auth/mongocr.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/mongodb_aws.js +275 -0
- package/build/node_modules/mongodb/lib/core/auth/mongodb_aws.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/mongodb_aws.mjs +267 -0
- package/build/node_modules/mongodb/lib/core/auth/mongodb_aws.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/plain.js +35 -0
- package/build/node_modules/mongodb/lib/core/auth/plain.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/plain.mjs +33 -0
- package/build/node_modules/mongodb/lib/core/auth/plain.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/scram.js +362 -0
- package/build/node_modules/mongodb/lib/core/auth/scram.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/scram.mjs +356 -0
- package/build/node_modules/mongodb/lib/core/auth/scram.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/x509.js +41 -0
- package/build/node_modules/mongodb/lib/core/auth/x509.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/auth/x509.mjs +39 -0
- package/build/node_modules/mongodb/lib/core/auth/x509.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/apm.js +259 -0
- package/build/node_modules/mongodb/lib/core/connection/apm.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/apm.mjs +257 -0
- package/build/node_modules/mongodb/lib/core/connection/apm.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/command_result.js +39 -0
- package/build/node_modules/mongodb/lib/core/connection/command_result.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/command_result.mjs +37 -0
- package/build/node_modules/mongodb/lib/core/connection/command_result.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/commands.js +514 -0
- package/build/node_modules/mongodb/lib/core/connection/commands.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/commands.mjs +512 -0
- package/build/node_modules/mongodb/lib/core/connection/commands.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/connect.js +367 -0
- package/build/node_modules/mongodb/lib/core/connection/connect.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/connect.mjs +360 -0
- package/build/node_modules/mongodb/lib/core/connection/connect.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/connection.js +731 -0
- package/build/node_modules/mongodb/lib/core/connection/connection.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/connection.mjs +724 -0
- package/build/node_modules/mongodb/lib/core/connection/connection.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/logger.js +262 -0
- package/build/node_modules/mongodb/lib/core/connection/logger.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/logger.mjs +256 -0
- package/build/node_modules/mongodb/lib/core/connection/logger.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/msg.js +232 -0
- package/build/node_modules/mongodb/lib/core/connection/msg.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/msg.mjs +230 -0
- package/build/node_modules/mongodb/lib/core/connection/msg.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/pool.js +1304 -0
- package/build/node_modules/mongodb/lib/core/connection/pool.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/pool.mjs +1297 -0
- package/build/node_modules/mongodb/lib/core/connection/pool.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/utils.js +59 -0
- package/build/node_modules/mongodb/lib/core/connection/utils.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/connection/utils.mjs +57 -0
- package/build/node_modules/mongodb/lib/core/connection/utils.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/cursor.js +891 -0
- package/build/node_modules/mongodb/lib/core/cursor.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/cursor.mjs +885 -0
- package/build/node_modules/mongodb/lib/core/cursor.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/error.js +354 -0
- package/build/node_modules/mongodb/lib/core/error.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/error.mjs +352 -0
- package/build/node_modules/mongodb/lib/core/error.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/index.js +77 -0
- package/build/node_modules/mongodb/lib/core/index.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/index.mjs +75 -0
- package/build/node_modules/mongodb/lib/core/index.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/common.js +70 -0
- package/build/node_modules/mongodb/lib/core/sdam/common.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/common.mjs +68 -0
- package/build/node_modules/mongodb/lib/core/sdam/common.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/events.js +127 -0
- package/build/node_modules/mongodb/lib/core/sdam/events.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/events.mjs +125 -0
- package/build/node_modules/mongodb/lib/core/sdam/events.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/monitor.js +430 -0
- package/build/node_modules/mongodb/lib/core/sdam/monitor.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/monitor.mjs +424 -0
- package/build/node_modules/mongodb/lib/core/sdam/monitor.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/server.js +584 -0
- package/build/node_modules/mongodb/lib/core/sdam/server.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/server.mjs +578 -0
- package/build/node_modules/mongodb/lib/core/sdam/server.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/server_description.js +234 -0
- package/build/node_modules/mongodb/lib/core/sdam/server_description.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/server_description.mjs +232 -0
- package/build/node_modules/mongodb/lib/core/sdam/server_description.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/server_selection.js +246 -0
- package/build/node_modules/mongodb/lib/core/sdam/server_selection.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/server_selection.mjs +244 -0
- package/build/node_modules/mongodb/lib/core/sdam/server_selection.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/srv_polling.js +155 -0
- package/build/node_modules/mongodb/lib/core/sdam/srv_polling.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/srv_polling.mjs +145 -0
- package/build/node_modules/mongodb/lib/core/sdam/srv_polling.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/topology.js +1170 -0
- package/build/node_modules/mongodb/lib/core/sdam/topology.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/topology.mjs +1163 -0
- package/build/node_modules/mongodb/lib/core/sdam/topology.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/topology_description.js +468 -0
- package/build/node_modules/mongodb/lib/core/sdam/topology_description.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/sdam/topology_description.mjs +466 -0
- package/build/node_modules/mongodb/lib/core/sdam/topology_description.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/sessions.js +797 -0
- package/build/node_modules/mongodb/lib/core/sessions.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/sessions.mjs +791 -0
- package/build/node_modules/mongodb/lib/core/sessions.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/topologies/mongos.js +1415 -0
- package/build/node_modules/mongodb/lib/core/topologies/mongos.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/topologies/mongos.mjs +1408 -0
- package/build/node_modules/mongodb/lib/core/topologies/mongos.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/topologies/read_preference.js +273 -0
- package/build/node_modules/mongodb/lib/core/topologies/read_preference.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/topologies/read_preference.mjs +271 -0
- package/build/node_modules/mongodb/lib/core/topologies/read_preference.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/topologies/replset.js +1586 -0
- package/build/node_modules/mongodb/lib/core/topologies/replset.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/topologies/replset.mjs +1579 -0
- package/build/node_modules/mongodb/lib/core/topologies/replset.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/topologies/replset_state.js +1135 -0
- package/build/node_modules/mongodb/lib/core/topologies/replset_state.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/topologies/replset_state.mjs +1128 -0
- package/build/node_modules/mongodb/lib/core/topologies/replset_state.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/topologies/server.js +1006 -0
- package/build/node_modules/mongodb/lib/core/topologies/server.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/topologies/server.mjs +999 -0
- package/build/node_modules/mongodb/lib/core/topologies/server.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/topologies/shared.js +464 -0
- package/build/node_modules/mongodb/lib/core/topologies/shared.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/topologies/shared.mjs +462 -0
- package/build/node_modules/mongodb/lib/core/topologies/shared.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/transactions.js +188 -0
- package/build/node_modules/mongodb/lib/core/transactions.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/transactions.mjs +186 -0
- package/build/node_modules/mongodb/lib/core/transactions.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/uri_parser.js +745 -0
- package/build/node_modules/mongodb/lib/core/uri_parser.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/uri_parser.mjs +737 -0
- package/build/node_modules/mongodb/lib/core/uri_parser.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/utils.js +307 -0
- package/build/node_modules/mongodb/lib/core/utils.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/utils.mjs +300 -0
- package/build/node_modules/mongodb/lib/core/utils.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/command.js +193 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/command.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/command.mjs +191 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/command.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/compression.js +83 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/compression.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/compression.mjs +77 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/compression.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/constants.js +16 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/constants.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/constants.mjs +14 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/constants.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/get_more.js +105 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/get_more.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/get_more.mjs +103 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/get_more.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/index.js +26 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/index.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/index.mjs +24 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/index.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/kill_cursors.js +80 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/kill_cursors.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/kill_cursors.mjs +78 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/kill_cursors.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/query.js +247 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/query.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/query.mjs +245 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/query.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/shared.js +122 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/shared.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/shared.mjs +120 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/shared.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/write_command.js +68 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/write_command.js.map +1 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/write_command.mjs +66 -0
- package/build/node_modules/mongodb/lib/core/wireprotocol/write_command.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/cursor.js +1156 -0
- package/build/node_modules/mongodb/lib/cursor.js.map +1 -0
- package/build/node_modules/mongodb/lib/cursor.mjs +1149 -0
- package/build/node_modules/mongodb/lib/cursor.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/db.js +1092 -0
- package/build/node_modules/mongodb/lib/db.js.map +1 -0
- package/build/node_modules/mongodb/lib/db.mjs +1085 -0
- package/build/node_modules/mongodb/lib/db.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/dynamic_loaders.js +39 -0
- package/build/node_modules/mongodb/lib/dynamic_loaders.js.map +1 -0
- package/build/node_modules/mongodb/lib/dynamic_loaders.mjs +37 -0
- package/build/node_modules/mongodb/lib/dynamic_loaders.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/encrypter.js +176 -0
- package/build/node_modules/mongodb/lib/encrypter.js.map +1 -0
- package/build/node_modules/mongodb/lib/encrypter.mjs +170 -0
- package/build/node_modules/mongodb/lib/encrypter.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/error.js +48 -0
- package/build/node_modules/mongodb/lib/error.js.map +1 -0
- package/build/node_modules/mongodb/lib/error.mjs +46 -0
- package/build/node_modules/mongodb/lib/error.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/explain.js +60 -0
- package/build/node_modules/mongodb/lib/explain.js.map +1 -0
- package/build/node_modules/mongodb/lib/explain.mjs +58 -0
- package/build/node_modules/mongodb/lib/explain.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/gridfs/chunk.js +242 -0
- package/build/node_modules/mongodb/lib/gridfs/chunk.js.map +1 -0
- package/build/node_modules/mongodb/lib/gridfs/chunk.mjs +240 -0
- package/build/node_modules/mongodb/lib/gridfs/chunk.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/gridfs/grid_store.js +1940 -0
- package/build/node_modules/mongodb/lib/gridfs/grid_store.js.map +1 -0
- package/build/node_modules/mongodb/lib/gridfs/grid_store.mjs +1932 -0
- package/build/node_modules/mongodb/lib/gridfs/grid_store.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/gridfs-stream/download.js +441 -0
- package/build/node_modules/mongodb/lib/gridfs-stream/download.js.map +1 -0
- package/build/node_modules/mongodb/lib/gridfs-stream/download.mjs +434 -0
- package/build/node_modules/mongodb/lib/gridfs-stream/download.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/gridfs-stream/index.js +366 -0
- package/build/node_modules/mongodb/lib/gridfs-stream/index.js.map +1 -0
- package/build/node_modules/mongodb/lib/gridfs-stream/index.mjs +359 -0
- package/build/node_modules/mongodb/lib/gridfs-stream/index.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/gridfs-stream/upload.js +552 -0
- package/build/node_modules/mongodb/lib/gridfs-stream/upload.js.map +1 -0
- package/build/node_modules/mongodb/lib/gridfs-stream/upload.mjs +544 -0
- package/build/node_modules/mongodb/lib/gridfs-stream/upload.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/mongo_client.js +514 -0
- package/build/node_modules/mongodb/lib/mongo_client.js.map +1 -0
- package/build/node_modules/mongodb/lib/mongo_client.mjs +507 -0
- package/build/node_modules/mongodb/lib/mongo_client.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/add_user.js +111 -0
- package/build/node_modules/mongodb/lib/operations/add_user.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/add_user.mjs +105 -0
- package/build/node_modules/mongodb/lib/operations/add_user.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/aggregate.js +111 -0
- package/build/node_modules/mongodb/lib/operations/aggregate.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/aggregate.mjs +109 -0
- package/build/node_modules/mongodb/lib/operations/aggregate.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/bulk_write.js +103 -0
- package/build/node_modules/mongodb/lib/operations/bulk_write.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/bulk_write.mjs +101 -0
- package/build/node_modules/mongodb/lib/operations/bulk_write.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/collection_ops.js +361 -0
- package/build/node_modules/mongodb/lib/operations/collection_ops.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/collection_ops.mjs +359 -0
- package/build/node_modules/mongodb/lib/operations/collection_ops.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/collections.js +62 -0
- package/build/node_modules/mongodb/lib/operations/collections.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/collections.mjs +60 -0
- package/build/node_modules/mongodb/lib/operations/collections.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/command.js +126 -0
- package/build/node_modules/mongodb/lib/operations/command.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/command.mjs +124 -0
- package/build/node_modules/mongodb/lib/operations/command.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/command_v2.js +131 -0
- package/build/node_modules/mongodb/lib/operations/command_v2.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/command_v2.mjs +129 -0
- package/build/node_modules/mongodb/lib/operations/command_v2.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/common_functions.js +408 -0
- package/build/node_modules/mongodb/lib/operations/common_functions.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/common_functions.mjs +406 -0
- package/build/node_modules/mongodb/lib/operations/common_functions.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/connect.js +805 -0
- package/build/node_modules/mongodb/lib/operations/connect.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/connect.mjs +798 -0
- package/build/node_modules/mongodb/lib/operations/connect.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/count.js +74 -0
- package/build/node_modules/mongodb/lib/operations/count.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/count.mjs +72 -0
- package/build/node_modules/mongodb/lib/operations/count.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/count_documents.js +44 -0
- package/build/node_modules/mongodb/lib/operations/count_documents.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/count_documents.mjs +42 -0
- package/build/node_modules/mongodb/lib/operations/count_documents.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/create_collection.js +111 -0
- package/build/node_modules/mongodb/lib/operations/create_collection.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/create_collection.mjs +109 -0
- package/build/node_modules/mongodb/lib/operations/create_collection.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/create_indexes.js +146 -0
- package/build/node_modules/mongodb/lib/operations/create_indexes.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/create_indexes.mjs +144 -0
- package/build/node_modules/mongodb/lib/operations/create_indexes.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/cursor_ops.js +175 -0
- package/build/node_modules/mongodb/lib/operations/cursor_ops.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/cursor_ops.mjs +173 -0
- package/build/node_modules/mongodb/lib/operations/cursor_ops.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/db_ops.js +474 -0
- package/build/node_modules/mongodb/lib/operations/db_ops.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/db_ops.mjs +472 -0
- package/build/node_modules/mongodb/lib/operations/db_ops.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/delete_many.js +44 -0
- package/build/node_modules/mongodb/lib/operations/delete_many.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/delete_many.mjs +42 -0
- package/build/node_modules/mongodb/lib/operations/delete_many.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/delete_one.js +44 -0
- package/build/node_modules/mongodb/lib/operations/delete_one.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/delete_one.mjs +42 -0
- package/build/node_modules/mongodb/lib/operations/delete_one.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/distinct.js +102 -0
- package/build/node_modules/mongodb/lib/operations/distinct.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/distinct.mjs +100 -0
- package/build/node_modules/mongodb/lib/operations/distinct.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/drop.js +60 -0
- package/build/node_modules/mongodb/lib/operations/drop.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/drop.mjs +58 -0
- package/build/node_modules/mongodb/lib/operations/drop.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/drop_index.js +49 -0
- package/build/node_modules/mongodb/lib/operations/drop_index.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/drop_index.mjs +47 -0
- package/build/node_modules/mongodb/lib/operations/drop_index.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/drop_indexes.js +30 -0
- package/build/node_modules/mongodb/lib/operations/drop_indexes.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/drop_indexes.mjs +28 -0
- package/build/node_modules/mongodb/lib/operations/drop_indexes.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/estimated_document_count.js +64 -0
- package/build/node_modules/mongodb/lib/operations/estimated_document_count.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/estimated_document_count.mjs +62 -0
- package/build/node_modules/mongodb/lib/operations/estimated_document_count.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/execute_db_admin_command.js +41 -0
- package/build/node_modules/mongodb/lib/operations/execute_db_admin_command.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/execute_db_admin_command.mjs +39 -0
- package/build/node_modules/mongodb/lib/operations/execute_db_admin_command.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/execute_operation.js +173 -0
- package/build/node_modules/mongodb/lib/operations/execute_operation.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/execute_operation.mjs +171 -0
- package/build/node_modules/mongodb/lib/operations/execute_operation.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/find.js +57 -0
- package/build/node_modules/mongodb/lib/operations/find.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/find.mjs +55 -0
- package/build/node_modules/mongodb/lib/operations/find.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/find_and_modify.js +138 -0
- package/build/node_modules/mongodb/lib/operations/find_and_modify.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/find_and_modify.mjs +136 -0
- package/build/node_modules/mongodb/lib/operations/find_and_modify.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/find_one.js +47 -0
- package/build/node_modules/mongodb/lib/operations/find_one.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/find_one.mjs +45 -0
- package/build/node_modules/mongodb/lib/operations/find_one.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/find_one_and_delete.js +24 -0
- package/build/node_modules/mongodb/lib/operations/find_one_and_delete.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/find_one_and_delete.mjs +22 -0
- package/build/node_modules/mongodb/lib/operations/find_one_and_delete.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/find_one_and_replace.js +44 -0
- package/build/node_modules/mongodb/lib/operations/find_one_and_replace.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/find_one_and_replace.mjs +42 -0
- package/build/node_modules/mongodb/lib/operations/find_one_and_replace.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/find_one_and_update.js +44 -0
- package/build/node_modules/mongodb/lib/operations/find_one_and_update.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/find_one_and_update.mjs +42 -0
- package/build/node_modules/mongodb/lib/operations/find_one_and_update.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/geo_haystack_search.js +87 -0
- package/build/node_modules/mongodb/lib/operations/geo_haystack_search.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/geo_haystack_search.mjs +85 -0
- package/build/node_modules/mongodb/lib/operations/geo_haystack_search.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/index_exists.js +46 -0
- package/build/node_modules/mongodb/lib/operations/index_exists.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/index_exists.mjs +44 -0
- package/build/node_modules/mongodb/lib/operations/index_exists.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/index_information.js +29 -0
- package/build/node_modules/mongodb/lib/operations/index_information.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/index_information.mjs +27 -0
- package/build/node_modules/mongodb/lib/operations/index_information.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/indexes.js +28 -0
- package/build/node_modules/mongodb/lib/operations/indexes.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/indexes.mjs +26 -0
- package/build/node_modules/mongodb/lib/operations/indexes.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/insert_many.js +67 -0
- package/build/node_modules/mongodb/lib/operations/insert_many.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/insert_many.mjs +65 -0
- package/build/node_modules/mongodb/lib/operations/insert_many.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/insert_one.js +46 -0
- package/build/node_modules/mongodb/lib/operations/insert_one.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/insert_one.mjs +44 -0
- package/build/node_modules/mongodb/lib/operations/insert_one.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/is_capped.js +24 -0
- package/build/node_modules/mongodb/lib/operations/is_capped.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/is_capped.mjs +22 -0
- package/build/node_modules/mongodb/lib/operations/is_capped.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/list_collections.js +113 -0
- package/build/node_modules/mongodb/lib/operations/list_collections.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/list_collections.mjs +111 -0
- package/build/node_modules/mongodb/lib/operations/list_collections.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/list_databases.js +44 -0
- package/build/node_modules/mongodb/lib/operations/list_databases.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/list_databases.mjs +42 -0
- package/build/node_modules/mongodb/lib/operations/list_databases.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/list_indexes.js +48 -0
- package/build/node_modules/mongodb/lib/operations/list_indexes.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/list_indexes.mjs +46 -0
- package/build/node_modules/mongodb/lib/operations/list_indexes.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/map_reduce.js +220 -0
- package/build/node_modules/mongodb/lib/operations/map_reduce.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/map_reduce.mjs +218 -0
- package/build/node_modules/mongodb/lib/operations/map_reduce.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/operation.js +82 -0
- package/build/node_modules/mongodb/lib/operations/operation.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/operation.mjs +80 -0
- package/build/node_modules/mongodb/lib/operations/operation.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/options_operation.js +39 -0
- package/build/node_modules/mongodb/lib/operations/options_operation.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/options_operation.mjs +37 -0
- package/build/node_modules/mongodb/lib/operations/options_operation.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/profiling_level.js +34 -0
- package/build/node_modules/mongodb/lib/operations/profiling_level.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/profiling_level.mjs +32 -0
- package/build/node_modules/mongodb/lib/operations/profiling_level.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/re_index.js +41 -0
- package/build/node_modules/mongodb/lib/operations/re_index.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/re_index.mjs +39 -0
- package/build/node_modules/mongodb/lib/operations/re_index.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/remove_user.js +60 -0
- package/build/node_modules/mongodb/lib/operations/remove_user.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/remove_user.mjs +58 -0
- package/build/node_modules/mongodb/lib/operations/remove_user.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/rename.js +69 -0
- package/build/node_modules/mongodb/lib/operations/rename.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/rename.mjs +67 -0
- package/build/node_modules/mongodb/lib/operations/rename.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/replace_one.js +61 -0
- package/build/node_modules/mongodb/lib/operations/replace_one.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/replace_one.mjs +59 -0
- package/build/node_modules/mongodb/lib/operations/replace_one.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/run_command.js +24 -0
- package/build/node_modules/mongodb/lib/operations/run_command.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/run_command.mjs +22 -0
- package/build/node_modules/mongodb/lib/operations/run_command.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/set_profiling_level.js +52 -0
- package/build/node_modules/mongodb/lib/operations/set_profiling_level.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/set_profiling_level.mjs +50 -0
- package/build/node_modules/mongodb/lib/operations/set_profiling_level.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/stats.js +51 -0
- package/build/node_modules/mongodb/lib/operations/stats.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/stats.mjs +49 -0
- package/build/node_modules/mongodb/lib/operations/stats.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/update_many.js +62 -0
- package/build/node_modules/mongodb/lib/operations/update_many.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/update_many.mjs +60 -0
- package/build/node_modules/mongodb/lib/operations/update_many.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/update_one.js +62 -0
- package/build/node_modules/mongodb/lib/operations/update_one.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/update_one.mjs +60 -0
- package/build/node_modules/mongodb/lib/operations/update_one.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/operations/validate_collection.js +42 -0
- package/build/node_modules/mongodb/lib/operations/validate_collection.js.map +1 -0
- package/build/node_modules/mongodb/lib/operations/validate_collection.mjs +40 -0
- package/build/node_modules/mongodb/lib/operations/validate_collection.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/read_concern.js +64 -0
- package/build/node_modules/mongodb/lib/read_concern.js.map +1 -0
- package/build/node_modules/mongodb/lib/read_concern.mjs +62 -0
- package/build/node_modules/mongodb/lib/read_concern.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/topologies/mongos.js +454 -0
- package/build/node_modules/mongodb/lib/topologies/mongos.js.map +1 -0
- package/build/node_modules/mongodb/lib/topologies/mongos.mjs +452 -0
- package/build/node_modules/mongodb/lib/topologies/mongos.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/topologies/native_topology.js +86 -0
- package/build/node_modules/mongodb/lib/topologies/native_topology.js.map +1 -0
- package/build/node_modules/mongodb/lib/topologies/native_topology.mjs +84 -0
- package/build/node_modules/mongodb/lib/topologies/native_topology.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/topologies/replset.js +496 -0
- package/build/node_modules/mongodb/lib/topologies/replset.js.map +1 -0
- package/build/node_modules/mongodb/lib/topologies/replset.mjs +494 -0
- package/build/node_modules/mongodb/lib/topologies/replset.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/topologies/server.js +456 -0
- package/build/node_modules/mongodb/lib/topologies/server.js.map +1 -0
- package/build/node_modules/mongodb/lib/topologies/server.mjs +454 -0
- package/build/node_modules/mongodb/lib/topologies/server.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/topologies/topology_base.js +439 -0
- package/build/node_modules/mongodb/lib/topologies/topology_base.js.map +1 -0
- package/build/node_modules/mongodb/lib/topologies/topology_base.mjs +428 -0
- package/build/node_modules/mongodb/lib/topologies/topology_base.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/url_parser.js +646 -0
- package/build/node_modules/mongodb/lib/url_parser.js.map +1 -0
- package/build/node_modules/mongodb/lib/url_parser.mjs +637 -0
- package/build/node_modules/mongodb/lib/url_parser.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/utils.js +919 -0
- package/build/node_modules/mongodb/lib/utils.js.map +1 -0
- package/build/node_modules/mongodb/lib/utils.mjs +917 -0
- package/build/node_modules/mongodb/lib/utils.mjs.map +1 -0
- package/build/node_modules/mongodb/lib/write_concern.js +99 -0
- package/build/node_modules/mongodb/lib/write_concern.js.map +1 -0
- package/build/node_modules/mongodb/lib/write_concern.mjs +97 -0
- package/build/node_modules/mongodb/lib/write_concern.mjs.map +1 -0
- package/build/node_modules/mongodb/package.json.js +146 -0
- package/build/node_modules/mongodb/package.json.js.map +1 -0
- package/build/node_modules/mongodb/package.mjs +127 -0
- package/build/node_modules/mongodb/package.mjs.map +1 -0
- package/build/node_modules/mongoose/index.js +8 -0
- package/build/node_modules/mongoose/index.js.map +1 -0
- package/build/node_modules/mongoose/index.mjs +6 -0
- package/build/node_modules/mongoose/index.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/aggregate.js +1176 -0
- package/build/node_modules/mongoose/lib/aggregate.js.map +1 -0
- package/build/node_modules/mongoose/lib/aggregate.mjs +1170 -0
- package/build/node_modules/mongoose/lib/aggregate.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/browserDocument.js +119 -0
- package/build/node_modules/mongoose/lib/browserDocument.js.map +1 -0
- package/build/node_modules/mongoose/lib/browserDocument.mjs +113 -0
- package/build/node_modules/mongoose/lib/browserDocument.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/cast/boolean.js +41 -0
- package/build/node_modules/mongoose/lib/cast/boolean.js.map +1 -0
- package/build/node_modules/mongoose/lib/cast/boolean.mjs +39 -0
- package/build/node_modules/mongoose/lib/cast/boolean.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/cast/date.js +48 -0
- package/build/node_modules/mongoose/lib/cast/date.js.map +1 -0
- package/build/node_modules/mongoose/lib/cast/date.mjs +42 -0
- package/build/node_modules/mongoose/lib/cast/date.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/cast/decimal128.js +43 -0
- package/build/node_modules/mongoose/lib/cast/decimal128.js.map +1 -0
- package/build/node_modules/mongoose/lib/cast/decimal128.mjs +37 -0
- package/build/node_modules/mongoose/lib/cast/decimal128.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/cast/number.js +50 -0
- package/build/node_modules/mongoose/lib/cast/number.js.map +1 -0
- package/build/node_modules/mongoose/lib/cast/number.mjs +44 -0
- package/build/node_modules/mongoose/lib/cast/number.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/cast/objectid.js +39 -0
- package/build/node_modules/mongoose/lib/cast/objectid.js.map +1 -0
- package/build/node_modules/mongoose/lib/cast/objectid.mjs +33 -0
- package/build/node_modules/mongoose/lib/cast/objectid.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/cast/string.js +40 -0
- package/build/node_modules/mongoose/lib/cast/string.js.map +1 -0
- package/build/node_modules/mongoose/lib/cast/string.mjs +38 -0
- package/build/node_modules/mongoose/lib/cast/string.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/cast.js +382 -0
- package/build/node_modules/mongoose/lib/cast.js.map +1 -0
- package/build/node_modules/mongoose/lib/cast.mjs +376 -0
- package/build/node_modules/mongoose/lib/cast.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/collection.js +333 -0
- package/build/node_modules/mongoose/lib/collection.js.map +1 -0
- package/build/node_modules/mongoose/lib/collection.mjs +327 -0
- package/build/node_modules/mongoose/lib/collection.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/connection.js +1534 -0
- package/build/node_modules/mongoose/lib/connection.js.map +1 -0
- package/build/node_modules/mongoose/lib/connection.mjs +1528 -0
- package/build/node_modules/mongoose/lib/connection.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/connectionstate.js +29 -0
- package/build/node_modules/mongoose/lib/connectionstate.js.map +1 -0
- package/build/node_modules/mongoose/lib/connectionstate.mjs +27 -0
- package/build/node_modules/mongoose/lib/connectionstate.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/cursor/AggregationCursor.js +384 -0
- package/build/node_modules/mongoose/lib/cursor/AggregationCursor.js.map +1 -0
- package/build/node_modules/mongoose/lib/cursor/AggregationCursor.mjs +377 -0
- package/build/node_modules/mongoose/lib/cursor/AggregationCursor.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/cursor/ChangeStream.js +70 -0
- package/build/node_modules/mongoose/lib/cursor/ChangeStream.js.map +1 -0
- package/build/node_modules/mongoose/lib/cursor/ChangeStream.mjs +64 -0
- package/build/node_modules/mongoose/lib/cursor/ChangeStream.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/cursor/QueryCursor.js +522 -0
- package/build/node_modules/mongoose/lib/cursor/QueryCursor.js.map +1 -0
- package/build/node_modules/mongoose/lib/cursor/QueryCursor.mjs +515 -0
- package/build/node_modules/mongoose/lib/cursor/QueryCursor.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/document.js +4305 -0
- package/build/node_modules/mongoose/lib/document.js.map +1 -0
- package/build/node_modules/mongoose/lib/document.mjs +4298 -0
- package/build/node_modules/mongoose/lib/document.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/document_provider.js +40 -0
- package/build/node_modules/mongoose/lib/document_provider.js.map +1 -0
- package/build/node_modules/mongoose/lib/document_provider.mjs +36 -0
- package/build/node_modules/mongoose/lib/document_provider.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/driver.js +27 -0
- package/build/node_modules/mongoose/lib/driver.js.map +1 -0
- package/build/node_modules/mongoose/lib/driver.mjs +22 -0
- package/build/node_modules/mongoose/lib/driver.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/ReadPreference.js +52 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/ReadPreference.js.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/ReadPreference.mjs +50 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/ReadPreference.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/binary.js +14 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/binary.js.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/binary.mjs +12 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/binary.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js +470 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.mjs +463 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js +219 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.mjs +217 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/decimal128.js +12 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/decimal128.js.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/decimal128.mjs +10 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/decimal128.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/index.js +39 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/index.js.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/index.mjs +30 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/index.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.js +18 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.js.map +1 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.mjs +16 -0
- package/build/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/cast.js +161 -0
- package/build/node_modules/mongoose/lib/error/cast.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/cast.mjs +155 -0
- package/build/node_modules/mongoose/lib/error/cast.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/divergentArray.js +35 -0
- package/build/node_modules/mongoose/lib/error/divergentArray.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/divergentArray.mjs +33 -0
- package/build/node_modules/mongoose/lib/error/divergentArray.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/index.js +225 -0
- package/build/node_modules/mongoose/lib/error/index.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/index.mjs +223 -0
- package/build/node_modules/mongoose/lib/error/index.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/messages.js +32 -0
- package/build/node_modules/mongoose/lib/error/messages.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/messages.mjs +30 -0
- package/build/node_modules/mongoose/lib/error/messages.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/missingSchema.js +28 -0
- package/build/node_modules/mongoose/lib/error/missingSchema.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/missingSchema.mjs +26 -0
- package/build/node_modules/mongoose/lib/error/missingSchema.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/mongooseError.js +16 -0
- package/build/node_modules/mongoose/lib/error/mongooseError.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/mongooseError.mjs +14 -0
- package/build/node_modules/mongoose/lib/error/mongooseError.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/notFound.js +54 -0
- package/build/node_modules/mongoose/lib/error/notFound.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/notFound.mjs +48 -0
- package/build/node_modules/mongoose/lib/error/notFound.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/objectExpected.js +35 -0
- package/build/node_modules/mongoose/lib/error/objectExpected.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/objectExpected.mjs +33 -0
- package/build/node_modules/mongoose/lib/error/objectExpected.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/objectParameter.js +35 -0
- package/build/node_modules/mongoose/lib/error/objectParameter.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/objectParameter.mjs +33 -0
- package/build/node_modules/mongoose/lib/error/objectParameter.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/overwriteModel.js +26 -0
- package/build/node_modules/mongoose/lib/error/overwriteModel.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/overwriteModel.mjs +24 -0
- package/build/node_modules/mongoose/lib/error/overwriteModel.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/parallelSave.js +35 -0
- package/build/node_modules/mongoose/lib/error/parallelSave.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/parallelSave.mjs +33 -0
- package/build/node_modules/mongoose/lib/error/parallelSave.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/parallelValidate.js +36 -0
- package/build/node_modules/mongoose/lib/error/parallelValidate.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/parallelValidate.mjs +34 -0
- package/build/node_modules/mongoose/lib/error/parallelValidate.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/serverSelection.js +69 -0
- package/build/node_modules/mongoose/lib/error/serverSelection.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/serverSelection.mjs +67 -0
- package/build/node_modules/mongoose/lib/error/serverSelection.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/strict.js +38 -0
- package/build/node_modules/mongoose/lib/error/strict.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/strict.mjs +36 -0
- package/build/node_modules/mongoose/lib/error/strict.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/validation.js +121 -0
- package/build/node_modules/mongoose/lib/error/validation.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/validation.mjs +115 -0
- package/build/node_modules/mongoose/lib/error/validation.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/validator.js +99 -0
- package/build/node_modules/mongoose/lib/error/validator.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/validator.mjs +97 -0
- package/build/node_modules/mongoose/lib/error/validator.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/error/version.js +41 -0
- package/build/node_modules/mongoose/lib/error/version.js.map +1 -0
- package/build/node_modules/mongoose/lib/error/version.mjs +39 -0
- package/build/node_modules/mongoose/lib/error/version.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/aggregate/stringifyFunctionOperators.js +53 -0
- package/build/node_modules/mongoose/lib/helpers/aggregate/stringifyFunctionOperators.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/aggregate/stringifyFunctionOperators.mjs +51 -0
- package/build/node_modules/mongoose/lib/helpers/aggregate/stringifyFunctionOperators.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/arrayDepth.js +36 -0
- package/build/node_modules/mongoose/lib/helpers/arrayDepth.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/arrayDepth.mjs +34 -0
- package/build/node_modules/mongoose/lib/helpers/arrayDepth.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/clone.js +141 -0
- package/build/node_modules/mongoose/lib/helpers/clone.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/clone.mjs +139 -0
- package/build/node_modules/mongoose/lib/helpers/clone.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/common.js +123 -0
- package/build/node_modules/mongoose/lib/helpers/common.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/common.mjs +118 -0
- package/build/node_modules/mongoose/lib/helpers/common.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/cursor/eachAsync.js +163 -0
- package/build/node_modules/mongoose/lib/helpers/cursor/eachAsync.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/cursor/eachAsync.mjs +161 -0
- package/build/node_modules/mongoose/lib/helpers/cursor/eachAsync.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/areDiscriminatorValuesEqual.js +19 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/areDiscriminatorValuesEqual.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/areDiscriminatorValuesEqual.mjs +17 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/areDiscriminatorValuesEqual.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.js +15 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.mjs +13 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/getConstructor.js +28 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/getConstructor.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/getConstructor.mjs +26 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/getConstructor.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/getDiscriminatorByValue.js +30 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/getDiscriminatorByValue.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/getDiscriminatorByValue.mjs +28 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/getDiscriminatorByValue.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/getSchemaDiscriminatorByValue.js +29 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/getSchemaDiscriminatorByValue.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/getSchemaDiscriminatorByValue.mjs +27 -0
- package/build/node_modules/mongoose/lib/helpers/discriminator/getSchemaDiscriminatorByValue.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/document/cleanModifiedSubpaths.js +31 -0
- package/build/node_modules/mongoose/lib/helpers/document/cleanModifiedSubpaths.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/document/cleanModifiedSubpaths.mjs +29 -0
- package/build/node_modules/mongoose/lib/helpers/document/cleanModifiedSubpaths.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/document/compile.js +229 -0
- package/build/node_modules/mongoose/lib/helpers/document/compile.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/document/compile.mjs +224 -0
- package/build/node_modules/mongoose/lib/helpers/document/compile.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/document/getEmbeddedDiscriminatorPath.js +46 -0
- package/build/node_modules/mongoose/lib/helpers/document/getEmbeddedDiscriminatorPath.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/document/getEmbeddedDiscriminatorPath.mjs +44 -0
- package/build/node_modules/mongoose/lib/helpers/document/getEmbeddedDiscriminatorPath.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/document/handleSpreadDoc.js +20 -0
- package/build/node_modules/mongoose/lib/helpers/document/handleSpreadDoc.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/document/handleSpreadDoc.mjs +18 -0
- package/build/node_modules/mongoose/lib/helpers/document/handleSpreadDoc.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/each.js +28 -0
- package/build/node_modules/mongoose/lib/helpers/each.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/each.mjs +26 -0
- package/build/node_modules/mongoose/lib/helpers/each.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/get.js +67 -0
- package/build/node_modules/mongoose/lib/helpers/get.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/get.mjs +65 -0
- package/build/node_modules/mongoose/lib/helpers/get.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/getDefaultBulkwriteResult.js +31 -0
- package/build/node_modules/mongoose/lib/helpers/getDefaultBulkwriteResult.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/getDefaultBulkwriteResult.mjs +29 -0
- package/build/node_modules/mongoose/lib/helpers/getDefaultBulkwriteResult.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/getFunctionName.js +11 -0
- package/build/node_modules/mongoose/lib/helpers/getFunctionName.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/getFunctionName.mjs +9 -0
- package/build/node_modules/mongoose/lib/helpers/getFunctionName.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/immediate.js +17 -0
- package/build/node_modules/mongoose/lib/helpers/immediate.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/immediate.mjs +15 -0
- package/build/node_modules/mongoose/lib/helpers/immediate.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.js +21 -0
- package/build/node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.mjs +19 -0
- package/build/node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/indexes/isIndexEqual.js +98 -0
- package/build/node_modules/mongoose/lib/helpers/indexes/isIndexEqual.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/indexes/isIndexEqual.mjs +96 -0
- package/build/node_modules/mongoose/lib/helpers/indexes/isIndexEqual.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/isBsonType.js +16 -0
- package/build/node_modules/mongoose/lib/helpers/isBsonType.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/isBsonType.mjs +14 -0
- package/build/node_modules/mongoose/lib/helpers/isBsonType.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/isMongooseObject.js +24 -0
- package/build/node_modules/mongoose/lib/helpers/isMongooseObject.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/isMongooseObject.mjs +22 -0
- package/build/node_modules/mongoose/lib/helpers/isMongooseObject.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/isObject.js +19 -0
- package/build/node_modules/mongoose/lib/helpers/isObject.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/isObject.mjs +17 -0
- package/build/node_modules/mongoose/lib/helpers/isObject.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/isPromise.js +10 -0
- package/build/node_modules/mongoose/lib/helpers/isPromise.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/isPromise.mjs +8 -0
- package/build/node_modules/mongoose/lib/helpers/isPromise.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyHooks.js +141 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyHooks.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyHooks.mjs +139 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyHooks.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyMethods.js +59 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyMethods.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyMethods.mjs +57 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyMethods.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyStaticHooks.js +77 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyStaticHooks.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyStaticHooks.mjs +75 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyStaticHooks.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyStatics.js +15 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyStatics.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyStatics.mjs +13 -0
- package/build/node_modules/mongoose/lib/helpers/model/applyStatics.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/model/castBulkWrite.js +227 -0
- package/build/node_modules/mongoose/lib/helpers/model/castBulkWrite.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/model/castBulkWrite.mjs +225 -0
- package/build/node_modules/mongoose/lib/helpers/model/castBulkWrite.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/model/discriminator.js +212 -0
- package/build/node_modules/mongoose/lib/helpers/model/discriminator.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/model/discriminator.mjs +210 -0
- package/build/node_modules/mongoose/lib/helpers/model/discriminator.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/parallelLimit.js +58 -0
- package/build/node_modules/mongoose/lib/helpers/parallelLimit.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/parallelLimit.mjs +56 -0
- package/build/node_modules/mongoose/lib/helpers/parallelLimit.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/path/parentPaths.js +16 -0
- package/build/node_modules/mongoose/lib/helpers/path/parentPaths.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/path/parentPaths.mjs +14 -0
- package/build/node_modules/mongoose/lib/helpers/path/parentPaths.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/path/setDottedPath.js +19 -0
- package/build/node_modules/mongoose/lib/helpers/path/setDottedPath.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/path/setDottedPath.mjs +17 -0
- package/build/node_modules/mongoose/lib/helpers/path/setDottedPath.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/SkipPopulateValue.js +13 -0
- package/build/node_modules/mongoose/lib/helpers/populate/SkipPopulateValue.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/SkipPopulateValue.mjs +11 -0
- package/build/node_modules/mongoose/lib/helpers/populate/SkipPopulateValue.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/assignRawDocsToIdStructure.js +104 -0
- package/build/node_modules/mongoose/lib/helpers/populate/assignRawDocsToIdStructure.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/assignRawDocsToIdStructure.mjs +102 -0
- package/build/node_modules/mongoose/lib/helpers/populate/assignRawDocsToIdStructure.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/assignVals.js +291 -0
- package/build/node_modules/mongoose/lib/helpers/populate/assignVals.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/assignVals.mjs +289 -0
- package/build/node_modules/mongoose/lib/helpers/populate/assignVals.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/createPopulateQueryFilter.js +82 -0
- package/build/node_modules/mongoose/lib/helpers/populate/createPopulateQueryFilter.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/createPopulateQueryFilter.mjs +80 -0
- package/build/node_modules/mongoose/lib/helpers/populate/createPopulateQueryFilter.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/getModelsMapForPopulate.js +550 -0
- package/build/node_modules/mongoose/lib/helpers/populate/getModelsMapForPopulate.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/getModelsMapForPopulate.mjs +544 -0
- package/build/node_modules/mongoose/lib/helpers/populate/getModelsMapForPopulate.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/getSchemaTypes.js +218 -0
- package/build/node_modules/mongoose/lib/helpers/populate/getSchemaTypes.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/getSchemaTypes.mjs +216 -0
- package/build/node_modules/mongoose/lib/helpers/populate/getSchemaTypes.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/getVirtual.js +75 -0
- package/build/node_modules/mongoose/lib/helpers/populate/getVirtual.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/getVirtual.mjs +73 -0
- package/build/node_modules/mongoose/lib/helpers/populate/getVirtual.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/leanPopulateMap.js +10 -0
- package/build/node_modules/mongoose/lib/helpers/populate/leanPopulateMap.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/leanPopulateMap.mjs +8 -0
- package/build/node_modules/mongoose/lib/helpers/populate/leanPopulateMap.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/lookupLocalFields.js +31 -0
- package/build/node_modules/mongoose/lib/helpers/populate/lookupLocalFields.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/lookupLocalFields.mjs +29 -0
- package/build/node_modules/mongoose/lib/helpers/populate/lookupLocalFields.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/normalizeRefPath.js +48 -0
- package/build/node_modules/mongoose/lib/helpers/populate/normalizeRefPath.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/normalizeRefPath.mjs +46 -0
- package/build/node_modules/mongoose/lib/helpers/populate/normalizeRefPath.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/removeDeselectedForeignField.js +34 -0
- package/build/node_modules/mongoose/lib/helpers/populate/removeDeselectedForeignField.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/removeDeselectedForeignField.mjs +32 -0
- package/build/node_modules/mongoose/lib/helpers/populate/removeDeselectedForeignField.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/validateRef.js +26 -0
- package/build/node_modules/mongoose/lib/helpers/populate/validateRef.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/populate/validateRef.mjs +20 -0
- package/build/node_modules/mongoose/lib/helpers/populate/validateRef.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/printJestWarning.js +16 -0
- package/build/node_modules/mongoose/lib/helpers/printJestWarning.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/printJestWarning.mjs +14 -0
- package/build/node_modules/mongoose/lib/helpers/printJestWarning.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.js +21 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.mjs +19 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isExclusive.js +35 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isExclusive.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isExclusive.mjs +33 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isExclusive.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isInclusive.js +37 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isInclusive.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isInclusive.mjs +35 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isInclusive.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isPathExcluded.js +38 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isPathExcluded.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isPathExcluded.mjs +36 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isPathExcluded.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isPathSelectedInclusive.js +31 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isPathSelectedInclusive.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isPathSelectedInclusive.mjs +29 -0
- package/build/node_modules/mongoose/lib/helpers/projection/isPathSelectedInclusive.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/projection/parseProjection.js +36 -0
- package/build/node_modules/mongoose/lib/helpers/projection/parseProjection.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/projection/parseProjection.mjs +34 -0
- package/build/node_modules/mongoose/lib/helpers/projection/parseProjection.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/promiseOrCallback.js +49 -0
- package/build/node_modules/mongoose/lib/helpers/promiseOrCallback.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/promiseOrCallback.mjs +47 -0
- package/build/node_modules/mongoose/lib/helpers/promiseOrCallback.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/applyGlobalMaxTimeMS.js +18 -0
- package/build/node_modules/mongoose/lib/helpers/query/applyGlobalMaxTimeMS.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/applyGlobalMaxTimeMS.mjs +16 -0
- package/build/node_modules/mongoose/lib/helpers/query/applyGlobalMaxTimeMS.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/applyQueryMiddleware.js +96 -0
- package/build/node_modules/mongoose/lib/helpers/query/applyQueryMiddleware.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/applyQueryMiddleware.mjs +94 -0
- package/build/node_modules/mongoose/lib/helpers/query/applyQueryMiddleware.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/castFilterPath.js +58 -0
- package/build/node_modules/mongoose/lib/helpers/query/castFilterPath.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/castFilterPath.mjs +56 -0
- package/build/node_modules/mongoose/lib/helpers/query/castFilterPath.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/castUpdate.js +561 -0
- package/build/node_modules/mongoose/lib/helpers/query/castUpdate.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/castUpdate.mjs +559 -0
- package/build/node_modules/mongoose/lib/helpers/query/castUpdate.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/completeMany.js +54 -0
- package/build/node_modules/mongoose/lib/helpers/query/completeMany.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/completeMany.mjs +52 -0
- package/build/node_modules/mongoose/lib/helpers/query/completeMany.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/getEmbeddedDiscriminatorPath.js +87 -0
- package/build/node_modules/mongoose/lib/helpers/query/getEmbeddedDiscriminatorPath.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/getEmbeddedDiscriminatorPath.mjs +85 -0
- package/build/node_modules/mongoose/lib/helpers/query/getEmbeddedDiscriminatorPath.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/handleImmutable.js +31 -0
- package/build/node_modules/mongoose/lib/helpers/query/handleImmutable.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/handleImmutable.mjs +29 -0
- package/build/node_modules/mongoose/lib/helpers/query/handleImmutable.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/hasDollarKeys.js +22 -0
- package/build/node_modules/mongoose/lib/helpers/query/hasDollarKeys.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/hasDollarKeys.mjs +20 -0
- package/build/node_modules/mongoose/lib/helpers/query/hasDollarKeys.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/isOperator.js +14 -0
- package/build/node_modules/mongoose/lib/helpers/query/isOperator.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/isOperator.mjs +12 -0
- package/build/node_modules/mongoose/lib/helpers/query/isOperator.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/sanitizeProjection.js +17 -0
- package/build/node_modules/mongoose/lib/helpers/query/sanitizeProjection.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/sanitizeProjection.mjs +15 -0
- package/build/node_modules/mongoose/lib/helpers/query/sanitizeProjection.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/selectPopulatedFields.js +52 -0
- package/build/node_modules/mongoose/lib/helpers/query/selectPopulatedFields.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/selectPopulatedFields.mjs +50 -0
- package/build/node_modules/mongoose/lib/helpers/query/selectPopulatedFields.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/wrapThunk.js +21 -0
- package/build/node_modules/mongoose/lib/helpers/query/wrapThunk.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/query/wrapThunk.mjs +19 -0
- package/build/node_modules/mongoose/lib/helpers/query/wrapThunk.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/addAutoId.js +10 -0
- package/build/node_modules/mongoose/lib/helpers/schema/addAutoId.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/addAutoId.mjs +8 -0
- package/build/node_modules/mongoose/lib/helpers/schema/addAutoId.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/applyPlugins.js +47 -0
- package/build/node_modules/mongoose/lib/helpers/schema/applyPlugins.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/applyPlugins.mjs +45 -0
- package/build/node_modules/mongoose/lib/helpers/schema/applyPlugins.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/applyWriteConcern.js +33 -0
- package/build/node_modules/mongoose/lib/helpers/schema/applyWriteConcern.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/applyWriteConcern.mjs +31 -0
- package/build/node_modules/mongoose/lib/helpers/schema/applyWriteConcern.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/cleanPositionalOperators.js +15 -0
- package/build/node_modules/mongoose/lib/helpers/schema/cleanPositionalOperators.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/cleanPositionalOperators.mjs +13 -0
- package/build/node_modules/mongoose/lib/helpers/schema/cleanPositionalOperators.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/getIndexes.js +158 -0
- package/build/node_modules/mongoose/lib/helpers/schema/getIndexes.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/getIndexes.mjs +156 -0
- package/build/node_modules/mongoose/lib/helpers/schema/getIndexes.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/getPath.js +38 -0
- package/build/node_modules/mongoose/lib/helpers/schema/getPath.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/getPath.mjs +36 -0
- package/build/node_modules/mongoose/lib/helpers/schema/getPath.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/handleIdOption.js +23 -0
- package/build/node_modules/mongoose/lib/helpers/schema/handleIdOption.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/handleIdOption.mjs +21 -0
- package/build/node_modules/mongoose/lib/helpers/schema/handleIdOption.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.js +27 -0
- package/build/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.mjs +25 -0
- package/build/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/merge.js +30 -0
- package/build/node_modules/mongoose/lib/helpers/schema/merge.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schema/merge.mjs +28 -0
- package/build/node_modules/mongoose/lib/helpers/schema/merge.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schematype/handleImmutable.js +48 -0
- package/build/node_modules/mongoose/lib/helpers/schematype/handleImmutable.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/schematype/handleImmutable.mjs +46 -0
- package/build/node_modules/mongoose/lib/helpers/schematype/handleImmutable.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/setDefaultsOnInsert.js +134 -0
- package/build/node_modules/mongoose/lib/helpers/setDefaultsOnInsert.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/setDefaultsOnInsert.mjs +132 -0
- package/build/node_modules/mongoose/lib/helpers/setDefaultsOnInsert.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/specialProperties.js +6 -0
- package/build/node_modules/mongoose/lib/helpers/specialProperties.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/specialProperties.mjs +4 -0
- package/build/node_modules/mongoose/lib/helpers/specialProperties.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/symbols.js +61 -0
- package/build/node_modules/mongoose/lib/helpers/symbols.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/symbols.mjs +41 -0
- package/build/node_modules/mongoose/lib/helpers/symbols.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/timers.js +13 -0
- package/build/node_modules/mongoose/lib/helpers/timers.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/timers.mjs +9 -0
- package/build/node_modules/mongoose/lib/helpers/timers.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/timestamps/setupTimestamps.js +114 -0
- package/build/node_modules/mongoose/lib/helpers/timestamps/setupTimestamps.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/timestamps/setupTimestamps.mjs +112 -0
- package/build/node_modules/mongoose/lib/helpers/timestamps/setupTimestamps.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/topology/allServersUnknown.js +14 -0
- package/build/node_modules/mongoose/lib/helpers/topology/allServersUnknown.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/topology/allServersUnknown.mjs +12 -0
- package/build/node_modules/mongoose/lib/helpers/topology/allServersUnknown.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/topology/isAtlas.js +15 -0
- package/build/node_modules/mongoose/lib/helpers/topology/isAtlas.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/topology/isAtlas.mjs +13 -0
- package/build/node_modules/mongoose/lib/helpers/topology/isAtlas.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/topology/isSSLError.js +18 -0
- package/build/node_modules/mongoose/lib/helpers/topology/isSSLError.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/topology/isSSLError.mjs +16 -0
- package/build/node_modules/mongoose/lib/helpers/topology/isSSLError.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToChildren.js +175 -0
- package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToChildren.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToChildren.mjs +173 -0
- package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToChildren.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToUpdate.js +124 -0
- package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToUpdate.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToUpdate.mjs +122 -0
- package/build/node_modules/mongoose/lib/helpers/update/applyTimestampsToUpdate.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/castArrayFilters.js +63 -0
- package/build/node_modules/mongoose/lib/helpers/update/castArrayFilters.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/castArrayFilters.mjs +61 -0
- package/build/node_modules/mongoose/lib/helpers/update/castArrayFilters.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/modifiedPaths.js +38 -0
- package/build/node_modules/mongoose/lib/helpers/update/modifiedPaths.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/modifiedPaths.mjs +36 -0
- package/build/node_modules/mongoose/lib/helpers/update/modifiedPaths.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/moveImmutableProperties.js +56 -0
- package/build/node_modules/mongoose/lib/helpers/update/moveImmutableProperties.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/moveImmutableProperties.mjs +54 -0
- package/build/node_modules/mongoose/lib/helpers/update/moveImmutableProperties.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/removeUnusedArrayFilters.js +21 -0
- package/build/node_modules/mongoose/lib/helpers/update/removeUnusedArrayFilters.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/removeUnusedArrayFilters.mjs +19 -0
- package/build/node_modules/mongoose/lib/helpers/update/removeUnusedArrayFilters.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/updatedPathsByArrayFilter.js +27 -0
- package/build/node_modules/mongoose/lib/helpers/update/updatedPathsByArrayFilter.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/update/updatedPathsByArrayFilter.mjs +25 -0
- package/build/node_modules/mongoose/lib/helpers/update/updatedPathsByArrayFilter.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/updateValidators.js +263 -0
- package/build/node_modules/mongoose/lib/helpers/updateValidators.js.map +1 -0
- package/build/node_modules/mongoose/lib/helpers/updateValidators.mjs +261 -0
- package/build/node_modules/mongoose/lib/helpers/updateValidators.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/index.js +1208 -0
- package/build/node_modules/mongoose/lib/index.js.map +1 -0
- package/build/node_modules/mongoose/lib/index.mjs +1201 -0
- package/build/node_modules/mongoose/lib/index.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/internal.js +47 -0
- package/build/node_modules/mongoose/lib/internal.js.map +1 -0
- package/build/node_modules/mongoose/lib/internal.mjs +45 -0
- package/build/node_modules/mongoose/lib/internal.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/model.js +5089 -0
- package/build/node_modules/mongoose/lib/model.js.map +1 -0
- package/build/node_modules/mongoose/lib/model.mjs +5082 -0
- package/build/node_modules/mongoose/lib/model.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/PopulateOptions.js +39 -0
- package/build/node_modules/mongoose/lib/options/PopulateOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/PopulateOptions.mjs +37 -0
- package/build/node_modules/mongoose/lib/options/PopulateOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaArrayOptions.js +63 -0
- package/build/node_modules/mongoose/lib/options/SchemaArrayOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaArrayOptions.mjs +61 -0
- package/build/node_modules/mongoose/lib/options/SchemaArrayOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaBufferOptions.js +42 -0
- package/build/node_modules/mongoose/lib/options/SchemaBufferOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaBufferOptions.mjs +40 -0
- package/build/node_modules/mongoose/lib/options/SchemaBufferOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaDateOptions.js +68 -0
- package/build/node_modules/mongoose/lib/options/SchemaDateOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaDateOptions.mjs +66 -0
- package/build/node_modules/mongoose/lib/options/SchemaDateOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaDocumentArrayOptions.js +72 -0
- package/build/node_modules/mongoose/lib/options/SchemaDocumentArrayOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaDocumentArrayOptions.mjs +70 -0
- package/build/node_modules/mongoose/lib/options/SchemaDocumentArrayOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaMapOptions.js +47 -0
- package/build/node_modules/mongoose/lib/options/SchemaMapOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaMapOptions.mjs +45 -0
- package/build/node_modules/mongoose/lib/options/SchemaMapOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaNumberOptions.js +103 -0
- package/build/node_modules/mongoose/lib/options/SchemaNumberOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaNumberOptions.mjs +101 -0
- package/build/node_modules/mongoose/lib/options/SchemaNumberOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaObjectIdOptions.js +67 -0
- package/build/node_modules/mongoose/lib/options/SchemaObjectIdOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaObjectIdOptions.mjs +65 -0
- package/build/node_modules/mongoose/lib/options/SchemaObjectIdOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaSingleNestedOptions.js +46 -0
- package/build/node_modules/mongoose/lib/options/SchemaSingleNestedOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaSingleNestedOptions.mjs +44 -0
- package/build/node_modules/mongoose/lib/options/SchemaSingleNestedOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaStringOptions.js +142 -0
- package/build/node_modules/mongoose/lib/options/SchemaStringOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaStringOptions.mjs +140 -0
- package/build/node_modules/mongoose/lib/options/SchemaStringOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaTypeOptions.js +235 -0
- package/build/node_modules/mongoose/lib/options/SchemaTypeOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/SchemaTypeOptions.mjs +233 -0
- package/build/node_modules/mongoose/lib/options/SchemaTypeOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/VirtualOptions.js +167 -0
- package/build/node_modules/mongoose/lib/options/VirtualOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/VirtualOptions.mjs +165 -0
- package/build/node_modules/mongoose/lib/options/VirtualOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/propertyOptions.js +11 -0
- package/build/node_modules/mongoose/lib/options/propertyOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/propertyOptions.mjs +9 -0
- package/build/node_modules/mongoose/lib/options/propertyOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/removeOptions.js +17 -0
- package/build/node_modules/mongoose/lib/options/removeOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/removeOptions.mjs +15 -0
- package/build/node_modules/mongoose/lib/options/removeOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options/saveOptions.js +17 -0
- package/build/node_modules/mongoose/lib/options/saveOptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/options/saveOptions.mjs +15 -0
- package/build/node_modules/mongoose/lib/options/saveOptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/options.js +25 -0
- package/build/node_modules/mongoose/lib/options.js.map +1 -0
- package/build/node_modules/mongoose/lib/options.mjs +21 -0
- package/build/node_modules/mongoose/lib/options.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/plugins/idGetter.js +31 -0
- package/build/node_modules/mongoose/lib/plugins/idGetter.js.map +1 -0
- package/build/node_modules/mongoose/lib/plugins/idGetter.mjs +29 -0
- package/build/node_modules/mongoose/lib/plugins/idGetter.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/plugins/removeSubdocs.js +34 -0
- package/build/node_modules/mongoose/lib/plugins/removeSubdocs.js.map +1 -0
- package/build/node_modules/mongoose/lib/plugins/removeSubdocs.mjs +32 -0
- package/build/node_modules/mongoose/lib/plugins/removeSubdocs.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/plugins/saveSubdocs.js +69 -0
- package/build/node_modules/mongoose/lib/plugins/saveSubdocs.js.map +1 -0
- package/build/node_modules/mongoose/lib/plugins/saveSubdocs.mjs +67 -0
- package/build/node_modules/mongoose/lib/plugins/saveSubdocs.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/plugins/sharding.js +93 -0
- package/build/node_modules/mongoose/lib/plugins/sharding.js.map +1 -0
- package/build/node_modules/mongoose/lib/plugins/sharding.mjs +89 -0
- package/build/node_modules/mongoose/lib/plugins/sharding.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/plugins/trackTransaction.js +96 -0
- package/build/node_modules/mongoose/lib/plugins/trackTransaction.js.map +1 -0
- package/build/node_modules/mongoose/lib/plugins/trackTransaction.mjs +94 -0
- package/build/node_modules/mongoose/lib/plugins/trackTransaction.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/plugins/validateBeforeSave.js +48 -0
- package/build/node_modules/mongoose/lib/plugins/validateBeforeSave.js.map +1 -0
- package/build/node_modules/mongoose/lib/plugins/validateBeforeSave.mjs +46 -0
- package/build/node_modules/mongoose/lib/plugins/validateBeforeSave.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/promise_provider.js +60 -0
- package/build/node_modules/mongoose/lib/promise_provider.js.map +1 -0
- package/build/node_modules/mongoose/lib/promise_provider.mjs +54 -0
- package/build/node_modules/mongoose/lib/promise_provider.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/query.js +5588 -0
- package/build/node_modules/mongoose/lib/query.js.map +1 -0
- package/build/node_modules/mongoose/lib/query.mjs +5582 -0
- package/build/node_modules/mongoose/lib/query.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/queryhelpers.js +341 -0
- package/build/node_modules/mongoose/lib/queryhelpers.js.map +1 -0
- package/build/node_modules/mongoose/lib/queryhelpers.mjs +339 -0
- package/build/node_modules/mongoose/lib/queryhelpers.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/SingleNestedPath.js +358 -0
- package/build/node_modules/mongoose/lib/schema/SingleNestedPath.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/SingleNestedPath.mjs +352 -0
- package/build/node_modules/mongoose/lib/schema/SingleNestedPath.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/array.js +676 -0
- package/build/node_modules/mongoose/lib/schema/array.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/array.mjs +670 -0
- package/build/node_modules/mongoose/lib/schema/array.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/boolean.js +278 -0
- package/build/node_modules/mongoose/lib/schema/boolean.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/boolean.mjs +276 -0
- package/build/node_modules/mongoose/lib/schema/boolean.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/buffer.js +276 -0
- package/build/node_modules/mongoose/lib/schema/buffer.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/buffer.mjs +274 -0
- package/build/node_modules/mongoose/lib/schema/buffer.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/date.js +411 -0
- package/build/node_modules/mongoose/lib/schema/date.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/date.mjs +409 -0
- package/build/node_modules/mongoose/lib/schema/date.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/decimal128.js +218 -0
- package/build/node_modules/mongoose/lib/schema/decimal128.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/decimal128.mjs +216 -0
- package/build/node_modules/mongoose/lib/schema/decimal128.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/documentarray.js +591 -0
- package/build/node_modules/mongoose/lib/schema/documentarray.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/documentarray.mjs +584 -0
- package/build/node_modules/mongoose/lib/schema/documentarray.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/index.js +52 -0
- package/build/node_modules/mongoose/lib/schema/index.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/index.mjs +50 -0
- package/build/node_modules/mongoose/lib/schema/index.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/map.js +84 -0
- package/build/node_modules/mongoose/lib/schema/map.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/map.mjs +82 -0
- package/build/node_modules/mongoose/lib/schema/map.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/mixed.js +140 -0
- package/build/node_modules/mongoose/lib/schema/mixed.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/mixed.mjs +138 -0
- package/build/node_modules/mongoose/lib/schema/mixed.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/number.js +443 -0
- package/build/node_modules/mongoose/lib/schema/number.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/number.mjs +441 -0
- package/build/node_modules/mongoose/lib/schema/number.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/objectid.js +307 -0
- package/build/node_modules/mongoose/lib/schema/objectid.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/objectid.mjs +305 -0
- package/build/node_modules/mongoose/lib/schema/objectid.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/operators/bitwise.js +43 -0
- package/build/node_modules/mongoose/lib/schema/operators/bitwise.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/operators/bitwise.mjs +41 -0
- package/build/node_modules/mongoose/lib/schema/operators/bitwise.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/operators/exists.js +15 -0
- package/build/node_modules/mongoose/lib/schema/operators/exists.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/operators/exists.mjs +13 -0
- package/build/node_modules/mongoose/lib/schema/operators/exists.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/operators/geospatial.js +121 -0
- package/build/node_modules/mongoose/lib/schema/operators/geospatial.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/operators/geospatial.mjs +115 -0
- package/build/node_modules/mongoose/lib/schema/operators/geospatial.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/operators/helpers.js +46 -0
- package/build/node_modules/mongoose/lib/schema/operators/helpers.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/operators/helpers.mjs +41 -0
- package/build/node_modules/mongoose/lib/schema/operators/helpers.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/operators/text.js +42 -0
- package/build/node_modules/mongoose/lib/schema/operators/text.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/operators/text.mjs +40 -0
- package/build/node_modules/mongoose/lib/schema/operators/text.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/operators/type.js +23 -0
- package/build/node_modules/mongoose/lib/schema/operators/type.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/operators/type.mjs +21 -0
- package/build/node_modules/mongoose/lib/schema/operators/type.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/string.js +681 -0
- package/build/node_modules/mongoose/lib/schema/string.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/string.mjs +679 -0
- package/build/node_modules/mongoose/lib/schema/string.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema/symbols.js +17 -0
- package/build/node_modules/mongoose/lib/schema/symbols.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema/symbols.mjs +12 -0
- package/build/node_modules/mongoose/lib/schema/symbols.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schema.js +2205 -0
- package/build/node_modules/mongoose/lib/schema.js.map +1 -0
- package/build/node_modules/mongoose/lib/schema.mjs +2198 -0
- package/build/node_modules/mongoose/lib/schema.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/schematype.js +1694 -0
- package/build/node_modules/mongoose/lib/schematype.js.map +1 -0
- package/build/node_modules/mongoose/lib/schematype.mjs +1688 -0
- package/build/node_modules/mongoose/lib/schematype.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/statemachine.js +184 -0
- package/build/node_modules/mongoose/lib/statemachine.js.map +1 -0
- package/build/node_modules/mongoose/lib/statemachine.mjs +182 -0
- package/build/node_modules/mongoose/lib/statemachine.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/types/array.js +91 -0
- package/build/node_modules/mongoose/lib/types/array.js.map +1 -0
- package/build/node_modules/mongoose/lib/types/array.mjs +89 -0
- package/build/node_modules/mongoose/lib/types/array.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/types/buffer.js +283 -0
- package/build/node_modules/mongoose/lib/types/buffer.js.map +1 -0
- package/build/node_modules/mongoose/lib/types/buffer.mjs +281 -0
- package/build/node_modules/mongoose/lib/types/buffer.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/types/core_array.js +982 -0
- package/build/node_modules/mongoose/lib/types/core_array.js.map +1 -0
- package/build/node_modules/mongoose/lib/types/core_array.mjs +976 -0
- package/build/node_modules/mongoose/lib/types/core_array.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/types/decimal128.js +18 -0
- package/build/node_modules/mongoose/lib/types/decimal128.js.map +1 -0
- package/build/node_modules/mongoose/lib/types/decimal128.mjs +16 -0
- package/build/node_modules/mongoose/lib/types/decimal128.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/types/documentarray.js +462 -0
- package/build/node_modules/mongoose/lib/types/documentarray.js.map +1 -0
- package/build/node_modules/mongoose/lib/types/documentarray.mjs +456 -0
- package/build/node_modules/mongoose/lib/types/documentarray.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/types/embedded.js +474 -0
- package/build/node_modules/mongoose/lib/types/embedded.js.map +1 -0
- package/build/node_modules/mongoose/lib/types/embedded.mjs +467 -0
- package/build/node_modules/mongoose/lib/types/embedded.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/types/index.js +31 -0
- package/build/node_modules/mongoose/lib/types/index.js.map +1 -0
- package/build/node_modules/mongoose/lib/types/index.mjs +29 -0
- package/build/node_modules/mongoose/lib/types/index.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/types/map.js +252 -0
- package/build/node_modules/mongoose/lib/types/map.js.map +1 -0
- package/build/node_modules/mongoose/lib/types/map.mjs +246 -0
- package/build/node_modules/mongoose/lib/types/map.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/types/objectid.js +36 -0
- package/build/node_modules/mongoose/lib/types/objectid.js.map +1 -0
- package/build/node_modules/mongoose/lib/types/objectid.mjs +34 -0
- package/build/node_modules/mongoose/lib/types/objectid.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/types/subdocument.js +308 -0
- package/build/node_modules/mongoose/lib/types/subdocument.js.map +1 -0
- package/build/node_modules/mongoose/lib/types/subdocument.mjs +306 -0
- package/build/node_modules/mongoose/lib/types/subdocument.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/utils.js +962 -0
- package/build/node_modules/mongoose/lib/utils.js.map +1 -0
- package/build/node_modules/mongoose/lib/utils.mjs +960 -0
- package/build/node_modules/mongoose/lib/utils.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/validoptions.js +39 -0
- package/build/node_modules/mongoose/lib/validoptions.js.map +1 -0
- package/build/node_modules/mongoose/lib/validoptions.mjs +37 -0
- package/build/node_modules/mongoose/lib/validoptions.mjs.map +1 -0
- package/build/node_modules/mongoose/lib/virtualtype.js +179 -0
- package/build/node_modules/mongoose/lib/virtualtype.js.map +1 -0
- package/build/node_modules/mongoose/lib/virtualtype.mjs +177 -0
- package/build/node_modules/mongoose/lib/virtualtype.mjs.map +1 -0
- package/build/node_modules/mongoose/node_modules/safe-buffer/index.js +80 -0
- package/build/node_modules/mongoose/node_modules/safe-buffer/index.js.map +1 -0
- package/build/node_modules/mongoose/node_modules/safe-buffer/index.mjs +74 -0
- package/build/node_modules/mongoose/node_modules/safe-buffer/index.mjs.map +1 -0
- package/build/node_modules/mongoose/package.json.js +299 -0
- package/build/node_modules/mongoose/package.json.js.map +1 -0
- package/build/node_modules/mongoose/package.mjs +277 -0
- package/build/node_modules/mongoose/package.mjs.map +1 -0
- package/build/node_modules/mongoose-legacy-pluralize/index.js +104 -0
- package/build/node_modules/mongoose-legacy-pluralize/index.js.map +1 -0
- package/build/node_modules/mongoose-legacy-pluralize/index.mjs +102 -0
- package/build/node_modules/mongoose-legacy-pluralize/index.mjs.map +1 -0
- package/build/node_modules/mpath/index.js +12 -0
- package/build/node_modules/mpath/index.js.map +1 -0
- package/build/node_modules/mpath/index.mjs +10 -0
- package/build/node_modules/mpath/index.mjs.map +1 -0
- package/build/node_modules/mpath/lib/index.js +325 -0
- package/build/node_modules/mpath/lib/index.js.map +1 -0
- package/build/node_modules/mpath/lib/index.mjs +323 -0
- package/build/node_modules/mpath/lib/index.mjs.map +1 -0
- package/build/node_modules/mpath/lib/stringToParts.js +51 -0
- package/build/node_modules/mpath/lib/stringToParts.js.map +1 -0
- package/build/node_modules/mpath/lib/stringToParts.mjs +49 -0
- package/build/node_modules/mpath/lib/stringToParts.mjs.map +1 -0
- package/build/node_modules/mquery/lib/collection/collection.js +54 -0
- package/build/node_modules/mquery/lib/collection/collection.js.map +1 -0
- package/build/node_modules/mquery/lib/collection/collection.mjs +52 -0
- package/build/node_modules/mquery/lib/collection/collection.mjs.map +1 -0
- package/build/node_modules/mquery/lib/collection/index.js +17 -0
- package/build/node_modules/mquery/lib/collection/index.js.map +1 -0
- package/build/node_modules/mquery/lib/collection/index.mjs +15 -0
- package/build/node_modules/mquery/lib/collection/index.mjs.map +1 -0
- package/build/node_modules/mquery/lib/collection/node.js +161 -0
- package/build/node_modules/mquery/lib/collection/node.js.map +1 -0
- package/build/node_modules/mquery/lib/collection/node.mjs +159 -0
- package/build/node_modules/mquery/lib/collection/node.mjs.map +1 -0
- package/build/node_modules/mquery/lib/env.js +30 -0
- package/build/node_modules/mquery/lib/env.js.map +1 -0
- package/build/node_modules/mquery/lib/env.mjs +28 -0
- package/build/node_modules/mquery/lib/env.mjs.map +1 -0
- package/build/node_modules/mquery/lib/mquery.js +3276 -0
- package/build/node_modules/mquery/lib/mquery.js.map +1 -0
- package/build/node_modules/mquery/lib/mquery.mjs +3268 -0
- package/build/node_modules/mquery/lib/mquery.mjs.map +1 -0
- package/build/node_modules/mquery/lib/permissions.js +96 -0
- package/build/node_modules/mquery/lib/permissions.js.map +1 -0
- package/build/node_modules/mquery/lib/permissions.mjs +94 -0
- package/build/node_modules/mquery/lib/permissions.mjs.map +1 -0
- package/build/node_modules/mquery/lib/utils.js +373 -0
- package/build/node_modules/mquery/lib/utils.js.map +1 -0
- package/build/node_modules/mquery/lib/utils.mjs +371 -0
- package/build/node_modules/mquery/lib/utils.mjs.map +1 -0
- package/build/node_modules/ms/index.js +166 -0
- package/build/node_modules/ms/index.js.map +1 -0
- package/build/node_modules/ms/index.mjs +164 -0
- package/build/node_modules/ms/index.mjs.map +1 -0
- package/build/node_modules/optional-require/index.js +82 -0
- package/build/node_modules/optional-require/index.js.map +1 -0
- package/build/node_modules/optional-require/index.mjs +76 -0
- package/build/node_modules/optional-require/index.mjs.map +1 -0
- package/build/node_modules/process-nextick-args/index.js +52 -0
- package/build/node_modules/process-nextick-args/index.js.map +1 -0
- package/build/node_modules/process-nextick-args/index.mjs +50 -0
- package/build/node_modules/process-nextick-args/index.mjs.map +1 -0
- package/build/node_modules/redis/index.js +1136 -0
- package/build/node_modules/redis/index.js.map +1 -0
- package/build/node_modules/redis/index.mjs +1127 -0
- package/build/node_modules/redis/index.mjs.map +1 -0
- package/build/node_modules/redis/lib/command.js +19 -0
- package/build/node_modules/redis/lib/command.js.map +1 -0
- package/build/node_modules/redis/lib/command.mjs +17 -0
- package/build/node_modules/redis/lib/command.mjs.map +1 -0
- package/build/node_modules/redis/lib/commands.js +127 -0
- package/build/node_modules/redis/lib/commands.js.map +1 -0
- package/build/node_modules/redis/lib/commands.mjs +125 -0
- package/build/node_modules/redis/lib/commands.mjs.map +1 -0
- package/build/node_modules/redis/lib/createClient.js +87 -0
- package/build/node_modules/redis/lib/createClient.js.map +1 -0
- package/build/node_modules/redis/lib/createClient.mjs +81 -0
- package/build/node_modules/redis/lib/createClient.mjs.map +1 -0
- package/build/node_modules/redis/lib/customErrors.js +69 -0
- package/build/node_modules/redis/lib/customErrors.js.map +1 -0
- package/build/node_modules/redis/lib/customErrors.mjs +62 -0
- package/build/node_modules/redis/lib/customErrors.mjs.map +1 -0
- package/build/node_modules/redis/lib/debug.js +14 -0
- package/build/node_modules/redis/lib/debug.js.map +1 -0
- package/build/node_modules/redis/lib/debug.mjs +12 -0
- package/build/node_modules/redis/lib/debug.mjs.map +1 -0
- package/build/node_modules/redis/lib/extendedApi.js +117 -0
- package/build/node_modules/redis/lib/extendedApi.js.map +1 -0
- package/build/node_modules/redis/lib/extendedApi.mjs +115 -0
- package/build/node_modules/redis/lib/extendedApi.mjs.map +1 -0
- package/build/node_modules/redis/lib/individualCommands.js +620 -0
- package/build/node_modules/redis/lib/individualCommands.js.map +1 -0
- package/build/node_modules/redis/lib/individualCommands.mjs +618 -0
- package/build/node_modules/redis/lib/individualCommands.mjs.map +1 -0
- package/build/node_modules/redis/lib/multi.js +190 -0
- package/build/node_modules/redis/lib/multi.js.map +1 -0
- package/build/node_modules/redis/lib/multi.mjs +188 -0
- package/build/node_modules/redis/lib/multi.mjs.map +1 -0
- package/build/node_modules/redis/lib/utils.js +137 -0
- package/build/node_modules/redis/lib/utils.js.map +1 -0
- package/build/node_modules/redis/lib/utils.mjs +135 -0
- package/build/node_modules/redis/lib/utils.mjs.map +1 -0
- package/build/node_modules/redis-commands/commands.json.js +2785 -0
- package/build/node_modules/redis-commands/commands.json.js.map +1 -0
- package/build/node_modules/redis-commands/commands.mjs +2560 -0
- package/build/node_modules/redis-commands/commands.mjs.map +1 -0
- package/build/node_modules/redis-commands/index.js +177 -0
- package/build/node_modules/redis-commands/index.js.map +1 -0
- package/build/node_modules/redis-commands/index.mjs +175 -0
- package/build/node_modules/redis-commands/index.mjs.map +1 -0
- package/build/node_modules/redis-parser/index.js +21 -0
- package/build/node_modules/redis-parser/index.js.map +1 -0
- package/build/node_modules/redis-parser/index.mjs +15 -0
- package/build/node_modules/redis-parser/index.mjs.map +1 -0
- package/build/node_modules/redis-parser/lib/hiredis.js +69 -0
- package/build/node_modules/redis-parser/lib/hiredis.js.map +1 -0
- package/build/node_modules/redis-parser/lib/hiredis.mjs +63 -0
- package/build/node_modules/redis-parser/lib/hiredis.mjs.map +1 -0
- package/build/node_modules/redis-parser/lib/parser.js +593 -0
- package/build/node_modules/redis-parser/lib/parser.js.map +1 -0
- package/build/node_modules/redis-parser/lib/parser.mjs +587 -0
- package/build/node_modules/redis-parser/lib/parser.mjs.map +1 -0
- package/build/node_modules/redis-parser/lib/parserError.js +34 -0
- package/build/node_modules/redis-parser/lib/parserError.js.map +1 -0
- package/build/node_modules/redis-parser/lib/parserError.mjs +27 -0
- package/build/node_modules/redis-parser/lib/parserError.mjs.map +1 -0
- package/build/node_modules/redis-parser/lib/redisError.js +31 -0
- package/build/node_modules/redis-parser/lib/redisError.js.map +1 -0
- package/build/node_modules/redis-parser/lib/redisError.mjs +25 -0
- package/build/node_modules/redis-parser/lib/redisError.mjs.map +1 -0
- package/build/node_modules/redis-parser/lib/replyError.js +31 -0
- package/build/node_modules/redis-parser/lib/replyError.js.map +1 -0
- package/build/node_modules/redis-parser/lib/replyError.mjs +25 -0
- package/build/node_modules/redis-parser/lib/replyError.mjs.map +1 -0
- package/build/node_modules/regexp-clone/index.js +34 -0
- package/build/node_modules/regexp-clone/index.js.map +1 -0
- package/build/node_modules/regexp-clone/index.mjs +32 -0
- package/build/node_modules/regexp-clone/index.mjs.map +1 -0
- package/build/node_modules/safe-buffer/index.js +76 -0
- package/build/node_modules/safe-buffer/index.js.map +1 -0
- package/build/node_modules/safe-buffer/index.mjs +70 -0
- package/build/node_modules/safe-buffer/index.mjs.map +1 -0
- package/build/node_modules/saslprep/index.js +162 -0
- package/build/node_modules/saslprep/index.js.map +1 -0
- package/build/node_modules/saslprep/index.mjs +160 -0
- package/build/node_modules/saslprep/index.mjs.map +1 -0
- package/build/node_modules/saslprep/lib/memory-code-points.js +47 -0
- package/build/node_modules/saslprep/lib/memory-code-points.js.map +1 -0
- package/build/node_modules/saslprep/lib/memory-code-points.mjs +40 -0
- package/build/node_modules/saslprep/lib/memory-code-points.mjs.map +1 -0
- package/build/node_modules/sift/es5m/index.js +683 -0
- package/build/node_modules/sift/es5m/index.js.map +1 -0
- package/build/node_modules/sift/es5m/index.mjs +652 -0
- package/build/node_modules/sift/es5m/index.mjs.map +1 -0
- package/build/node_modules/sliced/index.js +36 -0
- package/build/node_modules/sliced/index.js.map +1 -0
- package/build/node_modules/sliced/index.mjs +34 -0
- package/build/node_modules/sliced/index.mjs.map +1 -0
- package/build/node_modules/sparse-bitfield/index.js +100 -0
- package/build/node_modules/sparse-bitfield/index.js.map +1 -0
- package/build/node_modules/sparse-bitfield/index.mjs +98 -0
- package/build/node_modules/sparse-bitfield/index.mjs.map +1 -0
- package/build/node_modules/util-deprecate/node.js +16 -0
- package/build/node_modules/util-deprecate/node.js.map +1 -0
- package/build/node_modules/util-deprecate/node.mjs +10 -0
- package/build/node_modules/util-deprecate/node.mjs.map +1 -0
- package/build/node_modules/ws/index.js +17 -0
- package/build/node_modules/ws/index.js.map +1 -0
- package/build/node_modules/ws/index.mjs +15 -0
- package/build/node_modules/ws/index.mjs.map +1 -0
- package/build/node_modules/ws/lib/buffer-util.js +143 -0
- package/build/node_modules/ws/lib/buffer-util.js.map +1 -0
- package/build/node_modules/ws/lib/buffer-util.mjs +137 -0
- package/build/node_modules/ws/lib/buffer-util.mjs.map +1 -0
- package/build/node_modules/ws/lib/constants.js +13 -0
- package/build/node_modules/ws/lib/constants.js.map +1 -0
- package/build/node_modules/ws/lib/constants.mjs +11 -0
- package/build/node_modules/ws/lib/constants.mjs.map +1 -0
- package/build/node_modules/ws/lib/event-target.js +187 -0
- package/build/node_modules/ws/lib/event-target.js.map +1 -0
- package/build/node_modules/ws/lib/event-target.mjs +185 -0
- package/build/node_modules/ws/lib/event-target.mjs.map +1 -0
- package/build/node_modules/ws/lib/extension.js +226 -0
- package/build/node_modules/ws/lib/extension.js.map +1 -0
- package/build/node_modules/ws/lib/extension.mjs +224 -0
- package/build/node_modules/ws/lib/extension.mjs.map +1 -0
- package/build/node_modules/ws/lib/limiter.js +58 -0
- package/build/node_modules/ws/lib/limiter.js.map +1 -0
- package/build/node_modules/ws/lib/limiter.mjs +56 -0
- package/build/node_modules/ws/lib/limiter.mjs.map +1 -0
- package/build/node_modules/ws/lib/permessage-deflate.js +526 -0
- package/build/node_modules/ws/lib/permessage-deflate.js.map +1 -0
- package/build/node_modules/ws/lib/permessage-deflate.mjs +520 -0
- package/build/node_modules/ws/lib/permessage-deflate.mjs.map +1 -0
- package/build/node_modules/ws/lib/receiver.js +620 -0
- package/build/node_modules/ws/lib/receiver.js.map +1 -0
- package/build/node_modules/ws/lib/receiver.mjs +614 -0
- package/build/node_modules/ws/lib/receiver.mjs.map +1 -0
- package/build/node_modules/ws/lib/sender.js +424 -0
- package/build/node_modules/ws/lib/sender.js.map +1 -0
- package/build/node_modules/ws/lib/sender.mjs +418 -0
- package/build/node_modules/ws/lib/sender.mjs.map +1 -0
- package/build/node_modules/ws/lib/stream.js +186 -0
- package/build/node_modules/ws/lib/stream.js.map +1 -0
- package/build/node_modules/ws/lib/stream.mjs +180 -0
- package/build/node_modules/ws/lib/stream.mjs.map +1 -0
- package/build/node_modules/ws/lib/validation.js +117 -0
- package/build/node_modules/ws/lib/validation.js.map +1 -0
- package/build/node_modules/ws/lib/validation.mjs +111 -0
- package/build/node_modules/ws/lib/validation.mjs.map +1 -0
- package/build/node_modules/ws/lib/websocket-server.js +467 -0
- package/build/node_modules/ws/lib/websocket-server.js.map +1 -0
- package/build/node_modules/ws/lib/websocket-server.mjs +459 -0
- package/build/node_modules/ws/lib/websocket-server.mjs.map +1 -0
- package/build/node_modules/ws/lib/websocket.js +1138 -0
- package/build/node_modules/ws/lib/websocket.js.map +1 -0
- package/build/node_modules/ws/lib/websocket.mjs +1126 -0
- package/build/node_modules/ws/lib/websocket.mjs.map +1 -0
- package/build/packages/core/src/Debug.js +34 -0
- package/build/packages/core/src/Debug.js.map +1 -0
- package/build/packages/core/src/Debug.mjs +20 -0
- package/build/packages/core/src/Debug.mjs.map +1 -0
- package/build/packages/core/src/IPC.js +65 -0
- package/build/packages/core/src/IPC.js.map +1 -0
- package/build/packages/core/src/IPC.mjs +60 -0
- package/build/packages/core/src/IPC.mjs.map +1 -0
- package/build/packages/core/src/Logger.js +12 -0
- package/build/packages/core/src/Logger.js.map +1 -0
- package/build/packages/core/src/Logger.mjs +8 -0
- package/build/packages/core/src/Logger.mjs.map +1 -0
- package/build/packages/core/src/MatchMaker.js +401 -0
- package/build/packages/core/src/MatchMaker.js.map +1 -0
- package/build/packages/core/src/MatchMaker.mjs +382 -0
- package/build/packages/core/src/MatchMaker.mjs.map +1 -0
- package/build/packages/core/src/Protocol.js +164 -0
- package/build/packages/core/src/Protocol.js.map +1 -0
- package/build/packages/core/src/Protocol.mjs +154 -0
- package/build/packages/core/src/Protocol.mjs.map +1 -0
- package/build/packages/core/src/Room.js +569 -0
- package/build/packages/core/src/Room.js.map +1 -0
- package/build/packages/core/src/Room.mjs +559 -0
- package/build/packages/core/src/Room.mjs.map +1 -0
- package/build/packages/core/src/Server.js +222 -0
- package/build/packages/core/src/Server.js.map +1 -0
- package/build/packages/core/src/Server.mjs +218 -0
- package/build/packages/core/src/Server.mjs.map +1 -0
- package/build/packages/core/src/Transport.js +17 -0
- package/build/packages/core/src/Transport.js.map +1 -0
- package/build/packages/core/src/Transport.mjs +13 -0
- package/build/packages/core/src/Transport.mjs.map +1 -0
- package/build/packages/core/src/Utils.js +225 -0
- package/build/packages/core/src/Utils.js.map +1 -0
- package/build/packages/core/src/Utils.mjs +209 -0
- package/build/packages/core/src/Utils.mjs.map +1 -0
- package/build/packages/core/src/discovery/index.js +31 -0
- package/build/packages/core/src/discovery/index.js.map +1 -0
- package/build/packages/core/src/discovery/index.mjs +22 -0
- package/build/packages/core/src/discovery/index.mjs.map +1 -0
- package/build/packages/core/src/errors/SeatReservationError.js +12 -0
- package/build/packages/core/src/errors/SeatReservationError.js.map +1 -0
- package/build/packages/core/src/errors/SeatReservationError.mjs +8 -0
- package/build/packages/core/src/errors/SeatReservationError.mjs.map +1 -0
- package/build/packages/core/src/errors/ServerError.js +21 -0
- package/build/packages/core/src/errors/ServerError.js.map +1 -0
- package/build/packages/core/src/errors/ServerError.mjs +17 -0
- package/build/packages/core/src/errors/ServerError.mjs.map +1 -0
- package/build/packages/core/src/index.js +96 -0
- package/build/packages/core/src/index.js.map +1 -0
- package/build/packages/core/src/index.mjs +19 -0
- package/build/packages/core/src/index.mjs.map +1 -0
- package/build/packages/core/src/matchmaker/Lobby.js +31 -0
- package/build/packages/core/src/matchmaker/Lobby.js.map +1 -0
- package/build/packages/core/src/matchmaker/Lobby.mjs +26 -0
- package/build/packages/core/src/matchmaker/Lobby.mjs.map +1 -0
- package/build/packages/core/src/matchmaker/RegisteredHandler.js +72 -0
- package/build/packages/core/src/matchmaker/RegisteredHandler.js.map +1 -0
- package/build/packages/core/src/matchmaker/RegisteredHandler.mjs +67 -0
- package/build/packages/core/src/matchmaker/RegisteredHandler.mjs.map +1 -0
- package/build/packages/core/src/matchmaker/controller.js +46 -0
- package/build/packages/core/src/matchmaker/controller.js.map +1 -0
- package/build/packages/core/src/matchmaker/controller.mjs +39 -0
- package/build/packages/core/src/matchmaker/controller.mjs.map +1 -0
- package/build/packages/core/src/matchmaker/driver/Query.js +53 -0
- package/build/packages/core/src/matchmaker/driver/Query.js.map +1 -0
- package/build/packages/core/src/matchmaker/driver/Query.mjs +49 -0
- package/build/packages/core/src/matchmaker/driver/Query.mjs.map +1 -0
- package/build/packages/core/src/matchmaker/driver/RoomData.js +80 -0
- package/build/packages/core/src/matchmaker/driver/RoomData.js.map +1 -0
- package/build/packages/core/src/matchmaker/driver/RoomData.mjs +76 -0
- package/build/packages/core/src/matchmaker/driver/RoomData.mjs.map +1 -0
- package/build/packages/core/src/matchmaker/driver/index.js +34 -0
- package/build/packages/core/src/matchmaker/driver/index.js.map +1 -0
- package/build/packages/core/src/matchmaker/driver/index.mjs +30 -0
- package/build/packages/core/src/matchmaker/driver/index.mjs.map +1 -0
- package/build/packages/core/src/presence/LocalPresence.js +156 -0
- package/build/packages/core/src/presence/LocalPresence.js.map +1 -0
- package/build/packages/core/src/presence/LocalPresence.mjs +152 -0
- package/build/packages/core/src/presence/LocalPresence.mjs.map +1 -0
- package/build/packages/core/src/rooms/LobbyRoom.js +101 -0
- package/build/packages/core/src/rooms/LobbyRoom.js.map +1 -0
- package/build/packages/core/src/rooms/LobbyRoom.mjs +97 -0
- package/build/packages/core/src/rooms/LobbyRoom.mjs.map +1 -0
- package/build/packages/core/src/rooms/RelayRoom.js +79 -0
- package/build/packages/core/src/rooms/RelayRoom.js.map +1 -0
- package/build/packages/core/src/rooms/RelayRoom.mjs +75 -0
- package/build/packages/core/src/rooms/RelayRoom.mjs.map +1 -0
- package/build/packages/core/src/serializer/NoneSerializer.js +19 -0
- package/build/packages/core/src/serializer/NoneSerializer.js.map +1 -0
- package/build/packages/core/src/serializer/NoneSerializer.mjs +15 -0
- package/build/packages/core/src/serializer/NoneSerializer.mjs.map +1 -0
- package/build/packages/core/src/serializer/SchemaSerializer.js +85 -0
- package/build/packages/core/src/serializer/SchemaSerializer.js.map +1 -0
- package/build/packages/core/src/serializer/SchemaSerializer.mjs +81 -0
- package/build/packages/core/src/serializer/SchemaSerializer.mjs.map +1 -0
- package/build/packages/drivers/mongoose-driver/build/index.mjs +23 -0
- package/build/packages/drivers/mongoose-driver/build/index.mjs.js +25 -0
- package/build/packages/drivers/mongoose-driver/build/index.mjs.js.map +1 -0
- package/build/packages/drivers/mongoose-driver/build/index.mjs.map +1 -0
- package/build/packages/transport/ws-transport/build/WebSocketClient.mjs +70 -0
- package/build/packages/transport/ws-transport/build/WebSocketClient.mjs.js +74 -0
- package/build/packages/transport/ws-transport/build/WebSocketClient.mjs.js.map +1 -0
- package/build/packages/transport/ws-transport/build/WebSocketClient.mjs.map +1 -0
- package/build/packages/transport/ws-transport/build/WebSocketTransport.mjs +102 -0
- package/build/packages/transport/ws-transport/build/WebSocketTransport.mjs.js +110 -0
- package/build/packages/transport/ws-transport/build/WebSocketTransport.mjs.js.map +1 -0
- package/build/packages/transport/ws-transport/build/WebSocketTransport.mjs.map +1 -0
- package/build/rooms/LobbyRoom.js +4 -4
- package/build/rooms/LobbyRoom.js.map +1 -1
- package/build/rooms/LobbyRoom.mjs +4 -4
- package/build/rooms/LobbyRoom.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,3268 @@
|
|
|
1
|
+
import { createCommonjsModule } from '../../../_virtual/_commonjsHelpers.js';
|
|
2
|
+
import sliced from '../../sliced/index.mjs';
|
|
3
|
+
import assert from 'assert';
|
|
4
|
+
import util from 'util';
|
|
5
|
+
import utils from './utils.mjs';
|
|
6
|
+
import debug from 'debug';
|
|
7
|
+
import permissions from './permissions.mjs';
|
|
8
|
+
import env from './env.mjs';
|
|
9
|
+
import collection from './collection/index.mjs';
|
|
10
|
+
import collection$1 from './collection/collection.mjs';
|
|
11
|
+
import bluebird_1 from '../../bluebird/js/release/bluebird.mjs';
|
|
12
|
+
|
|
13
|
+
var mquery = createCommonjsModule(function (module, exports) {
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Dependencies
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
var debug$1 = debug('mquery');
|
|
24
|
+
|
|
25
|
+
/* global Map */
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Query constructor used for building queries.
|
|
29
|
+
*
|
|
30
|
+
* ####Example:
|
|
31
|
+
*
|
|
32
|
+
* var query = new Query({ name: 'mquery' });
|
|
33
|
+
* query.setOptions({ collection: moduleCollection })
|
|
34
|
+
* query.where('age').gte(21).exec(callback);
|
|
35
|
+
*
|
|
36
|
+
* @param {Object} [criteria]
|
|
37
|
+
* @param {Object} [options]
|
|
38
|
+
* @api public
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
function Query(criteria, options) {
|
|
42
|
+
if (!(this instanceof Query))
|
|
43
|
+
return new Query(criteria, options);
|
|
44
|
+
|
|
45
|
+
var proto = this.constructor.prototype;
|
|
46
|
+
|
|
47
|
+
this.op = proto.op || undefined;
|
|
48
|
+
|
|
49
|
+
this.options = Object.assign({}, proto.options);
|
|
50
|
+
|
|
51
|
+
this._conditions = proto._conditions
|
|
52
|
+
? utils.clone(proto._conditions)
|
|
53
|
+
: {};
|
|
54
|
+
|
|
55
|
+
this._fields = proto._fields
|
|
56
|
+
? utils.clone(proto._fields)
|
|
57
|
+
: undefined;
|
|
58
|
+
|
|
59
|
+
this._update = proto._update
|
|
60
|
+
? utils.clone(proto._update)
|
|
61
|
+
: undefined;
|
|
62
|
+
|
|
63
|
+
this._path = proto._path || undefined;
|
|
64
|
+
this._distinct = proto._distinct || undefined;
|
|
65
|
+
this._collection = proto._collection || undefined;
|
|
66
|
+
this._traceFunction = proto._traceFunction || undefined;
|
|
67
|
+
|
|
68
|
+
if (options) {
|
|
69
|
+
this.setOptions(options);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (criteria) {
|
|
73
|
+
if (criteria.find && criteria.remove && criteria.update) {
|
|
74
|
+
// quack quack!
|
|
75
|
+
this.collection(criteria);
|
|
76
|
+
} else {
|
|
77
|
+
this.find(criteria);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* This is a parameter that the user can set which determines if mquery
|
|
84
|
+
* uses $within or $geoWithin for queries. It defaults to true which
|
|
85
|
+
* means $geoWithin will be used. If using MongoDB < 2.4 you should
|
|
86
|
+
* set this to false.
|
|
87
|
+
*
|
|
88
|
+
* @api public
|
|
89
|
+
* @property use$geoWithin
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
var $withinCmd = '$geoWithin';
|
|
93
|
+
Object.defineProperty(Query, 'use$geoWithin', {
|
|
94
|
+
get: function( ) { return $withinCmd == '$geoWithin'; },
|
|
95
|
+
set: function(v) {
|
|
96
|
+
if (true === v) {
|
|
97
|
+
// mongodb >= 2.4
|
|
98
|
+
$withinCmd = '$geoWithin';
|
|
99
|
+
} else {
|
|
100
|
+
$withinCmd = '$within';
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Converts this query to a constructor function with all arguments and options retained.
|
|
107
|
+
*
|
|
108
|
+
* ####Example
|
|
109
|
+
*
|
|
110
|
+
* // Create a query that will read documents with a "video" category from
|
|
111
|
+
* // `aCollection` on the primary node in the replica-set unless it is down,
|
|
112
|
+
* // in which case we'll read from a secondary node.
|
|
113
|
+
* var query = mquery({ category: 'video' })
|
|
114
|
+
* query.setOptions({ collection: aCollection, read: 'primaryPreferred' });
|
|
115
|
+
*
|
|
116
|
+
* // create a constructor based off these settings
|
|
117
|
+
* var Video = query.toConstructor();
|
|
118
|
+
*
|
|
119
|
+
* // Video is now a subclass of mquery() and works the same way but with the
|
|
120
|
+
* // default query parameters and options set.
|
|
121
|
+
*
|
|
122
|
+
* // run a query with the previous settings but filter for movies with names
|
|
123
|
+
* // that start with "Life".
|
|
124
|
+
* Video().where({ name: /^Life/ }).exec(cb);
|
|
125
|
+
*
|
|
126
|
+
* @return {Query} new Query
|
|
127
|
+
* @api public
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
Query.prototype.toConstructor = function toConstructor() {
|
|
131
|
+
function CustomQuery(criteria, options) {
|
|
132
|
+
if (!(this instanceof CustomQuery))
|
|
133
|
+
return new CustomQuery(criteria, options);
|
|
134
|
+
Query.call(this, criteria, options);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
utils.inherits(CustomQuery, Query);
|
|
138
|
+
|
|
139
|
+
// set inherited defaults
|
|
140
|
+
var p = CustomQuery.prototype;
|
|
141
|
+
|
|
142
|
+
p.options = {};
|
|
143
|
+
p.setOptions(this.options);
|
|
144
|
+
|
|
145
|
+
p.op = this.op;
|
|
146
|
+
p._conditions = utils.clone(this._conditions);
|
|
147
|
+
p._fields = utils.clone(this._fields);
|
|
148
|
+
p._update = utils.clone(this._update);
|
|
149
|
+
p._path = this._path;
|
|
150
|
+
p._distinct = this._distinct;
|
|
151
|
+
p._collection = this._collection;
|
|
152
|
+
p._traceFunction = this._traceFunction;
|
|
153
|
+
|
|
154
|
+
return CustomQuery;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Sets query options.
|
|
159
|
+
*
|
|
160
|
+
* ####Options:
|
|
161
|
+
*
|
|
162
|
+
* - [tailable](http://www.mongodb.org/display/DOCS/Tailable+Cursors) *
|
|
163
|
+
* - [sort](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%7B%7Bsort(\)%7D%7D) *
|
|
164
|
+
* - [limit](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%7B%7Blimit%28%29%7D%7D) *
|
|
165
|
+
* - [skip](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%7B%7Bskip%28%29%7D%7D) *
|
|
166
|
+
* - [maxScan](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24maxScan) *
|
|
167
|
+
* - [maxTime](http://docs.mongodb.org/manual/reference/operator/meta/maxTimeMS/#op._S_maxTimeMS) *
|
|
168
|
+
* - [batchSize](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%7B%7BbatchSize%28%29%7D%7D) *
|
|
169
|
+
* - [comment](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24comment) *
|
|
170
|
+
* - [snapshot](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%7B%7Bsnapshot%28%29%7D%7D) *
|
|
171
|
+
* - [hint](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24hint) *
|
|
172
|
+
* - [slaveOk](http://docs.mongodb.org/manual/applications/replication/#read-preference) *
|
|
173
|
+
* - [safe](http://www.mongodb.org/display/DOCS/getLastError+Command)
|
|
174
|
+
* - collection the collection to query against
|
|
175
|
+
*
|
|
176
|
+
* _* denotes a query helper method is also available_
|
|
177
|
+
*
|
|
178
|
+
* @param {Object} options
|
|
179
|
+
* @api public
|
|
180
|
+
*/
|
|
181
|
+
|
|
182
|
+
Query.prototype.setOptions = function(options) {
|
|
183
|
+
if (!(options && utils.isObject(options)))
|
|
184
|
+
return this;
|
|
185
|
+
|
|
186
|
+
// set arbitrary options
|
|
187
|
+
var methods = utils.keys(options),
|
|
188
|
+
method;
|
|
189
|
+
|
|
190
|
+
for (var i = 0; i < methods.length; ++i) {
|
|
191
|
+
method = methods[i];
|
|
192
|
+
|
|
193
|
+
// use methods if exist (safer option manipulation)
|
|
194
|
+
if ('function' == typeof this[method]) {
|
|
195
|
+
var args = utils.isArray(options[method])
|
|
196
|
+
? options[method]
|
|
197
|
+
: [options[method]];
|
|
198
|
+
this[method].apply(this, args);
|
|
199
|
+
} else {
|
|
200
|
+
this.options[method] = options[method];
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
return this;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Sets this Querys collection.
|
|
209
|
+
*
|
|
210
|
+
* @param {Collection} coll
|
|
211
|
+
* @return {Query} this
|
|
212
|
+
*/
|
|
213
|
+
|
|
214
|
+
Query.prototype.collection = function collection(coll) {
|
|
215
|
+
this._collection = new Query.Collection(coll);
|
|
216
|
+
|
|
217
|
+
return this;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Adds a collation to this op (MongoDB 3.4 and up)
|
|
222
|
+
*
|
|
223
|
+
* ####Example
|
|
224
|
+
*
|
|
225
|
+
* query.find().collation({ locale: "en_US", strength: 1 })
|
|
226
|
+
*
|
|
227
|
+
* @param {Object} value
|
|
228
|
+
* @return {Query} this
|
|
229
|
+
* @see MongoDB docs https://docs.mongodb.com/manual/reference/method/cursor.collation/#cursor.collation
|
|
230
|
+
* @api public
|
|
231
|
+
*/
|
|
232
|
+
|
|
233
|
+
Query.prototype.collation = function(value) {
|
|
234
|
+
this.options.collation = value;
|
|
235
|
+
return this;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Specifies a `$where` condition
|
|
240
|
+
*
|
|
241
|
+
* Use `$where` when you need to select documents using a JavaScript expression.
|
|
242
|
+
*
|
|
243
|
+
* ####Example
|
|
244
|
+
*
|
|
245
|
+
* query.$where('this.comments.length > 10 || this.name.length > 5')
|
|
246
|
+
*
|
|
247
|
+
* query.$where(function () {
|
|
248
|
+
* return this.comments.length > 10 || this.name.length > 5;
|
|
249
|
+
* })
|
|
250
|
+
*
|
|
251
|
+
* @param {String|Function} js javascript string or function
|
|
252
|
+
* @return {Query} this
|
|
253
|
+
* @memberOf Query
|
|
254
|
+
* @method $where
|
|
255
|
+
* @api public
|
|
256
|
+
*/
|
|
257
|
+
|
|
258
|
+
Query.prototype.$where = function(js) {
|
|
259
|
+
this._conditions.$where = js;
|
|
260
|
+
return this;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Specifies a `path` for use with chaining.
|
|
265
|
+
*
|
|
266
|
+
* ####Example
|
|
267
|
+
*
|
|
268
|
+
* // instead of writing:
|
|
269
|
+
* User.find({age: {$gte: 21, $lte: 65}}, callback);
|
|
270
|
+
*
|
|
271
|
+
* // we can instead write:
|
|
272
|
+
* User.where('age').gte(21).lte(65);
|
|
273
|
+
*
|
|
274
|
+
* // passing query conditions is permitted
|
|
275
|
+
* User.find().where({ name: 'vonderful' })
|
|
276
|
+
*
|
|
277
|
+
* // chaining
|
|
278
|
+
* User
|
|
279
|
+
* .where('age').gte(21).lte(65)
|
|
280
|
+
* .where('name', /^vonderful/i)
|
|
281
|
+
* .where('friends').slice(10)
|
|
282
|
+
* .exec(callback)
|
|
283
|
+
*
|
|
284
|
+
* @param {String} [path]
|
|
285
|
+
* @param {Object} [val]
|
|
286
|
+
* @return {Query} this
|
|
287
|
+
* @api public
|
|
288
|
+
*/
|
|
289
|
+
|
|
290
|
+
Query.prototype.where = function() {
|
|
291
|
+
if (!arguments.length) return this;
|
|
292
|
+
if (!this.op) this.op = 'find';
|
|
293
|
+
|
|
294
|
+
var type = typeof arguments[0];
|
|
295
|
+
|
|
296
|
+
if ('string' == type) {
|
|
297
|
+
this._path = arguments[0];
|
|
298
|
+
|
|
299
|
+
if (2 === arguments.length) {
|
|
300
|
+
this._conditions[this._path] = arguments[1];
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
return this;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
if ('object' == type && !Array.isArray(arguments[0])) {
|
|
307
|
+
return this.merge(arguments[0]);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
throw new TypeError('path must be a string or object');
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Specifies the complementary comparison value for paths specified with `where()`
|
|
315
|
+
*
|
|
316
|
+
* ####Example
|
|
317
|
+
*
|
|
318
|
+
* User.where('age').equals(49);
|
|
319
|
+
*
|
|
320
|
+
* // is the same as
|
|
321
|
+
*
|
|
322
|
+
* User.where('age', 49);
|
|
323
|
+
*
|
|
324
|
+
* @param {Object} val
|
|
325
|
+
* @return {Query} this
|
|
326
|
+
* @api public
|
|
327
|
+
*/
|
|
328
|
+
|
|
329
|
+
Query.prototype.equals = function equals(val) {
|
|
330
|
+
this._ensurePath('equals');
|
|
331
|
+
var path = this._path;
|
|
332
|
+
this._conditions[path] = val;
|
|
333
|
+
return this;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Specifies the complementary comparison value for paths specified with `where()`
|
|
338
|
+
* This is alias of `equals`
|
|
339
|
+
*
|
|
340
|
+
* ####Example
|
|
341
|
+
*
|
|
342
|
+
* User.where('age').eq(49);
|
|
343
|
+
*
|
|
344
|
+
* // is the same as
|
|
345
|
+
*
|
|
346
|
+
* User.shere('age').equals(49);
|
|
347
|
+
*
|
|
348
|
+
* // is the same as
|
|
349
|
+
*
|
|
350
|
+
* User.where('age', 49);
|
|
351
|
+
*
|
|
352
|
+
* @param {Object} val
|
|
353
|
+
* @return {Query} this
|
|
354
|
+
* @api public
|
|
355
|
+
*/
|
|
356
|
+
|
|
357
|
+
Query.prototype.eq = function eq(val) {
|
|
358
|
+
this._ensurePath('eq');
|
|
359
|
+
var path = this._path;
|
|
360
|
+
this._conditions[path] = val;
|
|
361
|
+
return this;
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Specifies arguments for an `$or` condition.
|
|
366
|
+
*
|
|
367
|
+
* ####Example
|
|
368
|
+
*
|
|
369
|
+
* query.or([{ color: 'red' }, { status: 'emergency' }])
|
|
370
|
+
*
|
|
371
|
+
* @param {Array} array array of conditions
|
|
372
|
+
* @return {Query} this
|
|
373
|
+
* @api public
|
|
374
|
+
*/
|
|
375
|
+
|
|
376
|
+
Query.prototype.or = function or(array) {
|
|
377
|
+
var or = this._conditions.$or || (this._conditions.$or = []);
|
|
378
|
+
if (!utils.isArray(array)) array = [array];
|
|
379
|
+
or.push.apply(or, array);
|
|
380
|
+
return this;
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Specifies arguments for a `$nor` condition.
|
|
385
|
+
*
|
|
386
|
+
* ####Example
|
|
387
|
+
*
|
|
388
|
+
* query.nor([{ color: 'green' }, { status: 'ok' }])
|
|
389
|
+
*
|
|
390
|
+
* @param {Array} array array of conditions
|
|
391
|
+
* @return {Query} this
|
|
392
|
+
* @api public
|
|
393
|
+
*/
|
|
394
|
+
|
|
395
|
+
Query.prototype.nor = function nor(array) {
|
|
396
|
+
var nor = this._conditions.$nor || (this._conditions.$nor = []);
|
|
397
|
+
if (!utils.isArray(array)) array = [array];
|
|
398
|
+
nor.push.apply(nor, array);
|
|
399
|
+
return this;
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Specifies arguments for a `$and` condition.
|
|
404
|
+
*
|
|
405
|
+
* ####Example
|
|
406
|
+
*
|
|
407
|
+
* query.and([{ color: 'green' }, { status: 'ok' }])
|
|
408
|
+
*
|
|
409
|
+
* @see $and http://docs.mongodb.org/manual/reference/operator/and/
|
|
410
|
+
* @param {Array} array array of conditions
|
|
411
|
+
* @return {Query} this
|
|
412
|
+
* @api public
|
|
413
|
+
*/
|
|
414
|
+
|
|
415
|
+
Query.prototype.and = function and(array) {
|
|
416
|
+
var and = this._conditions.$and || (this._conditions.$and = []);
|
|
417
|
+
if (!Array.isArray(array)) array = [array];
|
|
418
|
+
and.push.apply(and, array);
|
|
419
|
+
return this;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Specifies a $gt query condition.
|
|
424
|
+
*
|
|
425
|
+
* When called with one argument, the most recent path passed to `where()` is used.
|
|
426
|
+
*
|
|
427
|
+
* ####Example
|
|
428
|
+
*
|
|
429
|
+
* Thing.find().where('age').gt(21)
|
|
430
|
+
*
|
|
431
|
+
* // or
|
|
432
|
+
* Thing.find().gt('age', 21)
|
|
433
|
+
*
|
|
434
|
+
* @method gt
|
|
435
|
+
* @memberOf Query
|
|
436
|
+
* @param {String} [path]
|
|
437
|
+
* @param {Number} val
|
|
438
|
+
* @api public
|
|
439
|
+
*/
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Specifies a $gte query condition.
|
|
443
|
+
*
|
|
444
|
+
* When called with one argument, the most recent path passed to `where()` is used.
|
|
445
|
+
*
|
|
446
|
+
* @method gte
|
|
447
|
+
* @memberOf Query
|
|
448
|
+
* @param {String} [path]
|
|
449
|
+
* @param {Number} val
|
|
450
|
+
* @api public
|
|
451
|
+
*/
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Specifies a $lt query condition.
|
|
455
|
+
*
|
|
456
|
+
* When called with one argument, the most recent path passed to `where()` is used.
|
|
457
|
+
*
|
|
458
|
+
* @method lt
|
|
459
|
+
* @memberOf Query
|
|
460
|
+
* @param {String} [path]
|
|
461
|
+
* @param {Number} val
|
|
462
|
+
* @api public
|
|
463
|
+
*/
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Specifies a $lte query condition.
|
|
467
|
+
*
|
|
468
|
+
* When called with one argument, the most recent path passed to `where()` is used.
|
|
469
|
+
*
|
|
470
|
+
* @method lte
|
|
471
|
+
* @memberOf Query
|
|
472
|
+
* @param {String} [path]
|
|
473
|
+
* @param {Number} val
|
|
474
|
+
* @api public
|
|
475
|
+
*/
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Specifies a $ne query condition.
|
|
479
|
+
*
|
|
480
|
+
* When called with one argument, the most recent path passed to `where()` is used.
|
|
481
|
+
*
|
|
482
|
+
* @method ne
|
|
483
|
+
* @memberOf Query
|
|
484
|
+
* @param {String} [path]
|
|
485
|
+
* @param {Number} val
|
|
486
|
+
* @api public
|
|
487
|
+
*/
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Specifies an $in query condition.
|
|
491
|
+
*
|
|
492
|
+
* When called with one argument, the most recent path passed to `where()` is used.
|
|
493
|
+
*
|
|
494
|
+
* @method in
|
|
495
|
+
* @memberOf Query
|
|
496
|
+
* @param {String} [path]
|
|
497
|
+
* @param {Number} val
|
|
498
|
+
* @api public
|
|
499
|
+
*/
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Specifies an $nin query condition.
|
|
503
|
+
*
|
|
504
|
+
* When called with one argument, the most recent path passed to `where()` is used.
|
|
505
|
+
*
|
|
506
|
+
* @method nin
|
|
507
|
+
* @memberOf Query
|
|
508
|
+
* @param {String} [path]
|
|
509
|
+
* @param {Number} val
|
|
510
|
+
* @api public
|
|
511
|
+
*/
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Specifies an $all query condition.
|
|
515
|
+
*
|
|
516
|
+
* When called with one argument, the most recent path passed to `where()` is used.
|
|
517
|
+
*
|
|
518
|
+
* @method all
|
|
519
|
+
* @memberOf Query
|
|
520
|
+
* @param {String} [path]
|
|
521
|
+
* @param {Number} val
|
|
522
|
+
* @api public
|
|
523
|
+
*/
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Specifies a $size query condition.
|
|
527
|
+
*
|
|
528
|
+
* When called with one argument, the most recent path passed to `where()` is used.
|
|
529
|
+
*
|
|
530
|
+
* @method size
|
|
531
|
+
* @memberOf Query
|
|
532
|
+
* @param {String} [path]
|
|
533
|
+
* @param {Number} val
|
|
534
|
+
* @api public
|
|
535
|
+
*/
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Specifies a $regex query condition.
|
|
539
|
+
*
|
|
540
|
+
* When called with one argument, the most recent path passed to `where()` is used.
|
|
541
|
+
*
|
|
542
|
+
* @method regex
|
|
543
|
+
* @memberOf Query
|
|
544
|
+
* @param {String} [path]
|
|
545
|
+
* @param {String|RegExp} val
|
|
546
|
+
* @api public
|
|
547
|
+
*/
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Specifies a $maxDistance query condition.
|
|
551
|
+
*
|
|
552
|
+
* When called with one argument, the most recent path passed to `where()` is used.
|
|
553
|
+
*
|
|
554
|
+
* @method maxDistance
|
|
555
|
+
* @memberOf Query
|
|
556
|
+
* @param {String} [path]
|
|
557
|
+
* @param {Number} val
|
|
558
|
+
* @api public
|
|
559
|
+
*/
|
|
560
|
+
|
|
561
|
+
/*!
|
|
562
|
+
* gt, gte, lt, lte, ne, in, nin, all, regex, size, maxDistance
|
|
563
|
+
*
|
|
564
|
+
* Thing.where('type').nin(array)
|
|
565
|
+
*/
|
|
566
|
+
|
|
567
|
+
'gt gte lt lte ne in nin all regex size maxDistance minDistance'.split(' ').forEach(function($conditional) {
|
|
568
|
+
Query.prototype[$conditional] = function() {
|
|
569
|
+
var path, val;
|
|
570
|
+
|
|
571
|
+
if (1 === arguments.length) {
|
|
572
|
+
this._ensurePath($conditional);
|
|
573
|
+
val = arguments[0];
|
|
574
|
+
path = this._path;
|
|
575
|
+
} else {
|
|
576
|
+
val = arguments[1];
|
|
577
|
+
path = arguments[0];
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
var conds = this._conditions[path] === null || typeof this._conditions[path] === 'object' ?
|
|
581
|
+
this._conditions[path] :
|
|
582
|
+
(this._conditions[path] = {});
|
|
583
|
+
conds['$' + $conditional] = val;
|
|
584
|
+
return this;
|
|
585
|
+
};
|
|
586
|
+
});
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Specifies a `$mod` condition
|
|
590
|
+
*
|
|
591
|
+
* @param {String} [path]
|
|
592
|
+
* @param {Number} val
|
|
593
|
+
* @return {Query} this
|
|
594
|
+
* @api public
|
|
595
|
+
*/
|
|
596
|
+
|
|
597
|
+
Query.prototype.mod = function() {
|
|
598
|
+
var val, path;
|
|
599
|
+
|
|
600
|
+
if (1 === arguments.length) {
|
|
601
|
+
this._ensurePath('mod');
|
|
602
|
+
val = arguments[0];
|
|
603
|
+
path = this._path;
|
|
604
|
+
} else if (2 === arguments.length && !utils.isArray(arguments[1])) {
|
|
605
|
+
this._ensurePath('mod');
|
|
606
|
+
val = sliced(arguments);
|
|
607
|
+
path = this._path;
|
|
608
|
+
} else if (3 === arguments.length) {
|
|
609
|
+
val = sliced(arguments, 1);
|
|
610
|
+
path = arguments[0];
|
|
611
|
+
} else {
|
|
612
|
+
val = arguments[1];
|
|
613
|
+
path = arguments[0];
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
var conds = this._conditions[path] || (this._conditions[path] = {});
|
|
617
|
+
conds.$mod = val;
|
|
618
|
+
return this;
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Specifies an `$exists` condition
|
|
623
|
+
*
|
|
624
|
+
* ####Example
|
|
625
|
+
*
|
|
626
|
+
* // { name: { $exists: true }}
|
|
627
|
+
* Thing.where('name').exists()
|
|
628
|
+
* Thing.where('name').exists(true)
|
|
629
|
+
* Thing.find().exists('name')
|
|
630
|
+
*
|
|
631
|
+
* // { name: { $exists: false }}
|
|
632
|
+
* Thing.where('name').exists(false);
|
|
633
|
+
* Thing.find().exists('name', false);
|
|
634
|
+
*
|
|
635
|
+
* @param {String} [path]
|
|
636
|
+
* @param {Number} val
|
|
637
|
+
* @return {Query} this
|
|
638
|
+
* @api public
|
|
639
|
+
*/
|
|
640
|
+
|
|
641
|
+
Query.prototype.exists = function() {
|
|
642
|
+
var path, val;
|
|
643
|
+
|
|
644
|
+
if (0 === arguments.length) {
|
|
645
|
+
this._ensurePath('exists');
|
|
646
|
+
path = this._path;
|
|
647
|
+
val = true;
|
|
648
|
+
} else if (1 === arguments.length) {
|
|
649
|
+
if ('boolean' === typeof arguments[0]) {
|
|
650
|
+
this._ensurePath('exists');
|
|
651
|
+
path = this._path;
|
|
652
|
+
val = arguments[0];
|
|
653
|
+
} else {
|
|
654
|
+
path = arguments[0];
|
|
655
|
+
val = true;
|
|
656
|
+
}
|
|
657
|
+
} else if (2 === arguments.length) {
|
|
658
|
+
path = arguments[0];
|
|
659
|
+
val = arguments[1];
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
var conds = this._conditions[path] || (this._conditions[path] = {});
|
|
663
|
+
conds.$exists = val;
|
|
664
|
+
return this;
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Specifies an `$elemMatch` condition
|
|
669
|
+
*
|
|
670
|
+
* ####Example
|
|
671
|
+
*
|
|
672
|
+
* query.elemMatch('comment', { author: 'autobot', votes: {$gte: 5}})
|
|
673
|
+
*
|
|
674
|
+
* query.where('comment').elemMatch({ author: 'autobot', votes: {$gte: 5}})
|
|
675
|
+
*
|
|
676
|
+
* query.elemMatch('comment', function (elem) {
|
|
677
|
+
* elem.where('author').equals('autobot');
|
|
678
|
+
* elem.where('votes').gte(5);
|
|
679
|
+
* })
|
|
680
|
+
*
|
|
681
|
+
* query.where('comment').elemMatch(function (elem) {
|
|
682
|
+
* elem.where({ author: 'autobot' });
|
|
683
|
+
* elem.where('votes').gte(5);
|
|
684
|
+
* })
|
|
685
|
+
*
|
|
686
|
+
* @param {String|Object|Function} path
|
|
687
|
+
* @param {Object|Function} criteria
|
|
688
|
+
* @return {Query} this
|
|
689
|
+
* @api public
|
|
690
|
+
*/
|
|
691
|
+
|
|
692
|
+
Query.prototype.elemMatch = function() {
|
|
693
|
+
if (null == arguments[0])
|
|
694
|
+
throw new TypeError('Invalid argument');
|
|
695
|
+
|
|
696
|
+
var fn, path, criteria;
|
|
697
|
+
|
|
698
|
+
if ('function' === typeof arguments[0]) {
|
|
699
|
+
this._ensurePath('elemMatch');
|
|
700
|
+
path = this._path;
|
|
701
|
+
fn = arguments[0];
|
|
702
|
+
} else if (utils.isObject(arguments[0])) {
|
|
703
|
+
this._ensurePath('elemMatch');
|
|
704
|
+
path = this._path;
|
|
705
|
+
criteria = arguments[0];
|
|
706
|
+
} else if ('function' === typeof arguments[1]) {
|
|
707
|
+
path = arguments[0];
|
|
708
|
+
fn = arguments[1];
|
|
709
|
+
} else if (arguments[1] && utils.isObject(arguments[1])) {
|
|
710
|
+
path = arguments[0];
|
|
711
|
+
criteria = arguments[1];
|
|
712
|
+
} else {
|
|
713
|
+
throw new TypeError('Invalid argument');
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
if (fn) {
|
|
717
|
+
criteria = new Query;
|
|
718
|
+
fn(criteria);
|
|
719
|
+
criteria = criteria._conditions;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
var conds = this._conditions[path] || (this._conditions[path] = {});
|
|
723
|
+
conds.$elemMatch = criteria;
|
|
724
|
+
return this;
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
// Spatial queries
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Sugar for geo-spatial queries.
|
|
731
|
+
*
|
|
732
|
+
* ####Example
|
|
733
|
+
*
|
|
734
|
+
* query.within().box()
|
|
735
|
+
* query.within().circle()
|
|
736
|
+
* query.within().geometry()
|
|
737
|
+
*
|
|
738
|
+
* query.where('loc').within({ center: [50,50], radius: 10, unique: true, spherical: true });
|
|
739
|
+
* query.where('loc').within({ box: [[40.73, -73.9], [40.7, -73.988]] });
|
|
740
|
+
* query.where('loc').within({ polygon: [[],[],[],[]] });
|
|
741
|
+
*
|
|
742
|
+
* query.where('loc').within([], [], []) // polygon
|
|
743
|
+
* query.where('loc').within([], []) // box
|
|
744
|
+
* query.where('loc').within({ type: 'LineString', coordinates: [...] }); // geometry
|
|
745
|
+
*
|
|
746
|
+
* ####NOTE:
|
|
747
|
+
*
|
|
748
|
+
* Must be used after `where()`.
|
|
749
|
+
*
|
|
750
|
+
* @memberOf Query
|
|
751
|
+
* @return {Query} this
|
|
752
|
+
* @api public
|
|
753
|
+
*/
|
|
754
|
+
|
|
755
|
+
Query.prototype.within = function within() {
|
|
756
|
+
// opinionated, must be used after where
|
|
757
|
+
this._ensurePath('within');
|
|
758
|
+
this._geoComparison = $withinCmd;
|
|
759
|
+
|
|
760
|
+
if (0 === arguments.length) {
|
|
761
|
+
return this;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
if (2 === arguments.length) {
|
|
765
|
+
return this.box.apply(this, arguments);
|
|
766
|
+
} else if (2 < arguments.length) {
|
|
767
|
+
return this.polygon.apply(this, arguments);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
var area = arguments[0];
|
|
771
|
+
|
|
772
|
+
if (!area)
|
|
773
|
+
throw new TypeError('Invalid argument');
|
|
774
|
+
|
|
775
|
+
if (area.center)
|
|
776
|
+
return this.circle(area);
|
|
777
|
+
|
|
778
|
+
if (area.box)
|
|
779
|
+
return this.box.apply(this, area.box);
|
|
780
|
+
|
|
781
|
+
if (area.polygon)
|
|
782
|
+
return this.polygon.apply(this, area.polygon);
|
|
783
|
+
|
|
784
|
+
if (area.type && area.coordinates)
|
|
785
|
+
return this.geometry(area);
|
|
786
|
+
|
|
787
|
+
throw new TypeError('Invalid argument');
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Specifies a $box condition
|
|
792
|
+
*
|
|
793
|
+
* ####Example
|
|
794
|
+
*
|
|
795
|
+
* var lowerLeft = [40.73083, -73.99756]
|
|
796
|
+
* var upperRight= [40.741404, -73.988135]
|
|
797
|
+
*
|
|
798
|
+
* query.where('loc').within().box(lowerLeft, upperRight)
|
|
799
|
+
* query.box('loc', lowerLeft, upperRight )
|
|
800
|
+
*
|
|
801
|
+
* @see http://www.mongodb.org/display/DOCS/Geospatial+Indexing
|
|
802
|
+
* @see Query#within #query_Query-within
|
|
803
|
+
* @param {String} path
|
|
804
|
+
* @param {Object} val
|
|
805
|
+
* @return {Query} this
|
|
806
|
+
* @api public
|
|
807
|
+
*/
|
|
808
|
+
|
|
809
|
+
Query.prototype.box = function() {
|
|
810
|
+
var path, box;
|
|
811
|
+
|
|
812
|
+
if (3 === arguments.length) {
|
|
813
|
+
// box('loc', [], [])
|
|
814
|
+
path = arguments[0];
|
|
815
|
+
box = [arguments[1], arguments[2]];
|
|
816
|
+
} else if (2 === arguments.length) {
|
|
817
|
+
// box([], [])
|
|
818
|
+
this._ensurePath('box');
|
|
819
|
+
path = this._path;
|
|
820
|
+
box = [arguments[0], arguments[1]];
|
|
821
|
+
} else {
|
|
822
|
+
throw new TypeError('Invalid argument');
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
var conds = this._conditions[path] || (this._conditions[path] = {});
|
|
826
|
+
conds[this._geoComparison || $withinCmd] = { '$box': box };
|
|
827
|
+
return this;
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Specifies a $polygon condition
|
|
832
|
+
*
|
|
833
|
+
* ####Example
|
|
834
|
+
*
|
|
835
|
+
* query.where('loc').within().polygon([10,20], [13, 25], [7,15])
|
|
836
|
+
* query.polygon('loc', [10,20], [13, 25], [7,15])
|
|
837
|
+
*
|
|
838
|
+
* @param {String|Array} [path]
|
|
839
|
+
* @param {Array|Object} [val]
|
|
840
|
+
* @return {Query} this
|
|
841
|
+
* @see http://www.mongodb.org/display/DOCS/Geospatial+Indexing
|
|
842
|
+
* @api public
|
|
843
|
+
*/
|
|
844
|
+
|
|
845
|
+
Query.prototype.polygon = function() {
|
|
846
|
+
var val, path;
|
|
847
|
+
|
|
848
|
+
if ('string' == typeof arguments[0]) {
|
|
849
|
+
// polygon('loc', [],[],[])
|
|
850
|
+
path = arguments[0];
|
|
851
|
+
val = sliced(arguments, 1);
|
|
852
|
+
} else {
|
|
853
|
+
// polygon([],[],[])
|
|
854
|
+
this._ensurePath('polygon');
|
|
855
|
+
path = this._path;
|
|
856
|
+
val = sliced(arguments);
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
var conds = this._conditions[path] || (this._conditions[path] = {});
|
|
860
|
+
conds[this._geoComparison || $withinCmd] = { '$polygon': val };
|
|
861
|
+
return this;
|
|
862
|
+
};
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* Specifies a $center or $centerSphere condition.
|
|
866
|
+
*
|
|
867
|
+
* ####Example
|
|
868
|
+
*
|
|
869
|
+
* var area = { center: [50, 50], radius: 10, unique: true }
|
|
870
|
+
* query.where('loc').within().circle(area)
|
|
871
|
+
* query.center('loc', area);
|
|
872
|
+
*
|
|
873
|
+
* // for spherical calculations
|
|
874
|
+
* var area = { center: [50, 50], radius: 10, unique: true, spherical: true }
|
|
875
|
+
* query.where('loc').within().circle(area)
|
|
876
|
+
* query.center('loc', area);
|
|
877
|
+
*
|
|
878
|
+
* @param {String} [path]
|
|
879
|
+
* @param {Object} area
|
|
880
|
+
* @return {Query} this
|
|
881
|
+
* @see http://www.mongodb.org/display/DOCS/Geospatial+Indexing
|
|
882
|
+
* @api public
|
|
883
|
+
*/
|
|
884
|
+
|
|
885
|
+
Query.prototype.circle = function() {
|
|
886
|
+
var path, val;
|
|
887
|
+
|
|
888
|
+
if (1 === arguments.length) {
|
|
889
|
+
this._ensurePath('circle');
|
|
890
|
+
path = this._path;
|
|
891
|
+
val = arguments[0];
|
|
892
|
+
} else if (2 === arguments.length) {
|
|
893
|
+
path = arguments[0];
|
|
894
|
+
val = arguments[1];
|
|
895
|
+
} else {
|
|
896
|
+
throw new TypeError('Invalid argument');
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
if (!('radius' in val && val.center))
|
|
900
|
+
throw new Error('center and radius are required');
|
|
901
|
+
|
|
902
|
+
var conds = this._conditions[path] || (this._conditions[path] = {});
|
|
903
|
+
|
|
904
|
+
var type = val.spherical
|
|
905
|
+
? '$centerSphere'
|
|
906
|
+
: '$center';
|
|
907
|
+
|
|
908
|
+
var wKey = this._geoComparison || $withinCmd;
|
|
909
|
+
conds[wKey] = {};
|
|
910
|
+
conds[wKey][type] = [val.center, val.radius];
|
|
911
|
+
|
|
912
|
+
if ('unique' in val)
|
|
913
|
+
conds[wKey].$uniqueDocs = !!val.unique;
|
|
914
|
+
|
|
915
|
+
return this;
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Specifies a `$near` or `$nearSphere` condition
|
|
920
|
+
*
|
|
921
|
+
* These operators return documents sorted by distance.
|
|
922
|
+
*
|
|
923
|
+
* ####Example
|
|
924
|
+
*
|
|
925
|
+
* query.where('loc').near({ center: [10, 10] });
|
|
926
|
+
* query.where('loc').near({ center: [10, 10], maxDistance: 5 });
|
|
927
|
+
* query.where('loc').near({ center: [10, 10], maxDistance: 5, spherical: true });
|
|
928
|
+
* query.near('loc', { center: [10, 10], maxDistance: 5 });
|
|
929
|
+
* query.near({ center: { type: 'Point', coordinates: [..] }})
|
|
930
|
+
* query.near().geometry({ type: 'Point', coordinates: [..] })
|
|
931
|
+
*
|
|
932
|
+
* @param {String} [path]
|
|
933
|
+
* @param {Object} val
|
|
934
|
+
* @return {Query} this
|
|
935
|
+
* @see http://www.mongodb.org/display/DOCS/Geospatial+Indexing
|
|
936
|
+
* @api public
|
|
937
|
+
*/
|
|
938
|
+
|
|
939
|
+
Query.prototype.near = function near() {
|
|
940
|
+
var path, val;
|
|
941
|
+
|
|
942
|
+
this._geoComparison = '$near';
|
|
943
|
+
|
|
944
|
+
if (0 === arguments.length) {
|
|
945
|
+
return this;
|
|
946
|
+
} else if (1 === arguments.length) {
|
|
947
|
+
this._ensurePath('near');
|
|
948
|
+
path = this._path;
|
|
949
|
+
val = arguments[0];
|
|
950
|
+
} else if (2 === arguments.length) {
|
|
951
|
+
path = arguments[0];
|
|
952
|
+
val = arguments[1];
|
|
953
|
+
} else {
|
|
954
|
+
throw new TypeError('Invalid argument');
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
if (!val.center) {
|
|
958
|
+
throw new Error('center is required');
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
var conds = this._conditions[path] || (this._conditions[path] = {});
|
|
962
|
+
|
|
963
|
+
var type = val.spherical
|
|
964
|
+
? '$nearSphere'
|
|
965
|
+
: '$near';
|
|
966
|
+
|
|
967
|
+
// center could be a GeoJSON object or an Array
|
|
968
|
+
if (Array.isArray(val.center)) {
|
|
969
|
+
conds[type] = val.center;
|
|
970
|
+
|
|
971
|
+
var radius = 'maxDistance' in val
|
|
972
|
+
? val.maxDistance
|
|
973
|
+
: null;
|
|
974
|
+
|
|
975
|
+
if (null != radius) {
|
|
976
|
+
conds.$maxDistance = radius;
|
|
977
|
+
}
|
|
978
|
+
if (null != val.minDistance) {
|
|
979
|
+
conds.$minDistance = val.minDistance;
|
|
980
|
+
}
|
|
981
|
+
} else {
|
|
982
|
+
// GeoJSON?
|
|
983
|
+
if (val.center.type != 'Point' || !Array.isArray(val.center.coordinates)) {
|
|
984
|
+
throw new Error(util.format('Invalid GeoJSON specified for %s', type));
|
|
985
|
+
}
|
|
986
|
+
conds[type] = { $geometry : val.center };
|
|
987
|
+
|
|
988
|
+
// MongoDB 2.6 insists on maxDistance being in $near / $nearSphere
|
|
989
|
+
if ('maxDistance' in val) {
|
|
990
|
+
conds[type]['$maxDistance'] = val.maxDistance;
|
|
991
|
+
}
|
|
992
|
+
if ('minDistance' in val) {
|
|
993
|
+
conds[type]['$minDistance'] = val.minDistance;
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
return this;
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* Declares an intersects query for `geometry()`.
|
|
1002
|
+
*
|
|
1003
|
+
* ####Example
|
|
1004
|
+
*
|
|
1005
|
+
* query.where('path').intersects().geometry({
|
|
1006
|
+
* type: 'LineString'
|
|
1007
|
+
* , coordinates: [[180.0, 11.0], [180, 9.0]]
|
|
1008
|
+
* })
|
|
1009
|
+
*
|
|
1010
|
+
* query.where('path').intersects({
|
|
1011
|
+
* type: 'LineString'
|
|
1012
|
+
* , coordinates: [[180.0, 11.0], [180, 9.0]]
|
|
1013
|
+
* })
|
|
1014
|
+
*
|
|
1015
|
+
* @param {Object} [arg]
|
|
1016
|
+
* @return {Query} this
|
|
1017
|
+
* @api public
|
|
1018
|
+
*/
|
|
1019
|
+
|
|
1020
|
+
Query.prototype.intersects = function intersects() {
|
|
1021
|
+
// opinionated, must be used after where
|
|
1022
|
+
this._ensurePath('intersects');
|
|
1023
|
+
|
|
1024
|
+
this._geoComparison = '$geoIntersects';
|
|
1025
|
+
|
|
1026
|
+
if (0 === arguments.length) {
|
|
1027
|
+
return this;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
var area = arguments[0];
|
|
1031
|
+
|
|
1032
|
+
if (null != area && area.type && area.coordinates)
|
|
1033
|
+
return this.geometry(area);
|
|
1034
|
+
|
|
1035
|
+
throw new TypeError('Invalid argument');
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Specifies a `$geometry` condition
|
|
1040
|
+
*
|
|
1041
|
+
* ####Example
|
|
1042
|
+
*
|
|
1043
|
+
* var polyA = [[[ 10, 20 ], [ 10, 40 ], [ 30, 40 ], [ 30, 20 ]]]
|
|
1044
|
+
* query.where('loc').within().geometry({ type: 'Polygon', coordinates: polyA })
|
|
1045
|
+
*
|
|
1046
|
+
* // or
|
|
1047
|
+
* var polyB = [[ 0, 0 ], [ 1, 1 ]]
|
|
1048
|
+
* query.where('loc').within().geometry({ type: 'LineString', coordinates: polyB })
|
|
1049
|
+
*
|
|
1050
|
+
* // or
|
|
1051
|
+
* var polyC = [ 0, 0 ]
|
|
1052
|
+
* query.where('loc').within().geometry({ type: 'Point', coordinates: polyC })
|
|
1053
|
+
*
|
|
1054
|
+
* // or
|
|
1055
|
+
* query.where('loc').intersects().geometry({ type: 'Point', coordinates: polyC })
|
|
1056
|
+
*
|
|
1057
|
+
* ####NOTE:
|
|
1058
|
+
*
|
|
1059
|
+
* `geometry()` **must** come after either `intersects()` or `within()`.
|
|
1060
|
+
*
|
|
1061
|
+
* The `object` argument must contain `type` and `coordinates` properties.
|
|
1062
|
+
* - type {String}
|
|
1063
|
+
* - coordinates {Array}
|
|
1064
|
+
*
|
|
1065
|
+
* The most recent path passed to `where()` is used.
|
|
1066
|
+
*
|
|
1067
|
+
* @param {Object} object Must contain a `type` property which is a String and a `coordinates` property which is an Array. See the examples.
|
|
1068
|
+
* @return {Query} this
|
|
1069
|
+
* @see http://docs.mongodb.org/manual/release-notes/2.4/#new-geospatial-indexes-with-geojson-and-improved-spherical-geometry
|
|
1070
|
+
* @see http://www.mongodb.org/display/DOCS/Geospatial+Indexing
|
|
1071
|
+
* @see $geometry http://docs.mongodb.org/manual/reference/operator/geometry/
|
|
1072
|
+
* @api public
|
|
1073
|
+
*/
|
|
1074
|
+
|
|
1075
|
+
Query.prototype.geometry = function geometry() {
|
|
1076
|
+
if (!('$within' == this._geoComparison ||
|
|
1077
|
+
'$geoWithin' == this._geoComparison ||
|
|
1078
|
+
'$near' == this._geoComparison ||
|
|
1079
|
+
'$geoIntersects' == this._geoComparison)) {
|
|
1080
|
+
throw new Error('geometry() must come after `within()`, `intersects()`, or `near()');
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
var val, path;
|
|
1084
|
+
|
|
1085
|
+
if (1 === arguments.length) {
|
|
1086
|
+
this._ensurePath('geometry');
|
|
1087
|
+
path = this._path;
|
|
1088
|
+
val = arguments[0];
|
|
1089
|
+
} else {
|
|
1090
|
+
throw new TypeError('Invalid argument');
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
if (!(val.type && Array.isArray(val.coordinates))) {
|
|
1094
|
+
throw new TypeError('Invalid argument');
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
var conds = this._conditions[path] || (this._conditions[path] = {});
|
|
1098
|
+
conds[this._geoComparison] = { $geometry: val };
|
|
1099
|
+
|
|
1100
|
+
return this;
|
|
1101
|
+
};
|
|
1102
|
+
|
|
1103
|
+
// end spatial
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Specifies which document fields to include or exclude
|
|
1107
|
+
*
|
|
1108
|
+
* ####String syntax
|
|
1109
|
+
*
|
|
1110
|
+
* When passing a string, prefixing a path with `-` will flag that path as excluded. When a path does not have the `-` prefix, it is included.
|
|
1111
|
+
*
|
|
1112
|
+
* ####Example
|
|
1113
|
+
*
|
|
1114
|
+
* // include a and b, exclude c
|
|
1115
|
+
* query.select('a b -c');
|
|
1116
|
+
*
|
|
1117
|
+
* // or you may use object notation, useful when
|
|
1118
|
+
* // you have keys already prefixed with a "-"
|
|
1119
|
+
* query.select({a: 1, b: 1, c: 0});
|
|
1120
|
+
*
|
|
1121
|
+
* ####Note
|
|
1122
|
+
*
|
|
1123
|
+
* Cannot be used with `distinct()`
|
|
1124
|
+
*
|
|
1125
|
+
* @param {Object|String} arg
|
|
1126
|
+
* @return {Query} this
|
|
1127
|
+
* @see SchemaType
|
|
1128
|
+
* @api public
|
|
1129
|
+
*/
|
|
1130
|
+
|
|
1131
|
+
Query.prototype.select = function select() {
|
|
1132
|
+
var arg = arguments[0];
|
|
1133
|
+
if (!arg) return this;
|
|
1134
|
+
|
|
1135
|
+
if (arguments.length !== 1) {
|
|
1136
|
+
throw new Error('Invalid select: select only takes 1 argument');
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
this._validate('select');
|
|
1140
|
+
|
|
1141
|
+
var fields = this._fields || (this._fields = {});
|
|
1142
|
+
var type = typeof arg;
|
|
1143
|
+
var i, len;
|
|
1144
|
+
|
|
1145
|
+
if (('string' == type || utils.isArgumentsObject(arg)) &&
|
|
1146
|
+
'number' == typeof arg.length || Array.isArray(arg)) {
|
|
1147
|
+
if ('string' == type)
|
|
1148
|
+
arg = arg.split(/\s+/);
|
|
1149
|
+
|
|
1150
|
+
for (i = 0, len = arg.length; i < len; ++i) {
|
|
1151
|
+
var field = arg[i];
|
|
1152
|
+
if (!field) continue;
|
|
1153
|
+
var include = '-' == field[0] ? 0 : 1;
|
|
1154
|
+
if (include === 0) field = field.substring(1);
|
|
1155
|
+
fields[field] = include;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
return this;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
if (utils.isObject(arg)) {
|
|
1162
|
+
var keys = utils.keys(arg);
|
|
1163
|
+
for (i = 0; i < keys.length; ++i) {
|
|
1164
|
+
fields[keys[i]] = arg[keys[i]];
|
|
1165
|
+
}
|
|
1166
|
+
return this;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
throw new TypeError('Invalid select() argument. Must be string or object.');
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* Specifies a $slice condition for a `path`
|
|
1174
|
+
*
|
|
1175
|
+
* ####Example
|
|
1176
|
+
*
|
|
1177
|
+
* query.slice('comments', 5)
|
|
1178
|
+
* query.slice('comments', -5)
|
|
1179
|
+
* query.slice('comments', [10, 5])
|
|
1180
|
+
* query.where('comments').slice(5)
|
|
1181
|
+
* query.where('comments').slice([-10, 5])
|
|
1182
|
+
*
|
|
1183
|
+
* @param {String} [path]
|
|
1184
|
+
* @param {Number} val number/range of elements to slice
|
|
1185
|
+
* @return {Query} this
|
|
1186
|
+
* @see mongodb http://www.mongodb.org/display/DOCS/Retrieving+a+Subset+of+Fields#RetrievingaSubsetofFields-RetrievingaSubrangeofArrayElements
|
|
1187
|
+
* @api public
|
|
1188
|
+
*/
|
|
1189
|
+
|
|
1190
|
+
Query.prototype.slice = function() {
|
|
1191
|
+
if (0 === arguments.length)
|
|
1192
|
+
return this;
|
|
1193
|
+
|
|
1194
|
+
this._validate('slice');
|
|
1195
|
+
|
|
1196
|
+
var path, val;
|
|
1197
|
+
|
|
1198
|
+
if (1 === arguments.length) {
|
|
1199
|
+
var arg = arguments[0];
|
|
1200
|
+
if (typeof arg === 'object' && !Array.isArray(arg)) {
|
|
1201
|
+
var keys = Object.keys(arg);
|
|
1202
|
+
var numKeys = keys.length;
|
|
1203
|
+
for (var i = 0; i < numKeys; ++i) {
|
|
1204
|
+
this.slice(keys[i], arg[keys[i]]);
|
|
1205
|
+
}
|
|
1206
|
+
return this;
|
|
1207
|
+
}
|
|
1208
|
+
this._ensurePath('slice');
|
|
1209
|
+
path = this._path;
|
|
1210
|
+
val = arguments[0];
|
|
1211
|
+
} else if (2 === arguments.length) {
|
|
1212
|
+
if ('number' === typeof arguments[0]) {
|
|
1213
|
+
this._ensurePath('slice');
|
|
1214
|
+
path = this._path;
|
|
1215
|
+
val = sliced(arguments);
|
|
1216
|
+
} else {
|
|
1217
|
+
path = arguments[0];
|
|
1218
|
+
val = arguments[1];
|
|
1219
|
+
}
|
|
1220
|
+
} else if (3 === arguments.length) {
|
|
1221
|
+
path = arguments[0];
|
|
1222
|
+
val = sliced(arguments, 1);
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
var myFields = this._fields || (this._fields = {});
|
|
1226
|
+
myFields[path] = { '$slice': val };
|
|
1227
|
+
return this;
|
|
1228
|
+
};
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Sets the sort order
|
|
1232
|
+
*
|
|
1233
|
+
* If an object is passed, values allowed are 'asc', 'desc', 'ascending', 'descending', 1, and -1.
|
|
1234
|
+
*
|
|
1235
|
+
* If a string is passed, it must be a space delimited list of path names. The sort order of each path is ascending unless the path name is prefixed with `-` which will be treated as descending.
|
|
1236
|
+
*
|
|
1237
|
+
* ####Example
|
|
1238
|
+
*
|
|
1239
|
+
* // these are equivalent
|
|
1240
|
+
* query.sort({ field: 'asc', test: -1 });
|
|
1241
|
+
* query.sort('field -test');
|
|
1242
|
+
* query.sort([['field', 1], ['test', -1]]);
|
|
1243
|
+
*
|
|
1244
|
+
* ####Note
|
|
1245
|
+
*
|
|
1246
|
+
* - The array syntax `.sort([['field', 1], ['test', -1]])` can only be used with [mongodb driver >= 2.0.46](https://github.com/mongodb/node-mongodb-native/blob/2.1/HISTORY.md#2046-2015-10-15).
|
|
1247
|
+
* - Cannot be used with `distinct()`
|
|
1248
|
+
*
|
|
1249
|
+
* @param {Object|String|Array} arg
|
|
1250
|
+
* @return {Query} this
|
|
1251
|
+
* @api public
|
|
1252
|
+
*/
|
|
1253
|
+
|
|
1254
|
+
Query.prototype.sort = function(arg) {
|
|
1255
|
+
if (!arg) return this;
|
|
1256
|
+
var i, len, field;
|
|
1257
|
+
|
|
1258
|
+
this._validate('sort');
|
|
1259
|
+
|
|
1260
|
+
var type = typeof arg;
|
|
1261
|
+
|
|
1262
|
+
// .sort([['field', 1], ['test', -1]])
|
|
1263
|
+
if (Array.isArray(arg)) {
|
|
1264
|
+
len = arg.length;
|
|
1265
|
+
for (i = 0; i < arg.length; ++i) {
|
|
1266
|
+
if (!Array.isArray(arg[i])) {
|
|
1267
|
+
throw new Error('Invalid sort() argument, must be array of arrays');
|
|
1268
|
+
}
|
|
1269
|
+
_pushArr(this.options, arg[i][0], arg[i][1]);
|
|
1270
|
+
}
|
|
1271
|
+
return this;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
// .sort('field -test')
|
|
1275
|
+
if (1 === arguments.length && 'string' == type) {
|
|
1276
|
+
arg = arg.split(/\s+/);
|
|
1277
|
+
len = arg.length;
|
|
1278
|
+
for (i = 0; i < len; ++i) {
|
|
1279
|
+
field = arg[i];
|
|
1280
|
+
if (!field) continue;
|
|
1281
|
+
var ascend = '-' == field[0] ? -1 : 1;
|
|
1282
|
+
if (ascend === -1) field = field.substring(1);
|
|
1283
|
+
push(this.options, field, ascend);
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
return this;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
// .sort({ field: 1, test: -1 })
|
|
1290
|
+
if (utils.isObject(arg)) {
|
|
1291
|
+
var keys = utils.keys(arg);
|
|
1292
|
+
for (i = 0; i < keys.length; ++i) {
|
|
1293
|
+
field = keys[i];
|
|
1294
|
+
push(this.options, field, arg[field]);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
return this;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
if (typeof Map !== 'undefined' && arg instanceof Map) {
|
|
1301
|
+
_pushMap(this.options, arg);
|
|
1302
|
+
return this;
|
|
1303
|
+
}
|
|
1304
|
+
throw new TypeError('Invalid sort() argument. Must be a string, object, or array.');
|
|
1305
|
+
};
|
|
1306
|
+
|
|
1307
|
+
/*!
|
|
1308
|
+
* @ignore
|
|
1309
|
+
*/
|
|
1310
|
+
|
|
1311
|
+
var _validSortValue = {
|
|
1312
|
+
'1': 1,
|
|
1313
|
+
'-1': -1,
|
|
1314
|
+
'asc': 1,
|
|
1315
|
+
'ascending': 1,
|
|
1316
|
+
'desc': -1,
|
|
1317
|
+
'descending': -1
|
|
1318
|
+
};
|
|
1319
|
+
|
|
1320
|
+
function push(opts, field, value) {
|
|
1321
|
+
if (Array.isArray(opts.sort)) {
|
|
1322
|
+
throw new TypeError('Can\'t mix sort syntaxes. Use either array or object:' +
|
|
1323
|
+
'\n- `.sort([[\'field\', 1], [\'test\', -1]])`' +
|
|
1324
|
+
'\n- `.sort({ field: 1, test: -1 })`');
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
var s;
|
|
1328
|
+
if (value && value.$meta) {
|
|
1329
|
+
s = opts.sort || (opts.sort = {});
|
|
1330
|
+
s[field] = { $meta : value.$meta };
|
|
1331
|
+
return;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
s = opts.sort || (opts.sort = {});
|
|
1335
|
+
var val = String(value || 1).toLowerCase();
|
|
1336
|
+
val = _validSortValue[val];
|
|
1337
|
+
if (!val) throw new TypeError('Invalid sort value: { ' + field + ': ' + value + ' }');
|
|
1338
|
+
|
|
1339
|
+
s[field] = val;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
function _pushArr(opts, field, value) {
|
|
1343
|
+
opts.sort = opts.sort || [];
|
|
1344
|
+
if (!Array.isArray(opts.sort)) {
|
|
1345
|
+
throw new TypeError('Can\'t mix sort syntaxes. Use either array or object:' +
|
|
1346
|
+
'\n- `.sort([[\'field\', 1], [\'test\', -1]])`' +
|
|
1347
|
+
'\n- `.sort({ field: 1, test: -1 })`');
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
var val = String(value || 1).toLowerCase();
|
|
1351
|
+
val = _validSortValue[val];
|
|
1352
|
+
if (!val) throw new TypeError('Invalid sort value: [ ' + field + ', ' + value + ' ]');
|
|
1353
|
+
|
|
1354
|
+
opts.sort.push([field, val]);
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
function _pushMap(opts, map) {
|
|
1358
|
+
opts.sort = opts.sort || new Map();
|
|
1359
|
+
if (!(opts.sort instanceof Map)) {
|
|
1360
|
+
throw new TypeError('Can\'t mix sort syntaxes. Use either array or ' +
|
|
1361
|
+
'object or map consistently');
|
|
1362
|
+
}
|
|
1363
|
+
map.forEach(function(value, key) {
|
|
1364
|
+
var val = String(value || 1).toLowerCase();
|
|
1365
|
+
val = _validSortValue[val];
|
|
1366
|
+
if (!val) throw new TypeError('Invalid sort value: < ' + key + ': ' + value + ' >');
|
|
1367
|
+
|
|
1368
|
+
opts.sort.set(key, val);
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Specifies the limit option.
|
|
1376
|
+
*
|
|
1377
|
+
* ####Example
|
|
1378
|
+
*
|
|
1379
|
+
* query.limit(20)
|
|
1380
|
+
*
|
|
1381
|
+
* ####Note
|
|
1382
|
+
*
|
|
1383
|
+
* Cannot be used with `distinct()`
|
|
1384
|
+
*
|
|
1385
|
+
* @method limit
|
|
1386
|
+
* @memberOf Query
|
|
1387
|
+
* @param {Number} val
|
|
1388
|
+
* @see mongodb http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%7B%7Blimit%28%29%7D%7D
|
|
1389
|
+
* @api public
|
|
1390
|
+
*/
|
|
1391
|
+
/**
|
|
1392
|
+
* Specifies the skip option.
|
|
1393
|
+
*
|
|
1394
|
+
* ####Example
|
|
1395
|
+
*
|
|
1396
|
+
* query.skip(100).limit(20)
|
|
1397
|
+
*
|
|
1398
|
+
* ####Note
|
|
1399
|
+
*
|
|
1400
|
+
* Cannot be used with `distinct()`
|
|
1401
|
+
*
|
|
1402
|
+
* @method skip
|
|
1403
|
+
* @memberOf Query
|
|
1404
|
+
* @param {Number} val
|
|
1405
|
+
* @see mongodb http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%7B%7Bskip%28%29%7D%7D
|
|
1406
|
+
* @api public
|
|
1407
|
+
*/
|
|
1408
|
+
/**
|
|
1409
|
+
* Specifies the maxScan option.
|
|
1410
|
+
*
|
|
1411
|
+
* ####Example
|
|
1412
|
+
*
|
|
1413
|
+
* query.maxScan(100)
|
|
1414
|
+
*
|
|
1415
|
+
* ####Note
|
|
1416
|
+
*
|
|
1417
|
+
* Cannot be used with `distinct()`
|
|
1418
|
+
*
|
|
1419
|
+
* @method maxScan
|
|
1420
|
+
* @memberOf Query
|
|
1421
|
+
* @param {Number} val
|
|
1422
|
+
* @see mongodb http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24maxScan
|
|
1423
|
+
* @api public
|
|
1424
|
+
*/
|
|
1425
|
+
/**
|
|
1426
|
+
* Specifies the batchSize option.
|
|
1427
|
+
*
|
|
1428
|
+
* ####Example
|
|
1429
|
+
*
|
|
1430
|
+
* query.batchSize(100)
|
|
1431
|
+
*
|
|
1432
|
+
* ####Note
|
|
1433
|
+
*
|
|
1434
|
+
* Cannot be used with `distinct()`
|
|
1435
|
+
*
|
|
1436
|
+
* @method batchSize
|
|
1437
|
+
* @memberOf Query
|
|
1438
|
+
* @param {Number} val
|
|
1439
|
+
* @see mongodb http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%7B%7BbatchSize%28%29%7D%7D
|
|
1440
|
+
* @api public
|
|
1441
|
+
*/
|
|
1442
|
+
/**
|
|
1443
|
+
* Specifies the `comment` option.
|
|
1444
|
+
*
|
|
1445
|
+
* ####Example
|
|
1446
|
+
*
|
|
1447
|
+
* query.comment('login query')
|
|
1448
|
+
*
|
|
1449
|
+
* ####Note
|
|
1450
|
+
*
|
|
1451
|
+
* Cannot be used with `distinct()`
|
|
1452
|
+
*
|
|
1453
|
+
* @method comment
|
|
1454
|
+
* @memberOf Query
|
|
1455
|
+
* @param {Number} val
|
|
1456
|
+
* @see mongodb http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24comment
|
|
1457
|
+
* @api public
|
|
1458
|
+
*/
|
|
1459
|
+
|
|
1460
|
+
/*!
|
|
1461
|
+
* limit, skip, maxScan, batchSize, comment
|
|
1462
|
+
*
|
|
1463
|
+
* Sets these associated options.
|
|
1464
|
+
*
|
|
1465
|
+
* query.comment('feed query');
|
|
1466
|
+
*/
|
|
1467
|
+
|
|
1468
|
+
['limit', 'skip', 'maxScan', 'batchSize', 'comment'].forEach(function(method) {
|
|
1469
|
+
Query.prototype[method] = function(v) {
|
|
1470
|
+
this._validate(method);
|
|
1471
|
+
this.options[method] = v;
|
|
1472
|
+
return this;
|
|
1473
|
+
};
|
|
1474
|
+
});
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* Specifies the maxTimeMS option.
|
|
1478
|
+
*
|
|
1479
|
+
* ####Example
|
|
1480
|
+
*
|
|
1481
|
+
* query.maxTime(100)
|
|
1482
|
+
* query.maxTimeMS(100)
|
|
1483
|
+
*
|
|
1484
|
+
* @method maxTime
|
|
1485
|
+
* @memberOf Query
|
|
1486
|
+
* @param {Number} ms
|
|
1487
|
+
* @see mongodb http://docs.mongodb.org/manual/reference/operator/meta/maxTimeMS/#op._S_maxTimeMS
|
|
1488
|
+
* @api public
|
|
1489
|
+
*/
|
|
1490
|
+
|
|
1491
|
+
Query.prototype.maxTime = Query.prototype.maxTimeMS = function(ms) {
|
|
1492
|
+
this._validate('maxTime');
|
|
1493
|
+
this.options.maxTimeMS = ms;
|
|
1494
|
+
return this;
|
|
1495
|
+
};
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* Specifies this query as a `snapshot` query.
|
|
1499
|
+
*
|
|
1500
|
+
* ####Example
|
|
1501
|
+
*
|
|
1502
|
+
* mquery().snapshot() // true
|
|
1503
|
+
* mquery().snapshot(true)
|
|
1504
|
+
* mquery().snapshot(false)
|
|
1505
|
+
*
|
|
1506
|
+
* ####Note
|
|
1507
|
+
*
|
|
1508
|
+
* Cannot be used with `distinct()`
|
|
1509
|
+
*
|
|
1510
|
+
* @see mongodb http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%7B%7Bsnapshot%28%29%7D%7D
|
|
1511
|
+
* @return {Query} this
|
|
1512
|
+
* @api public
|
|
1513
|
+
*/
|
|
1514
|
+
|
|
1515
|
+
Query.prototype.snapshot = function() {
|
|
1516
|
+
this._validate('snapshot');
|
|
1517
|
+
|
|
1518
|
+
this.options.snapshot = arguments.length
|
|
1519
|
+
? !!arguments[0]
|
|
1520
|
+
: true;
|
|
1521
|
+
|
|
1522
|
+
return this;
|
|
1523
|
+
};
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* Sets query hints.
|
|
1527
|
+
*
|
|
1528
|
+
* ####Example
|
|
1529
|
+
*
|
|
1530
|
+
* query.hint({ indexA: 1, indexB: -1});
|
|
1531
|
+
* query.hint('indexA_1_indexB_1');
|
|
1532
|
+
*
|
|
1533
|
+
* ####Note
|
|
1534
|
+
*
|
|
1535
|
+
* Cannot be used with `distinct()`
|
|
1536
|
+
*
|
|
1537
|
+
* @param {Object|string} val a hint object or the index name
|
|
1538
|
+
* @return {Query} this
|
|
1539
|
+
* @see mongodb http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24hint
|
|
1540
|
+
* @api public
|
|
1541
|
+
*/
|
|
1542
|
+
|
|
1543
|
+
Query.prototype.hint = function() {
|
|
1544
|
+
if (0 === arguments.length) return this;
|
|
1545
|
+
|
|
1546
|
+
this._validate('hint');
|
|
1547
|
+
|
|
1548
|
+
var arg = arguments[0];
|
|
1549
|
+
if (utils.isObject(arg)) {
|
|
1550
|
+
var hint = this.options.hint || (this.options.hint = {});
|
|
1551
|
+
|
|
1552
|
+
// must keep object keys in order so don't use Object.keys()
|
|
1553
|
+
for (var k in arg) {
|
|
1554
|
+
hint[k] = arg[k];
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
return this;
|
|
1558
|
+
}
|
|
1559
|
+
if (typeof arg === 'string') {
|
|
1560
|
+
this.options.hint = arg;
|
|
1561
|
+
return this;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
throw new TypeError('Invalid hint. ' + arg);
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* Requests acknowledgement that this operation has been persisted to MongoDB's
|
|
1569
|
+
* on-disk journal.
|
|
1570
|
+
* This option is only valid for operations that write to the database:
|
|
1571
|
+
*
|
|
1572
|
+
* - `deleteOne()`
|
|
1573
|
+
* - `deleteMany()`
|
|
1574
|
+
* - `findOneAndDelete()`
|
|
1575
|
+
* - `findOneAndUpdate()`
|
|
1576
|
+
* - `remove()`
|
|
1577
|
+
* - `update()`
|
|
1578
|
+
* - `updateOne()`
|
|
1579
|
+
* - `updateMany()`
|
|
1580
|
+
*
|
|
1581
|
+
* Defaults to the `j` value if it is specified in writeConcern options
|
|
1582
|
+
*
|
|
1583
|
+
* ####Example:
|
|
1584
|
+
*
|
|
1585
|
+
* mquery().w(2).j(true).wtimeout(2000);
|
|
1586
|
+
*
|
|
1587
|
+
* @method j
|
|
1588
|
+
* @memberOf Query
|
|
1589
|
+
* @instance
|
|
1590
|
+
* @param {boolean} val
|
|
1591
|
+
* @see mongodb https://docs.mongodb.com/manual/reference/write-concern/#j-option
|
|
1592
|
+
* @return {Query} this
|
|
1593
|
+
* @api public
|
|
1594
|
+
*/
|
|
1595
|
+
|
|
1596
|
+
Query.prototype.j = function j(val) {
|
|
1597
|
+
this.options.j = val;
|
|
1598
|
+
return this;
|
|
1599
|
+
};
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* Sets the slaveOk option. _Deprecated_ in MongoDB 2.2 in favor of read preferences.
|
|
1603
|
+
*
|
|
1604
|
+
* ####Example:
|
|
1605
|
+
*
|
|
1606
|
+
* query.slaveOk() // true
|
|
1607
|
+
* query.slaveOk(true)
|
|
1608
|
+
* query.slaveOk(false)
|
|
1609
|
+
*
|
|
1610
|
+
* @deprecated use read() preferences instead if on mongodb >= 2.2
|
|
1611
|
+
* @param {Boolean} v defaults to true
|
|
1612
|
+
* @see mongodb http://docs.mongodb.org/manual/applications/replication/#read-preference
|
|
1613
|
+
* @see read()
|
|
1614
|
+
* @return {Query} this
|
|
1615
|
+
* @api public
|
|
1616
|
+
*/
|
|
1617
|
+
|
|
1618
|
+
Query.prototype.slaveOk = function(v) {
|
|
1619
|
+
this.options.slaveOk = arguments.length ? !!v : true;
|
|
1620
|
+
return this;
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* Sets the readPreference option for the query.
|
|
1625
|
+
*
|
|
1626
|
+
* ####Example:
|
|
1627
|
+
*
|
|
1628
|
+
* new Query().read('primary')
|
|
1629
|
+
* new Query().read('p') // same as primary
|
|
1630
|
+
*
|
|
1631
|
+
* new Query().read('primaryPreferred')
|
|
1632
|
+
* new Query().read('pp') // same as primaryPreferred
|
|
1633
|
+
*
|
|
1634
|
+
* new Query().read('secondary')
|
|
1635
|
+
* new Query().read('s') // same as secondary
|
|
1636
|
+
*
|
|
1637
|
+
* new Query().read('secondaryPreferred')
|
|
1638
|
+
* new Query().read('sp') // same as secondaryPreferred
|
|
1639
|
+
*
|
|
1640
|
+
* new Query().read('nearest')
|
|
1641
|
+
* new Query().read('n') // same as nearest
|
|
1642
|
+
*
|
|
1643
|
+
* // you can also use mongodb.ReadPreference class to also specify tags
|
|
1644
|
+
* new Query().read(mongodb.ReadPreference('secondary', [{ dc:'sf', s: 1 },{ dc:'ma', s: 2 }]))
|
|
1645
|
+
*
|
|
1646
|
+
* new Query().setReadPreference('primary') // alias of .read()
|
|
1647
|
+
*
|
|
1648
|
+
* ####Preferences:
|
|
1649
|
+
*
|
|
1650
|
+
* primary - (default) Read from primary only. Operations will produce an error if primary is unavailable. Cannot be combined with tags.
|
|
1651
|
+
* secondary Read from secondary if available, otherwise error.
|
|
1652
|
+
* primaryPreferred Read from primary if available, otherwise a secondary.
|
|
1653
|
+
* secondaryPreferred Read from a secondary if available, otherwise read from the primary.
|
|
1654
|
+
* nearest All operations read from among the nearest candidates, but unlike other modes, this option will include both the primary and all secondaries in the random selection.
|
|
1655
|
+
*
|
|
1656
|
+
* Aliases
|
|
1657
|
+
*
|
|
1658
|
+
* p primary
|
|
1659
|
+
* pp primaryPreferred
|
|
1660
|
+
* s secondary
|
|
1661
|
+
* sp secondaryPreferred
|
|
1662
|
+
* n nearest
|
|
1663
|
+
*
|
|
1664
|
+
* Read more about how to use read preferences [here](http://docs.mongodb.org/manual/applications/replication/#read-preference) and [here](http://mongodb.github.com/node-mongodb-native/driver-articles/anintroductionto1_1and2_2.html#read-preferences).
|
|
1665
|
+
*
|
|
1666
|
+
* @param {String|ReadPreference} pref one of the listed preference options or their aliases
|
|
1667
|
+
* @see mongodb http://docs.mongodb.org/manual/applications/replication/#read-preference
|
|
1668
|
+
* @see driver http://mongodb.github.com/node-mongodb-native/driver-articles/anintroductionto1_1and2_2.html#read-preferences
|
|
1669
|
+
* @return {Query} this
|
|
1670
|
+
* @api public
|
|
1671
|
+
*/
|
|
1672
|
+
|
|
1673
|
+
Query.prototype.read = Query.prototype.setReadPreference = function(pref) {
|
|
1674
|
+
if (arguments.length > 1 && !Query.prototype.read.deprecationWarningIssued) {
|
|
1675
|
+
console.error('Deprecation warning: \'tags\' argument is not supported anymore in Query.read() method. Please use mongodb.ReadPreference object instead.');
|
|
1676
|
+
Query.prototype.read.deprecationWarningIssued = true;
|
|
1677
|
+
}
|
|
1678
|
+
this.options.readPreference = utils.readPref(pref);
|
|
1679
|
+
return this;
|
|
1680
|
+
};
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* Sets the readConcern option for the query.
|
|
1684
|
+
*
|
|
1685
|
+
* ####Example:
|
|
1686
|
+
*
|
|
1687
|
+
* new Query().readConcern('local')
|
|
1688
|
+
* new Query().readConcern('l') // same as local
|
|
1689
|
+
*
|
|
1690
|
+
* new Query().readConcern('available')
|
|
1691
|
+
* new Query().readConcern('a') // same as available
|
|
1692
|
+
*
|
|
1693
|
+
* new Query().readConcern('majority')
|
|
1694
|
+
* new Query().readConcern('m') // same as majority
|
|
1695
|
+
*
|
|
1696
|
+
* new Query().readConcern('linearizable')
|
|
1697
|
+
* new Query().readConcern('lz') // same as linearizable
|
|
1698
|
+
*
|
|
1699
|
+
* new Query().readConcern('snapshot')
|
|
1700
|
+
* new Query().readConcern('s') // same as snapshot
|
|
1701
|
+
*
|
|
1702
|
+
* new Query().r('s') // r is alias of readConcern
|
|
1703
|
+
*
|
|
1704
|
+
*
|
|
1705
|
+
* ####Read Concern Level:
|
|
1706
|
+
*
|
|
1707
|
+
* local MongoDB 3.2+ The query returns from the instance with no guarantee guarantee that the data has been written to a majority of the replica set members (i.e. may be rolled back).
|
|
1708
|
+
* available MongoDB 3.6+ The query returns from the instance with no guarantee guarantee that the data has been written to a majority of the replica set members (i.e. may be rolled back).
|
|
1709
|
+
* majority MongoDB 3.2+ The query returns the data that has been acknowledged by a majority of the replica set members. The documents returned by the read operation are durable, even in the event of failure.
|
|
1710
|
+
* linearizable MongoDB 3.4+ The query returns data that reflects all successful majority-acknowledged writes that completed prior to the start of the read operation. The query may wait for concurrently executing writes to propagate to a majority of replica set members before returning results.
|
|
1711
|
+
* snapshot MongoDB 4.0+ Only available for operations within multi-document transactions. Upon transaction commit with write concern "majority", the transaction operations are guaranteed to have read from a snapshot of majority-committed data.
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
*
|
|
1715
|
+
*
|
|
1716
|
+
* Aliases
|
|
1717
|
+
*
|
|
1718
|
+
* l local
|
|
1719
|
+
* a available
|
|
1720
|
+
* m majority
|
|
1721
|
+
* lz linearizable
|
|
1722
|
+
* s snapshot
|
|
1723
|
+
*
|
|
1724
|
+
* Read more about how to use read concern [here](https://docs.mongodb.com/manual/reference/read-concern/).
|
|
1725
|
+
*
|
|
1726
|
+
* @param {String} level one of the listed read concern level or their aliases
|
|
1727
|
+
* @see mongodb https://docs.mongodb.com/manual/reference/read-concern/
|
|
1728
|
+
* @return {Query} this
|
|
1729
|
+
* @api public
|
|
1730
|
+
*/
|
|
1731
|
+
|
|
1732
|
+
Query.prototype.readConcern = Query.prototype.r = function(level) {
|
|
1733
|
+
this.options.readConcern = utils.readConcern(level);
|
|
1734
|
+
return this;
|
|
1735
|
+
};
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* Sets tailable option.
|
|
1739
|
+
*
|
|
1740
|
+
* ####Example
|
|
1741
|
+
*
|
|
1742
|
+
* query.tailable() <== true
|
|
1743
|
+
* query.tailable(true)
|
|
1744
|
+
* query.tailable(false)
|
|
1745
|
+
*
|
|
1746
|
+
* ####Note
|
|
1747
|
+
*
|
|
1748
|
+
* Cannot be used with `distinct()`
|
|
1749
|
+
*
|
|
1750
|
+
* @param {Boolean} v defaults to true
|
|
1751
|
+
* @see mongodb http://www.mongodb.org/display/DOCS/Tailable+Cursors
|
|
1752
|
+
* @api public
|
|
1753
|
+
*/
|
|
1754
|
+
|
|
1755
|
+
Query.prototype.tailable = function() {
|
|
1756
|
+
this._validate('tailable');
|
|
1757
|
+
|
|
1758
|
+
this.options.tailable = arguments.length
|
|
1759
|
+
? !!arguments[0]
|
|
1760
|
+
: true;
|
|
1761
|
+
|
|
1762
|
+
return this;
|
|
1763
|
+
};
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* Sets the specified number of `mongod` servers, or tag set of `mongod` servers,
|
|
1767
|
+
* that must acknowledge this write before this write is considered successful.
|
|
1768
|
+
* This option is only valid for operations that write to the database:
|
|
1769
|
+
*
|
|
1770
|
+
* - `deleteOne()`
|
|
1771
|
+
* - `deleteMany()`
|
|
1772
|
+
* - `findOneAndDelete()`
|
|
1773
|
+
* - `findOneAndUpdate()`
|
|
1774
|
+
* - `remove()`
|
|
1775
|
+
* - `update()`
|
|
1776
|
+
* - `updateOne()`
|
|
1777
|
+
* - `updateMany()`
|
|
1778
|
+
*
|
|
1779
|
+
* Defaults to the `w` value if it is specified in writeConcern options
|
|
1780
|
+
*
|
|
1781
|
+
* ####Example:
|
|
1782
|
+
*
|
|
1783
|
+
* mquery().writeConcern(0)
|
|
1784
|
+
* mquery().writeConcern(1)
|
|
1785
|
+
* mquery().writeConcern({ w: 1, j: true, wtimeout: 2000 })
|
|
1786
|
+
* mquery().writeConcern('majority')
|
|
1787
|
+
* mquery().writeConcern('m') // same as majority
|
|
1788
|
+
* mquery().writeConcern('tagSetName') // if the tag set is 'm', use .writeConcern({ w: 'm' }) instead
|
|
1789
|
+
* mquery().w(1) // w is alias of writeConcern
|
|
1790
|
+
*
|
|
1791
|
+
* @method writeConcern
|
|
1792
|
+
* @memberOf Query
|
|
1793
|
+
* @instance
|
|
1794
|
+
* @param {String|number|object} concern 0 for fire-and-forget, 1 for acknowledged by one server, 'majority' for majority of the replica set, or [any of the more advanced options](https://docs.mongodb.com/manual/reference/write-concern/#w-option).
|
|
1795
|
+
* @see mongodb https://docs.mongodb.com/manual/reference/write-concern/#w-option
|
|
1796
|
+
* @return {Query} this
|
|
1797
|
+
* @api public
|
|
1798
|
+
*/
|
|
1799
|
+
|
|
1800
|
+
Query.prototype.writeConcern = Query.prototype.w = function writeConcern(concern) {
|
|
1801
|
+
if ('object' === typeof concern) {
|
|
1802
|
+
if ('undefined' !== typeof concern.j) this.options.j = concern.j;
|
|
1803
|
+
if ('undefined' !== typeof concern.w) this.options.w = concern.w;
|
|
1804
|
+
if ('undefined' !== typeof concern.wtimeout) this.options.wtimeout = concern.wtimeout;
|
|
1805
|
+
} else {
|
|
1806
|
+
this.options.w = 'm' === concern ? 'majority' : concern;
|
|
1807
|
+
}
|
|
1808
|
+
return this;
|
|
1809
|
+
};
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* Specifies a time limit, in milliseconds, for the write concern.
|
|
1813
|
+
* If `ms > 1`, it is maximum amount of time to wait for this write
|
|
1814
|
+
* to propagate through the replica set before this operation fails.
|
|
1815
|
+
* The default is `0`, which means no timeout.
|
|
1816
|
+
*
|
|
1817
|
+
* This option is only valid for operations that write to the database:
|
|
1818
|
+
*
|
|
1819
|
+
* - `deleteOne()`
|
|
1820
|
+
* - `deleteMany()`
|
|
1821
|
+
* - `findOneAndDelete()`
|
|
1822
|
+
* - `findOneAndUpdate()`
|
|
1823
|
+
* - `remove()`
|
|
1824
|
+
* - `update()`
|
|
1825
|
+
* - `updateOne()`
|
|
1826
|
+
* - `updateMany()`
|
|
1827
|
+
*
|
|
1828
|
+
* Defaults to `wtimeout` value if it is specified in writeConcern
|
|
1829
|
+
*
|
|
1830
|
+
* ####Example:
|
|
1831
|
+
*
|
|
1832
|
+
* mquery().w(2).j(true).wtimeout(2000)
|
|
1833
|
+
*
|
|
1834
|
+
* @method wtimeout
|
|
1835
|
+
* @memberOf Query
|
|
1836
|
+
* @instance
|
|
1837
|
+
* @param {number} ms number of milliseconds to wait
|
|
1838
|
+
* @see mongodb https://docs.mongodb.com/manual/reference/write-concern/#wtimeout
|
|
1839
|
+
* @return {Query} this
|
|
1840
|
+
* @api public
|
|
1841
|
+
*/
|
|
1842
|
+
|
|
1843
|
+
Query.prototype.wtimeout = Query.prototype.wTimeout = function wtimeout(ms) {
|
|
1844
|
+
this.options.wtimeout = ms;
|
|
1845
|
+
return this;
|
|
1846
|
+
};
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Merges another Query or conditions object into this one.
|
|
1850
|
+
*
|
|
1851
|
+
* When a Query is passed, conditions, field selection and options are merged.
|
|
1852
|
+
*
|
|
1853
|
+
* @param {Query|Object} source
|
|
1854
|
+
* @return {Query} this
|
|
1855
|
+
*/
|
|
1856
|
+
|
|
1857
|
+
Query.prototype.merge = function(source) {
|
|
1858
|
+
if (!source)
|
|
1859
|
+
return this;
|
|
1860
|
+
|
|
1861
|
+
if (!Query.canMerge(source))
|
|
1862
|
+
throw new TypeError('Invalid argument. Expected instanceof mquery or plain object');
|
|
1863
|
+
|
|
1864
|
+
if (source instanceof Query) {
|
|
1865
|
+
// if source has a feature, apply it to ourselves
|
|
1866
|
+
|
|
1867
|
+
if (source._conditions) {
|
|
1868
|
+
utils.merge(this._conditions, source._conditions);
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
if (source._fields) {
|
|
1872
|
+
this._fields || (this._fields = {});
|
|
1873
|
+
utils.merge(this._fields, source._fields);
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
if (source.options) {
|
|
1877
|
+
this.options || (this.options = {});
|
|
1878
|
+
utils.merge(this.options, source.options);
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
if (source._update) {
|
|
1882
|
+
this._update || (this._update = {});
|
|
1883
|
+
utils.mergeClone(this._update, source._update);
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
if (source._distinct) {
|
|
1887
|
+
this._distinct = source._distinct;
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
return this;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
// plain object
|
|
1894
|
+
utils.merge(this._conditions, source);
|
|
1895
|
+
|
|
1896
|
+
return this;
|
|
1897
|
+
};
|
|
1898
|
+
|
|
1899
|
+
/**
|
|
1900
|
+
* Finds documents.
|
|
1901
|
+
*
|
|
1902
|
+
* Passing a `callback` executes the query.
|
|
1903
|
+
*
|
|
1904
|
+
* ####Example
|
|
1905
|
+
*
|
|
1906
|
+
* query.find()
|
|
1907
|
+
* query.find(callback)
|
|
1908
|
+
* query.find({ name: 'Burning Lights' }, callback)
|
|
1909
|
+
*
|
|
1910
|
+
* @param {Object} [criteria] mongodb selector
|
|
1911
|
+
* @param {Function} [callback]
|
|
1912
|
+
* @return {Query} this
|
|
1913
|
+
* @api public
|
|
1914
|
+
*/
|
|
1915
|
+
|
|
1916
|
+
Query.prototype.find = function(criteria, callback) {
|
|
1917
|
+
this.op = 'find';
|
|
1918
|
+
|
|
1919
|
+
if ('function' === typeof criteria) {
|
|
1920
|
+
callback = criteria;
|
|
1921
|
+
criteria = undefined;
|
|
1922
|
+
} else if (Query.canMerge(criteria)) {
|
|
1923
|
+
this.merge(criteria);
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
if (!callback) return this;
|
|
1927
|
+
|
|
1928
|
+
var conds = this._conditions;
|
|
1929
|
+
var options = this._optionsForExec();
|
|
1930
|
+
|
|
1931
|
+
if (this.$useProjection) {
|
|
1932
|
+
options.projection = this._fieldsForExec();
|
|
1933
|
+
} else {
|
|
1934
|
+
options.fields = this._fieldsForExec();
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
debug$1('find', this._collection.collectionName, conds, options);
|
|
1938
|
+
callback = this._wrapCallback('find', callback, {
|
|
1939
|
+
conditions: conds,
|
|
1940
|
+
options: options
|
|
1941
|
+
});
|
|
1942
|
+
|
|
1943
|
+
this._collection.find(conds, options, utils.tick(callback));
|
|
1944
|
+
return this;
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* Returns the query cursor
|
|
1949
|
+
*
|
|
1950
|
+
* ####Examples
|
|
1951
|
+
*
|
|
1952
|
+
* query.find().cursor();
|
|
1953
|
+
* query.cursor({ name: 'Burning Lights' });
|
|
1954
|
+
*
|
|
1955
|
+
* @param {Object} [criteria] mongodb selector
|
|
1956
|
+
* @return {Object} cursor
|
|
1957
|
+
* @api public
|
|
1958
|
+
*/
|
|
1959
|
+
|
|
1960
|
+
Query.prototype.cursor = function cursor(criteria) {
|
|
1961
|
+
if (this.op) {
|
|
1962
|
+
if (this.op !== 'find') {
|
|
1963
|
+
throw new TypeError('.cursor only support .find method');
|
|
1964
|
+
}
|
|
1965
|
+
} else {
|
|
1966
|
+
this.find(criteria);
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
var conds = this._conditions;
|
|
1970
|
+
var options = this._optionsForExec();
|
|
1971
|
+
|
|
1972
|
+
if (this.$useProjection) {
|
|
1973
|
+
options.projection = this._fieldsForExec();
|
|
1974
|
+
} else {
|
|
1975
|
+
options.fields = this._fieldsForExec();
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
debug$1('findCursor', this._collection.collectionName, conds, options);
|
|
1979
|
+
return this._collection.findCursor(conds, options);
|
|
1980
|
+
};
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
* Executes the query as a findOne() operation.
|
|
1984
|
+
*
|
|
1985
|
+
* Passing a `callback` executes the query.
|
|
1986
|
+
*
|
|
1987
|
+
* ####Example
|
|
1988
|
+
*
|
|
1989
|
+
* query.findOne().where('name', /^Burning/);
|
|
1990
|
+
*
|
|
1991
|
+
* query.findOne({ name: /^Burning/ })
|
|
1992
|
+
*
|
|
1993
|
+
* query.findOne({ name: /^Burning/ }, callback); // executes
|
|
1994
|
+
*
|
|
1995
|
+
* query.findOne(function (err, doc) {
|
|
1996
|
+
* if (err) return handleError(err);
|
|
1997
|
+
* if (doc) {
|
|
1998
|
+
* // doc may be null if no document matched
|
|
1999
|
+
*
|
|
2000
|
+
* }
|
|
2001
|
+
* });
|
|
2002
|
+
*
|
|
2003
|
+
* @param {Object|Query} [criteria] mongodb selector
|
|
2004
|
+
* @param {Function} [callback]
|
|
2005
|
+
* @return {Query} this
|
|
2006
|
+
* @api public
|
|
2007
|
+
*/
|
|
2008
|
+
|
|
2009
|
+
Query.prototype.findOne = function(criteria, callback) {
|
|
2010
|
+
this.op = 'findOne';
|
|
2011
|
+
|
|
2012
|
+
if ('function' === typeof criteria) {
|
|
2013
|
+
callback = criteria;
|
|
2014
|
+
criteria = undefined;
|
|
2015
|
+
} else if (Query.canMerge(criteria)) {
|
|
2016
|
+
this.merge(criteria);
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
if (!callback) return this;
|
|
2020
|
+
|
|
2021
|
+
var conds = this._conditions;
|
|
2022
|
+
var options = this._optionsForExec();
|
|
2023
|
+
|
|
2024
|
+
if (this.$useProjection) {
|
|
2025
|
+
options.projection = this._fieldsForExec();
|
|
2026
|
+
} else {
|
|
2027
|
+
options.fields = this._fieldsForExec();
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
debug$1('findOne', this._collection.collectionName, conds, options);
|
|
2031
|
+
callback = this._wrapCallback('findOne', callback, {
|
|
2032
|
+
conditions: conds,
|
|
2033
|
+
options: options
|
|
2034
|
+
});
|
|
2035
|
+
|
|
2036
|
+
this._collection.findOne(conds, options, utils.tick(callback));
|
|
2037
|
+
|
|
2038
|
+
return this;
|
|
2039
|
+
};
|
|
2040
|
+
|
|
2041
|
+
/**
|
|
2042
|
+
* Exectues the query as a count() operation.
|
|
2043
|
+
*
|
|
2044
|
+
* Passing a `callback` executes the query.
|
|
2045
|
+
*
|
|
2046
|
+
* ####Example
|
|
2047
|
+
*
|
|
2048
|
+
* query.count().where('color', 'black').exec(callback);
|
|
2049
|
+
*
|
|
2050
|
+
* query.count({ color: 'black' }).count(callback)
|
|
2051
|
+
*
|
|
2052
|
+
* query.count({ color: 'black' }, callback)
|
|
2053
|
+
*
|
|
2054
|
+
* query.where('color', 'black').count(function (err, count) {
|
|
2055
|
+
* if (err) return handleError(err);
|
|
2056
|
+
* console.log('there are %d kittens', count);
|
|
2057
|
+
* })
|
|
2058
|
+
*
|
|
2059
|
+
* @param {Object} [criteria] mongodb selector
|
|
2060
|
+
* @param {Function} [callback]
|
|
2061
|
+
* @return {Query} this
|
|
2062
|
+
* @see mongodb http://www.mongodb.org/display/DOCS/Aggregation#Aggregation-Count
|
|
2063
|
+
* @api public
|
|
2064
|
+
*/
|
|
2065
|
+
|
|
2066
|
+
Query.prototype.count = function(criteria, callback) {
|
|
2067
|
+
this.op = 'count';
|
|
2068
|
+
this._validate();
|
|
2069
|
+
|
|
2070
|
+
if ('function' === typeof criteria) {
|
|
2071
|
+
callback = criteria;
|
|
2072
|
+
criteria = undefined;
|
|
2073
|
+
} else if (Query.canMerge(criteria)) {
|
|
2074
|
+
this.merge(criteria);
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
if (!callback) return this;
|
|
2078
|
+
|
|
2079
|
+
var conds = this._conditions,
|
|
2080
|
+
options = this._optionsForExec();
|
|
2081
|
+
|
|
2082
|
+
debug$1('count', this._collection.collectionName, conds, options);
|
|
2083
|
+
callback = this._wrapCallback('count', callback, {
|
|
2084
|
+
conditions: conds,
|
|
2085
|
+
options: options
|
|
2086
|
+
});
|
|
2087
|
+
|
|
2088
|
+
this._collection.count(conds, options, utils.tick(callback));
|
|
2089
|
+
return this;
|
|
2090
|
+
};
|
|
2091
|
+
|
|
2092
|
+
/**
|
|
2093
|
+
* Declares or executes a distinct() operation.
|
|
2094
|
+
*
|
|
2095
|
+
* Passing a `callback` executes the query.
|
|
2096
|
+
*
|
|
2097
|
+
* ####Example
|
|
2098
|
+
*
|
|
2099
|
+
* distinct(criteria, field, fn)
|
|
2100
|
+
* distinct(criteria, field)
|
|
2101
|
+
* distinct(field, fn)
|
|
2102
|
+
* distinct(field)
|
|
2103
|
+
* distinct(fn)
|
|
2104
|
+
* distinct()
|
|
2105
|
+
*
|
|
2106
|
+
* @param {Object|Query} [criteria]
|
|
2107
|
+
* @param {String} [field]
|
|
2108
|
+
* @param {Function} [callback]
|
|
2109
|
+
* @return {Query} this
|
|
2110
|
+
* @see mongodb http://www.mongodb.org/display/DOCS/Aggregation#Aggregation-Distinct
|
|
2111
|
+
* @api public
|
|
2112
|
+
*/
|
|
2113
|
+
|
|
2114
|
+
Query.prototype.distinct = function(criteria, field, callback) {
|
|
2115
|
+
this.op = 'distinct';
|
|
2116
|
+
this._validate();
|
|
2117
|
+
|
|
2118
|
+
if (!callback) {
|
|
2119
|
+
switch (typeof field) {
|
|
2120
|
+
case 'function':
|
|
2121
|
+
callback = field;
|
|
2122
|
+
if ('string' == typeof criteria) {
|
|
2123
|
+
field = criteria;
|
|
2124
|
+
criteria = undefined;
|
|
2125
|
+
}
|
|
2126
|
+
break;
|
|
2127
|
+
case 'undefined':
|
|
2128
|
+
case 'string':
|
|
2129
|
+
break;
|
|
2130
|
+
default:
|
|
2131
|
+
throw new TypeError('Invalid `field` argument. Must be string or function');
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
switch (typeof criteria) {
|
|
2135
|
+
case 'function':
|
|
2136
|
+
callback = criteria;
|
|
2137
|
+
criteria = field = undefined;
|
|
2138
|
+
break;
|
|
2139
|
+
case 'string':
|
|
2140
|
+
field = criteria;
|
|
2141
|
+
criteria = undefined;
|
|
2142
|
+
break;
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
if ('string' == typeof field) {
|
|
2147
|
+
this._distinct = field;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
if (Query.canMerge(criteria)) {
|
|
2151
|
+
this.merge(criteria);
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
if (!callback) {
|
|
2155
|
+
return this;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
if (!this._distinct) {
|
|
2159
|
+
throw new Error('No value for `distinct` has been declared');
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
var conds = this._conditions,
|
|
2163
|
+
options = this._optionsForExec();
|
|
2164
|
+
|
|
2165
|
+
debug$1('distinct', this._collection.collectionName, conds, options);
|
|
2166
|
+
callback = this._wrapCallback('distinct', callback, {
|
|
2167
|
+
conditions: conds,
|
|
2168
|
+
options: options
|
|
2169
|
+
});
|
|
2170
|
+
|
|
2171
|
+
this._collection.distinct(this._distinct, conds, options, utils.tick(callback));
|
|
2172
|
+
|
|
2173
|
+
return this;
|
|
2174
|
+
};
|
|
2175
|
+
|
|
2176
|
+
/**
|
|
2177
|
+
* Declare and/or execute this query as an update() operation. By default,
|
|
2178
|
+
* `update()` only modifies the _first_ document that matches `criteria`.
|
|
2179
|
+
*
|
|
2180
|
+
* _All paths passed that are not $atomic operations will become $set ops._
|
|
2181
|
+
*
|
|
2182
|
+
* ####Example
|
|
2183
|
+
*
|
|
2184
|
+
* mquery({ _id: id }).update({ title: 'words' }, ...)
|
|
2185
|
+
*
|
|
2186
|
+
* becomes
|
|
2187
|
+
*
|
|
2188
|
+
* collection.update({ _id: id }, { $set: { title: 'words' }}, ...)
|
|
2189
|
+
*
|
|
2190
|
+
* ####Note
|
|
2191
|
+
*
|
|
2192
|
+
* Passing an empty object `{}` as the doc will result in a no-op unless the `overwrite` option is passed. Without the `overwrite` option set, the update operation will be ignored and the callback executed without sending the command to MongoDB so as to prevent accidently overwritting documents in the collection.
|
|
2193
|
+
*
|
|
2194
|
+
* ####Note
|
|
2195
|
+
*
|
|
2196
|
+
* The operation is only executed when a callback is passed. To force execution without a callback (which would be an unsafe write), we must first call update() and then execute it by using the `exec()` method.
|
|
2197
|
+
*
|
|
2198
|
+
* var q = mquery(collection).where({ _id: id });
|
|
2199
|
+
* q.update({ $set: { name: 'bob' }}).update(); // not executed
|
|
2200
|
+
*
|
|
2201
|
+
* var q = mquery(collection).where({ _id: id });
|
|
2202
|
+
* q.update({ $set: { name: 'bob' }}).exec(); // executed as unsafe
|
|
2203
|
+
*
|
|
2204
|
+
* // keys that are not $atomic ops become $set.
|
|
2205
|
+
* // this executes the same command as the previous example.
|
|
2206
|
+
* q.update({ name: 'bob' }).where({ _id: id }).exec();
|
|
2207
|
+
*
|
|
2208
|
+
* var q = mquery(collection).update(); // not executed
|
|
2209
|
+
*
|
|
2210
|
+
* // overwriting with empty docs
|
|
2211
|
+
* var q.where({ _id: id }).setOptions({ overwrite: true })
|
|
2212
|
+
* q.update({ }, callback); // executes
|
|
2213
|
+
*
|
|
2214
|
+
* // multi update with overwrite to empty doc
|
|
2215
|
+
* var q = mquery(collection).where({ _id: id });
|
|
2216
|
+
* q.setOptions({ multi: true, overwrite: true })
|
|
2217
|
+
* q.update({ });
|
|
2218
|
+
* q.update(callback); // executed
|
|
2219
|
+
*
|
|
2220
|
+
* // multi updates
|
|
2221
|
+
* mquery()
|
|
2222
|
+
* .collection(coll)
|
|
2223
|
+
* .update({ name: /^match/ }, { $set: { arr: [] }}, { multi: true }, callback)
|
|
2224
|
+
* // more multi updates
|
|
2225
|
+
* mquery({ })
|
|
2226
|
+
* .collection(coll)
|
|
2227
|
+
* .setOptions({ multi: true })
|
|
2228
|
+
* .update({ $set: { arr: [] }}, callback)
|
|
2229
|
+
*
|
|
2230
|
+
* // single update by default
|
|
2231
|
+
* mquery({ email: 'address@example.com' })
|
|
2232
|
+
* .collection(coll)
|
|
2233
|
+
* .update({ $inc: { counter: 1 }}, callback)
|
|
2234
|
+
*
|
|
2235
|
+
* // summary
|
|
2236
|
+
* update(criteria, doc, opts, cb) // executes
|
|
2237
|
+
* update(criteria, doc, opts)
|
|
2238
|
+
* update(criteria, doc, cb) // executes
|
|
2239
|
+
* update(criteria, doc)
|
|
2240
|
+
* update(doc, cb) // executes
|
|
2241
|
+
* update(doc)
|
|
2242
|
+
* update(cb) // executes
|
|
2243
|
+
* update(true) // executes (unsafe write)
|
|
2244
|
+
* update()
|
|
2245
|
+
*
|
|
2246
|
+
* @param {Object} [criteria]
|
|
2247
|
+
* @param {Object} [doc] the update command
|
|
2248
|
+
* @param {Object} [options]
|
|
2249
|
+
* @param {Function} [callback]
|
|
2250
|
+
* @return {Query} this
|
|
2251
|
+
* @api public
|
|
2252
|
+
*/
|
|
2253
|
+
|
|
2254
|
+
Query.prototype.update = function update(criteria, doc, options, callback) {
|
|
2255
|
+
var force;
|
|
2256
|
+
|
|
2257
|
+
switch (arguments.length) {
|
|
2258
|
+
case 3:
|
|
2259
|
+
if ('function' == typeof options) {
|
|
2260
|
+
callback = options;
|
|
2261
|
+
options = undefined;
|
|
2262
|
+
}
|
|
2263
|
+
break;
|
|
2264
|
+
case 2:
|
|
2265
|
+
if ('function' == typeof doc) {
|
|
2266
|
+
callback = doc;
|
|
2267
|
+
doc = criteria;
|
|
2268
|
+
criteria = undefined;
|
|
2269
|
+
}
|
|
2270
|
+
break;
|
|
2271
|
+
case 1:
|
|
2272
|
+
switch (typeof criteria) {
|
|
2273
|
+
case 'function':
|
|
2274
|
+
callback = criteria;
|
|
2275
|
+
criteria = options = doc = undefined;
|
|
2276
|
+
break;
|
|
2277
|
+
case 'boolean':
|
|
2278
|
+
// execution with no callback (unsafe write)
|
|
2279
|
+
force = criteria;
|
|
2280
|
+
criteria = undefined;
|
|
2281
|
+
break;
|
|
2282
|
+
default:
|
|
2283
|
+
doc = criteria;
|
|
2284
|
+
criteria = options = undefined;
|
|
2285
|
+
break;
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
return _update(this, 'update', criteria, doc, options, force, callback);
|
|
2290
|
+
};
|
|
2291
|
+
|
|
2292
|
+
/**
|
|
2293
|
+
* Declare and/or execute this query as an `updateMany()` operation. Identical
|
|
2294
|
+
* to `update()` except `updateMany()` will update _all_ documents that match
|
|
2295
|
+
* `criteria`, rather than just the first one.
|
|
2296
|
+
*
|
|
2297
|
+
* _All paths passed that are not $atomic operations will become $set ops._
|
|
2298
|
+
*
|
|
2299
|
+
* ####Example
|
|
2300
|
+
*
|
|
2301
|
+
* // Update every document whose `title` contains 'test'
|
|
2302
|
+
* mquery().updateMany({ title: /test/ }, { year: 2017 })
|
|
2303
|
+
*
|
|
2304
|
+
* @param {Object} [criteria]
|
|
2305
|
+
* @param {Object} [doc] the update command
|
|
2306
|
+
* @param {Object} [options]
|
|
2307
|
+
* @param {Function} [callback]
|
|
2308
|
+
* @return {Query} this
|
|
2309
|
+
* @api public
|
|
2310
|
+
*/
|
|
2311
|
+
|
|
2312
|
+
Query.prototype.updateMany = function updateMany(criteria, doc, options, callback) {
|
|
2313
|
+
var force;
|
|
2314
|
+
|
|
2315
|
+
switch (arguments.length) {
|
|
2316
|
+
case 3:
|
|
2317
|
+
if ('function' == typeof options) {
|
|
2318
|
+
callback = options;
|
|
2319
|
+
options = undefined;
|
|
2320
|
+
}
|
|
2321
|
+
break;
|
|
2322
|
+
case 2:
|
|
2323
|
+
if ('function' == typeof doc) {
|
|
2324
|
+
callback = doc;
|
|
2325
|
+
doc = criteria;
|
|
2326
|
+
criteria = undefined;
|
|
2327
|
+
}
|
|
2328
|
+
break;
|
|
2329
|
+
case 1:
|
|
2330
|
+
switch (typeof criteria) {
|
|
2331
|
+
case 'function':
|
|
2332
|
+
callback = criteria;
|
|
2333
|
+
criteria = options = doc = undefined;
|
|
2334
|
+
break;
|
|
2335
|
+
case 'boolean':
|
|
2336
|
+
// execution with no callback (unsafe write)
|
|
2337
|
+
force = criteria;
|
|
2338
|
+
criteria = undefined;
|
|
2339
|
+
break;
|
|
2340
|
+
default:
|
|
2341
|
+
doc = criteria;
|
|
2342
|
+
criteria = options = undefined;
|
|
2343
|
+
break;
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
return _update(this, 'updateMany', criteria, doc, options, force, callback);
|
|
2348
|
+
};
|
|
2349
|
+
|
|
2350
|
+
/**
|
|
2351
|
+
* Declare and/or execute this query as an `updateOne()` operation. Identical
|
|
2352
|
+
* to `update()` except `updateOne()` will _always_ update just one document,
|
|
2353
|
+
* regardless of the `multi` option.
|
|
2354
|
+
*
|
|
2355
|
+
* _All paths passed that are not $atomic operations will become $set ops._
|
|
2356
|
+
*
|
|
2357
|
+
* ####Example
|
|
2358
|
+
*
|
|
2359
|
+
* // Update the first document whose `title` contains 'test'
|
|
2360
|
+
* mquery().updateMany({ title: /test/ }, { year: 2017 })
|
|
2361
|
+
*
|
|
2362
|
+
* @param {Object} [criteria]
|
|
2363
|
+
* @param {Object} [doc] the update command
|
|
2364
|
+
* @param {Object} [options]
|
|
2365
|
+
* @param {Function} [callback]
|
|
2366
|
+
* @return {Query} this
|
|
2367
|
+
* @api public
|
|
2368
|
+
*/
|
|
2369
|
+
|
|
2370
|
+
Query.prototype.updateOne = function updateOne(criteria, doc, options, callback) {
|
|
2371
|
+
var force;
|
|
2372
|
+
|
|
2373
|
+
switch (arguments.length) {
|
|
2374
|
+
case 3:
|
|
2375
|
+
if ('function' == typeof options) {
|
|
2376
|
+
callback = options;
|
|
2377
|
+
options = undefined;
|
|
2378
|
+
}
|
|
2379
|
+
break;
|
|
2380
|
+
case 2:
|
|
2381
|
+
if ('function' == typeof doc) {
|
|
2382
|
+
callback = doc;
|
|
2383
|
+
doc = criteria;
|
|
2384
|
+
criteria = undefined;
|
|
2385
|
+
}
|
|
2386
|
+
break;
|
|
2387
|
+
case 1:
|
|
2388
|
+
switch (typeof criteria) {
|
|
2389
|
+
case 'function':
|
|
2390
|
+
callback = criteria;
|
|
2391
|
+
criteria = options = doc = undefined;
|
|
2392
|
+
break;
|
|
2393
|
+
case 'boolean':
|
|
2394
|
+
// execution with no callback (unsafe write)
|
|
2395
|
+
force = criteria;
|
|
2396
|
+
criteria = undefined;
|
|
2397
|
+
break;
|
|
2398
|
+
default:
|
|
2399
|
+
doc = criteria;
|
|
2400
|
+
criteria = options = undefined;
|
|
2401
|
+
break;
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
return _update(this, 'updateOne', criteria, doc, options, force, callback);
|
|
2406
|
+
};
|
|
2407
|
+
|
|
2408
|
+
/**
|
|
2409
|
+
* Declare and/or execute this query as an `replaceOne()` operation. Similar
|
|
2410
|
+
* to `updateOne()`, except `replaceOne()` is not allowed to use atomic
|
|
2411
|
+
* modifiers (`$set`, `$push`, etc.). Calling `replaceOne()` will always
|
|
2412
|
+
* replace the existing doc.
|
|
2413
|
+
*
|
|
2414
|
+
* ####Example
|
|
2415
|
+
*
|
|
2416
|
+
* // Replace the document with `_id` 1 with `{ _id: 1, year: 2017 }`
|
|
2417
|
+
* mquery().replaceOne({ _id: 1 }, { year: 2017 })
|
|
2418
|
+
*
|
|
2419
|
+
* @param {Object} [criteria]
|
|
2420
|
+
* @param {Object} [doc] the update command
|
|
2421
|
+
* @param {Object} [options]
|
|
2422
|
+
* @param {Function} [callback]
|
|
2423
|
+
* @return {Query} this
|
|
2424
|
+
* @api public
|
|
2425
|
+
*/
|
|
2426
|
+
|
|
2427
|
+
Query.prototype.replaceOne = function replaceOne(criteria, doc, options, callback) {
|
|
2428
|
+
var force;
|
|
2429
|
+
|
|
2430
|
+
switch (arguments.length) {
|
|
2431
|
+
case 3:
|
|
2432
|
+
if ('function' == typeof options) {
|
|
2433
|
+
callback = options;
|
|
2434
|
+
options = undefined;
|
|
2435
|
+
}
|
|
2436
|
+
break;
|
|
2437
|
+
case 2:
|
|
2438
|
+
if ('function' == typeof doc) {
|
|
2439
|
+
callback = doc;
|
|
2440
|
+
doc = criteria;
|
|
2441
|
+
criteria = undefined;
|
|
2442
|
+
}
|
|
2443
|
+
break;
|
|
2444
|
+
case 1:
|
|
2445
|
+
switch (typeof criteria) {
|
|
2446
|
+
case 'function':
|
|
2447
|
+
callback = criteria;
|
|
2448
|
+
criteria = options = doc = undefined;
|
|
2449
|
+
break;
|
|
2450
|
+
case 'boolean':
|
|
2451
|
+
// execution with no callback (unsafe write)
|
|
2452
|
+
force = criteria;
|
|
2453
|
+
criteria = undefined;
|
|
2454
|
+
break;
|
|
2455
|
+
default:
|
|
2456
|
+
doc = criteria;
|
|
2457
|
+
criteria = options = undefined;
|
|
2458
|
+
break;
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
this.setOptions({ overwrite: true });
|
|
2463
|
+
return _update(this, 'replaceOne', criteria, doc, options, force, callback);
|
|
2464
|
+
};
|
|
2465
|
+
|
|
2466
|
+
|
|
2467
|
+
/*!
|
|
2468
|
+
* Internal helper for update, updateMany, updateOne
|
|
2469
|
+
*/
|
|
2470
|
+
|
|
2471
|
+
function _update(query, op, criteria, doc, options, force, callback) {
|
|
2472
|
+
query.op = op;
|
|
2473
|
+
|
|
2474
|
+
if (Query.canMerge(criteria)) {
|
|
2475
|
+
query.merge(criteria);
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
if (doc) {
|
|
2479
|
+
query._mergeUpdate(doc);
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
if (utils.isObject(options)) {
|
|
2483
|
+
// { overwrite: true }
|
|
2484
|
+
query.setOptions(options);
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
// we are done if we don't have callback and they are
|
|
2488
|
+
// not forcing an unsafe write.
|
|
2489
|
+
if (!(force || callback)) {
|
|
2490
|
+
return query;
|
|
2491
|
+
}
|
|
2492
|
+
|
|
2493
|
+
if (!query._update ||
|
|
2494
|
+
!query.options.overwrite && 0 === utils.keys(query._update).length) {
|
|
2495
|
+
callback && utils.soon(callback.bind(null, null, 0));
|
|
2496
|
+
return query;
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
options = query._optionsForExec();
|
|
2500
|
+
if (!callback) options.safe = false;
|
|
2501
|
+
|
|
2502
|
+
criteria = query._conditions;
|
|
2503
|
+
doc = query._updateForExec();
|
|
2504
|
+
|
|
2505
|
+
debug$1('update', query._collection.collectionName, criteria, doc, options);
|
|
2506
|
+
callback = query._wrapCallback(op, callback, {
|
|
2507
|
+
conditions: criteria,
|
|
2508
|
+
doc: doc,
|
|
2509
|
+
options: options
|
|
2510
|
+
});
|
|
2511
|
+
|
|
2512
|
+
query._collection[op](criteria, doc, options, utils.tick(callback));
|
|
2513
|
+
|
|
2514
|
+
return query;
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
/**
|
|
2518
|
+
* Declare and/or execute this query as a remove() operation.
|
|
2519
|
+
*
|
|
2520
|
+
* ####Example
|
|
2521
|
+
*
|
|
2522
|
+
* mquery(collection).remove({ artist: 'Anne Murray' }, callback)
|
|
2523
|
+
*
|
|
2524
|
+
* ####Note
|
|
2525
|
+
*
|
|
2526
|
+
* The operation is only executed when a callback is passed. To force execution without a callback (which would be an unsafe write), we must first call remove() and then execute it by using the `exec()` method.
|
|
2527
|
+
*
|
|
2528
|
+
* // not executed
|
|
2529
|
+
* var query = mquery(collection).remove({ name: 'Anne Murray' })
|
|
2530
|
+
*
|
|
2531
|
+
* // executed
|
|
2532
|
+
* mquery(collection).remove({ name: 'Anne Murray' }, callback)
|
|
2533
|
+
* mquery(collection).remove({ name: 'Anne Murray' }).remove(callback)
|
|
2534
|
+
*
|
|
2535
|
+
* // executed without a callback (unsafe write)
|
|
2536
|
+
* query.exec()
|
|
2537
|
+
*
|
|
2538
|
+
* // summary
|
|
2539
|
+
* query.remove(conds, fn); // executes
|
|
2540
|
+
* query.remove(conds)
|
|
2541
|
+
* query.remove(fn) // executes
|
|
2542
|
+
* query.remove()
|
|
2543
|
+
*
|
|
2544
|
+
* @param {Object|Query} [criteria] mongodb selector
|
|
2545
|
+
* @param {Function} [callback]
|
|
2546
|
+
* @return {Query} this
|
|
2547
|
+
* @api public
|
|
2548
|
+
*/
|
|
2549
|
+
|
|
2550
|
+
Query.prototype.remove = function(criteria, callback) {
|
|
2551
|
+
this.op = 'remove';
|
|
2552
|
+
var force;
|
|
2553
|
+
|
|
2554
|
+
if ('function' === typeof criteria) {
|
|
2555
|
+
callback = criteria;
|
|
2556
|
+
criteria = undefined;
|
|
2557
|
+
} else if (Query.canMerge(criteria)) {
|
|
2558
|
+
this.merge(criteria);
|
|
2559
|
+
} else if (true === criteria) {
|
|
2560
|
+
force = criteria;
|
|
2561
|
+
criteria = undefined;
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
if (!(force || callback))
|
|
2565
|
+
return this;
|
|
2566
|
+
|
|
2567
|
+
var options = this._optionsForExec();
|
|
2568
|
+
if (!callback) options.safe = false;
|
|
2569
|
+
|
|
2570
|
+
var conds = this._conditions;
|
|
2571
|
+
|
|
2572
|
+
debug$1('remove', this._collection.collectionName, conds, options);
|
|
2573
|
+
callback = this._wrapCallback('remove', callback, {
|
|
2574
|
+
conditions: conds,
|
|
2575
|
+
options: options
|
|
2576
|
+
});
|
|
2577
|
+
|
|
2578
|
+
this._collection.remove(conds, options, utils.tick(callback));
|
|
2579
|
+
|
|
2580
|
+
return this;
|
|
2581
|
+
};
|
|
2582
|
+
|
|
2583
|
+
/**
|
|
2584
|
+
* Declare and/or execute this query as a `deleteOne()` operation. Behaves like
|
|
2585
|
+
* `remove()`, except for ignores the `justOne` option and always deletes at
|
|
2586
|
+
* most one document.
|
|
2587
|
+
*
|
|
2588
|
+
* ####Example
|
|
2589
|
+
*
|
|
2590
|
+
* mquery(collection).deleteOne({ artist: 'Anne Murray' }, callback)
|
|
2591
|
+
*
|
|
2592
|
+
* @param {Object|Query} [criteria] mongodb selector
|
|
2593
|
+
* @param {Function} [callback]
|
|
2594
|
+
* @return {Query} this
|
|
2595
|
+
* @api public
|
|
2596
|
+
*/
|
|
2597
|
+
|
|
2598
|
+
Query.prototype.deleteOne = function(criteria, callback) {
|
|
2599
|
+
this.op = 'deleteOne';
|
|
2600
|
+
var force;
|
|
2601
|
+
|
|
2602
|
+
if ('function' === typeof criteria) {
|
|
2603
|
+
callback = criteria;
|
|
2604
|
+
criteria = undefined;
|
|
2605
|
+
} else if (Query.canMerge(criteria)) {
|
|
2606
|
+
this.merge(criteria);
|
|
2607
|
+
} else if (true === criteria) {
|
|
2608
|
+
force = criteria;
|
|
2609
|
+
criteria = undefined;
|
|
2610
|
+
}
|
|
2611
|
+
|
|
2612
|
+
if (!(force || callback))
|
|
2613
|
+
return this;
|
|
2614
|
+
|
|
2615
|
+
var options = this._optionsForExec();
|
|
2616
|
+
if (!callback) options.safe = false;
|
|
2617
|
+
delete options.justOne;
|
|
2618
|
+
|
|
2619
|
+
var conds = this._conditions;
|
|
2620
|
+
|
|
2621
|
+
debug$1('deleteOne', this._collection.collectionName, conds, options);
|
|
2622
|
+
callback = this._wrapCallback('deleteOne', callback, {
|
|
2623
|
+
conditions: conds,
|
|
2624
|
+
options: options
|
|
2625
|
+
});
|
|
2626
|
+
|
|
2627
|
+
this._collection.deleteOne(conds, options, utils.tick(callback));
|
|
2628
|
+
|
|
2629
|
+
return this;
|
|
2630
|
+
};
|
|
2631
|
+
|
|
2632
|
+
/**
|
|
2633
|
+
* Declare and/or execute this query as a `deleteMany()` operation. Behaves like
|
|
2634
|
+
* `remove()`, except for ignores the `justOne` option and always deletes
|
|
2635
|
+
* _every_ document that matches `criteria`.
|
|
2636
|
+
*
|
|
2637
|
+
* ####Example
|
|
2638
|
+
*
|
|
2639
|
+
* mquery(collection).deleteMany({ artist: 'Anne Murray' }, callback)
|
|
2640
|
+
*
|
|
2641
|
+
* @param {Object|Query} [criteria] mongodb selector
|
|
2642
|
+
* @param {Function} [callback]
|
|
2643
|
+
* @return {Query} this
|
|
2644
|
+
* @api public
|
|
2645
|
+
*/
|
|
2646
|
+
|
|
2647
|
+
Query.prototype.deleteMany = function(criteria, callback) {
|
|
2648
|
+
this.op = 'deleteMany';
|
|
2649
|
+
var force;
|
|
2650
|
+
|
|
2651
|
+
if ('function' === typeof criteria) {
|
|
2652
|
+
callback = criteria;
|
|
2653
|
+
criteria = undefined;
|
|
2654
|
+
} else if (Query.canMerge(criteria)) {
|
|
2655
|
+
this.merge(criteria);
|
|
2656
|
+
} else if (true === criteria) {
|
|
2657
|
+
force = criteria;
|
|
2658
|
+
criteria = undefined;
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
if (!(force || callback))
|
|
2662
|
+
return this;
|
|
2663
|
+
|
|
2664
|
+
var options = this._optionsForExec();
|
|
2665
|
+
if (!callback) options.safe = false;
|
|
2666
|
+
delete options.justOne;
|
|
2667
|
+
|
|
2668
|
+
var conds = this._conditions;
|
|
2669
|
+
|
|
2670
|
+
debug$1('deleteOne', this._collection.collectionName, conds, options);
|
|
2671
|
+
callback = this._wrapCallback('deleteOne', callback, {
|
|
2672
|
+
conditions: conds,
|
|
2673
|
+
options: options
|
|
2674
|
+
});
|
|
2675
|
+
|
|
2676
|
+
this._collection.deleteMany(conds, options, utils.tick(callback));
|
|
2677
|
+
|
|
2678
|
+
return this;
|
|
2679
|
+
};
|
|
2680
|
+
|
|
2681
|
+
/**
|
|
2682
|
+
* Issues a mongodb [findAndModify](http://www.mongodb.org/display/DOCS/findAndModify+Command) update command.
|
|
2683
|
+
*
|
|
2684
|
+
* Finds a matching document, updates it according to the `update` arg, passing any `options`, and returns the found document (if any) to the callback. The query executes immediately if `callback` is passed.
|
|
2685
|
+
*
|
|
2686
|
+
* ####Available options
|
|
2687
|
+
*
|
|
2688
|
+
* - `new`: bool - true to return the modified document rather than the original. defaults to true
|
|
2689
|
+
* - `upsert`: bool - creates the object if it doesn't exist. defaults to false.
|
|
2690
|
+
* - `sort`: if multiple docs are found by the conditions, sets the sort order to choose which doc to update
|
|
2691
|
+
*
|
|
2692
|
+
* ####Examples
|
|
2693
|
+
*
|
|
2694
|
+
* query.findOneAndUpdate(conditions, update, options, callback) // executes
|
|
2695
|
+
* query.findOneAndUpdate(conditions, update, options) // returns Query
|
|
2696
|
+
* query.findOneAndUpdate(conditions, update, callback) // executes
|
|
2697
|
+
* query.findOneAndUpdate(conditions, update) // returns Query
|
|
2698
|
+
* query.findOneAndUpdate(update, callback) // returns Query
|
|
2699
|
+
* query.findOneAndUpdate(update) // returns Query
|
|
2700
|
+
* query.findOneAndUpdate(callback) // executes
|
|
2701
|
+
* query.findOneAndUpdate() // returns Query
|
|
2702
|
+
*
|
|
2703
|
+
* @param {Object|Query} [query]
|
|
2704
|
+
* @param {Object} [doc]
|
|
2705
|
+
* @param {Object} [options]
|
|
2706
|
+
* @param {Function} [callback]
|
|
2707
|
+
* @see mongodb http://www.mongodb.org/display/DOCS/findAndModify+Command
|
|
2708
|
+
* @return {Query} this
|
|
2709
|
+
* @api public
|
|
2710
|
+
*/
|
|
2711
|
+
|
|
2712
|
+
Query.prototype.findOneAndUpdate = function(criteria, doc, options, callback) {
|
|
2713
|
+
this.op = 'findOneAndUpdate';
|
|
2714
|
+
this._validate();
|
|
2715
|
+
|
|
2716
|
+
switch (arguments.length) {
|
|
2717
|
+
case 3:
|
|
2718
|
+
if ('function' == typeof options) {
|
|
2719
|
+
callback = options;
|
|
2720
|
+
options = {};
|
|
2721
|
+
}
|
|
2722
|
+
break;
|
|
2723
|
+
case 2:
|
|
2724
|
+
if ('function' == typeof doc) {
|
|
2725
|
+
callback = doc;
|
|
2726
|
+
doc = criteria;
|
|
2727
|
+
criteria = undefined;
|
|
2728
|
+
}
|
|
2729
|
+
options = undefined;
|
|
2730
|
+
break;
|
|
2731
|
+
case 1:
|
|
2732
|
+
if ('function' == typeof criteria) {
|
|
2733
|
+
callback = criteria;
|
|
2734
|
+
criteria = options = doc = undefined;
|
|
2735
|
+
} else {
|
|
2736
|
+
doc = criteria;
|
|
2737
|
+
criteria = options = undefined;
|
|
2738
|
+
}
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
if (Query.canMerge(criteria)) {
|
|
2742
|
+
this.merge(criteria);
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
// apply doc
|
|
2746
|
+
if (doc) {
|
|
2747
|
+
this._mergeUpdate(doc);
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
options && this.setOptions(options);
|
|
2751
|
+
|
|
2752
|
+
if (!callback) return this;
|
|
2753
|
+
return this._findAndModify('update', callback);
|
|
2754
|
+
};
|
|
2755
|
+
|
|
2756
|
+
/**
|
|
2757
|
+
* Issues a mongodb [findAndModify](http://www.mongodb.org/display/DOCS/findAndModify+Command) remove command.
|
|
2758
|
+
*
|
|
2759
|
+
* Finds a matching document, removes it, passing the found document (if any) to the callback. Executes immediately if `callback` is passed.
|
|
2760
|
+
*
|
|
2761
|
+
* ####Available options
|
|
2762
|
+
*
|
|
2763
|
+
* - `sort`: if multiple docs are found by the conditions, sets the sort order to choose which doc to update
|
|
2764
|
+
*
|
|
2765
|
+
* ####Examples
|
|
2766
|
+
*
|
|
2767
|
+
* A.where().findOneAndRemove(conditions, options, callback) // executes
|
|
2768
|
+
* A.where().findOneAndRemove(conditions, options) // return Query
|
|
2769
|
+
* A.where().findOneAndRemove(conditions, callback) // executes
|
|
2770
|
+
* A.where().findOneAndRemove(conditions) // returns Query
|
|
2771
|
+
* A.where().findOneAndRemove(callback) // executes
|
|
2772
|
+
* A.where().findOneAndRemove() // returns Query
|
|
2773
|
+
* A.where().findOneAndDelete() // alias of .findOneAndRemove()
|
|
2774
|
+
*
|
|
2775
|
+
* @param {Object} [conditions]
|
|
2776
|
+
* @param {Object} [options]
|
|
2777
|
+
* @param {Function} [callback]
|
|
2778
|
+
* @return {Query} this
|
|
2779
|
+
* @see mongodb http://www.mongodb.org/display/DOCS/findAndModify+Command
|
|
2780
|
+
* @api public
|
|
2781
|
+
*/
|
|
2782
|
+
|
|
2783
|
+
Query.prototype.findOneAndRemove = Query.prototype.findOneAndDelete = function(conditions, options, callback) {
|
|
2784
|
+
this.op = 'findOneAndRemove';
|
|
2785
|
+
this._validate();
|
|
2786
|
+
|
|
2787
|
+
if ('function' == typeof options) {
|
|
2788
|
+
callback = options;
|
|
2789
|
+
options = undefined;
|
|
2790
|
+
} else if ('function' == typeof conditions) {
|
|
2791
|
+
callback = conditions;
|
|
2792
|
+
conditions = undefined;
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2795
|
+
// apply conditions
|
|
2796
|
+
if (Query.canMerge(conditions)) {
|
|
2797
|
+
this.merge(conditions);
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
// apply options
|
|
2801
|
+
options && this.setOptions(options);
|
|
2802
|
+
|
|
2803
|
+
if (!callback) return this;
|
|
2804
|
+
|
|
2805
|
+
return this._findAndModify('remove', callback);
|
|
2806
|
+
};
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* _findAndModify
|
|
2810
|
+
*
|
|
2811
|
+
* @param {String} type - either "remove" or "update"
|
|
2812
|
+
* @param {Function} callback
|
|
2813
|
+
* @api private
|
|
2814
|
+
*/
|
|
2815
|
+
|
|
2816
|
+
Query.prototype._findAndModify = function(type, callback) {
|
|
2817
|
+
assert.equal('function', typeof callback);
|
|
2818
|
+
|
|
2819
|
+
var options = this._optionsForExec();
|
|
2820
|
+
var fields;
|
|
2821
|
+
var doc;
|
|
2822
|
+
|
|
2823
|
+
if ('remove' == type) {
|
|
2824
|
+
options.remove = true;
|
|
2825
|
+
} else {
|
|
2826
|
+
if (!('new' in options)) options.new = true;
|
|
2827
|
+
if (!('upsert' in options)) options.upsert = false;
|
|
2828
|
+
|
|
2829
|
+
doc = this._updateForExec();
|
|
2830
|
+
if (!doc) {
|
|
2831
|
+
if (options.upsert) {
|
|
2832
|
+
// still need to do the upsert to empty doc
|
|
2833
|
+
doc = { $set: {} };
|
|
2834
|
+
} else {
|
|
2835
|
+
return this.findOne(callback);
|
|
2836
|
+
}
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
fields = this._fieldsForExec();
|
|
2841
|
+
if (fields != null) {
|
|
2842
|
+
if (this.$useProjection) {
|
|
2843
|
+
options.projection = this._fieldsForExec();
|
|
2844
|
+
} else {
|
|
2845
|
+
options.fields = this._fieldsForExec();
|
|
2846
|
+
}
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
var conds = this._conditions;
|
|
2850
|
+
|
|
2851
|
+
debug$1('findAndModify', this._collection.collectionName, conds, doc, options);
|
|
2852
|
+
callback = this._wrapCallback('findAndModify', callback, {
|
|
2853
|
+
conditions: conds,
|
|
2854
|
+
doc: doc,
|
|
2855
|
+
options: options
|
|
2856
|
+
});
|
|
2857
|
+
|
|
2858
|
+
this._collection.findAndModify(conds, doc, options, utils.tick(callback));
|
|
2859
|
+
|
|
2860
|
+
return this;
|
|
2861
|
+
};
|
|
2862
|
+
|
|
2863
|
+
/**
|
|
2864
|
+
* Wrap callback to add tracing
|
|
2865
|
+
*
|
|
2866
|
+
* @param {Function} callback
|
|
2867
|
+
* @param {Object} [queryInfo]
|
|
2868
|
+
* @api private
|
|
2869
|
+
*/
|
|
2870
|
+
Query.prototype._wrapCallback = function(method, callback, queryInfo) {
|
|
2871
|
+
var traceFunction = this._traceFunction || Query.traceFunction;
|
|
2872
|
+
|
|
2873
|
+
if (traceFunction) {
|
|
2874
|
+
queryInfo.collectionName = this._collection.collectionName;
|
|
2875
|
+
|
|
2876
|
+
var traceCallback = traceFunction &&
|
|
2877
|
+
traceFunction.call(null, method, queryInfo, this);
|
|
2878
|
+
|
|
2879
|
+
var startTime = new Date().getTime();
|
|
2880
|
+
|
|
2881
|
+
return function wrapperCallback(err, result) {
|
|
2882
|
+
if (traceCallback) {
|
|
2883
|
+
var millis = new Date().getTime() - startTime;
|
|
2884
|
+
traceCallback.call(null, err, result, millis);
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2887
|
+
if (callback) {
|
|
2888
|
+
callback.apply(null, arguments);
|
|
2889
|
+
}
|
|
2890
|
+
};
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
return callback;
|
|
2894
|
+
};
|
|
2895
|
+
|
|
2896
|
+
/**
|
|
2897
|
+
* Add trace function that gets called when the query is executed.
|
|
2898
|
+
* The function will be called with (method, queryInfo, query) and
|
|
2899
|
+
* should return a callback function which will be called
|
|
2900
|
+
* with (err, result, millis) when the query is complete.
|
|
2901
|
+
*
|
|
2902
|
+
* queryInfo is an object containing: {
|
|
2903
|
+
* collectionName: <name of the collection>,
|
|
2904
|
+
* conditions: <query criteria>,
|
|
2905
|
+
* options: <comment, fields, readPreference, etc>,
|
|
2906
|
+
* doc: [document to update, if applicable]
|
|
2907
|
+
* }
|
|
2908
|
+
*
|
|
2909
|
+
* NOTE: Does not trace stream queries.
|
|
2910
|
+
*
|
|
2911
|
+
* @param {Function} traceFunction
|
|
2912
|
+
* @return {Query} this
|
|
2913
|
+
* @api public
|
|
2914
|
+
*/
|
|
2915
|
+
Query.prototype.setTraceFunction = function(traceFunction) {
|
|
2916
|
+
this._traceFunction = traceFunction;
|
|
2917
|
+
return this;
|
|
2918
|
+
};
|
|
2919
|
+
|
|
2920
|
+
/**
|
|
2921
|
+
* Executes the query
|
|
2922
|
+
*
|
|
2923
|
+
* ####Examples
|
|
2924
|
+
*
|
|
2925
|
+
* query.exec();
|
|
2926
|
+
* query.exec(callback);
|
|
2927
|
+
* query.exec('update');
|
|
2928
|
+
* query.exec('find', callback);
|
|
2929
|
+
*
|
|
2930
|
+
* @param {String|Function} [operation]
|
|
2931
|
+
* @param {Function} [callback]
|
|
2932
|
+
* @api public
|
|
2933
|
+
*/
|
|
2934
|
+
|
|
2935
|
+
Query.prototype.exec = function exec(op, callback) {
|
|
2936
|
+
switch (typeof op) {
|
|
2937
|
+
case 'function':
|
|
2938
|
+
callback = op;
|
|
2939
|
+
op = null;
|
|
2940
|
+
break;
|
|
2941
|
+
case 'string':
|
|
2942
|
+
this.op = op;
|
|
2943
|
+
break;
|
|
2944
|
+
}
|
|
2945
|
+
|
|
2946
|
+
assert.ok(this.op, 'Missing query type: (find, update, etc)');
|
|
2947
|
+
|
|
2948
|
+
if ('update' == this.op || 'remove' == this.op) {
|
|
2949
|
+
callback || (callback = true);
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
var _this = this;
|
|
2953
|
+
|
|
2954
|
+
if ('function' == typeof callback) {
|
|
2955
|
+
this[this.op](callback);
|
|
2956
|
+
} else {
|
|
2957
|
+
return new Query.Promise(function(success, error) {
|
|
2958
|
+
_this[_this.op](function(err, val) {
|
|
2959
|
+
if (err) error(err);
|
|
2960
|
+
else success(val);
|
|
2961
|
+
success = error = null;
|
|
2962
|
+
});
|
|
2963
|
+
});
|
|
2964
|
+
}
|
|
2965
|
+
};
|
|
2966
|
+
|
|
2967
|
+
/**
|
|
2968
|
+
* Returns a thunk which when called runs this.exec()
|
|
2969
|
+
*
|
|
2970
|
+
* The thunk receives a callback function which will be
|
|
2971
|
+
* passed to `this.exec()`
|
|
2972
|
+
*
|
|
2973
|
+
* @return {Function}
|
|
2974
|
+
* @api public
|
|
2975
|
+
*/
|
|
2976
|
+
|
|
2977
|
+
Query.prototype.thunk = function() {
|
|
2978
|
+
var _this = this;
|
|
2979
|
+
return function(cb) {
|
|
2980
|
+
_this.exec(cb);
|
|
2981
|
+
};
|
|
2982
|
+
};
|
|
2983
|
+
|
|
2984
|
+
/**
|
|
2985
|
+
* Executes the query returning a `Promise` which will be
|
|
2986
|
+
* resolved with either the doc(s) or rejected with the error.
|
|
2987
|
+
*
|
|
2988
|
+
* @param {Function} [resolve]
|
|
2989
|
+
* @param {Function} [reject]
|
|
2990
|
+
* @return {Promise}
|
|
2991
|
+
* @api public
|
|
2992
|
+
*/
|
|
2993
|
+
|
|
2994
|
+
Query.prototype.then = function(resolve, reject) {
|
|
2995
|
+
var _this = this;
|
|
2996
|
+
var promise = new Query.Promise(function(success, error) {
|
|
2997
|
+
_this.exec(function(err, val) {
|
|
2998
|
+
if (err) error(err);
|
|
2999
|
+
else success(val);
|
|
3000
|
+
success = error = null;
|
|
3001
|
+
});
|
|
3002
|
+
});
|
|
3003
|
+
return promise.then(resolve, reject);
|
|
3004
|
+
};
|
|
3005
|
+
|
|
3006
|
+
/**
|
|
3007
|
+
* Returns a stream for the given find query.
|
|
3008
|
+
*
|
|
3009
|
+
* @throws Error if operation is not a find
|
|
3010
|
+
* @returns {Stream} Node 0.8 style
|
|
3011
|
+
*/
|
|
3012
|
+
|
|
3013
|
+
Query.prototype.stream = function(streamOptions) {
|
|
3014
|
+
if ('find' != this.op)
|
|
3015
|
+
throw new Error('stream() is only available for find');
|
|
3016
|
+
|
|
3017
|
+
var conds = this._conditions;
|
|
3018
|
+
|
|
3019
|
+
var options = this._optionsForExec();
|
|
3020
|
+
if (this.$useProjection) {
|
|
3021
|
+
options.projection = this._fieldsForExec();
|
|
3022
|
+
} else {
|
|
3023
|
+
options.fields = this._fieldsForExec();
|
|
3024
|
+
}
|
|
3025
|
+
|
|
3026
|
+
debug$1('stream', this._collection.collectionName, conds, options, streamOptions);
|
|
3027
|
+
|
|
3028
|
+
return this._collection.findStream(conds, options, streamOptions);
|
|
3029
|
+
};
|
|
3030
|
+
|
|
3031
|
+
/**
|
|
3032
|
+
* Determines if field selection has been made.
|
|
3033
|
+
*
|
|
3034
|
+
* @return {Boolean}
|
|
3035
|
+
* @api public
|
|
3036
|
+
*/
|
|
3037
|
+
|
|
3038
|
+
Query.prototype.selected = function selected() {
|
|
3039
|
+
return !!(this._fields && Object.keys(this._fields).length > 0);
|
|
3040
|
+
};
|
|
3041
|
+
|
|
3042
|
+
/**
|
|
3043
|
+
* Determines if inclusive field selection has been made.
|
|
3044
|
+
*
|
|
3045
|
+
* query.selectedInclusively() // false
|
|
3046
|
+
* query.select('name')
|
|
3047
|
+
* query.selectedInclusively() // true
|
|
3048
|
+
* query.selectedExlusively() // false
|
|
3049
|
+
*
|
|
3050
|
+
* @returns {Boolean}
|
|
3051
|
+
*/
|
|
3052
|
+
|
|
3053
|
+
Query.prototype.selectedInclusively = function selectedInclusively() {
|
|
3054
|
+
if (!this._fields) return false;
|
|
3055
|
+
|
|
3056
|
+
var keys = Object.keys(this._fields);
|
|
3057
|
+
if (0 === keys.length) return false;
|
|
3058
|
+
|
|
3059
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
3060
|
+
var key = keys[i];
|
|
3061
|
+
if (0 === this._fields[key]) return false;
|
|
3062
|
+
if (this._fields[key] &&
|
|
3063
|
+
typeof this._fields[key] === 'object' &&
|
|
3064
|
+
this._fields[key].$meta) {
|
|
3065
|
+
return false;
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3068
|
+
|
|
3069
|
+
return true;
|
|
3070
|
+
};
|
|
3071
|
+
|
|
3072
|
+
/**
|
|
3073
|
+
* Determines if exclusive field selection has been made.
|
|
3074
|
+
*
|
|
3075
|
+
* query.selectedExlusively() // false
|
|
3076
|
+
* query.select('-name')
|
|
3077
|
+
* query.selectedExlusively() // true
|
|
3078
|
+
* query.selectedInclusively() // false
|
|
3079
|
+
*
|
|
3080
|
+
* @returns {Boolean}
|
|
3081
|
+
*/
|
|
3082
|
+
|
|
3083
|
+
Query.prototype.selectedExclusively = function selectedExclusively() {
|
|
3084
|
+
if (!this._fields) return false;
|
|
3085
|
+
|
|
3086
|
+
var keys = Object.keys(this._fields);
|
|
3087
|
+
if (0 === keys.length) return false;
|
|
3088
|
+
|
|
3089
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
3090
|
+
var key = keys[i];
|
|
3091
|
+
if (0 === this._fields[key]) return true;
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
return false;
|
|
3095
|
+
};
|
|
3096
|
+
|
|
3097
|
+
/**
|
|
3098
|
+
* Merges `doc` with the current update object.
|
|
3099
|
+
*
|
|
3100
|
+
* @param {Object} doc
|
|
3101
|
+
*/
|
|
3102
|
+
|
|
3103
|
+
Query.prototype._mergeUpdate = function(doc) {
|
|
3104
|
+
if (!this._update) this._update = {};
|
|
3105
|
+
if (doc instanceof Query) {
|
|
3106
|
+
if (doc._update) {
|
|
3107
|
+
utils.mergeClone(this._update, doc._update);
|
|
3108
|
+
}
|
|
3109
|
+
} else {
|
|
3110
|
+
utils.mergeClone(this._update, doc);
|
|
3111
|
+
}
|
|
3112
|
+
};
|
|
3113
|
+
|
|
3114
|
+
/**
|
|
3115
|
+
* Returns default options.
|
|
3116
|
+
*
|
|
3117
|
+
* @return {Object}
|
|
3118
|
+
* @api private
|
|
3119
|
+
*/
|
|
3120
|
+
|
|
3121
|
+
Query.prototype._optionsForExec = function() {
|
|
3122
|
+
var options = utils.clone(this.options);
|
|
3123
|
+
return options;
|
|
3124
|
+
};
|
|
3125
|
+
|
|
3126
|
+
/**
|
|
3127
|
+
* Returns fields selection for this query.
|
|
3128
|
+
*
|
|
3129
|
+
* @return {Object}
|
|
3130
|
+
* @api private
|
|
3131
|
+
*/
|
|
3132
|
+
|
|
3133
|
+
Query.prototype._fieldsForExec = function() {
|
|
3134
|
+
return utils.clone(this._fields);
|
|
3135
|
+
};
|
|
3136
|
+
|
|
3137
|
+
/**
|
|
3138
|
+
* Return an update document with corrected $set operations.
|
|
3139
|
+
*
|
|
3140
|
+
* @api private
|
|
3141
|
+
*/
|
|
3142
|
+
|
|
3143
|
+
Query.prototype._updateForExec = function() {
|
|
3144
|
+
var update = utils.clone(this._update),
|
|
3145
|
+
ops = utils.keys(update),
|
|
3146
|
+
i = ops.length,
|
|
3147
|
+
ret = {};
|
|
3148
|
+
|
|
3149
|
+
while (i--) {
|
|
3150
|
+
var op = ops[i];
|
|
3151
|
+
|
|
3152
|
+
if (this.options.overwrite) {
|
|
3153
|
+
ret[op] = update[op];
|
|
3154
|
+
continue;
|
|
3155
|
+
}
|
|
3156
|
+
|
|
3157
|
+
if ('$' !== op[0]) {
|
|
3158
|
+
// fix up $set sugar
|
|
3159
|
+
if (!ret.$set) {
|
|
3160
|
+
if (update.$set) {
|
|
3161
|
+
ret.$set = update.$set;
|
|
3162
|
+
} else {
|
|
3163
|
+
ret.$set = {};
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
ret.$set[op] = update[op];
|
|
3167
|
+
ops.splice(i, 1);
|
|
3168
|
+
if (!~ops.indexOf('$set')) ops.push('$set');
|
|
3169
|
+
} else if ('$set' === op) {
|
|
3170
|
+
if (!ret.$set) {
|
|
3171
|
+
ret[op] = update[op];
|
|
3172
|
+
}
|
|
3173
|
+
} else {
|
|
3174
|
+
ret[op] = update[op];
|
|
3175
|
+
}
|
|
3176
|
+
}
|
|
3177
|
+
|
|
3178
|
+
this._compiledUpdate = ret;
|
|
3179
|
+
return ret;
|
|
3180
|
+
};
|
|
3181
|
+
|
|
3182
|
+
/**
|
|
3183
|
+
* Make sure _path is set.
|
|
3184
|
+
*
|
|
3185
|
+
* @parmam {String} method
|
|
3186
|
+
*/
|
|
3187
|
+
|
|
3188
|
+
Query.prototype._ensurePath = function(method) {
|
|
3189
|
+
if (!this._path) {
|
|
3190
|
+
var msg = method + '() must be used after where() '
|
|
3191
|
+
+ 'when called with these arguments';
|
|
3192
|
+
throw new Error(msg);
|
|
3193
|
+
}
|
|
3194
|
+
};
|
|
3195
|
+
|
|
3196
|
+
/*!
|
|
3197
|
+
* Permissions
|
|
3198
|
+
*/
|
|
3199
|
+
|
|
3200
|
+
Query.permissions = permissions;
|
|
3201
|
+
|
|
3202
|
+
Query._isPermitted = function(a, b) {
|
|
3203
|
+
var denied = Query.permissions[b];
|
|
3204
|
+
if (!denied) return true;
|
|
3205
|
+
return true !== denied[a];
|
|
3206
|
+
};
|
|
3207
|
+
|
|
3208
|
+
Query.prototype._validate = function(action) {
|
|
3209
|
+
var fail;
|
|
3210
|
+
var validator;
|
|
3211
|
+
|
|
3212
|
+
if (undefined === action) {
|
|
3213
|
+
|
|
3214
|
+
validator = Query.permissions[this.op];
|
|
3215
|
+
if ('function' != typeof validator) return true;
|
|
3216
|
+
|
|
3217
|
+
fail = validator(this);
|
|
3218
|
+
|
|
3219
|
+
} else if (!Query._isPermitted(action, this.op)) {
|
|
3220
|
+
fail = action;
|
|
3221
|
+
}
|
|
3222
|
+
|
|
3223
|
+
if (fail) {
|
|
3224
|
+
throw new Error(fail + ' cannot be used with ' + this.op);
|
|
3225
|
+
}
|
|
3226
|
+
};
|
|
3227
|
+
|
|
3228
|
+
/**
|
|
3229
|
+
* Determines if `conds` can be merged using `mquery().merge()`
|
|
3230
|
+
*
|
|
3231
|
+
* @param {Object} conds
|
|
3232
|
+
* @return {Boolean}
|
|
3233
|
+
*/
|
|
3234
|
+
|
|
3235
|
+
Query.canMerge = function(conds) {
|
|
3236
|
+
return conds instanceof Query || utils.isObject(conds);
|
|
3237
|
+
};
|
|
3238
|
+
|
|
3239
|
+
/**
|
|
3240
|
+
* Set a trace function that will get called whenever a
|
|
3241
|
+
* query is executed.
|
|
3242
|
+
*
|
|
3243
|
+
* See `setTraceFunction()` for details.
|
|
3244
|
+
*
|
|
3245
|
+
* @param {Object} conds
|
|
3246
|
+
* @return {Boolean}
|
|
3247
|
+
*/
|
|
3248
|
+
Query.setGlobalTraceFunction = function(traceFunction) {
|
|
3249
|
+
Query.traceFunction = traceFunction;
|
|
3250
|
+
};
|
|
3251
|
+
|
|
3252
|
+
/*!
|
|
3253
|
+
* Exports.
|
|
3254
|
+
*/
|
|
3255
|
+
|
|
3256
|
+
Query.utils = utils;
|
|
3257
|
+
Query.env = env;
|
|
3258
|
+
Query.Collection = collection;
|
|
3259
|
+
Query.BaseCollection = collection$1;
|
|
3260
|
+
Query.Promise = bluebird_1;
|
|
3261
|
+
module.exports = Query;
|
|
3262
|
+
|
|
3263
|
+
// TODO
|
|
3264
|
+
// test utils
|
|
3265
|
+
});
|
|
3266
|
+
|
|
3267
|
+
export default mquery;
|
|
3268
|
+
//# sourceMappingURL=mquery.mjs.map
|