pecunia-root 0.1.0 → 0.1.1
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/_virtual/rolldown_runtime.mjs +8 -0
- package/dist/adapters/drizzle-adapter/index.mjs +4 -1
- package/dist/adapters/drizzle-adapter/index.mjs.map +1 -1
- package/dist/adapters/mongodb-adapter/index.mjs +12 -11
- package/dist/adapters/mongodb-adapter/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs +14 -0
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs +54 -0
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs +36 -0
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs +27 -0
- package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs.map +1 -0
- package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs +3728 -0
- package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/column-builder.mjs +108 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/column-builder.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/column.mjs +55 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/column.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/entity.mjs +18 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/entity.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/columns/common.mjs +183 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/columns/common.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/columns/enum.mjs +35 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/columns/enum.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/foreign-keys.mjs +68 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/foreign-keys.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/unique-constraint.mjs +56 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/unique-constraint.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/utils/array.mjs +65 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/utils/array.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/expressions/conditions.mjs +69 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/expressions/conditions.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/expressions/select.mjs +13 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/expressions/select.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/functions/aggregate.mjs +10 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/functions/aggregate.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/sql.mjs +366 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/sql.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/subquery.mjs +22 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/subquery.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/table.mjs +62 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/table.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/table.utils.mjs +6 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/table.utils.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/tracing-utils.mjs +8 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/tracing-utils.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/tracing.mjs +8 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/tracing.mjs.map +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/view-common.mjs +6 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/view-common.mjs.map +1 -0
- package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs +137 -0
- package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs +211 -0
- package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs +95 -0
- package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs +158 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs +195 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs +710 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs +53 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs +63 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs +368 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs +234 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs +545 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs +83 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs +146 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs +58 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs +30 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs +135 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs +25 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs +47 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs +362 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs +58 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs +123 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs +128 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs +133 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs +126 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs +79 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs +65 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs +127 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs +47 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs +44 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs +101 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs +33 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs +53 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs +29 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs +83 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs +36 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs +32 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs +206 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs +45 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs +213 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs +411 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs +288 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs +423 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs +483 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs +207 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs +116 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs +183 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs +55 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs +60 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs +139 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs +28 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs +117 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs +182 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs +304 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs +34 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs +739 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs +805 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs +174 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs +726 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs +172 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs +103 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs +66 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs +41 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs +365 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs +50 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs +48 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs +23 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs +106 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs +428 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs +124 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs +95 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs +1305 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs +59 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs +250 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs +170 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs +315 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs +925 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs +520 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs +90 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs +582 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs +64 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs +86 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs +60 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs +264 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs +109 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs +172 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs +68 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs +53 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs +123 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs +119 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs +65 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs +97 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs +47 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs +188 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs +103 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs +136 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs +61 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs +179 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs +77 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs +48 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs +60 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs +43 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs +105 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs +50 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs +39 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs +49 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs +58 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs +46 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs +48 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs +46 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs +67 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs +37 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs +171 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs +45 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs +71 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs +165 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs +62 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs +51 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs +156 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs +477 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs +315 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs +157 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs +184 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs +96 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs +107 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs +540 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs +298 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs +623 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs +91 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs +254 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs +138 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs +993 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs +81 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs +171 -0
- package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs.map +1 -0
- package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs +295 -0
- package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs.map +1 -0
- package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs +81 -0
- package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs +206 -0
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs +33590 -0
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs +37 -0
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs +18 -0
- package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs.map +1 -0
- package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs +252 -0
- package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs +41 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs +41 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs.map +1 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs +173 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs.map +1 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs +334 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs.map +1 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs +90 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs.map +1 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs +356 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs.map +1 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs +23 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs.map +1 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs +29 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs.map +1 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs +140 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs.map +1 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs +831 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs.map +1 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs +77 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs.map +1 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs +147 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs.map +1 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs +17 -0
- package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs.map +1 -0
- package/package.json +1 -39
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_responses } from "../cmap/wire_protocol/responses.mjs";
|
|
3
|
+
import { require_utils } from "../utils.mjs";
|
|
4
|
+
import { require_operation } from "./operation.mjs";
|
|
5
|
+
import { require_command } from "./command.mjs";
|
|
6
|
+
|
|
7
|
+
//#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.js
|
|
8
|
+
var require_list_databases = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ListDatabasesOperation = void 0;
|
|
11
|
+
const responses_1 = require_responses();
|
|
12
|
+
const utils_1 = require_utils();
|
|
13
|
+
const command_1 = require_command();
|
|
14
|
+
const operation_1 = require_operation();
|
|
15
|
+
/** @internal */
|
|
16
|
+
var ListDatabasesOperation = class extends command_1.CommandOperation {
|
|
17
|
+
constructor(db, options) {
|
|
18
|
+
super(db, options);
|
|
19
|
+
this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
|
|
20
|
+
this.options = options ?? {};
|
|
21
|
+
this.ns = new utils_1.MongoDBNamespace("admin", "$cmd");
|
|
22
|
+
}
|
|
23
|
+
get commandName() {
|
|
24
|
+
return "listDatabases";
|
|
25
|
+
}
|
|
26
|
+
buildCommandDocument(connection, _session) {
|
|
27
|
+
const cmd = { listDatabases: 1 };
|
|
28
|
+
if (typeof this.options.nameOnly === "boolean") cmd.nameOnly = this.options.nameOnly;
|
|
29
|
+
if (this.options.filter) cmd.filter = this.options.filter;
|
|
30
|
+
if (typeof this.options.authorizedDatabases === "boolean") cmd.authorizedDatabases = this.options.authorizedDatabases;
|
|
31
|
+
if ((0, utils_1.maxWireVersion)(connection) >= 9 && this.options.comment !== void 0) cmd.comment = this.options.comment;
|
|
32
|
+
return cmd;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.ListDatabasesOperation = ListDatabasesOperation;
|
|
36
|
+
(0, operation_1.defineAspects)(ListDatabasesOperation, [operation_1.Aspect.READ_OPERATION, operation_1.Aspect.RETRYABLE]);
|
|
37
|
+
}));
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export default require_list_databases();
|
|
41
|
+
|
|
42
|
+
export { require_list_databases };
|
|
43
|
+
//# sourceMappingURL=list_databases.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list_databases.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ListDatabasesOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst utils_1 = require(\"../utils\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nclass ListDatabasesOperation extends command_1.CommandOperation {\n constructor(db, options) {\n super(db, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options ?? {};\n this.ns = new utils_1.MongoDBNamespace('admin', '$cmd');\n }\n get commandName() {\n return 'listDatabases';\n }\n buildCommandDocument(connection, _session) {\n const cmd = { listDatabases: 1 };\n if (typeof this.options.nameOnly === 'boolean') {\n cmd.nameOnly = this.options.nameOnly;\n }\n if (this.options.filter) {\n cmd.filter = this.options.filter;\n }\n if (typeof this.options.authorizedDatabases === 'boolean') {\n cmd.authorizedDatabases = this.options.authorizedDatabases;\n }\n // we check for undefined specifically here to allow falsy values\n // eslint-disable-next-line no-restricted-syntax\n if ((0, utils_1.maxWireVersion)(connection) >= 9 && this.options.comment !== undefined) {\n cmd.comment = this.options.comment;\n }\n return cmd;\n }\n}\nexports.ListDatabasesOperation = ListDatabasesOperation;\n(0, operation_1.defineAspects)(ListDatabasesOperation, [operation_1.Aspect.READ_OPERATION, operation_1.Aspect.RETRYABLE]);\n//# sourceMappingURL=list_databases.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,yBAAyB,KAAK;CACtC,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,yBAAN,cAAqC,UAAU,iBAAiB;EAC5D,YAAY,IAAI,SAAS;AACrB,SAAM,IAAI,QAAQ;AAClB,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU,WAAW,EAAE;AAC5B,QAAK,KAAK,IAAI,QAAQ,iBAAiB,SAAS,OAAO;;EAE3D,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,YAAY,UAAU;GACvC,MAAM,MAAM,EAAE,eAAe,GAAG;AAChC,OAAI,OAAO,KAAK,QAAQ,aAAa,UACjC,KAAI,WAAW,KAAK,QAAQ;AAEhC,OAAI,KAAK,QAAQ,OACb,KAAI,SAAS,KAAK,QAAQ;AAE9B,OAAI,OAAO,KAAK,QAAQ,wBAAwB,UAC5C,KAAI,sBAAsB,KAAK,QAAQ;AAI3C,QAAK,GAAG,QAAQ,gBAAgB,WAAW,IAAI,KAAK,KAAK,QAAQ,YAAY,OACzE,KAAI,UAAU,KAAK,QAAQ;AAE/B,UAAO;;;AAGf,SAAQ,yBAAyB;AACjC,EAAC,GAAG,YAAY,eAAe,wBAAwB,CAAC,YAAY,OAAO,gBAAgB,YAAY,OAAO,UAAU,CAAC"}
|
package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_bson } from "../bson.mjs";
|
|
3
|
+
import { require_read_preference } from "../read_preference.mjs";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.js
|
|
6
|
+
var require_operation = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.AbstractOperation = exports.Aspect = void 0;
|
|
9
|
+
exports.defineAspects = defineAspects;
|
|
10
|
+
const bson_1 = require_bson();
|
|
11
|
+
const read_preference_1 = require_read_preference();
|
|
12
|
+
exports.Aspect = {
|
|
13
|
+
READ_OPERATION: Symbol("READ_OPERATION"),
|
|
14
|
+
WRITE_OPERATION: Symbol("WRITE_OPERATION"),
|
|
15
|
+
RETRYABLE: Symbol("RETRYABLE"),
|
|
16
|
+
EXPLAINABLE: Symbol("EXPLAINABLE"),
|
|
17
|
+
SKIP_COLLATION: Symbol("SKIP_COLLATION"),
|
|
18
|
+
CURSOR_CREATING: Symbol("CURSOR_CREATING"),
|
|
19
|
+
MUST_SELECT_SAME_SERVER: Symbol("MUST_SELECT_SAME_SERVER"),
|
|
20
|
+
COMMAND_BATCHING: Symbol("COMMAND_BATCHING"),
|
|
21
|
+
SUPPORTS_RAW_DATA: Symbol("SUPPORTS_RAW_DATA")
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* This class acts as a parent class for any operation and is responsible for setting this.options,
|
|
25
|
+
* as well as setting and getting a session.
|
|
26
|
+
* Additionally, this class implements `hasAspect`, which determines whether an operation has
|
|
27
|
+
* a specific aspect.
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
var AbstractOperation = class {
|
|
31
|
+
constructor(options = {}) {
|
|
32
|
+
this.readPreference = this.hasAspect(exports.Aspect.WRITE_OPERATION) ? read_preference_1.ReadPreference.primary : read_preference_1.ReadPreference.fromOptions(options) ?? read_preference_1.ReadPreference.primary;
|
|
33
|
+
this.bsonOptions = (0, bson_1.resolveBSONOptions)(options);
|
|
34
|
+
this._session = options.session != null ? options.session : void 0;
|
|
35
|
+
this.options = options;
|
|
36
|
+
this.bypassPinningCheck = !!options.bypassPinningCheck;
|
|
37
|
+
}
|
|
38
|
+
hasAspect(aspect) {
|
|
39
|
+
const ctor = this.constructor;
|
|
40
|
+
if (ctor.aspects == null) return false;
|
|
41
|
+
return ctor.aspects.has(aspect);
|
|
42
|
+
}
|
|
43
|
+
get session() {
|
|
44
|
+
return this._session;
|
|
45
|
+
}
|
|
46
|
+
set session(session) {
|
|
47
|
+
this._session = session;
|
|
48
|
+
}
|
|
49
|
+
clearSession() {
|
|
50
|
+
this._session = void 0;
|
|
51
|
+
}
|
|
52
|
+
resetBatch() {
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
get canRetryRead() {
|
|
56
|
+
return this.hasAspect(exports.Aspect.RETRYABLE) && this.hasAspect(exports.Aspect.READ_OPERATION);
|
|
57
|
+
}
|
|
58
|
+
get canRetryWrite() {
|
|
59
|
+
return this.hasAspect(exports.Aspect.RETRYABLE) && this.hasAspect(exports.Aspect.WRITE_OPERATION);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Given an instance of a MongoDBResponse, map the response to the correct result type. For
|
|
63
|
+
* example, a `CountOperation` might map the response as follows:
|
|
64
|
+
*
|
|
65
|
+
* ```typescript
|
|
66
|
+
* override handleOk(response: InstanceType<typeof this.SERVER_COMMAND_RESPONSE_TYPE>): TResult {
|
|
67
|
+
* return response.toObject(this.bsonOptions).n ?? 0;
|
|
68
|
+
* }
|
|
69
|
+
*
|
|
70
|
+
* // or, with type safety:
|
|
71
|
+
* override handleOk(response: InstanceType<typeof this.SERVER_COMMAND_RESPONSE_TYPE>): TResult {
|
|
72
|
+
* return response.getNumber('n') ?? 0;
|
|
73
|
+
* }
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
handleOk(response) {
|
|
77
|
+
return response.toObject(this.bsonOptions);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Optional.
|
|
81
|
+
*
|
|
82
|
+
* If the operation performs error handling, such as wrapping, renaming the error, or squashing errors
|
|
83
|
+
* this method can be overridden.
|
|
84
|
+
*/
|
|
85
|
+
handleError(error) {
|
|
86
|
+
throw error;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
exports.AbstractOperation = AbstractOperation;
|
|
90
|
+
function defineAspects(operation, aspects) {
|
|
91
|
+
if (!Array.isArray(aspects) && !(aspects instanceof Set)) aspects = [aspects];
|
|
92
|
+
aspects = new Set(aspects);
|
|
93
|
+
Object.defineProperty(operation, "aspects", {
|
|
94
|
+
value: aspects,
|
|
95
|
+
writable: false
|
|
96
|
+
});
|
|
97
|
+
return aspects;
|
|
98
|
+
}
|
|
99
|
+
}));
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
export default require_operation();
|
|
103
|
+
|
|
104
|
+
export { require_operation };
|
|
105
|
+
//# sourceMappingURL=operation.mjs.map
|
package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AbstractOperation = exports.Aspect = void 0;\nexports.defineAspects = defineAspects;\nconst bson_1 = require(\"../bson\");\nconst read_preference_1 = require(\"../read_preference\");\nexports.Aspect = {\n READ_OPERATION: Symbol('READ_OPERATION'),\n WRITE_OPERATION: Symbol('WRITE_OPERATION'),\n RETRYABLE: Symbol('RETRYABLE'),\n EXPLAINABLE: Symbol('EXPLAINABLE'),\n SKIP_COLLATION: Symbol('SKIP_COLLATION'),\n CURSOR_CREATING: Symbol('CURSOR_CREATING'),\n MUST_SELECT_SAME_SERVER: Symbol('MUST_SELECT_SAME_SERVER'),\n COMMAND_BATCHING: Symbol('COMMAND_BATCHING'),\n SUPPORTS_RAW_DATA: Symbol('SUPPORTS_RAW_DATA')\n};\n/**\n * This class acts as a parent class for any operation and is responsible for setting this.options,\n * as well as setting and getting a session.\n * Additionally, this class implements `hasAspect`, which determines whether an operation has\n * a specific aspect.\n * @internal\n */\nclass AbstractOperation {\n constructor(options = {}) {\n this.readPreference = this.hasAspect(exports.Aspect.WRITE_OPERATION)\n ? read_preference_1.ReadPreference.primary\n : (read_preference_1.ReadPreference.fromOptions(options) ?? read_preference_1.ReadPreference.primary);\n // Pull the BSON serialize options from the already-resolved options\n this.bsonOptions = (0, bson_1.resolveBSONOptions)(options);\n this._session = options.session != null ? options.session : undefined;\n this.options = options;\n this.bypassPinningCheck = !!options.bypassPinningCheck;\n }\n hasAspect(aspect) {\n const ctor = this.constructor;\n if (ctor.aspects == null) {\n return false;\n }\n return ctor.aspects.has(aspect);\n }\n // Make sure the session is not writable from outside this class.\n get session() {\n return this._session;\n }\n set session(session) {\n this._session = session;\n }\n clearSession() {\n this._session = undefined;\n }\n resetBatch() {\n return true;\n }\n get canRetryRead() {\n return this.hasAspect(exports.Aspect.RETRYABLE) && this.hasAspect(exports.Aspect.READ_OPERATION);\n }\n get canRetryWrite() {\n return this.hasAspect(exports.Aspect.RETRYABLE) && this.hasAspect(exports.Aspect.WRITE_OPERATION);\n }\n /**\n * Given an instance of a MongoDBResponse, map the response to the correct result type. For\n * example, a `CountOperation` might map the response as follows:\n *\n * ```typescript\n * override handleOk(response: InstanceType<typeof this.SERVER_COMMAND_RESPONSE_TYPE>): TResult {\n * return response.toObject(this.bsonOptions).n ?? 0;\n * }\n *\n * // or, with type safety:\n * override handleOk(response: InstanceType<typeof this.SERVER_COMMAND_RESPONSE_TYPE>): TResult {\n * return response.getNumber('n') ?? 0;\n * }\n * ```\n */\n handleOk(response) {\n return response.toObject(this.bsonOptions);\n }\n /**\n * Optional.\n *\n * If the operation performs error handling, such as wrapping, renaming the error, or squashing errors\n * this method can be overridden.\n */\n handleError(error) {\n throw error;\n }\n}\nexports.AbstractOperation = AbstractOperation;\nfunction defineAspects(operation, aspects) {\n if (!Array.isArray(aspects) && !(aspects instanceof Set)) {\n aspects = [aspects];\n }\n aspects = new Set(aspects);\n Object.defineProperty(operation, 'aspects', {\n value: aspects,\n writable: false\n });\n return aspects;\n}\n//# sourceMappingURL=operation.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,oBAAoB,QAAQ,SAAS,KAAK;AAClD,SAAQ,gBAAgB;CACxB,MAAM;CACN,MAAM;AACN,SAAQ,SAAS;EACb,gBAAgB,OAAO,iBAAiB;EACxC,iBAAiB,OAAO,kBAAkB;EAC1C,WAAW,OAAO,YAAY;EAC9B,aAAa,OAAO,cAAc;EAClC,gBAAgB,OAAO,iBAAiB;EACxC,iBAAiB,OAAO,kBAAkB;EAC1C,yBAAyB,OAAO,0BAA0B;EAC1D,kBAAkB,OAAO,mBAAmB;EAC5C,mBAAmB,OAAO,oBAAoB;EACjD;;;;;;;;CAQD,IAAM,oBAAN,MAAwB;EACpB,YAAY,UAAU,EAAE,EAAE;AACtB,QAAK,iBAAiB,KAAK,UAAU,QAAQ,OAAO,gBAAgB,GAC9D,kBAAkB,eAAe,UAChC,kBAAkB,eAAe,YAAY,QAAQ,IAAI,kBAAkB,eAAe;AAEjG,QAAK,eAAe,GAAG,OAAO,oBAAoB,QAAQ;AAC1D,QAAK,WAAW,QAAQ,WAAW,OAAO,QAAQ,UAAU;AAC5D,QAAK,UAAU;AACf,QAAK,qBAAqB,CAAC,CAAC,QAAQ;;EAExC,UAAU,QAAQ;GACd,MAAM,OAAO,KAAK;AAClB,OAAI,KAAK,WAAW,KAChB,QAAO;AAEX,UAAO,KAAK,QAAQ,IAAI,OAAO;;EAGnC,IAAI,UAAU;AACV,UAAO,KAAK;;EAEhB,IAAI,QAAQ,SAAS;AACjB,QAAK,WAAW;;EAEpB,eAAe;AACX,QAAK,WAAW;;EAEpB,aAAa;AACT,UAAO;;EAEX,IAAI,eAAe;AACf,UAAO,KAAK,UAAU,QAAQ,OAAO,UAAU,IAAI,KAAK,UAAU,QAAQ,OAAO,eAAe;;EAEpG,IAAI,gBAAgB;AAChB,UAAO,KAAK,UAAU,QAAQ,OAAO,UAAU,IAAI,KAAK,UAAU,QAAQ,OAAO,gBAAgB;;;;;;;;;;;;;;;;;EAiBrG,SAAS,UAAU;AACf,UAAO,SAAS,SAAS,KAAK,YAAY;;;;;;;;EAQ9C,YAAY,OAAO;AACf,SAAM;;;AAGd,SAAQ,oBAAoB;CAC5B,SAAS,cAAc,WAAW,SAAS;AACvC,MAAI,CAAC,MAAM,QAAQ,QAAQ,IAAI,EAAE,mBAAmB,KAChD,WAAU,CAAC,QAAQ;AAEvB,YAAU,IAAI,IAAI,QAAQ;AAC1B,SAAO,eAAe,WAAW,WAAW;GACxC,OAAO;GACP,UAAU;GACb,CAAC;AACF,SAAO"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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_responses } from "../cmap/wire_protocol/responses.mjs";
|
|
5
|
+
import { require_command } from "./command.mjs";
|
|
6
|
+
|
|
7
|
+
//#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.js
|
|
8
|
+
var require_profiling_level = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ProfilingLevelOperation = void 0;
|
|
11
|
+
const bson_1 = require_bson();
|
|
12
|
+
const responses_1 = require_responses();
|
|
13
|
+
const error_1 = require_error();
|
|
14
|
+
const command_1 = require_command();
|
|
15
|
+
var ProfilingLevelResponse = class extends responses_1.MongoDBResponse {
|
|
16
|
+
get was() {
|
|
17
|
+
return this.get("was", bson_1.BSONType.int, true);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
var ProfilingLevelOperation = class extends command_1.CommandOperation {
|
|
22
|
+
constructor(db, options) {
|
|
23
|
+
super(db, options);
|
|
24
|
+
this.SERVER_COMMAND_RESPONSE_TYPE = ProfilingLevelResponse;
|
|
25
|
+
this.options = options;
|
|
26
|
+
}
|
|
27
|
+
get commandName() {
|
|
28
|
+
return "profile";
|
|
29
|
+
}
|
|
30
|
+
buildCommandDocument(_connection) {
|
|
31
|
+
return { profile: -1 };
|
|
32
|
+
}
|
|
33
|
+
handleOk(response) {
|
|
34
|
+
if (response.ok === 1) {
|
|
35
|
+
const was = response.was;
|
|
36
|
+
if (was === 0) return "off";
|
|
37
|
+
if (was === 1) return "slow_only";
|
|
38
|
+
if (was === 2) return "all";
|
|
39
|
+
throw new error_1.MongoUnexpectedServerResponseError(`Illegal profiling level value ${was}`);
|
|
40
|
+
} else throw new error_1.MongoUnexpectedServerResponseError("Error with profile command");
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.ProfilingLevelOperation = ProfilingLevelOperation;
|
|
44
|
+
}));
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export default require_profiling_level();
|
|
48
|
+
|
|
49
|
+
export { require_profiling_level };
|
|
50
|
+
//# sourceMappingURL=profiling_level.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiling_level.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ProfilingLevelOperation = void 0;\nconst bson_1 = require(\"../bson\");\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst command_1 = require(\"./command\");\nclass ProfilingLevelResponse extends responses_1.MongoDBResponse {\n get was() {\n return this.get('was', bson_1.BSONType.int, true);\n }\n}\n/** @internal */\nclass ProfilingLevelOperation extends command_1.CommandOperation {\n constructor(db, options) {\n super(db, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = ProfilingLevelResponse;\n this.options = options;\n }\n get commandName() {\n return 'profile';\n }\n buildCommandDocument(_connection) {\n return { profile: -1 };\n }\n handleOk(response) {\n if (response.ok === 1) {\n const was = response.was;\n if (was === 0)\n return 'off';\n if (was === 1)\n return 'slow_only';\n if (was === 2)\n return 'all';\n throw new error_1.MongoUnexpectedServerResponseError(`Illegal profiling level value ${was}`);\n }\n else {\n throw new error_1.MongoUnexpectedServerResponseError('Error with profile command');\n }\n }\n}\nexports.ProfilingLevelOperation = ProfilingLevelOperation;\n//# sourceMappingURL=profiling_level.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,0BAA0B,KAAK;CACvC,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,IAAM,yBAAN,cAAqC,YAAY,gBAAgB;EAC7D,IAAI,MAAM;AACN,UAAO,KAAK,IAAI,OAAO,OAAO,SAAS,KAAK,KAAK;;;;CAIzD,IAAM,0BAAN,cAAsC,UAAU,iBAAiB;EAC7D,YAAY,IAAI,SAAS;AACrB,SAAM,IAAI,QAAQ;AAClB,QAAK,+BAA+B;AACpC,QAAK,UAAU;;EAEnB,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,aAAa;AAC9B,UAAO,EAAE,SAAS,IAAI;;EAE1B,SAAS,UAAU;AACf,OAAI,SAAS,OAAO,GAAG;IACnB,MAAM,MAAM,SAAS;AACrB,QAAI,QAAQ,EACR,QAAO;AACX,QAAI,QAAQ,EACR,QAAO;AACX,QAAI,QAAQ,EACR,QAAO;AACX,UAAM,IAAI,QAAQ,mCAAmC,iCAAiC,MAAM;SAG5F,OAAM,IAAI,QAAQ,mCAAmC,6BAA6B;;;AAI9F,SAAQ,0BAA0B"}
|
package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_responses } from "../cmap/wire_protocol/responses.mjs";
|
|
3
|
+
import { require_operation } from "./operation.mjs";
|
|
4
|
+
import { require_command } from "./command.mjs";
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.js
|
|
7
|
+
var require_remove_user = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.RemoveUserOperation = void 0;
|
|
10
|
+
const responses_1 = require_responses();
|
|
11
|
+
const command_1 = require_command();
|
|
12
|
+
const operation_1 = require_operation();
|
|
13
|
+
/** @internal */
|
|
14
|
+
var RemoveUserOperation = class extends command_1.CommandOperation {
|
|
15
|
+
constructor(db, username, options) {
|
|
16
|
+
super(db, options);
|
|
17
|
+
this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
|
|
18
|
+
this.options = options;
|
|
19
|
+
this.username = username;
|
|
20
|
+
}
|
|
21
|
+
get commandName() {
|
|
22
|
+
return "dropUser";
|
|
23
|
+
}
|
|
24
|
+
buildCommandDocument(_connection) {
|
|
25
|
+
return { dropUser: this.username };
|
|
26
|
+
}
|
|
27
|
+
handleOk(_response) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.RemoveUserOperation = RemoveUserOperation;
|
|
32
|
+
(0, operation_1.defineAspects)(RemoveUserOperation, [operation_1.Aspect.WRITE_OPERATION]);
|
|
33
|
+
}));
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export default require_remove_user();
|
|
37
|
+
|
|
38
|
+
export { require_remove_user };
|
|
39
|
+
//# sourceMappingURL=remove_user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove_user.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RemoveUserOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nclass RemoveUserOperation extends command_1.CommandOperation {\n constructor(db, username, options) {\n super(db, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options;\n this.username = username;\n }\n get commandName() {\n return 'dropUser';\n }\n buildCommandDocument(_connection) {\n return { dropUser: this.username };\n }\n handleOk(_response) {\n return true;\n }\n}\nexports.RemoveUserOperation = RemoveUserOperation;\n(0, operation_1.defineAspects)(RemoveUserOperation, [operation_1.Aspect.WRITE_OPERATION]);\n//# sourceMappingURL=remove_user.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;;CAEN,IAAM,sBAAN,cAAkC,UAAU,iBAAiB;EACzD,YAAY,IAAI,UAAU,SAAS;AAC/B,SAAM,IAAI,QAAQ;AAClB,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU;AACf,QAAK,WAAW;;EAEpB,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,aAAa;AAC9B,UAAO,EAAE,UAAU,KAAK,UAAU;;EAEtC,SAAS,WAAW;AAChB,UAAO;;;AAGf,SAAQ,sBAAsB;AAC9B,EAAC,GAAG,YAAY,eAAe,qBAAqB,CAAC,YAAY,OAAO,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_responses } from "../cmap/wire_protocol/responses.mjs";
|
|
3
|
+
import { require_utils } from "../utils.mjs";
|
|
4
|
+
import { require_operation } from "./operation.mjs";
|
|
5
|
+
import { require_command } from "./command.mjs";
|
|
6
|
+
import { require_collection } from "../collection.mjs";
|
|
7
|
+
|
|
8
|
+
//#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.js
|
|
9
|
+
var require_rename = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.RenameOperation = void 0;
|
|
12
|
+
const responses_1 = require_responses();
|
|
13
|
+
const collection_1 = require_collection();
|
|
14
|
+
const utils_1 = require_utils();
|
|
15
|
+
const command_1 = require_command();
|
|
16
|
+
const operation_1 = require_operation();
|
|
17
|
+
/** @internal */
|
|
18
|
+
var RenameOperation = class extends command_1.CommandOperation {
|
|
19
|
+
constructor(collection, newName, options) {
|
|
20
|
+
super(collection, options);
|
|
21
|
+
this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
|
|
22
|
+
this.collection = collection;
|
|
23
|
+
this.newName = newName;
|
|
24
|
+
this.options = options;
|
|
25
|
+
this.ns = new utils_1.MongoDBNamespace("admin", "$cmd");
|
|
26
|
+
}
|
|
27
|
+
get commandName() {
|
|
28
|
+
return "renameCollection";
|
|
29
|
+
}
|
|
30
|
+
buildCommandDocument(_connection, _session) {
|
|
31
|
+
return {
|
|
32
|
+
renameCollection: this.collection.namespace,
|
|
33
|
+
to: this.collection.s.namespace.withCollection(this.newName).toString(),
|
|
34
|
+
dropTarget: typeof this.options.dropTarget === "boolean" ? this.options.dropTarget : false
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
handleOk(_response) {
|
|
38
|
+
return new collection_1.Collection(this.collection.db, this.newName, this.collection.s.options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
exports.RenameOperation = RenameOperation;
|
|
42
|
+
(0, operation_1.defineAspects)(RenameOperation, [operation_1.Aspect.WRITE_OPERATION]);
|
|
43
|
+
}));
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export default require_rename();
|
|
47
|
+
|
|
48
|
+
export { require_rename };
|
|
49
|
+
//# sourceMappingURL=rename.mjs.map
|
package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rename.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RenameOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst collection_1 = require(\"../collection\");\nconst utils_1 = require(\"../utils\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nclass RenameOperation extends command_1.CommandOperation {\n constructor(collection, newName, options) {\n super(collection, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.collection = collection;\n this.newName = newName;\n this.options = options;\n this.ns = new utils_1.MongoDBNamespace('admin', '$cmd');\n }\n get commandName() {\n return 'renameCollection';\n }\n buildCommandDocument(_connection, _session) {\n const renameCollection = this.collection.namespace;\n const to = this.collection.s.namespace.withCollection(this.newName).toString();\n const dropTarget = typeof this.options.dropTarget === 'boolean' ? this.options.dropTarget : false;\n return {\n renameCollection,\n to,\n dropTarget\n };\n }\n handleOk(_response) {\n return new collection_1.Collection(this.collection.db, this.newName, this.collection.s.options);\n }\n}\nexports.RenameOperation = RenameOperation;\n(0, operation_1.defineAspects)(RenameOperation, [operation_1.Aspect.WRITE_OPERATION]);\n//# sourceMappingURL=rename.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,kBAAkB,KAAK;CAC/B,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,kBAAN,cAA8B,UAAU,iBAAiB;EACrD,YAAY,YAAY,SAAS,SAAS;AACtC,SAAM,YAAY,QAAQ;AAC1B,QAAK,+BAA+B,YAAY;AAChD,QAAK,aAAa;AAClB,QAAK,UAAU;AACf,QAAK,UAAU;AACf,QAAK,KAAK,IAAI,QAAQ,iBAAiB,SAAS,OAAO;;EAE3D,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,aAAa,UAAU;AAIxC,UAAO;IACH,kBAJqB,KAAK,WAAW;IAKrC,IAJO,KAAK,WAAW,EAAE,UAAU,eAAe,KAAK,QAAQ,CAAC,UAAU;IAK1E,YAJe,OAAO,KAAK,QAAQ,eAAe,YAAY,KAAK,QAAQ,aAAa;IAK3F;;EAEL,SAAS,WAAW;AAChB,UAAO,IAAI,aAAa,WAAW,KAAK,WAAW,IAAI,KAAK,SAAS,KAAK,WAAW,EAAE,QAAQ;;;AAGvG,SAAQ,kBAAkB;AAC1B,EAAC,GAAG,YAAY,eAAe,iBAAiB,CAAC,YAAY,OAAO,gBAAgB,CAAC"}
|
package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_responses } from "../cmap/wire_protocol/responses.mjs";
|
|
3
|
+
import { require_operation } from "./operation.mjs";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.js
|
|
6
|
+
var require_run_command = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.RunCursorCommandOperation = exports.RunCommandOperation = void 0;
|
|
9
|
+
const responses_1 = require_responses();
|
|
10
|
+
const operation_1 = require_operation();
|
|
11
|
+
/** @internal */
|
|
12
|
+
var RunCommandOperation = class extends operation_1.AbstractOperation {
|
|
13
|
+
constructor(namespace, command, options) {
|
|
14
|
+
super(options);
|
|
15
|
+
this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
|
|
16
|
+
this.command = command;
|
|
17
|
+
this.options = options;
|
|
18
|
+
this.ns = namespace.withCollection("$cmd");
|
|
19
|
+
}
|
|
20
|
+
get commandName() {
|
|
21
|
+
return "runCommand";
|
|
22
|
+
}
|
|
23
|
+
buildCommand(_connection, _session) {
|
|
24
|
+
return this.command;
|
|
25
|
+
}
|
|
26
|
+
buildOptions(timeoutContext) {
|
|
27
|
+
return {
|
|
28
|
+
...this.options,
|
|
29
|
+
session: this.session,
|
|
30
|
+
timeoutContext,
|
|
31
|
+
signal: this.options.signal,
|
|
32
|
+
readPreference: this.options.readPreference
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.RunCommandOperation = RunCommandOperation;
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*
|
|
40
|
+
* A specialized subclass of RunCommandOperation for cursor-creating commands.
|
|
41
|
+
*/
|
|
42
|
+
var RunCursorCommandOperation = class extends RunCommandOperation {
|
|
43
|
+
constructor() {
|
|
44
|
+
super(...arguments);
|
|
45
|
+
this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;
|
|
46
|
+
}
|
|
47
|
+
handleOk(response) {
|
|
48
|
+
return response;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
exports.RunCursorCommandOperation = RunCursorCommandOperation;
|
|
52
|
+
}));
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
export default require_run_command();
|
|
56
|
+
|
|
57
|
+
export { require_run_command };
|
|
58
|
+
//# sourceMappingURL=run_command.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run_command.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RunCursorCommandOperation = exports.RunCommandOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst operation_1 = require(\"../operations/operation\");\n/** @internal */\nclass RunCommandOperation extends operation_1.AbstractOperation {\n constructor(namespace, command, options) {\n super(options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.command = command;\n this.options = options;\n this.ns = namespace.withCollection('$cmd');\n }\n get commandName() {\n return 'runCommand';\n }\n buildCommand(_connection, _session) {\n return this.command;\n }\n buildOptions(timeoutContext) {\n return {\n ...this.options,\n session: this.session,\n timeoutContext,\n signal: this.options.signal,\n readPreference: this.options.readPreference\n };\n }\n}\nexports.RunCommandOperation = RunCommandOperation;\n/**\n * @internal\n *\n * A specialized subclass of RunCommandOperation for cursor-creating commands.\n */\nclass RunCursorCommandOperation extends RunCommandOperation {\n constructor() {\n super(...arguments);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;\n }\n handleOk(response) {\n return response;\n }\n}\nexports.RunCursorCommandOperation = RunCursorCommandOperation;\n//# sourceMappingURL=run_command.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,4BAA4B,QAAQ,sBAAsB,KAAK;CACvE,MAAM;CACN,MAAM;;CAEN,IAAM,sBAAN,cAAkC,YAAY,kBAAkB;EAC5D,YAAY,WAAW,SAAS,SAAS;AACrC,SAAM,QAAQ;AACd,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU;AACf,QAAK,UAAU;AACf,QAAK,KAAK,UAAU,eAAe,OAAO;;EAE9C,IAAI,cAAc;AACd,UAAO;;EAEX,aAAa,aAAa,UAAU;AAChC,UAAO,KAAK;;EAEhB,aAAa,gBAAgB;AACzB,UAAO;IACH,GAAG,KAAK;IACR,SAAS,KAAK;IACd;IACA,QAAQ,KAAK,QAAQ;IACrB,gBAAgB,KAAK,QAAQ;IAChC;;;AAGT,SAAQ,sBAAsB;;;;;;CAM9B,IAAM,4BAAN,cAAwC,oBAAoB;EACxD,cAAc;AACV,SAAM,GAAG,UAAU;AACnB,QAAK,+BAA+B,YAAY;;EAEpD,SAAS,UAAU;AACf,UAAO;;;AAGf,SAAQ,4BAA4B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_responses } from "../../cmap/wire_protocol/responses.mjs";
|
|
3
|
+
import { require_operation } from "../operation.mjs";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.js
|
|
6
|
+
var require_create = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.CreateSearchIndexesOperation = void 0;
|
|
9
|
+
const responses_1 = require_responses();
|
|
10
|
+
const operation_1 = require_operation();
|
|
11
|
+
/** @internal */
|
|
12
|
+
var CreateSearchIndexesOperation = class extends operation_1.AbstractOperation {
|
|
13
|
+
constructor(collection, descriptions) {
|
|
14
|
+
super();
|
|
15
|
+
this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
|
|
16
|
+
this.collection = collection;
|
|
17
|
+
this.descriptions = descriptions;
|
|
18
|
+
this.ns = collection.fullNamespace;
|
|
19
|
+
}
|
|
20
|
+
get commandName() {
|
|
21
|
+
return "createSearchIndexes";
|
|
22
|
+
}
|
|
23
|
+
buildCommand(_connection, _session) {
|
|
24
|
+
return {
|
|
25
|
+
createSearchIndexes: this.collection.fullNamespace.collection,
|
|
26
|
+
indexes: this.descriptions
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
handleOk(response) {
|
|
30
|
+
return super.handleOk(response).indexesCreated.map((val) => val.name);
|
|
31
|
+
}
|
|
32
|
+
buildOptions(timeoutContext) {
|
|
33
|
+
return {
|
|
34
|
+
session: this.session,
|
|
35
|
+
timeoutContext
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
exports.CreateSearchIndexesOperation = CreateSearchIndexesOperation;
|
|
40
|
+
}));
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
export default require_create();
|
|
44
|
+
|
|
45
|
+
export { require_create };
|
|
46
|
+
//# sourceMappingURL=create.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CreateSearchIndexesOperation = void 0;\nconst responses_1 = require(\"../../cmap/wire_protocol/responses\");\nconst operation_1 = require(\"../operation\");\n/** @internal */\nclass CreateSearchIndexesOperation extends operation_1.AbstractOperation {\n constructor(collection, descriptions) {\n super();\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.collection = collection;\n this.descriptions = descriptions;\n this.ns = collection.fullNamespace;\n }\n get commandName() {\n return 'createSearchIndexes';\n }\n buildCommand(_connection, _session) {\n const namespace = this.collection.fullNamespace;\n return {\n createSearchIndexes: namespace.collection,\n indexes: this.descriptions\n };\n }\n handleOk(response) {\n return super.handleOk(response).indexesCreated.map((val) => val.name);\n }\n buildOptions(timeoutContext) {\n return { session: this.session, timeoutContext };\n }\n}\nexports.CreateSearchIndexesOperation = CreateSearchIndexesOperation;\n//# sourceMappingURL=create.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,+BAA+B,KAAK;CAC5C,MAAM;CACN,MAAM;;CAEN,IAAM,+BAAN,cAA2C,YAAY,kBAAkB;EACrE,YAAY,YAAY,cAAc;AAClC,UAAO;AACP,QAAK,+BAA+B,YAAY;AAChD,QAAK,aAAa;AAClB,QAAK,eAAe;AACpB,QAAK,KAAK,WAAW;;EAEzB,IAAI,cAAc;AACd,UAAO;;EAEX,aAAa,aAAa,UAAU;AAEhC,UAAO;IACH,qBAFc,KAAK,WAAW,cAEC;IAC/B,SAAS,KAAK;IACjB;;EAEL,SAAS,UAAU;AACf,UAAO,MAAM,SAAS,SAAS,CAAC,eAAe,KAAK,QAAQ,IAAI,KAAK;;EAEzE,aAAa,gBAAgB;AACzB,UAAO;IAAE,SAAS,KAAK;IAAS;IAAgB;;;AAGxD,SAAQ,+BAA+B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_error } from "../../error.mjs";
|
|
3
|
+
import { require_responses } from "../../cmap/wire_protocol/responses.mjs";
|
|
4
|
+
import { require_operation } from "../operation.mjs";
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.js
|
|
7
|
+
var require_drop = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.DropSearchIndexOperation = void 0;
|
|
10
|
+
const responses_1 = require_responses();
|
|
11
|
+
const error_1 = require_error();
|
|
12
|
+
const operation_1 = require_operation();
|
|
13
|
+
/** @internal */
|
|
14
|
+
var DropSearchIndexOperation = class extends operation_1.AbstractOperation {
|
|
15
|
+
constructor(collection, name) {
|
|
16
|
+
super();
|
|
17
|
+
this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
|
|
18
|
+
this.collection = collection;
|
|
19
|
+
this.name = name;
|
|
20
|
+
this.ns = collection.fullNamespace;
|
|
21
|
+
}
|
|
22
|
+
get commandName() {
|
|
23
|
+
return "dropSearchIndex";
|
|
24
|
+
}
|
|
25
|
+
buildCommand(_connection, _session) {
|
|
26
|
+
const command = { dropSearchIndex: this.collection.fullNamespace.collection };
|
|
27
|
+
if (typeof this.name === "string") command.name = this.name;
|
|
28
|
+
return command;
|
|
29
|
+
}
|
|
30
|
+
handleOk(_response) {}
|
|
31
|
+
buildOptions(timeoutContext) {
|
|
32
|
+
return {
|
|
33
|
+
session: this.session,
|
|
34
|
+
timeoutContext
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
handleError(error) {
|
|
38
|
+
if (!(error instanceof error_1.MongoServerError && error.code === error_1.MONGODB_ERROR_CODES.NamespaceNotFound)) throw error;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
exports.DropSearchIndexOperation = DropSearchIndexOperation;
|
|
42
|
+
}));
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export default require_drop();
|
|
46
|
+
|
|
47
|
+
export { require_drop };
|
|
48
|
+
//# sourceMappingURL=drop.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drop.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DropSearchIndexOperation = void 0;\nconst responses_1 = require(\"../../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../../error\");\nconst operation_1 = require(\"../operation\");\n/** @internal */\nclass DropSearchIndexOperation extends operation_1.AbstractOperation {\n constructor(collection, name) {\n super();\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.collection = collection;\n this.name = name;\n this.ns = collection.fullNamespace;\n }\n get commandName() {\n return 'dropSearchIndex';\n }\n buildCommand(_connection, _session) {\n const namespace = this.collection.fullNamespace;\n const command = {\n dropSearchIndex: namespace.collection\n };\n if (typeof this.name === 'string') {\n command.name = this.name;\n }\n return command;\n }\n handleOk(_response) {\n // do nothing\n }\n buildOptions(timeoutContext) {\n return { session: this.session, timeoutContext };\n }\n handleError(error) {\n const isNamespaceNotFoundError = error instanceof error_1.MongoServerError && error.code === error_1.MONGODB_ERROR_CODES.NamespaceNotFound;\n if (!isNamespaceNotFoundError) {\n throw error;\n }\n }\n}\nexports.DropSearchIndexOperation = DropSearchIndexOperation;\n//# sourceMappingURL=drop.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,2BAA2B,KAAK;CACxC,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,2BAAN,cAAuC,YAAY,kBAAkB;EACjE,YAAY,YAAY,MAAM;AAC1B,UAAO;AACP,QAAK,+BAA+B,YAAY;AAChD,QAAK,aAAa;AAClB,QAAK,OAAO;AACZ,QAAK,KAAK,WAAW;;EAEzB,IAAI,cAAc;AACd,UAAO;;EAEX,aAAa,aAAa,UAAU;GAEhC,MAAM,UAAU,EACZ,iBAFc,KAAK,WAAW,cAEH,YAC9B;AACD,OAAI,OAAO,KAAK,SAAS,SACrB,SAAQ,OAAO,KAAK;AAExB,UAAO;;EAEX,SAAS,WAAW;EAGpB,aAAa,gBAAgB;AACzB,UAAO;IAAE,SAAS,KAAK;IAAS;IAAgB;;EAEpD,YAAY,OAAO;AAEf,OAAI,EAD6B,iBAAiB,QAAQ,oBAAoB,MAAM,SAAS,QAAQ,oBAAoB,mBAErH,OAAM;;;AAIlB,SAAQ,2BAA2B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_responses } from "../../cmap/wire_protocol/responses.mjs";
|
|
3
|
+
import { require_operation } from "../operation.mjs";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.js
|
|
6
|
+
var require_update = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.UpdateSearchIndexOperation = void 0;
|
|
9
|
+
const responses_1 = require_responses();
|
|
10
|
+
const operation_1 = require_operation();
|
|
11
|
+
/** @internal */
|
|
12
|
+
var UpdateSearchIndexOperation = class extends operation_1.AbstractOperation {
|
|
13
|
+
constructor(collection, name, definition) {
|
|
14
|
+
super();
|
|
15
|
+
this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
|
|
16
|
+
this.collection = collection;
|
|
17
|
+
this.name = name;
|
|
18
|
+
this.definition = definition;
|
|
19
|
+
this.ns = collection.fullNamespace;
|
|
20
|
+
}
|
|
21
|
+
get commandName() {
|
|
22
|
+
return "updateSearchIndex";
|
|
23
|
+
}
|
|
24
|
+
buildCommand(_connection, _session) {
|
|
25
|
+
return {
|
|
26
|
+
updateSearchIndex: this.collection.fullNamespace.collection,
|
|
27
|
+
name: this.name,
|
|
28
|
+
definition: this.definition
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
handleOk(_response) {}
|
|
32
|
+
buildOptions(timeoutContext) {
|
|
33
|
+
return {
|
|
34
|
+
session: this.session,
|
|
35
|
+
timeoutContext
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
exports.UpdateSearchIndexOperation = UpdateSearchIndexOperation;
|
|
40
|
+
}));
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
export default require_update();
|
|
44
|
+
|
|
45
|
+
export { require_update };
|
|
46
|
+
//# sourceMappingURL=update.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.UpdateSearchIndexOperation = void 0;\nconst responses_1 = require(\"../../cmap/wire_protocol/responses\");\nconst operation_1 = require(\"../operation\");\n/** @internal */\nclass UpdateSearchIndexOperation extends operation_1.AbstractOperation {\n constructor(collection, name, definition) {\n super();\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.collection = collection;\n this.name = name;\n this.definition = definition;\n this.ns = collection.fullNamespace;\n }\n get commandName() {\n return 'updateSearchIndex';\n }\n buildCommand(_connection, _session) {\n const namespace = this.collection.fullNamespace;\n return {\n updateSearchIndex: namespace.collection,\n name: this.name,\n definition: this.definition\n };\n }\n handleOk(_response) {\n // no response.\n }\n buildOptions(timeoutContext) {\n return { session: this.session, timeoutContext };\n }\n}\nexports.UpdateSearchIndexOperation = UpdateSearchIndexOperation;\n//# sourceMappingURL=update.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,6BAA6B,KAAK;CAC1C,MAAM;CACN,MAAM;;CAEN,IAAM,6BAAN,cAAyC,YAAY,kBAAkB;EACnE,YAAY,YAAY,MAAM,YAAY;AACtC,UAAO;AACP,QAAK,+BAA+B,YAAY;AAChD,QAAK,aAAa;AAClB,QAAK,OAAO;AACZ,QAAK,aAAa;AAClB,QAAK,KAAK,WAAW;;EAEzB,IAAI,cAAc;AACd,UAAO;;EAEX,aAAa,aAAa,UAAU;AAEhC,UAAO;IACH,mBAFc,KAAK,WAAW,cAED;IAC7B,MAAM,KAAK;IACX,YAAY,KAAK;IACpB;;EAEL,SAAS,WAAW;EAGpB,aAAa,gBAAgB;AACzB,UAAO;IAAE,SAAS,KAAK;IAAS;IAAgB;;;AAGxD,SAAQ,6BAA6B"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_error } from "../error.mjs";
|
|
3
|
+
import { require_responses } from "../cmap/wire_protocol/responses.mjs";
|
|
4
|
+
import { require_utils } from "../utils.mjs";
|
|
5
|
+
import { require_command } from "./command.mjs";
|
|
6
|
+
|
|
7
|
+
//#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.js
|
|
8
|
+
var require_set_profiling_level = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.SetProfilingLevelOperation = exports.ProfilingLevel = void 0;
|
|
11
|
+
const responses_1 = require_responses();
|
|
12
|
+
const error_1 = require_error();
|
|
13
|
+
const utils_1 = require_utils();
|
|
14
|
+
const command_1 = require_command();
|
|
15
|
+
const levelValues = new Set([
|
|
16
|
+
"off",
|
|
17
|
+
"slow_only",
|
|
18
|
+
"all"
|
|
19
|
+
]);
|
|
20
|
+
/** @public */
|
|
21
|
+
exports.ProfilingLevel = Object.freeze({
|
|
22
|
+
off: "off",
|
|
23
|
+
slowOnly: "slow_only",
|
|
24
|
+
all: "all"
|
|
25
|
+
});
|
|
26
|
+
/** @internal */
|
|
27
|
+
var SetProfilingLevelOperation = class extends command_1.CommandOperation {
|
|
28
|
+
constructor(db, level, options) {
|
|
29
|
+
super(db, options);
|
|
30
|
+
this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
|
|
31
|
+
this.options = options;
|
|
32
|
+
switch (level) {
|
|
33
|
+
case exports.ProfilingLevel.off:
|
|
34
|
+
this.profile = 0;
|
|
35
|
+
break;
|
|
36
|
+
case exports.ProfilingLevel.slowOnly:
|
|
37
|
+
this.profile = 1;
|
|
38
|
+
break;
|
|
39
|
+
case exports.ProfilingLevel.all:
|
|
40
|
+
this.profile = 2;
|
|
41
|
+
break;
|
|
42
|
+
default:
|
|
43
|
+
this.profile = 0;
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
this.level = level;
|
|
47
|
+
}
|
|
48
|
+
get commandName() {
|
|
49
|
+
return "profile";
|
|
50
|
+
}
|
|
51
|
+
buildCommandDocument(_connection) {
|
|
52
|
+
const level = this.level;
|
|
53
|
+
if (!levelValues.has(level)) throw new error_1.MongoInvalidArgumentError(`Profiling level must be one of "${(0, utils_1.enumToString)(exports.ProfilingLevel)}"`);
|
|
54
|
+
return { profile: this.profile };
|
|
55
|
+
}
|
|
56
|
+
handleOk(_response) {
|
|
57
|
+
return this.level;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.SetProfilingLevelOperation = SetProfilingLevelOperation;
|
|
61
|
+
}));
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
export default require_set_profiling_level();
|
|
65
|
+
|
|
66
|
+
export { require_set_profiling_level };
|
|
67
|
+
//# sourceMappingURL=set_profiling_level.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set_profiling_level.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SetProfilingLevelOperation = exports.ProfilingLevel = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst utils_1 = require(\"../utils\");\nconst command_1 = require(\"./command\");\nconst levelValues = new Set(['off', 'slow_only', 'all']);\n/** @public */\nexports.ProfilingLevel = Object.freeze({\n off: 'off',\n slowOnly: 'slow_only',\n all: 'all'\n});\n/** @internal */\nclass SetProfilingLevelOperation extends command_1.CommandOperation {\n constructor(db, level, options) {\n super(db, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options;\n switch (level) {\n case exports.ProfilingLevel.off:\n this.profile = 0;\n break;\n case exports.ProfilingLevel.slowOnly:\n this.profile = 1;\n break;\n case exports.ProfilingLevel.all:\n this.profile = 2;\n break;\n default:\n this.profile = 0;\n break;\n }\n this.level = level;\n }\n get commandName() {\n return 'profile';\n }\n buildCommandDocument(_connection) {\n const level = this.level;\n if (!levelValues.has(level)) {\n // TODO(NODE-3483): Determine error to put here\n throw new error_1.MongoInvalidArgumentError(`Profiling level must be one of \"${(0, utils_1.enumToString)(exports.ProfilingLevel)}\"`);\n }\n return { profile: this.profile };\n }\n handleOk(_response) {\n return this.level;\n }\n}\nexports.SetProfilingLevelOperation = SetProfilingLevelOperation;\n//# sourceMappingURL=set_profiling_level.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,6BAA6B,QAAQ,iBAAiB,KAAK;CACnE,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM,cAAc,IAAI,IAAI;EAAC;EAAO;EAAa;EAAM,CAAC;;AAExD,SAAQ,iBAAiB,OAAO,OAAO;EACnC,KAAK;EACL,UAAU;EACV,KAAK;EACR,CAAC;;CAEF,IAAM,6BAAN,cAAyC,UAAU,iBAAiB;EAChE,YAAY,IAAI,OAAO,SAAS;AAC5B,SAAM,IAAI,QAAQ;AAClB,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU;AACf,WAAQ,OAAR;IACI,KAAK,QAAQ,eAAe;AACxB,UAAK,UAAU;AACf;IACJ,KAAK,QAAQ,eAAe;AACxB,UAAK,UAAU;AACf;IACJ,KAAK,QAAQ,eAAe;AACxB,UAAK,UAAU;AACf;IACJ;AACI,UAAK,UAAU;AACf;;AAER,QAAK,QAAQ;;EAEjB,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,aAAa;GAC9B,MAAM,QAAQ,KAAK;AACnB,OAAI,CAAC,YAAY,IAAI,MAAM,CAEvB,OAAM,IAAI,QAAQ,0BAA0B,oCAAoC,GAAG,QAAQ,cAAc,QAAQ,eAAe,CAAC,GAAG;AAExI,UAAO,EAAE,SAAS,KAAK,SAAS;;EAEpC,SAAS,WAAW;AAChB,UAAO,KAAK;;;AAGpB,SAAQ,6BAA6B"}
|