pecunia-root 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/prisma-adapter/index.d.mts +1 -1
- package/dist/adapters/prisma-adapter/index.mjs +1 -1
- package/dist/adapters/prisma-adapter/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +2 -16
- package/dist/_virtual/rolldown_runtime.mjs +0 -8
- package/dist/adapters/mongodb-adapter/index.d.mts +0 -35
- package/dist/adapters/mongodb-adapter/index.mjs +0 -314
- package/dist/adapters/mongodb-adapter/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs +0 -14
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs +0 -54
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs +0 -36
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs +0 -27
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs.map +0 -1
- package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs +0 -3728
- package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs.map +0 -1
- package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs +0 -137
- package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs +0 -211
- package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs +0 -95
- package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs +0 -158
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs +0 -195
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs +0 -710
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs +0 -53
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs +0 -63
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs +0 -368
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs +0 -234
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs +0 -545
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs +0 -83
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs +0 -146
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs +0 -58
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs +0 -30
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs +0 -135
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs +0 -25
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs +0 -47
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs +0 -362
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs +0 -58
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs +0 -123
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs +0 -128
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs +0 -133
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs +0 -126
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs +0 -79
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs +0 -65
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs +0 -127
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs +0 -47
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs +0 -44
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs +0 -101
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs +0 -33
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs +0 -53
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs +0 -29
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs +0 -83
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs +0 -36
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs +0 -32
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs +0 -206
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs +0 -45
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs +0 -213
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs +0 -411
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs +0 -288
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs +0 -423
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs +0 -483
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs +0 -207
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs +0 -116
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs +0 -183
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs +0 -55
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs +0 -60
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs +0 -139
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs +0 -28
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs +0 -117
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs +0 -182
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs +0 -304
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs +0 -34
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs +0 -739
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs +0 -805
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs +0 -174
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs +0 -726
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs +0 -172
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs +0 -103
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs +0 -66
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs +0 -41
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs +0 -365
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs +0 -50
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs +0 -48
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs +0 -23
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs +0 -106
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs +0 -428
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs +0 -124
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs +0 -95
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs +0 -1305
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs +0 -59
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs +0 -250
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs +0 -170
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs +0 -315
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs +0 -925
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs +0 -520
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs +0 -90
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs +0 -582
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs +0 -64
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs +0 -86
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs +0 -60
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs +0 -264
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs +0 -109
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs +0 -172
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs +0 -68
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs +0 -53
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs +0 -123
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs +0 -119
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs +0 -65
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs +0 -97
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs +0 -47
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs +0 -188
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs +0 -103
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs +0 -136
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs +0 -61
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs +0 -179
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs +0 -77
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs +0 -48
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs +0 -60
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs +0 -43
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs +0 -105
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs +0 -50
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs +0 -39
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs +0 -49
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs +0 -58
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs +0 -46
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs +0 -48
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs +0 -46
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs +0 -67
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs +0 -37
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs +0 -171
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs +0 -45
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs +0 -71
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs +0 -165
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs +0 -62
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs +0 -51
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs +0 -156
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs +0 -477
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs +0 -315
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs +0 -157
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs +0 -184
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs +0 -96
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs +0 -107
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs +0 -540
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs +0 -298
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs +0 -623
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs +0 -91
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs +0 -254
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs +0 -138
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs +0 -993
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs +0 -81
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs.map +0 -1
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs +0 -171
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs.map +0 -1
- package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs +0 -295
- package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs.map +0 -1
- package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs +0 -81
- package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs +0 -206
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs +0 -33590
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs.map +0 -1
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs +0 -37
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs.map +0 -1
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs +0 -18
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs.map +0 -1
- package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs +0 -252
- package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs +0 -41
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs +0 -41
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs.map +0 -1
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs +0 -173
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs.map +0 -1
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs +0 -334
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs.map +0 -1
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs +0 -90
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs.map +0 -1
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs +0 -356
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs.map +0 -1
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs +0 -23
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs.map +0 -1
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs +0 -29
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs.map +0 -1
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs +0 -140
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs.map +0 -1
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs +0 -831
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs.map +0 -1
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs +0 -77
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs.map +0 -1
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs +0 -147
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs.map +0 -1
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs +0 -17
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs.map +0 -1
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
-
import { require_bson } from "../bson.mjs";
|
|
3
|
-
import { require_error } from "../error.mjs";
|
|
4
|
-
import { require_common } from "./common.mjs";
|
|
5
|
-
import { require_constants } from "../cmap/wire_protocol/constants.mjs";
|
|
6
|
-
import { require_utils } from "../utils.mjs";
|
|
7
|
-
import { require_server_description } from "./server_description.mjs";
|
|
8
|
-
|
|
9
|
-
//#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.js
|
|
10
|
-
var require_topology_description = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.TopologyDescription = void 0;
|
|
13
|
-
const bson_1 = require_bson();
|
|
14
|
-
const WIRE_CONSTANTS = require_constants();
|
|
15
|
-
const error_1 = require_error();
|
|
16
|
-
const utils_1 = require_utils();
|
|
17
|
-
const common_1 = require_common();
|
|
18
|
-
const server_description_1 = require_server_description();
|
|
19
|
-
const MIN_SUPPORTED_SERVER_VERSION = WIRE_CONSTANTS.MIN_SUPPORTED_SERVER_VERSION;
|
|
20
|
-
const MAX_SUPPORTED_SERVER_VERSION = WIRE_CONSTANTS.MAX_SUPPORTED_SERVER_VERSION;
|
|
21
|
-
const MIN_SUPPORTED_WIRE_VERSION = WIRE_CONSTANTS.MIN_SUPPORTED_WIRE_VERSION;
|
|
22
|
-
const MAX_SUPPORTED_WIRE_VERSION = WIRE_CONSTANTS.MAX_SUPPORTED_WIRE_VERSION;
|
|
23
|
-
const MONGOS_OR_UNKNOWN = new Set([common_1.ServerType.Mongos, common_1.ServerType.Unknown]);
|
|
24
|
-
const MONGOS_OR_STANDALONE = new Set([common_1.ServerType.Mongos, common_1.ServerType.Standalone]);
|
|
25
|
-
const NON_PRIMARY_RS_MEMBERS = new Set([
|
|
26
|
-
common_1.ServerType.RSSecondary,
|
|
27
|
-
common_1.ServerType.RSArbiter,
|
|
28
|
-
common_1.ServerType.RSOther
|
|
29
|
-
]);
|
|
30
|
-
/**
|
|
31
|
-
* Representation of a deployment of servers
|
|
32
|
-
* @public
|
|
33
|
-
*/
|
|
34
|
-
var TopologyDescription = class TopologyDescription {
|
|
35
|
-
/**
|
|
36
|
-
* Create a TopologyDescription
|
|
37
|
-
*/
|
|
38
|
-
constructor(topologyType, serverDescriptions = null, setName = null, maxSetVersion = null, maxElectionId = null, commonWireVersion = null, options = null) {
|
|
39
|
-
options = options ?? {};
|
|
40
|
-
this.type = topologyType ?? common_1.TopologyType.Unknown;
|
|
41
|
-
this.servers = serverDescriptions ?? /* @__PURE__ */ new Map();
|
|
42
|
-
this.stale = false;
|
|
43
|
-
this.compatible = true;
|
|
44
|
-
this.heartbeatFrequencyMS = options.heartbeatFrequencyMS ?? 0;
|
|
45
|
-
this.localThresholdMS = options.localThresholdMS ?? 15;
|
|
46
|
-
this.setName = setName ?? null;
|
|
47
|
-
this.maxElectionId = maxElectionId ?? null;
|
|
48
|
-
this.maxSetVersion = maxSetVersion ?? null;
|
|
49
|
-
this.commonWireVersion = commonWireVersion ?? 0;
|
|
50
|
-
for (const serverDescription of this.servers.values()) {
|
|
51
|
-
if (serverDescription.type === common_1.ServerType.Unknown || serverDescription.type === common_1.ServerType.LoadBalancer) continue;
|
|
52
|
-
if (serverDescription.minWireVersion > MAX_SUPPORTED_WIRE_VERSION) {
|
|
53
|
-
this.compatible = false;
|
|
54
|
-
this.compatibilityError = `Server at ${serverDescription.address} requires wire version ${serverDescription.minWireVersion}, but this version of the driver only supports up to ${MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${MAX_SUPPORTED_SERVER_VERSION})`;
|
|
55
|
-
}
|
|
56
|
-
if (serverDescription.maxWireVersion < MIN_SUPPORTED_WIRE_VERSION) {
|
|
57
|
-
this.compatible = false;
|
|
58
|
-
this.compatibilityError = `Server at ${serverDescription.address} reports wire version ${serverDescription.maxWireVersion}, but this version of the driver requires at least ${MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${MIN_SUPPORTED_SERVER_VERSION}).`;
|
|
59
|
-
break;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
this.logicalSessionTimeoutMinutes = null;
|
|
63
|
-
for (const [, server] of this.servers) if (server.isReadable) {
|
|
64
|
-
if (server.logicalSessionTimeoutMinutes == null) {
|
|
65
|
-
this.logicalSessionTimeoutMinutes = null;
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
if (this.logicalSessionTimeoutMinutes == null) {
|
|
69
|
-
this.logicalSessionTimeoutMinutes = server.logicalSessionTimeoutMinutes;
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
this.logicalSessionTimeoutMinutes = Math.min(this.logicalSessionTimeoutMinutes, server.logicalSessionTimeoutMinutes);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Returns a new TopologyDescription based on the SrvPollingEvent
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
79
|
-
updateFromSrvPollingEvent(ev, srvMaxHosts = 0) {
|
|
80
|
-
/** The SRV addresses defines the set of addresses we should be using */
|
|
81
|
-
const incomingHostnames = ev.hostnames();
|
|
82
|
-
const currentHostnames = new Set(this.servers.keys());
|
|
83
|
-
const hostnamesToAdd = new Set(incomingHostnames);
|
|
84
|
-
const hostnamesToRemove = /* @__PURE__ */ new Set();
|
|
85
|
-
for (const hostname of currentHostnames) {
|
|
86
|
-
hostnamesToAdd.delete(hostname);
|
|
87
|
-
if (!incomingHostnames.has(hostname)) hostnamesToRemove.add(hostname);
|
|
88
|
-
}
|
|
89
|
-
if (hostnamesToAdd.size === 0 && hostnamesToRemove.size === 0) return this;
|
|
90
|
-
const serverDescriptions = new Map(this.servers);
|
|
91
|
-
for (const removedHost of hostnamesToRemove) serverDescriptions.delete(removedHost);
|
|
92
|
-
if (hostnamesToAdd.size > 0) {
|
|
93
|
-
if (srvMaxHosts === 0) for (const hostToAdd of hostnamesToAdd) serverDescriptions.set(hostToAdd, new server_description_1.ServerDescription(hostToAdd));
|
|
94
|
-
else if (serverDescriptions.size < srvMaxHosts) {
|
|
95
|
-
const selectedHosts = (0, utils_1.shuffle)(hostnamesToAdd, srvMaxHosts - serverDescriptions.size);
|
|
96
|
-
for (const selectedHostToAdd of selectedHosts) serverDescriptions.set(selectedHostToAdd, new server_description_1.ServerDescription(selectedHostToAdd));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return new TopologyDescription(this.type, serverDescriptions, this.setName, this.maxSetVersion, this.maxElectionId, this.commonWireVersion, {
|
|
100
|
-
heartbeatFrequencyMS: this.heartbeatFrequencyMS,
|
|
101
|
-
localThresholdMS: this.localThresholdMS
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Returns a copy of this description updated with a given ServerDescription
|
|
106
|
-
* @internal
|
|
107
|
-
*/
|
|
108
|
-
update(serverDescription) {
|
|
109
|
-
const address = serverDescription.address;
|
|
110
|
-
let { type: topologyType, setName, maxSetVersion, maxElectionId, commonWireVersion } = this;
|
|
111
|
-
const serverType = serverDescription.type;
|
|
112
|
-
const serverDescriptions = new Map(this.servers);
|
|
113
|
-
if (serverDescription.maxWireVersion !== 0) if (commonWireVersion == null) commonWireVersion = serverDescription.maxWireVersion;
|
|
114
|
-
else commonWireVersion = Math.min(commonWireVersion, serverDescription.maxWireVersion);
|
|
115
|
-
if (typeof serverDescription.setName === "string" && typeof setName === "string" && serverDescription.setName !== setName) if (topologyType === common_1.TopologyType.Single) serverDescription = new server_description_1.ServerDescription(address);
|
|
116
|
-
else serverDescriptions.delete(address);
|
|
117
|
-
serverDescriptions.set(address, serverDescription);
|
|
118
|
-
if (topologyType === common_1.TopologyType.Single) return new TopologyDescription(common_1.TopologyType.Single, serverDescriptions, setName, maxSetVersion, maxElectionId, commonWireVersion, {
|
|
119
|
-
heartbeatFrequencyMS: this.heartbeatFrequencyMS,
|
|
120
|
-
localThresholdMS: this.localThresholdMS
|
|
121
|
-
});
|
|
122
|
-
if (topologyType === common_1.TopologyType.Unknown) if (serverType === common_1.ServerType.Standalone && this.servers.size !== 1) serverDescriptions.delete(address);
|
|
123
|
-
else topologyType = topologyTypeForServerType(serverType);
|
|
124
|
-
if (topologyType === common_1.TopologyType.Sharded) {
|
|
125
|
-
if (!MONGOS_OR_UNKNOWN.has(serverType)) serverDescriptions.delete(address);
|
|
126
|
-
}
|
|
127
|
-
if (topologyType === common_1.TopologyType.ReplicaSetNoPrimary) {
|
|
128
|
-
if (MONGOS_OR_STANDALONE.has(serverType)) serverDescriptions.delete(address);
|
|
129
|
-
if (serverType === common_1.ServerType.RSPrimary) {
|
|
130
|
-
const result = updateRsFromPrimary(serverDescriptions, serverDescription, setName, maxSetVersion, maxElectionId);
|
|
131
|
-
topologyType = result[0];
|
|
132
|
-
setName = result[1];
|
|
133
|
-
maxSetVersion = result[2];
|
|
134
|
-
maxElectionId = result[3];
|
|
135
|
-
} else if (NON_PRIMARY_RS_MEMBERS.has(serverType)) {
|
|
136
|
-
const result = updateRsNoPrimaryFromMember(serverDescriptions, serverDescription, setName);
|
|
137
|
-
topologyType = result[0];
|
|
138
|
-
setName = result[1];
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
if (topologyType === common_1.TopologyType.ReplicaSetWithPrimary) if (MONGOS_OR_STANDALONE.has(serverType)) {
|
|
142
|
-
serverDescriptions.delete(address);
|
|
143
|
-
topologyType = checkHasPrimary(serverDescriptions);
|
|
144
|
-
} else if (serverType === common_1.ServerType.RSPrimary) {
|
|
145
|
-
const result = updateRsFromPrimary(serverDescriptions, serverDescription, setName, maxSetVersion, maxElectionId);
|
|
146
|
-
topologyType = result[0];
|
|
147
|
-
setName = result[1];
|
|
148
|
-
maxSetVersion = result[2];
|
|
149
|
-
maxElectionId = result[3];
|
|
150
|
-
} else if (NON_PRIMARY_RS_MEMBERS.has(serverType)) topologyType = updateRsWithPrimaryFromMember(serverDescriptions, serverDescription, setName);
|
|
151
|
-
else topologyType = checkHasPrimary(serverDescriptions);
|
|
152
|
-
return new TopologyDescription(topologyType, serverDescriptions, setName, maxSetVersion, maxElectionId, commonWireVersion, {
|
|
153
|
-
heartbeatFrequencyMS: this.heartbeatFrequencyMS,
|
|
154
|
-
localThresholdMS: this.localThresholdMS
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
get error() {
|
|
158
|
-
const descriptionsWithError = Array.from(this.servers.values()).filter((sd) => sd.error);
|
|
159
|
-
if (descriptionsWithError.length > 0) return descriptionsWithError[0].error;
|
|
160
|
-
return null;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Determines if the topology description has any known servers
|
|
164
|
-
*/
|
|
165
|
-
get hasKnownServers() {
|
|
166
|
-
return Array.from(this.servers.values()).some((sd) => sd.type !== common_1.ServerType.Unknown);
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Determines if this topology description has a data-bearing server available.
|
|
170
|
-
*/
|
|
171
|
-
get hasDataBearingServers() {
|
|
172
|
-
return Array.from(this.servers.values()).some((sd) => sd.isDataBearing);
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Determines if the topology has a definition for the provided address
|
|
176
|
-
* @internal
|
|
177
|
-
*/
|
|
178
|
-
hasServer(address) {
|
|
179
|
-
return this.servers.has(address);
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Returns a JSON-serializable representation of the TopologyDescription. This is primarily
|
|
183
|
-
* intended for use with JSON.stringify().
|
|
184
|
-
*
|
|
185
|
-
* This method will not throw.
|
|
186
|
-
*/
|
|
187
|
-
toJSON() {
|
|
188
|
-
return bson_1.EJSON.serialize(this);
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
exports.TopologyDescription = TopologyDescription;
|
|
192
|
-
function topologyTypeForServerType(serverType) {
|
|
193
|
-
switch (serverType) {
|
|
194
|
-
case common_1.ServerType.Standalone: return common_1.TopologyType.Single;
|
|
195
|
-
case common_1.ServerType.Mongos: return common_1.TopologyType.Sharded;
|
|
196
|
-
case common_1.ServerType.RSPrimary: return common_1.TopologyType.ReplicaSetWithPrimary;
|
|
197
|
-
case common_1.ServerType.RSOther:
|
|
198
|
-
case common_1.ServerType.RSSecondary: return common_1.TopologyType.ReplicaSetNoPrimary;
|
|
199
|
-
default: return common_1.TopologyType.Unknown;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
function updateRsFromPrimary(serverDescriptions, serverDescription, setName = null, maxSetVersion = null, maxElectionId = null) {
|
|
203
|
-
const setVersionElectionIdMismatch = (serverDescription$1, maxSetVersion$1, maxElectionId$1) => {
|
|
204
|
-
return `primary marked stale due to electionId/setVersion mismatch: server setVersion: ${serverDescription$1.setVersion}, server electionId: ${serverDescription$1.electionId}, topology setVersion: ${maxSetVersion$1}, topology electionId: ${maxElectionId$1}`;
|
|
205
|
-
};
|
|
206
|
-
setName = setName || serverDescription.setName;
|
|
207
|
-
if (setName !== serverDescription.setName) {
|
|
208
|
-
serverDescriptions.delete(serverDescription.address);
|
|
209
|
-
return [
|
|
210
|
-
checkHasPrimary(serverDescriptions),
|
|
211
|
-
setName,
|
|
212
|
-
maxSetVersion,
|
|
213
|
-
maxElectionId
|
|
214
|
-
];
|
|
215
|
-
}
|
|
216
|
-
if (serverDescription.maxWireVersion >= 17) {
|
|
217
|
-
const electionIdComparison = (0, utils_1.compareObjectId)(maxElectionId, serverDescription.electionId);
|
|
218
|
-
const maxElectionIdIsEqual = electionIdComparison === 0;
|
|
219
|
-
const maxElectionIdIsLess = electionIdComparison === -1;
|
|
220
|
-
const maxSetVersionIsLessOrEqual = (maxSetVersion ?? -1) <= (serverDescription.setVersion ?? -1);
|
|
221
|
-
if (maxElectionIdIsLess || maxElectionIdIsEqual && maxSetVersionIsLessOrEqual) {
|
|
222
|
-
maxElectionId = serverDescription.electionId;
|
|
223
|
-
maxSetVersion = serverDescription.setVersion;
|
|
224
|
-
} else {
|
|
225
|
-
serverDescriptions.set(serverDescription.address, new server_description_1.ServerDescription(serverDescription.address, void 0, { error: new error_1.MongoStalePrimaryError(setVersionElectionIdMismatch(serverDescription, maxSetVersion, maxElectionId)) }));
|
|
226
|
-
return [
|
|
227
|
-
checkHasPrimary(serverDescriptions),
|
|
228
|
-
setName,
|
|
229
|
-
maxSetVersion,
|
|
230
|
-
maxElectionId
|
|
231
|
-
];
|
|
232
|
-
}
|
|
233
|
-
} else {
|
|
234
|
-
const electionId = serverDescription.electionId ? serverDescription.electionId : null;
|
|
235
|
-
if (serverDescription.setVersion && electionId) {
|
|
236
|
-
if (maxSetVersion && maxElectionId) {
|
|
237
|
-
if (maxSetVersion > serverDescription.setVersion || (0, utils_1.compareObjectId)(maxElectionId, electionId) > 0) {
|
|
238
|
-
serverDescriptions.set(serverDescription.address, new server_description_1.ServerDescription(serverDescription.address, void 0, { error: new error_1.MongoStalePrimaryError(setVersionElectionIdMismatch(serverDescription, maxSetVersion, maxElectionId)) }));
|
|
239
|
-
return [
|
|
240
|
-
checkHasPrimary(serverDescriptions),
|
|
241
|
-
setName,
|
|
242
|
-
maxSetVersion,
|
|
243
|
-
maxElectionId
|
|
244
|
-
];
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
maxElectionId = serverDescription.electionId;
|
|
248
|
-
}
|
|
249
|
-
if (serverDescription.setVersion != null && (maxSetVersion == null || serverDescription.setVersion > maxSetVersion)) maxSetVersion = serverDescription.setVersion;
|
|
250
|
-
}
|
|
251
|
-
for (const [address, server] of serverDescriptions) if (server.type === common_1.ServerType.RSPrimary && server.address !== serverDescription.address) {
|
|
252
|
-
serverDescriptions.set(address, new server_description_1.ServerDescription(server.address, void 0, { error: new error_1.MongoStalePrimaryError("primary marked stale due to discovery of newer primary") }));
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
serverDescription.allHosts.forEach((address) => {
|
|
256
|
-
if (!serverDescriptions.has(address)) serverDescriptions.set(address, new server_description_1.ServerDescription(address));
|
|
257
|
-
});
|
|
258
|
-
const currentAddresses = Array.from(serverDescriptions.keys());
|
|
259
|
-
const responseAddresses = serverDescription.allHosts;
|
|
260
|
-
currentAddresses.filter((addr) => responseAddresses.indexOf(addr) === -1).forEach((address) => {
|
|
261
|
-
serverDescriptions.delete(address);
|
|
262
|
-
});
|
|
263
|
-
return [
|
|
264
|
-
checkHasPrimary(serverDescriptions),
|
|
265
|
-
setName,
|
|
266
|
-
maxSetVersion,
|
|
267
|
-
maxElectionId
|
|
268
|
-
];
|
|
269
|
-
}
|
|
270
|
-
function updateRsWithPrimaryFromMember(serverDescriptions, serverDescription, setName = null) {
|
|
271
|
-
if (setName == null) throw new error_1.MongoRuntimeError("Argument \"setName\" is required if connected to a replica set");
|
|
272
|
-
if (setName !== serverDescription.setName || serverDescription.me && serverDescription.address !== serverDescription.me) serverDescriptions.delete(serverDescription.address);
|
|
273
|
-
return checkHasPrimary(serverDescriptions);
|
|
274
|
-
}
|
|
275
|
-
function updateRsNoPrimaryFromMember(serverDescriptions, serverDescription, setName = null) {
|
|
276
|
-
const topologyType = common_1.TopologyType.ReplicaSetNoPrimary;
|
|
277
|
-
setName = setName ?? serverDescription.setName;
|
|
278
|
-
if (setName !== serverDescription.setName) {
|
|
279
|
-
serverDescriptions.delete(serverDescription.address);
|
|
280
|
-
return [topologyType, setName];
|
|
281
|
-
}
|
|
282
|
-
serverDescription.allHosts.forEach((address) => {
|
|
283
|
-
if (!serverDescriptions.has(address)) serverDescriptions.set(address, new server_description_1.ServerDescription(address));
|
|
284
|
-
});
|
|
285
|
-
if (serverDescription.me && serverDescription.address !== serverDescription.me) serverDescriptions.delete(serverDescription.address);
|
|
286
|
-
return [topologyType, setName];
|
|
287
|
-
}
|
|
288
|
-
function checkHasPrimary(serverDescriptions) {
|
|
289
|
-
for (const serverDescription of serverDescriptions.values()) if (serverDescription.type === common_1.ServerType.RSPrimary) return common_1.TopologyType.ReplicaSetWithPrimary;
|
|
290
|
-
return common_1.TopologyType.ReplicaSetNoPrimary;
|
|
291
|
-
}
|
|
292
|
-
}));
|
|
293
|
-
|
|
294
|
-
//#endregion
|
|
295
|
-
export default require_topology_description();
|
|
296
|
-
|
|
297
|
-
export { require_topology_description };
|
|
298
|
-
//# sourceMappingURL=topology_description.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"topology_description.mjs","names":["serverDescription","maxSetVersion","maxElectionId"],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TopologyDescription = void 0;\nconst bson_1 = require(\"../bson\");\nconst WIRE_CONSTANTS = require(\"../cmap/wire_protocol/constants\");\nconst error_1 = require(\"../error\");\nconst utils_1 = require(\"../utils\");\nconst common_1 = require(\"./common\");\nconst server_description_1 = require(\"./server_description\");\n// constants related to compatibility checks\nconst MIN_SUPPORTED_SERVER_VERSION = WIRE_CONSTANTS.MIN_SUPPORTED_SERVER_VERSION;\nconst MAX_SUPPORTED_SERVER_VERSION = WIRE_CONSTANTS.MAX_SUPPORTED_SERVER_VERSION;\nconst MIN_SUPPORTED_WIRE_VERSION = WIRE_CONSTANTS.MIN_SUPPORTED_WIRE_VERSION;\nconst MAX_SUPPORTED_WIRE_VERSION = WIRE_CONSTANTS.MAX_SUPPORTED_WIRE_VERSION;\nconst MONGOS_OR_UNKNOWN = new Set([common_1.ServerType.Mongos, common_1.ServerType.Unknown]);\nconst MONGOS_OR_STANDALONE = new Set([common_1.ServerType.Mongos, common_1.ServerType.Standalone]);\nconst NON_PRIMARY_RS_MEMBERS = new Set([\n common_1.ServerType.RSSecondary,\n common_1.ServerType.RSArbiter,\n common_1.ServerType.RSOther\n]);\n/**\n * Representation of a deployment of servers\n * @public\n */\nclass TopologyDescription {\n /**\n * Create a TopologyDescription\n */\n constructor(topologyType, serverDescriptions = null, setName = null, maxSetVersion = null, maxElectionId = null, commonWireVersion = null, options = null) {\n options = options ?? {};\n this.type = topologyType ?? common_1.TopologyType.Unknown;\n this.servers = serverDescriptions ?? new Map();\n this.stale = false;\n this.compatible = true;\n this.heartbeatFrequencyMS = options.heartbeatFrequencyMS ?? 0;\n this.localThresholdMS = options.localThresholdMS ?? 15;\n this.setName = setName ?? null;\n this.maxElectionId = maxElectionId ?? null;\n this.maxSetVersion = maxSetVersion ?? null;\n this.commonWireVersion = commonWireVersion ?? 0;\n // determine server compatibility\n for (const serverDescription of this.servers.values()) {\n // Load balancer mode is always compatible.\n if (serverDescription.type === common_1.ServerType.Unknown ||\n serverDescription.type === common_1.ServerType.LoadBalancer) {\n continue;\n }\n if (serverDescription.minWireVersion > MAX_SUPPORTED_WIRE_VERSION) {\n this.compatible = false;\n this.compatibilityError = `Server at ${serverDescription.address} requires wire version ${serverDescription.minWireVersion}, but this version of the driver only supports up to ${MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${MAX_SUPPORTED_SERVER_VERSION})`;\n }\n if (serverDescription.maxWireVersion < MIN_SUPPORTED_WIRE_VERSION) {\n this.compatible = false;\n this.compatibilityError = `Server at ${serverDescription.address} reports wire version ${serverDescription.maxWireVersion}, but this version of the driver requires at least ${MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${MIN_SUPPORTED_SERVER_VERSION}).`;\n break;\n }\n }\n // Whenever a client updates the TopologyDescription from a hello response, it MUST set\n // TopologyDescription.logicalSessionTimeoutMinutes to the smallest logicalSessionTimeoutMinutes\n // value among ServerDescriptions of all data-bearing server types. If any have a null\n // logicalSessionTimeoutMinutes, then TopologyDescription.logicalSessionTimeoutMinutes MUST be\n // set to null.\n this.logicalSessionTimeoutMinutes = null;\n for (const [, server] of this.servers) {\n if (server.isReadable) {\n if (server.logicalSessionTimeoutMinutes == null) {\n // If any of the servers have a null logicalSessionsTimeout, then the whole topology does\n this.logicalSessionTimeoutMinutes = null;\n break;\n }\n if (this.logicalSessionTimeoutMinutes == null) {\n // First server with a non null logicalSessionsTimeout\n this.logicalSessionTimeoutMinutes = server.logicalSessionTimeoutMinutes;\n continue;\n }\n // Always select the smaller of the:\n // current server logicalSessionsTimeout and the topologies logicalSessionsTimeout\n this.logicalSessionTimeoutMinutes = Math.min(this.logicalSessionTimeoutMinutes, server.logicalSessionTimeoutMinutes);\n }\n }\n }\n /**\n * Returns a new TopologyDescription based on the SrvPollingEvent\n * @internal\n */\n updateFromSrvPollingEvent(ev, srvMaxHosts = 0) {\n /** The SRV addresses defines the set of addresses we should be using */\n const incomingHostnames = ev.hostnames();\n const currentHostnames = new Set(this.servers.keys());\n const hostnamesToAdd = new Set(incomingHostnames);\n const hostnamesToRemove = new Set();\n for (const hostname of currentHostnames) {\n // filter hostnamesToAdd (made from incomingHostnames) down to what is *not* present in currentHostnames\n hostnamesToAdd.delete(hostname);\n if (!incomingHostnames.has(hostname)) {\n // If the SRV Records no longer include this hostname\n // we have to stop using it\n hostnamesToRemove.add(hostname);\n }\n }\n if (hostnamesToAdd.size === 0 && hostnamesToRemove.size === 0) {\n // No new hosts to add and none to remove\n return this;\n }\n const serverDescriptions = new Map(this.servers);\n for (const removedHost of hostnamesToRemove) {\n serverDescriptions.delete(removedHost);\n }\n if (hostnamesToAdd.size > 0) {\n if (srvMaxHosts === 0) {\n // Add all!\n for (const hostToAdd of hostnamesToAdd) {\n serverDescriptions.set(hostToAdd, new server_description_1.ServerDescription(hostToAdd));\n }\n }\n else if (serverDescriptions.size < srvMaxHosts) {\n // Add only the amount needed to get us back to srvMaxHosts\n const selectedHosts = (0, utils_1.shuffle)(hostnamesToAdd, srvMaxHosts - serverDescriptions.size);\n for (const selectedHostToAdd of selectedHosts) {\n serverDescriptions.set(selectedHostToAdd, new server_description_1.ServerDescription(selectedHostToAdd));\n }\n }\n }\n return new TopologyDescription(this.type, serverDescriptions, this.setName, this.maxSetVersion, this.maxElectionId, this.commonWireVersion, { heartbeatFrequencyMS: this.heartbeatFrequencyMS, localThresholdMS: this.localThresholdMS });\n }\n /**\n * Returns a copy of this description updated with a given ServerDescription\n * @internal\n */\n update(serverDescription) {\n const address = serverDescription.address;\n // potentially mutated values\n let { type: topologyType, setName, maxSetVersion, maxElectionId, commonWireVersion } = this;\n const serverType = serverDescription.type;\n const serverDescriptions = new Map(this.servers);\n // update common wire version\n if (serverDescription.maxWireVersion !== 0) {\n if (commonWireVersion == null) {\n commonWireVersion = serverDescription.maxWireVersion;\n }\n else {\n commonWireVersion = Math.min(commonWireVersion, serverDescription.maxWireVersion);\n }\n }\n if (typeof serverDescription.setName === 'string' &&\n typeof setName === 'string' &&\n serverDescription.setName !== setName) {\n if (topologyType === common_1.TopologyType.Single) {\n // \"Single\" Topology with setName mismatch is direct connection usage, mark unknown do not remove\n serverDescription = new server_description_1.ServerDescription(address);\n }\n else {\n serverDescriptions.delete(address);\n }\n }\n // update the actual server description\n serverDescriptions.set(address, serverDescription);\n if (topologyType === common_1.TopologyType.Single) {\n // once we are defined as single, that never changes\n return new TopologyDescription(common_1.TopologyType.Single, serverDescriptions, setName, maxSetVersion, maxElectionId, commonWireVersion, { heartbeatFrequencyMS: this.heartbeatFrequencyMS, localThresholdMS: this.localThresholdMS });\n }\n if (topologyType === common_1.TopologyType.Unknown) {\n if (serverType === common_1.ServerType.Standalone && this.servers.size !== 1) {\n serverDescriptions.delete(address);\n }\n else {\n topologyType = topologyTypeForServerType(serverType);\n }\n }\n if (topologyType === common_1.TopologyType.Sharded) {\n if (!MONGOS_OR_UNKNOWN.has(serverType)) {\n serverDescriptions.delete(address);\n }\n }\n if (topologyType === common_1.TopologyType.ReplicaSetNoPrimary) {\n if (MONGOS_OR_STANDALONE.has(serverType)) {\n serverDescriptions.delete(address);\n }\n if (serverType === common_1.ServerType.RSPrimary) {\n const result = updateRsFromPrimary(serverDescriptions, serverDescription, setName, maxSetVersion, maxElectionId);\n topologyType = result[0];\n setName = result[1];\n maxSetVersion = result[2];\n maxElectionId = result[3];\n }\n else if (NON_PRIMARY_RS_MEMBERS.has(serverType)) {\n const result = updateRsNoPrimaryFromMember(serverDescriptions, serverDescription, setName);\n topologyType = result[0];\n setName = result[1];\n }\n }\n if (topologyType === common_1.TopologyType.ReplicaSetWithPrimary) {\n if (MONGOS_OR_STANDALONE.has(serverType)) {\n serverDescriptions.delete(address);\n topologyType = checkHasPrimary(serverDescriptions);\n }\n else if (serverType === common_1.ServerType.RSPrimary) {\n const result = updateRsFromPrimary(serverDescriptions, serverDescription, setName, maxSetVersion, maxElectionId);\n topologyType = result[0];\n setName = result[1];\n maxSetVersion = result[2];\n maxElectionId = result[3];\n }\n else if (NON_PRIMARY_RS_MEMBERS.has(serverType)) {\n topologyType = updateRsWithPrimaryFromMember(serverDescriptions, serverDescription, setName);\n }\n else {\n topologyType = checkHasPrimary(serverDescriptions);\n }\n }\n return new TopologyDescription(topologyType, serverDescriptions, setName, maxSetVersion, maxElectionId, commonWireVersion, { heartbeatFrequencyMS: this.heartbeatFrequencyMS, localThresholdMS: this.localThresholdMS });\n }\n get error() {\n const descriptionsWithError = Array.from(this.servers.values()).filter((sd) => sd.error);\n if (descriptionsWithError.length > 0) {\n return descriptionsWithError[0].error;\n }\n return null;\n }\n /**\n * Determines if the topology description has any known servers\n */\n get hasKnownServers() {\n return Array.from(this.servers.values()).some((sd) => sd.type !== common_1.ServerType.Unknown);\n }\n /**\n * Determines if this topology description has a data-bearing server available.\n */\n get hasDataBearingServers() {\n return Array.from(this.servers.values()).some((sd) => sd.isDataBearing);\n }\n /**\n * Determines if the topology has a definition for the provided address\n * @internal\n */\n hasServer(address) {\n return this.servers.has(address);\n }\n /**\n * Returns a JSON-serializable representation of the TopologyDescription. This is primarily\n * intended for use with JSON.stringify().\n *\n * This method will not throw.\n */\n toJSON() {\n return bson_1.EJSON.serialize(this);\n }\n}\nexports.TopologyDescription = TopologyDescription;\nfunction topologyTypeForServerType(serverType) {\n switch (serverType) {\n case common_1.ServerType.Standalone:\n return common_1.TopologyType.Single;\n case common_1.ServerType.Mongos:\n return common_1.TopologyType.Sharded;\n case common_1.ServerType.RSPrimary:\n return common_1.TopologyType.ReplicaSetWithPrimary;\n case common_1.ServerType.RSOther:\n case common_1.ServerType.RSSecondary:\n return common_1.TopologyType.ReplicaSetNoPrimary;\n default:\n return common_1.TopologyType.Unknown;\n }\n}\nfunction updateRsFromPrimary(serverDescriptions, serverDescription, setName = null, maxSetVersion = null, maxElectionId = null) {\n const setVersionElectionIdMismatch = (serverDescription, maxSetVersion, maxElectionId) => {\n return (`primary marked stale due to electionId/setVersion mismatch:` +\n ` server setVersion: ${serverDescription.setVersion},` +\n ` server electionId: ${serverDescription.electionId},` +\n ` topology setVersion: ${maxSetVersion},` +\n ` topology electionId: ${maxElectionId}`);\n };\n setName = setName || serverDescription.setName;\n if (setName !== serverDescription.setName) {\n serverDescriptions.delete(serverDescription.address);\n return [checkHasPrimary(serverDescriptions), setName, maxSetVersion, maxElectionId];\n }\n if (serverDescription.maxWireVersion >= 17) {\n const electionIdComparison = (0, utils_1.compareObjectId)(maxElectionId, serverDescription.electionId);\n const maxElectionIdIsEqual = electionIdComparison === 0;\n const maxElectionIdIsLess = electionIdComparison === -1;\n const maxSetVersionIsLessOrEqual = (maxSetVersion ?? -1) <= (serverDescription.setVersion ?? -1);\n if (maxElectionIdIsLess || (maxElectionIdIsEqual && maxSetVersionIsLessOrEqual)) {\n // The reported electionId was greater\n // or the electionId was equal and reported setVersion was greater\n // Always update both values, they are a tuple\n maxElectionId = serverDescription.electionId;\n maxSetVersion = serverDescription.setVersion;\n }\n else {\n // Stale primary\n // replace serverDescription with a default ServerDescription of type \"Unknown\"\n serverDescriptions.set(serverDescription.address, new server_description_1.ServerDescription(serverDescription.address, undefined, {\n error: new error_1.MongoStalePrimaryError(setVersionElectionIdMismatch(serverDescription, maxSetVersion, maxElectionId))\n }));\n return [checkHasPrimary(serverDescriptions), setName, maxSetVersion, maxElectionId];\n }\n }\n else {\n const electionId = serverDescription.electionId ? serverDescription.electionId : null;\n if (serverDescription.setVersion && electionId) {\n if (maxSetVersion && maxElectionId) {\n if (maxSetVersion > serverDescription.setVersion ||\n (0, utils_1.compareObjectId)(maxElectionId, electionId) > 0) {\n // this primary is stale, we must remove it\n serverDescriptions.set(serverDescription.address, new server_description_1.ServerDescription(serverDescription.address, undefined, {\n error: new error_1.MongoStalePrimaryError(setVersionElectionIdMismatch(serverDescription, maxSetVersion, maxElectionId))\n }));\n return [checkHasPrimary(serverDescriptions), setName, maxSetVersion, maxElectionId];\n }\n }\n maxElectionId = serverDescription.electionId;\n }\n if (serverDescription.setVersion != null &&\n (maxSetVersion == null || serverDescription.setVersion > maxSetVersion)) {\n maxSetVersion = serverDescription.setVersion;\n }\n }\n // We've heard from the primary. Is it the same primary as before?\n for (const [address, server] of serverDescriptions) {\n if (server.type === common_1.ServerType.RSPrimary && server.address !== serverDescription.address) {\n // Reset old primary's type to Unknown.\n serverDescriptions.set(address, new server_description_1.ServerDescription(server.address, undefined, {\n error: new error_1.MongoStalePrimaryError('primary marked stale due to discovery of newer primary')\n }));\n // There can only be one primary\n break;\n }\n }\n // Discover new hosts from this primary's response.\n serverDescription.allHosts.forEach((address) => {\n if (!serverDescriptions.has(address)) {\n serverDescriptions.set(address, new server_description_1.ServerDescription(address));\n }\n });\n // Remove hosts not in the response.\n const currentAddresses = Array.from(serverDescriptions.keys());\n const responseAddresses = serverDescription.allHosts;\n currentAddresses\n .filter((addr) => responseAddresses.indexOf(addr) === -1)\n .forEach((address) => {\n serverDescriptions.delete(address);\n });\n return [checkHasPrimary(serverDescriptions), setName, maxSetVersion, maxElectionId];\n}\nfunction updateRsWithPrimaryFromMember(serverDescriptions, serverDescription, setName = null) {\n if (setName == null) {\n // TODO(NODE-3483): should be an appropriate runtime error\n throw new error_1.MongoRuntimeError('Argument \"setName\" is required if connected to a replica set');\n }\n if (setName !== serverDescription.setName ||\n (serverDescription.me && serverDescription.address !== serverDescription.me)) {\n serverDescriptions.delete(serverDescription.address);\n }\n return checkHasPrimary(serverDescriptions);\n}\nfunction updateRsNoPrimaryFromMember(serverDescriptions, serverDescription, setName = null) {\n const topologyType = common_1.TopologyType.ReplicaSetNoPrimary;\n setName = setName ?? serverDescription.setName;\n if (setName !== serverDescription.setName) {\n serverDescriptions.delete(serverDescription.address);\n return [topologyType, setName];\n }\n serverDescription.allHosts.forEach((address) => {\n if (!serverDescriptions.has(address)) {\n serverDescriptions.set(address, new server_description_1.ServerDescription(address));\n }\n });\n if (serverDescription.me && serverDescription.address !== serverDescription.me) {\n serverDescriptions.delete(serverDescription.address);\n }\n return [topologyType, setName];\n}\nfunction checkHasPrimary(serverDescriptions) {\n for (const serverDescription of serverDescriptions.values()) {\n if (serverDescription.type === common_1.ServerType.RSPrimary) {\n return common_1.TopologyType.ReplicaSetWithPrimary;\n }\n }\n return common_1.TopologyType.ReplicaSetNoPrimary;\n}\n//# sourceMappingURL=topology_description.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,sBAAsB,KAAK;CACnC,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CAEN,MAAM,+BAA+B,eAAe;CACpD,MAAM,+BAA+B,eAAe;CACpD,MAAM,6BAA6B,eAAe;CAClD,MAAM,6BAA6B,eAAe;CAClD,MAAM,oBAAoB,IAAI,IAAI,CAAC,SAAS,WAAW,QAAQ,SAAS,WAAW,QAAQ,CAAC;CAC5F,MAAM,uBAAuB,IAAI,IAAI,CAAC,SAAS,WAAW,QAAQ,SAAS,WAAW,WAAW,CAAC;CAClG,MAAM,yBAAyB,IAAI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