├── Aggregations ├── index.js └── test.js ├── comparison_oper.js ├── createIndex.js ├── crud ├── create_inserts.js ├── delete.js ├── read.js └── udpate.js ├── cursor_mehtods.js ├── database_collection.js ├── elements_oper.js ├── embedded_doc.js ├── expresion.js ├── logical_oper.js ├── mongo_import.js ├── mongo_node ├── index.js ├── node_modules │ ├── .package-lock.json │ ├── @types │ │ ├── node │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── assert.d.ts │ │ │ ├── assert │ │ │ │ └── strict.d.ts │ │ │ ├── async_hooks.d.ts │ │ │ ├── buffer.d.ts │ │ │ ├── child_process.d.ts │ │ │ ├── cluster.d.ts │ │ │ ├── console.d.ts │ │ │ ├── constants.d.ts │ │ │ ├── crypto.d.ts │ │ │ ├── dgram.d.ts │ │ │ ├── diagnostics_channel.d.ts │ │ │ ├── dns.d.ts │ │ │ ├── dns │ │ │ │ └── promises.d.ts │ │ │ ├── dom-events.d.ts │ │ │ ├── domain.d.ts │ │ │ ├── events.d.ts │ │ │ ├── fs.d.ts │ │ │ ├── fs │ │ │ │ └── promises.d.ts │ │ │ ├── globals.d.ts │ │ │ ├── globals.global.d.ts │ │ │ ├── http.d.ts │ │ │ ├── http2.d.ts │ │ │ ├── https.d.ts │ │ │ ├── index.d.ts │ │ │ ├── inspector.d.ts │ │ │ ├── module.d.ts │ │ │ ├── net.d.ts │ │ │ ├── os.d.ts │ │ │ ├── package.json │ │ │ ├── path.d.ts │ │ │ ├── perf_hooks.d.ts │ │ │ ├── process.d.ts │ │ │ ├── punycode.d.ts │ │ │ ├── querystring.d.ts │ │ │ ├── readline.d.ts │ │ │ ├── readline │ │ │ │ └── promises.d.ts │ │ │ ├── repl.d.ts │ │ │ ├── stream.d.ts │ │ │ ├── stream │ │ │ │ ├── consumers.d.ts │ │ │ │ ├── promises.d.ts │ │ │ │ └── web.d.ts │ │ │ ├── string_decoder.d.ts │ │ │ ├── test.d.ts │ │ │ ├── timers.d.ts │ │ │ ├── timers │ │ │ │ └── promises.d.ts │ │ │ ├── tls.d.ts │ │ │ ├── trace_events.d.ts │ │ │ ├── ts4.8 │ │ │ │ ├── assert.d.ts │ │ │ │ ├── assert │ │ │ │ │ └── strict.d.ts │ │ │ │ ├── async_hooks.d.ts │ │ │ │ ├── buffer.d.ts │ │ │ │ ├── child_process.d.ts │ │ │ │ ├── cluster.d.ts │ │ │ │ ├── console.d.ts │ │ │ │ ├── constants.d.ts │ │ │ │ ├── crypto.d.ts │ │ │ │ ├── dgram.d.ts │ │ │ │ ├── diagnostics_channel.d.ts │ │ │ │ ├── dns.d.ts │ │ │ │ ├── dns │ │ │ │ │ └── promises.d.ts │ │ │ │ ├── dom-events.d.ts │ │ │ │ ├── domain.d.ts │ │ │ │ ├── events.d.ts │ │ │ │ ├── fs.d.ts │ │ │ │ ├── fs │ │ │ │ │ └── promises.d.ts │ │ │ │ ├── globals.d.ts │ │ │ │ ├── globals.global.d.ts │ │ │ │ ├── http.d.ts │ │ │ │ ├── http2.d.ts │ │ │ │ ├── https.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── inspector.d.ts │ │ │ │ ├── module.d.ts │ │ │ │ ├── net.d.ts │ │ │ │ ├── os.d.ts │ │ │ │ ├── path.d.ts │ │ │ │ ├── perf_hooks.d.ts │ │ │ │ ├── process.d.ts │ │ │ │ ├── punycode.d.ts │ │ │ │ ├── querystring.d.ts │ │ │ │ ├── readline.d.ts │ │ │ │ ├── readline │ │ │ │ │ └── promises.d.ts │ │ │ │ ├── repl.d.ts │ │ │ │ ├── stream.d.ts │ │ │ │ ├── stream │ │ │ │ │ ├── consumers.d.ts │ │ │ │ │ ├── promises.d.ts │ │ │ │ │ └── web.d.ts │ │ │ │ ├── string_decoder.d.ts │ │ │ │ ├── test.d.ts │ │ │ │ ├── timers.d.ts │ │ │ │ ├── timers │ │ │ │ │ └── promises.d.ts │ │ │ │ ├── tls.d.ts │ │ │ │ ├── trace_events.d.ts │ │ │ │ ├── tty.d.ts │ │ │ │ ├── url.d.ts │ │ │ │ ├── util.d.ts │ │ │ │ ├── v8.d.ts │ │ │ │ ├── vm.d.ts │ │ │ │ ├── wasi.d.ts │ │ │ │ ├── worker_threads.d.ts │ │ │ │ └── zlib.d.ts │ │ │ ├── tty.d.ts │ │ │ ├── url.d.ts │ │ │ ├── util.d.ts │ │ │ ├── v8.d.ts │ │ │ ├── vm.d.ts │ │ │ ├── wasi.d.ts │ │ │ ├── worker_threads.d.ts │ │ │ └── zlib.d.ts │ │ ├── webidl-conversions │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.d.ts │ │ │ └── package.json │ │ └── whatwg-url │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── dist │ │ │ ├── URL-impl.d.ts │ │ │ ├── URL.d.ts │ │ │ ├── URLSearchParams-impl.d.ts │ │ │ └── URLSearchParams.d.ts │ │ │ ├── index.d.ts │ │ │ ├── package.json │ │ │ └── webidl2js-wrapper.d.ts │ ├── bson │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── bson.d.ts │ │ ├── etc │ │ │ └── prepare.js │ │ ├── lib │ │ │ ├── bson.bundle.js │ │ │ ├── bson.bundle.js.map │ │ │ ├── bson.cjs │ │ │ ├── bson.cjs.map │ │ │ ├── bson.mjs │ │ │ ├── bson.mjs.map │ │ │ ├── bson.rn.cjs │ │ │ └── bson.rn.cjs.map │ │ ├── package.json │ │ ├── src │ │ │ ├── binary.ts │ │ │ ├── bson.ts │ │ │ ├── bson_value.ts │ │ │ ├── code.ts │ │ │ ├── constants.ts │ │ │ ├── db_ref.ts │ │ │ ├── decimal128.ts │ │ │ ├── double.ts │ │ │ ├── error.ts │ │ │ ├── extended_json.ts │ │ │ ├── index.ts │ │ │ ├── int_32.ts │ │ │ ├── long.ts │ │ │ ├── max_key.ts │ │ │ ├── min_key.ts │ │ │ ├── objectid.ts │ │ │ ├── parser │ │ │ │ ├── calculate_size.ts │ │ │ │ ├── deserializer.ts │ │ │ │ ├── serializer.ts │ │ │ │ └── utils.ts │ │ │ ├── regexp.ts │ │ │ ├── symbol.ts │ │ │ ├── timestamp.ts │ │ │ ├── utils │ │ │ │ ├── byte_utils.ts │ │ │ │ ├── node_byte_utils.ts │ │ │ │ └── web_byte_utils.ts │ │ │ └── validate_utf8.ts │ │ └── vendor │ │ │ ├── base64 │ │ │ ├── LICENSE-MIT.txt │ │ │ ├── README.md │ │ │ ├── base64.js │ │ │ └── package.json │ │ │ └── text-encoding │ │ │ ├── LICENSE.md │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ ├── encoding-indexes.js │ │ │ └── encoding.js │ │ │ └── package.json │ ├── ip │ │ ├── README.md │ │ ├── lib │ │ │ └── ip.js │ │ └── package.json │ ├── memory-pager │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ ├── package.json │ │ └── test.js │ ├── mongodb-connection-string-url │ │ ├── .esm-wrapper.mjs │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── redact.d.ts │ │ │ ├── redact.js │ │ │ └── redact.js.map │ │ └── package.json │ ├── mongodb │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── etc │ │ │ └── prepare.js │ │ ├── lib │ │ │ ├── admin.js │ │ │ ├── admin.js.map │ │ │ ├── bson.js │ │ │ ├── bson.js.map │ │ │ ├── bulk │ │ │ │ ├── common.js │ │ │ │ ├── common.js.map │ │ │ │ ├── ordered.js │ │ │ │ ├── ordered.js.map │ │ │ │ ├── unordered.js │ │ │ │ └── unordered.js.map │ │ │ ├── change_stream.js │ │ │ ├── change_stream.js.map │ │ │ ├── cmap │ │ │ │ ├── auth │ │ │ │ │ ├── auth_provider.js │ │ │ │ │ ├── auth_provider.js.map │ │ │ │ │ ├── gssapi.js │ │ │ │ │ ├── gssapi.js.map │ │ │ │ │ ├── mongo_credentials.js │ │ │ │ │ ├── mongo_credentials.js.map │ │ │ │ │ ├── mongocr.js │ │ │ │ │ ├── mongocr.js.map │ │ │ │ │ ├── mongodb_aws.js │ │ │ │ │ ├── mongodb_aws.js.map │ │ │ │ │ ├── mongodb_oidc.js │ │ │ │ │ ├── mongodb_oidc.js.map │ │ │ │ │ ├── mongodb_oidc │ │ │ │ │ │ ├── aws_service_workflow.js │ │ │ │ │ │ ├── aws_service_workflow.js.map │ │ │ │ │ │ ├── azure_service_workflow.js │ │ │ │ │ │ ├── azure_service_workflow.js.map │ │ │ │ │ │ ├── azure_token_cache.js │ │ │ │ │ │ ├── azure_token_cache.js.map │ │ │ │ │ │ ├── cache.js │ │ │ │ │ │ ├── cache.js.map │ │ │ │ │ │ ├── callback_lock_cache.js │ │ │ │ │ │ ├── callback_lock_cache.js.map │ │ │ │ │ │ ├── callback_workflow.js │ │ │ │ │ │ ├── callback_workflow.js.map │ │ │ │ │ │ ├── service_workflow.js │ │ │ │ │ │ ├── service_workflow.js.map │ │ │ │ │ │ ├── token_entry_cache.js │ │ │ │ │ │ └── token_entry_cache.js.map │ │ │ │ │ ├── plain.js │ │ │ │ │ ├── plain.js.map │ │ │ │ │ ├── providers.js │ │ │ │ │ ├── providers.js.map │ │ │ │ │ ├── scram.js │ │ │ │ │ ├── scram.js.map │ │ │ │ │ ├── x509.js │ │ │ │ │ └── x509.js.map │ │ │ │ ├── command_monitoring_events.js │ │ │ │ ├── command_monitoring_events.js.map │ │ │ │ ├── commands.js │ │ │ │ ├── commands.js.map │ │ │ │ ├── connect.js │ │ │ │ ├── connect.js.map │ │ │ │ ├── connection.js │ │ │ │ ├── connection.js.map │ │ │ │ ├── connection_pool.js │ │ │ │ ├── connection_pool.js.map │ │ │ │ ├── connection_pool_events.js │ │ │ │ ├── connection_pool_events.js.map │ │ │ │ ├── errors.js │ │ │ │ ├── errors.js.map │ │ │ │ ├── handshake │ │ │ │ │ ├── client_metadata.js │ │ │ │ │ └── client_metadata.js.map │ │ │ │ ├── message_stream.js │ │ │ │ ├── message_stream.js.map │ │ │ │ ├── metrics.js │ │ │ │ ├── metrics.js.map │ │ │ │ ├── stream_description.js │ │ │ │ ├── stream_description.js.map │ │ │ │ └── wire_protocol │ │ │ │ │ ├── compression.js │ │ │ │ │ ├── compression.js.map │ │ │ │ │ ├── constants.js │ │ │ │ │ ├── constants.js.map │ │ │ │ │ ├── shared.js │ │ │ │ │ └── shared.js.map │ │ │ ├── collection.js │ │ │ ├── collection.js.map │ │ │ ├── connection_string.js │ │ │ ├── connection_string.js.map │ │ │ ├── constants.js │ │ │ ├── constants.js.map │ │ │ ├── cursor │ │ │ │ ├── abstract_cursor.js │ │ │ │ ├── abstract_cursor.js.map │ │ │ │ ├── aggregation_cursor.js │ │ │ │ ├── aggregation_cursor.js.map │ │ │ │ ├── change_stream_cursor.js │ │ │ │ ├── change_stream_cursor.js.map │ │ │ │ ├── find_cursor.js │ │ │ │ ├── find_cursor.js.map │ │ │ │ ├── list_collections_cursor.js │ │ │ │ ├── list_collections_cursor.js.map │ │ │ │ ├── list_indexes_cursor.js │ │ │ │ ├── list_indexes_cursor.js.map │ │ │ │ ├── list_search_indexes_cursor.js │ │ │ │ ├── list_search_indexes_cursor.js.map │ │ │ │ ├── run_command_cursor.js │ │ │ │ └── run_command_cursor.js.map │ │ │ ├── db.js │ │ │ ├── db.js.map │ │ │ ├── deps.js │ │ │ ├── deps.js.map │ │ │ ├── encrypter.js │ │ │ ├── encrypter.js.map │ │ │ ├── error.js │ │ │ ├── error.js.map │ │ │ ├── explain.js │ │ │ ├── explain.js.map │ │ │ ├── gridfs │ │ │ │ ├── download.js │ │ │ │ ├── download.js.map │ │ │ │ ├── index.js │ │ │ │ ├── index.js.map │ │ │ │ ├── upload.js │ │ │ │ └── upload.js.map │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── mongo_client.js │ │ │ ├── mongo_client.js.map │ │ │ ├── mongo_logger.js │ │ │ ├── mongo_logger.js.map │ │ │ ├── mongo_types.js │ │ │ ├── mongo_types.js.map │ │ │ ├── operations │ │ │ │ ├── add_user.js │ │ │ │ ├── add_user.js.map │ │ │ │ ├── aggregate.js │ │ │ │ ├── aggregate.js.map │ │ │ │ ├── bulk_write.js │ │ │ │ ├── bulk_write.js.map │ │ │ │ ├── collections.js │ │ │ │ ├── collections.js.map │ │ │ │ ├── command.js │ │ │ │ ├── command.js.map │ │ │ │ ├── common_functions.js │ │ │ │ ├── common_functions.js.map │ │ │ │ ├── count.js │ │ │ │ ├── count.js.map │ │ │ │ ├── count_documents.js │ │ │ │ ├── count_documents.js.map │ │ │ │ ├── create_collection.js │ │ │ │ ├── create_collection.js.map │ │ │ │ ├── delete.js │ │ │ │ ├── delete.js.map │ │ │ │ ├── distinct.js │ │ │ │ ├── distinct.js.map │ │ │ │ ├── drop.js │ │ │ │ ├── drop.js.map │ │ │ │ ├── estimated_document_count.js │ │ │ │ ├── estimated_document_count.js.map │ │ │ │ ├── eval.js │ │ │ │ ├── eval.js.map │ │ │ │ ├── execute_operation.js │ │ │ │ ├── execute_operation.js.map │ │ │ │ ├── find.js │ │ │ │ ├── find.js.map │ │ │ │ ├── find_and_modify.js │ │ │ │ ├── find_and_modify.js.map │ │ │ │ ├── get_more.js │ │ │ │ ├── get_more.js.map │ │ │ │ ├── indexes.js │ │ │ │ ├── indexes.js.map │ │ │ │ ├── insert.js │ │ │ │ ├── insert.js.map │ │ │ │ ├── is_capped.js │ │ │ │ ├── is_capped.js.map │ │ │ │ ├── kill_cursors.js │ │ │ │ ├── kill_cursors.js.map │ │ │ │ ├── list_collections.js │ │ │ │ ├── list_collections.js.map │ │ │ │ ├── list_databases.js │ │ │ │ ├── list_databases.js.map │ │ │ │ ├── operation.js │ │ │ │ ├── operation.js.map │ │ │ │ ├── options_operation.js │ │ │ │ ├── options_operation.js.map │ │ │ │ ├── profiling_level.js │ │ │ │ ├── profiling_level.js.map │ │ │ │ ├── remove_user.js │ │ │ │ ├── remove_user.js.map │ │ │ │ ├── rename.js │ │ │ │ ├── rename.js.map │ │ │ │ ├── run_command.js │ │ │ │ ├── run_command.js.map │ │ │ │ ├── search_indexes │ │ │ │ │ ├── create.js │ │ │ │ │ ├── create.js.map │ │ │ │ │ ├── drop.js │ │ │ │ │ ├── drop.js.map │ │ │ │ │ ├── update.js │ │ │ │ │ └── update.js.map │ │ │ │ ├── set_profiling_level.js │ │ │ │ ├── set_profiling_level.js.map │ │ │ │ ├── stats.js │ │ │ │ ├── stats.js.map │ │ │ │ ├── update.js │ │ │ │ ├── update.js.map │ │ │ │ ├── validate_collection.js │ │ │ │ └── validate_collection.js.map │ │ │ ├── read_concern.js │ │ │ ├── read_concern.js.map │ │ │ ├── read_preference.js │ │ │ ├── read_preference.js.map │ │ │ ├── sdam │ │ │ │ ├── common.js │ │ │ │ ├── common.js.map │ │ │ │ ├── events.js │ │ │ │ ├── events.js.map │ │ │ │ ├── monitor.js │ │ │ │ ├── monitor.js.map │ │ │ │ ├── server.js │ │ │ │ ├── server.js.map │ │ │ │ ├── server_description.js │ │ │ │ ├── server_description.js.map │ │ │ │ ├── server_selection.js │ │ │ │ ├── server_selection.js.map │ │ │ │ ├── srv_polling.js │ │ │ │ ├── srv_polling.js.map │ │ │ │ ├── topology.js │ │ │ │ ├── topology.js.map │ │ │ │ ├── topology_description.js │ │ │ │ └── topology_description.js.map │ │ │ ├── sessions.js │ │ │ ├── sessions.js.map │ │ │ ├── sort.js │ │ │ ├── sort.js.map │ │ │ ├── transactions.js │ │ │ ├── transactions.js.map │ │ │ ├── utils.js │ │ │ ├── utils.js.map │ │ │ ├── write_concern.js │ │ │ └── write_concern.js.map │ │ ├── mongodb.d.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── admin.ts │ │ │ ├── bson.ts │ │ │ ├── bulk │ │ │ │ ├── common.ts │ │ │ │ ├── ordered.ts │ │ │ │ └── unordered.ts │ │ │ ├── change_stream.ts │ │ │ ├── cmap │ │ │ │ ├── auth │ │ │ │ │ ├── auth_provider.ts │ │ │ │ │ ├── gssapi.ts │ │ │ │ │ ├── mongo_credentials.ts │ │ │ │ │ ├── mongocr.ts │ │ │ │ │ ├── mongodb_aws.ts │ │ │ │ │ ├── mongodb_oidc.ts │ │ │ │ │ ├── mongodb_oidc │ │ │ │ │ │ ├── aws_service_workflow.ts │ │ │ │ │ │ ├── azure_service_workflow.ts │ │ │ │ │ │ ├── azure_token_cache.ts │ │ │ │ │ │ ├── cache.ts │ │ │ │ │ │ ├── callback_lock_cache.ts │ │ │ │ │ │ ├── callback_workflow.ts │ │ │ │ │ │ ├── service_workflow.ts │ │ │ │ │ │ └── token_entry_cache.ts │ │ │ │ │ ├── plain.ts │ │ │ │ │ ├── providers.ts │ │ │ │ │ ├── scram.ts │ │ │ │ │ └── x509.ts │ │ │ │ ├── command_monitoring_events.ts │ │ │ │ ├── commands.ts │ │ │ │ ├── connect.ts │ │ │ │ ├── connection.ts │ │ │ │ ├── connection_pool.ts │ │ │ │ ├── connection_pool_events.ts │ │ │ │ ├── errors.ts │ │ │ │ ├── handshake │ │ │ │ │ └── client_metadata.ts │ │ │ │ ├── message_stream.ts │ │ │ │ ├── metrics.ts │ │ │ │ ├── stream_description.ts │ │ │ │ └── wire_protocol │ │ │ │ │ ├── compression.ts │ │ │ │ │ ├── constants.ts │ │ │ │ │ └── shared.ts │ │ │ ├── collection.ts │ │ │ ├── connection_string.ts │ │ │ ├── constants.ts │ │ │ ├── cursor │ │ │ │ ├── abstract_cursor.ts │ │ │ │ ├── aggregation_cursor.ts │ │ │ │ ├── change_stream_cursor.ts │ │ │ │ ├── find_cursor.ts │ │ │ │ ├── list_collections_cursor.ts │ │ │ │ ├── list_indexes_cursor.ts │ │ │ │ ├── list_search_indexes_cursor.ts │ │ │ │ └── run_command_cursor.ts │ │ │ ├── db.ts │ │ │ ├── deps.ts │ │ │ ├── encrypter.ts │ │ │ ├── error.ts │ │ │ ├── explain.ts │ │ │ ├── gridfs │ │ │ │ ├── download.ts │ │ │ │ ├── index.ts │ │ │ │ └── upload.ts │ │ │ ├── index.ts │ │ │ ├── mongo_client.ts │ │ │ ├── mongo_logger.ts │ │ │ ├── mongo_types.ts │ │ │ ├── operations │ │ │ │ ├── add_user.ts │ │ │ │ ├── aggregate.ts │ │ │ │ ├── bulk_write.ts │ │ │ │ ├── collections.ts │ │ │ │ ├── command.ts │ │ │ │ ├── common_functions.ts │ │ │ │ ├── count.ts │ │ │ │ ├── count_documents.ts │ │ │ │ ├── create_collection.ts │ │ │ │ ├── delete.ts │ │ │ │ ├── distinct.ts │ │ │ │ ├── drop.ts │ │ │ │ ├── estimated_document_count.ts │ │ │ │ ├── eval.ts │ │ │ │ ├── execute_operation.ts │ │ │ │ ├── find.ts │ │ │ │ ├── find_and_modify.ts │ │ │ │ ├── get_more.ts │ │ │ │ ├── indexes.ts │ │ │ │ ├── insert.ts │ │ │ │ ├── is_capped.ts │ │ │ │ ├── kill_cursors.ts │ │ │ │ ├── list_collections.ts │ │ │ │ ├── list_databases.ts │ │ │ │ ├── operation.ts │ │ │ │ ├── options_operation.ts │ │ │ │ ├── profiling_level.ts │ │ │ │ ├── remove_user.ts │ │ │ │ ├── rename.ts │ │ │ │ ├── run_command.ts │ │ │ │ ├── search_indexes │ │ │ │ │ ├── create.ts │ │ │ │ │ ├── drop.ts │ │ │ │ │ └── update.ts │ │ │ │ ├── set_profiling_level.ts │ │ │ │ ├── stats.ts │ │ │ │ ├── update.ts │ │ │ │ └── validate_collection.ts │ │ │ ├── read_concern.ts │ │ │ ├── read_preference.ts │ │ │ ├── sdam │ │ │ │ ├── common.ts │ │ │ │ ├── events.ts │ │ │ │ ├── monitor.ts │ │ │ │ ├── server.ts │ │ │ │ ├── server_description.ts │ │ │ │ ├── server_selection.ts │ │ │ │ ├── srv_polling.ts │ │ │ │ ├── topology.ts │ │ │ │ └── topology_description.ts │ │ │ ├── sessions.ts │ │ │ ├── sort.ts │ │ │ ├── transactions.ts │ │ │ ├── utils.ts │ │ │ └── write_concern.ts │ │ └── tsconfig.json │ ├── punycode │ │ ├── LICENSE-MIT.txt │ │ ├── README.md │ │ ├── package.json │ │ ├── punycode.es6.js │ │ └── punycode.js │ ├── saslprep │ │ ├── .editorconfig │ │ ├── .gitattributes │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── code-points.mem │ │ ├── generate-code-points.js │ │ ├── index.js │ │ ├── lib │ │ │ ├── code-points.js │ │ │ ├── memory-code-points.js │ │ │ └── util.js │ │ ├── package.json │ │ ├── readme.md │ │ └── test │ │ │ ├── index.js │ │ │ └── util.js │ ├── smart-buffer │ │ ├── .prettierrc.yaml │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── build │ │ │ ├── smartbuffer.js │ │ │ ├── smartbuffer.js.map │ │ │ ├── utils.js │ │ │ └── utils.js.map │ │ ├── docs │ │ │ ├── CHANGELOG.md │ │ │ ├── README_v3.md │ │ │ └── ROADMAP.md │ │ ├── package.json │ │ └── typings │ │ │ ├── smartbuffer.d.ts │ │ │ └── utils.d.ts │ ├── socks │ │ ├── .eslintrc.cjs │ │ ├── .prettierrc.yaml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── build │ │ │ ├── client │ │ │ │ ├── socksclient.js │ │ │ │ └── socksclient.js.map │ │ │ ├── common │ │ │ │ ├── constants.js │ │ │ │ ├── constants.js.map │ │ │ │ ├── helpers.js │ │ │ │ ├── helpers.js.map │ │ │ │ ├── receivebuffer.js │ │ │ │ ├── receivebuffer.js.map │ │ │ │ ├── util.js │ │ │ │ └── util.js.map │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── docs │ │ │ ├── examples │ │ │ │ ├── index.md │ │ │ │ ├── javascript │ │ │ │ │ ├── associateExample.md │ │ │ │ │ ├── bindExample.md │ │ │ │ │ └── connectExample.md │ │ │ │ └── typescript │ │ │ │ │ ├── associateExample.md │ │ │ │ │ ├── bindExample.md │ │ │ │ │ └── connectExample.md │ │ │ ├── index.md │ │ │ └── migratingFromV1.md │ │ ├── package.json │ │ └── typings │ │ │ ├── client │ │ │ └── socksclient.d.ts │ │ │ ├── common │ │ │ ├── constants.d.ts │ │ │ ├── helpers.d.ts │ │ │ ├── receivebuffer.d.ts │ │ │ └── util.d.ts │ │ │ └── index.d.ts │ ├── sparse-bitfield │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ ├── package.json │ │ └── test.js │ ├── tr46 │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── index.js │ │ ├── lib │ │ │ ├── mappingTable.json │ │ │ ├── regexes.js │ │ │ └── statusMapping.js │ │ └── package.json │ ├── webidl-conversions │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── lib │ │ │ └── index.js │ │ └── package.json │ └── whatwg-url │ │ ├── LICENSE.txt │ │ ├── README.md │ │ ├── index.js │ │ ├── lib │ │ ├── Function.js │ │ ├── URL-impl.js │ │ ├── URL.js │ │ ├── URLSearchParams-impl.js │ │ ├── URLSearchParams.js │ │ ├── VoidFunction.js │ │ ├── encoding.js │ │ ├── infra.js │ │ ├── percent-encoding.js │ │ ├── url-state-machine.js │ │ ├── urlencoded.js │ │ └── utils.js │ │ ├── package.json │ │ └── webidl2js-wrapper.js ├── package-lock.json └── package.json ├── mongoose_node ├── index.js ├── node_modules │ ├── .package-lock.json │ ├── @types │ │ ├── node │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── assert.d.ts │ │ │ ├── assert │ │ │ │ └── strict.d.ts │ │ │ ├── async_hooks.d.ts │ │ │ ├── buffer.d.ts │ │ │ ├── child_process.d.ts │ │ │ ├── cluster.d.ts │ │ │ ├── console.d.ts │ │ │ ├── constants.d.ts │ │ │ ├── crypto.d.ts │ │ │ ├── dgram.d.ts │ │ │ ├── diagnostics_channel.d.ts │ │ │ ├── dns.d.ts │ │ │ ├── dns │ │ │ │ └── promises.d.ts │ │ │ ├── dom-events.d.ts │ │ │ ├── domain.d.ts │ │ │ ├── events.d.ts │ │ │ ├── fs.d.ts │ │ │ ├── fs │ │ │ │ └── promises.d.ts │ │ │ ├── globals.d.ts │ │ │ ├── globals.global.d.ts │ │ │ ├── http.d.ts │ │ │ ├── http2.d.ts │ │ │ ├── https.d.ts │ │ │ ├── index.d.ts │ │ │ ├── inspector.d.ts │ │ │ ├── module.d.ts │ │ │ ├── net.d.ts │ │ │ ├── os.d.ts │ │ │ ├── package.json │ │ │ ├── path.d.ts │ │ │ ├── perf_hooks.d.ts │ │ │ ├── process.d.ts │ │ │ ├── punycode.d.ts │ │ │ ├── querystring.d.ts │ │ │ ├── readline.d.ts │ │ │ ├── readline │ │ │ │ └── promises.d.ts │ │ │ ├── repl.d.ts │ │ │ ├── stream.d.ts │ │ │ ├── stream │ │ │ │ ├── consumers.d.ts │ │ │ │ ├── promises.d.ts │ │ │ │ └── web.d.ts │ │ │ ├── string_decoder.d.ts │ │ │ ├── test.d.ts │ │ │ ├── timers.d.ts │ │ │ ├── timers │ │ │ │ └── promises.d.ts │ │ │ ├── tls.d.ts │ │ │ ├── trace_events.d.ts │ │ │ ├── ts4.8 │ │ │ │ ├── assert.d.ts │ │ │ │ ├── assert │ │ │ │ │ └── strict.d.ts │ │ │ │ ├── async_hooks.d.ts │ │ │ │ ├── buffer.d.ts │ │ │ │ ├── child_process.d.ts │ │ │ │ ├── cluster.d.ts │ │ │ │ ├── console.d.ts │ │ │ │ ├── constants.d.ts │ │ │ │ ├── crypto.d.ts │ │ │ │ ├── dgram.d.ts │ │ │ │ ├── diagnostics_channel.d.ts │ │ │ │ ├── dns.d.ts │ │ │ │ ├── dns │ │ │ │ │ └── promises.d.ts │ │ │ │ ├── dom-events.d.ts │ │ │ │ ├── domain.d.ts │ │ │ │ ├── events.d.ts │ │ │ │ ├── fs.d.ts │ │ │ │ ├── fs │ │ │ │ │ └── promises.d.ts │ │ │ │ ├── globals.d.ts │ │ │ │ ├── globals.global.d.ts │ │ │ │ ├── http.d.ts │ │ │ │ ├── http2.d.ts │ │ │ │ ├── https.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── inspector.d.ts │ │ │ │ ├── module.d.ts │ │ │ │ ├── net.d.ts │ │ │ │ ├── os.d.ts │ │ │ │ ├── path.d.ts │ │ │ │ ├── perf_hooks.d.ts │ │ │ │ ├── process.d.ts │ │ │ │ ├── punycode.d.ts │ │ │ │ ├── querystring.d.ts │ │ │ │ ├── readline.d.ts │ │ │ │ ├── readline │ │ │ │ │ └── promises.d.ts │ │ │ │ ├── repl.d.ts │ │ │ │ ├── stream.d.ts │ │ │ │ ├── stream │ │ │ │ │ ├── consumers.d.ts │ │ │ │ │ ├── promises.d.ts │ │ │ │ │ └── web.d.ts │ │ │ │ ├── string_decoder.d.ts │ │ │ │ ├── test.d.ts │ │ │ │ ├── timers.d.ts │ │ │ │ ├── timers │ │ │ │ │ └── promises.d.ts │ │ │ │ ├── tls.d.ts │ │ │ │ ├── trace_events.d.ts │ │ │ │ ├── tty.d.ts │ │ │ │ ├── url.d.ts │ │ │ │ ├── util.d.ts │ │ │ │ ├── v8.d.ts │ │ │ │ ├── vm.d.ts │ │ │ │ ├── wasi.d.ts │ │ │ │ ├── worker_threads.d.ts │ │ │ │ └── zlib.d.ts │ │ │ ├── tty.d.ts │ │ │ ├── url.d.ts │ │ │ ├── util.d.ts │ │ │ ├── v8.d.ts │ │ │ ├── vm.d.ts │ │ │ ├── wasi.d.ts │ │ │ ├── worker_threads.d.ts │ │ │ └── zlib.d.ts │ │ ├── webidl-conversions │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.d.ts │ │ │ └── package.json │ │ └── whatwg-url │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── dist │ │ │ ├── URL-impl.d.ts │ │ │ ├── URL.d.ts │ │ │ ├── URLSearchParams-impl.d.ts │ │ │ └── URLSearchParams.d.ts │ │ │ ├── index.d.ts │ │ │ ├── package.json │ │ │ └── webidl2js-wrapper.d.ts │ ├── bson │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── bson.d.ts │ │ ├── etc │ │ │ └── prepare.js │ │ ├── lib │ │ │ ├── bson.bundle.js │ │ │ ├── bson.bundle.js.map │ │ │ ├── bson.cjs │ │ │ ├── bson.cjs.map │ │ │ ├── bson.mjs │ │ │ ├── bson.mjs.map │ │ │ ├── bson.rn.cjs │ │ │ └── bson.rn.cjs.map │ │ ├── package.json │ │ ├── src │ │ │ ├── binary.ts │ │ │ ├── bson.ts │ │ │ ├── bson_value.ts │ │ │ ├── code.ts │ │ │ ├── constants.ts │ │ │ ├── db_ref.ts │ │ │ ├── decimal128.ts │ │ │ ├── double.ts │ │ │ ├── error.ts │ │ │ ├── extended_json.ts │ │ │ ├── index.ts │ │ │ ├── int_32.ts │ │ │ ├── long.ts │ │ │ ├── max_key.ts │ │ │ ├── min_key.ts │ │ │ ├── objectid.ts │ │ │ ├── parser │ │ │ │ ├── calculate_size.ts │ │ │ │ ├── deserializer.ts │ │ │ │ ├── serializer.ts │ │ │ │ └── utils.ts │ │ │ ├── regexp.ts │ │ │ ├── symbol.ts │ │ │ ├── timestamp.ts │ │ │ ├── utils │ │ │ │ ├── byte_utils.ts │ │ │ │ ├── node_byte_utils.ts │ │ │ │ └── web_byte_utils.ts │ │ │ └── validate_utf8.ts │ │ └── vendor │ │ │ ├── base64 │ │ │ ├── LICENSE-MIT.txt │ │ │ ├── README.md │ │ │ ├── base64.js │ │ │ └── package.json │ │ │ └── text-encoding │ │ │ ├── LICENSE.md │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ ├── encoding-indexes.js │ │ │ └── encoding.js │ │ │ └── package.json │ ├── debug │ │ ├── LICENSE │ │ ├── README.md │ │ ├── node_modules │ │ │ └── ms │ │ │ │ ├── index.js │ │ │ │ ├── license.md │ │ │ │ ├── package.json │ │ │ │ └── readme.md │ │ ├── package.json │ │ └── src │ │ │ ├── browser.js │ │ │ ├── common.js │ │ │ ├── index.js │ │ │ └── node.js │ ├── ip │ │ ├── README.md │ │ ├── lib │ │ │ └── ip.js │ │ └── package.json │ ├── kareem │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── memory-pager │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ ├── package.json │ │ └── test.js │ ├── mongodb-connection-string-url │ │ ├── .esm-wrapper.mjs │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── redact.d.ts │ │ │ ├── redact.js │ │ │ └── redact.js.map │ │ └── package.json │ ├── mongodb │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── etc │ │ │ └── prepare.js │ │ ├── lib │ │ │ ├── admin.js │ │ │ ├── admin.js.map │ │ │ ├── bson.js │ │ │ ├── bson.js.map │ │ │ ├── bulk │ │ │ │ ├── common.js │ │ │ │ ├── common.js.map │ │ │ │ ├── ordered.js │ │ │ │ ├── ordered.js.map │ │ │ │ ├── unordered.js │ │ │ │ └── unordered.js.map │ │ │ ├── change_stream.js │ │ │ ├── change_stream.js.map │ │ │ ├── cmap │ │ │ │ ├── auth │ │ │ │ │ ├── auth_provider.js │ │ │ │ │ ├── auth_provider.js.map │ │ │ │ │ ├── gssapi.js │ │ │ │ │ ├── gssapi.js.map │ │ │ │ │ ├── mongo_credentials.js │ │ │ │ │ ├── mongo_credentials.js.map │ │ │ │ │ ├── mongocr.js │ │ │ │ │ ├── mongocr.js.map │ │ │ │ │ ├── mongodb_aws.js │ │ │ │ │ ├── mongodb_aws.js.map │ │ │ │ │ ├── mongodb_oidc.js │ │ │ │ │ ├── mongodb_oidc.js.map │ │ │ │ │ ├── mongodb_oidc │ │ │ │ │ │ ├── aws_service_workflow.js │ │ │ │ │ │ ├── aws_service_workflow.js.map │ │ │ │ │ │ ├── azure_service_workflow.js │ │ │ │ │ │ ├── azure_service_workflow.js.map │ │ │ │ │ │ ├── azure_token_cache.js │ │ │ │ │ │ ├── azure_token_cache.js.map │ │ │ │ │ │ ├── cache.js │ │ │ │ │ │ ├── cache.js.map │ │ │ │ │ │ ├── callback_lock_cache.js │ │ │ │ │ │ ├── callback_lock_cache.js.map │ │ │ │ │ │ ├── callback_workflow.js │ │ │ │ │ │ ├── callback_workflow.js.map │ │ │ │ │ │ ├── service_workflow.js │ │ │ │ │ │ ├── service_workflow.js.map │ │ │ │ │ │ ├── token_entry_cache.js │ │ │ │ │ │ └── token_entry_cache.js.map │ │ │ │ │ ├── plain.js │ │ │ │ │ ├── plain.js.map │ │ │ │ │ ├── providers.js │ │ │ │ │ ├── providers.js.map │ │ │ │ │ ├── scram.js │ │ │ │ │ ├── scram.js.map │ │ │ │ │ ├── x509.js │ │ │ │ │ └── x509.js.map │ │ │ │ ├── command_monitoring_events.js │ │ │ │ ├── command_monitoring_events.js.map │ │ │ │ ├── commands.js │ │ │ │ ├── commands.js.map │ │ │ │ ├── connect.js │ │ │ │ ├── connect.js.map │ │ │ │ ├── connection.js │ │ │ │ ├── connection.js.map │ │ │ │ ├── connection_pool.js │ │ │ │ ├── connection_pool.js.map │ │ │ │ ├── connection_pool_events.js │ │ │ │ ├── connection_pool_events.js.map │ │ │ │ ├── errors.js │ │ │ │ ├── errors.js.map │ │ │ │ ├── handshake │ │ │ │ │ ├── client_metadata.js │ │ │ │ │ └── client_metadata.js.map │ │ │ │ ├── message_stream.js │ │ │ │ ├── message_stream.js.map │ │ │ │ ├── metrics.js │ │ │ │ ├── metrics.js.map │ │ │ │ ├── stream_description.js │ │ │ │ ├── stream_description.js.map │ │ │ │ └── wire_protocol │ │ │ │ │ ├── compression.js │ │ │ │ │ ├── compression.js.map │ │ │ │ │ ├── constants.js │ │ │ │ │ ├── constants.js.map │ │ │ │ │ ├── shared.js │ │ │ │ │ └── shared.js.map │ │ │ ├── collection.js │ │ │ ├── collection.js.map │ │ │ ├── connection_string.js │ │ │ ├── connection_string.js.map │ │ │ ├── constants.js │ │ │ ├── constants.js.map │ │ │ ├── cursor │ │ │ │ ├── abstract_cursor.js │ │ │ │ ├── abstract_cursor.js.map │ │ │ │ ├── aggregation_cursor.js │ │ │ │ ├── aggregation_cursor.js.map │ │ │ │ ├── change_stream_cursor.js │ │ │ │ ├── change_stream_cursor.js.map │ │ │ │ ├── find_cursor.js │ │ │ │ ├── find_cursor.js.map │ │ │ │ ├── list_collections_cursor.js │ │ │ │ ├── list_collections_cursor.js.map │ │ │ │ ├── list_indexes_cursor.js │ │ │ │ ├── list_indexes_cursor.js.map │ │ │ │ ├── list_search_indexes_cursor.js │ │ │ │ ├── list_search_indexes_cursor.js.map │ │ │ │ ├── run_command_cursor.js │ │ │ │ └── run_command_cursor.js.map │ │ │ ├── db.js │ │ │ ├── db.js.map │ │ │ ├── deps.js │ │ │ ├── deps.js.map │ │ │ ├── encrypter.js │ │ │ ├── encrypter.js.map │ │ │ ├── error.js │ │ │ ├── error.js.map │ │ │ ├── explain.js │ │ │ ├── explain.js.map │ │ │ ├── gridfs │ │ │ │ ├── download.js │ │ │ │ ├── download.js.map │ │ │ │ ├── index.js │ │ │ │ ├── index.js.map │ │ │ │ ├── upload.js │ │ │ │ └── upload.js.map │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── mongo_client.js │ │ │ ├── mongo_client.js.map │ │ │ ├── mongo_logger.js │ │ │ ├── mongo_logger.js.map │ │ │ ├── mongo_types.js │ │ │ ├── mongo_types.js.map │ │ │ ├── operations │ │ │ │ ├── add_user.js │ │ │ │ ├── add_user.js.map │ │ │ │ ├── aggregate.js │ │ │ │ ├── aggregate.js.map │ │ │ │ ├── bulk_write.js │ │ │ │ ├── bulk_write.js.map │ │ │ │ ├── collections.js │ │ │ │ ├── collections.js.map │ │ │ │ ├── command.js │ │ │ │ ├── command.js.map │ │ │ │ ├── common_functions.js │ │ │ │ ├── common_functions.js.map │ │ │ │ ├── count.js │ │ │ │ ├── count.js.map │ │ │ │ ├── count_documents.js │ │ │ │ ├── count_documents.js.map │ │ │ │ ├── create_collection.js │ │ │ │ ├── create_collection.js.map │ │ │ │ ├── delete.js │ │ │ │ ├── delete.js.map │ │ │ │ ├── distinct.js │ │ │ │ ├── distinct.js.map │ │ │ │ ├── drop.js │ │ │ │ ├── drop.js.map │ │ │ │ ├── estimated_document_count.js │ │ │ │ ├── estimated_document_count.js.map │ │ │ │ ├── eval.js │ │ │ │ ├── eval.js.map │ │ │ │ ├── execute_operation.js │ │ │ │ ├── execute_operation.js.map │ │ │ │ ├── find.js │ │ │ │ ├── find.js.map │ │ │ │ ├── find_and_modify.js │ │ │ │ ├── find_and_modify.js.map │ │ │ │ ├── get_more.js │ │ │ │ ├── get_more.js.map │ │ │ │ ├── indexes.js │ │ │ │ ├── indexes.js.map │ │ │ │ ├── insert.js │ │ │ │ ├── insert.js.map │ │ │ │ ├── is_capped.js │ │ │ │ ├── is_capped.js.map │ │ │ │ ├── kill_cursors.js │ │ │ │ ├── kill_cursors.js.map │ │ │ │ ├── list_collections.js │ │ │ │ ├── list_collections.js.map │ │ │ │ ├── list_databases.js │ │ │ │ ├── list_databases.js.map │ │ │ │ ├── operation.js │ │ │ │ ├── operation.js.map │ │ │ │ ├── options_operation.js │ │ │ │ ├── options_operation.js.map │ │ │ │ ├── profiling_level.js │ │ │ │ ├── profiling_level.js.map │ │ │ │ ├── remove_user.js │ │ │ │ ├── remove_user.js.map │ │ │ │ ├── rename.js │ │ │ │ ├── rename.js.map │ │ │ │ ├── run_command.js │ │ │ │ ├── run_command.js.map │ │ │ │ ├── search_indexes │ │ │ │ │ ├── create.js │ │ │ │ │ ├── create.js.map │ │ │ │ │ ├── drop.js │ │ │ │ │ ├── drop.js.map │ │ │ │ │ ├── update.js │ │ │ │ │ └── update.js.map │ │ │ │ ├── set_profiling_level.js │ │ │ │ ├── set_profiling_level.js.map │ │ │ │ ├── stats.js │ │ │ │ ├── stats.js.map │ │ │ │ ├── update.js │ │ │ │ ├── update.js.map │ │ │ │ ├── validate_collection.js │ │ │ │ └── validate_collection.js.map │ │ │ ├── read_concern.js │ │ │ ├── read_concern.js.map │ │ │ ├── read_preference.js │ │ │ ├── read_preference.js.map │ │ │ ├── sdam │ │ │ │ ├── common.js │ │ │ │ ├── common.js.map │ │ │ │ ├── events.js │ │ │ │ ├── events.js.map │ │ │ │ ├── monitor.js │ │ │ │ ├── monitor.js.map │ │ │ │ ├── server.js │ │ │ │ ├── server.js.map │ │ │ │ ├── server_description.js │ │ │ │ ├── server_description.js.map │ │ │ │ ├── server_selection.js │ │ │ │ ├── server_selection.js.map │ │ │ │ ├── srv_polling.js │ │ │ │ ├── srv_polling.js.map │ │ │ │ ├── topology.js │ │ │ │ ├── topology.js.map │ │ │ │ ├── topology_description.js │ │ │ │ └── topology_description.js.map │ │ │ ├── sessions.js │ │ │ ├── sessions.js.map │ │ │ ├── sort.js │ │ │ ├── sort.js.map │ │ │ ├── transactions.js │ │ │ ├── transactions.js.map │ │ │ ├── utils.js │ │ │ ├── utils.js.map │ │ │ ├── write_concern.js │ │ │ └── write_concern.js.map │ │ ├── mongodb.d.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── admin.ts │ │ │ ├── bson.ts │ │ │ ├── bulk │ │ │ │ ├── common.ts │ │ │ │ ├── ordered.ts │ │ │ │ └── unordered.ts │ │ │ ├── change_stream.ts │ │ │ ├── cmap │ │ │ │ ├── auth │ │ │ │ │ ├── auth_provider.ts │ │ │ │ │ ├── gssapi.ts │ │ │ │ │ ├── mongo_credentials.ts │ │ │ │ │ ├── mongocr.ts │ │ │ │ │ ├── mongodb_aws.ts │ │ │ │ │ ├── mongodb_oidc.ts │ │ │ │ │ ├── mongodb_oidc │ │ │ │ │ │ ├── aws_service_workflow.ts │ │ │ │ │ │ ├── azure_service_workflow.ts │ │ │ │ │ │ ├── azure_token_cache.ts │ │ │ │ │ │ ├── cache.ts │ │ │ │ │ │ ├── callback_lock_cache.ts │ │ │ │ │ │ ├── callback_workflow.ts │ │ │ │ │ │ ├── service_workflow.ts │ │ │ │ │ │ └── token_entry_cache.ts │ │ │ │ │ ├── plain.ts │ │ │ │ │ ├── providers.ts │ │ │ │ │ ├── scram.ts │ │ │ │ │ └── x509.ts │ │ │ │ ├── command_monitoring_events.ts │ │ │ │ ├── commands.ts │ │ │ │ ├── connect.ts │ │ │ │ ├── connection.ts │ │ │ │ ├── connection_pool.ts │ │ │ │ ├── connection_pool_events.ts │ │ │ │ ├── errors.ts │ │ │ │ ├── handshake │ │ │ │ │ └── client_metadata.ts │ │ │ │ ├── message_stream.ts │ │ │ │ ├── metrics.ts │ │ │ │ ├── stream_description.ts │ │ │ │ └── wire_protocol │ │ │ │ │ ├── compression.ts │ │ │ │ │ ├── constants.ts │ │ │ │ │ └── shared.ts │ │ │ ├── collection.ts │ │ │ ├── connection_string.ts │ │ │ ├── constants.ts │ │ │ ├── cursor │ │ │ │ ├── abstract_cursor.ts │ │ │ │ ├── aggregation_cursor.ts │ │ │ │ ├── change_stream_cursor.ts │ │ │ │ ├── find_cursor.ts │ │ │ │ ├── list_collections_cursor.ts │ │ │ │ ├── list_indexes_cursor.ts │ │ │ │ ├── list_search_indexes_cursor.ts │ │ │ │ └── run_command_cursor.ts │ │ │ ├── db.ts │ │ │ ├── deps.ts │ │ │ ├── encrypter.ts │ │ │ ├── error.ts │ │ │ ├── explain.ts │ │ │ ├── gridfs │ │ │ │ ├── download.ts │ │ │ │ ├── index.ts │ │ │ │ └── upload.ts │ │ │ ├── index.ts │ │ │ ├── mongo_client.ts │ │ │ ├── mongo_logger.ts │ │ │ ├── mongo_types.ts │ │ │ ├── operations │ │ │ │ ├── add_user.ts │ │ │ │ ├── aggregate.ts │ │ │ │ ├── bulk_write.ts │ │ │ │ ├── collections.ts │ │ │ │ ├── command.ts │ │ │ │ ├── common_functions.ts │ │ │ │ ├── count.ts │ │ │ │ ├── count_documents.ts │ │ │ │ ├── create_collection.ts │ │ │ │ ├── delete.ts │ │ │ │ ├── distinct.ts │ │ │ │ ├── drop.ts │ │ │ │ ├── estimated_document_count.ts │ │ │ │ ├── eval.ts │ │ │ │ ├── execute_operation.ts │ │ │ │ ├── find.ts │ │ │ │ ├── find_and_modify.ts │ │ │ │ ├── get_more.ts │ │ │ │ ├── indexes.ts │ │ │ │ ├── insert.ts │ │ │ │ ├── is_capped.ts │ │ │ │ ├── kill_cursors.ts │ │ │ │ ├── list_collections.ts │ │ │ │ ├── list_databases.ts │ │ │ │ ├── operation.ts │ │ │ │ ├── options_operation.ts │ │ │ │ ├── profiling_level.ts │ │ │ │ ├── remove_user.ts │ │ │ │ ├── rename.ts │ │ │ │ ├── run_command.ts │ │ │ │ ├── search_indexes │ │ │ │ │ ├── create.ts │ │ │ │ │ ├── drop.ts │ │ │ │ │ └── update.ts │ │ │ │ ├── set_profiling_level.ts │ │ │ │ ├── stats.ts │ │ │ │ ├── update.ts │ │ │ │ └── validate_collection.ts │ │ │ ├── read_concern.ts │ │ │ ├── read_preference.ts │ │ │ ├── sdam │ │ │ │ ├── common.ts │ │ │ │ ├── events.ts │ │ │ │ ├── monitor.ts │ │ │ │ ├── server.ts │ │ │ │ ├── server_description.ts │ │ │ │ ├── server_selection.ts │ │ │ │ ├── srv_polling.ts │ │ │ │ ├── topology.ts │ │ │ │ └── topology_description.ts │ │ │ ├── sessions.ts │ │ │ ├── sort.ts │ │ │ ├── transactions.ts │ │ │ ├── utils.ts │ │ │ └── write_concern.ts │ │ └── tsconfig.json │ ├── mongoose │ │ ├── .eslintrc.js │ │ ├── .markdownlint-cli2.cjs │ │ ├── .mocharc.yml │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── browser.js │ │ ├── dist │ │ │ └── browser.umd.js │ │ ├── index.js │ │ ├── lgtm.yml │ │ ├── lib │ │ │ ├── aggregate.js │ │ │ ├── browser.js │ │ │ ├── browserDocument.js │ │ │ ├── cast.js │ │ │ ├── cast │ │ │ │ ├── bigint.js │ │ │ │ ├── boolean.js │ │ │ │ ├── date.js │ │ │ │ ├── decimal128.js │ │ │ │ ├── number.js │ │ │ │ ├── objectid.js │ │ │ │ └── string.js │ │ │ ├── collection.js │ │ │ ├── connection.js │ │ │ ├── connectionstate.js │ │ │ ├── cursor │ │ │ │ ├── AggregationCursor.js │ │ │ │ ├── ChangeStream.js │ │ │ │ └── QueryCursor.js │ │ │ ├── document.js │ │ │ ├── document_provider.js │ │ │ ├── driver.js │ │ │ ├── drivers │ │ │ │ ├── SPEC.md │ │ │ │ ├── browser │ │ │ │ │ ├── binary.js │ │ │ │ │ ├── decimal128.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── objectid.js │ │ │ │ └── node-mongodb-native │ │ │ │ │ ├── collection.js │ │ │ │ │ ├── connection.js │ │ │ │ │ └── index.js │ │ │ ├── error │ │ │ │ ├── browserMissingSchema.js │ │ │ │ ├── bulkWriteError.js │ │ │ │ ├── cast.js │ │ │ │ ├── createCollectionsError.js │ │ │ │ ├── divergentArray.js │ │ │ │ ├── eachAsyncMultiError.js │ │ │ │ ├── index.js │ │ │ │ ├── invalidSchemaOption.js │ │ │ │ ├── messages.js │ │ │ │ ├── missingSchema.js │ │ │ │ ├── mongooseError.js │ │ │ │ ├── notFound.js │ │ │ │ ├── objectExpected.js │ │ │ │ ├── objectParameter.js │ │ │ │ ├── overwriteModel.js │ │ │ │ ├── parallelSave.js │ │ │ │ ├── parallelValidate.js │ │ │ │ ├── serverSelection.js │ │ │ │ ├── setOptionError.js │ │ │ │ ├── strict.js │ │ │ │ ├── strictPopulate.js │ │ │ │ ├── syncIndexes.js │ │ │ │ ├── validation.js │ │ │ │ ├── validator.js │ │ │ │ └── version.js │ │ │ ├── helpers │ │ │ │ ├── aggregate │ │ │ │ │ ├── prepareDiscriminatorPipeline.js │ │ │ │ │ └── stringifyFunctionOperators.js │ │ │ │ ├── arrayDepth.js │ │ │ │ ├── clone.js │ │ │ │ ├── common.js │ │ │ │ ├── cursor │ │ │ │ │ └── eachAsync.js │ │ │ │ ├── discriminator │ │ │ │ │ ├── areDiscriminatorValuesEqual.js │ │ │ │ │ ├── checkEmbeddedDiscriminatorKeyProjection.js │ │ │ │ │ ├── getConstructor.js │ │ │ │ │ ├── getDiscriminatorByValue.js │ │ │ │ │ ├── getSchemaDiscriminatorByValue.js │ │ │ │ │ └── mergeDiscriminatorSchema.js │ │ │ │ ├── document │ │ │ │ │ ├── applyDefaults.js │ │ │ │ │ ├── cleanModifiedSubpaths.js │ │ │ │ │ ├── compile.js │ │ │ │ │ ├── getDeepestSubdocumentForPath.js │ │ │ │ │ ├── getEmbeddedDiscriminatorPath.js │ │ │ │ │ └── handleSpreadDoc.js │ │ │ │ ├── each.js │ │ │ │ ├── error │ │ │ │ │ └── combinePathErrors.js │ │ │ │ ├── firstKey.js │ │ │ │ ├── get.js │ │ │ │ ├── getConstructorName.js │ │ │ │ ├── getDefaultBulkwriteResult.js │ │ │ │ ├── getFunctionName.js │ │ │ │ ├── immediate.js │ │ │ │ ├── indexes │ │ │ │ │ ├── applySchemaCollation.js │ │ │ │ │ ├── decorateDiscriminatorIndexOptions.js │ │ │ │ │ ├── getRelatedIndexes.js │ │ │ │ │ ├── isDefaultIdIndex.js │ │ │ │ │ ├── isIndexEqual.js │ │ │ │ │ └── isTextIndex.js │ │ │ │ ├── isAsyncFunction.js │ │ │ │ ├── isBsonType.js │ │ │ │ ├── isMongooseObject.js │ │ │ │ ├── isObject.js │ │ │ │ ├── isPOJO.js │ │ │ │ ├── isPromise.js │ │ │ │ ├── isSimpleValidator.js │ │ │ │ ├── model │ │ │ │ │ ├── applyDefaultsToPOJO.js │ │ │ │ │ ├── applyHooks.js │ │ │ │ │ ├── applyMethods.js │ │ │ │ │ ├── applyStaticHooks.js │ │ │ │ │ ├── applyStatics.js │ │ │ │ │ ├── castBulkWrite.js │ │ │ │ │ ├── discriminator.js │ │ │ │ │ └── pushNestedArrayPaths.js │ │ │ │ ├── once.js │ │ │ │ ├── parallelLimit.js │ │ │ │ ├── path │ │ │ │ │ ├── parentPaths.js │ │ │ │ │ └── setDottedPath.js │ │ │ │ ├── pluralize.js │ │ │ │ ├── populate │ │ │ │ │ ├── SkipPopulateValue.js │ │ │ │ │ ├── assignRawDocsToIdStructure.js │ │ │ │ │ ├── assignVals.js │ │ │ │ │ ├── createPopulateQueryFilter.js │ │ │ │ │ ├── getModelsMapForPopulate.js │ │ │ │ │ ├── getSchemaTypes.js │ │ │ │ │ ├── getVirtual.js │ │ │ │ │ ├── leanPopulateMap.js │ │ │ │ │ ├── lookupLocalFields.js │ │ │ │ │ ├── markArraySubdocsPopulated.js │ │ │ │ │ ├── modelNamesFromRefPath.js │ │ │ │ │ ├── removeDeselectedForeignField.js │ │ │ │ │ └── validateRef.js │ │ │ │ ├── printJestWarning.js │ │ │ │ ├── processConnectionOptions.js │ │ │ │ ├── projection │ │ │ │ │ ├── applyProjection.js │ │ │ │ │ ├── hasIncludedChildren.js │ │ │ │ │ ├── isDefiningProjection.js │ │ │ │ │ ├── isExclusive.js │ │ │ │ │ ├── isInclusive.js │ │ │ │ │ ├── isPathExcluded.js │ │ │ │ │ ├── isPathSelectedInclusive.js │ │ │ │ │ ├── isSubpath.js │ │ │ │ │ └── parseProjection.js │ │ │ │ ├── promiseOrCallback.js │ │ │ │ ├── query │ │ │ │ │ ├── applyGlobalOption.js │ │ │ │ │ ├── applyQueryMiddleware.js │ │ │ │ │ ├── cast$expr.js │ │ │ │ │ ├── castFilterPath.js │ │ │ │ │ ├── castUpdate.js │ │ │ │ │ ├── completeMany.js │ │ │ │ │ ├── getEmbeddedDiscriminatorPath.js │ │ │ │ │ ├── handleImmutable.js │ │ │ │ │ ├── handleReadPreferenceAliases.js │ │ │ │ │ ├── hasDollarKeys.js │ │ │ │ │ ├── isOperator.js │ │ │ │ │ ├── sanitizeFilter.js │ │ │ │ │ ├── sanitizeProjection.js │ │ │ │ │ ├── selectPopulatedFields.js │ │ │ │ │ ├── trusted.js │ │ │ │ │ └── validOps.js │ │ │ │ ├── schema │ │ │ │ │ ├── addAutoId.js │ │ │ │ │ ├── applyBuiltinPlugins.js │ │ │ │ │ ├── applyPlugins.js │ │ │ │ │ ├── applyWriteConcern.js │ │ │ │ │ ├── cleanPositionalOperators.js │ │ │ │ │ ├── getIndexes.js │ │ │ │ │ ├── getKeysInSchemaOrder.js │ │ │ │ │ ├── getPath.js │ │ │ │ │ ├── getSubdocumentStrictValue.js │ │ │ │ │ ├── handleIdOption.js │ │ │ │ │ ├── handleTimestampOption.js │ │ │ │ │ ├── idGetter.js │ │ │ │ │ └── merge.js │ │ │ │ ├── schematype │ │ │ │ │ └── handleImmutable.js │ │ │ │ ├── setDefaultsOnInsert.js │ │ │ │ ├── specialProperties.js │ │ │ │ ├── symbols.js │ │ │ │ ├── timers.js │ │ │ │ ├── timestamps │ │ │ │ │ ├── setDocumentTimestamps.js │ │ │ │ │ └── setupTimestamps.js │ │ │ │ ├── topology │ │ │ │ │ ├── allServersUnknown.js │ │ │ │ │ ├── isAtlas.js │ │ │ │ │ └── isSSLError.js │ │ │ │ ├── update │ │ │ │ │ ├── applyTimestampsToChildren.js │ │ │ │ │ ├── applyTimestampsToUpdate.js │ │ │ │ │ ├── castArrayFilters.js │ │ │ │ │ ├── modifiedPaths.js │ │ │ │ │ ├── moveImmutableProperties.js │ │ │ │ │ ├── removeUnusedArrayFilters.js │ │ │ │ │ └── updatedPathsByArrayFilter.js │ │ │ │ └── updateValidators.js │ │ │ ├── index.js │ │ │ ├── internal.js │ │ │ ├── model.js │ │ │ ├── options.js │ │ │ ├── options │ │ │ │ ├── PopulateOptions.js │ │ │ │ ├── SchemaArrayOptions.js │ │ │ │ ├── SchemaBufferOptions.js │ │ │ │ ├── SchemaDateOptions.js │ │ │ │ ├── SchemaDocumentArrayOptions.js │ │ │ │ ├── SchemaMapOptions.js │ │ │ │ ├── SchemaNumberOptions.js │ │ │ │ ├── SchemaObjectIdOptions.js │ │ │ │ ├── SchemaStringOptions.js │ │ │ │ ├── SchemaSubdocumentOptions.js │ │ │ │ ├── SchemaTypeOptions.js │ │ │ │ ├── VirtualOptions.js │ │ │ │ ├── propertyOptions.js │ │ │ │ └── saveOptions.js │ │ │ ├── plugins │ │ │ │ ├── index.js │ │ │ │ ├── removeSubdocs.js │ │ │ │ ├── saveSubdocs.js │ │ │ │ ├── sharding.js │ │ │ │ ├── trackTransaction.js │ │ │ │ └── validateBeforeSave.js │ │ │ ├── query.js │ │ │ ├── queryhelpers.js │ │ │ ├── schema.js │ │ │ ├── schema │ │ │ │ ├── DocumentArrayElement.js │ │ │ │ ├── SubdocumentPath.js │ │ │ │ ├── array.js │ │ │ │ ├── bigint.js │ │ │ │ ├── boolean.js │ │ │ │ ├── buffer.js │ │ │ │ ├── date.js │ │ │ │ ├── decimal128.js │ │ │ │ ├── documentarray.js │ │ │ │ ├── index.js │ │ │ │ ├── map.js │ │ │ │ ├── mixed.js │ │ │ │ ├── number.js │ │ │ │ ├── objectid.js │ │ │ │ ├── operators │ │ │ │ │ ├── bitwise.js │ │ │ │ │ ├── exists.js │ │ │ │ │ ├── geospatial.js │ │ │ │ │ ├── helpers.js │ │ │ │ │ ├── text.js │ │ │ │ │ └── type.js │ │ │ │ ├── string.js │ │ │ │ ├── symbols.js │ │ │ │ └── uuid.js │ │ │ ├── schematype.js │ │ │ ├── statemachine.js │ │ │ ├── types │ │ │ │ ├── ArraySubdocument.js │ │ │ │ ├── DocumentArray │ │ │ │ │ ├── index.js │ │ │ │ │ ├── isMongooseDocumentArray.js │ │ │ │ │ └── methods │ │ │ │ │ │ └── index.js │ │ │ │ ├── array │ │ │ │ │ ├── index.js │ │ │ │ │ ├── isMongooseArray.js │ │ │ │ │ └── methods │ │ │ │ │ │ └── index.js │ │ │ │ ├── buffer.js │ │ │ │ ├── decimal128.js │ │ │ │ ├── index.js │ │ │ │ ├── map.js │ │ │ │ ├── objectid.js │ │ │ │ ├── subdocument.js │ │ │ │ └── uuid.js │ │ │ ├── utils.js │ │ │ ├── validoptions.js │ │ │ └── virtualtype.js │ │ ├── package.json │ │ ├── scripts │ │ │ ├── build-browser.js │ │ │ ├── create-tarball.js │ │ │ ├── generateSearch.js │ │ │ ├── loadSponsorData.js │ │ │ └── tsc-diagnostics-check.js │ │ ├── tools │ │ │ ├── auth.js │ │ │ ├── repl.js │ │ │ └── sharded.js │ │ ├── tsconfig.json │ │ └── types │ │ │ ├── aggregate.d.ts │ │ │ ├── augmentations.d.ts │ │ │ ├── callback.d.ts │ │ │ ├── collection.d.ts │ │ │ ├── connection.d.ts │ │ │ ├── cursor.d.ts │ │ │ ├── document.d.ts │ │ │ ├── error.d.ts │ │ │ ├── expressions.d.ts │ │ │ ├── helpers.d.ts │ │ │ ├── index.d.ts │ │ │ ├── indexes.d.ts │ │ │ ├── inferschematype.d.ts │ │ │ ├── middlewares.d.ts │ │ │ ├── models.d.ts │ │ │ ├── mongooseoptions.d.ts │ │ │ ├── pipelinestage.d.ts │ │ │ ├── populate.d.ts │ │ │ ├── query.d.ts │ │ │ ├── schemaoptions.d.ts │ │ │ ├── schematypes.d.ts │ │ │ ├── session.d.ts │ │ │ ├── types.d.ts │ │ │ ├── utility.d.ts │ │ │ ├── validation.d.ts │ │ │ └── virtuals.d.ts │ ├── mpath │ │ ├── .travis.yml │ │ ├── History.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── index.js │ │ ├── lib │ │ │ ├── index.js │ │ │ └── stringToParts.js │ │ ├── package.json │ │ └── test │ │ │ ├── .eslintrc.yml │ │ │ ├── index.js │ │ │ └── stringToParts.js │ ├── mquery │ │ ├── .github │ │ │ ├── ISSUE_TEMPLATE.md │ │ │ └── PULL_REQUEST_TEMPLATE.md │ │ ├── History.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── lib │ │ │ ├── collection │ │ │ │ ├── collection.js │ │ │ │ ├── index.js │ │ │ │ └── node.js │ │ │ ├── env.js │ │ │ ├── mquery.js │ │ │ ├── permissions.js │ │ │ └── utils.js │ │ └── package.json │ ├── ms │ │ ├── index.js │ │ ├── license.md │ │ ├── package.json │ │ └── readme.md │ ├── punycode │ │ ├── LICENSE-MIT.txt │ │ ├── README.md │ │ ├── package.json │ │ ├── punycode.es6.js │ │ └── punycode.js │ ├── saslprep │ │ ├── .editorconfig │ │ ├── .gitattributes │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── code-points.mem │ │ ├── generate-code-points.js │ │ ├── index.js │ │ ├── lib │ │ │ ├── code-points.js │ │ │ ├── memory-code-points.js │ │ │ └── util.js │ │ ├── package.json │ │ ├── readme.md │ │ └── test │ │ │ ├── index.js │ │ │ └── util.js │ ├── sift │ │ ├── MIT-LICENSE.txt │ │ ├── README.md │ │ ├── es │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── es5m │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── lib │ │ │ ├── core.d.ts │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── operations.d.ts │ │ │ └── utils.d.ts │ │ ├── package.json │ │ ├── sift.csp.min.js │ │ ├── sift.csp.min.js.map │ │ ├── sift.min.js │ │ ├── sift.min.js.map │ │ └── src │ │ │ ├── core.d.ts │ │ │ ├── core.js │ │ │ ├── core.js.map │ │ │ ├── core.ts │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── index.ts │ │ │ ├── operations.d.ts │ │ │ ├── operations.js │ │ │ ├── operations.js.map │ │ │ ├── operations.ts │ │ │ ├── utils.d.ts │ │ │ ├── utils.js │ │ │ ├── utils.js.map │ │ │ └── utils.ts │ ├── smart-buffer │ │ ├── .prettierrc.yaml │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── build │ │ │ ├── smartbuffer.js │ │ │ ├── smartbuffer.js.map │ │ │ ├── utils.js │ │ │ └── utils.js.map │ │ ├── docs │ │ │ ├── CHANGELOG.md │ │ │ ├── README_v3.md │ │ │ └── ROADMAP.md │ │ ├── package.json │ │ └── typings │ │ │ ├── smartbuffer.d.ts │ │ │ └── utils.d.ts │ ├── socks │ │ ├── .eslintrc.cjs │ │ ├── .prettierrc.yaml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── build │ │ │ ├── client │ │ │ │ ├── socksclient.js │ │ │ │ └── socksclient.js.map │ │ │ ├── common │ │ │ │ ├── constants.js │ │ │ │ ├── constants.js.map │ │ │ │ ├── helpers.js │ │ │ │ ├── helpers.js.map │ │ │ │ ├── receivebuffer.js │ │ │ │ ├── receivebuffer.js.map │ │ │ │ ├── util.js │ │ │ │ └── util.js.map │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── docs │ │ │ ├── examples │ │ │ │ ├── index.md │ │ │ │ ├── javascript │ │ │ │ │ ├── associateExample.md │ │ │ │ │ ├── bindExample.md │ │ │ │ │ └── connectExample.md │ │ │ │ └── typescript │ │ │ │ │ ├── associateExample.md │ │ │ │ │ ├── bindExample.md │ │ │ │ │ └── connectExample.md │ │ │ ├── index.md │ │ │ └── migratingFromV1.md │ │ ├── package.json │ │ └── typings │ │ │ ├── client │ │ │ └── socksclient.d.ts │ │ │ ├── common │ │ │ ├── constants.d.ts │ │ │ ├── helpers.d.ts │ │ │ ├── receivebuffer.d.ts │ │ │ └── util.d.ts │ │ │ └── index.d.ts │ ├── sparse-bitfield │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ ├── package.json │ │ └── test.js │ ├── tr46 │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── index.js │ │ ├── lib │ │ │ ├── mappingTable.json │ │ │ ├── regexes.js │ │ │ └── statusMapping.js │ │ └── package.json │ ├── webidl-conversions │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── lib │ │ │ └── index.js │ │ └── package.json │ └── whatwg-url │ │ ├── LICENSE.txt │ │ ├── README.md │ │ ├── index.js │ │ ├── lib │ │ ├── Function.js │ │ ├── URL-impl.js │ │ ├── URL.js │ │ ├── URLSearchParams-impl.js │ │ ├── URLSearchParams.js │ │ ├── VoidFunction.js │ │ ├── encoding.js │ │ ├── infra.js │ │ ├── percent-encoding.js │ │ ├── url-state-machine.js │ │ ├── urlencoded.js │ │ └── utils.js │ │ ├── package.json │ │ └── webidl2js-wrapper.js ├── package-lock.json └── package.json └── projection.js /crud/delete.js: -------------------------------------------------------------------------------- 1 | //* Delete 2 | //? In MongoDB, the DELETE operations are used to remove documents from a collection. There are two main methods to perform deletion: deleteOne() and deleteMany(). 3 | 4 | //* Delete a Single Document: 5 | //? syntax : db.collectionName.deleteOne({ _id: ObjectId("12345") }); 6 | // db.sales.deleteOne({ _id: 1 }); 7 | 8 | //* Delete Multiple Documents: 9 | //? Syntax: db.collectionName.deleteMany({ field: "value" }); 10 | // db.sales.deleteMany({'price':55}) 11 | -------------------------------------------------------------------------------- /cursor_mehtods.js: -------------------------------------------------------------------------------- 1 | //* Cursor Methods 2 | 3 | //todo We need to use () parenthesis in all the cursor methods 4 | //? 1: count(): The count() method returns the count of documents that match the query. 5 | // db.products.find({price: {$gt: 250}}).count() 6 | 7 | //? 2: limit(): The limit() method restricts the number of documents returned by the query. 8 | // db.products.find({price: {$gt: 250}}).limit(2) 9 | 10 | //? 3: skip(): The skip() method skips a specified number of documents and returns the rest. 11 | // db.products.find({price: {$gt: 250}}).limit(5).skip(1) 12 | 13 | //? 4: sort(): The sort() method sorts the documents based on the specified field(s). 14 | // db.products.find({price: {$gt: 1250}}).limit(3).sort({'price':1}) 15 | -------------------------------------------------------------------------------- /database_collection.js: -------------------------------------------------------------------------------- 1 | //TODO We will work with multiple data and it will be fun and it is going to be the best video over the internet for sure 2 | 3 | //? 1: Creating / Deleting Databases 4 | // show dbs 5 | // use thapaProducts 6 | // db.dropDatabase() 7 | 8 | //? 2: Creating / Deleting Databases and Collections 9 | // db.createCollection('test') 10 | // show collections 11 | // db.test.drop() // where the test is the collection name 12 | 13 | 💖 Thank You So Much For Choosing My Video 💖 14 | 15 | Hi everyone, 16 | 17 | I'm absolutely thrilled – we're almost at 600K subscribers for our MongoDB course! This course was a true labor of love, and it's been amazing to see how it's helping you all. 18 | 19 | If you've enjoyed what we're doing and want to be part of our journey, hitting that Subscribe button would mean the world to me. Let's keep growing and learning together! 20 | Here is the link: https://www.youtube.com/thapatechnical 21 | 22 | With gratitude, 23 | Thapa Technical -------------------------------------------------------------------------------- /expresion.js: -------------------------------------------------------------------------------- 1 | //* Introduction to $expr 2 | // The $expr operator in MongoDB allows you to use aggregation expressions within a query to compare fields from the same document. It's particularly useful when you need to perform more complex comparisons or calculations involving document fields. 3 | 4 | //? The syntax is {$expr: {operator: [field, value] } } 5 | // One important thing to remember is the field should be prefix with $ sign. 6 | // db.products.find({$expr: {$gt: ['$price',1340] }}) 7 | 8 | //! Find sales where (quantity * price) is greater than targetPrice 9 | db.sales.find({ 10 | $expr: { 11 | $gt: [{ $multiply: ["$quantity", "$price"] }, "$targetPrice"], 12 | }, 13 | }); 14 | 15 | // here both the values are fields only for comparison thats why $ sign is used 16 | -------------------------------------------------------------------------------- /mongo_import.js: -------------------------------------------------------------------------------- 1 | //* MONGOIMPORT 2 | // Now I will show How to import data from json file 3 | 4 | //? mongoimport E:\\mongo\products.json -d shop -c products 5 | 6 | //? mongoimport E:\\mongo\products.json -d shop -c products --jsonArray 7 | -------------------------------------------------------------------------------- /mongo_node/index.js: -------------------------------------------------------------------------------- 1 | const { MongoClient } = require("mongodb"); 2 | 3 | const uri = "mongodb://127.0.0.1"; 4 | const client = new MongoClient(uri); 5 | 6 | const data1 = { 7 | name: "Designer Handbag1", 8 | company: "64c23350e32f4a51b19b923a", 9 | price: 3466, 10 | colors: ["#000000", "#cc6600", "#663300"], 11 | image: "/images/product-handbag.png", 12 | category: "64c2342de32f4a51b19b9250", 13 | isFeatured: true, 14 | }; 15 | 16 | const main = async () => { 17 | await client.connect(); 18 | const db = client.db("shop"); 19 | const collection = db.collection("products"); 20 | 21 | await collection.insertOne(data1); 22 | 23 | const data = await collection.find({ price: { $eq: 3466 } }).toArray(); 24 | 25 | console.log(data); 26 | return "done"; 27 | }; 28 | 29 | main() 30 | .then(console.log()) 31 | .catch((e) => console.log(e)) 32 | .finally(() => client.close()); 33 | -------------------------------------------------------------------------------- /mongo_node/node_modules/@types/node/assert/strict.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'assert/strict' { 2 | import { strict } from 'node:assert'; 3 | export = strict; 4 | } 5 | declare module 'node:assert/strict' { 6 | import { strict } from 'node:assert'; 7 | export = strict; 8 | } 9 | -------------------------------------------------------------------------------- /mongo_node/node_modules/@types/node/constants.d.ts: -------------------------------------------------------------------------------- 1 | /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */ 2 | declare module 'constants' { 3 | import { constants as osConstants, SignalConstants } from 'node:os'; 4 | import { constants as cryptoConstants } from 'node:crypto'; 5 | import { constants as fsConstants } from 'node:fs'; 6 | 7 | const exp: typeof osConstants.errno & 8 | typeof osConstants.priority & 9 | SignalConstants & 10 | typeof cryptoConstants & 11 | typeof fsConstants; 12 | export = exp; 13 | } 14 | 15 | declare module 'node:constants' { 16 | import constants = require('constants'); 17 | export = constants; 18 | } 19 | -------------------------------------------------------------------------------- /mongo_node/node_modules/@types/node/globals.global.d.ts: -------------------------------------------------------------------------------- 1 | declare var global: typeof globalThis; 2 | -------------------------------------------------------------------------------- /mongo_node/node_modules/@types/node/stream/consumers.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'stream/consumers' { 2 | import { Blob as NodeBlob } from 'node:buffer'; 3 | import { Readable } from 'node:stream'; 4 | function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 5 | function text(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 6 | function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 7 | function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 8 | function json(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 9 | } 10 | declare module 'node:stream/consumers' { 11 | export * from 'stream/consumers'; 12 | } 13 | -------------------------------------------------------------------------------- /mongo_node/node_modules/@types/node/ts4.8/assert/strict.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'assert/strict' { 2 | import { strict } from 'node:assert'; 3 | export = strict; 4 | } 5 | declare module 'node:assert/strict' { 6 | import { strict } from 'node:assert'; 7 | export = strict; 8 | } 9 | -------------------------------------------------------------------------------- /mongo_node/node_modules/@types/node/ts4.8/constants.d.ts: -------------------------------------------------------------------------------- 1 | /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */ 2 | declare module 'constants' { 3 | import { constants as osConstants, SignalConstants } from 'node:os'; 4 | import { constants as cryptoConstants } from 'node:crypto'; 5 | import { constants as fsConstants } from 'node:fs'; 6 | 7 | const exp: typeof osConstants.errno & 8 | typeof osConstants.priority & 9 | SignalConstants & 10 | typeof cryptoConstants & 11 | typeof fsConstants; 12 | export = exp; 13 | } 14 | 15 | declare module 'node:constants' { 16 | import constants = require('constants'); 17 | export = constants; 18 | } 19 | -------------------------------------------------------------------------------- /mongo_node/node_modules/@types/node/ts4.8/globals.global.d.ts: -------------------------------------------------------------------------------- 1 | declare var global: typeof globalThis; 2 | -------------------------------------------------------------------------------- /mongo_node/node_modules/@types/node/ts4.8/stream/consumers.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'stream/consumers' { 2 | import { Blob as NodeBlob } from 'node:buffer'; 3 | import { Readable } from 'node:stream'; 4 | function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 5 | function text(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 6 | function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 7 | function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 8 | function json(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 9 | } 10 | declare module 'node:stream/consumers' { 11 | export * from 'stream/consumers'; 12 | } 13 | -------------------------------------------------------------------------------- /mongo_node/node_modules/@types/webidl-conversions/README.md: -------------------------------------------------------------------------------- 1 | # Installation 2 | > `npm install --save @types/webidl-conversions` 3 | 4 | # Summary 5 | This package contains type definitions for webidl-conversions (https://github.com/jsdom/webidl-conversions#readme). 6 | 7 | # Details 8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webidl-conversions. 9 | 10 | ### Additional Details 11 | * Last updated: Mon, 29 Aug 2022 23:32:44 GMT 12 | * Dependencies: none 13 | * Global values: none 14 | 15 | # Credits 16 | These definitions were written by [ExE Boss](https://github.com/ExE-Boss), and [BendingBender](https://github.com/BendingBender). 17 | -------------------------------------------------------------------------------- /mongo_node/node_modules/@types/whatwg-url/README.md: -------------------------------------------------------------------------------- 1 | # Installation 2 | > `npm install --save @types/whatwg-url` 3 | 4 | # Summary 5 | This package contains type definitions for whatwg-url (https://github.com/jsdom/whatwg-url#readme). 6 | 7 | # Details 8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/whatwg-url. 9 | 10 | ### Additional Details 11 | * Last updated: Tue, 21 Jun 2022 16:31:40 GMT 12 | * Dependencies: [@types/webidl-conversions](https://npmjs.com/package/@types/webidl-conversions), [@types/node](https://npmjs.com/package/@types/node) 13 | * Global values: none 14 | 15 | # Credits 16 | These definitions were written by [Alexander Marks](https://github.com/aomarks), and [ExE Boss](https://github.com/ExE-Boss). 17 | -------------------------------------------------------------------------------- /mongo_node/node_modules/@types/whatwg-url/dist/URL-impl.d.ts: -------------------------------------------------------------------------------- 1 | declare class URLImpl { 2 | constructor( 3 | globalObject: object, 4 | constructorArgs: readonly [url: string, base?: string], 5 | privateData?: {}, 6 | ); 7 | 8 | href: string; 9 | readonly origin: string; 10 | protocol: string; 11 | username: string; 12 | password: string; 13 | host: string; 14 | hostname: string; 15 | port: string; 16 | pathname: string; 17 | search: string; 18 | readonly searchParams: URLSearchParams; 19 | hash: string; 20 | 21 | toJSON(): string; 22 | } 23 | export { URLImpl as implementation }; 24 | -------------------------------------------------------------------------------- /mongo_node/node_modules/@types/whatwg-url/dist/URLSearchParams-impl.d.ts: -------------------------------------------------------------------------------- 1 | declare class URLSearchParamsImpl { 2 | constructor( 3 | globalObject: object, 4 | constructorArgs: readonly [ 5 | init?: 6 | | ReadonlyArray 7 | | { readonly [name: string]: string } 8 | | string, 9 | ], 10 | privateData: { readonly doNotStripQMark?: boolean | undefined }, 11 | ); 12 | 13 | append(name: string, value: string): void; 14 | delete(name: string): void; 15 | get(name: string): string | null; 16 | getAll(name: string): string[]; 17 | has(name: string): boolean; 18 | set(name: string, value: string): void; 19 | sort(): void; 20 | 21 | [Symbol.iterator](): IterableIterator<[name: string, value: string]>; 22 | } 23 | export { URLSearchParamsImpl as implementation }; 24 | -------------------------------------------------------------------------------- /mongo_node/node_modules/@types/whatwg-url/webidl2js-wrapper.d.ts: -------------------------------------------------------------------------------- 1 | import * as URL from "./dist/URL"; 2 | import * as URLSearchParams from "./dist/URLSearchParams"; 3 | 4 | export { URL, URLSearchParams }; 5 | -------------------------------------------------------------------------------- /mongo_node/node_modules/bson/etc/prepare.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | var cp = require('child_process'); 3 | var fs = require('fs'); 4 | 5 | var nodeMajorVersion = +process.version.match(/^v(\d+)\.\d+/)[1]; 6 | 7 | if (fs.existsSync('src') && nodeMajorVersion >= 10) { 8 | cp.spawnSync('npm', ['run', 'build'], { stdio: 'inherit', shell: true }); 9 | } else { 10 | if (!fs.existsSync('lib')) { 11 | console.warn('BSON: No compiled javascript present, the library is not installed correctly.'); 12 | if (nodeMajorVersion < 10) { 13 | console.warn( 14 | 'This library can only be compiled in nodejs version 10 or later, currently running: ' + 15 | nodeMajorVersion 16 | ); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /mongo_node/node_modules/bson/src/bson_value.ts: -------------------------------------------------------------------------------- 1 | import { BSON_MAJOR_VERSION } from './constants'; 2 | 3 | /** @public */ 4 | export abstract class BSONValue { 5 | /** @public */ 6 | public abstract get _bsontype(): string; 7 | 8 | /** @internal */ 9 | get [Symbol.for('@@mdb.bson.version')](): typeof BSON_MAJOR_VERSION { 10 | return BSON_MAJOR_VERSION; 11 | } 12 | 13 | /** @public */ 14 | public abstract inspect(): string; 15 | 16 | /** @internal */ 17 | abstract toExtendedJSON(): unknown; 18 | } 19 | -------------------------------------------------------------------------------- /mongo_node/node_modules/bson/src/index.ts: -------------------------------------------------------------------------------- 1 | import * as BSON from './bson'; 2 | 3 | // Export all named properties from BSON to support 4 | // import { ObjectId, serialize } from 'bson'; 5 | // const { ObjectId, serialize } = require('bson'); 6 | export * from './bson'; 7 | 8 | // Export BSON as a namespace to support: 9 | // import { BSON } from 'bson'; 10 | // const { BSON } = require('bson'); 11 | export { BSON }; 12 | 13 | // BSON does **NOT** have a default export 14 | 15 | // The following will crash in es module environments 16 | // import BSON from 'bson'; 17 | 18 | // The following will work as expected, BSON as a namespace of all the APIs (BSON.ObjectId, BSON.serialize) 19 | // const BSON = require('bson'); 20 | -------------------------------------------------------------------------------- /mongo_node/node_modules/bson/src/max_key.ts: -------------------------------------------------------------------------------- 1 | import { BSONValue } from './bson_value'; 2 | 3 | /** @public */ 4 | export interface MaxKeyExtended { 5 | $maxKey: 1; 6 | } 7 | 8 | /** 9 | * A class representation of the BSON MaxKey type. 10 | * @public 11 | * @category BSONType 12 | */ 13 | export class MaxKey extends BSONValue { 14 | get _bsontype(): 'MaxKey' { 15 | return 'MaxKey'; 16 | } 17 | 18 | /** @internal */ 19 | toExtendedJSON(): MaxKeyExtended { 20 | return { $maxKey: 1 }; 21 | } 22 | 23 | /** @internal */ 24 | static fromExtendedJSON(): MaxKey { 25 | return new MaxKey(); 26 | } 27 | 28 | /** @internal */ 29 | [Symbol.for('nodejs.util.inspect.custom')](): string { 30 | return this.inspect(); 31 | } 32 | 33 | inspect(): string { 34 | return 'new MaxKey()'; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /mongo_node/node_modules/bson/src/min_key.ts: -------------------------------------------------------------------------------- 1 | import { BSONValue } from './bson_value'; 2 | 3 | /** @public */ 4 | export interface MinKeyExtended { 5 | $minKey: 1; 6 | } 7 | 8 | /** 9 | * A class representation of the BSON MinKey type. 10 | * @public 11 | * @category BSONType 12 | */ 13 | export class MinKey extends BSONValue { 14 | get _bsontype(): 'MinKey' { 15 | return 'MinKey'; 16 | } 17 | 18 | /** @internal */ 19 | toExtendedJSON(): MinKeyExtended { 20 | return { $minKey: 1 }; 21 | } 22 | 23 | /** @internal */ 24 | static fromExtendedJSON(): MinKey { 25 | return new MinKey(); 26 | } 27 | 28 | /** @internal */ 29 | [Symbol.for('nodejs.util.inspect.custom')](): string { 30 | return this.inspect(); 31 | } 32 | 33 | inspect(): string { 34 | return 'new MinKey()'; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /mongo_node/node_modules/bson/vendor/text-encoding/index.js: -------------------------------------------------------------------------------- 1 | // This is free and unencumbered software released into the public domain. 2 | // See LICENSE.md for more information. 3 | 4 | var encoding = require("./lib/encoding.js"); 5 | 6 | module.exports = { 7 | TextEncoder: encoding.TextEncoder, 8 | TextDecoder: encoding.TextDecoder, 9 | }; 10 | -------------------------------------------------------------------------------- /mongo_node/node_modules/ip/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ip", 3 | "version": "2.0.0", 4 | "author": "Fedor Indutny ", 5 | "homepage": "https://github.com/indutny/node-ip", 6 | "repository": { 7 | "type": "git", 8 | "url": "http://github.com/indutny/node-ip.git" 9 | }, 10 | "files": [ 11 | "lib", 12 | "README.md" 13 | ], 14 | "main": "lib/ip", 15 | "devDependencies": { 16 | "eslint": "^8.15.0", 17 | "mocha": "^10.0.0" 18 | }, 19 | "scripts": { 20 | "lint": "eslint lib/*.js test/*.js", 21 | "test": "npm run lint && mocha --reporter spec test/*-test.js", 22 | "fix": "npm run lint -- --fix" 23 | }, 24 | "license": "MIT" 25 | } 26 | -------------------------------------------------------------------------------- /mongo_node/node_modules/memory-pager/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '4' 4 | - '6' 5 | -------------------------------------------------------------------------------- /mongo_node/node_modules/memory-pager/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "memory-pager", 3 | "version": "1.5.0", 4 | "description": "Access memory using small fixed sized buffers", 5 | "main": "index.js", 6 | "dependencies": {}, 7 | "devDependencies": { 8 | "standard": "^9.0.0", 9 | "tape": "^4.6.3" 10 | }, 11 | "scripts": { 12 | "test": "standard && tape test.js" 13 | }, 14 | "repository": { 15 | "type": "git", 16 | "url": "https://github.com/mafintosh/memory-pager.git" 17 | }, 18 | "author": "Mathias Buus (@mafintosh)", 19 | "license": "MIT", 20 | "bugs": { 21 | "url": "https://github.com/mafintosh/memory-pager/issues" 22 | }, 23 | "homepage": "https://github.com/mafintosh/memory-pager" 24 | } 25 | -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb-connection-string-url/.esm-wrapper.mjs: -------------------------------------------------------------------------------- 1 | import mod from "./lib/index.js"; 2 | 3 | export default mod["default"]; 4 | export const CommaAndColonSeparatedRecord = mod.CommaAndColonSeparatedRecord; 5 | export const ConnectionString = mod.ConnectionString; 6 | export const redactConnectionString = mod.redactConnectionString; 7 | -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb-connection-string-url/README.md: -------------------------------------------------------------------------------- 1 | # mongodb-connection-string-url 2 | 3 | MongoDB connection strings, based on the WhatWG URL API 4 | 5 | ```js 6 | import ConnectionString from 'mongodb-connection-string-url'; 7 | 8 | const cs = new ConnectionString('mongodb://localhost'); 9 | cs.searchParams.set('readPreference', 'secondary'); 10 | console.log(cs.href); // 'mongodb://localhost/?readPreference=secondary' 11 | ``` 12 | 13 | ## Deviations from the WhatWG URL package 14 | 15 | - URL parameters are case-insensitive 16 | - The `.host`, `.hostname` and `.port` properties cannot be set, and reading 17 | them does not return meaningful results (and are typed as `never`in TypeScript) 18 | - The `.hosts` property contains a list of all hosts in the connection string 19 | - The `.href` property cannot be set, only read 20 | - There is an additional `.isSRV` property, set to `true` for `mongodb+srv://` 21 | - There is an additional `.clone()` utility method on the prototype 22 | 23 | ## LICENSE 24 | 25 | Apache-2.0 26 | -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb-connection-string-url/lib/redact.d.ts: -------------------------------------------------------------------------------- 1 | import ConnectionString from './index'; 2 | export interface ConnectionStringRedactionOptions { 3 | redactUsernames?: boolean; 4 | replacementString?: string; 5 | } 6 | export declare function redactValidConnectionString(inputUrl: Readonly, options?: ConnectionStringRedactionOptions): ConnectionString; 7 | export declare function redactConnectionString(uri: string, options?: ConnectionStringRedactionOptions): string; 8 | -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/etc/prepare.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | var cp = require('child_process'); 3 | var fs = require('fs'); 4 | var os = require('os'); 5 | 6 | if (fs.existsSync('src')) { 7 | cp.spawn('npm', ['run', 'build:dts'], { stdio: 'inherit', shell: os.platform() === 'win32' }); 8 | } else { 9 | if (!fs.existsSync('lib')) { 10 | console.warn('MongoDB: No compiled javascript present, the driver is not installed correctly.'); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/cmap/auth/auth_provider.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"auth_provider.js","sourceRoot":"","sources":["../../../src/cmap/auth/auth_provider.ts"],"names":[],"mappings":";;;AACA,uCAAgD;AAKhD;;;GAGG;AACH,MAAa,WAAW;IAetB,YACE,UAAsB,EACtB,WAAyC,EACzC,OAA0B;QAb5B,8CAA8C;QAC9C,qBAAgB,GAAG,KAAK,CAAC;QAcvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAxBD,kCAwBC;AAED,MAAsB,YAAY;IAChC;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACX,YAA+B,EAC/B,YAAyB;QAEzB,OAAO,YAAY,CAAC;IACtB,CAAC;IASD;;;OAGG;IACH,KAAK,CAAC,MAAM,CAAC,OAAoB;QAC/B,IAAI,OAAO,CAAC,gBAAgB,EAAE;YAC5B,MAAM,IAAI,yBAAiB,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,IAAI;YACF,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;YAChC,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC1B;gBAAS;YACR,OAAO,CAAC,gBAAgB,GAAG,KAAK,CAAC;SAClC;IACH,CAAC;CACF;AApCD,oCAoCC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/aws_service_workflow.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"aws_service_workflow.js","sourceRoot":"","sources":["../../../../src/cmap/auth/mongodb_oidc/aws_service_workflow.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AAEzB,0CAA+C;AAC/C,yDAAqD;AAErD,8DAA8D;AAC9D,MAAM,mBAAmB,GAAG,6DAA6D,CAAC;AAE1F;;;;GAIG;AACH,MAAa,kBAAmB,SAAQ,kCAAe;IACrD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ;QACZ,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;QAC1D,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,qBAAa,CAAC,mBAAmB,CAAC,CAAC;SAC9C;QACD,OAAO,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;CACF;AAfD,gDAeC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_token_cache.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"azure_token_cache.js","sourceRoot":"","sources":["../../../../src/cmap/auth/mongodb_oidc/azure_token_cache.ts"],"names":[],"mappings":";;;AACA,mCAAoD;AAEpD,gBAAgB;AAChB,MAAa,eAAgB,SAAQ,0BAAkB;IAGrD;;OAEG;IACH,YAAY,KAAa,EAAE,UAAkB;QAC3C,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAVD,0CAUC;AAED;;;GAGG;AACH,MAAa,eAAgB,SAAQ,aAAsB;IACzD;;OAEG;IACH,QAAQ,CAAC,aAAqB,EAAE,KAAuB;QACrD,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;QACxE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,aAAqB;QAC5B,OAAO,aAAa,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,aAAqB;QAC/B,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,aAAqB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACzC,CAAC;CACF;AA9BD,0CA8BC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/cache.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"cache.js","sourceRoot":"","sources":["../../../../src/cmap/auth/mongodb_oidc/cache.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAEpC;;GAEG;AACH,MAAsB,kBAAkB;IAGtC;;OAEG;IACH,YAAY,UAAkB;QAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IACpD,CAAC;IACD;;;OAGG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,oBAAoB,CAAC;IAC7D,CAAC;IAED;;OAEG;IACK,cAAc,CAAC,gBAAwB;QAC7C,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,gBAAgB,GAAG,IAAI,CAAC;IAC9C,CAAC;CACF;AAvBD,gDAuBC;AAED;;GAEG;AACH,MAAsB,KAAK;IAGzB;;OAEG;IACH;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,EAAa,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;IAOD;;OAEG;IACH,cAAc,CAAC,OAAe,EAAE,QAAgB,EAAE,YAAoB;QACpE,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF;AA5BD,sBA4BC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/service_workflow.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"service_workflow.js","sourceRoot":"","sources":["../../../../src/cmap/auth/mongodb_oidc/service_workflow.ts"],"names":[],"mappings":";;;AAAA,+BAA2C;AAE3C,0CAAoC;AAIpC,4CAA6C;AAE7C;;;GAGG;AACH,MAAsB,eAAe;IACnC;;;OAGG;IACH,KAAK,CAAC,OAAO,CAAC,UAAsB,EAAE,WAA6B;QACjE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC/C,MAAM,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;QACvC,OAAO,UAAU,CAAC,YAAY,CAAC,IAAA,UAAE,EAAC,WAAW,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,eAAe,CAAC,WAA6B;QACjD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC/C,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;QACxC,QAAQ,CAAC,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC;QACjC,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,CAAC;IAC/C,CAAC;CAMF;AAzBD,0CAyBC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,KAAa;IAC3C,OAAO;QACL,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,yBAAa,CAAC,YAAY;QACrC,OAAO,EAAE,WAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;KACxC,CAAC;AACJ,CAAC;AAND,0CAMC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/cmap/auth/plain.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"plain.js","sourceRoot":"","sources":["../../../src/cmap/auth/plain.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AACpC,uCAA2D;AAC3D,uCAAiC;AACjC,mDAAiE;AAEjE,MAAa,KAAM,SAAQ,4BAAY;IAC5B,KAAK,CAAC,IAAI,CAAC,WAAwB;QAC1C,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,WAAW,CAAC;QAChD,IAAI,CAAC,WAAW,EAAE;YAChB,MAAM,IAAI,oCAA4B,CAAC,uCAAuC,CAAC,CAAC;SACjF;QAED,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,WAAW,CAAC;QAE3C,MAAM,OAAO,GAAG,IAAI,aAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,OAAO,QAAQ,EAAE,CAAC,CAAC,CAAC;QAC1E,MAAM,OAAO,GAAG;YACd,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,OAAO;YAClB,OAAO,EAAE,OAAO;YAChB,aAAa,EAAE,CAAC;SACjB,CAAC;QAEF,MAAM,UAAU,CAAC,YAAY,CAAC,IAAA,UAAE,EAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAC1E,CAAC;CACF;AAnBD,sBAmBC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/cmap/auth/providers.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.AUTH_MECHS_AUTH_SRC_EXTERNAL = exports.AuthMechanism = void 0; 4 | /** @public */ 5 | exports.AuthMechanism = Object.freeze({ 6 | MONGODB_AWS: 'MONGODB-AWS', 7 | MONGODB_CR: 'MONGODB-CR', 8 | MONGODB_DEFAULT: 'DEFAULT', 9 | MONGODB_GSSAPI: 'GSSAPI', 10 | MONGODB_PLAIN: 'PLAIN', 11 | MONGODB_SCRAM_SHA1: 'SCRAM-SHA-1', 12 | MONGODB_SCRAM_SHA256: 'SCRAM-SHA-256', 13 | MONGODB_X509: 'MONGODB-X509', 14 | /** @experimental */ 15 | MONGODB_OIDC: 'MONGODB-OIDC' 16 | }); 17 | /** @internal */ 18 | exports.AUTH_MECHS_AUTH_SRC_EXTERNAL = new Set([ 19 | exports.AuthMechanism.MONGODB_GSSAPI, 20 | exports.AuthMechanism.MONGODB_AWS, 21 | exports.AuthMechanism.MONGODB_OIDC, 22 | exports.AuthMechanism.MONGODB_X509 23 | ]); 24 | //# sourceMappingURL=providers.js.map -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/cmap/auth/providers.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/cmap/auth/providers.ts"],"names":[],"mappings":";;;AAAA,cAAc;AACD,QAAA,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;IACxB,eAAe,EAAE,SAAS;IAC1B,cAAc,EAAE,QAAQ;IACxB,aAAa,EAAE,OAAO;IACtB,kBAAkB,EAAE,aAAa;IACjC,oBAAoB,EAAE,eAAe;IACrC,YAAY,EAAE,cAAc;IAC5B,oBAAoB;IACpB,YAAY,EAAE,cAAc;CACpB,CAAC,CAAC;AAKZ,gBAAgB;AACH,QAAA,4BAA4B,GAAG,IAAI,GAAG,CAAgB;IACjE,qBAAa,CAAC,cAAc;IAC5B,qBAAa,CAAC,WAAW;IACzB,qBAAa,CAAC,YAAY;IAC1B,qBAAa,CAAC,YAAY;CAC3B,CAAC,CAAC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/cmap/wire_protocol/constants.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/cmap/wire_protocol/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,4BAA4B,GAAG,KAAK,CAAC;AACrC,QAAA,4BAA4B,GAAG,KAAK,CAAC;AACrC,QAAA,0BAA0B,GAAG,CAAC,CAAC;AAC/B,QAAA,0BAA0B,GAAG,EAAE,CAAC;AAChC,QAAA,6BAA6B,GAAG,EAAE,CAAC;AACnC,QAAA,+BAA+B,GAAG,KAAK,CAAC;AACxC,QAAA,QAAQ,GAAG,CAAC,CAAC;AACb,QAAA,SAAS,GAAG,IAAI,CAAC;AACjB,QAAA,SAAS,GAAG,IAAI,CAAC;AACjB,QAAA,QAAQ,GAAG,IAAI,CAAC;AAChB,QAAA,SAAS,GAAG,IAAI,CAAC;AACjB,QAAA,aAAa,GAAG,IAAI,CAAC;AACrB,QAAA,MAAM,GAAG,IAAI,CAAC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ListSearchIndexesCursor = void 0; 4 | const aggregation_cursor_1 = require("./aggregation_cursor"); 5 | /** @public */ 6 | class ListSearchIndexesCursor extends aggregation_cursor_1.AggregationCursor { 7 | /** @internal */ 8 | constructor({ fullNamespace: ns, client }, name, options = {}) { 9 | const pipeline = name == null ? [{ $listSearchIndexes: {} }] : [{ $listSearchIndexes: { name } }]; 10 | super(client, ns, pipeline, options); 11 | } 12 | } 13 | exports.ListSearchIndexesCursor = ListSearchIndexesCursor; 14 | //# sourceMappingURL=list_search_indexes_cursor.js.map -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"list_search_indexes_cursor.js","sourceRoot":"","sources":["../../src/cursor/list_search_indexes_cursor.ts"],"names":[],"mappings":";;;AAEA,6DAAyD;AAKzD,cAAc;AACd,MAAa,uBAAwB,SAAQ,sCAAmC;IAC9E,gBAAgB;IAChB,YACE,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,EAAc,EACzC,IAAmB,EACnB,UAAoC,EAAE;QAEtC,MAAM,QAAQ,GACZ,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACnF,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;CACF;AAXD,0DAWC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/explain.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"explain.js","sourceRoot":"","sources":["../src/explain.ts"],"names":[],"mappings":";;;AAAA,mCAAoD;AAEpD,cAAc;AACD,QAAA,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,YAAY,EAAE,cAAc;IAC5B,oBAAoB,EAAE,sBAAsB;IAC5C,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;CAC9B,CAAC,CAAC;AAmBZ,gBAAgB;AAChB,MAAa,OAAO;IAGlB,YAAY,SAA+B;QACzC,IAAI,OAAO,SAAS,KAAK,SAAS,EAAE;YAClC,IAAI,CAAC,SAAS,GAAG,SAAS;gBACxB,CAAC,CAAC,wBAAgB,CAAC,iBAAiB;gBACpC,CAAC,CAAC,wBAAgB,CAAC,YAAY,CAAC;SACnC;aAAM;YACL,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;SAC5B;IACH,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,OAAwB;QACzC,IAAI,OAAO,EAAE,OAAO,IAAI,IAAI;YAAE,OAAO;QAErC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAChC,IAAI,OAAO,OAAO,KAAK,SAAS,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YAC/D,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;SAC7B;QAED,MAAM,IAAI,iCAAyB,CAAC,+CAA+C,CAAC,CAAC;IACvF,CAAC;CACF;AAvBD,0BAuBC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/mongo_types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CancellationToken = exports.TypedEventEmitter = void 0; 4 | const events_1 = require("events"); 5 | /** 6 | * Typescript type safe event emitter 7 | * @public 8 | */ 9 | class TypedEventEmitter extends events_1.EventEmitter { 10 | /** @internal */ 11 | emitAndLog(event, ...args) { 12 | this.emit(event, ...args); 13 | if (this.component) 14 | this.mongoLogger?.debug(this.component, args[0]); 15 | } 16 | } 17 | exports.TypedEventEmitter = TypedEventEmitter; 18 | /** @public */ 19 | class CancellationToken extends TypedEventEmitter { 20 | } 21 | exports.CancellationToken = CancellationToken; 22 | //# sourceMappingURL=mongo_types.js.map -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/mongo_types.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"mongo_types.js","sourceRoot":"","sources":["../src/mongo_types.ts"],"names":[],"mappings":";;;AACA,mCAAsC;AA2YtC;;;GAGG;AAEH,MAAa,iBAAoD,SAAQ,qBAAY;IAKnF,gBAAgB;IACN,UAAU,CAClB,KAAwB,EACxB,GAAG,IAAkC;QAErC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;QAC1B,IAAI,IAAI,CAAC,SAAS;YAAE,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACvE,CAAC;CACF;AAbD,8CAaC;AAED,cAAc;AACd,MAAa,iBAAkB,SAAQ,iBAAqC;CAAG;AAA/E,8CAA+E"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/operations/collections.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/operations/collections.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAK3C,2CAA+E;AAM/E,gBAAgB;AAChB,MAAa,oBAAqB,SAAQ,qCAAuC;IAI/E,YAAY,EAAM,EAAE,OAA2B;QAC7C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,CAAC;IAEQ,eAAe,CACtB,MAAc,EACd,OAAkC,EAClC,QAAgC;QAEhC,iCAAiC;QACjC,IAAI,CAAC,EAAE;aACJ,eAAe,CACd,EAAE,EACF,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE,CAClF;aACA,OAAO,EAAE;aACT,IAAI,CACH,SAAS,CAAC,EAAE;YACV,MAAM,WAAW,GAAG,EAAE,CAAC;YACvB,KAAK,MAAM,EAAE,IAAI,EAAE,IAAI,SAAS,EAAE;gBAChC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;oBACvB,+CAA+C;oBAC/C,WAAW,CAAC,IAAI,CAAC,IAAI,uBAAU,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;iBACpE;aACF;YACD,gCAAgC;YAChC,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QACnC,CAAC,EACD,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CACzB,CAAC;IACN,CAAC;CACF;AArCD,oDAqCC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/operations/is_capped.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"is_capped.js","sourceRoot":"","sources":["../../src/operations/is_capped.ts"],"names":[],"mappings":";;;AACA,oCAAyC;AAIzC,2CAA+E;AAE/E,gBAAgB;AAChB,MAAa,iBAAkB,SAAQ,qCAAkC;IAIvE,YAAY,UAAsB,EAAE,OAAyB;QAC3D,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAEQ,eAAe,CACtB,MAAc,EACd,OAAkC,EAClC,QAA2B;QAE3B,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC;QAE7B,IAAI,CAAC,CAAC,CAAC,EAAE;aACN,eAAe,CACd,EAAE,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,EAC7B,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE,CACnF;aACA,OAAO,EAAE;aACT,IAAI,CACH,WAAW,CAAC,EAAE;YACZ,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC5B,kBAAkB;gBAClB,OAAO,QAAQ,CAAC,IAAI,qBAAa,CAAC,cAAc,IAAI,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC;aAC9E;YAED,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACxD,CAAC,EACD,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CACzB,CAAC;IACN,CAAC;CACF;AAnCD,8CAmCC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/operations/kill_cursors.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"kill_cursors.js","sourceRoot":"","sources":["../../src/operations/kill_cursors.ts"],"names":[],"mappings":";;;AACA,oCAA6C;AAI7C,2CAKqB;AAYrB,MAAa,oBAAqB,SAAQ,qCAAyB;IAGjE,YAAY,QAAc,EAAE,EAAoB,EAAE,MAAc,EAAE,OAAyB;QACzF,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,eAAe,CACb,MAAc,EACd,OAAkC,EAClC,QAAwB;QAExB,IAAI,MAAM,KAAK,IAAI,CAAC,MAAM,EAAE;YAC1B,OAAO,QAAQ,CACb,IAAI,yBAAiB,CAAC,2DAA2D,CAAC,CACnF,CAAC;SACH;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC;QACvC,IAAI,WAAW,IAAI,IAAI,EAAE;YACvB,gEAAgE;YAChE,wFAAwF;YACxF,OAAO,QAAQ,CACb,IAAI,yBAAiB,CAAC,yDAAyD,CAAC,CACjF,CAAC;SACH;QAED,MAAM,kBAAkB,GAAuB;YAC7C,WAAW;YACX,OAAO,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;SACzB,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AArCD,oDAqCC;AAED,IAAA,yBAAa,EAAC,oBAAoB,EAAE,CAAC,kBAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/operations/options_operation.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"options_operation.js","sourceRoot":"","sources":["../../src/operations/options_operation.ts"],"names":[],"mappings":";;;AAEA,oCAAyC;AAIzC,2CAA+E;AAE/E,gBAAgB;AAChB,MAAa,gBAAiB,SAAQ,qCAAmC;IAIvE,YAAY,UAAsB,EAAE,OAAyB;QAC3D,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAEQ,eAAe,CACtB,MAAc,EACd,OAAkC,EAClC,QAA4B;QAE5B,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC;QAE7B,IAAI,CAAC,CAAC,CAAC,EAAE;aACN,eAAe,CACd,EAAE,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,EAC7B,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE,CACnF;aACA,OAAO,EAAE;aACT,IAAI,CACH,WAAW,CAAC,EAAE;YACZ,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC5B,kBAAkB;gBAClB,OAAO,QAAQ,CAAC,IAAI,qBAAa,CAAC,cAAc,IAAI,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC;aAC9E;YAED,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC9C,CAAC,EACD,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CACzB,CAAC;IACN,CAAC;CACF;AAnCD,4CAmCC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/operations/remove_user.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.RemoveUserOperation = void 0; 4 | const command_1 = require("./command"); 5 | const operation_1 = require("./operation"); 6 | /** @internal */ 7 | class RemoveUserOperation extends command_1.CommandOperation { 8 | constructor(db, username, options) { 9 | super(db, options); 10 | this.options = options; 11 | this.username = username; 12 | } 13 | executeCallback(server, session, callback) { 14 | super.executeCommand(server, session, { dropUser: this.username }, err => { 15 | callback(err, err ? false : true); 16 | }); 17 | } 18 | } 19 | exports.RemoveUserOperation = RemoveUserOperation; 20 | (0, operation_1.defineAspects)(RemoveUserOperation, [operation_1.Aspect.WRITE_OPERATION]); 21 | //# sourceMappingURL=remove_user.js.map -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/operations/remove_user.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"remove_user.js","sourceRoot":"","sources":["../../src/operations/remove_user.ts"],"names":[],"mappings":";;;AAIA,uCAA2E;AAC3E,2CAAoD;AAKpD,gBAAgB;AAChB,MAAa,mBAAoB,SAAQ,0BAAyB;IAIhE,YAAY,EAAM,EAAE,QAAgB,EAAE,OAA0B;QAC9D,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEQ,eAAe,CACtB,MAAc,EACd,OAAkC,EAClC,QAA2B;QAE3B,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,GAAG,CAAC,EAAE;YACvE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAnBD,kDAmBC;AAED,IAAA,yBAAa,EAAC,mBAAmB,EAAE,CAAC,kBAAM,CAAC,eAAe,CAAC,CAAC,CAAC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/operations/run_command.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"run_command.js","sourceRoot":"","sources":["../../src/operations/run_command.ts"],"names":[],"mappings":";;;AAIA,oCAA2D;AAC3D,uCAAmE;AAyCnE,gBAAgB;AAChB,MAAa,mBAAkC,SAAQ,0BAAmB;IAIxE,YAAY,MAAmC,EAAE,OAAiB,EAAE,OAA2B;QAC7F,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAEQ,eAAe,CACtB,MAAc,EACd,OAAkC,EAClC,QAAqB;QAErB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC7B,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC1D,CAAC;CACF;AAlBD,kDAkBC;AAED,MAAa,wBAAuC,SAAQ,mBAAsB;IAChF,YAAY,MAAmC,EAAE,OAAiB,EAAE,OAA2B;QAC7F,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAChC,IAAI,CAAC,EAAE,GAAG,IAAI,wBAAgB,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;CACF;AALD,4DAKC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/operations/search_indexes/create.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/operations/search_indexes/create.ts"],"names":[],"mappings":";;;AAMA,4CAAyD;AAazD,gBAAgB;AAChB,MAAa,4BAA6B,SAAQ,qCAAmC;IACnF,YACmB,UAAsB,EACtB,YAAmD;QAEpE,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,iBAAY,GAAZ,YAAY,CAAuC;IAGtE,CAAC;IAED,eAAe,CACb,MAAc,EACd,OAAkC,EAClC,QAA4B;QAE5B,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;QAChD,MAAM,OAAO,GAAG;YACd,mBAAmB,EAAE,SAAS,CAAC,UAAU;YACzC,OAAO,EAAE,IAAI,CAAC,YAAY;SAC3B,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAC3D,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE;gBACf,QAAQ,CAAC,GAAG,CAAC,CAAC;gBACd,OAAO;aACR;YAED,MAAM,cAAc,GAA4B,GAAG,EAAE,cAAc,IAAI,EAAE,CAAC;YAE1E,QAAQ,CACN,SAAS,EACT,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CACvC,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAjCD,oEAiCC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/operations/search_indexes/drop.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"drop.js","sourceRoot":"","sources":["../../../src/operations/search_indexes/drop.ts"],"names":[],"mappings":";;;AAMA,4CAAyD;AAEzD,gBAAgB;AAChB,MAAa,wBAAyB,SAAQ,qCAA+B;IAC3E,YAA6B,UAAsB,EAAmB,IAAY;QAChF,KAAK,EAAE,CAAC;QADmB,eAAU,GAAV,UAAU,CAAY;QAAmB,SAAI,GAAJ,IAAI,CAAQ;IAElF,CAAC;IAED,eAAe,CACb,MAAc,EACd,OAAkC,EAClC,QAAwB;QAExB,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;QAEhD,MAAM,OAAO,GAAa;YACxB,eAAe,EAAE,SAAS,CAAC,UAAU;SACtC,CAAC;QAEF,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;YACjC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;SAC1B;QAED,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,CAAC,EAAE;YACpD,IAAI,GAAG,EAAE;gBACP,QAAQ,CAAC,GAAG,CAAC,CAAC;gBACd,OAAO;aACR;YAED,QAAQ,EAAE,CAAC;QACb,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA7BD,4DA6BC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/lib/operations/search_indexes/update.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/operations/search_indexes/update.ts"],"names":[],"mappings":";;;AAMA,4CAAyD;AAEzD,gBAAgB;AAChB,MAAa,0BAA2B,SAAQ,qCAA+B;IAC7E,YACmB,UAAsB,EACtB,IAAY,EACZ,UAAoB;QAErC,KAAK,EAAE,CAAC;QAJS,eAAU,GAAV,UAAU,CAAY;QACtB,SAAI,GAAJ,IAAI,CAAQ;QACZ,eAAU,GAAV,UAAU,CAAU;IAGvC,CAAC;IAED,eAAe,CACb,MAAc,EACd,OAAkC,EAClC,QAAwB;QAExB,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;QAChD,MAAM,OAAO,GAAG;YACd,iBAAiB,EAAE,SAAS,CAAC,UAAU;YACvC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,CAAC,EAAE;YACpD,IAAI,GAAG,EAAE;gBACP,QAAQ,CAAC,GAAG,CAAC,CAAC;gBACd,OAAO;aACR;YAED,QAAQ,EAAE,CAAC;QACb,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA9BD,gEA8BC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/src/cmap/auth/mongodb_oidc/aws_service_workflow.ts: -------------------------------------------------------------------------------- 1 | import * as fs from 'fs'; 2 | 3 | import { MongoAWSError } from '../../../error'; 4 | import { ServiceWorkflow } from './service_workflow'; 5 | 6 | /** Error for when the token is missing in the environment. */ 7 | const TOKEN_MISSING_ERROR = 'AWS_WEB_IDENTITY_TOKEN_FILE must be set in the environment.'; 8 | 9 | /** 10 | * Device workflow implementation for AWS. 11 | * 12 | * @internal 13 | */ 14 | export class AwsServiceWorkflow extends ServiceWorkflow { 15 | constructor() { 16 | super(); 17 | } 18 | 19 | /** 20 | * Get the token from the environment. 21 | */ 22 | async getToken(): Promise { 23 | const tokenFile = process.env.AWS_WEB_IDENTITY_TOKEN_FILE; 24 | if (!tokenFile) { 25 | throw new MongoAWSError(TOKEN_MISSING_ERROR); 26 | } 27 | return fs.promises.readFile(tokenFile, 'utf8'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/src/cmap/auth/plain.ts: -------------------------------------------------------------------------------- 1 | import { Binary } from '../../bson'; 2 | import { MongoMissingCredentialsError } from '../../error'; 3 | import { ns } from '../../utils'; 4 | import { type AuthContext, AuthProvider } from './auth_provider'; 5 | 6 | export class Plain extends AuthProvider { 7 | override async auth(authContext: AuthContext): Promise { 8 | const { connection, credentials } = authContext; 9 | if (!credentials) { 10 | throw new MongoMissingCredentialsError('AuthContext must provide credentials.'); 11 | } 12 | 13 | const { username, password } = credentials; 14 | 15 | const payload = new Binary(Buffer.from(`\x00${username}\x00${password}`)); 16 | const command = { 17 | saslStart: 1, 18 | mechanism: 'PLAIN', 19 | payload: payload, 20 | autoAuthorize: 1 21 | }; 22 | 23 | await connection.commandAsync(ns('$external.$cmd'), command, undefined); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/src/cmap/auth/providers.ts: -------------------------------------------------------------------------------- 1 | /** @public */ 2 | export const AuthMechanism = Object.freeze({ 3 | MONGODB_AWS: 'MONGODB-AWS', 4 | MONGODB_CR: 'MONGODB-CR', 5 | MONGODB_DEFAULT: 'DEFAULT', 6 | MONGODB_GSSAPI: 'GSSAPI', 7 | MONGODB_PLAIN: 'PLAIN', 8 | MONGODB_SCRAM_SHA1: 'SCRAM-SHA-1', 9 | MONGODB_SCRAM_SHA256: 'SCRAM-SHA-256', 10 | MONGODB_X509: 'MONGODB-X509', 11 | /** @experimental */ 12 | MONGODB_OIDC: 'MONGODB-OIDC' 13 | } as const); 14 | 15 | /** @public */ 16 | export type AuthMechanism = (typeof AuthMechanism)[keyof typeof AuthMechanism]; 17 | 18 | /** @internal */ 19 | export const AUTH_MECHS_AUTH_SRC_EXTERNAL = new Set([ 20 | AuthMechanism.MONGODB_GSSAPI, 21 | AuthMechanism.MONGODB_AWS, 22 | AuthMechanism.MONGODB_OIDC, 23 | AuthMechanism.MONGODB_X509 24 | ]); 25 | -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/src/cmap/wire_protocol/constants.ts: -------------------------------------------------------------------------------- 1 | export const MIN_SUPPORTED_SERVER_VERSION = '3.6'; 2 | export const MAX_SUPPORTED_SERVER_VERSION = '7.0'; 3 | export const MIN_SUPPORTED_WIRE_VERSION = 6; 4 | export const MAX_SUPPORTED_WIRE_VERSION = 21; 5 | export const MIN_SUPPORTED_QE_WIRE_VERSION = 21; 6 | export const MIN_SUPPORTED_QE_SERVER_VERSION = '7.0'; 7 | export const OP_REPLY = 1; 8 | export const OP_UPDATE = 2001; 9 | export const OP_INSERT = 2002; 10 | export const OP_QUERY = 2004; 11 | export const OP_DELETE = 2006; 12 | export const OP_COMPRESSED = 2012; 13 | export const OP_MSG = 2013; 14 | -------------------------------------------------------------------------------- /mongo_node/node_modules/mongodb/src/cursor/list_search_indexes_cursor.ts: -------------------------------------------------------------------------------- 1 | import type { Collection } from '../collection'; 2 | import type { AggregateOptions } from '../operations/aggregate'; 3 | import { AggregationCursor } from './aggregation_cursor'; 4 | 5 | /** @public */ 6 | export type ListSearchIndexesOptions = AggregateOptions; 7 | 8 | /** @public */ 9 | export class ListSearchIndexesCursor extends AggregationCursor<{ name: string }> { 10 | /** @internal */ 11 | constructor( 12 | { fullNamespace: ns, client }: Collection, 13 | name: string | null, 14 | options: ListSearchIndexesOptions = {} 15 | ) { 16 | const pipeline = 17 | name == null ? [{ $listSearchIndexes: {} }] : [{ $listSearchIndexes: { name } }]; 18 | super(client, ns, pipeline, options); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /mongo_node/node_modules/saslprep/.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | -------------------------------------------------------------------------------- /mongo_node/node_modules/saslprep/.gitattributes: -------------------------------------------------------------------------------- 1 | *.mem binary 2 | -------------------------------------------------------------------------------- /mongo_node/node_modules/saslprep/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - "6" 5 | - "8" 6 | - "10" 7 | - "12" 8 | 9 | before_install: 10 | - npm install -g npm@6 11 | -------------------------------------------------------------------------------- /mongo_node/node_modules/saslprep/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | All notable changes to the "saslprep" package will be documented in this file. 3 | 4 | ## [1.0.3] - 2019-05-01 5 | 6 | - Correctly get code points >U+FFFF ([#5](https://github.com/reklatsmasters/saslprep/pull/5)) 7 | - Fix perfomance downgrades from [#5](https://github.com/reklatsmasters/saslprep/pull/5). 8 | 9 | ## [1.0.2] - 2018-09-13 10 | 11 | - Reduced initialization time ([#3](https://github.com/reklatsmasters/saslprep/issues/3)) 12 | 13 | ## [1.0.1] - 2018-06-20 14 | 15 | - Reduced stack overhead of range creation ([#2](https://github.com/reklatsmasters/saslprep/pull/2)) 16 | 17 | ## [1.0.0] - 2017-06-21 18 | 19 | - First release 20 | -------------------------------------------------------------------------------- /mongo_node/node_modules/saslprep/code-points.mem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thapatechnical/mongo_thapa_course/62a0c9c64ea7621a668b124f53f64ae0f7eb5958/mongo_node/node_modules/saslprep/code-points.mem -------------------------------------------------------------------------------- /mongo_node/node_modules/saslprep/lib/util.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Create an array of numbers. 5 | * @param {number} from 6 | * @param {number} to 7 | * @returns {number[]} 8 | */ 9 | function range(from, to) { 10 | // TODO: make this inlined. 11 | const list = new Array(to - from + 1); 12 | 13 | for (let i = 0; i < list.length; i += 1) { 14 | list[i] = from + i; 15 | } 16 | return list; 17 | } 18 | 19 | module.exports = { 20 | range, 21 | }; 22 | -------------------------------------------------------------------------------- /mongo_node/node_modules/saslprep/test/util.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const { setFlagsFromString } = require('v8'); 4 | const { range } = require('../lib/util'); 5 | 6 | // 984 by default. 7 | setFlagsFromString('--stack_size=500'); 8 | 9 | test('should work', () => { 10 | const list = range(1, 3); 11 | expect(list).toEqual([1, 2, 3]); 12 | }); 13 | 14 | test('should work for large ranges', () => { 15 | expect(() => range(1, 1e6)).not.toThrow(); 16 | }); 17 | -------------------------------------------------------------------------------- /mongo_node/node_modules/smart-buffer/.prettierrc.yaml: -------------------------------------------------------------------------------- 1 | parser: typescript 2 | printWidth: 120 3 | tabWidth: 2 4 | singleQuote: true 5 | trailingComma: none -------------------------------------------------------------------------------- /mongo_node/node_modules/smart-buffer/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 6 4 | - 8 5 | - 10 6 | - 12 7 | - stable 8 | 9 | before_script: 10 | - npm install -g typescript 11 | - tsc -p ./ 12 | 13 | script: "npm run coveralls" -------------------------------------------------------------------------------- /mongo_node/node_modules/smart-buffer/docs/ROADMAP.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thapatechnical/mongo_thapa_course/62a0c9c64ea7621a668b124f53f64ae0f7eb5958/mongo_node/node_modules/smart-buffer/docs/ROADMAP.md -------------------------------------------------------------------------------- /mongo_node/node_modules/socks/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | parser: '@typescript-eslint/parser', 4 | plugins: [ 5 | '@typescript-eslint', 6 | ], 7 | extends: [ 8 | 'eslint:recommended', 9 | 'plugin:@typescript-eslint/recommended', 10 | ], 11 | }; -------------------------------------------------------------------------------- /mongo_node/node_modules/socks/.prettierrc.yaml: -------------------------------------------------------------------------------- 1 | parser: typescript 2 | printWidth: 80 3 | tabWidth: 2 4 | singleQuote: true 5 | trailingComma: all 6 | arrowParens: always 7 | bracketSpacing: false -------------------------------------------------------------------------------- /mongo_node/node_modules/socks/build/common/util.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.shuffleArray = exports.SocksClientError = void 0; 4 | /** 5 | * Error wrapper for SocksClient 6 | */ 7 | class SocksClientError extends Error { 8 | constructor(message, options) { 9 | super(message); 10 | this.options = options; 11 | } 12 | } 13 | exports.SocksClientError = SocksClientError; 14 | /** 15 | * Shuffles a given array. 16 | * @param array The array to shuffle. 17 | */ 18 | function shuffleArray(array) { 19 | for (let i = array.length - 1; i > 0; i--) { 20 | const j = Math.floor(Math.random() * (i + 1)); 21 | [array[i], array[j]] = [array[j], array[i]]; 22 | } 23 | } 24 | exports.shuffleArray = shuffleArray; 25 | //# sourceMappingURL=util.js.map -------------------------------------------------------------------------------- /mongo_node/node_modules/socks/build/common/util.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/common/util.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAM,gBAAiB,SAAQ,KAAK;IAClC,YACE,OAAe,EACR,OAAqD;QAE5D,KAAK,CAAC,OAAO,CAAC,CAAC;QAFR,YAAO,GAAP,OAAO,CAA8C;IAG9D,CAAC;CACF;AAuBuB,4CAAgB;AArBxC;;;GAGG;AACH,SAAS,YAAY,CAAC,KAAgB;IACpC,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7C;AACH,CAAC;AAYyC,oCAAY"} -------------------------------------------------------------------------------- /mongo_node/node_modules/socks/build/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | var desc = Object.getOwnPropertyDescriptor(m, k); 5 | if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 6 | desc = { enumerable: true, get: function() { return m[k]; } }; 7 | } 8 | Object.defineProperty(o, k2, desc); 9 | }) : (function(o, m, k, k2) { 10 | if (k2 === undefined) k2 = k; 11 | o[k2] = m[k]; 12 | })); 13 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 14 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 15 | }; 16 | Object.defineProperty(exports, "__esModule", { value: true }); 17 | __exportStar(require("./client/socksclient"), exports); 18 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /mongo_node/node_modules/socks/build/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"} -------------------------------------------------------------------------------- /mongo_node/node_modules/socks/docs/examples/index.md: -------------------------------------------------------------------------------- 1 | # socks examples 2 | 3 | ## TypeScript Examples 4 | 5 | [Connect command](typescript/connectExample.md) 6 | 7 | [Bind command](typescript/bindExample.md) 8 | 9 | [Associate command](typescript/associateExample.md) 10 | 11 | ## JavaScript Examples 12 | 13 | [Connect command](javascript/connectExample.md) 14 | 15 | [Bind command](javascript/bindExample.md) 16 | 17 | [Associate command](javascript/associateExample.md) -------------------------------------------------------------------------------- /mongo_node/node_modules/socks/docs/index.md: -------------------------------------------------------------------------------- 1 | # Documentation 2 | 3 | - [API Reference](https://github.com/JoshGlazebrook/socks#api-reference) 4 | 5 | - [Code Examples](./examples/index.md) -------------------------------------------------------------------------------- /mongo_node/node_modules/socks/typings/common/helpers.d.ts: -------------------------------------------------------------------------------- 1 | import { SocksClientOptions, SocksClientChainOptions } from '../client/socksclient'; 2 | /** 3 | * Validates the provided SocksClientOptions 4 | * @param options { SocksClientOptions } 5 | * @param acceptedCommands { string[] } A list of accepted SocksProxy commands. 6 | */ 7 | declare function validateSocksClientOptions(options: SocksClientOptions, acceptedCommands?: string[]): void; 8 | /** 9 | * Validates the SocksClientChainOptions 10 | * @param options { SocksClientChainOptions } 11 | */ 12 | declare function validateSocksClientChainOptions(options: SocksClientChainOptions): void; 13 | export { validateSocksClientOptions, validateSocksClientChainOptions }; 14 | -------------------------------------------------------------------------------- /mongo_node/node_modules/socks/typings/common/receivebuffer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare class ReceiveBuffer { 3 | private buffer; 4 | private offset; 5 | private originalSize; 6 | constructor(size?: number); 7 | get length(): number; 8 | append(data: Buffer): number; 9 | peek(length: number): Buffer; 10 | get(length: number): Buffer; 11 | } 12 | export { ReceiveBuffer }; 13 | -------------------------------------------------------------------------------- /mongo_node/node_modules/socks/typings/common/util.d.ts: -------------------------------------------------------------------------------- 1 | import { SocksClientOptions, SocksClientChainOptions } from './constants'; 2 | /** 3 | * Error wrapper for SocksClient 4 | */ 5 | declare class SocksClientError extends Error { 6 | options: SocksClientOptions | SocksClientChainOptions; 7 | constructor(message: string, options: SocksClientOptions | SocksClientChainOptions); 8 | } 9 | /** 10 | * Shuffles a given array. 11 | * @param array The array to shuffle. 12 | */ 13 | declare function shuffleArray(array: unknown[]): void; 14 | declare type RequireOnlyOne = Pick> & { 15 | [K in Keys]?: Required> & Partial, undefined>>; 16 | }[Keys]; 17 | export { RequireOnlyOne, SocksClientError, shuffleArray }; 18 | -------------------------------------------------------------------------------- /mongo_node/node_modules/socks/typings/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './client/socksclient'; 2 | -------------------------------------------------------------------------------- /mongo_node/node_modules/sparse-bitfield/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /mongo_node/node_modules/sparse-bitfield/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.10' 4 | - '0.12' 5 | - '4.0' 6 | - '5.0' 7 | -------------------------------------------------------------------------------- /mongo_node/node_modules/sparse-bitfield/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sparse-bitfield", 3 | "version": "3.0.3", 4 | "description": "Bitfield that allocates a series of small buffers to support sparse bits without allocating a massive buffer", 5 | "main": "index.js", 6 | "dependencies": { 7 | "memory-pager": "^1.0.2" 8 | }, 9 | "devDependencies": { 10 | "buffer-alloc": "^1.1.0", 11 | "standard": "^9.0.0", 12 | "tape": "^4.6.3" 13 | }, 14 | "scripts": { 15 | "test": "standard && tape test.js" 16 | }, 17 | "repository": { 18 | "type": "git", 19 | "url": "https://github.com/mafintosh/sparse-bitfield.git" 20 | }, 21 | "author": "Mathias Buus (@mafintosh)", 22 | "license": "MIT", 23 | "bugs": { 24 | "url": "https://github.com/mafintosh/sparse-bitfield/issues" 25 | }, 26 | "homepage": "https://github.com/mafintosh/sparse-bitfield" 27 | } 28 | -------------------------------------------------------------------------------- /mongo_node/node_modules/tr46/lib/statusMapping.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports.STATUS_MAPPING = { 4 | mapped: 1, 5 | valid: 2, 6 | disallowed: 3, 7 | disallowed_STD3_valid: 4, 8 | disallowed_STD3_mapped: 5, 9 | deviation: 6, 10 | ignored: 7 11 | }; 12 | -------------------------------------------------------------------------------- /mongo_node/node_modules/whatwg-url/lib/VoidFunction.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const conversions = require("webidl-conversions"); 4 | const utils = require("./utils.js"); 5 | 6 | exports.convert = (globalObject, value, { context = "The provided value" } = {}) => { 7 | if (typeof value !== "function") { 8 | throw new globalObject.TypeError(context + " is not a function"); 9 | } 10 | 11 | function invokeTheCallbackFunction() { 12 | const thisArg = utils.tryWrapperForImpl(this); 13 | let callResult; 14 | 15 | callResult = Reflect.apply(value, thisArg, []); 16 | } 17 | 18 | invokeTheCallbackFunction.construct = () => { 19 | let callResult = Reflect.construct(value, []); 20 | }; 21 | 22 | invokeTheCallbackFunction[utils.wrapperSymbol] = value; 23 | invokeTheCallbackFunction.objectReference = value; 24 | 25 | return invokeTheCallbackFunction; 26 | }; 27 | -------------------------------------------------------------------------------- /mongo_node/node_modules/whatwg-url/lib/encoding.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const utf8Encoder = new TextEncoder(); 3 | const utf8Decoder = new TextDecoder("utf-8", { ignoreBOM: true }); 4 | 5 | function utf8Encode(string) { 6 | return utf8Encoder.encode(string); 7 | } 8 | 9 | function utf8DecodeWithoutBOM(bytes) { 10 | return utf8Decoder.decode(bytes); 11 | } 12 | 13 | module.exports = { 14 | utf8Encode, 15 | utf8DecodeWithoutBOM 16 | }; 17 | -------------------------------------------------------------------------------- /mongo_node/node_modules/whatwg-url/lib/infra.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // Note that we take code points as JS numbers, not JS strings. 4 | 5 | function isASCIIDigit(c) { 6 | return c >= 0x30 && c <= 0x39; 7 | } 8 | 9 | function isASCIIAlpha(c) { 10 | return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A); 11 | } 12 | 13 | function isASCIIAlphanumeric(c) { 14 | return isASCIIAlpha(c) || isASCIIDigit(c); 15 | } 16 | 17 | function isASCIIHex(c) { 18 | return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66); 19 | } 20 | 21 | module.exports = { 22 | isASCIIDigit, 23 | isASCIIAlpha, 24 | isASCIIAlphanumeric, 25 | isASCIIHex 26 | }; 27 | -------------------------------------------------------------------------------- /mongo_node/node_modules/whatwg-url/webidl2js-wrapper.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const URL = require("./lib/URL"); 4 | const URLSearchParams = require("./lib/URLSearchParams"); 5 | 6 | exports.URL = URL; 7 | exports.URLSearchParams = URLSearchParams; 8 | -------------------------------------------------------------------------------- /mongo_node/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mongo_node", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "mongodb": "^5.7.0" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/@types/node/assert/strict.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'assert/strict' { 2 | import { strict } from 'node:assert'; 3 | export = strict; 4 | } 5 | declare module 'node:assert/strict' { 6 | import { strict } from 'node:assert'; 7 | export = strict; 8 | } 9 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/@types/node/constants.d.ts: -------------------------------------------------------------------------------- 1 | /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */ 2 | declare module 'constants' { 3 | import { constants as osConstants, SignalConstants } from 'node:os'; 4 | import { constants as cryptoConstants } from 'node:crypto'; 5 | import { constants as fsConstants } from 'node:fs'; 6 | 7 | const exp: typeof osConstants.errno & 8 | typeof osConstants.priority & 9 | SignalConstants & 10 | typeof cryptoConstants & 11 | typeof fsConstants; 12 | export = exp; 13 | } 14 | 15 | declare module 'node:constants' { 16 | import constants = require('constants'); 17 | export = constants; 18 | } 19 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/@types/node/globals.global.d.ts: -------------------------------------------------------------------------------- 1 | declare var global: typeof globalThis; 2 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/@types/node/stream/consumers.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'stream/consumers' { 2 | import { Blob as NodeBlob } from 'node:buffer'; 3 | import { Readable } from 'node:stream'; 4 | function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 5 | function text(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 6 | function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 7 | function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 8 | function json(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 9 | } 10 | declare module 'node:stream/consumers' { 11 | export * from 'stream/consumers'; 12 | } 13 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/@types/node/ts4.8/assert/strict.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'assert/strict' { 2 | import { strict } from 'node:assert'; 3 | export = strict; 4 | } 5 | declare module 'node:assert/strict' { 6 | import { strict } from 'node:assert'; 7 | export = strict; 8 | } 9 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/@types/node/ts4.8/constants.d.ts: -------------------------------------------------------------------------------- 1 | /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */ 2 | declare module 'constants' { 3 | import { constants as osConstants, SignalConstants } from 'node:os'; 4 | import { constants as cryptoConstants } from 'node:crypto'; 5 | import { constants as fsConstants } from 'node:fs'; 6 | 7 | const exp: typeof osConstants.errno & 8 | typeof osConstants.priority & 9 | SignalConstants & 10 | typeof cryptoConstants & 11 | typeof fsConstants; 12 | export = exp; 13 | } 14 | 15 | declare module 'node:constants' { 16 | import constants = require('constants'); 17 | export = constants; 18 | } 19 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/@types/node/ts4.8/globals.global.d.ts: -------------------------------------------------------------------------------- 1 | declare var global: typeof globalThis; 2 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/@types/node/ts4.8/stream/consumers.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'stream/consumers' { 2 | import { Blob as NodeBlob } from 'node:buffer'; 3 | import { Readable } from 'node:stream'; 4 | function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 5 | function text(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 6 | function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 7 | function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 8 | function json(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; 9 | } 10 | declare module 'node:stream/consumers' { 11 | export * from 'stream/consumers'; 12 | } 13 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/@types/webidl-conversions/README.md: -------------------------------------------------------------------------------- 1 | # Installation 2 | > `npm install --save @types/webidl-conversions` 3 | 4 | # Summary 5 | This package contains type definitions for webidl-conversions (https://github.com/jsdom/webidl-conversions#readme). 6 | 7 | # Details 8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webidl-conversions. 9 | 10 | ### Additional Details 11 | * Last updated: Mon, 29 Aug 2022 23:32:44 GMT 12 | * Dependencies: none 13 | * Global values: none 14 | 15 | # Credits 16 | These definitions were written by [ExE Boss](https://github.com/ExE-Boss), and [BendingBender](https://github.com/BendingBender). 17 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/@types/whatwg-url/README.md: -------------------------------------------------------------------------------- 1 | # Installation 2 | > `npm install --save @types/whatwg-url` 3 | 4 | # Summary 5 | This package contains type definitions for whatwg-url (https://github.com/jsdom/whatwg-url#readme). 6 | 7 | # Details 8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/whatwg-url. 9 | 10 | ### Additional Details 11 | * Last updated: Tue, 21 Jun 2022 16:31:40 GMT 12 | * Dependencies: [@types/webidl-conversions](https://npmjs.com/package/@types/webidl-conversions), [@types/node](https://npmjs.com/package/@types/node) 13 | * Global values: none 14 | 15 | # Credits 16 | These definitions were written by [Alexander Marks](https://github.com/aomarks), and [ExE Boss](https://github.com/ExE-Boss). 17 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/@types/whatwg-url/dist/URL-impl.d.ts: -------------------------------------------------------------------------------- 1 | declare class URLImpl { 2 | constructor( 3 | globalObject: object, 4 | constructorArgs: readonly [url: string, base?: string], 5 | privateData?: {}, 6 | ); 7 | 8 | href: string; 9 | readonly origin: string; 10 | protocol: string; 11 | username: string; 12 | password: string; 13 | host: string; 14 | hostname: string; 15 | port: string; 16 | pathname: string; 17 | search: string; 18 | readonly searchParams: URLSearchParams; 19 | hash: string; 20 | 21 | toJSON(): string; 22 | } 23 | export { URLImpl as implementation }; 24 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/@types/whatwg-url/dist/URLSearchParams-impl.d.ts: -------------------------------------------------------------------------------- 1 | declare class URLSearchParamsImpl { 2 | constructor( 3 | globalObject: object, 4 | constructorArgs: readonly [ 5 | init?: 6 | | ReadonlyArray 7 | | { readonly [name: string]: string } 8 | | string, 9 | ], 10 | privateData: { readonly doNotStripQMark?: boolean | undefined }, 11 | ); 12 | 13 | append(name: string, value: string): void; 14 | delete(name: string): void; 15 | get(name: string): string | null; 16 | getAll(name: string): string[]; 17 | has(name: string): boolean; 18 | set(name: string, value: string): void; 19 | sort(): void; 20 | 21 | [Symbol.iterator](): IterableIterator<[name: string, value: string]>; 22 | } 23 | export { URLSearchParamsImpl as implementation }; 24 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/@types/whatwg-url/webidl2js-wrapper.d.ts: -------------------------------------------------------------------------------- 1 | import * as URL from "./dist/URL"; 2 | import * as URLSearchParams from "./dist/URLSearchParams"; 3 | 4 | export { URL, URLSearchParams }; 5 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/bson/etc/prepare.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | var cp = require('child_process'); 3 | var fs = require('fs'); 4 | 5 | var nodeMajorVersion = +process.version.match(/^v(\d+)\.\d+/)[1]; 6 | 7 | if (fs.existsSync('src') && nodeMajorVersion >= 10) { 8 | cp.spawnSync('npm', ['run', 'build'], { stdio: 'inherit', shell: true }); 9 | } else { 10 | if (!fs.existsSync('lib')) { 11 | console.warn('BSON: No compiled javascript present, the library is not installed correctly.'); 12 | if (nodeMajorVersion < 10) { 13 | console.warn( 14 | 'This library can only be compiled in nodejs version 10 or later, currently running: ' + 15 | nodeMajorVersion 16 | ); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/bson/src/bson_value.ts: -------------------------------------------------------------------------------- 1 | import { BSON_MAJOR_VERSION } from './constants'; 2 | 3 | /** @public */ 4 | export abstract class BSONValue { 5 | /** @public */ 6 | public abstract get _bsontype(): string; 7 | 8 | /** @internal */ 9 | get [Symbol.for('@@mdb.bson.version')](): typeof BSON_MAJOR_VERSION { 10 | return BSON_MAJOR_VERSION; 11 | } 12 | 13 | /** @public */ 14 | public abstract inspect(): string; 15 | 16 | /** @internal */ 17 | abstract toExtendedJSON(): unknown; 18 | } 19 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/bson/src/index.ts: -------------------------------------------------------------------------------- 1 | import * as BSON from './bson'; 2 | 3 | // Export all named properties from BSON to support 4 | // import { ObjectId, serialize } from 'bson'; 5 | // const { ObjectId, serialize } = require('bson'); 6 | export * from './bson'; 7 | 8 | // Export BSON as a namespace to support: 9 | // import { BSON } from 'bson'; 10 | // const { BSON } = require('bson'); 11 | export { BSON }; 12 | 13 | // BSON does **NOT** have a default export 14 | 15 | // The following will crash in es module environments 16 | // import BSON from 'bson'; 17 | 18 | // The following will work as expected, BSON as a namespace of all the APIs (BSON.ObjectId, BSON.serialize) 19 | // const BSON = require('bson'); 20 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/bson/src/max_key.ts: -------------------------------------------------------------------------------- 1 | import { BSONValue } from './bson_value'; 2 | 3 | /** @public */ 4 | export interface MaxKeyExtended { 5 | $maxKey: 1; 6 | } 7 | 8 | /** 9 | * A class representation of the BSON MaxKey type. 10 | * @public 11 | * @category BSONType 12 | */ 13 | export class MaxKey extends BSONValue { 14 | get _bsontype(): 'MaxKey' { 15 | return 'MaxKey'; 16 | } 17 | 18 | /** @internal */ 19 | toExtendedJSON(): MaxKeyExtended { 20 | return { $maxKey: 1 }; 21 | } 22 | 23 | /** @internal */ 24 | static fromExtendedJSON(): MaxKey { 25 | return new MaxKey(); 26 | } 27 | 28 | /** @internal */ 29 | [Symbol.for('nodejs.util.inspect.custom')](): string { 30 | return this.inspect(); 31 | } 32 | 33 | inspect(): string { 34 | return 'new MaxKey()'; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/bson/src/min_key.ts: -------------------------------------------------------------------------------- 1 | import { BSONValue } from './bson_value'; 2 | 3 | /** @public */ 4 | export interface MinKeyExtended { 5 | $minKey: 1; 6 | } 7 | 8 | /** 9 | * A class representation of the BSON MinKey type. 10 | * @public 11 | * @category BSONType 12 | */ 13 | export class MinKey extends BSONValue { 14 | get _bsontype(): 'MinKey' { 15 | return 'MinKey'; 16 | } 17 | 18 | /** @internal */ 19 | toExtendedJSON(): MinKeyExtended { 20 | return { $minKey: 1 }; 21 | } 22 | 23 | /** @internal */ 24 | static fromExtendedJSON(): MinKey { 25 | return new MinKey(); 26 | } 27 | 28 | /** @internal */ 29 | [Symbol.for('nodejs.util.inspect.custom')](): string { 30 | return this.inspect(); 31 | } 32 | 33 | inspect(): string { 34 | return 'new MinKey()'; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/bson/vendor/text-encoding/index.js: -------------------------------------------------------------------------------- 1 | // This is free and unencumbered software released into the public domain. 2 | // See LICENSE.md for more information. 3 | 4 | var encoding = require("./lib/encoding.js"); 5 | 6 | module.exports = { 7 | TextEncoder: encoding.TextEncoder, 8 | TextDecoder: encoding.TextDecoder, 9 | }; 10 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/debug/node_modules/ms/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ms", 3 | "version": "2.1.2", 4 | "description": "Tiny millisecond conversion utility", 5 | "repository": "zeit/ms", 6 | "main": "./index", 7 | "files": [ 8 | "index.js" 9 | ], 10 | "scripts": { 11 | "precommit": "lint-staged", 12 | "lint": "eslint lib/* bin/*", 13 | "test": "mocha tests.js" 14 | }, 15 | "eslintConfig": { 16 | "extends": "eslint:recommended", 17 | "env": { 18 | "node": true, 19 | "es6": true 20 | } 21 | }, 22 | "lint-staged": { 23 | "*.js": [ 24 | "npm run lint", 25 | "prettier --single-quote --write", 26 | "git add" 27 | ] 28 | }, 29 | "license": "MIT", 30 | "devDependencies": { 31 | "eslint": "4.12.1", 32 | "expect.js": "0.3.1", 33 | "husky": "0.14.3", 34 | "lint-staged": "5.0.0", 35 | "mocha": "4.0.1" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/debug/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Detect Electron renderer / nwjs process, which is node, but we should 3 | * treat as a browser. 4 | */ 5 | 6 | if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { 7 | module.exports = require('./browser.js'); 8 | } else { 9 | module.exports = require('./node.js'); 10 | } 11 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/ip/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ip", 3 | "version": "2.0.0", 4 | "author": "Fedor Indutny ", 5 | "homepage": "https://github.com/indutny/node-ip", 6 | "repository": { 7 | "type": "git", 8 | "url": "http://github.com/indutny/node-ip.git" 9 | }, 10 | "files": [ 11 | "lib", 12 | "README.md" 13 | ], 14 | "main": "lib/ip", 15 | "devDependencies": { 16 | "eslint": "^8.15.0", 17 | "mocha": "^10.0.0" 18 | }, 19 | "scripts": { 20 | "lint": "eslint lib/*.js test/*.js", 21 | "test": "npm run lint && mocha --reporter spec test/*-test.js", 22 | "fix": "npm run lint -- --fix" 23 | }, 24 | "license": "MIT" 25 | } 26 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/kareem/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "kareem", 3 | "version": "2.5.1", 4 | "description": "Next-generation take on pre/post function hooks", 5 | "main": "index.js", 6 | "scripts": { 7 | "lint": "eslint .", 8 | "test": "mocha ./test/*", 9 | "test-coverage": "nyc --reporter lcov mocha ./test/*", 10 | "docs": "node ./docs.js" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "git://github.com/vkarpov15/kareem.git" 15 | }, 16 | "devDependencies": { 17 | "acquit": "1.x", 18 | "acquit-ignore": "0.2.x", 19 | "eslint": "8.20.0", 20 | "mocha": "9.2.0", 21 | "nyc": "15.1.0" 22 | }, 23 | "author": "Valeri Karpov ", 24 | "license": "Apache-2.0", 25 | "files": [ 26 | "index.js" 27 | ], 28 | "engines": { 29 | "node": ">=12.0.0" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/memory-pager/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '4' 4 | - '6' 5 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/memory-pager/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "memory-pager", 3 | "version": "1.5.0", 4 | "description": "Access memory using small fixed sized buffers", 5 | "main": "index.js", 6 | "dependencies": {}, 7 | "devDependencies": { 8 | "standard": "^9.0.0", 9 | "tape": "^4.6.3" 10 | }, 11 | "scripts": { 12 | "test": "standard && tape test.js" 13 | }, 14 | "repository": { 15 | "type": "git", 16 | "url": "https://github.com/mafintosh/memory-pager.git" 17 | }, 18 | "author": "Mathias Buus (@mafintosh)", 19 | "license": "MIT", 20 | "bugs": { 21 | "url": "https://github.com/mafintosh/memory-pager/issues" 22 | }, 23 | "homepage": "https://github.com/mafintosh/memory-pager" 24 | } 25 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb-connection-string-url/.esm-wrapper.mjs: -------------------------------------------------------------------------------- 1 | import mod from "./lib/index.js"; 2 | 3 | export default mod["default"]; 4 | export const CommaAndColonSeparatedRecord = mod.CommaAndColonSeparatedRecord; 5 | export const ConnectionString = mod.ConnectionString; 6 | export const redactConnectionString = mod.redactConnectionString; 7 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb-connection-string-url/README.md: -------------------------------------------------------------------------------- 1 | # mongodb-connection-string-url 2 | 3 | MongoDB connection strings, based on the WhatWG URL API 4 | 5 | ```js 6 | import ConnectionString from 'mongodb-connection-string-url'; 7 | 8 | const cs = new ConnectionString('mongodb://localhost'); 9 | cs.searchParams.set('readPreference', 'secondary'); 10 | console.log(cs.href); // 'mongodb://localhost/?readPreference=secondary' 11 | ``` 12 | 13 | ## Deviations from the WhatWG URL package 14 | 15 | - URL parameters are case-insensitive 16 | - The `.host`, `.hostname` and `.port` properties cannot be set, and reading 17 | them does not return meaningful results (and are typed as `never`in TypeScript) 18 | - The `.hosts` property contains a list of all hosts in the connection string 19 | - The `.href` property cannot be set, only read 20 | - There is an additional `.isSRV` property, set to `true` for `mongodb+srv://` 21 | - There is an additional `.clone()` utility method on the prototype 22 | 23 | ## LICENSE 24 | 25 | Apache-2.0 26 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb-connection-string-url/lib/redact.d.ts: -------------------------------------------------------------------------------- 1 | import ConnectionString from './index'; 2 | export interface ConnectionStringRedactionOptions { 3 | redactUsernames?: boolean; 4 | replacementString?: string; 5 | } 6 | export declare function redactValidConnectionString(inputUrl: Readonly, options?: ConnectionStringRedactionOptions): ConnectionString; 7 | export declare function redactConnectionString(uri: string, options?: ConnectionStringRedactionOptions): string; 8 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/etc/prepare.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | var cp = require('child_process'); 3 | var fs = require('fs'); 4 | var os = require('os'); 5 | 6 | if (fs.existsSync('src')) { 7 | cp.spawn('npm', ['run', 'build:dts'], { stdio: 'inherit', shell: os.platform() === 'win32' }); 8 | } else { 9 | if (!fs.existsSync('lib')) { 10 | console.warn('MongoDB: No compiled javascript present, the driver is not installed correctly.'); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/cmap/auth/auth_provider.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"auth_provider.js","sourceRoot":"","sources":["../../../src/cmap/auth/auth_provider.ts"],"names":[],"mappings":";;;AACA,uCAAgD;AAKhD;;;GAGG;AACH,MAAa,WAAW;IAetB,YACE,UAAsB,EACtB,WAAyC,EACzC,OAA0B;QAb5B,8CAA8C;QAC9C,qBAAgB,GAAG,KAAK,CAAC;QAcvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAxBD,kCAwBC;AAED,MAAsB,YAAY;IAChC;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACX,YAA+B,EAC/B,YAAyB;QAEzB,OAAO,YAAY,CAAC;IACtB,CAAC;IASD;;;OAGG;IACH,KAAK,CAAC,MAAM,CAAC,OAAoB;QAC/B,IAAI,OAAO,CAAC,gBAAgB,EAAE;YAC5B,MAAM,IAAI,yBAAiB,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,IAAI;YACF,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;YAChC,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC1B;gBAAS;YACR,OAAO,CAAC,gBAAgB,GAAG,KAAK,CAAC;SAClC;IACH,CAAC;CACF;AApCD,oCAoCC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/aws_service_workflow.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"aws_service_workflow.js","sourceRoot":"","sources":["../../../../src/cmap/auth/mongodb_oidc/aws_service_workflow.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AAEzB,0CAA+C;AAC/C,yDAAqD;AAErD,8DAA8D;AAC9D,MAAM,mBAAmB,GAAG,6DAA6D,CAAC;AAE1F;;;;GAIG;AACH,MAAa,kBAAmB,SAAQ,kCAAe;IACrD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ;QACZ,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;QAC1D,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,qBAAa,CAAC,mBAAmB,CAAC,CAAC;SAC9C;QACD,OAAO,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;CACF;AAfD,gDAeC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_token_cache.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"azure_token_cache.js","sourceRoot":"","sources":["../../../../src/cmap/auth/mongodb_oidc/azure_token_cache.ts"],"names":[],"mappings":";;;AACA,mCAAoD;AAEpD,gBAAgB;AAChB,MAAa,eAAgB,SAAQ,0BAAkB;IAGrD;;OAEG;IACH,YAAY,KAAa,EAAE,UAAkB;QAC3C,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAVD,0CAUC;AAED;;;GAGG;AACH,MAAa,eAAgB,SAAQ,aAAsB;IACzD;;OAEG;IACH,QAAQ,CAAC,aAAqB,EAAE,KAAuB;QACrD,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;QACxE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,aAAqB;QAC5B,OAAO,aAAa,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,aAAqB;QAC/B,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,aAAqB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACzC,CAAC;CACF;AA9BD,0CA8BC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/cache.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"cache.js","sourceRoot":"","sources":["../../../../src/cmap/auth/mongodb_oidc/cache.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAEpC;;GAEG;AACH,MAAsB,kBAAkB;IAGtC;;OAEG;IACH,YAAY,UAAkB;QAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IACpD,CAAC;IACD;;;OAGG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,oBAAoB,CAAC;IAC7D,CAAC;IAED;;OAEG;IACK,cAAc,CAAC,gBAAwB;QAC7C,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,gBAAgB,GAAG,IAAI,CAAC;IAC9C,CAAC;CACF;AAvBD,gDAuBC;AAED;;GAEG;AACH,MAAsB,KAAK;IAGzB;;OAEG;IACH;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,EAAa,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;IAOD;;OAEG;IACH,cAAc,CAAC,OAAe,EAAE,QAAgB,EAAE,YAAoB;QACpE,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF;AA5BD,sBA4BC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/service_workflow.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"service_workflow.js","sourceRoot":"","sources":["../../../../src/cmap/auth/mongodb_oidc/service_workflow.ts"],"names":[],"mappings":";;;AAAA,+BAA2C;AAE3C,0CAAoC;AAIpC,4CAA6C;AAE7C;;;GAGG;AACH,MAAsB,eAAe;IACnC;;;OAGG;IACH,KAAK,CAAC,OAAO,CAAC,UAAsB,EAAE,WAA6B;QACjE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC/C,MAAM,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;QACvC,OAAO,UAAU,CAAC,YAAY,CAAC,IAAA,UAAE,EAAC,WAAW,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,eAAe,CAAC,WAA6B;QACjD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC/C,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;QACxC,QAAQ,CAAC,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC;QACjC,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,CAAC;IAC/C,CAAC;CAMF;AAzBD,0CAyBC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,KAAa;IAC3C,OAAO;QACL,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,yBAAa,CAAC,YAAY;QACrC,OAAO,EAAE,WAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;KACxC,CAAC;AACJ,CAAC;AAND,0CAMC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/cmap/auth/plain.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"plain.js","sourceRoot":"","sources":["../../../src/cmap/auth/plain.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AACpC,uCAA2D;AAC3D,uCAAiC;AACjC,mDAAiE;AAEjE,MAAa,KAAM,SAAQ,4BAAY;IAC5B,KAAK,CAAC,IAAI,CAAC,WAAwB;QAC1C,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,WAAW,CAAC;QAChD,IAAI,CAAC,WAAW,EAAE;YAChB,MAAM,IAAI,oCAA4B,CAAC,uCAAuC,CAAC,CAAC;SACjF;QAED,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,WAAW,CAAC;QAE3C,MAAM,OAAO,GAAG,IAAI,aAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,OAAO,QAAQ,EAAE,CAAC,CAAC,CAAC;QAC1E,MAAM,OAAO,GAAG;YACd,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,OAAO;YAClB,OAAO,EAAE,OAAO;YAChB,aAAa,EAAE,CAAC;SACjB,CAAC;QAEF,MAAM,UAAU,CAAC,YAAY,CAAC,IAAA,UAAE,EAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAC1E,CAAC;CACF;AAnBD,sBAmBC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/cmap/auth/providers.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.AUTH_MECHS_AUTH_SRC_EXTERNAL = exports.AuthMechanism = void 0; 4 | /** @public */ 5 | exports.AuthMechanism = Object.freeze({ 6 | MONGODB_AWS: 'MONGODB-AWS', 7 | MONGODB_CR: 'MONGODB-CR', 8 | MONGODB_DEFAULT: 'DEFAULT', 9 | MONGODB_GSSAPI: 'GSSAPI', 10 | MONGODB_PLAIN: 'PLAIN', 11 | MONGODB_SCRAM_SHA1: 'SCRAM-SHA-1', 12 | MONGODB_SCRAM_SHA256: 'SCRAM-SHA-256', 13 | MONGODB_X509: 'MONGODB-X509', 14 | /** @experimental */ 15 | MONGODB_OIDC: 'MONGODB-OIDC' 16 | }); 17 | /** @internal */ 18 | exports.AUTH_MECHS_AUTH_SRC_EXTERNAL = new Set([ 19 | exports.AuthMechanism.MONGODB_GSSAPI, 20 | exports.AuthMechanism.MONGODB_AWS, 21 | exports.AuthMechanism.MONGODB_OIDC, 22 | exports.AuthMechanism.MONGODB_X509 23 | ]); 24 | //# sourceMappingURL=providers.js.map -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/cmap/auth/providers.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/cmap/auth/providers.ts"],"names":[],"mappings":";;;AAAA,cAAc;AACD,QAAA,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;IACxB,eAAe,EAAE,SAAS;IAC1B,cAAc,EAAE,QAAQ;IACxB,aAAa,EAAE,OAAO;IACtB,kBAAkB,EAAE,aAAa;IACjC,oBAAoB,EAAE,eAAe;IACrC,YAAY,EAAE,cAAc;IAC5B,oBAAoB;IACpB,YAAY,EAAE,cAAc;CACpB,CAAC,CAAC;AAKZ,gBAAgB;AACH,QAAA,4BAA4B,GAAG,IAAI,GAAG,CAAgB;IACjE,qBAAa,CAAC,cAAc;IAC5B,qBAAa,CAAC,WAAW;IACzB,qBAAa,CAAC,YAAY;IAC1B,qBAAa,CAAC,YAAY;CAC3B,CAAC,CAAC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/cmap/wire_protocol/constants.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/cmap/wire_protocol/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,4BAA4B,GAAG,KAAK,CAAC;AACrC,QAAA,4BAA4B,GAAG,KAAK,CAAC;AACrC,QAAA,0BAA0B,GAAG,CAAC,CAAC;AAC/B,QAAA,0BAA0B,GAAG,EAAE,CAAC;AAChC,QAAA,6BAA6B,GAAG,EAAE,CAAC;AACnC,QAAA,+BAA+B,GAAG,KAAK,CAAC;AACxC,QAAA,QAAQ,GAAG,CAAC,CAAC;AACb,QAAA,SAAS,GAAG,IAAI,CAAC;AACjB,QAAA,SAAS,GAAG,IAAI,CAAC;AACjB,QAAA,QAAQ,GAAG,IAAI,CAAC;AAChB,QAAA,SAAS,GAAG,IAAI,CAAC;AACjB,QAAA,aAAa,GAAG,IAAI,CAAC;AACrB,QAAA,MAAM,GAAG,IAAI,CAAC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ListSearchIndexesCursor = void 0; 4 | const aggregation_cursor_1 = require("./aggregation_cursor"); 5 | /** @public */ 6 | class ListSearchIndexesCursor extends aggregation_cursor_1.AggregationCursor { 7 | /** @internal */ 8 | constructor({ fullNamespace: ns, client }, name, options = {}) { 9 | const pipeline = name == null ? [{ $listSearchIndexes: {} }] : [{ $listSearchIndexes: { name } }]; 10 | super(client, ns, pipeline, options); 11 | } 12 | } 13 | exports.ListSearchIndexesCursor = ListSearchIndexesCursor; 14 | //# sourceMappingURL=list_search_indexes_cursor.js.map -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"list_search_indexes_cursor.js","sourceRoot":"","sources":["../../src/cursor/list_search_indexes_cursor.ts"],"names":[],"mappings":";;;AAEA,6DAAyD;AAKzD,cAAc;AACd,MAAa,uBAAwB,SAAQ,sCAAmC;IAC9E,gBAAgB;IAChB,YACE,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,EAAc,EACzC,IAAmB,EACnB,UAAoC,EAAE;QAEtC,MAAM,QAAQ,GACZ,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACnF,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;CACF;AAXD,0DAWC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/explain.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"explain.js","sourceRoot":"","sources":["../src/explain.ts"],"names":[],"mappings":";;;AAAA,mCAAoD;AAEpD,cAAc;AACD,QAAA,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,YAAY,EAAE,cAAc;IAC5B,oBAAoB,EAAE,sBAAsB;IAC5C,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;CAC9B,CAAC,CAAC;AAmBZ,gBAAgB;AAChB,MAAa,OAAO;IAGlB,YAAY,SAA+B;QACzC,IAAI,OAAO,SAAS,KAAK,SAAS,EAAE;YAClC,IAAI,CAAC,SAAS,GAAG,SAAS;gBACxB,CAAC,CAAC,wBAAgB,CAAC,iBAAiB;gBACpC,CAAC,CAAC,wBAAgB,CAAC,YAAY,CAAC;SACnC;aAAM;YACL,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;SAC5B;IACH,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,OAAwB;QACzC,IAAI,OAAO,EAAE,OAAO,IAAI,IAAI;YAAE,OAAO;QAErC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAChC,IAAI,OAAO,OAAO,KAAK,SAAS,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YAC/D,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;SAC7B;QAED,MAAM,IAAI,iCAAyB,CAAC,+CAA+C,CAAC,CAAC;IACvF,CAAC;CACF;AAvBD,0BAuBC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/mongo_types.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CancellationToken = exports.TypedEventEmitter = void 0; 4 | const events_1 = require("events"); 5 | /** 6 | * Typescript type safe event emitter 7 | * @public 8 | */ 9 | class TypedEventEmitter extends events_1.EventEmitter { 10 | /** @internal */ 11 | emitAndLog(event, ...args) { 12 | this.emit(event, ...args); 13 | if (this.component) 14 | this.mongoLogger?.debug(this.component, args[0]); 15 | } 16 | } 17 | exports.TypedEventEmitter = TypedEventEmitter; 18 | /** @public */ 19 | class CancellationToken extends TypedEventEmitter { 20 | } 21 | exports.CancellationToken = CancellationToken; 22 | //# sourceMappingURL=mongo_types.js.map -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/mongo_types.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"mongo_types.js","sourceRoot":"","sources":["../src/mongo_types.ts"],"names":[],"mappings":";;;AACA,mCAAsC;AA2YtC;;;GAGG;AAEH,MAAa,iBAAoD,SAAQ,qBAAY;IAKnF,gBAAgB;IACN,UAAU,CAClB,KAAwB,EACxB,GAAG,IAAkC;QAErC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;QAC1B,IAAI,IAAI,CAAC,SAAS;YAAE,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACvE,CAAC;CACF;AAbD,8CAaC;AAED,cAAc;AACd,MAAa,iBAAkB,SAAQ,iBAAqC;CAAG;AAA/E,8CAA+E"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/operations/collections.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/operations/collections.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAK3C,2CAA+E;AAM/E,gBAAgB;AAChB,MAAa,oBAAqB,SAAQ,qCAAuC;IAI/E,YAAY,EAAM,EAAE,OAA2B;QAC7C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,CAAC;IAEQ,eAAe,CACtB,MAAc,EACd,OAAkC,EAClC,QAAgC;QAEhC,iCAAiC;QACjC,IAAI,CAAC,EAAE;aACJ,eAAe,CACd,EAAE,EACF,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE,CAClF;aACA,OAAO,EAAE;aACT,IAAI,CACH,SAAS,CAAC,EAAE;YACV,MAAM,WAAW,GAAG,EAAE,CAAC;YACvB,KAAK,MAAM,EAAE,IAAI,EAAE,IAAI,SAAS,EAAE;gBAChC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;oBACvB,+CAA+C;oBAC/C,WAAW,CAAC,IAAI,CAAC,IAAI,uBAAU,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;iBACpE;aACF;YACD,gCAAgC;YAChC,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QACnC,CAAC,EACD,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CACzB,CAAC;IACN,CAAC;CACF;AArCD,oDAqCC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/operations/is_capped.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"is_capped.js","sourceRoot":"","sources":["../../src/operations/is_capped.ts"],"names":[],"mappings":";;;AACA,oCAAyC;AAIzC,2CAA+E;AAE/E,gBAAgB;AAChB,MAAa,iBAAkB,SAAQ,qCAAkC;IAIvE,YAAY,UAAsB,EAAE,OAAyB;QAC3D,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAEQ,eAAe,CACtB,MAAc,EACd,OAAkC,EAClC,QAA2B;QAE3B,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC;QAE7B,IAAI,CAAC,CAAC,CAAC,EAAE;aACN,eAAe,CACd,EAAE,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,EAC7B,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE,CACnF;aACA,OAAO,EAAE;aACT,IAAI,CACH,WAAW,CAAC,EAAE;YACZ,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC5B,kBAAkB;gBAClB,OAAO,QAAQ,CAAC,IAAI,qBAAa,CAAC,cAAc,IAAI,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC;aAC9E;YAED,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACxD,CAAC,EACD,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CACzB,CAAC;IACN,CAAC;CACF;AAnCD,8CAmCC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/operations/kill_cursors.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"kill_cursors.js","sourceRoot":"","sources":["../../src/operations/kill_cursors.ts"],"names":[],"mappings":";;;AACA,oCAA6C;AAI7C,2CAKqB;AAYrB,MAAa,oBAAqB,SAAQ,qCAAyB;IAGjE,YAAY,QAAc,EAAE,EAAoB,EAAE,MAAc,EAAE,OAAyB;QACzF,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,eAAe,CACb,MAAc,EACd,OAAkC,EAClC,QAAwB;QAExB,IAAI,MAAM,KAAK,IAAI,CAAC,MAAM,EAAE;YAC1B,OAAO,QAAQ,CACb,IAAI,yBAAiB,CAAC,2DAA2D,CAAC,CACnF,CAAC;SACH;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC;QACvC,IAAI,WAAW,IAAI,IAAI,EAAE;YACvB,gEAAgE;YAChE,wFAAwF;YACxF,OAAO,QAAQ,CACb,IAAI,yBAAiB,CAAC,yDAAyD,CAAC,CACjF,CAAC;SACH;QAED,MAAM,kBAAkB,GAAuB;YAC7C,WAAW;YACX,OAAO,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;SACzB,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AArCD,oDAqCC;AAED,IAAA,yBAAa,EAAC,oBAAoB,EAAE,CAAC,kBAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/operations/options_operation.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"options_operation.js","sourceRoot":"","sources":["../../src/operations/options_operation.ts"],"names":[],"mappings":";;;AAEA,oCAAyC;AAIzC,2CAA+E;AAE/E,gBAAgB;AAChB,MAAa,gBAAiB,SAAQ,qCAAmC;IAIvE,YAAY,UAAsB,EAAE,OAAyB;QAC3D,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAEQ,eAAe,CACtB,MAAc,EACd,OAAkC,EAClC,QAA4B;QAE5B,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC;QAE7B,IAAI,CAAC,CAAC,CAAC,EAAE;aACN,eAAe,CACd,EAAE,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,EAC7B,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE,CACnF;aACA,OAAO,EAAE;aACT,IAAI,CACH,WAAW,CAAC,EAAE;YACZ,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC5B,kBAAkB;gBAClB,OAAO,QAAQ,CAAC,IAAI,qBAAa,CAAC,cAAc,IAAI,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC;aAC9E;YAED,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC9C,CAAC,EACD,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CACzB,CAAC;IACN,CAAC;CACF;AAnCD,4CAmCC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/operations/remove_user.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.RemoveUserOperation = void 0; 4 | const command_1 = require("./command"); 5 | const operation_1 = require("./operation"); 6 | /** @internal */ 7 | class RemoveUserOperation extends command_1.CommandOperation { 8 | constructor(db, username, options) { 9 | super(db, options); 10 | this.options = options; 11 | this.username = username; 12 | } 13 | executeCallback(server, session, callback) { 14 | super.executeCommand(server, session, { dropUser: this.username }, err => { 15 | callback(err, err ? false : true); 16 | }); 17 | } 18 | } 19 | exports.RemoveUserOperation = RemoveUserOperation; 20 | (0, operation_1.defineAspects)(RemoveUserOperation, [operation_1.Aspect.WRITE_OPERATION]); 21 | //# sourceMappingURL=remove_user.js.map -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/operations/remove_user.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"remove_user.js","sourceRoot":"","sources":["../../src/operations/remove_user.ts"],"names":[],"mappings":";;;AAIA,uCAA2E;AAC3E,2CAAoD;AAKpD,gBAAgB;AAChB,MAAa,mBAAoB,SAAQ,0BAAyB;IAIhE,YAAY,EAAM,EAAE,QAAgB,EAAE,OAA0B;QAC9D,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEQ,eAAe,CACtB,MAAc,EACd,OAAkC,EAClC,QAA2B;QAE3B,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,GAAG,CAAC,EAAE;YACvE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAnBD,kDAmBC;AAED,IAAA,yBAAa,EAAC,mBAAmB,EAAE,CAAC,kBAAM,CAAC,eAAe,CAAC,CAAC,CAAC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/operations/run_command.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"run_command.js","sourceRoot":"","sources":["../../src/operations/run_command.ts"],"names":[],"mappings":";;;AAIA,oCAA2D;AAC3D,uCAAmE;AAyCnE,gBAAgB;AAChB,MAAa,mBAAkC,SAAQ,0BAAmB;IAIxE,YAAY,MAAmC,EAAE,OAAiB,EAAE,OAA2B;QAC7F,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAEQ,eAAe,CACtB,MAAc,EACd,OAAkC,EAClC,QAAqB;QAErB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC7B,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC1D,CAAC;CACF;AAlBD,kDAkBC;AAED,MAAa,wBAAuC,SAAQ,mBAAsB;IAChF,YAAY,MAAmC,EAAE,OAAiB,EAAE,OAA2B;QAC7F,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAChC,IAAI,CAAC,EAAE,GAAG,IAAI,wBAAgB,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;CACF;AALD,4DAKC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/operations/search_indexes/create.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/operations/search_indexes/create.ts"],"names":[],"mappings":";;;AAMA,4CAAyD;AAazD,gBAAgB;AAChB,MAAa,4BAA6B,SAAQ,qCAAmC;IACnF,YACmB,UAAsB,EACtB,YAAmD;QAEpE,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,iBAAY,GAAZ,YAAY,CAAuC;IAGtE,CAAC;IAED,eAAe,CACb,MAAc,EACd,OAAkC,EAClC,QAA4B;QAE5B,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;QAChD,MAAM,OAAO,GAAG;YACd,mBAAmB,EAAE,SAAS,CAAC,UAAU;YACzC,OAAO,EAAE,IAAI,CAAC,YAAY;SAC3B,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAC3D,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE;gBACf,QAAQ,CAAC,GAAG,CAAC,CAAC;gBACd,OAAO;aACR;YAED,MAAM,cAAc,GAA4B,GAAG,EAAE,cAAc,IAAI,EAAE,CAAC;YAE1E,QAAQ,CACN,SAAS,EACT,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CACvC,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAjCD,oEAiCC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/operations/search_indexes/drop.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"drop.js","sourceRoot":"","sources":["../../../src/operations/search_indexes/drop.ts"],"names":[],"mappings":";;;AAMA,4CAAyD;AAEzD,gBAAgB;AAChB,MAAa,wBAAyB,SAAQ,qCAA+B;IAC3E,YAA6B,UAAsB,EAAmB,IAAY;QAChF,KAAK,EAAE,CAAC;QADmB,eAAU,GAAV,UAAU,CAAY;QAAmB,SAAI,GAAJ,IAAI,CAAQ;IAElF,CAAC;IAED,eAAe,CACb,MAAc,EACd,OAAkC,EAClC,QAAwB;QAExB,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;QAEhD,MAAM,OAAO,GAAa;YACxB,eAAe,EAAE,SAAS,CAAC,UAAU;SACtC,CAAC;QAEF,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;YACjC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;SAC1B;QAED,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,CAAC,EAAE;YACpD,IAAI,GAAG,EAAE;gBACP,QAAQ,CAAC,GAAG,CAAC,CAAC;gBACd,OAAO;aACR;YAED,QAAQ,EAAE,CAAC;QACb,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA7BD,4DA6BC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/lib/operations/search_indexes/update.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/operations/search_indexes/update.ts"],"names":[],"mappings":";;;AAMA,4CAAyD;AAEzD,gBAAgB;AAChB,MAAa,0BAA2B,SAAQ,qCAA+B;IAC7E,YACmB,UAAsB,EACtB,IAAY,EACZ,UAAoB;QAErC,KAAK,EAAE,CAAC;QAJS,eAAU,GAAV,UAAU,CAAY;QACtB,SAAI,GAAJ,IAAI,CAAQ;QACZ,eAAU,GAAV,UAAU,CAAU;IAGvC,CAAC;IAED,eAAe,CACb,MAAc,EACd,OAAkC,EAClC,QAAwB;QAExB,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;QAChD,MAAM,OAAO,GAAG;YACd,iBAAiB,EAAE,SAAS,CAAC,UAAU;YACvC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,CAAC,EAAE;YACpD,IAAI,GAAG,EAAE;gBACP,QAAQ,CAAC,GAAG,CAAC,CAAC;gBACd,OAAO;aACR;YAED,QAAQ,EAAE,CAAC;QACb,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA9BD,gEA8BC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/src/cmap/auth/mongodb_oidc/aws_service_workflow.ts: -------------------------------------------------------------------------------- 1 | import * as fs from 'fs'; 2 | 3 | import { MongoAWSError } from '../../../error'; 4 | import { ServiceWorkflow } from './service_workflow'; 5 | 6 | /** Error for when the token is missing in the environment. */ 7 | const TOKEN_MISSING_ERROR = 'AWS_WEB_IDENTITY_TOKEN_FILE must be set in the environment.'; 8 | 9 | /** 10 | * Device workflow implementation for AWS. 11 | * 12 | * @internal 13 | */ 14 | export class AwsServiceWorkflow extends ServiceWorkflow { 15 | constructor() { 16 | super(); 17 | } 18 | 19 | /** 20 | * Get the token from the environment. 21 | */ 22 | async getToken(): Promise { 23 | const tokenFile = process.env.AWS_WEB_IDENTITY_TOKEN_FILE; 24 | if (!tokenFile) { 25 | throw new MongoAWSError(TOKEN_MISSING_ERROR); 26 | } 27 | return fs.promises.readFile(tokenFile, 'utf8'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/src/cmap/auth/plain.ts: -------------------------------------------------------------------------------- 1 | import { Binary } from '../../bson'; 2 | import { MongoMissingCredentialsError } from '../../error'; 3 | import { ns } from '../../utils'; 4 | import { type AuthContext, AuthProvider } from './auth_provider'; 5 | 6 | export class Plain extends AuthProvider { 7 | override async auth(authContext: AuthContext): Promise { 8 | const { connection, credentials } = authContext; 9 | if (!credentials) { 10 | throw new MongoMissingCredentialsError('AuthContext must provide credentials.'); 11 | } 12 | 13 | const { username, password } = credentials; 14 | 15 | const payload = new Binary(Buffer.from(`\x00${username}\x00${password}`)); 16 | const command = { 17 | saslStart: 1, 18 | mechanism: 'PLAIN', 19 | payload: payload, 20 | autoAuthorize: 1 21 | }; 22 | 23 | await connection.commandAsync(ns('$external.$cmd'), command, undefined); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/src/cmap/auth/providers.ts: -------------------------------------------------------------------------------- 1 | /** @public */ 2 | export const AuthMechanism = Object.freeze({ 3 | MONGODB_AWS: 'MONGODB-AWS', 4 | MONGODB_CR: 'MONGODB-CR', 5 | MONGODB_DEFAULT: 'DEFAULT', 6 | MONGODB_GSSAPI: 'GSSAPI', 7 | MONGODB_PLAIN: 'PLAIN', 8 | MONGODB_SCRAM_SHA1: 'SCRAM-SHA-1', 9 | MONGODB_SCRAM_SHA256: 'SCRAM-SHA-256', 10 | MONGODB_X509: 'MONGODB-X509', 11 | /** @experimental */ 12 | MONGODB_OIDC: 'MONGODB-OIDC' 13 | } as const); 14 | 15 | /** @public */ 16 | export type AuthMechanism = (typeof AuthMechanism)[keyof typeof AuthMechanism]; 17 | 18 | /** @internal */ 19 | export const AUTH_MECHS_AUTH_SRC_EXTERNAL = new Set([ 20 | AuthMechanism.MONGODB_GSSAPI, 21 | AuthMechanism.MONGODB_AWS, 22 | AuthMechanism.MONGODB_OIDC, 23 | AuthMechanism.MONGODB_X509 24 | ]); 25 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/src/cmap/wire_protocol/constants.ts: -------------------------------------------------------------------------------- 1 | export const MIN_SUPPORTED_SERVER_VERSION = '3.6'; 2 | export const MAX_SUPPORTED_SERVER_VERSION = '7.0'; 3 | export const MIN_SUPPORTED_WIRE_VERSION = 6; 4 | export const MAX_SUPPORTED_WIRE_VERSION = 21; 5 | export const MIN_SUPPORTED_QE_WIRE_VERSION = 21; 6 | export const MIN_SUPPORTED_QE_SERVER_VERSION = '7.0'; 7 | export const OP_REPLY = 1; 8 | export const OP_UPDATE = 2001; 9 | export const OP_INSERT = 2002; 10 | export const OP_QUERY = 2004; 11 | export const OP_DELETE = 2006; 12 | export const OP_COMPRESSED = 2012; 13 | export const OP_MSG = 2013; 14 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongodb/src/cursor/list_search_indexes_cursor.ts: -------------------------------------------------------------------------------- 1 | import type { Collection } from '../collection'; 2 | import type { AggregateOptions } from '../operations/aggregate'; 3 | import { AggregationCursor } from './aggregation_cursor'; 4 | 5 | /** @public */ 6 | export type ListSearchIndexesOptions = AggregateOptions; 7 | 8 | /** @public */ 9 | export class ListSearchIndexesCursor extends AggregationCursor<{ name: string }> { 10 | /** @internal */ 11 | constructor( 12 | { fullNamespace: ns, client }: Collection, 13 | name: string | null, 14 | options: ListSearchIndexesOptions = {} 15 | ) { 16 | const pipeline = 17 | name == null ? [{ $listSearchIndexes: {} }] : [{ $listSearchIndexes: { name } }]; 18 | super(client, ns, pipeline, options); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/.mocharc.yml: -------------------------------------------------------------------------------- 1 | reporter: spec # better to identify failing / slow tests than "dot" 2 | ui: bdd # explicitly setting, even though it is mocha default 3 | require: 4 | - test/mocha-fixtures.js 5 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/SECURITY.md: -------------------------------------------------------------------------------- 1 | Please follow the instructions on [Tidelift's security page](https://tidelift.com/docs/security) to report a security issue. 2 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/browser.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Export lib/mongoose 3 | * 4 | */ 5 | 6 | 'use strict'; 7 | 8 | module.exports = require('./lib/browser'); 9 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lgtm.yml: -------------------------------------------------------------------------------- 1 | path_classifiers: 2 | src: 3 | - lib 4 | types: 5 | - types 6 | test: 7 | - test 8 | docs: 9 | - docs 10 | queries: 11 | - exclude: "*" 12 | - include: lib -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/cast/bigint.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const assert = require('assert'); 4 | 5 | /** 6 | * Given a value, cast it to a BigInt, or throw an `Error` if the value 7 | * cannot be casted. `null` and `undefined` are considered valid. 8 | * 9 | * @param {Any} value 10 | * @return {Number} 11 | * @throws {Error} if `value` is not one of the allowed values 12 | * @api private 13 | */ 14 | 15 | module.exports = function castBigInt(val) { 16 | if (val == null) { 17 | return val; 18 | } 19 | if (val === '') { 20 | return null; 21 | } 22 | if (typeof val === 'bigint') { 23 | return val; 24 | } 25 | 26 | if (typeof val === 'string' || typeof val === 'number') { 27 | return BigInt(val); 28 | } 29 | 30 | assert.ok(false); 31 | }; 32 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/cast/boolean.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const CastError = require('../error/cast'); 4 | 5 | /** 6 | * Given a value, cast it to a boolean, or throw a `CastError` if the value 7 | * cannot be casted. `null` and `undefined` are considered valid. 8 | * 9 | * @param {Any} value 10 | * @param {String} [path] optional the path to set on the CastError 11 | * @return {Boolean|null|undefined} 12 | * @throws {CastError} if `value` is not one of the allowed values 13 | * @api private 14 | */ 15 | 16 | module.exports = function castBoolean(value, path) { 17 | if (module.exports.convertToTrue.has(value)) { 18 | return true; 19 | } 20 | if (module.exports.convertToFalse.has(value)) { 21 | return false; 22 | } 23 | 24 | if (value == null) { 25 | return value; 26 | } 27 | 28 | throw new CastError('boolean', value, path); 29 | }; 30 | 31 | module.exports.convertToTrue = new Set([true, 'true', 1, '1', 'yes']); 32 | module.exports.convertToFalse = new Set([false, 'false', 0, '0', 'no']); 33 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/cast/objectid.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const isBsonType = require('../helpers/isBsonType'); 4 | const ObjectId = require('../types/objectid'); 5 | 6 | module.exports = function castObjectId(value) { 7 | if (value == null) { 8 | return value; 9 | } 10 | 11 | if (isBsonType(value, 'ObjectId')) { 12 | return value; 13 | } 14 | 15 | if (value._id) { 16 | if (isBsonType(value._id, 'ObjectId')) { 17 | return value._id; 18 | } 19 | if (value._id.toString instanceof Function) { 20 | return new ObjectId(value._id.toString()); 21 | } 22 | } 23 | 24 | if (value.toString instanceof Function) { 25 | return new ObjectId(value.toString()); 26 | } 27 | 28 | return new ObjectId(value); 29 | }; 30 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/connectionstate.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Connection states 4 | */ 5 | 6 | 'use strict'; 7 | 8 | const STATES = module.exports = exports = Object.create(null); 9 | 10 | const disconnected = 'disconnected'; 11 | const connected = 'connected'; 12 | const connecting = 'connecting'; 13 | const disconnecting = 'disconnecting'; 14 | const uninitialized = 'uninitialized'; 15 | 16 | STATES[0] = disconnected; 17 | STATES[1] = connected; 18 | STATES[2] = connecting; 19 | STATES[3] = disconnecting; 20 | STATES[99] = uninitialized; 21 | 22 | STATES[disconnected] = 0; 23 | STATES[connected] = 1; 24 | STATES[connecting] = 2; 25 | STATES[disconnecting] = 3; 26 | STATES[uninitialized] = 99; 27 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/document_provider.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* eslint-env browser */ 4 | 5 | /*! 6 | * Module dependencies. 7 | */ 8 | const Document = require('./document.js'); 9 | const BrowserDocument = require('./browserDocument.js'); 10 | 11 | let isBrowser = false; 12 | 13 | /** 14 | * Returns the Document constructor for the current context 15 | * 16 | * @api private 17 | */ 18 | module.exports = function() { 19 | if (isBrowser) { 20 | return BrowserDocument; 21 | } 22 | return Document; 23 | }; 24 | 25 | /*! 26 | * ignore 27 | */ 28 | module.exports.setBrowser = function(flag) { 29 | isBrowser = flag; 30 | }; 31 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/driver.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | let driver = null; 8 | 9 | module.exports.get = function() { 10 | return driver; 11 | }; 12 | 13 | module.exports.set = function(v) { 14 | driver = v; 15 | }; 16 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/drivers/SPEC.md: -------------------------------------------------------------------------------- 1 | 2 | # Driver Spec 3 | 4 | TODO 5 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/drivers/browser/binary.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | 'use strict'; 7 | 8 | const Binary = require('bson').Binary; 9 | 10 | /*! 11 | * Module exports. 12 | */ 13 | 14 | module.exports = exports = Binary; 15 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/drivers/browser/decimal128.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ignore 3 | */ 4 | 5 | 'use strict'; 6 | 7 | module.exports = require('bson').Decimal128; 8 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/drivers/browser/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module exports. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | exports.Collection = function() { 8 | throw new Error('Cannot create a collection from browser library'); 9 | }; 10 | exports.Connection = function() { 11 | throw new Error('Cannot create a connection from browser library'); 12 | }; 13 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/drivers/browser/objectid.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * [node-mongodb-native](https://github.com/mongodb/node-mongodb-native) ObjectId 4 | * @constructor NodeMongoDbObjectId 5 | * @see ObjectId 6 | */ 7 | 8 | 'use strict'; 9 | 10 | const ObjectId = require('bson').ObjectID; 11 | 12 | /** 13 | * Getter for convenience with populate, see gh-6115 14 | * @api private 15 | */ 16 | 17 | Object.defineProperty(ObjectId.prototype, '_id', { 18 | enumerable: false, 19 | configurable: true, 20 | get: function() { 21 | return this; 22 | } 23 | }); 24 | 25 | /*! 26 | * ignore 27 | */ 28 | 29 | module.exports = exports = ObjectId; 30 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/drivers/node-mongodb-native/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module exports. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | exports.Collection = require('./collection'); 8 | exports.Connection = require('./connection'); 9 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/browserMissingSchema.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module dependencies. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | const MongooseError = require('./'); 8 | 9 | 10 | class MissingSchemaError extends MongooseError { 11 | /** 12 | * MissingSchema Error constructor. 13 | */ 14 | constructor() { 15 | super('Schema hasn\'t been registered for document.\n' 16 | + 'Use mongoose.Document(name, schema)'); 17 | } 18 | } 19 | 20 | Object.defineProperty(MissingSchemaError.prototype, 'name', { 21 | value: 'MongooseError' 22 | }); 23 | 24 | /*! 25 | * exports 26 | */ 27 | 28 | module.exports = MissingSchemaError; 29 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/createCollectionsError.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const MongooseError = require('./mongooseError'); 4 | 5 | /** 6 | * createCollections Error constructor 7 | * 8 | * @param {String} message 9 | * @param {String} errorsMap 10 | * @inherits MongooseError 11 | * @api private 12 | */ 13 | 14 | class CreateCollectionsError extends MongooseError { 15 | constructor(message, errorsMap) { 16 | super(message); 17 | this.errors = errorsMap; 18 | } 19 | } 20 | 21 | Object.defineProperty(CreateCollectionsError.prototype, 'name', { 22 | value: 'CreateCollectionsError' 23 | }); 24 | 25 | module.exports = CreateCollectionsError; 26 | 27 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/invalidSchemaOption.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | 'use strict'; 7 | 8 | const MongooseError = require('./'); 9 | 10 | class InvalidSchemaOptionError extends MongooseError { 11 | /** 12 | * InvalidSchemaOption Error constructor. 13 | * @param {String} name 14 | * @api private 15 | */ 16 | constructor(name, option) { 17 | const msg = `Cannot create use schema for property "${name}" because the schema has the ${option} option enabled.`; 18 | super(msg); 19 | } 20 | } 21 | 22 | Object.defineProperty(InvalidSchemaOptionError.prototype, 'name', { 23 | value: 'InvalidSchemaOptionError' 24 | }); 25 | 26 | /*! 27 | * exports 28 | */ 29 | 30 | module.exports = InvalidSchemaOptionError; 31 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/missingSchema.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | 'use strict'; 7 | 8 | const MongooseError = require('./'); 9 | 10 | class MissingSchemaError extends MongooseError { 11 | /** 12 | * MissingSchema Error constructor. 13 | * @param {String} name 14 | * @api private 15 | */ 16 | constructor(name) { 17 | const msg = 'Schema hasn\'t been registered for model "' + name + '".\n' 18 | + 'Use mongoose.model(name, schema)'; 19 | super(msg); 20 | } 21 | } 22 | 23 | Object.defineProperty(MissingSchemaError.prototype, 'name', { 24 | value: 'MissingSchemaError' 25 | }); 26 | 27 | /*! 28 | * exports 29 | */ 30 | 31 | module.exports = MissingSchemaError; 32 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/mongooseError.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | class MongooseError extends Error { } 8 | 9 | Object.defineProperty(MongooseError.prototype, 'name', { 10 | value: 'MongooseError' 11 | }); 12 | 13 | module.exports = MongooseError; 14 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/objectExpected.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module dependencies. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | const MongooseError = require('./'); 8 | 9 | 10 | class ObjectExpectedError extends MongooseError { 11 | /** 12 | * Strict mode error constructor 13 | * 14 | * @param {string} type 15 | * @param {string} value 16 | * @api private 17 | */ 18 | constructor(path, val) { 19 | const typeDescription = Array.isArray(val) ? 'array' : 'primitive value'; 20 | super('Tried to set nested object field `' + path + 21 | `\` to ${typeDescription} \`` + val + '`'); 22 | this.path = path; 23 | } 24 | } 25 | 26 | Object.defineProperty(ObjectExpectedError.prototype, 'name', { 27 | value: 'ObjectExpectedError' 28 | }); 29 | 30 | module.exports = ObjectExpectedError; 31 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/objectParameter.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module dependencies. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | const MongooseError = require('./'); 8 | 9 | class ObjectParameterError extends MongooseError { 10 | /** 11 | * Constructor for errors that happen when a parameter that's expected to be 12 | * an object isn't an object 13 | * 14 | * @param {Any} value 15 | * @param {String} paramName 16 | * @param {String} fnName 17 | * @api private 18 | */ 19 | constructor(value, paramName, fnName) { 20 | super('Parameter "' + paramName + '" to ' + fnName + 21 | '() must be an object, got "' + value.toString() + '" (type ' + typeof value + ')'); 22 | } 23 | } 24 | 25 | 26 | Object.defineProperty(ObjectParameterError.prototype, 'name', { 27 | value: 'ObjectParameterError' 28 | }); 29 | 30 | module.exports = ObjectParameterError; 31 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/overwriteModel.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | 'use strict'; 7 | 8 | const MongooseError = require('./'); 9 | 10 | 11 | class OverwriteModelError extends MongooseError { 12 | /** 13 | * OverwriteModel Error constructor. 14 | * @param {String} name 15 | * @api private 16 | */ 17 | constructor(name) { 18 | super('Cannot overwrite `' + name + '` model once compiled.'); 19 | } 20 | } 21 | 22 | Object.defineProperty(OverwriteModelError.prototype, 'name', { 23 | value: 'OverwriteModelError' 24 | }); 25 | 26 | /*! 27 | * exports 28 | */ 29 | 30 | module.exports = OverwriteModelError; 31 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/parallelSave.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * Module dependencies. 5 | */ 6 | 7 | const MongooseError = require('./'); 8 | 9 | class ParallelSaveError extends MongooseError { 10 | /** 11 | * ParallelSave Error constructor. 12 | * 13 | * @param {Document} doc 14 | * @api private 15 | */ 16 | constructor(doc) { 17 | const msg = 'Can\'t save() the same doc multiple times in parallel. Document: '; 18 | super(msg + doc._id); 19 | } 20 | } 21 | 22 | Object.defineProperty(ParallelSaveError.prototype, 'name', { 23 | value: 'ParallelSaveError' 24 | }); 25 | 26 | /*! 27 | * exports 28 | */ 29 | 30 | module.exports = ParallelSaveError; 31 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/parallelValidate.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * Module dependencies. 5 | */ 6 | 7 | const MongooseError = require('./mongooseError'); 8 | 9 | 10 | class ParallelValidateError extends MongooseError { 11 | /** 12 | * ParallelValidate Error constructor. 13 | * 14 | * @param {Document} doc 15 | * @api private 16 | */ 17 | constructor(doc) { 18 | const msg = 'Can\'t validate() the same doc multiple times in parallel. Document: '; 19 | super(msg + doc._id); 20 | } 21 | } 22 | 23 | Object.defineProperty(ParallelValidateError.prototype, 'name', { 24 | value: 'ParallelValidateError' 25 | }); 26 | 27 | /*! 28 | * exports 29 | */ 30 | 31 | module.exports = ParallelValidateError; 32 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/strict.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module dependencies. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | const MongooseError = require('./'); 8 | 9 | 10 | class StrictModeError extends MongooseError { 11 | /** 12 | * Strict mode error constructor 13 | * 14 | * @param {String} path 15 | * @param {String} [msg] 16 | * @param {Boolean} [immutable] 17 | * @inherits MongooseError 18 | * @api private 19 | */ 20 | constructor(path, msg, immutable) { 21 | msg = msg || 'Field `' + path + '` is not in schema and strict ' + 22 | 'mode is set to throw.'; 23 | super(msg); 24 | this.isImmutableError = !!immutable; 25 | this.path = path; 26 | } 27 | } 28 | 29 | Object.defineProperty(StrictModeError.prototype, 'name', { 30 | value: 'StrictModeError' 31 | }); 32 | 33 | module.exports = StrictModeError; 34 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/strictPopulate.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module dependencies. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | const MongooseError = require('./'); 8 | 9 | class StrictPopulateError extends MongooseError { 10 | /** 11 | * Strict mode error constructor 12 | * 13 | * @param {String} path 14 | * @param {String} [msg] 15 | * @inherits MongooseError 16 | * @api private 17 | */ 18 | constructor(path, msg) { 19 | msg = msg || 'Cannot populate path `' + path + '` because it is not in your schema. ' + 'Set the `strictPopulate` option to false to override.'; 20 | super(msg); 21 | this.path = path; 22 | } 23 | } 24 | 25 | Object.defineProperty(StrictPopulateError.prototype, 'name', { 26 | value: 'StrictPopulateError' 27 | }); 28 | 29 | module.exports = StrictPopulateError; 30 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/syncIndexes.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * Module dependencies. 5 | */ 6 | 7 | const MongooseError = require('./mongooseError'); 8 | 9 | /** 10 | * SyncIndexes Error constructor. 11 | * 12 | * @param {String} message 13 | * @param {String} errorsMap 14 | * @inherits MongooseError 15 | * @api private 16 | */ 17 | 18 | class SyncIndexesError extends MongooseError { 19 | constructor(message, errorsMap) { 20 | super(message); 21 | this.errors = errorsMap; 22 | } 23 | } 24 | 25 | Object.defineProperty(SyncIndexesError.prototype, 'name', { 26 | value: 'SyncIndexesError' 27 | }); 28 | 29 | 30 | module.exports = SyncIndexesError; 31 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/error/version.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * Module dependencies. 5 | */ 6 | 7 | const MongooseError = require('./'); 8 | 9 | class VersionError extends MongooseError { 10 | /** 11 | * Version Error constructor. 12 | * 13 | * @param {Document} doc 14 | * @param {Number} currentVersion 15 | * @param {Array} modifiedPaths 16 | * @api private 17 | */ 18 | constructor(doc, currentVersion, modifiedPaths) { 19 | const modifiedPathsStr = modifiedPaths.join(', '); 20 | super('No matching document found for id "' + doc._id + 21 | '" version ' + currentVersion + ' modifiedPaths "' + modifiedPathsStr + '"'); 22 | this.version = currentVersion; 23 | this.modifiedPaths = modifiedPaths; 24 | } 25 | } 26 | 27 | 28 | Object.defineProperty(VersionError.prototype, 'name', { 29 | value: 'VersionError' 30 | }); 31 | 32 | /*! 33 | * exports 34 | */ 35 | 36 | module.exports = VersionError; 37 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/arrayDepth.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = arrayDepth; 4 | 5 | function arrayDepth(arr) { 6 | if (!Array.isArray(arr)) { 7 | return { min: 0, max: 0, containsNonArrayItem: true }; 8 | } 9 | if (arr.length === 0) { 10 | return { min: 1, max: 1, containsNonArrayItem: false }; 11 | } 12 | if (arr.length === 1 && !Array.isArray(arr[0])) { 13 | return { min: 1, max: 1, containsNonArrayItem: false }; 14 | } 15 | 16 | const res = arrayDepth(arr[0]); 17 | 18 | for (let i = 1; i < arr.length; ++i) { 19 | const _res = arrayDepth(arr[i]); 20 | if (_res.min < res.min) { 21 | res.min = _res.min; 22 | } 23 | if (_res.max > res.max) { 24 | res.max = _res.max; 25 | } 26 | res.containsNonArrayItem = res.containsNonArrayItem || _res.containsNonArrayItem; 27 | } 28 | 29 | res.min = res.min + 1; 30 | res.max = res.max + 1; 31 | 32 | return res; 33 | } 34 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/discriminator/areDiscriminatorValuesEqual.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const isBsonType = require('../isBsonType'); 4 | 5 | module.exports = function areDiscriminatorValuesEqual(a, b) { 6 | if (typeof a === 'string' && typeof b === 'string') { 7 | return a === b; 8 | } 9 | if (typeof a === 'number' && typeof b === 'number') { 10 | return a === b; 11 | } 12 | if (isBsonType(a, 'ObjectId') && isBsonType(b, 'ObjectId')) { 13 | return a.toString() === b.toString(); 14 | } 15 | return false; 16 | }; 17 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function checkEmbeddedDiscriminatorKeyProjection(userProjection, path, schema, selected, addedPaths) { 4 | const userProjectedInPath = Object.keys(userProjection). 5 | reduce((cur, key) => cur || key.startsWith(path + '.'), false); 6 | const _discriminatorKey = path + '.' + schema.options.discriminatorKey; 7 | if (!userProjectedInPath && 8 | addedPaths.length === 1 && 9 | addedPaths[0] === _discriminatorKey) { 10 | selected.splice(selected.indexOf(_discriminatorKey), 1); 11 | } 12 | }; 13 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/discriminator/getConstructor.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const getDiscriminatorByValue = require('./getDiscriminatorByValue'); 4 | 5 | /** 6 | * Find the correct constructor, taking into account discriminators 7 | * @api private 8 | */ 9 | 10 | module.exports = function getConstructor(Constructor, value) { 11 | const discriminatorKey = Constructor.schema.options.discriminatorKey; 12 | if (value != null && 13 | Constructor.discriminators && 14 | value[discriminatorKey] != null) { 15 | if (Constructor.discriminators[value[discriminatorKey]]) { 16 | Constructor = Constructor.discriminators[value[discriminatorKey]]; 17 | } else { 18 | const constructorByValue = getDiscriminatorByValue(Constructor.discriminators, value[discriminatorKey]); 19 | if (constructorByValue) { 20 | Constructor = constructorByValue; 21 | } 22 | } 23 | } 24 | 25 | return Constructor; 26 | }; 27 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/discriminator/getDiscriminatorByValue.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const areDiscriminatorValuesEqual = require('./areDiscriminatorValuesEqual'); 4 | 5 | /** 6 | * returns discriminator by discriminatorMapping.value 7 | * 8 | * @param {Object} discriminators 9 | * @param {string} value 10 | * @api private 11 | */ 12 | 13 | module.exports = function getDiscriminatorByValue(discriminators, value) { 14 | if (discriminators == null) { 15 | return null; 16 | } 17 | for (const name of Object.keys(discriminators)) { 18 | const it = discriminators[name]; 19 | if ( 20 | it.schema && 21 | it.schema.discriminatorMapping && 22 | areDiscriminatorValuesEqual(it.schema.discriminatorMapping.value, value) 23 | ) { 24 | return it; 25 | } 26 | } 27 | return null; 28 | }; 29 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/discriminator/getSchemaDiscriminatorByValue.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const areDiscriminatorValuesEqual = require('./areDiscriminatorValuesEqual'); 4 | 5 | /** 6 | * returns discriminator by discriminatorMapping.value 7 | * 8 | * @param {Schema} schema 9 | * @param {string} value 10 | * @api private 11 | */ 12 | 13 | module.exports = function getSchemaDiscriminatorByValue(schema, value) { 14 | if (schema == null || schema.discriminators == null) { 15 | return null; 16 | } 17 | for (const key of Object.keys(schema.discriminators)) { 18 | const discriminatorSchema = schema.discriminators[key]; 19 | if (discriminatorSchema.discriminatorMapping == null) { 20 | continue; 21 | } 22 | if (areDiscriminatorValuesEqual(discriminatorSchema.discriminatorMapping.value, value)) { 23 | return discriminatorSchema; 24 | } 25 | } 26 | return null; 27 | }; 28 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/each.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function each(arr, cb, done) { 4 | if (arr.length === 0) { 5 | return done(); 6 | } 7 | 8 | let remaining = arr.length; 9 | let err = null; 10 | for (const v of arr) { 11 | cb(v, function(_err) { 12 | if (err != null) { 13 | return; 14 | } 15 | if (_err != null) { 16 | err = _err; 17 | return done(err); 18 | } 19 | 20 | if (--remaining <= 0) { 21 | return done(); 22 | } 23 | }); 24 | } 25 | }; 26 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/error/combinePathErrors.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | module.exports = function combinePathErrors(err) { 8 | const keys = Object.keys(err.errors || {}); 9 | const len = keys.length; 10 | const msgs = []; 11 | let key; 12 | 13 | for (let i = 0; i < len; ++i) { 14 | key = keys[i]; 15 | if (err === err.errors[key]) { 16 | continue; 17 | } 18 | msgs.push(key + ': ' + err.errors[key].message); 19 | } 20 | 21 | return msgs.join(', '); 22 | }; 23 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/firstKey.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function firstKey(obj) { 4 | if (obj == null) { 5 | return null; 6 | } 7 | return Object.keys(obj)[0]; 8 | }; 9 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/getConstructorName.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * If `val` is an object, returns constructor name, if possible. Otherwise returns undefined. 5 | * @api private 6 | */ 7 | 8 | module.exports = function getConstructorName(val) { 9 | if (val == null) { 10 | return void 0; 11 | } 12 | if (typeof val.constructor !== 'function') { 13 | return void 0; 14 | } 15 | return val.constructor.name; 16 | }; 17 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/getDefaultBulkwriteResult.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | function getDefaultBulkwriteResult() { 3 | return { 4 | result: { 5 | ok: 1, 6 | writeErrors: [], 7 | writeConcernErrors: [], 8 | insertedIds: [], 9 | nInserted: 0, 10 | nUpserted: 0, 11 | nMatched: 0, 12 | nModified: 0, 13 | nRemoved: 0, 14 | upserted: [] 15 | }, 16 | insertedCount: 0, 17 | matchedCount: 0, 18 | modifiedCount: 0, 19 | deletedCount: 0, 20 | upsertedCount: 0, 21 | upsertedIds: {}, 22 | insertedIds: {}, 23 | n: 0 24 | }; 25 | } 26 | 27 | module.exports = getDefaultBulkwriteResult; 28 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/getFunctionName.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const functionNameRE = /^function\s*([^\s(]+)/; 4 | 5 | module.exports = function(fn) { 6 | return ( 7 | fn.name || 8 | (fn.toString().trim().match(functionNameRE) || [])[1] 9 | ); 10 | }; 11 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/immediate.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Centralize this so we can more easily work around issues with people 3 | * stubbing out `process.nextTick()` in tests using sinon: 4 | * https://github.com/sinonjs/lolex#automatically-incrementing-mocked-time 5 | * See gh-6074 6 | */ 7 | 8 | 'use strict'; 9 | 10 | const nextTick = typeof process !== 'undefined' && typeof process.nextTick === 'function' ? 11 | process.nextTick.bind(process) : 12 | cb => setTimeout(cb, 0); // Fallback for browser build 13 | 14 | module.exports = function immediate(cb) { 15 | return nextTick(cb); 16 | }; 17 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/indexes/applySchemaCollation.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const isTextIndex = require('./isTextIndex'); 4 | 5 | module.exports = function applySchemaCollation(indexKeys, indexOptions, schemaOptions) { 6 | if (isTextIndex(indexKeys)) { 7 | return; 8 | } 9 | 10 | if (schemaOptions.hasOwnProperty('collation') && !indexOptions.hasOwnProperty('collation')) { 11 | indexOptions.collation = schemaOptions.collation; 12 | } 13 | }; 14 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/indexes/decorateDiscriminatorIndexOptions.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function decorateDiscriminatorIndexOptions(schema, indexOptions) { 4 | // If the model is a discriminator and has an index, add a 5 | // partialFilterExpression by default so the index will only apply 6 | // to that discriminator. 7 | const discriminatorName = schema.discriminatorMapping && schema.discriminatorMapping.value; 8 | if (discriminatorName && !('sparse' in indexOptions)) { 9 | const discriminatorKey = schema.options.discriminatorKey; 10 | indexOptions.partialFilterExpression = indexOptions.partialFilterExpression || {}; 11 | indexOptions.partialFilterExpression[discriminatorKey] = discriminatorName; 12 | } 13 | return indexOptions; 14 | }; 15 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const get = require('../get'); 4 | 5 | module.exports = function isDefaultIdIndex(index) { 6 | if (Array.isArray(index)) { 7 | // Mongoose syntax 8 | const keys = Object.keys(index[0]); 9 | return keys.length === 1 && keys[0] === '_id' && index[0]._id !== 'hashed'; 10 | } 11 | 12 | if (typeof index !== 'object') { 13 | return false; 14 | } 15 | 16 | const key = get(index, 'key', {}); 17 | return Object.keys(key).length === 1 && key.hasOwnProperty('_id'); 18 | }; 19 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/indexes/isTextIndex.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Returns `true` if the given index options have a `text` option. 5 | */ 6 | 7 | module.exports = function isTextIndex(indexKeys) { 8 | let isTextIndex = false; 9 | for (const key of Object.keys(indexKeys)) { 10 | if (indexKeys[key] === 'text') { 11 | isTextIndex = true; 12 | } 13 | } 14 | 15 | return isTextIndex; 16 | }; 17 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/isAsyncFunction.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function isAsyncFunction(v) { 4 | return ( 5 | typeof v === 'function' && 6 | v.constructor && 7 | v.constructor.name === 'AsyncFunction' 8 | ); 9 | }; 10 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/isBsonType.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Get the bson type, if it exists 5 | * @api private 6 | */ 7 | 8 | function isBsonType(obj, typename) { 9 | return ( 10 | typeof obj === 'object' && 11 | obj !== null && 12 | obj._bsontype === typename 13 | ); 14 | } 15 | 16 | module.exports = isBsonType; 17 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/isMongooseObject.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const isMongooseArray = require('../types/array/isMongooseArray').isMongooseArray; 4 | /** 5 | * Returns if `v` is a mongoose object that has a `toObject()` method we can use. 6 | * 7 | * This is for compatibility with libs like Date.js which do foolish things to Natives. 8 | * 9 | * @param {Any} v 10 | * @api private 11 | */ 12 | 13 | module.exports = function(v) { 14 | return ( 15 | v != null && ( 16 | isMongooseArray(v) || // Array or Document Array 17 | v.$__ != null || // Document 18 | v.isMongooseBuffer || // Buffer 19 | v.$isMongooseMap // Map 20 | ) 21 | ); 22 | }; 23 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/isObject.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Determines if `arg` is an object. 5 | * 6 | * @param {Object|Array|String|Function|RegExp|any} arg 7 | * @api private 8 | * @return {Boolean} 9 | */ 10 | 11 | module.exports = function(arg) { 12 | return ( 13 | Buffer.isBuffer(arg) || 14 | Object.prototype.toString.call(arg) === '[object Object]' 15 | ); 16 | }; 17 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/isPOJO.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function isPOJO(arg) { 4 | if (arg == null || typeof arg !== 'object') { 5 | return false; 6 | } 7 | const proto = Object.getPrototypeOf(arg); 8 | // Prototype may be null if you used `Object.create(null)` 9 | // Checking `proto`'s constructor is safe because `getPrototypeOf()` 10 | // explicitly crosses the boundary from object data to object metadata 11 | return !proto || proto.constructor.name === 'Object'; 12 | }; 13 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/isPromise.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | function isPromise(val) { 3 | return !!val && (typeof val === 'object' || typeof val === 'function') && typeof val.then === 'function'; 4 | } 5 | 6 | module.exports = isPromise; 7 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/isSimpleValidator.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Determines if `arg` is a flat object. 5 | * 6 | * @param {Object|Array|String|Function|RegExp|any} arg 7 | * @api private 8 | * @return {Boolean} 9 | */ 10 | 11 | module.exports = function isSimpleValidator(obj) { 12 | const keys = Object.keys(obj); 13 | let result = true; 14 | for (let i = 0, len = keys.length; i < len; ++i) { 15 | if (typeof obj[keys[i]] === 'object' && obj[keys[i]] !== null) { 16 | result = false; 17 | break; 18 | } 19 | } 20 | 21 | return result; 22 | }; 23 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/model/applyStatics.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Register statics for this model 5 | * @param {Model} model 6 | * @param {Schema} schema 7 | * @api private 8 | */ 9 | module.exports = function applyStatics(model, schema) { 10 | for (const i in schema.statics) { 11 | model[i] = schema.statics[i]; 12 | } 13 | }; 14 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/model/pushNestedArrayPaths.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function pushNestedArrayPaths(paths, nestedArray, path) { 4 | if (nestedArray == null) { 5 | return; 6 | } 7 | 8 | for (let i = 0; i < nestedArray.length; ++i) { 9 | if (Array.isArray(nestedArray[i])) { 10 | pushNestedArrayPaths(paths, nestedArray[i], path + '.' + i); 11 | } else { 12 | paths.push(path + '.' + i); 13 | } 14 | } 15 | }; 16 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/once.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function once(fn) { 4 | let called = false; 5 | return function() { 6 | if (called) { 7 | return; 8 | } 9 | called = true; 10 | return fn.apply(null, arguments); 11 | }; 12 | }; 13 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/path/parentPaths.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const dotRE = /\./g; 4 | module.exports = function parentPaths(path) { 5 | if (path.indexOf('.') === -1) { 6 | return [path]; 7 | } 8 | const pieces = path.split(dotRE); 9 | const len = pieces.length; 10 | const ret = new Array(len); 11 | let cur = ''; 12 | for (let i = 0; i < len; ++i) { 13 | cur += (cur.length !== 0) ? '.' + pieces[i] : pieces[i]; 14 | ret[i] = cur; 15 | } 16 | 17 | return ret; 18 | }; 19 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/path/setDottedPath.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const specialProperties = require('../specialProperties'); 4 | 5 | 6 | module.exports = function setDottedPath(obj, path, val) { 7 | if (path.indexOf('.') === -1) { 8 | if (specialProperties.has(path)) { 9 | return; 10 | } 11 | 12 | obj[path] = val; 13 | return; 14 | } 15 | const parts = path.split('.'); 16 | 17 | const last = parts.pop(); 18 | let cur = obj; 19 | for (const part of parts) { 20 | if (specialProperties.has(part)) { 21 | continue; 22 | } 23 | if (cur[part] == null) { 24 | cur[part] = {}; 25 | } 26 | 27 | cur = cur[part]; 28 | } 29 | 30 | if (!specialProperties.has(last)) { 31 | cur[last] = val; 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/populate/SkipPopulateValue.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function SkipPopulateValue(val) { 4 | if (!(this instanceof SkipPopulateValue)) { 5 | return new SkipPopulateValue(val); 6 | } 7 | 8 | this.val = val; 9 | return this; 10 | }; 11 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/populate/leanPopulateMap.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | module.exports = new WeakMap(); 8 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/populate/lookupLocalFields.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function lookupLocalFields(cur, path, val) { 4 | if (cur == null) { 5 | return cur; 6 | } 7 | 8 | if (cur._doc != null) { 9 | cur = cur._doc; 10 | } 11 | 12 | if (arguments.length >= 3) { 13 | if (typeof cur !== 'object') { 14 | return void 0; 15 | } 16 | if (val === void 0) { 17 | return void 0; 18 | } 19 | if (cur instanceof Map) { 20 | cur.set(path, val); 21 | } else { 22 | cur[path] = val; 23 | } 24 | return val; 25 | } 26 | 27 | 28 | // Support populating paths under maps using `map.$*.subpath` 29 | if (path === '$*') { 30 | return cur instanceof Map ? 31 | Array.from(cur.values()) : 32 | Object.keys(cur).map(key => cur[key]); 33 | } 34 | 35 | if (cur instanceof Map) { 36 | return cur.get(path); 37 | } 38 | 39 | return cur[path]; 40 | }; 41 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/populate/removeDeselectedForeignField.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const get = require('../get'); 4 | const mpath = require('mpath'); 5 | const parseProjection = require('../projection/parseProjection'); 6 | 7 | /*! 8 | * ignore 9 | */ 10 | 11 | module.exports = function removeDeselectedForeignField(foreignFields, options, docs) { 12 | const projection = parseProjection(get(options, 'select', null), true) || 13 | parseProjection(get(options, 'options.select', null), true); 14 | 15 | if (projection == null) { 16 | return; 17 | } 18 | for (const foreignField of foreignFields) { 19 | if (!projection.hasOwnProperty('-' + foreignField)) { 20 | continue; 21 | } 22 | 23 | for (const val of docs) { 24 | if (val.$__ != null) { 25 | mpath.unset(foreignField, val._doc); 26 | } else { 27 | mpath.unset(foreignField, val); 28 | } 29 | } 30 | } 31 | }; 32 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/populate/validateRef.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const MongooseError = require('../../error/mongooseError'); 4 | const util = require('util'); 5 | 6 | module.exports = validateRef; 7 | 8 | function validateRef(ref, path) { 9 | if (typeof ref === 'string') { 10 | return; 11 | } 12 | 13 | if (typeof ref === 'function') { 14 | return; 15 | } 16 | 17 | throw new MongooseError('Invalid ref at path "' + path + '". Got ' + 18 | util.inspect(ref, { depth: 0 })); 19 | } 20 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | module.exports = function isDefiningProjection(val) { 8 | if (val == null) { 9 | // `undefined` or `null` become exclusive projections 10 | return true; 11 | } 12 | if (typeof val === 'object') { 13 | // Only cases where a value does **not** define whether the whole projection 14 | // is inclusive or exclusive are `$meta` and `$slice`. 15 | return !('$meta' in val) && !('$slice' in val); 16 | } 17 | return true; 18 | }; 19 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/projection/isExclusive.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const isDefiningProjection = require('./isDefiningProjection'); 4 | 5 | /*! 6 | * ignore 7 | */ 8 | 9 | module.exports = function isExclusive(projection) { 10 | if (projection == null) { 11 | return null; 12 | } 13 | 14 | const keys = Object.keys(projection); 15 | let ki = keys.length; 16 | let exclude = null; 17 | 18 | if (ki === 1 && keys[0] === '_id') { 19 | exclude = !projection._id; 20 | } else { 21 | while (ki--) { 22 | // Does this projection explicitly define inclusion/exclusion? 23 | // Explicitly avoid `$meta` and `$slice` 24 | const key = keys[ki]; 25 | if (key !== '_id' && isDefiningProjection(projection[key])) { 26 | exclude = (projection[key] != null && typeof projection[key] === 'object') ? 27 | isExclusive(projection[key]) : 28 | !projection[key]; 29 | break; 30 | } 31 | } 32 | } 33 | 34 | return exclude; 35 | }; 36 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/projection/isPathExcluded.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const isDefiningProjection = require('./isDefiningProjection'); 4 | 5 | /** 6 | * Determines if `path` is excluded by `projection` 7 | * 8 | * @param {Object} projection 9 | * @param {String} path 10 | * @return {Boolean} 11 | * @api private 12 | */ 13 | 14 | module.exports = function isPathExcluded(projection, path) { 15 | if (projection == null) { 16 | return false; 17 | } 18 | 19 | if (path === '_id') { 20 | return projection._id === 0; 21 | } 22 | 23 | const paths = Object.keys(projection); 24 | let type = null; 25 | 26 | for (const _path of paths) { 27 | if (isDefiningProjection(projection[_path])) { 28 | type = projection[path] === 1 ? 'inclusive' : 'exclusive'; 29 | break; 30 | } 31 | } 32 | 33 | if (type === 'inclusive') { 34 | return projection[path] !== 1; 35 | } 36 | if (type === 'exclusive') { 37 | return projection[path] === 0; 38 | } 39 | return false; 40 | }; 41 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/projection/isPathSelectedInclusive.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | module.exports = function isPathSelectedInclusive(fields, path) { 8 | const chunks = path.split('.'); 9 | let cur = ''; 10 | let j; 11 | let keys; 12 | let numKeys; 13 | for (let i = 0; i < chunks.length; ++i) { 14 | cur += cur.length ? '.' : '' + chunks[i]; 15 | if (fields[cur]) { 16 | keys = Object.keys(fields); 17 | numKeys = keys.length; 18 | for (j = 0; j < numKeys; ++j) { 19 | if (keys[i].indexOf(cur + '.') === 0 && keys[i].indexOf(path) !== 0) { 20 | continue; 21 | } 22 | } 23 | return true; 24 | } 25 | } 26 | 27 | return false; 28 | }; 29 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/projection/isSubpath.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Determines if `path2` is a subpath of or equal to `path1` 5 | * 6 | * @param {string} path1 7 | * @param {string} path2 8 | * @return {Boolean} 9 | * @api private 10 | */ 11 | 12 | module.exports = function isSubpath(path1, path2) { 13 | return path1 === path2 || path2.startsWith(path1 + '.'); 14 | }; 15 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/projection/parseProjection.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Convert a string or array into a projection object, retaining all 5 | * `-` and `+` paths. 6 | */ 7 | 8 | module.exports = function parseProjection(v, retainMinusPaths) { 9 | const type = typeof v; 10 | 11 | if (type === 'string') { 12 | v = v.split(/\s+/); 13 | } 14 | if (!Array.isArray(v) && Object.prototype.toString.call(v) !== '[object Arguments]') { 15 | return v; 16 | } 17 | 18 | const len = v.length; 19 | const ret = {}; 20 | for (let i = 0; i < len; ++i) { 21 | let field = v[i]; 22 | if (!field) { 23 | continue; 24 | } 25 | const include = '-' == field[0] ? 0 : 1; 26 | if (!retainMinusPaths && include === 0) { 27 | field = field.substring(1); 28 | } 29 | ret[field] = include; 30 | } 31 | 32 | return ret; 33 | }; 34 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/query/applyGlobalOption.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const utils = require('../../utils'); 4 | 5 | function applyGlobalMaxTimeMS(options, model) { 6 | applyGlobalOption(options, model, 'maxTimeMS'); 7 | } 8 | 9 | function applyGlobalDiskUse(options, model) { 10 | applyGlobalOption(options, model, 'allowDiskUse'); 11 | } 12 | 13 | module.exports = { 14 | applyGlobalMaxTimeMS, 15 | applyGlobalDiskUse 16 | }; 17 | 18 | 19 | function applyGlobalOption(options, model, optionName) { 20 | if (utils.hasUserDefinedProperty(options, optionName)) { 21 | return; 22 | } 23 | 24 | if (utils.hasUserDefinedProperty(model.db.options, optionName)) { 25 | options[optionName] = model.db.options[optionName]; 26 | } else if (utils.hasUserDefinedProperty(model.base.options, optionName)) { 27 | options[optionName] = model.base.options[optionName]; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/query/handleImmutable.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const StrictModeError = require('../../error/strict'); 4 | 5 | module.exports = function handleImmutable(schematype, strict, obj, key, fullPath, ctx) { 6 | if (schematype == null || !schematype.options || !schematype.options.immutable) { 7 | return false; 8 | } 9 | let immutable = schematype.options.immutable; 10 | 11 | if (typeof immutable === 'function') { 12 | immutable = immutable.call(ctx, ctx); 13 | } 14 | if (!immutable) { 15 | return false; 16 | } 17 | 18 | if (strict === false) { 19 | return false; 20 | } 21 | if (strict === 'throw') { 22 | throw new StrictModeError(null, 23 | `Field ${fullPath} is immutable and strict = 'throw'`); 24 | } 25 | 26 | delete obj[key]; 27 | return true; 28 | }; 29 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/query/handleReadPreferenceAliases.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function handleReadPreferenceAliases(pref) { 4 | switch (pref) { 5 | case 'p': 6 | pref = 'primary'; 7 | break; 8 | case 'pp': 9 | pref = 'primaryPreferred'; 10 | break; 11 | case 's': 12 | pref = 'secondary'; 13 | break; 14 | case 'sp': 15 | pref = 'secondaryPreferred'; 16 | break; 17 | case 'n': 18 | pref = 'nearest'; 19 | break; 20 | } 21 | 22 | return pref; 23 | }; 24 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/query/hasDollarKeys.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | module.exports = function hasDollarKeys(obj) { 8 | 9 | if (typeof obj !== 'object' || obj === null) { 10 | return false; 11 | } 12 | 13 | const keys = Object.keys(obj); 14 | const len = keys.length; 15 | 16 | for (let i = 0; i < len; ++i) { 17 | if (keys[i][0] === '$') { 18 | return true; 19 | } 20 | } 21 | 22 | return false; 23 | }; 24 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/query/isOperator.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const specialKeys = new Set([ 4 | '$ref', 5 | '$id', 6 | '$db' 7 | ]); 8 | 9 | module.exports = function isOperator(path) { 10 | return ( 11 | path[0] === '$' && 12 | !specialKeys.has(path) 13 | ); 14 | }; 15 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/query/sanitizeProjection.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function sanitizeProjection(projection) { 4 | if (projection == null) { 5 | return; 6 | } 7 | 8 | const keys = Object.keys(projection); 9 | for (let i = 0; i < keys.length; ++i) { 10 | if (typeof projection[keys[i]] === 'string') { 11 | projection[keys[i]] = 1; 12 | } 13 | } 14 | }; 15 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/query/trusted.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const trustedSymbol = Symbol('mongoose#trustedSymbol'); 4 | 5 | exports.trustedSymbol = trustedSymbol; 6 | 7 | exports.trusted = function trusted(obj) { 8 | if (obj == null || typeof obj !== 'object') { 9 | return obj; 10 | } 11 | obj[trustedSymbol] = true; 12 | return obj; 13 | }; 14 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/query/validOps.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = Object.freeze([ 4 | // Read 5 | 'count', 6 | 'countDocuments', 7 | 'distinct', 8 | 'estimatedDocumentCount', 9 | 'find', 10 | 'findOne', 11 | // Update 12 | 'findOneAndReplace', 13 | 'findOneAndUpdate', 14 | 'replaceOne', 15 | 'updateMany', 16 | 'updateOne', 17 | // Delete 18 | 'deleteMany', 19 | 'deleteOne', 20 | 'findOneAndDelete', 21 | 'findOneAndRemove' 22 | ]); 23 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/schema/addAutoId.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function addAutoId(schema) { 4 | const _obj = { _id: { auto: true } }; 5 | _obj._id[schema.options.typeKey] = 'ObjectId'; 6 | schema.add(_obj); 7 | }; 8 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/schema/applyBuiltinPlugins.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const builtinPlugins = require('../../plugins'); 4 | 5 | module.exports = function applyBuiltinPlugins(schema) { 6 | for (const plugin of Object.values(builtinPlugins)) { 7 | plugin(schema, { deduplicate: true }); 8 | } 9 | schema.plugins = Object.values(builtinPlugins). 10 | map(fn => ({ fn, opts: { deduplicate: true } })). 11 | concat(schema.plugins); 12 | }; 13 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/schema/cleanPositionalOperators.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * For consistency's sake, we replace positional operator `$` and array filters 5 | * `$[]` and `$[foo]` with `0` when looking up schema paths. 6 | */ 7 | 8 | module.exports = function cleanPositionalOperators(path) { 9 | return path. 10 | replace(/\.\$(\[[^\]]*\])?(?=\.)/g, '.0'). 11 | replace(/\.\$(\[[^\]]*\])?$/g, '.0'); 12 | }; 13 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/schema/getKeysInSchemaOrder.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const get = require('../get'); 4 | 5 | module.exports = function getKeysInSchemaOrder(schema, val, path) { 6 | const schemaKeys = path != null ? Object.keys(get(schema.tree, path, {})) : Object.keys(schema.tree); 7 | const valKeys = new Set(Object.keys(val)); 8 | 9 | let keys; 10 | if (valKeys.size > 1) { 11 | keys = new Set(); 12 | for (const key of schemaKeys) { 13 | if (valKeys.has(key)) { 14 | keys.add(key); 15 | } 16 | } 17 | for (const key of valKeys) { 18 | if (!keys.has(key)) { 19 | keys.add(key); 20 | } 21 | } 22 | keys = Array.from(keys); 23 | } else { 24 | keys = Array.from(valKeys); 25 | } 26 | 27 | return keys; 28 | }; 29 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/schema/handleIdOption.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const addAutoId = require('./addAutoId'); 4 | 5 | module.exports = function handleIdOption(schema, options) { 6 | if (options == null || options._id == null) { 7 | return schema; 8 | } 9 | 10 | schema = schema.clone(); 11 | if (!options._id) { 12 | schema.remove('_id'); 13 | schema.options._id = false; 14 | } else if (!schema.paths['_id']) { 15 | addAutoId(schema); 16 | schema.options._id = true; 17 | } 18 | 19 | return schema; 20 | }; 21 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = handleTimestampOption; 4 | 5 | /*! 6 | * ignore 7 | */ 8 | 9 | function handleTimestampOption(arg, prop) { 10 | if (arg == null) { 11 | return null; 12 | } 13 | 14 | if (typeof arg === 'boolean') { 15 | return prop; 16 | } 17 | if (typeof arg[prop] === 'boolean') { 18 | return arg[prop] ? prop : null; 19 | } 20 | if (!(prop in arg)) { 21 | return prop; 22 | } 23 | return arg[prop]; 24 | } 25 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/schema/idGetter.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | module.exports = function addIdGetter(schema) { 8 | // ensure the documents receive an id getter unless disabled 9 | const autoIdGetter = !schema.paths['id'] && 10 | schema.paths['_id'] && 11 | schema.options.id; 12 | if (!autoIdGetter) { 13 | return schema; 14 | } 15 | if (schema.aliases && schema.aliases.id) { 16 | return schema; 17 | } 18 | schema.virtual('id').get(idGetter); 19 | schema.virtual('id').set(idSetter); 20 | 21 | return schema; 22 | }; 23 | 24 | /** 25 | * Returns this documents _id cast to a string. 26 | * @api private 27 | */ 28 | 29 | function idGetter() { 30 | if (this._id != null) { 31 | return String(this._id); 32 | } 33 | 34 | return null; 35 | } 36 | 37 | /** 38 | * 39 | * @param {String} v the id to set 40 | * @api private 41 | */ 42 | 43 | function idSetter(v) { 44 | this._id = v; 45 | return v; 46 | } 47 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/specialProperties.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = new Set(['__proto__', 'constructor', 'prototype']); 4 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/timers.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.setTimeout = setTimeout; 4 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/topology/allServersUnknown.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const getConstructorName = require('../getConstructorName'); 4 | 5 | module.exports = function allServersUnknown(topologyDescription) { 6 | if (getConstructorName(topologyDescription) !== 'TopologyDescription') { 7 | return false; 8 | } 9 | 10 | const servers = Array.from(topologyDescription.servers.values()); 11 | return servers.length > 0 && servers.every(server => server.type === 'Unknown'); 12 | }; 13 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/topology/isAtlas.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const getConstructorName = require('../getConstructorName'); 4 | 5 | /** 6 | * @typedef { import('mongodb').TopologyDescription } TopologyDescription 7 | */ 8 | 9 | /** 10 | * Checks if topologyDescription contains servers connected to an atlas instance 11 | * 12 | * @param {TopologyDescription} topologyDescription 13 | * @returns {boolean} 14 | */ 15 | module.exports = function isAtlas(topologyDescription) { 16 | if (getConstructorName(topologyDescription) !== 'TopologyDescription') { 17 | return false; 18 | } 19 | 20 | if (topologyDescription.servers.size === 0) { 21 | return false; 22 | } 23 | 24 | for (const server of topologyDescription.servers.values()) { 25 | if (server.host.endsWith('.mongodb.net') === false || server.port !== 27017) { 26 | return false; 27 | } 28 | } 29 | 30 | return true; 31 | }; 32 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/topology/isSSLError.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const getConstructorName = require('../getConstructorName'); 4 | 5 | const nonSSLMessage = 'Client network socket disconnected before secure TLS ' + 6 | 'connection was established'; 7 | 8 | module.exports = function isSSLError(topologyDescription) { 9 | if (getConstructorName(topologyDescription) !== 'TopologyDescription') { 10 | return false; 11 | } 12 | 13 | const descriptions = Array.from(topologyDescription.servers.values()); 14 | return descriptions.length > 0 && 15 | descriptions.every(descr => descr.error && descr.error.message.indexOf(nonSSLMessage) !== -1); 16 | }; 17 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/helpers/update/updatedPathsByArrayFilter.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const modifiedPaths = require('./modifiedPaths'); 4 | 5 | module.exports = function updatedPathsByArrayFilter(update) { 6 | if (update == null) { 7 | return {}; 8 | } 9 | const updatedPaths = modifiedPaths(update); 10 | 11 | return Object.keys(updatedPaths).reduce((cur, path) => { 12 | const matches = path.match(/\$\[[^\]]+\]/g); 13 | if (matches == null) { 14 | return cur; 15 | } 16 | for (const match of matches) { 17 | const firstMatch = path.indexOf(match); 18 | if (firstMatch !== path.lastIndexOf(match)) { 19 | throw new Error(`Path '${path}' contains the same array filter multiple times`); 20 | } 21 | cur[match.substring(2, match.length - 1)] = path. 22 | substring(0, firstMatch - 1). 23 | replace(/\$\[[^\]]+\]/g, '0'); 24 | } 25 | return cur; 26 | }, {}); 27 | }; 28 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/options.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | exports.internalToObjectOptions = { 8 | transform: false, 9 | virtuals: false, 10 | getters: false, 11 | _skipDepopulateTopLevel: true, 12 | depopulate: true, 13 | flattenDecimals: false, 14 | useProjection: false 15 | }; 16 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/options/SchemaBufferOptions.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const SchemaTypeOptions = require('./SchemaTypeOptions'); 4 | 5 | /** 6 | * The options defined on a Buffer schematype. 7 | * 8 | * #### Example: 9 | * 10 | * const schema = new Schema({ bitmap: Buffer }); 11 | * schema.path('bitmap').options; // SchemaBufferOptions instance 12 | * 13 | * @api public 14 | * @inherits SchemaTypeOptions 15 | * @constructor SchemaBufferOptions 16 | */ 17 | 18 | class SchemaBufferOptions extends SchemaTypeOptions {} 19 | 20 | const opts = require('./propertyOptions'); 21 | 22 | /** 23 | * Set the default subtype for this buffer. 24 | * 25 | * @api public 26 | * @property subtype 27 | * @memberOf SchemaBufferOptions 28 | * @type {Number} 29 | * @instance 30 | */ 31 | 32 | Object.defineProperty(SchemaBufferOptions.prototype, 'subtype', opts); 33 | 34 | /*! 35 | * ignore 36 | */ 37 | 38 | module.exports = SchemaBufferOptions; 39 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/options/propertyOptions.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = Object.freeze({ 4 | enumerable: true, 5 | configurable: true, 6 | writable: true, 7 | value: void 0 8 | }); 9 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/options/saveOptions.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const clone = require('../helpers/clone'); 4 | 5 | class SaveOptions { 6 | constructor(obj) { 7 | if (obj == null) { 8 | return; 9 | } 10 | Object.assign(this, clone(obj)); 11 | } 12 | } 13 | 14 | module.exports = SaveOptions; 15 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/plugins/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.removeSubdocs = require('./removeSubdocs'); 4 | exports.saveSubdocs = require('./saveSubdocs'); 5 | exports.sharding = require('./sharding'); 6 | exports.trackTransaction = require('./trackTransaction'); 7 | exports.validateBeforeSave = require('./validateBeforeSave'); 8 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/plugins/removeSubdocs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const each = require('../helpers/each'); 4 | 5 | /*! 6 | * ignore 7 | */ 8 | 9 | module.exports = function removeSubdocs(schema) { 10 | const unshift = true; 11 | schema.s.hooks.pre('deleteOne', { document: true, query: false }, function removeSubDocsPreRemove(next) { 12 | if (this.$isSubdocument) { 13 | next(); 14 | return; 15 | } 16 | if (this.$__ == null) { 17 | next(); 18 | return; 19 | } 20 | 21 | const _this = this; 22 | const subdocs = this.$getAllSubdocs(); 23 | 24 | each(subdocs, function(subdoc, cb) { 25 | subdoc.$__deleteOne(cb); 26 | }, function(error) { 27 | if (error) { 28 | return _this.$__schema.s.hooks.execPost('deleteOne:error', _this, [_this], { error: error }, function(error) { 29 | next(error); 30 | }); 31 | } 32 | next(); 33 | }); 34 | }, null, unshift); 35 | }; 36 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/schema/index.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module exports. 4 | */ 5 | 6 | 'use strict'; 7 | 8 | exports.Array = require('./array'); 9 | exports.Boolean = require('./boolean'); 10 | exports.BigInt = require('./bigint'); 11 | exports.Buffer = require('./buffer'); 12 | exports.Date = require('./date'); 13 | exports.Decimal128 = exports.Decimal = require('./decimal128'); 14 | exports.DocumentArray = require('./documentarray'); 15 | exports.Map = require('./map'); 16 | exports.Mixed = require('./mixed'); 17 | exports.Number = require('./number'); 18 | exports.ObjectId = require('./objectid'); 19 | exports.String = require('./string'); 20 | exports.Subdocument = require('./SubdocumentPath'); 21 | exports.UUID = require('./uuid'); 22 | 23 | // alias 24 | 25 | exports.Oid = exports.ObjectId; 26 | exports.Object = exports.Mixed; 27 | exports.Bool = exports.Boolean; 28 | exports.ObjectID = exports.ObjectId; 29 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/schema/operators/bitwise.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module requirements. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | const CastError = require('../../error/cast'); 8 | 9 | /*! 10 | * ignore 11 | */ 12 | 13 | function handleBitwiseOperator(val) { 14 | const _this = this; 15 | if (Array.isArray(val)) { 16 | return val.map(function(v) { 17 | return _castNumber(_this.path, v); 18 | }); 19 | } else if (Buffer.isBuffer(val)) { 20 | return val; 21 | } 22 | // Assume trying to cast to number 23 | return _castNumber(_this.path, val); 24 | } 25 | 26 | /*! 27 | * ignore 28 | */ 29 | 30 | function _castNumber(path, num) { 31 | const v = Number(num); 32 | if (isNaN(v)) { 33 | throw new CastError('number', num, path); 34 | } 35 | return v; 36 | } 37 | 38 | module.exports = handleBitwiseOperator; 39 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/schema/operators/exists.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const castBoolean = require('../../cast/boolean'); 4 | 5 | /*! 6 | * ignore 7 | */ 8 | 9 | module.exports = function(val) { 10 | const path = this != null ? this.path : null; 11 | return castBoolean(val, path); 12 | }; 13 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/schema/operators/helpers.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * Module requirements. 5 | */ 6 | 7 | const SchemaNumber = require('../number'); 8 | 9 | /*! 10 | * ignore 11 | */ 12 | 13 | exports.castToNumber = castToNumber; 14 | exports.castArraysOfNumbers = castArraysOfNumbers; 15 | 16 | /*! 17 | * ignore 18 | */ 19 | 20 | function castToNumber(val) { 21 | return SchemaNumber.cast()(val); 22 | } 23 | 24 | function castArraysOfNumbers(arr, self) { 25 | arr.forEach(function(v, i) { 26 | if (Array.isArray(v)) { 27 | castArraysOfNumbers(v, self); 28 | } else { 29 | arr[i] = castToNumber.call(self, v); 30 | } 31 | }); 32 | } 33 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/schema/operators/type.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | module.exports = function(val) { 8 | if (Array.isArray(val)) { 9 | if (!val.every(v => typeof v === 'number' || typeof v === 'string')) { 10 | throw new Error('$type array values must be strings or numbers'); 11 | } 12 | return val; 13 | } 14 | 15 | if (typeof val !== 'number' && typeof val !== 'string') { 16 | throw new Error('$type parameter must be number, string, or array of numbers and strings'); 17 | } 18 | 19 | return val; 20 | }; 21 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/schema/symbols.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.schemaMixedSymbol = Symbol.for('mongoose:schema_mixed'); 4 | 5 | exports.builtInMiddleware = Symbol.for('mongoose:built-in-middleware'); 6 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/types/DocumentArray/isMongooseDocumentArray.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.isMongooseDocumentArray = function(mongooseDocumentArray) { 4 | return Array.isArray(mongooseDocumentArray) && mongooseDocumentArray.isMongooseDocumentArray; 5 | }; 6 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/types/array/isMongooseArray.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.isMongooseArray = function(mongooseArray) { 4 | return Array.isArray(mongooseArray) && mongooseArray.isMongooseArray; 5 | }; 6 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/types/decimal128.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Decimal128 type constructor 3 | * 4 | * #### Example: 5 | * 6 | * const id = new mongoose.Types.Decimal128('3.1415'); 7 | * 8 | * @constructor Decimal128 9 | */ 10 | 11 | 'use strict'; 12 | 13 | module.exports = require('bson').Decimal128; 14 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/types/index.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module exports. 4 | */ 5 | 6 | 'use strict'; 7 | 8 | exports.Array = require('./array'); 9 | exports.Buffer = require('./buffer'); 10 | 11 | exports.Document = // @deprecate 12 | exports.Embedded = require('./ArraySubdocument'); 13 | 14 | exports.DocumentArray = require('./DocumentArray'); 15 | exports.Decimal128 = require('./decimal128'); 16 | exports.ObjectId = require('./objectid'); 17 | 18 | exports.Map = require('./map'); 19 | 20 | exports.Subdocument = require('./subdocument'); 21 | 22 | exports.UUID = require('./uuid'); 23 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/types/objectid.js: -------------------------------------------------------------------------------- 1 | /** 2 | * ObjectId type constructor 3 | * 4 | * #### Example: 5 | * 6 | * const id = new mongoose.Types.ObjectId; 7 | * 8 | * @constructor ObjectId 9 | */ 10 | 11 | 'use strict'; 12 | 13 | const ObjectId = require('bson').ObjectId; 14 | const objectIdSymbol = require('../helpers/symbols').objectIdSymbol; 15 | 16 | /** 17 | * Getter for convenience with populate, see gh-6115 18 | * @api private 19 | */ 20 | 21 | Object.defineProperty(ObjectId.prototype, '_id', { 22 | enumerable: false, 23 | configurable: true, 24 | get: function() { 25 | return this; 26 | } 27 | }); 28 | 29 | /*! 30 | * Convenience `valueOf()` to allow comparing ObjectIds using double equals re: gh-7299 31 | */ 32 | 33 | if (!ObjectId.prototype.hasOwnProperty('valueOf')) { 34 | ObjectId.prototype.valueOf = function objectIdValueOf() { 35 | return this.toString(); 36 | }; 37 | } 38 | 39 | ObjectId.prototype[objectIdSymbol] = true; 40 | 41 | module.exports = ObjectId; 42 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/types/uuid.js: -------------------------------------------------------------------------------- 1 | /** 2 | * UUID type constructor 3 | * 4 | * #### Example: 5 | * 6 | * const id = new mongoose.Types.UUID(); 7 | * 8 | * @constructor UUID 9 | */ 10 | 11 | 'use strict'; 12 | 13 | module.exports = require('bson').UUID; 14 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/lib/validoptions.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Valid mongoose options 4 | */ 5 | 6 | 'use strict'; 7 | 8 | const VALID_OPTIONS = Object.freeze([ 9 | 'allowDiskUse', 10 | 'applyPluginsToChildSchemas', 11 | 'applyPluginsToDiscriminators', 12 | 'autoCreate', 13 | 'autoIndex', 14 | 'bufferCommands', 15 | 'bufferTimeoutMS', 16 | 'cloneSchemas', 17 | 'debug', 18 | 'id', 19 | 'timestamps.createdAt.immutable', 20 | 'maxTimeMS', 21 | 'objectIdGetter', 22 | 'overwriteModels', 23 | 'returnOriginal', 24 | 'runValidators', 25 | 'sanitizeFilter', 26 | 'sanitizeProjection', 27 | 'selectPopulatedPaths', 28 | 'setDefaultsOnInsert', 29 | 'strict', 30 | 'strictPopulate', 31 | 'strictQuery', 32 | 'toJSON', 33 | 'toObject', 34 | 'translateAliases' 35 | ]); 36 | 37 | module.exports = VALID_OPTIONS; 38 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/scripts/build-browser.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const config = require('../webpack.config.js'); 4 | const webpack = require('webpack'); 5 | 6 | const compiler = webpack(config); 7 | 8 | console.log('Starting browser build...'); 9 | compiler.run((err, stats) => { 10 | if (err) { 11 | console.err(stats.toString()); 12 | console.err('Browser build unsuccessful.'); 13 | process.exit(1); 14 | } 15 | console.log(stats.toString()); 16 | console.log('Browser build successful.'); 17 | process.exit(0); 18 | }); 19 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/scripts/create-tarball.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const { execSync } = require('child_process'); 4 | const { name, version } = require('../package.json'); 5 | 6 | execSync('npm pack'); 7 | execSync(`mv ${name}-${version}.tgz ${name}.tgz`); 8 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/scripts/tsc-diagnostics-check.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const fs = require('fs'); 4 | 5 | const stdin = fs.readFileSync(0).toString('utf8'); 6 | const maxInstantiations = isNaN(process.argv[2]) ? 120000 : parseInt(process.argv[2], 10); 7 | 8 | console.log(stdin); 9 | 10 | const numInstantiations = parseInt(stdin.match(/Instantiations:\s+(\d+)/)[1], 10); 11 | if (numInstantiations > maxInstantiations) { 12 | throw new Error(`Instantiations ${numInstantiations} > max ${maxInstantiations}`); 13 | } 14 | 15 | process.exit(0); 16 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/tools/auth.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const Server = require('mongodb-topology-manager').Server; 4 | const mongodb = require('mongodb'); 5 | 6 | run().catch(error => { 7 | console.error(error); 8 | process.exit(-1); 9 | }); 10 | 11 | async function run() { 12 | // Create new instance 13 | const server = new Server('mongod', { 14 | auth: null, 15 | dbpath: '/data/db/27017' 16 | }); 17 | 18 | // Purge the directory 19 | await server.purge(); 20 | 21 | // Start process 22 | await server.start(); 23 | 24 | const db = await mongodb.MongoClient.connect('mongodb://127.0.0.1:27017/admin'); 25 | 26 | await db.addUser('passwordIsTaco', 'taco', { 27 | roles: ['dbOwner'] 28 | }); 29 | 30 | console.log('done'); 31 | } 32 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/tools/repl.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | run().catch(error => { 4 | console.error(error); 5 | process.exit(-1); 6 | }); 7 | 8 | async function run() { 9 | const ReplSet = require('mongodb-memory-server').MongoMemoryReplSet; 10 | 11 | // Create new instance 12 | const replSet = new ReplSet({ 13 | binary: { 14 | version: process.argv[2] 15 | }, 16 | instanceOpts: [ 17 | // Set the expiry job in MongoDB to run every second 18 | { 19 | port: 27017, 20 | args: ['--setParameter', 'ttlMonitorSleepSecs=1'] 21 | } 22 | ], 23 | dbName: 'mongoose_test', 24 | replSet: { 25 | name: 'rs0', 26 | count: 2, 27 | storageEngine: 'wiredTiger' 28 | } 29 | }); 30 | 31 | await replSet.start(); 32 | await replSet.waitUntilRunning(); 33 | console.log('MongoDB-ReplicaSet is now running.'); 34 | console.log(replSet.getUri('mongoose_test')); 35 | } 36 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "strict": true, 4 | "strictNullChecks": true, 5 | "paths": { 6 | "mongoose" : ["./types/index.d.ts"] 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/types/augmentations.d.ts: -------------------------------------------------------------------------------- 1 | // this import is required so that types get merged instead of completely overwritten 2 | import 'bson'; 3 | 4 | declare module 'bson' { 5 | interface ObjectId { 6 | /** Mongoose automatically adds a conveniency "_id" getter on the base ObjectId class */ 7 | _id: this; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/types/callback.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'mongoose' { 2 | type CallbackError = NativeError | null; 3 | 4 | type Callback = (error: CallbackError, result: T) => void; 5 | 6 | type CallbackWithoutResult = (error: CallbackError) => void; 7 | type CallbackWithoutResultAndOptionalError = (error?: CallbackError) => void; 8 | } 9 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mongoose/types/validation.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'mongoose' { 2 | 3 | type SchemaValidator = RegExp | [RegExp, string] | Function | [Function, string] | ValidateOpts | ValidateOpts[]; 4 | 5 | interface ValidatorProps { 6 | path: string; 7 | value: any; 8 | } 9 | 10 | interface ValidatorMessageFn { 11 | (props: ValidatorProps): string; 12 | } 13 | 14 | interface ValidateFn { 15 | (value: T, props?: ValidatorProps & Record): boolean; 16 | } 17 | 18 | interface LegacyAsyncValidateFn { 19 | (value: T, done: (result: boolean) => void): void; 20 | } 21 | 22 | interface AsyncValidateFn { 23 | (value: T, props?: ValidatorProps & Record): Promise; 24 | } 25 | 26 | interface ValidateOpts { 27 | msg?: string; 28 | message?: string | ValidatorMessageFn; 29 | type?: string; 30 | validator: ValidateFn | LegacyAsyncValidateFn | AsyncValidateFn; 31 | propsParameter?: boolean; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mpath/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "4" 4 | - "5" 5 | - "6" 6 | - "7" 7 | - "8" 8 | - "9" 9 | - "10" 10 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mpath/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Reporting a Vulnerability 2 | 3 | Please report suspected security vulnerabilities to val [at] karpov [dot] io. 4 | You will receive a response from us within 72 hours. 5 | If the issue is confirmed, we will release a patch as soon as possible depending on complexity. 6 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mpath/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = exports = require('./lib'); 4 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mpath/test/.eslintrc.yml: -------------------------------------------------------------------------------- 1 | env: 2 | mocha: true 3 | rules: 4 | no-unused-vars: off -------------------------------------------------------------------------------- /mongoose_node/node_modules/mquery/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | **Do you want to request a *feature* or report a *bug*?** 4 | 5 | **What is the current behavior?** 6 | 7 | **If the current behavior is a bug, please provide the steps to reproduce.** 8 | 9 | **What is the expected behavior?** 10 | 11 | **What are the versions of Node.js and mquery are you are using? Note that "latest" is not a version.** 12 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mquery/.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | **Summary** 4 | 5 | 6 | 7 | **Examples** 8 | 9 | 10 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mquery/SECURITY.md: -------------------------------------------------------------------------------- 1 | Please follow the instructions on [Tidelift's security page](https://tidelift.com/docs/security) to report a security issue. 2 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mquery/lib/collection/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const env = require('../env'); 4 | 5 | if ('unknown' == env.type) { 6 | throw new Error('Unknown environment'); 7 | } 8 | 9 | module.exports = 10 | env.isNode ? require('./node') : 11 | env.isMongo ? require('./collection') : 12 | require('./collection'); 13 | 14 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/mquery/lib/env.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.isNode = 'undefined' != typeof process 4 | && 'object' == typeof module 5 | && 'object' == typeof global 6 | && 'function' == typeof Buffer 7 | && process.argv; 8 | 9 | exports.isMongo = !exports.isNode 10 | && 'function' == typeof printjson 11 | && 'function' == typeof ObjectId 12 | && 'function' == typeof rs 13 | && 'function' == typeof sh; 14 | 15 | exports.isBrowser = !exports.isNode 16 | && !exports.isMongo 17 | && 'undefined' != typeof window; 18 | 19 | exports.type = exports.isNode ? 'node' 20 | : exports.isMongo ? 'mongo' 21 | : exports.isBrowser ? 'browser' 22 | : 'unknown'; 23 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/ms/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ms", 3 | "version": "2.1.3", 4 | "description": "Tiny millisecond conversion utility", 5 | "repository": "vercel/ms", 6 | "main": "./index", 7 | "files": [ 8 | "index.js" 9 | ], 10 | "scripts": { 11 | "precommit": "lint-staged", 12 | "lint": "eslint lib/* bin/*", 13 | "test": "mocha tests.js" 14 | }, 15 | "eslintConfig": { 16 | "extends": "eslint:recommended", 17 | "env": { 18 | "node": true, 19 | "es6": true 20 | } 21 | }, 22 | "lint-staged": { 23 | "*.js": [ 24 | "npm run lint", 25 | "prettier --single-quote --write", 26 | "git add" 27 | ] 28 | }, 29 | "license": "MIT", 30 | "devDependencies": { 31 | "eslint": "4.18.2", 32 | "expect.js": "0.3.1", 33 | "husky": "0.14.3", 34 | "lint-staged": "5.0.0", 35 | "mocha": "4.0.1", 36 | "prettier": "2.0.5" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/saslprep/.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/saslprep/.gitattributes: -------------------------------------------------------------------------------- 1 | *.mem binary 2 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/saslprep/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - "6" 5 | - "8" 6 | - "10" 7 | - "12" 8 | 9 | before_install: 10 | - npm install -g npm@6 11 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/saslprep/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | All notable changes to the "saslprep" package will be documented in this file. 3 | 4 | ## [1.0.3] - 2019-05-01 5 | 6 | - Correctly get code points >U+FFFF ([#5](https://github.com/reklatsmasters/saslprep/pull/5)) 7 | - Fix perfomance downgrades from [#5](https://github.com/reklatsmasters/saslprep/pull/5). 8 | 9 | ## [1.0.2] - 2018-09-13 10 | 11 | - Reduced initialization time ([#3](https://github.com/reklatsmasters/saslprep/issues/3)) 12 | 13 | ## [1.0.1] - 2018-06-20 14 | 15 | - Reduced stack overhead of range creation ([#2](https://github.com/reklatsmasters/saslprep/pull/2)) 16 | 17 | ## [1.0.0] - 2017-06-21 18 | 19 | - First release 20 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/saslprep/code-points.mem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thapatechnical/mongo_thapa_course/62a0c9c64ea7621a668b124f53f64ae0f7eb5958/mongoose_node/node_modules/saslprep/code-points.mem -------------------------------------------------------------------------------- /mongoose_node/node_modules/saslprep/lib/util.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Create an array of numbers. 5 | * @param {number} from 6 | * @param {number} to 7 | * @returns {number[]} 8 | */ 9 | function range(from, to) { 10 | // TODO: make this inlined. 11 | const list = new Array(to - from + 1); 12 | 13 | for (let i = 0; i < list.length; i += 1) { 14 | list[i] = from + i; 15 | } 16 | return list; 17 | } 18 | 19 | module.exports = { 20 | range, 21 | }; 22 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/saslprep/test/util.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const { setFlagsFromString } = require('v8'); 4 | const { range } = require('../lib/util'); 5 | 6 | // 984 by default. 7 | setFlagsFromString('--stack_size=500'); 8 | 9 | test('should work', () => { 10 | const list = range(1, 3); 11 | expect(list).toEqual([1, 2, 3]); 12 | }); 13 | 14 | test('should work for large ranges', () => { 15 | expect(() => range(1, 1e6)).not.toThrow(); 16 | }); 17 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/sift/index.d.ts: -------------------------------------------------------------------------------- 1 | import sift from "./lib"; 2 | 3 | export default sift; 4 | export * from "./lib"; 5 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/sift/index.js: -------------------------------------------------------------------------------- 1 | const lib = require("./lib"); 2 | 3 | module.exports = lib.default; 4 | Object.assign(module.exports, lib); 5 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/sift/lib/index.d.ts: -------------------------------------------------------------------------------- 1 | import { Query, QueryOperators, BasicValueQuery, ArrayValueQuery, ValueQuery, NestedQuery, ShapeQuery, Options, createQueryTester, EqualsOperation, createQueryOperation, createEqualsOperation, createOperationTester } from "./core"; 2 | declare const createDefaultQueryOperation: (query: Query, ownerQuery: any, { compare, operations }?: Partial) => import("./core").QueryOperation; 3 | declare const createDefaultQueryTester: (query: Query, options?: Partial) => (item: unknown, key?: import("./utils").Key, owner?: any) => boolean; 4 | export { Query, QueryOperators, BasicValueQuery, ArrayValueQuery, ValueQuery, NestedQuery, ShapeQuery, EqualsOperation, createQueryTester, createOperationTester, createDefaultQueryOperation, createEqualsOperation, createQueryOperation }; 5 | export * from "./operations"; 6 | export default createDefaultQueryTester; 7 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/sift/lib/utils.d.ts: -------------------------------------------------------------------------------- 1 | export declare type Key = string | number; 2 | export declare type Comparator = (a: any, b: any) => boolean; 3 | export declare const typeChecker: (type: any) => (value: any) => value is TType; 4 | export declare const comparable: (value: any) => any; 5 | export declare const isArray: (value: any) => value is any[]; 6 | export declare const isObject: (value: any) => value is Object; 7 | export declare const isFunction: (value: any) => value is Function; 8 | export declare const isVanillaObject: (value: any) => boolean; 9 | export declare const equals: (a: any, b: any) => boolean; 10 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/sift/src/index.d.ts: -------------------------------------------------------------------------------- 1 | import { Query, QueryOperators, BasicValueQuery, ArrayValueQuery, ValueQuery, NestedQuery, ShapeQuery, Options, createQueryTester, EqualsOperation, createQueryOperation, createEqualsOperation, createOperationTester } from "./core"; 2 | declare const createDefaultQueryOperation: (query: Query, ownerQuery: any, { compare, operations }?: Partial) => import("./core").QueryOperation; 3 | declare const createDefaultQueryTester: (query: Query, options?: Partial) => (item: unknown, key?: import("./utils").Key, owner?: any) => boolean; 4 | export { Query, QueryOperators, BasicValueQuery, ArrayValueQuery, ValueQuery, NestedQuery, ShapeQuery, EqualsOperation, createQueryTester, createOperationTester, createDefaultQueryOperation, createEqualsOperation, createQueryOperation }; 5 | export * from "./operations"; 6 | export default createDefaultQueryTester; 7 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/sift/src/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAAkD;AAClD,iCAcgB;AA8Bd,kGAnCA,wBAAiB,OAmCA;AADjB,gGAjCA,sBAAe,OAiCA;AAKf,qGArCA,2BAAoB,OAqCA;AADpB,sGAnCA,4BAAqB,OAmCA;AAFrB,sGAhCA,4BAAqB,OAgCA;AA7BvB,MAAM,2BAA2B,GAAG,CAClC,KAAqB,EACrB,UAAe,EACf,EAAE,OAAO,EAAE,UAAU,KAAuB,EAAE,EAC9C,EAAE;IACF,OAAO,IAAA,2BAAoB,EAAC,KAAK,EAAE,UAAU,EAAE;QAC7C,OAAO;QACP,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,iBAAiB,EAAE,UAAU,IAAI,EAAE,CAAC;KACnE,CAAC,CAAC;AACL,CAAC,CAAC;AAqBA,kEAA2B;AAnB7B,MAAM,wBAAwB,GAAG,CAC/B,KAAqB,EACrB,UAA4B,EAAE,EAC9B,EAAE;IACF,MAAM,EAAE,GAAG,2BAA2B,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7D,OAAO,IAAA,4BAAqB,EAAC,EAAE,CAAC,CAAC;AACnC,CAAC,CAAC;AAiBF,+CAA6B;AAE7B,kBAAe,wBAAwB,CAAC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/sift/src/utils.d.ts: -------------------------------------------------------------------------------- 1 | export declare type Key = string | number; 2 | export declare type Comparator = (a: any, b: any) => boolean; 3 | export declare const typeChecker: (type: any) => (value: any) => value is TType; 4 | export declare const comparable: (value: any) => any; 5 | export declare const isArray: (value: any) => value is any[]; 6 | export declare const isObject: (value: any) => value is Object; 7 | export declare const isFunction: (value: any) => value is Function; 8 | export declare const isVanillaObject: (value: any) => boolean; 9 | export declare const equals: (a: any, b: any) => boolean; 10 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/smart-buffer/.prettierrc.yaml: -------------------------------------------------------------------------------- 1 | parser: typescript 2 | printWidth: 120 3 | tabWidth: 2 4 | singleQuote: true 5 | trailingComma: none -------------------------------------------------------------------------------- /mongoose_node/node_modules/smart-buffer/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 6 4 | - 8 5 | - 10 6 | - 12 7 | - stable 8 | 9 | before_script: 10 | - npm install -g typescript 11 | - tsc -p ./ 12 | 13 | script: "npm run coveralls" -------------------------------------------------------------------------------- /mongoose_node/node_modules/smart-buffer/docs/ROADMAP.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thapatechnical/mongo_thapa_course/62a0c9c64ea7621a668b124f53f64ae0f7eb5958/mongoose_node/node_modules/smart-buffer/docs/ROADMAP.md -------------------------------------------------------------------------------- /mongoose_node/node_modules/socks/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | parser: '@typescript-eslint/parser', 4 | plugins: [ 5 | '@typescript-eslint', 6 | ], 7 | extends: [ 8 | 'eslint:recommended', 9 | 'plugin:@typescript-eslint/recommended', 10 | ], 11 | }; -------------------------------------------------------------------------------- /mongoose_node/node_modules/socks/.prettierrc.yaml: -------------------------------------------------------------------------------- 1 | parser: typescript 2 | printWidth: 80 3 | tabWidth: 2 4 | singleQuote: true 5 | trailingComma: all 6 | arrowParens: always 7 | bracketSpacing: false -------------------------------------------------------------------------------- /mongoose_node/node_modules/socks/build/common/util.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.shuffleArray = exports.SocksClientError = void 0; 4 | /** 5 | * Error wrapper for SocksClient 6 | */ 7 | class SocksClientError extends Error { 8 | constructor(message, options) { 9 | super(message); 10 | this.options = options; 11 | } 12 | } 13 | exports.SocksClientError = SocksClientError; 14 | /** 15 | * Shuffles a given array. 16 | * @param array The array to shuffle. 17 | */ 18 | function shuffleArray(array) { 19 | for (let i = array.length - 1; i > 0; i--) { 20 | const j = Math.floor(Math.random() * (i + 1)); 21 | [array[i], array[j]] = [array[j], array[i]]; 22 | } 23 | } 24 | exports.shuffleArray = shuffleArray; 25 | //# sourceMappingURL=util.js.map -------------------------------------------------------------------------------- /mongoose_node/node_modules/socks/build/common/util.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/common/util.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAM,gBAAiB,SAAQ,KAAK;IAClC,YACE,OAAe,EACR,OAAqD;QAE5D,KAAK,CAAC,OAAO,CAAC,CAAC;QAFR,YAAO,GAAP,OAAO,CAA8C;IAG9D,CAAC;CACF;AAuBuB,4CAAgB;AArBxC;;;GAGG;AACH,SAAS,YAAY,CAAC,KAAgB;IACpC,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7C;AACH,CAAC;AAYyC,oCAAY"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/socks/build/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | var desc = Object.getOwnPropertyDescriptor(m, k); 5 | if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 6 | desc = { enumerable: true, get: function() { return m[k]; } }; 7 | } 8 | Object.defineProperty(o, k2, desc); 9 | }) : (function(o, m, k, k2) { 10 | if (k2 === undefined) k2 = k; 11 | o[k2] = m[k]; 12 | })); 13 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 14 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 15 | }; 16 | Object.defineProperty(exports, "__esModule", { value: true }); 17 | __exportStar(require("./client/socksclient"), exports); 18 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /mongoose_node/node_modules/socks/build/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"} -------------------------------------------------------------------------------- /mongoose_node/node_modules/socks/docs/examples/index.md: -------------------------------------------------------------------------------- 1 | # socks examples 2 | 3 | ## TypeScript Examples 4 | 5 | [Connect command](typescript/connectExample.md) 6 | 7 | [Bind command](typescript/bindExample.md) 8 | 9 | [Associate command](typescript/associateExample.md) 10 | 11 | ## JavaScript Examples 12 | 13 | [Connect command](javascript/connectExample.md) 14 | 15 | [Bind command](javascript/bindExample.md) 16 | 17 | [Associate command](javascript/associateExample.md) -------------------------------------------------------------------------------- /mongoose_node/node_modules/socks/docs/index.md: -------------------------------------------------------------------------------- 1 | # Documentation 2 | 3 | - [API Reference](https://github.com/JoshGlazebrook/socks#api-reference) 4 | 5 | - [Code Examples](./examples/index.md) -------------------------------------------------------------------------------- /mongoose_node/node_modules/socks/typings/common/helpers.d.ts: -------------------------------------------------------------------------------- 1 | import { SocksClientOptions, SocksClientChainOptions } from '../client/socksclient'; 2 | /** 3 | * Validates the provided SocksClientOptions 4 | * @param options { SocksClientOptions } 5 | * @param acceptedCommands { string[] } A list of accepted SocksProxy commands. 6 | */ 7 | declare function validateSocksClientOptions(options: SocksClientOptions, acceptedCommands?: string[]): void; 8 | /** 9 | * Validates the SocksClientChainOptions 10 | * @param options { SocksClientChainOptions } 11 | */ 12 | declare function validateSocksClientChainOptions(options: SocksClientChainOptions): void; 13 | export { validateSocksClientOptions, validateSocksClientChainOptions }; 14 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/socks/typings/common/receivebuffer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare class ReceiveBuffer { 3 | private buffer; 4 | private offset; 5 | private originalSize; 6 | constructor(size?: number); 7 | get length(): number; 8 | append(data: Buffer): number; 9 | peek(length: number): Buffer; 10 | get(length: number): Buffer; 11 | } 12 | export { ReceiveBuffer }; 13 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/socks/typings/common/util.d.ts: -------------------------------------------------------------------------------- 1 | import { SocksClientOptions, SocksClientChainOptions } from './constants'; 2 | /** 3 | * Error wrapper for SocksClient 4 | */ 5 | declare class SocksClientError extends Error { 6 | options: SocksClientOptions | SocksClientChainOptions; 7 | constructor(message: string, options: SocksClientOptions | SocksClientChainOptions); 8 | } 9 | /** 10 | * Shuffles a given array. 11 | * @param array The array to shuffle. 12 | */ 13 | declare function shuffleArray(array: unknown[]): void; 14 | declare type RequireOnlyOne = Pick> & { 15 | [K in Keys]?: Required> & Partial, undefined>>; 16 | }[Keys]; 17 | export { RequireOnlyOne, SocksClientError, shuffleArray }; 18 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/socks/typings/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './client/socksclient'; 2 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/sparse-bitfield/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/sparse-bitfield/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.10' 4 | - '0.12' 5 | - '4.0' 6 | - '5.0' 7 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/sparse-bitfield/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sparse-bitfield", 3 | "version": "3.0.3", 4 | "description": "Bitfield that allocates a series of small buffers to support sparse bits without allocating a massive buffer", 5 | "main": "index.js", 6 | "dependencies": { 7 | "memory-pager": "^1.0.2" 8 | }, 9 | "devDependencies": { 10 | "buffer-alloc": "^1.1.0", 11 | "standard": "^9.0.0", 12 | "tape": "^4.6.3" 13 | }, 14 | "scripts": { 15 | "test": "standard && tape test.js" 16 | }, 17 | "repository": { 18 | "type": "git", 19 | "url": "https://github.com/mafintosh/sparse-bitfield.git" 20 | }, 21 | "author": "Mathias Buus (@mafintosh)", 22 | "license": "MIT", 23 | "bugs": { 24 | "url": "https://github.com/mafintosh/sparse-bitfield/issues" 25 | }, 26 | "homepage": "https://github.com/mafintosh/sparse-bitfield" 27 | } 28 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/tr46/lib/statusMapping.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports.STATUS_MAPPING = { 4 | mapped: 1, 5 | valid: 2, 6 | disallowed: 3, 7 | disallowed_STD3_valid: 4, 8 | disallowed_STD3_mapped: 5, 9 | deviation: 6, 10 | ignored: 7 11 | }; 12 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/whatwg-url/lib/VoidFunction.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const conversions = require("webidl-conversions"); 4 | const utils = require("./utils.js"); 5 | 6 | exports.convert = (globalObject, value, { context = "The provided value" } = {}) => { 7 | if (typeof value !== "function") { 8 | throw new globalObject.TypeError(context + " is not a function"); 9 | } 10 | 11 | function invokeTheCallbackFunction() { 12 | const thisArg = utils.tryWrapperForImpl(this); 13 | let callResult; 14 | 15 | callResult = Reflect.apply(value, thisArg, []); 16 | } 17 | 18 | invokeTheCallbackFunction.construct = () => { 19 | let callResult = Reflect.construct(value, []); 20 | }; 21 | 22 | invokeTheCallbackFunction[utils.wrapperSymbol] = value; 23 | invokeTheCallbackFunction.objectReference = value; 24 | 25 | return invokeTheCallbackFunction; 26 | }; 27 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/whatwg-url/lib/encoding.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const utf8Encoder = new TextEncoder(); 3 | const utf8Decoder = new TextDecoder("utf-8", { ignoreBOM: true }); 4 | 5 | function utf8Encode(string) { 6 | return utf8Encoder.encode(string); 7 | } 8 | 9 | function utf8DecodeWithoutBOM(bytes) { 10 | return utf8Decoder.decode(bytes); 11 | } 12 | 13 | module.exports = { 14 | utf8Encode, 15 | utf8DecodeWithoutBOM 16 | }; 17 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/whatwg-url/lib/infra.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // Note that we take code points as JS numbers, not JS strings. 4 | 5 | function isASCIIDigit(c) { 6 | return c >= 0x30 && c <= 0x39; 7 | } 8 | 9 | function isASCIIAlpha(c) { 10 | return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A); 11 | } 12 | 13 | function isASCIIAlphanumeric(c) { 14 | return isASCIIAlpha(c) || isASCIIDigit(c); 15 | } 16 | 17 | function isASCIIHex(c) { 18 | return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66); 19 | } 20 | 21 | module.exports = { 22 | isASCIIDigit, 23 | isASCIIAlpha, 24 | isASCIIAlphanumeric, 25 | isASCIIHex 26 | }; 27 | -------------------------------------------------------------------------------- /mongoose_node/node_modules/whatwg-url/webidl2js-wrapper.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const URL = require("./lib/URL"); 4 | const URLSearchParams = require("./lib/URLSearchParams"); 5 | 6 | exports.URL = URL; 7 | exports.URLSearchParams = URLSearchParams; 8 | -------------------------------------------------------------------------------- /mongoose_node/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mongoose_node", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "mongoose": "^7.4.3" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /projection.js: -------------------------------------------------------------------------------- 1 | //* Projection 2 | // Which filed to display which not, only the _id is needs to be explicitly defined so that the _id won’t be included in our output. 3 | 4 | // Including Specific Fields: To include only specific fields in the query result, you can use the projection with a value of 1 for the fields you want to include. 5 | // db.products.find({}, { name:1, price:1}).limit(2) 6 | 7 | // Excluding Specific Fields:To exclude specific fields from the query result, you can use the projection with a value of 0 for the fields you want to exclude. 8 | 9 | // db.products.find({}, {_id:0, name:1, price:1}).limit(2) 10 | 11 | //! We cannot include and exclude fields in the same query projection in MongoDB. It's either inclusion or exclusion, not both simultaneously. 12 | // db.products.find({}, { _id: 0, name: 1, price: 1, price: 0 }).limit(2); 13 | --------------------------------------------------------------------------------