pecunia-root 0.1.1 → 0.1.3
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/context/index.mjs +1 -1
- package/dist/context/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
package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs
DELETED
|
@@ -1,831 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
-
import { require_tr46 } from "../../../../tr46@5.1.1/node_modules/tr46/index.mjs";
|
|
3
|
-
import { require_infra } from "./infra.mjs";
|
|
4
|
-
import { require_encoding } from "./encoding.mjs";
|
|
5
|
-
import { require_percent_encoding } from "./percent-encoding.mjs";
|
|
6
|
-
|
|
7
|
-
//#region ../../node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.js
|
|
8
|
-
var require_url_state_machine = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9
|
-
const tr46 = require_tr46();
|
|
10
|
-
const infra = require_infra();
|
|
11
|
-
const { utf8DecodeWithoutBOM } = require_encoding();
|
|
12
|
-
const { percentDecodeString, utf8PercentEncodeCodePoint, utf8PercentEncodeString, isC0ControlPercentEncode, isFragmentPercentEncode, isQueryPercentEncode, isSpecialQueryPercentEncode, isPathPercentEncode, isUserinfoPercentEncode } = require_percent_encoding();
|
|
13
|
-
function p(char) {
|
|
14
|
-
return char.codePointAt(0);
|
|
15
|
-
}
|
|
16
|
-
const specialSchemes = {
|
|
17
|
-
ftp: 21,
|
|
18
|
-
file: null,
|
|
19
|
-
http: 80,
|
|
20
|
-
https: 443,
|
|
21
|
-
ws: 80,
|
|
22
|
-
wss: 443
|
|
23
|
-
};
|
|
24
|
-
const failure = Symbol("failure");
|
|
25
|
-
function countSymbols(str) {
|
|
26
|
-
return [...str].length;
|
|
27
|
-
}
|
|
28
|
-
function at(input, idx) {
|
|
29
|
-
const c = input[idx];
|
|
30
|
-
return isNaN(c) ? void 0 : String.fromCodePoint(c);
|
|
31
|
-
}
|
|
32
|
-
function isSingleDot(buffer) {
|
|
33
|
-
return buffer === "." || buffer.toLowerCase() === "%2e";
|
|
34
|
-
}
|
|
35
|
-
function isDoubleDot(buffer) {
|
|
36
|
-
buffer = buffer.toLowerCase();
|
|
37
|
-
return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e";
|
|
38
|
-
}
|
|
39
|
-
function isWindowsDriveLetterCodePoints(cp1, cp2) {
|
|
40
|
-
return infra.isASCIIAlpha(cp1) && (cp2 === p(":") || cp2 === p("|"));
|
|
41
|
-
}
|
|
42
|
-
function isWindowsDriveLetterString(string) {
|
|
43
|
-
return string.length === 2 && infra.isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|");
|
|
44
|
-
}
|
|
45
|
-
function isNormalizedWindowsDriveLetterString(string) {
|
|
46
|
-
return string.length === 2 && infra.isASCIIAlpha(string.codePointAt(0)) && string[1] === ":";
|
|
47
|
-
}
|
|
48
|
-
function containsForbiddenHostCodePoint(string) {
|
|
49
|
-
return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u) !== -1;
|
|
50
|
-
}
|
|
51
|
-
function containsForbiddenDomainCodePoint(string) {
|
|
52
|
-
return containsForbiddenHostCodePoint(string) || string.search(/[\u0000-\u001F]|%|\u007F/u) !== -1;
|
|
53
|
-
}
|
|
54
|
-
function isSpecialScheme(scheme) {
|
|
55
|
-
return specialSchemes[scheme] !== void 0;
|
|
56
|
-
}
|
|
57
|
-
function isSpecial(url) {
|
|
58
|
-
return isSpecialScheme(url.scheme);
|
|
59
|
-
}
|
|
60
|
-
function isNotSpecial(url) {
|
|
61
|
-
return !isSpecialScheme(url.scheme);
|
|
62
|
-
}
|
|
63
|
-
function defaultPort(scheme) {
|
|
64
|
-
return specialSchemes[scheme];
|
|
65
|
-
}
|
|
66
|
-
function parseIPv4Number(input) {
|
|
67
|
-
if (input === "") return failure;
|
|
68
|
-
let R = 10;
|
|
69
|
-
if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") {
|
|
70
|
-
input = input.substring(2);
|
|
71
|
-
R = 16;
|
|
72
|
-
} else if (input.length >= 2 && input.charAt(0) === "0") {
|
|
73
|
-
input = input.substring(1);
|
|
74
|
-
R = 8;
|
|
75
|
-
}
|
|
76
|
-
if (input === "") return 0;
|
|
77
|
-
let regex = /[^0-7]/u;
|
|
78
|
-
if (R === 10) regex = /[^0-9]/u;
|
|
79
|
-
if (R === 16) regex = /[^0-9A-Fa-f]/u;
|
|
80
|
-
if (regex.test(input)) return failure;
|
|
81
|
-
return parseInt(input, R);
|
|
82
|
-
}
|
|
83
|
-
function parseIPv4(input) {
|
|
84
|
-
const parts = input.split(".");
|
|
85
|
-
if (parts[parts.length - 1] === "") {
|
|
86
|
-
if (parts.length > 1) parts.pop();
|
|
87
|
-
}
|
|
88
|
-
if (parts.length > 4) return failure;
|
|
89
|
-
const numbers = [];
|
|
90
|
-
for (const part of parts) {
|
|
91
|
-
const n = parseIPv4Number(part);
|
|
92
|
-
if (n === failure) return failure;
|
|
93
|
-
numbers.push(n);
|
|
94
|
-
}
|
|
95
|
-
for (let i = 0; i < numbers.length - 1; ++i) if (numbers[i] > 255) return failure;
|
|
96
|
-
if (numbers[numbers.length - 1] >= 256 ** (5 - numbers.length)) return failure;
|
|
97
|
-
let ipv4 = numbers.pop();
|
|
98
|
-
let counter = 0;
|
|
99
|
-
for (const n of numbers) {
|
|
100
|
-
ipv4 += n * 256 ** (3 - counter);
|
|
101
|
-
++counter;
|
|
102
|
-
}
|
|
103
|
-
return ipv4;
|
|
104
|
-
}
|
|
105
|
-
function serializeIPv4(address) {
|
|
106
|
-
let output = "";
|
|
107
|
-
let n = address;
|
|
108
|
-
for (let i = 1; i <= 4; ++i) {
|
|
109
|
-
output = String(n % 256) + output;
|
|
110
|
-
if (i !== 4) output = `.${output}`;
|
|
111
|
-
n = Math.floor(n / 256);
|
|
112
|
-
}
|
|
113
|
-
return output;
|
|
114
|
-
}
|
|
115
|
-
function parseIPv6(input) {
|
|
116
|
-
const address = [
|
|
117
|
-
0,
|
|
118
|
-
0,
|
|
119
|
-
0,
|
|
120
|
-
0,
|
|
121
|
-
0,
|
|
122
|
-
0,
|
|
123
|
-
0,
|
|
124
|
-
0
|
|
125
|
-
];
|
|
126
|
-
let pieceIndex = 0;
|
|
127
|
-
let compress = null;
|
|
128
|
-
let pointer = 0;
|
|
129
|
-
input = Array.from(input, (c) => c.codePointAt(0));
|
|
130
|
-
if (input[pointer] === p(":")) {
|
|
131
|
-
if (input[pointer + 1] !== p(":")) return failure;
|
|
132
|
-
pointer += 2;
|
|
133
|
-
++pieceIndex;
|
|
134
|
-
compress = pieceIndex;
|
|
135
|
-
}
|
|
136
|
-
while (pointer < input.length) {
|
|
137
|
-
if (pieceIndex === 8) return failure;
|
|
138
|
-
if (input[pointer] === p(":")) {
|
|
139
|
-
if (compress !== null) return failure;
|
|
140
|
-
++pointer;
|
|
141
|
-
++pieceIndex;
|
|
142
|
-
compress = pieceIndex;
|
|
143
|
-
continue;
|
|
144
|
-
}
|
|
145
|
-
let value = 0;
|
|
146
|
-
let length = 0;
|
|
147
|
-
while (length < 4 && infra.isASCIIHex(input[pointer])) {
|
|
148
|
-
value = value * 16 + parseInt(at(input, pointer), 16);
|
|
149
|
-
++pointer;
|
|
150
|
-
++length;
|
|
151
|
-
}
|
|
152
|
-
if (input[pointer] === p(".")) {
|
|
153
|
-
if (length === 0) return failure;
|
|
154
|
-
pointer -= length;
|
|
155
|
-
if (pieceIndex > 6) return failure;
|
|
156
|
-
let numbersSeen = 0;
|
|
157
|
-
while (input[pointer] !== void 0) {
|
|
158
|
-
let ipv4Piece = null;
|
|
159
|
-
if (numbersSeen > 0) if (input[pointer] === p(".") && numbersSeen < 4) ++pointer;
|
|
160
|
-
else return failure;
|
|
161
|
-
if (!infra.isASCIIDigit(input[pointer])) return failure;
|
|
162
|
-
while (infra.isASCIIDigit(input[pointer])) {
|
|
163
|
-
const number = parseInt(at(input, pointer));
|
|
164
|
-
if (ipv4Piece === null) ipv4Piece = number;
|
|
165
|
-
else if (ipv4Piece === 0) return failure;
|
|
166
|
-
else ipv4Piece = ipv4Piece * 10 + number;
|
|
167
|
-
if (ipv4Piece > 255) return failure;
|
|
168
|
-
++pointer;
|
|
169
|
-
}
|
|
170
|
-
address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
|
|
171
|
-
++numbersSeen;
|
|
172
|
-
if (numbersSeen === 2 || numbersSeen === 4) ++pieceIndex;
|
|
173
|
-
}
|
|
174
|
-
if (numbersSeen !== 4) return failure;
|
|
175
|
-
break;
|
|
176
|
-
} else if (input[pointer] === p(":")) {
|
|
177
|
-
++pointer;
|
|
178
|
-
if (input[pointer] === void 0) return failure;
|
|
179
|
-
} else if (input[pointer] !== void 0) return failure;
|
|
180
|
-
address[pieceIndex] = value;
|
|
181
|
-
++pieceIndex;
|
|
182
|
-
}
|
|
183
|
-
if (compress !== null) {
|
|
184
|
-
let swaps = pieceIndex - compress;
|
|
185
|
-
pieceIndex = 7;
|
|
186
|
-
while (pieceIndex !== 0 && swaps > 0) {
|
|
187
|
-
const temp = address[compress + swaps - 1];
|
|
188
|
-
address[compress + swaps - 1] = address[pieceIndex];
|
|
189
|
-
address[pieceIndex] = temp;
|
|
190
|
-
--pieceIndex;
|
|
191
|
-
--swaps;
|
|
192
|
-
}
|
|
193
|
-
} else if (compress === null && pieceIndex !== 8) return failure;
|
|
194
|
-
return address;
|
|
195
|
-
}
|
|
196
|
-
function serializeIPv6(address) {
|
|
197
|
-
let output = "";
|
|
198
|
-
const compress = findTheIPv6AddressCompressedPieceIndex(address);
|
|
199
|
-
let ignore0 = false;
|
|
200
|
-
for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) {
|
|
201
|
-
if (ignore0 && address[pieceIndex] === 0) continue;
|
|
202
|
-
else if (ignore0) ignore0 = false;
|
|
203
|
-
if (compress === pieceIndex) {
|
|
204
|
-
output += pieceIndex === 0 ? "::" : ":";
|
|
205
|
-
ignore0 = true;
|
|
206
|
-
continue;
|
|
207
|
-
}
|
|
208
|
-
output += address[pieceIndex].toString(16);
|
|
209
|
-
if (pieceIndex !== 7) output += ":";
|
|
210
|
-
}
|
|
211
|
-
return output;
|
|
212
|
-
}
|
|
213
|
-
function parseHost(input, isOpaque = false) {
|
|
214
|
-
if (input[0] === "[") {
|
|
215
|
-
if (input[input.length - 1] !== "]") return failure;
|
|
216
|
-
return parseIPv6(input.substring(1, input.length - 1));
|
|
217
|
-
}
|
|
218
|
-
if (isOpaque) return parseOpaqueHost(input);
|
|
219
|
-
const asciiDomain = domainToASCII(utf8DecodeWithoutBOM(percentDecodeString(input)));
|
|
220
|
-
if (asciiDomain === failure) return failure;
|
|
221
|
-
if (endsInANumber(asciiDomain)) return parseIPv4(asciiDomain);
|
|
222
|
-
return asciiDomain;
|
|
223
|
-
}
|
|
224
|
-
function endsInANumber(input) {
|
|
225
|
-
const parts = input.split(".");
|
|
226
|
-
if (parts[parts.length - 1] === "") {
|
|
227
|
-
if (parts.length === 1) return false;
|
|
228
|
-
parts.pop();
|
|
229
|
-
}
|
|
230
|
-
const last = parts[parts.length - 1];
|
|
231
|
-
if (parseIPv4Number(last) !== failure) return true;
|
|
232
|
-
if (/^[0-9]+$/u.test(last)) return true;
|
|
233
|
-
return false;
|
|
234
|
-
}
|
|
235
|
-
function parseOpaqueHost(input) {
|
|
236
|
-
if (containsForbiddenHostCodePoint(input)) return failure;
|
|
237
|
-
return utf8PercentEncodeString(input, isC0ControlPercentEncode);
|
|
238
|
-
}
|
|
239
|
-
function findTheIPv6AddressCompressedPieceIndex(address) {
|
|
240
|
-
let longestIndex = null;
|
|
241
|
-
let longestSize = 1;
|
|
242
|
-
let foundIndex = null;
|
|
243
|
-
let foundSize = 0;
|
|
244
|
-
for (let pieceIndex = 0; pieceIndex < address.length; ++pieceIndex) if (address[pieceIndex] !== 0) {
|
|
245
|
-
if (foundSize > longestSize) {
|
|
246
|
-
longestIndex = foundIndex;
|
|
247
|
-
longestSize = foundSize;
|
|
248
|
-
}
|
|
249
|
-
foundIndex = null;
|
|
250
|
-
foundSize = 0;
|
|
251
|
-
} else {
|
|
252
|
-
if (foundIndex === null) foundIndex = pieceIndex;
|
|
253
|
-
++foundSize;
|
|
254
|
-
}
|
|
255
|
-
if (foundSize > longestSize) return foundIndex;
|
|
256
|
-
return longestIndex;
|
|
257
|
-
}
|
|
258
|
-
function serializeHost(host) {
|
|
259
|
-
if (typeof host === "number") return serializeIPv4(host);
|
|
260
|
-
if (host instanceof Array) return `[${serializeIPv6(host)}]`;
|
|
261
|
-
return host;
|
|
262
|
-
}
|
|
263
|
-
function domainToASCII(domain, beStrict = false) {
|
|
264
|
-
const result = tr46.toASCII(domain, {
|
|
265
|
-
checkHyphens: beStrict,
|
|
266
|
-
checkBidi: true,
|
|
267
|
-
checkJoiners: true,
|
|
268
|
-
useSTD3ASCIIRules: beStrict,
|
|
269
|
-
transitionalProcessing: false,
|
|
270
|
-
verifyDNSLength: beStrict,
|
|
271
|
-
ignoreInvalidPunycode: false
|
|
272
|
-
});
|
|
273
|
-
if (result === null) return failure;
|
|
274
|
-
if (!beStrict) {
|
|
275
|
-
if (result === "") return failure;
|
|
276
|
-
if (containsForbiddenDomainCodePoint(result)) return failure;
|
|
277
|
-
}
|
|
278
|
-
return result;
|
|
279
|
-
}
|
|
280
|
-
function trimControlChars(string) {
|
|
281
|
-
let start = 0;
|
|
282
|
-
let end = string.length;
|
|
283
|
-
for (; start < end; ++start) if (string.charCodeAt(start) > 32) break;
|
|
284
|
-
for (; end > start; --end) if (string.charCodeAt(end - 1) > 32) break;
|
|
285
|
-
return string.substring(start, end);
|
|
286
|
-
}
|
|
287
|
-
function trimTabAndNewline(url) {
|
|
288
|
-
return url.replace(/\u0009|\u000A|\u000D/gu, "");
|
|
289
|
-
}
|
|
290
|
-
function shortenPath(url) {
|
|
291
|
-
const { path } = url;
|
|
292
|
-
if (path.length === 0) return;
|
|
293
|
-
if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) return;
|
|
294
|
-
path.pop();
|
|
295
|
-
}
|
|
296
|
-
function includesCredentials(url) {
|
|
297
|
-
return url.username !== "" || url.password !== "";
|
|
298
|
-
}
|
|
299
|
-
function cannotHaveAUsernamePasswordPort(url) {
|
|
300
|
-
return url.host === null || url.host === "" || url.scheme === "file";
|
|
301
|
-
}
|
|
302
|
-
function hasAnOpaquePath(url) {
|
|
303
|
-
return typeof url.path === "string";
|
|
304
|
-
}
|
|
305
|
-
function isNormalizedWindowsDriveLetter(string) {
|
|
306
|
-
return /^[A-Za-z]:$/u.test(string);
|
|
307
|
-
}
|
|
308
|
-
function URLStateMachine(input, base, encodingOverride, url, stateOverride) {
|
|
309
|
-
this.pointer = 0;
|
|
310
|
-
this.input = input;
|
|
311
|
-
this.base = base || null;
|
|
312
|
-
this.encodingOverride = encodingOverride || "utf-8";
|
|
313
|
-
this.stateOverride = stateOverride;
|
|
314
|
-
this.url = url;
|
|
315
|
-
this.failure = false;
|
|
316
|
-
this.parseError = false;
|
|
317
|
-
if (!this.url) {
|
|
318
|
-
this.url = {
|
|
319
|
-
scheme: "",
|
|
320
|
-
username: "",
|
|
321
|
-
password: "",
|
|
322
|
-
host: null,
|
|
323
|
-
port: null,
|
|
324
|
-
path: [],
|
|
325
|
-
query: null,
|
|
326
|
-
fragment: null
|
|
327
|
-
};
|
|
328
|
-
const res$1 = trimControlChars(this.input);
|
|
329
|
-
if (res$1 !== this.input) this.parseError = true;
|
|
330
|
-
this.input = res$1;
|
|
331
|
-
}
|
|
332
|
-
const res = trimTabAndNewline(this.input);
|
|
333
|
-
if (res !== this.input) this.parseError = true;
|
|
334
|
-
this.input = res;
|
|
335
|
-
this.state = stateOverride || "scheme start";
|
|
336
|
-
this.buffer = "";
|
|
337
|
-
this.atFlag = false;
|
|
338
|
-
this.arrFlag = false;
|
|
339
|
-
this.passwordTokenSeenFlag = false;
|
|
340
|
-
this.input = Array.from(this.input, (c) => c.codePointAt(0));
|
|
341
|
-
for (; this.pointer <= this.input.length; ++this.pointer) {
|
|
342
|
-
const c = this.input[this.pointer];
|
|
343
|
-
const cStr = isNaN(c) ? void 0 : String.fromCodePoint(c);
|
|
344
|
-
const ret = this[`parse ${this.state}`](c, cStr);
|
|
345
|
-
if (!ret) break;
|
|
346
|
-
else if (ret === failure) {
|
|
347
|
-
this.failure = true;
|
|
348
|
-
break;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) {
|
|
353
|
-
if (infra.isASCIIAlpha(c)) {
|
|
354
|
-
this.buffer += cStr.toLowerCase();
|
|
355
|
-
this.state = "scheme";
|
|
356
|
-
} else if (!this.stateOverride) {
|
|
357
|
-
this.state = "no scheme";
|
|
358
|
-
--this.pointer;
|
|
359
|
-
} else {
|
|
360
|
-
this.parseError = true;
|
|
361
|
-
return failure;
|
|
362
|
-
}
|
|
363
|
-
return true;
|
|
364
|
-
};
|
|
365
|
-
URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) {
|
|
366
|
-
if (infra.isASCIIAlphanumeric(c) || c === p("+") || c === p("-") || c === p(".")) this.buffer += cStr.toLowerCase();
|
|
367
|
-
else if (c === p(":")) {
|
|
368
|
-
if (this.stateOverride) {
|
|
369
|
-
if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) return false;
|
|
370
|
-
if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) return false;
|
|
371
|
-
if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") return false;
|
|
372
|
-
if (this.url.scheme === "file" && this.url.host === "") return false;
|
|
373
|
-
}
|
|
374
|
-
this.url.scheme = this.buffer;
|
|
375
|
-
if (this.stateOverride) {
|
|
376
|
-
if (this.url.port === defaultPort(this.url.scheme)) this.url.port = null;
|
|
377
|
-
return false;
|
|
378
|
-
}
|
|
379
|
-
this.buffer = "";
|
|
380
|
-
if (this.url.scheme === "file") {
|
|
381
|
-
if (this.input[this.pointer + 1] !== p("/") || this.input[this.pointer + 2] !== p("/")) this.parseError = true;
|
|
382
|
-
this.state = "file";
|
|
383
|
-
} else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) this.state = "special relative or authority";
|
|
384
|
-
else if (isSpecial(this.url)) this.state = "special authority slashes";
|
|
385
|
-
else if (this.input[this.pointer + 1] === p("/")) {
|
|
386
|
-
this.state = "path or authority";
|
|
387
|
-
++this.pointer;
|
|
388
|
-
} else {
|
|
389
|
-
this.url.path = "";
|
|
390
|
-
this.state = "opaque path";
|
|
391
|
-
}
|
|
392
|
-
} else if (!this.stateOverride) {
|
|
393
|
-
this.buffer = "";
|
|
394
|
-
this.state = "no scheme";
|
|
395
|
-
this.pointer = -1;
|
|
396
|
-
} else {
|
|
397
|
-
this.parseError = true;
|
|
398
|
-
return failure;
|
|
399
|
-
}
|
|
400
|
-
return true;
|
|
401
|
-
};
|
|
402
|
-
URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) {
|
|
403
|
-
if (this.base === null || hasAnOpaquePath(this.base) && c !== p("#")) return failure;
|
|
404
|
-
else if (hasAnOpaquePath(this.base) && c === p("#")) {
|
|
405
|
-
this.url.scheme = this.base.scheme;
|
|
406
|
-
this.url.path = this.base.path;
|
|
407
|
-
this.url.query = this.base.query;
|
|
408
|
-
this.url.fragment = "";
|
|
409
|
-
this.state = "fragment";
|
|
410
|
-
} else if (this.base.scheme === "file") {
|
|
411
|
-
this.state = "file";
|
|
412
|
-
--this.pointer;
|
|
413
|
-
} else {
|
|
414
|
-
this.state = "relative";
|
|
415
|
-
--this.pointer;
|
|
416
|
-
}
|
|
417
|
-
return true;
|
|
418
|
-
};
|
|
419
|
-
URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) {
|
|
420
|
-
if (c === p("/") && this.input[this.pointer + 1] === p("/")) {
|
|
421
|
-
this.state = "special authority ignore slashes";
|
|
422
|
-
++this.pointer;
|
|
423
|
-
} else {
|
|
424
|
-
this.parseError = true;
|
|
425
|
-
this.state = "relative";
|
|
426
|
-
--this.pointer;
|
|
427
|
-
}
|
|
428
|
-
return true;
|
|
429
|
-
};
|
|
430
|
-
URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) {
|
|
431
|
-
if (c === p("/")) this.state = "authority";
|
|
432
|
-
else {
|
|
433
|
-
this.state = "path";
|
|
434
|
-
--this.pointer;
|
|
435
|
-
}
|
|
436
|
-
return true;
|
|
437
|
-
};
|
|
438
|
-
URLStateMachine.prototype["parse relative"] = function parseRelative(c) {
|
|
439
|
-
this.url.scheme = this.base.scheme;
|
|
440
|
-
if (c === p("/")) this.state = "relative slash";
|
|
441
|
-
else if (isSpecial(this.url) && c === p("\\")) {
|
|
442
|
-
this.parseError = true;
|
|
443
|
-
this.state = "relative slash";
|
|
444
|
-
} else {
|
|
445
|
-
this.url.username = this.base.username;
|
|
446
|
-
this.url.password = this.base.password;
|
|
447
|
-
this.url.host = this.base.host;
|
|
448
|
-
this.url.port = this.base.port;
|
|
449
|
-
this.url.path = this.base.path.slice();
|
|
450
|
-
this.url.query = this.base.query;
|
|
451
|
-
if (c === p("?")) {
|
|
452
|
-
this.url.query = "";
|
|
453
|
-
this.state = "query";
|
|
454
|
-
} else if (c === p("#")) {
|
|
455
|
-
this.url.fragment = "";
|
|
456
|
-
this.state = "fragment";
|
|
457
|
-
} else if (!isNaN(c)) {
|
|
458
|
-
this.url.query = null;
|
|
459
|
-
this.url.path.pop();
|
|
460
|
-
this.state = "path";
|
|
461
|
-
--this.pointer;
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
return true;
|
|
465
|
-
};
|
|
466
|
-
URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) {
|
|
467
|
-
if (isSpecial(this.url) && (c === p("/") || c === p("\\"))) {
|
|
468
|
-
if (c === p("\\")) this.parseError = true;
|
|
469
|
-
this.state = "special authority ignore slashes";
|
|
470
|
-
} else if (c === p("/")) this.state = "authority";
|
|
471
|
-
else {
|
|
472
|
-
this.url.username = this.base.username;
|
|
473
|
-
this.url.password = this.base.password;
|
|
474
|
-
this.url.host = this.base.host;
|
|
475
|
-
this.url.port = this.base.port;
|
|
476
|
-
this.state = "path";
|
|
477
|
-
--this.pointer;
|
|
478
|
-
}
|
|
479
|
-
return true;
|
|
480
|
-
};
|
|
481
|
-
URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) {
|
|
482
|
-
if (c === p("/") && this.input[this.pointer + 1] === p("/")) {
|
|
483
|
-
this.state = "special authority ignore slashes";
|
|
484
|
-
++this.pointer;
|
|
485
|
-
} else {
|
|
486
|
-
this.parseError = true;
|
|
487
|
-
this.state = "special authority ignore slashes";
|
|
488
|
-
--this.pointer;
|
|
489
|
-
}
|
|
490
|
-
return true;
|
|
491
|
-
};
|
|
492
|
-
URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) {
|
|
493
|
-
if (c !== p("/") && c !== p("\\")) {
|
|
494
|
-
this.state = "authority";
|
|
495
|
-
--this.pointer;
|
|
496
|
-
} else this.parseError = true;
|
|
497
|
-
return true;
|
|
498
|
-
};
|
|
499
|
-
URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) {
|
|
500
|
-
if (c === p("@")) {
|
|
501
|
-
this.parseError = true;
|
|
502
|
-
if (this.atFlag) this.buffer = `%40${this.buffer}`;
|
|
503
|
-
this.atFlag = true;
|
|
504
|
-
const len = countSymbols(this.buffer);
|
|
505
|
-
for (let pointer = 0; pointer < len; ++pointer) {
|
|
506
|
-
const codePoint = this.buffer.codePointAt(pointer);
|
|
507
|
-
if (codePoint === p(":") && !this.passwordTokenSeenFlag) {
|
|
508
|
-
this.passwordTokenSeenFlag = true;
|
|
509
|
-
continue;
|
|
510
|
-
}
|
|
511
|
-
const encodedCodePoints = utf8PercentEncodeCodePoint(codePoint, isUserinfoPercentEncode);
|
|
512
|
-
if (this.passwordTokenSeenFlag) this.url.password += encodedCodePoints;
|
|
513
|
-
else this.url.username += encodedCodePoints;
|
|
514
|
-
}
|
|
515
|
-
this.buffer = "";
|
|
516
|
-
} else if (isNaN(c) || c === p("/") || c === p("?") || c === p("#") || isSpecial(this.url) && c === p("\\")) {
|
|
517
|
-
if (this.atFlag && this.buffer === "") {
|
|
518
|
-
this.parseError = true;
|
|
519
|
-
return failure;
|
|
520
|
-
}
|
|
521
|
-
this.pointer -= countSymbols(this.buffer) + 1;
|
|
522
|
-
this.buffer = "";
|
|
523
|
-
this.state = "host";
|
|
524
|
-
} else this.buffer += cStr;
|
|
525
|
-
return true;
|
|
526
|
-
};
|
|
527
|
-
URLStateMachine.prototype["parse hostname"] = URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
|
|
528
|
-
if (this.stateOverride && this.url.scheme === "file") {
|
|
529
|
-
--this.pointer;
|
|
530
|
-
this.state = "file host";
|
|
531
|
-
} else if (c === p(":") && !this.arrFlag) {
|
|
532
|
-
if (this.buffer === "") {
|
|
533
|
-
this.parseError = true;
|
|
534
|
-
return failure;
|
|
535
|
-
}
|
|
536
|
-
if (this.stateOverride === "hostname") return false;
|
|
537
|
-
const host = parseHost(this.buffer, isNotSpecial(this.url));
|
|
538
|
-
if (host === failure) return failure;
|
|
539
|
-
this.url.host = host;
|
|
540
|
-
this.buffer = "";
|
|
541
|
-
this.state = "port";
|
|
542
|
-
} else if (isNaN(c) || c === p("/") || c === p("?") || c === p("#") || isSpecial(this.url) && c === p("\\")) {
|
|
543
|
-
--this.pointer;
|
|
544
|
-
if (isSpecial(this.url) && this.buffer === "") {
|
|
545
|
-
this.parseError = true;
|
|
546
|
-
return failure;
|
|
547
|
-
} else if (this.stateOverride && this.buffer === "" && (includesCredentials(this.url) || this.url.port !== null)) {
|
|
548
|
-
this.parseError = true;
|
|
549
|
-
return false;
|
|
550
|
-
}
|
|
551
|
-
const host = parseHost(this.buffer, isNotSpecial(this.url));
|
|
552
|
-
if (host === failure) return failure;
|
|
553
|
-
this.url.host = host;
|
|
554
|
-
this.buffer = "";
|
|
555
|
-
this.state = "path start";
|
|
556
|
-
if (this.stateOverride) return false;
|
|
557
|
-
} else {
|
|
558
|
-
if (c === p("[")) this.arrFlag = true;
|
|
559
|
-
else if (c === p("]")) this.arrFlag = false;
|
|
560
|
-
this.buffer += cStr;
|
|
561
|
-
}
|
|
562
|
-
return true;
|
|
563
|
-
};
|
|
564
|
-
URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) {
|
|
565
|
-
if (infra.isASCIIDigit(c)) this.buffer += cStr;
|
|
566
|
-
else if (isNaN(c) || c === p("/") || c === p("?") || c === p("#") || isSpecial(this.url) && c === p("\\") || this.stateOverride) {
|
|
567
|
-
if (this.buffer !== "") {
|
|
568
|
-
const port = parseInt(this.buffer);
|
|
569
|
-
if (port > 2 ** 16 - 1) {
|
|
570
|
-
this.parseError = true;
|
|
571
|
-
return failure;
|
|
572
|
-
}
|
|
573
|
-
this.url.port = port === defaultPort(this.url.scheme) ? null : port;
|
|
574
|
-
this.buffer = "";
|
|
575
|
-
}
|
|
576
|
-
if (this.stateOverride) return false;
|
|
577
|
-
this.state = "path start";
|
|
578
|
-
--this.pointer;
|
|
579
|
-
} else {
|
|
580
|
-
this.parseError = true;
|
|
581
|
-
return failure;
|
|
582
|
-
}
|
|
583
|
-
return true;
|
|
584
|
-
};
|
|
585
|
-
const fileOtherwiseCodePoints = new Set([
|
|
586
|
-
p("/"),
|
|
587
|
-
p("\\"),
|
|
588
|
-
p("?"),
|
|
589
|
-
p("#")
|
|
590
|
-
]);
|
|
591
|
-
function startsWithWindowsDriveLetter(input, pointer) {
|
|
592
|
-
const length = input.length - pointer;
|
|
593
|
-
return length >= 2 && isWindowsDriveLetterCodePoints(input[pointer], input[pointer + 1]) && (length === 2 || fileOtherwiseCodePoints.has(input[pointer + 2]));
|
|
594
|
-
}
|
|
595
|
-
URLStateMachine.prototype["parse file"] = function parseFile(c) {
|
|
596
|
-
this.url.scheme = "file";
|
|
597
|
-
this.url.host = "";
|
|
598
|
-
if (c === p("/") || c === p("\\")) {
|
|
599
|
-
if (c === p("\\")) this.parseError = true;
|
|
600
|
-
this.state = "file slash";
|
|
601
|
-
} else if (this.base !== null && this.base.scheme === "file") {
|
|
602
|
-
this.url.host = this.base.host;
|
|
603
|
-
this.url.path = this.base.path.slice();
|
|
604
|
-
this.url.query = this.base.query;
|
|
605
|
-
if (c === p("?")) {
|
|
606
|
-
this.url.query = "";
|
|
607
|
-
this.state = "query";
|
|
608
|
-
} else if (c === p("#")) {
|
|
609
|
-
this.url.fragment = "";
|
|
610
|
-
this.state = "fragment";
|
|
611
|
-
} else if (!isNaN(c)) {
|
|
612
|
-
this.url.query = null;
|
|
613
|
-
if (!startsWithWindowsDriveLetter(this.input, this.pointer)) shortenPath(this.url);
|
|
614
|
-
else {
|
|
615
|
-
this.parseError = true;
|
|
616
|
-
this.url.path = [];
|
|
617
|
-
}
|
|
618
|
-
this.state = "path";
|
|
619
|
-
--this.pointer;
|
|
620
|
-
}
|
|
621
|
-
} else {
|
|
622
|
-
this.state = "path";
|
|
623
|
-
--this.pointer;
|
|
624
|
-
}
|
|
625
|
-
return true;
|
|
626
|
-
};
|
|
627
|
-
URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) {
|
|
628
|
-
if (c === p("/") || c === p("\\")) {
|
|
629
|
-
if (c === p("\\")) this.parseError = true;
|
|
630
|
-
this.state = "file host";
|
|
631
|
-
} else {
|
|
632
|
-
if (this.base !== null && this.base.scheme === "file") {
|
|
633
|
-
if (!startsWithWindowsDriveLetter(this.input, this.pointer) && isNormalizedWindowsDriveLetterString(this.base.path[0])) this.url.path.push(this.base.path[0]);
|
|
634
|
-
this.url.host = this.base.host;
|
|
635
|
-
}
|
|
636
|
-
this.state = "path";
|
|
637
|
-
--this.pointer;
|
|
638
|
-
}
|
|
639
|
-
return true;
|
|
640
|
-
};
|
|
641
|
-
URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) {
|
|
642
|
-
if (isNaN(c) || c === p("/") || c === p("\\") || c === p("?") || c === p("#")) {
|
|
643
|
-
--this.pointer;
|
|
644
|
-
if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) {
|
|
645
|
-
this.parseError = true;
|
|
646
|
-
this.state = "path";
|
|
647
|
-
} else if (this.buffer === "") {
|
|
648
|
-
this.url.host = "";
|
|
649
|
-
if (this.stateOverride) return false;
|
|
650
|
-
this.state = "path start";
|
|
651
|
-
} else {
|
|
652
|
-
let host = parseHost(this.buffer, isNotSpecial(this.url));
|
|
653
|
-
if (host === failure) return failure;
|
|
654
|
-
if (host === "localhost") host = "";
|
|
655
|
-
this.url.host = host;
|
|
656
|
-
if (this.stateOverride) return false;
|
|
657
|
-
this.buffer = "";
|
|
658
|
-
this.state = "path start";
|
|
659
|
-
}
|
|
660
|
-
} else this.buffer += cStr;
|
|
661
|
-
return true;
|
|
662
|
-
};
|
|
663
|
-
URLStateMachine.prototype["parse path start"] = function parsePathStart(c) {
|
|
664
|
-
if (isSpecial(this.url)) {
|
|
665
|
-
if (c === p("\\")) this.parseError = true;
|
|
666
|
-
this.state = "path";
|
|
667
|
-
if (c !== p("/") && c !== p("\\")) --this.pointer;
|
|
668
|
-
} else if (!this.stateOverride && c === p("?")) {
|
|
669
|
-
this.url.query = "";
|
|
670
|
-
this.state = "query";
|
|
671
|
-
} else if (!this.stateOverride && c === p("#")) {
|
|
672
|
-
this.url.fragment = "";
|
|
673
|
-
this.state = "fragment";
|
|
674
|
-
} else if (c !== void 0) {
|
|
675
|
-
this.state = "path";
|
|
676
|
-
if (c !== p("/")) --this.pointer;
|
|
677
|
-
} else if (this.stateOverride && this.url.host === null) this.url.path.push("");
|
|
678
|
-
return true;
|
|
679
|
-
};
|
|
680
|
-
URLStateMachine.prototype["parse path"] = function parsePath(c) {
|
|
681
|
-
if (isNaN(c) || c === p("/") || isSpecial(this.url) && c === p("\\") || !this.stateOverride && (c === p("?") || c === p("#"))) {
|
|
682
|
-
if (isSpecial(this.url) && c === p("\\")) this.parseError = true;
|
|
683
|
-
if (isDoubleDot(this.buffer)) {
|
|
684
|
-
shortenPath(this.url);
|
|
685
|
-
if (c !== p("/") && !(isSpecial(this.url) && c === p("\\"))) this.url.path.push("");
|
|
686
|
-
} else if (isSingleDot(this.buffer) && c !== p("/") && !(isSpecial(this.url) && c === p("\\"))) this.url.path.push("");
|
|
687
|
-
else if (!isSingleDot(this.buffer)) {
|
|
688
|
-
if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) this.buffer = `${this.buffer[0]}:`;
|
|
689
|
-
this.url.path.push(this.buffer);
|
|
690
|
-
}
|
|
691
|
-
this.buffer = "";
|
|
692
|
-
if (c === p("?")) {
|
|
693
|
-
this.url.query = "";
|
|
694
|
-
this.state = "query";
|
|
695
|
-
}
|
|
696
|
-
if (c === p("#")) {
|
|
697
|
-
this.url.fragment = "";
|
|
698
|
-
this.state = "fragment";
|
|
699
|
-
}
|
|
700
|
-
} else {
|
|
701
|
-
if (c === p("%") && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2]))) this.parseError = true;
|
|
702
|
-
this.buffer += utf8PercentEncodeCodePoint(c, isPathPercentEncode);
|
|
703
|
-
}
|
|
704
|
-
return true;
|
|
705
|
-
};
|
|
706
|
-
URLStateMachine.prototype["parse opaque path"] = function parseOpaquePath(c) {
|
|
707
|
-
if (c === p("?")) {
|
|
708
|
-
this.url.query = "";
|
|
709
|
-
this.state = "query";
|
|
710
|
-
} else if (c === p("#")) {
|
|
711
|
-
this.url.fragment = "";
|
|
712
|
-
this.state = "fragment";
|
|
713
|
-
} else if (c === p(" ")) {
|
|
714
|
-
const remaining = this.input[this.pointer + 1];
|
|
715
|
-
if (remaining === p("?") || remaining === p("#")) this.url.path += "%20";
|
|
716
|
-
else this.url.path += " ";
|
|
717
|
-
} else {
|
|
718
|
-
if (!isNaN(c) && c !== p("%")) this.parseError = true;
|
|
719
|
-
if (c === p("%") && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2]))) this.parseError = true;
|
|
720
|
-
if (!isNaN(c)) this.url.path += utf8PercentEncodeCodePoint(c, isC0ControlPercentEncode);
|
|
721
|
-
}
|
|
722
|
-
return true;
|
|
723
|
-
};
|
|
724
|
-
URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) {
|
|
725
|
-
if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") this.encodingOverride = "utf-8";
|
|
726
|
-
if (!this.stateOverride && c === p("#") || isNaN(c)) {
|
|
727
|
-
const queryPercentEncodePredicate = isSpecial(this.url) ? isSpecialQueryPercentEncode : isQueryPercentEncode;
|
|
728
|
-
this.url.query += utf8PercentEncodeString(this.buffer, queryPercentEncodePredicate);
|
|
729
|
-
this.buffer = "";
|
|
730
|
-
if (c === p("#")) {
|
|
731
|
-
this.url.fragment = "";
|
|
732
|
-
this.state = "fragment";
|
|
733
|
-
}
|
|
734
|
-
} else if (!isNaN(c)) {
|
|
735
|
-
if (c === p("%") && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2]))) this.parseError = true;
|
|
736
|
-
this.buffer += cStr;
|
|
737
|
-
}
|
|
738
|
-
return true;
|
|
739
|
-
};
|
|
740
|
-
URLStateMachine.prototype["parse fragment"] = function parseFragment(c) {
|
|
741
|
-
if (!isNaN(c)) {
|
|
742
|
-
if (c === p("%") && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2]))) this.parseError = true;
|
|
743
|
-
this.url.fragment += utf8PercentEncodeCodePoint(c, isFragmentPercentEncode);
|
|
744
|
-
}
|
|
745
|
-
return true;
|
|
746
|
-
};
|
|
747
|
-
function serializeURL(url, excludeFragment) {
|
|
748
|
-
let output = `${url.scheme}:`;
|
|
749
|
-
if (url.host !== null) {
|
|
750
|
-
output += "//";
|
|
751
|
-
if (url.username !== "" || url.password !== "") {
|
|
752
|
-
output += url.username;
|
|
753
|
-
if (url.password !== "") output += `:${url.password}`;
|
|
754
|
-
output += "@";
|
|
755
|
-
}
|
|
756
|
-
output += serializeHost(url.host);
|
|
757
|
-
if (url.port !== null) output += `:${url.port}`;
|
|
758
|
-
}
|
|
759
|
-
if (url.host === null && !hasAnOpaquePath(url) && url.path.length > 1 && url.path[0] === "") output += "/.";
|
|
760
|
-
output += serializePath(url);
|
|
761
|
-
if (url.query !== null) output += `?${url.query}`;
|
|
762
|
-
if (!excludeFragment && url.fragment !== null) output += `#${url.fragment}`;
|
|
763
|
-
return output;
|
|
764
|
-
}
|
|
765
|
-
function serializeOrigin(tuple) {
|
|
766
|
-
let result = `${tuple.scheme}://`;
|
|
767
|
-
result += serializeHost(tuple.host);
|
|
768
|
-
if (tuple.port !== null) result += `:${tuple.port}`;
|
|
769
|
-
return result;
|
|
770
|
-
}
|
|
771
|
-
function serializePath(url) {
|
|
772
|
-
if (hasAnOpaquePath(url)) return url.path;
|
|
773
|
-
let output = "";
|
|
774
|
-
for (const segment of url.path) output += `/${segment}`;
|
|
775
|
-
return output;
|
|
776
|
-
}
|
|
777
|
-
module.exports.serializeURL = serializeURL;
|
|
778
|
-
module.exports.serializePath = serializePath;
|
|
779
|
-
module.exports.serializeURLOrigin = function(url) {
|
|
780
|
-
switch (url.scheme) {
|
|
781
|
-
case "blob": {
|
|
782
|
-
const pathURL = module.exports.parseURL(serializePath(url));
|
|
783
|
-
if (pathURL === null) return "null";
|
|
784
|
-
if (pathURL.scheme !== "http" && pathURL.scheme !== "https") return "null";
|
|
785
|
-
return module.exports.serializeURLOrigin(pathURL);
|
|
786
|
-
}
|
|
787
|
-
case "ftp":
|
|
788
|
-
case "http":
|
|
789
|
-
case "https":
|
|
790
|
-
case "ws":
|
|
791
|
-
case "wss": return serializeOrigin({
|
|
792
|
-
scheme: url.scheme,
|
|
793
|
-
host: url.host,
|
|
794
|
-
port: url.port
|
|
795
|
-
});
|
|
796
|
-
case "file": return "null";
|
|
797
|
-
default: return "null";
|
|
798
|
-
}
|
|
799
|
-
};
|
|
800
|
-
module.exports.basicURLParse = function(input, options) {
|
|
801
|
-
if (options === void 0) options = {};
|
|
802
|
-
const usm = new URLStateMachine(input, options.baseURL, options.encodingOverride, options.url, options.stateOverride);
|
|
803
|
-
if (usm.failure) return null;
|
|
804
|
-
return usm.url;
|
|
805
|
-
};
|
|
806
|
-
module.exports.setTheUsername = function(url, username) {
|
|
807
|
-
url.username = utf8PercentEncodeString(username, isUserinfoPercentEncode);
|
|
808
|
-
};
|
|
809
|
-
module.exports.setThePassword = function(url, password) {
|
|
810
|
-
url.password = utf8PercentEncodeString(password, isUserinfoPercentEncode);
|
|
811
|
-
};
|
|
812
|
-
module.exports.serializeHost = serializeHost;
|
|
813
|
-
module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort;
|
|
814
|
-
module.exports.hasAnOpaquePath = hasAnOpaquePath;
|
|
815
|
-
module.exports.serializeInteger = function(integer) {
|
|
816
|
-
return String(integer);
|
|
817
|
-
};
|
|
818
|
-
module.exports.parseURL = function(input, options) {
|
|
819
|
-
if (options === void 0) options = {};
|
|
820
|
-
return module.exports.basicURLParse(input, {
|
|
821
|
-
baseURL: options.baseURL,
|
|
822
|
-
encodingOverride: options.encodingOverride
|
|
823
|
-
});
|
|
824
|
-
};
|
|
825
|
-
}));
|
|
826
|
-
|
|
827
|
-
//#endregion
|
|
828
|
-
export default require_url_state_machine();
|
|
829
|
-
|
|
830
|
-
export { require_url_state_machine };
|
|
831
|
-
//# sourceMappingURL=url-state-machine.mjs.map
|