pecunia-root 0.0.9 → 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.
Files changed (360) hide show
  1. package/dist/_virtual/rolldown_runtime.mjs +8 -0
  2. package/dist/adapters/drizzle-adapter/index.mjs +4 -1
  3. package/dist/adapters/drizzle-adapter/index.mjs.map +1 -1
  4. package/dist/adapters/mongodb-adapter/index.mjs +12 -11
  5. package/dist/adapters/mongodb-adapter/index.mjs.map +1 -1
  6. package/dist/db/migrations/index.mjs +0 -6
  7. package/dist/db/migrations/index.mjs.map +1 -1
  8. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs +14 -0
  9. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs.map +1 -0
  10. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs +54 -0
  11. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs.map +1 -0
  12. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs +36 -0
  13. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs.map +1 -0
  14. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs +27 -0
  15. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs.map +1 -0
  16. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs +3728 -0
  17. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs.map +1 -0
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs +137 -0
  55. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs.map +1 -0
  56. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs +211 -0
  57. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs.map +1 -0
  58. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs +95 -0
  59. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs.map +1 -0
  60. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs +158 -0
  61. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs.map +1 -0
  62. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs +195 -0
  63. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs.map +1 -0
  64. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs +710 -0
  65. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs.map +1 -0
  66. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs +53 -0
  67. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs.map +1 -0
  68. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs +63 -0
  69. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs.map +1 -0
  70. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs +368 -0
  71. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs.map +1 -0
  72. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs +234 -0
  73. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs.map +1 -0
  74. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs +545 -0
  75. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs.map +1 -0
  76. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs +83 -0
  77. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs.map +1 -0
  78. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs +146 -0
  79. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs.map +1 -0
  80. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs +58 -0
  81. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs.map +1 -0
  82. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs +30 -0
  83. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs.map +1 -0
  84. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs +135 -0
  85. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs.map +1 -0
  86. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs +25 -0
  87. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs.map +1 -0
  88. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs +47 -0
  89. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs.map +1 -0
  90. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs +362 -0
  91. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs.map +1 -0
  92. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs +58 -0
  93. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs.map +1 -0
  94. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs +123 -0
  95. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs.map +1 -0
  96. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs +128 -0
  97. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs.map +1 -0
  98. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs +133 -0
  99. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs.map +1 -0
  100. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs +126 -0
  101. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs.map +1 -0
  102. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs +79 -0
  103. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs.map +1 -0
  104. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs +65 -0
  105. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs.map +1 -0
  106. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs +127 -0
  107. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs.map +1 -0
  108. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs +47 -0
  109. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs.map +1 -0
  110. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs +44 -0
  111. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs.map +1 -0
  112. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs +101 -0
  113. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs.map +1 -0
  114. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs +33 -0
  115. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs.map +1 -0
  116. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs +53 -0
  117. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs.map +1 -0
  118. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs +29 -0
  119. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs.map +1 -0
  120. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs +83 -0
  121. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs.map +1 -0
  122. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs +36 -0
  123. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs.map +1 -0
  124. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs +32 -0
  125. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs.map +1 -0
  126. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs +206 -0
  127. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs.map +1 -0
  128. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs +45 -0
  129. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs.map +1 -0
  130. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs +213 -0
  131. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs.map +1 -0
  132. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs +411 -0
  133. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs.map +1 -0
  134. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs +288 -0
  135. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs.map +1 -0
  136. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs +423 -0
  137. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs.map +1 -0
  138. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs +483 -0
  139. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs.map +1 -0
  140. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs +207 -0
  141. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs.map +1 -0
  142. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs +116 -0
  143. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs.map +1 -0
  144. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs +183 -0
  145. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs.map +1 -0
  146. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs +55 -0
  147. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs.map +1 -0
  148. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs +60 -0
  149. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs.map +1 -0
  150. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs +139 -0
  151. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs.map +1 -0
  152. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs +28 -0
  153. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs.map +1 -0
  154. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs +117 -0
  155. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs.map +1 -0
  156. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs +182 -0
  157. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs.map +1 -0
  158. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs +304 -0
  159. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs.map +1 -0
  160. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs +34 -0
  161. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs.map +1 -0
  162. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs +739 -0
  163. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs.map +1 -0
  164. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs +805 -0
  165. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs.map +1 -0
  166. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs +174 -0
  167. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs.map +1 -0
  168. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs +726 -0
  169. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs.map +1 -0
  170. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs +172 -0
  171. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs.map +1 -0
  172. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs +103 -0
  173. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs.map +1 -0
  174. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs +66 -0
  175. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs.map +1 -0
  176. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs +41 -0
  177. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs.map +1 -0
  178. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs +365 -0
  179. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs.map +1 -0
  180. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs +50 -0
  181. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs.map +1 -0
  182. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs +48 -0
  183. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs.map +1 -0
  184. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs +23 -0
  185. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs.map +1 -0
  186. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs +106 -0
  187. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs.map +1 -0
  188. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs +428 -0
  189. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs.map +1 -0
  190. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs +124 -0
  191. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs.map +1 -0
  192. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs +95 -0
  193. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs.map +1 -0
  194. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs +1305 -0
  195. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs.map +1 -0
  196. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs +59 -0
  197. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs.map +1 -0
  198. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs +250 -0
  199. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs.map +1 -0
  200. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs +170 -0
  201. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs.map +1 -0
  202. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs +315 -0
  203. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs.map +1 -0
  204. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs +925 -0
  205. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs.map +1 -0
  206. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs +520 -0
  207. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs.map +1 -0
  208. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs +90 -0
  209. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs.map +1 -0
  210. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs +582 -0
  211. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs.map +1 -0
  212. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs +64 -0
  213. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs.map +1 -0
  214. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs +86 -0
  215. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs.map +1 -0
  216. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs +60 -0
  217. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs.map +1 -0
  218. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs +264 -0
  219. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs.map +1 -0
  220. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs +109 -0
  221. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs.map +1 -0
  222. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs +172 -0
  223. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs.map +1 -0
  224. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs +68 -0
  225. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs.map +1 -0
  226. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs +53 -0
  227. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs.map +1 -0
  228. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs +123 -0
  229. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs.map +1 -0
  230. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs +119 -0
  231. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs.map +1 -0
  232. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs +65 -0
  233. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs.map +1 -0
  234. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs +97 -0
  235. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs.map +1 -0
  236. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs +47 -0
  237. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs.map +1 -0
  238. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs +188 -0
  239. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs.map +1 -0
  240. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs +103 -0
  241. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs.map +1 -0
  242. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs +136 -0
  243. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs.map +1 -0
  244. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs +61 -0
  245. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs.map +1 -0
  246. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs +179 -0
  247. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs.map +1 -0
  248. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs +77 -0
  249. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs.map +1 -0
  250. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs +48 -0
  251. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs.map +1 -0
  252. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs +60 -0
  253. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs.map +1 -0
  254. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs +43 -0
  255. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs.map +1 -0
  256. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs +105 -0
  257. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs.map +1 -0
  258. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs +50 -0
  259. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs.map +1 -0
  260. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs +39 -0
  261. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs.map +1 -0
  262. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs +49 -0
  263. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs.map +1 -0
  264. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs +58 -0
  265. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs.map +1 -0
  266. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs +46 -0
  267. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs.map +1 -0
  268. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs +48 -0
  269. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs.map +1 -0
  270. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs +46 -0
  271. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs.map +1 -0
  272. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs +67 -0
  273. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs.map +1 -0
  274. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs +37 -0
  275. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs.map +1 -0
  276. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs +171 -0
  277. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs.map +1 -0
  278. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs +45 -0
  279. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs.map +1 -0
  280. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs +71 -0
  281. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs.map +1 -0
  282. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs +165 -0
  283. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs.map +1 -0
  284. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs +62 -0
  285. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs.map +1 -0
  286. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs +51 -0
  287. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs.map +1 -0
  288. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs +156 -0
  289. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs.map +1 -0
  290. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs +477 -0
  291. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs.map +1 -0
  292. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs +315 -0
  293. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs.map +1 -0
  294. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs +157 -0
  295. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs.map +1 -0
  296. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs +184 -0
  297. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs.map +1 -0
  298. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs +96 -0
  299. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs.map +1 -0
  300. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs +107 -0
  301. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs.map +1 -0
  302. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs +540 -0
  303. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs.map +1 -0
  304. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs +298 -0
  305. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs.map +1 -0
  306. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs +623 -0
  307. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs.map +1 -0
  308. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs +91 -0
  309. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs.map +1 -0
  310. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs +254 -0
  311. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs.map +1 -0
  312. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs +138 -0
  313. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs.map +1 -0
  314. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs +993 -0
  315. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs.map +1 -0
  316. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs +81 -0
  317. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs.map +1 -0
  318. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs +171 -0
  319. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs.map +1 -0
  320. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs +295 -0
  321. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs.map +1 -0
  322. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs +81 -0
  323. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs.map +1 -0
  324. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs +206 -0
  325. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs.map +1 -0
  326. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs +33590 -0
  327. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs.map +1 -0
  328. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs +37 -0
  329. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs.map +1 -0
  330. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs +18 -0
  331. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs.map +1 -0
  332. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs +252 -0
  333. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs.map +1 -0
  334. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs +41 -0
  335. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs.map +1 -0
  336. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs +41 -0
  337. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs.map +1 -0
  338. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs +173 -0
  339. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs.map +1 -0
  340. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs +334 -0
  341. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs.map +1 -0
  342. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs +90 -0
  343. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs.map +1 -0
  344. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs +356 -0
  345. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs.map +1 -0
  346. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs +23 -0
  347. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs.map +1 -0
  348. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs +29 -0
  349. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs.map +1 -0
  350. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs +140 -0
  351. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs.map +1 -0
  352. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs +831 -0
  353. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs.map +1 -0
  354. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs +77 -0
  355. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs.map +1 -0
  356. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs +147 -0
  357. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs.map +1 -0
  358. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs +17 -0
  359. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs.map +1 -0
  360. package/package.json +2 -40
@@ -0,0 +1,65 @@
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/distinct.js
7
+ var require_distinct = /* @__PURE__ */ __commonJSMin(((exports) => {
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.DistinctOperation = void 0;
10
+ const responses_1 = require_responses();
11
+ const command_1 = require_command();
12
+ const operation_1 = require_operation();
13
+ /**
14
+ * Return a list of distinct values for the given key across a collection.
15
+ * @internal
16
+ */
17
+ var DistinctOperation = class extends command_1.CommandOperation {
18
+ /**
19
+ * Construct a Distinct operation.
20
+ *
21
+ * @param collection - Collection instance.
22
+ * @param key - Field of the document to find distinct values for.
23
+ * @param query - The query for filtering the set of documents to which we apply the distinct filter.
24
+ * @param options - Optional settings. See Collection.prototype.distinct for a list of options.
25
+ */
26
+ constructor(collection, key, query, options) {
27
+ super(collection, options);
28
+ this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
29
+ this.options = options ?? {};
30
+ this.collection = collection;
31
+ this.key = key;
32
+ this.query = query;
33
+ }
34
+ get commandName() {
35
+ return "distinct";
36
+ }
37
+ buildCommandDocument(_connection) {
38
+ const command = {
39
+ distinct: this.collection.collectionName,
40
+ key: this.key,
41
+ query: this.query
42
+ };
43
+ if (this.options.comment !== void 0) command.comment = this.options.comment;
44
+ if (this.options.hint != null) command.hint = this.options.hint;
45
+ return command;
46
+ }
47
+ handleOk(response) {
48
+ if (this.explain) return response.toObject(this.bsonOptions);
49
+ return response.toObject(this.bsonOptions).values;
50
+ }
51
+ };
52
+ exports.DistinctOperation = DistinctOperation;
53
+ (0, operation_1.defineAspects)(DistinctOperation, [
54
+ operation_1.Aspect.READ_OPERATION,
55
+ operation_1.Aspect.RETRYABLE,
56
+ operation_1.Aspect.EXPLAINABLE,
57
+ operation_1.Aspect.SUPPORTS_RAW_DATA
58
+ ]);
59
+ }));
60
+
61
+ //#endregion
62
+ export default require_distinct();
63
+
64
+ export { require_distinct };
65
+ //# sourceMappingURL=distinct.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"distinct.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DistinctOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/**\n * Return a list of distinct values for the given key across a collection.\n * @internal\n */\nclass DistinctOperation extends command_1.CommandOperation {\n /**\n * Construct a Distinct operation.\n *\n * @param collection - Collection instance.\n * @param key - Field of the document to find distinct values for.\n * @param query - The query for filtering the set of documents to which we apply the distinct filter.\n * @param options - Optional settings. See Collection.prototype.distinct for a list of options.\n */\n constructor(collection, key, query, options) {\n super(collection, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options ?? {};\n this.collection = collection;\n this.key = key;\n this.query = query;\n }\n get commandName() {\n return 'distinct';\n }\n buildCommandDocument(_connection) {\n const command = {\n distinct: this.collection.collectionName,\n key: this.key,\n query: this.query\n };\n // we check for undefined specifically here to allow falsy values\n // eslint-disable-next-line no-restricted-syntax\n if (this.options.comment !== undefined) {\n command.comment = this.options.comment;\n }\n if (this.options.hint != null) {\n command.hint = this.options.hint;\n }\n return command;\n }\n handleOk(response) {\n if (this.explain) {\n return response.toObject(this.bsonOptions);\n }\n return response.toObject(this.bsonOptions).values;\n }\n}\nexports.DistinctOperation = DistinctOperation;\n(0, operation_1.defineAspects)(DistinctOperation, [\n operation_1.Aspect.READ_OPERATION,\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.EXPLAINABLE,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n//# sourceMappingURL=distinct.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,oBAAoB,KAAK;CACjC,MAAM;CACN,MAAM;CACN,MAAM;;;;;CAKN,IAAM,oBAAN,cAAgC,UAAU,iBAAiB;;;;;;;;;EASvD,YAAY,YAAY,KAAK,OAAO,SAAS;AACzC,SAAM,YAAY,QAAQ;AAC1B,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU,WAAW,EAAE;AAC5B,QAAK,aAAa;AAClB,QAAK,MAAM;AACX,QAAK,QAAQ;;EAEjB,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,aAAa;GAC9B,MAAM,UAAU;IACZ,UAAU,KAAK,WAAW;IAC1B,KAAK,KAAK;IACV,OAAO,KAAK;IACf;AAGD,OAAI,KAAK,QAAQ,YAAY,OACzB,SAAQ,UAAU,KAAK,QAAQ;AAEnC,OAAI,KAAK,QAAQ,QAAQ,KACrB,SAAQ,OAAO,KAAK,QAAQ;AAEhC,UAAO;;EAEX,SAAS,UAAU;AACf,OAAI,KAAK,QACL,QAAO,SAAS,SAAS,KAAK,YAAY;AAE9C,UAAO,SAAS,SAAS,KAAK,YAAY,CAAC;;;AAGnD,SAAQ,oBAAoB;AAC5B,EAAC,GAAG,YAAY,eAAe,mBAAmB;EAC9C,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC"}
@@ -0,0 +1,97 @@
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_timeout } from "../timeout.mjs";
5
+ import { require_operation } from "./operation.mjs";
6
+ import { require_command } from "./command.mjs";
7
+ import { require_execute_operation } from "./execute_operation.mjs";
8
+ import { require_abstract_cursor } from "../cursor/abstract_cursor.mjs";
9
+ import { require_lib } from "../index.mjs";
10
+
11
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.js
12
+ var require_drop = /* @__PURE__ */ __commonJSMin(((exports) => {
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.DropDatabaseOperation = exports.DropCollectionOperation = void 0;
15
+ exports.dropCollections = dropCollections;
16
+ const __1 = require_lib();
17
+ const responses_1 = require_responses();
18
+ const abstract_cursor_1 = require_abstract_cursor();
19
+ const error_1 = require_error();
20
+ const timeout_1 = require_timeout();
21
+ const command_1 = require_command();
22
+ const execute_operation_1 = require_execute_operation();
23
+ const operation_1 = require_operation();
24
+ /** @internal */
25
+ var DropCollectionOperation = class extends command_1.CommandOperation {
26
+ constructor(db, name, options = {}) {
27
+ super(db, options);
28
+ this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
29
+ this.options = options;
30
+ this.name = name;
31
+ }
32
+ get commandName() {
33
+ return "drop";
34
+ }
35
+ buildCommandDocument(_connection, _session) {
36
+ return { drop: this.name };
37
+ }
38
+ handleOk(_response) {
39
+ return true;
40
+ }
41
+ };
42
+ exports.DropCollectionOperation = DropCollectionOperation;
43
+ async function dropCollections(db, name, options) {
44
+ const timeoutContext = timeout_1.TimeoutContext.create({
45
+ session: options.session,
46
+ serverSelectionTimeoutMS: db.client.s.options.serverSelectionTimeoutMS,
47
+ waitQueueTimeoutMS: db.client.s.options.waitQueueTimeoutMS,
48
+ timeoutMS: options.timeoutMS
49
+ });
50
+ const encryptedFieldsMap = db.client.s.options.autoEncryption?.encryptedFieldsMap;
51
+ let encryptedFields = options.encryptedFields ?? encryptedFieldsMap?.[`${db.databaseName}.${name}`];
52
+ if (!encryptedFields && encryptedFieldsMap) encryptedFields = (await db.listCollections({ name }, {
53
+ nameOnly: false,
54
+ session: options.session,
55
+ timeoutContext: new abstract_cursor_1.CursorTimeoutContext(timeoutContext, Symbol())
56
+ }).toArray())?.[0]?.options?.encryptedFields;
57
+ if (encryptedFields) {
58
+ const escCollection = encryptedFields.escCollection || `enxcol_.${name}.esc`;
59
+ const ecocCollection = encryptedFields.ecocCollection || `enxcol_.${name}.ecoc`;
60
+ for (const collectionName of [escCollection, ecocCollection]) {
61
+ const dropOp = new DropCollectionOperation(db, collectionName, options);
62
+ try {
63
+ await (0, execute_operation_1.executeOperation)(db.client, dropOp, timeoutContext);
64
+ } catch (err) {
65
+ if (!(err instanceof __1.MongoServerError) || err.code !== error_1.MONGODB_ERROR_CODES.NamespaceNotFound) throw err;
66
+ }
67
+ }
68
+ }
69
+ return await (0, execute_operation_1.executeOperation)(db.client, new DropCollectionOperation(db, name, options), timeoutContext);
70
+ }
71
+ /** @internal */
72
+ var DropDatabaseOperation = class extends command_1.CommandOperation {
73
+ constructor(db, options) {
74
+ super(db, options);
75
+ this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
76
+ this.options = options;
77
+ }
78
+ get commandName() {
79
+ return "dropDatabase";
80
+ }
81
+ buildCommandDocument(_connection, _session) {
82
+ return { dropDatabase: 1 };
83
+ }
84
+ handleOk(_response) {
85
+ return true;
86
+ }
87
+ };
88
+ exports.DropDatabaseOperation = DropDatabaseOperation;
89
+ (0, operation_1.defineAspects)(DropCollectionOperation, [operation_1.Aspect.WRITE_OPERATION]);
90
+ (0, operation_1.defineAspects)(DropDatabaseOperation, [operation_1.Aspect.WRITE_OPERATION]);
91
+ }));
92
+
93
+ //#endregion
94
+ export default require_drop();
95
+
96
+ export { require_drop };
97
+ //# 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/drop.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DropDatabaseOperation = exports.DropCollectionOperation = void 0;\nexports.dropCollections = dropCollections;\nconst __1 = require(\"..\");\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst abstract_cursor_1 = require(\"../cursor/abstract_cursor\");\nconst error_1 = require(\"../error\");\nconst timeout_1 = require(\"../timeout\");\nconst command_1 = require(\"./command\");\nconst execute_operation_1 = require(\"./execute_operation\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nclass DropCollectionOperation extends command_1.CommandOperation {\n constructor(db, name, options = {}) {\n super(db, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options;\n this.name = name;\n }\n get commandName() {\n return 'drop';\n }\n buildCommandDocument(_connection, _session) {\n return { drop: this.name };\n }\n handleOk(_response) {\n return true;\n }\n}\nexports.DropCollectionOperation = DropCollectionOperation;\nasync function dropCollections(db, name, options) {\n const timeoutContext = timeout_1.TimeoutContext.create({\n session: options.session,\n serverSelectionTimeoutMS: db.client.s.options.serverSelectionTimeoutMS,\n waitQueueTimeoutMS: db.client.s.options.waitQueueTimeoutMS,\n timeoutMS: options.timeoutMS\n });\n const encryptedFieldsMap = db.client.s.options.autoEncryption?.encryptedFieldsMap;\n let encryptedFields = options.encryptedFields ?? encryptedFieldsMap?.[`${db.databaseName}.${name}`];\n if (!encryptedFields && encryptedFieldsMap) {\n // If the MongoClient was configured with an encryptedFieldsMap,\n // and no encryptedFields config was available in it or explicitly\n // passed as an argument, the spec tells us to look one up using\n // listCollections().\n const listCollectionsResult = await db\n .listCollections({ name }, {\n nameOnly: false,\n session: options.session,\n timeoutContext: new abstract_cursor_1.CursorTimeoutContext(timeoutContext, Symbol())\n })\n .toArray();\n encryptedFields = listCollectionsResult?.[0]?.options?.encryptedFields;\n }\n if (encryptedFields) {\n const escCollection = encryptedFields.escCollection || `enxcol_.${name}.esc`;\n const ecocCollection = encryptedFields.ecocCollection || `enxcol_.${name}.ecoc`;\n for (const collectionName of [escCollection, ecocCollection]) {\n // Drop auxilliary collections, ignoring potential NamespaceNotFound errors.\n const dropOp = new DropCollectionOperation(db, collectionName, options);\n try {\n await (0, execute_operation_1.executeOperation)(db.client, dropOp, timeoutContext);\n }\n catch (err) {\n if (!(err instanceof __1.MongoServerError) ||\n err.code !== error_1.MONGODB_ERROR_CODES.NamespaceNotFound) {\n throw err;\n }\n }\n }\n }\n return await (0, execute_operation_1.executeOperation)(db.client, new DropCollectionOperation(db, name, options), timeoutContext);\n}\n/** @internal */\nclass DropDatabaseOperation 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 }\n get commandName() {\n return 'dropDatabase';\n }\n buildCommandDocument(_connection, _session) {\n return { dropDatabase: 1 };\n }\n handleOk(_response) {\n return true;\n }\n}\nexports.DropDatabaseOperation = DropDatabaseOperation;\n(0, operation_1.defineAspects)(DropCollectionOperation, [operation_1.Aspect.WRITE_OPERATION]);\n(0, operation_1.defineAspects)(DropDatabaseOperation, [operation_1.Aspect.WRITE_OPERATION]);\n//# sourceMappingURL=drop.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,wBAAwB,QAAQ,0BAA0B,KAAK;AACvE,SAAQ,kBAAkB;CAC1B,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,0BAAN,cAAsC,UAAU,iBAAiB;EAC7D,YAAY,IAAI,MAAM,UAAU,EAAE,EAAE;AAChC,SAAM,IAAI,QAAQ;AAClB,Q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Q,EAAE,eAAe;;;CAGrI,IAAM,wBAAN,cAAoC,UAAU,iBAAiB;EAC3D,YAAY,IAAI,SAAS;AACrB,SAAM,IAAI,QAAQ;AAClB,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU;;EAEnB,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,aAAa,UAAU;AACxC,UAAO,EAAE,cAAc,GAAG;;EAE9B,SAAS,WAAW;AAChB,UAAO;;;AAGf,SAAQ,wBAAwB;AAChC,EAAC,GAAG,YAAY,eAAe,yBAAyB,CAAC,YAAY,OAAO,gBAAgB,CAAC;AAC7F,EAAC,GAAG,YAAY,eAAe,uBAAuB,CAAC,YAAY,OAAO,gBAAgB,CAAC"}
@@ -0,0 +1,47 @@
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/estimated_document_count.js
7
+ var require_estimated_document_count = /* @__PURE__ */ __commonJSMin(((exports) => {
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.EstimatedDocumentCountOperation = void 0;
10
+ const responses_1 = require_responses();
11
+ const command_1 = require_command();
12
+ const operation_1 = require_operation();
13
+ /** @internal */
14
+ var EstimatedDocumentCountOperation = class extends command_1.CommandOperation {
15
+ constructor(collection, options = {}) {
16
+ super(collection, options);
17
+ this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
18
+ this.options = options;
19
+ this.collectionName = collection.collectionName;
20
+ }
21
+ get commandName() {
22
+ return "count";
23
+ }
24
+ buildCommandDocument(_connection, _session) {
25
+ const cmd = { count: this.collectionName };
26
+ if (typeof this.options.maxTimeMS === "number") cmd.maxTimeMS = this.options.maxTimeMS;
27
+ if (this.options.comment !== void 0) cmd.comment = this.options.comment;
28
+ return cmd;
29
+ }
30
+ handleOk(response) {
31
+ return response.getNumber("n") ?? 0;
32
+ }
33
+ };
34
+ exports.EstimatedDocumentCountOperation = EstimatedDocumentCountOperation;
35
+ (0, operation_1.defineAspects)(EstimatedDocumentCountOperation, [
36
+ operation_1.Aspect.READ_OPERATION,
37
+ operation_1.Aspect.RETRYABLE,
38
+ operation_1.Aspect.CURSOR_CREATING,
39
+ operation_1.Aspect.SUPPORTS_RAW_DATA
40
+ ]);
41
+ }));
42
+
43
+ //#endregion
44
+ export default require_estimated_document_count();
45
+
46
+ export { require_estimated_document_count };
47
+ //# sourceMappingURL=estimated_document_count.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"estimated_document_count.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.EstimatedDocumentCountOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nclass EstimatedDocumentCountOperation extends command_1.CommandOperation {\n constructor(collection, options = {}) {\n super(collection, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options;\n this.collectionName = collection.collectionName;\n }\n get commandName() {\n return 'count';\n }\n buildCommandDocument(_connection, _session) {\n const cmd = { count: this.collectionName };\n if (typeof this.options.maxTimeMS === 'number') {\n cmd.maxTimeMS = this.options.maxTimeMS;\n }\n // we check for undefined specifically here to allow falsy values\n // eslint-disable-next-line no-restricted-syntax\n if (this.options.comment !== undefined) {\n cmd.comment = this.options.comment;\n }\n return cmd;\n }\n handleOk(response) {\n return response.getNumber('n') ?? 0;\n }\n}\nexports.EstimatedDocumentCountOperation = EstimatedDocumentCountOperation;\n(0, operation_1.defineAspects)(EstimatedDocumentCountOperation, [\n operation_1.Aspect.READ_OPERATION,\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.CURSOR_CREATING,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n//# sourceMappingURL=estimated_document_count.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,kCAAkC,KAAK;CAC/C,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,kCAAN,cAA8C,UAAU,iBAAiB;EACrE,YAAY,YAAY,UAAU,EAAE,EAAE;AAClC,SAAM,YAAY,QAAQ;AAC1B,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU;AACf,QAAK,iBAAiB,WAAW;;EAErC,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,aAAa,UAAU;GACxC,MAAM,MAAM,EAAE,OAAO,KAAK,gBAAgB;AAC1C,OAAI,OAAO,KAAK,QAAQ,cAAc,SAClC,KAAI,YAAY,KAAK,QAAQ;AAIjC,OAAI,KAAK,QAAQ,YAAY,OACzB,KAAI,UAAU,KAAK,QAAQ;AAE/B,UAAO;;EAEX,SAAS,UAAU;AACf,UAAO,SAAS,UAAU,IAAI,IAAI;;;AAG1C,SAAQ,kCAAkC;AAC1C,EAAC,GAAG,YAAY,eAAe,iCAAiC;EAC5D,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC"}
@@ -0,0 +1,188 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_error } from "../error.mjs";
3
+ import { require_read_preference } from "../read_preference.mjs";
4
+ import { require_server_selection } from "../sdam/server_selection.mjs";
5
+ import { require_utils } from "../utils.mjs";
6
+ import { require_timeout } from "../timeout.mjs";
7
+ import { require_operation } from "./operation.mjs";
8
+ import { require_aggregate } from "./aggregate.mjs";
9
+
10
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.js
11
+ var require_execute_operation = /* @__PURE__ */ __commonJSMin(((exports) => {
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.executeOperation = executeOperation;
14
+ exports.autoConnect = autoConnect;
15
+ const error_1 = require_error();
16
+ const read_preference_1 = require_read_preference();
17
+ const server_selection_1 = require_server_selection();
18
+ const timeout_1 = require_timeout();
19
+ const utils_1 = require_utils();
20
+ const aggregate_1 = require_aggregate();
21
+ const operation_1 = require_operation();
22
+ const MMAPv1_RETRY_WRITES_ERROR_CODE = error_1.MONGODB_ERROR_CODES.IllegalOperation;
23
+ const MMAPv1_RETRY_WRITES_ERROR_MESSAGE = "This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.";
24
+ /**
25
+ * Executes the given operation with provided arguments.
26
+ * @internal
27
+ *
28
+ * @remarks
29
+ * Allows for a single point of entry to provide features such as implicit sessions, which
30
+ * are required by the Driver Sessions specification in the event that a ClientSession is
31
+ * not provided.
32
+ *
33
+ * The expectation is that this function:
34
+ * - Connects the MongoClient if it has not already been connected, see {@link autoConnect}
35
+ * - Creates a session if none is provided and cleans up the session it creates
36
+ * - Tries an operation and retries under certain conditions, see {@link tryOperation}
37
+ *
38
+ * @typeParam T - The operation's type
39
+ * @typeParam TResult - The type of the operation's result, calculated from T
40
+ *
41
+ * @param client - The MongoClient to execute this operation with
42
+ * @param operation - The operation to execute
43
+ */
44
+ async function executeOperation(client, operation, timeoutContext) {
45
+ if (!(operation instanceof operation_1.AbstractOperation)) throw new error_1.MongoRuntimeError("This method requires a valid operation instance");
46
+ const topology = client.topology == null ? await (0, utils_1.abortable)(autoConnect(client), operation.options) : client.topology;
47
+ let session = operation.session;
48
+ let owner;
49
+ if (session == null) {
50
+ owner = Symbol();
51
+ session = client.startSession({
52
+ owner,
53
+ explicit: false
54
+ });
55
+ } else if (session.hasEnded) throw new error_1.MongoExpiredSessionError("Use of expired sessions is not permitted");
56
+ else if (session.snapshotEnabled && !topology.capabilities.supportsSnapshotReads) throw new error_1.MongoCompatibilityError("Snapshot reads require MongoDB 5.0 or later");
57
+ else if (session.client !== client) throw new error_1.MongoInvalidArgumentError("ClientSession must be from the same MongoClient");
58
+ operation.session ??= session;
59
+ const readPreference = operation.readPreference ?? read_preference_1.ReadPreference.primary;
60
+ const inTransaction = !!session?.inTransaction();
61
+ const hasReadAspect = operation.hasAspect(operation_1.Aspect.READ_OPERATION);
62
+ if (inTransaction && !readPreference.equals(read_preference_1.ReadPreference.primary) && (hasReadAspect || operation.commandName === "runCommand")) throw new error_1.MongoTransactionError(`Read preference in a transaction must be primary, not: ${readPreference.mode}`);
63
+ if (session?.isPinned && session.transaction.isCommitted && !operation.bypassPinningCheck) session.unpin();
64
+ timeoutContext ??= timeout_1.TimeoutContext.create({
65
+ session,
66
+ serverSelectionTimeoutMS: client.s.options.serverSelectionTimeoutMS,
67
+ waitQueueTimeoutMS: client.s.options.waitQueueTimeoutMS,
68
+ timeoutMS: operation.options.timeoutMS
69
+ });
70
+ try {
71
+ return await tryOperation(operation, {
72
+ topology,
73
+ timeoutContext,
74
+ session,
75
+ readPreference
76
+ });
77
+ } finally {
78
+ if (session?.owner != null && session.owner === owner) await session.endSession();
79
+ }
80
+ }
81
+ /**
82
+ * Connects a client if it has not yet been connected
83
+ * @internal
84
+ */
85
+ async function autoConnect(client) {
86
+ if (client.topology == null) {
87
+ if (client.s.hasBeenClosed) throw new error_1.MongoNotConnectedError("Client must be connected before running operations");
88
+ client.s.options.__skipPingOnConnect = true;
89
+ try {
90
+ await client.connect();
91
+ if (client.topology == null) throw new error_1.MongoRuntimeError("client.connect did not create a topology but also did not throw");
92
+ return client.topology;
93
+ } finally {
94
+ delete client.s.options.__skipPingOnConnect;
95
+ }
96
+ }
97
+ return client.topology;
98
+ }
99
+ /**
100
+ * Executes an operation and retries as appropriate
101
+ * @internal
102
+ *
103
+ * @remarks
104
+ * Implements behaviour described in [Retryable Reads](https://github.com/mongodb/specifications/blob/master/source/retryable-reads/retryable-reads.md) and [Retryable
105
+ * Writes](https://github.com/mongodb/specifications/blob/master/source/retryable-writes/retryable-writes.md) specification
106
+ *
107
+ * This function:
108
+ * - performs initial server selection
109
+ * - attempts to execute an operation
110
+ * - retries the operation if it meets the criteria for a retryable read or a retryable write
111
+ *
112
+ * @typeParam T - The operation's type
113
+ * @typeParam TResult - The type of the operation's result, calculated from T
114
+ *
115
+ * @param operation - The operation to execute
116
+ * */
117
+ async function tryOperation(operation, { topology, timeoutContext, session, readPreference }) {
118
+ let selector;
119
+ if (operation.hasAspect(operation_1.Aspect.MUST_SELECT_SAME_SERVER)) selector = (0, server_selection_1.sameServerSelector)(operation.server?.description);
120
+ else if (operation instanceof aggregate_1.AggregateOperation && operation.hasWriteStage) selector = (0, server_selection_1.secondaryWritableServerSelector)(topology.commonWireVersion, readPreference);
121
+ else selector = readPreference;
122
+ let server = await topology.selectServer(selector, {
123
+ session,
124
+ operationName: operation.commandName,
125
+ timeoutContext,
126
+ signal: operation.options.signal
127
+ });
128
+ const hasReadAspect = operation.hasAspect(operation_1.Aspect.READ_OPERATION);
129
+ const hasWriteAspect = operation.hasAspect(operation_1.Aspect.WRITE_OPERATION);
130
+ const inTransaction = session?.inTransaction() ?? false;
131
+ const willRetryRead = topology.s.options.retryReads && !inTransaction && operation.canRetryRead;
132
+ const willRetryWrite = topology.s.options.retryWrites && !inTransaction && (0, utils_1.supportsRetryableWrites)(server) && operation.canRetryWrite;
133
+ const willRetry = operation.hasAspect(operation_1.Aspect.RETRYABLE) && session != null && (hasReadAspect && willRetryRead || hasWriteAspect && willRetryWrite);
134
+ if (hasWriteAspect && willRetryWrite && session != null) {
135
+ operation.options.willRetryWrite = true;
136
+ session.incrementTransactionNumber();
137
+ }
138
+ const maxTries = willRetry ? timeoutContext.csotEnabled() ? Infinity : 2 : 1;
139
+ let previousOperationError;
140
+ let previousServer;
141
+ for (let tries = 0; tries < maxTries; tries++) {
142
+ if (previousOperationError) {
143
+ if (hasWriteAspect && previousOperationError.code === MMAPv1_RETRY_WRITES_ERROR_CODE) throw new error_1.MongoServerError({
144
+ message: MMAPv1_RETRY_WRITES_ERROR_MESSAGE,
145
+ errmsg: MMAPv1_RETRY_WRITES_ERROR_MESSAGE,
146
+ originalError: previousOperationError
147
+ });
148
+ if (operation.hasAspect(operation_1.Aspect.COMMAND_BATCHING) && !operation.canRetryWrite) throw previousOperationError;
149
+ if (hasWriteAspect && !(0, error_1.isRetryableWriteError)(previousOperationError)) throw previousOperationError;
150
+ if (hasReadAspect && !(0, error_1.isRetryableReadError)(previousOperationError)) throw previousOperationError;
151
+ if (previousOperationError instanceof error_1.MongoNetworkError && operation.hasAspect(operation_1.Aspect.CURSOR_CREATING) && session != null && session.isPinned && !session.inTransaction()) session.unpin({
152
+ force: true,
153
+ forceClear: true
154
+ });
155
+ server = await topology.selectServer(selector, {
156
+ session,
157
+ operationName: operation.commandName,
158
+ previousServer,
159
+ signal: operation.options.signal
160
+ });
161
+ if (hasWriteAspect && !(0, utils_1.supportsRetryableWrites)(server)) throw new error_1.MongoUnexpectedServerResponseError("Selected server does not support retryable writes");
162
+ }
163
+ operation.server = server;
164
+ try {
165
+ if (tries > 0 && operation.hasAspect(operation_1.Aspect.COMMAND_BATCHING)) operation.resetBatch();
166
+ try {
167
+ const result = await server.command(operation, timeoutContext);
168
+ return operation.handleOk(result);
169
+ } catch (error) {
170
+ return operation.handleError(error);
171
+ }
172
+ } catch (operationError) {
173
+ if (!(operationError instanceof error_1.MongoError)) throw operationError;
174
+ if (previousOperationError != null && operationError.hasErrorLabel(error_1.MongoErrorLabel.NoWritesPerformed)) throw previousOperationError;
175
+ previousServer = server.description;
176
+ previousOperationError = operationError;
177
+ timeoutContext.clear();
178
+ }
179
+ }
180
+ throw previousOperationError ?? new error_1.MongoRuntimeError("Tried to propagate retryability error, but no error was found.");
181
+ }
182
+ }));
183
+
184
+ //#endregion
185
+ export default require_execute_operation();
186
+
187
+ export { require_execute_operation };
188
+ //# sourceMappingURL=execute_operation.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute_operation.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.executeOperation = executeOperation;\nexports.autoConnect = autoConnect;\nconst error_1 = require(\"../error\");\nconst read_preference_1 = require(\"../read_preference\");\nconst server_selection_1 = require(\"../sdam/server_selection\");\nconst timeout_1 = require(\"../timeout\");\nconst utils_1 = require(\"../utils\");\nconst aggregate_1 = require(\"./aggregate\");\nconst operation_1 = require(\"./operation\");\nconst MMAPv1_RETRY_WRITES_ERROR_CODE = error_1.MONGODB_ERROR_CODES.IllegalOperation;\nconst MMAPv1_RETRY_WRITES_ERROR_MESSAGE = 'This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.';\n/**\n * Executes the given operation with provided arguments.\n * @internal\n *\n * @remarks\n * Allows for a single point of entry to provide features such as implicit sessions, which\n * are required by the Driver Sessions specification in the event that a ClientSession is\n * not provided.\n *\n * The expectation is that this function:\n * - Connects the MongoClient if it has not already been connected, see {@link autoConnect}\n * - Creates a session if none is provided and cleans up the session it creates\n * - Tries an operation and retries under certain conditions, see {@link tryOperation}\n *\n * @typeParam T - The operation's type\n * @typeParam TResult - The type of the operation's result, calculated from T\n *\n * @param client - The MongoClient to execute this operation with\n * @param operation - The operation to execute\n */\nasync function executeOperation(client, operation, timeoutContext) {\n if (!(operation instanceof operation_1.AbstractOperation)) {\n // TODO(NODE-3483): Extend MongoRuntimeError\n throw new error_1.MongoRuntimeError('This method requires a valid operation instance');\n }\n const topology = client.topology == null\n ? await (0, utils_1.abortable)(autoConnect(client), operation.options)\n : client.topology;\n // The driver sessions spec mandates that we implicitly create sessions for operations\n // that are not explicitly provided with a session.\n let session = operation.session;\n let owner;\n if (session == null) {\n owner = Symbol();\n session = client.startSession({ owner, explicit: false });\n }\n else if (session.hasEnded) {\n throw new error_1.MongoExpiredSessionError('Use of expired sessions is not permitted');\n }\n else if (session.snapshotEnabled && !topology.capabilities.supportsSnapshotReads) {\n throw new error_1.MongoCompatibilityError('Snapshot reads require MongoDB 5.0 or later');\n }\n else if (session.client !== client) {\n throw new error_1.MongoInvalidArgumentError('ClientSession must be from the same MongoClient');\n }\n operation.session ??= session;\n const readPreference = operation.readPreference ?? read_preference_1.ReadPreference.primary;\n const inTransaction = !!session?.inTransaction();\n const hasReadAspect = operation.hasAspect(operation_1.Aspect.READ_OPERATION);\n if (inTransaction &&\n !readPreference.equals(read_preference_1.ReadPreference.primary) &&\n (hasReadAspect || operation.commandName === 'runCommand')) {\n throw new error_1.MongoTransactionError(`Read preference in a transaction must be primary, not: ${readPreference.mode}`);\n }\n if (session?.isPinned && session.transaction.isCommitted && !operation.bypassPinningCheck) {\n session.unpin();\n }\n timeoutContext ??= timeout_1.TimeoutContext.create({\n session,\n serverSelectionTimeoutMS: client.s.options.serverSelectionTimeoutMS,\n waitQueueTimeoutMS: client.s.options.waitQueueTimeoutMS,\n timeoutMS: operation.options.timeoutMS\n });\n try {\n return await tryOperation(operation, {\n topology,\n timeoutContext,\n session,\n readPreference\n });\n }\n finally {\n if (session?.owner != null && session.owner === owner) {\n await session.endSession();\n }\n }\n}\n/**\n * Connects a client if it has not yet been connected\n * @internal\n */\nasync function autoConnect(client) {\n if (client.topology == null) {\n if (client.s.hasBeenClosed) {\n throw new error_1.MongoNotConnectedError('Client must be connected before running operations');\n }\n client.s.options.__skipPingOnConnect = true;\n try {\n await client.connect();\n if (client.topology == null) {\n throw new error_1.MongoRuntimeError('client.connect did not create a topology but also did not throw');\n }\n return client.topology;\n }\n finally {\n delete client.s.options.__skipPingOnConnect;\n }\n }\n return client.topology;\n}\n/**\n * Executes an operation and retries as appropriate\n * @internal\n *\n * @remarks\n * Implements behaviour described in [Retryable Reads](https://github.com/mongodb/specifications/blob/master/source/retryable-reads/retryable-reads.md) and [Retryable\n * Writes](https://github.com/mongodb/specifications/blob/master/source/retryable-writes/retryable-writes.md) specification\n *\n * This function:\n * - performs initial server selection\n * - attempts to execute an operation\n * - retries the operation if it meets the criteria for a retryable read or a retryable write\n *\n * @typeParam T - The operation's type\n * @typeParam TResult - The type of the operation's result, calculated from T\n *\n * @param operation - The operation to execute\n * */\nasync function tryOperation(operation, { topology, timeoutContext, session, readPreference }) {\n let selector;\n if (operation.hasAspect(operation_1.Aspect.MUST_SELECT_SAME_SERVER)) {\n // GetMore and KillCursor operations must always select the same server, but run through\n // server selection to potentially force monitor checks if the server is\n // in an unknown state.\n selector = (0, server_selection_1.sameServerSelector)(operation.server?.description);\n }\n else if (operation instanceof aggregate_1.AggregateOperation && operation.hasWriteStage) {\n // If operation should try to write to secondary use the custom server selector\n // otherwise provide the read preference.\n selector = (0, server_selection_1.secondaryWritableServerSelector)(topology.commonWireVersion, readPreference);\n }\n else {\n selector = readPreference;\n }\n let server = await topology.selectServer(selector, {\n session,\n operationName: operation.commandName,\n timeoutContext,\n signal: operation.options.signal\n });\n const hasReadAspect = operation.hasAspect(operation_1.Aspect.READ_OPERATION);\n const hasWriteAspect = operation.hasAspect(operation_1.Aspect.WRITE_OPERATION);\n const inTransaction = session?.inTransaction() ?? false;\n const willRetryRead = topology.s.options.retryReads && !inTransaction && operation.canRetryRead;\n const willRetryWrite = topology.s.options.retryWrites &&\n !inTransaction &&\n (0, utils_1.supportsRetryableWrites)(server) &&\n operation.canRetryWrite;\n const willRetry = operation.hasAspect(operation_1.Aspect.RETRYABLE) &&\n session != null &&\n ((hasReadAspect && willRetryRead) || (hasWriteAspect && willRetryWrite));\n if (hasWriteAspect && willRetryWrite && session != null) {\n operation.options.willRetryWrite = true;\n session.incrementTransactionNumber();\n }\n const maxTries = willRetry ? (timeoutContext.csotEnabled() ? Infinity : 2) : 1;\n let previousOperationError;\n let previousServer;\n for (let tries = 0; tries < maxTries; tries++) {\n if (previousOperationError) {\n if (hasWriteAspect && previousOperationError.code === MMAPv1_RETRY_WRITES_ERROR_CODE) {\n throw new error_1.MongoServerError({\n message: MMAPv1_RETRY_WRITES_ERROR_MESSAGE,\n errmsg: MMAPv1_RETRY_WRITES_ERROR_MESSAGE,\n originalError: previousOperationError\n });\n }\n if (operation.hasAspect(operation_1.Aspect.COMMAND_BATCHING) && !operation.canRetryWrite) {\n throw previousOperationError;\n }\n if (hasWriteAspect && !(0, error_1.isRetryableWriteError)(previousOperationError))\n throw previousOperationError;\n if (hasReadAspect && !(0, error_1.isRetryableReadError)(previousOperationError)) {\n throw previousOperationError;\n }\n if (previousOperationError instanceof error_1.MongoNetworkError &&\n operation.hasAspect(operation_1.Aspect.CURSOR_CREATING) &&\n session != null &&\n session.isPinned &&\n !session.inTransaction()) {\n session.unpin({ force: true, forceClear: true });\n }\n server = await topology.selectServer(selector, {\n session,\n operationName: operation.commandName,\n previousServer,\n signal: operation.options.signal\n });\n if (hasWriteAspect && !(0, utils_1.supportsRetryableWrites)(server)) {\n throw new error_1.MongoUnexpectedServerResponseError('Selected server does not support retryable writes');\n }\n }\n operation.server = server;\n try {\n // If tries > 0 and we are command batching we need to reset the batch.\n if (tries > 0 && operation.hasAspect(operation_1.Aspect.COMMAND_BATCHING)) {\n operation.resetBatch();\n }\n try {\n const result = await server.command(operation, timeoutContext);\n return operation.handleOk(result);\n }\n catch (error) {\n return operation.handleError(error);\n }\n }\n catch (operationError) {\n if (!(operationError instanceof error_1.MongoError))\n throw operationError;\n if (previousOperationError != null &&\n operationError.hasErrorLabel(error_1.MongoErrorLabel.NoWritesPerformed)) {\n throw previousOperationError;\n }\n previousServer = server.description;\n previousOperationError = operationError;\n // Reset timeouts\n timeoutContext.clear();\n }\n }\n throw (previousOperationError ??\n new error_1.MongoRuntimeError('Tried to propagate retryability error, but no error was found.'));\n}\n//# sourceMappingURL=execute_operation.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,mBAAmB;AAC3B,SAAQ,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AU,SAAS,OAAO;aAE9B,OAAO;AACV,YAAO,UAAU,YAAY,MAAM;;YAGpC,gBAAgB;AACnB,QAAI,EAAE,0BAA0B,QAAQ,YACpC,OAAM;AACV,QAAI,0BAA0B,QAC1B,eAAe,cAAc,QAAQ,gBAAgB,kBAAkB,CACvE,OAAM;AAEV,qBAAiB,OAAO;AACxB,6BAAyB;AAEzB,mBAAe,OAAO;;;AAG9B,QAAO,0BACH,IAAI,QAAQ,kBAAkB,iEAAiE"}
@@ -0,0 +1,103 @@
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_operation } from "./operation.mjs";
6
+ import { require_command } from "./command.mjs";
7
+ import { require_sort } from "../sort.mjs";
8
+
9
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.js
10
+ var require_find = /* @__PURE__ */ __commonJSMin(((exports) => {
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.FindOperation = void 0;
13
+ const responses_1 = require_responses();
14
+ const error_1 = require_error();
15
+ const sort_1 = require_sort();
16
+ const utils_1 = require_utils();
17
+ const command_1 = require_command();
18
+ const operation_1 = require_operation();
19
+ /** @internal */
20
+ var FindOperation = class extends command_1.CommandOperation {
21
+ constructor(ns, filter = {}, options = {}) {
22
+ super(void 0, options);
23
+ this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;
24
+ this.options = { ...options };
25
+ delete this.options.writeConcern;
26
+ this.ns = ns;
27
+ if (typeof filter !== "object" || Array.isArray(filter)) throw new error_1.MongoInvalidArgumentError("Query filter must be a plain object or ObjectId");
28
+ this.filter = filter != null && filter._bsontype === "ObjectId" ? { _id: filter } : filter;
29
+ this.SERVER_COMMAND_RESPONSE_TYPE = this.explain ? responses_1.ExplainedCursorResponse : responses_1.CursorResponse;
30
+ }
31
+ get commandName() {
32
+ return "find";
33
+ }
34
+ buildOptions(timeoutContext) {
35
+ return {
36
+ ...this.options,
37
+ ...this.bsonOptions,
38
+ documentsReturnedIn: "firstBatch",
39
+ session: this.session,
40
+ timeoutContext
41
+ };
42
+ }
43
+ handleOk(response) {
44
+ return response;
45
+ }
46
+ buildCommandDocument() {
47
+ return makeFindCommand(this.ns, this.filter, this.options);
48
+ }
49
+ };
50
+ exports.FindOperation = FindOperation;
51
+ function makeFindCommand(ns, filter, options) {
52
+ const findCommand = {
53
+ find: ns.collection,
54
+ filter
55
+ };
56
+ if (options.sort) findCommand.sort = (0, sort_1.formatSort)(options.sort);
57
+ if (options.projection) {
58
+ let projection = options.projection;
59
+ if (projection && Array.isArray(projection)) projection = projection.length ? projection.reduce((result, field) => {
60
+ result[field] = 1;
61
+ return result;
62
+ }, {}) : { _id: 1 };
63
+ findCommand.projection = projection;
64
+ }
65
+ if (options.hint) findCommand.hint = (0, utils_1.normalizeHintField)(options.hint);
66
+ if (typeof options.skip === "number") findCommand.skip = options.skip;
67
+ if (typeof options.limit === "number") if (options.limit < 0) {
68
+ findCommand.limit = -options.limit;
69
+ findCommand.singleBatch = true;
70
+ } else findCommand.limit = options.limit;
71
+ if (typeof options.batchSize === "number") if (options.batchSize < 0) findCommand.limit = -options.batchSize;
72
+ else if (options.batchSize === options.limit) findCommand.batchSize = options.batchSize + 1;
73
+ else findCommand.batchSize = options.batchSize;
74
+ if (typeof options.singleBatch === "boolean") findCommand.singleBatch = options.singleBatch;
75
+ if (options.comment !== void 0) findCommand.comment = options.comment;
76
+ if (options.max) findCommand.max = options.max;
77
+ if (options.min) findCommand.min = options.min;
78
+ if (typeof options.returnKey === "boolean") findCommand.returnKey = options.returnKey;
79
+ if (typeof options.showRecordId === "boolean") findCommand.showRecordId = options.showRecordId;
80
+ if (typeof options.tailable === "boolean") findCommand.tailable = options.tailable;
81
+ if (typeof options.oplogReplay === "boolean") findCommand.oplogReplay = options.oplogReplay;
82
+ if (typeof options.timeout === "boolean") findCommand.noCursorTimeout = !options.timeout;
83
+ else if (typeof options.noCursorTimeout === "boolean") findCommand.noCursorTimeout = options.noCursorTimeout;
84
+ if (typeof options.awaitData === "boolean") findCommand.awaitData = options.awaitData;
85
+ if (typeof options.allowPartialResults === "boolean") findCommand.allowPartialResults = options.allowPartialResults;
86
+ if (typeof options.allowDiskUse === "boolean") findCommand.allowDiskUse = options.allowDiskUse;
87
+ if (options.let) findCommand.let = options.let;
88
+ return findCommand;
89
+ }
90
+ (0, operation_1.defineAspects)(FindOperation, [
91
+ operation_1.Aspect.READ_OPERATION,
92
+ operation_1.Aspect.RETRYABLE,
93
+ operation_1.Aspect.EXPLAINABLE,
94
+ operation_1.Aspect.CURSOR_CREATING,
95
+ operation_1.Aspect.SUPPORTS_RAW_DATA
96
+ ]);
97
+ }));
98
+
99
+ //#endregion
100
+ export default require_find();
101
+
102
+ export { require_find };
103
+ //# sourceMappingURL=find.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.FindOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst sort_1 = require(\"../sort\");\nconst utils_1 = require(\"../utils\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nclass FindOperation extends command_1.CommandOperation {\n constructor(ns, filter = {}, options = {}) {\n super(undefined, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;\n this.options = { ...options };\n delete this.options.writeConcern;\n this.ns = ns;\n if (typeof filter !== 'object' || Array.isArray(filter)) {\n throw new error_1.MongoInvalidArgumentError('Query filter must be a plain object or ObjectId');\n }\n // special case passing in an ObjectId as a filter\n this.filter = filter != null && filter._bsontype === 'ObjectId' ? { _id: filter } : filter;\n this.SERVER_COMMAND_RESPONSE_TYPE = this.explain ? responses_1.ExplainedCursorResponse : responses_1.CursorResponse;\n }\n get commandName() {\n return 'find';\n }\n buildOptions(timeoutContext) {\n return {\n ...this.options,\n ...this.bsonOptions,\n documentsReturnedIn: 'firstBatch',\n session: this.session,\n timeoutContext\n };\n }\n handleOk(response) {\n return response;\n }\n buildCommandDocument() {\n return makeFindCommand(this.ns, this.filter, this.options);\n }\n}\nexports.FindOperation = FindOperation;\nfunction makeFindCommand(ns, filter, options) {\n const findCommand = {\n find: ns.collection,\n filter\n };\n if (options.sort) {\n findCommand.sort = (0, sort_1.formatSort)(options.sort);\n }\n if (options.projection) {\n let projection = options.projection;\n if (projection && Array.isArray(projection)) {\n projection = projection.length\n ? projection.reduce((result, field) => {\n result[field] = 1;\n return result;\n }, {})\n : { _id: 1 };\n }\n findCommand.projection = projection;\n }\n if (options.hint) {\n findCommand.hint = (0, utils_1.normalizeHintField)(options.hint);\n }\n if (typeof options.skip === 'number') {\n findCommand.skip = options.skip;\n }\n if (typeof options.limit === 'number') {\n if (options.limit < 0) {\n findCommand.limit = -options.limit;\n findCommand.singleBatch = true;\n }\n else {\n findCommand.limit = options.limit;\n }\n }\n if (typeof options.batchSize === 'number') {\n if (options.batchSize < 0) {\n findCommand.limit = -options.batchSize;\n }\n else {\n if (options.batchSize === options.limit) {\n // Spec dictates that if these are equal the batchSize should be one more than the\n // limit to avoid leaving the cursor open.\n findCommand.batchSize = options.batchSize + 1;\n }\n else {\n findCommand.batchSize = options.batchSize;\n }\n }\n }\n if (typeof options.singleBatch === 'boolean') {\n findCommand.singleBatch = options.singleBatch;\n }\n // we check for undefined specifically here to allow falsy values\n // eslint-disable-next-line no-restricted-syntax\n if (options.comment !== undefined) {\n findCommand.comment = options.comment;\n }\n if (options.max) {\n findCommand.max = options.max;\n }\n if (options.min) {\n findCommand.min = options.min;\n }\n if (typeof options.returnKey === 'boolean') {\n findCommand.returnKey = options.returnKey;\n }\n if (typeof options.showRecordId === 'boolean') {\n findCommand.showRecordId = options.showRecordId;\n }\n if (typeof options.tailable === 'boolean') {\n findCommand.tailable = options.tailable;\n }\n if (typeof options.oplogReplay === 'boolean') {\n findCommand.oplogReplay = options.oplogReplay;\n }\n if (typeof options.timeout === 'boolean') {\n findCommand.noCursorTimeout = !options.timeout;\n }\n else if (typeof options.noCursorTimeout === 'boolean') {\n findCommand.noCursorTimeout = options.noCursorTimeout;\n }\n if (typeof options.awaitData === 'boolean') {\n findCommand.awaitData = options.awaitData;\n }\n if (typeof options.allowPartialResults === 'boolean') {\n findCommand.allowPartialResults = options.allowPartialResults;\n }\n if (typeof options.allowDiskUse === 'boolean') {\n findCommand.allowDiskUse = options.allowDiskUse;\n }\n if (options.let) {\n findCommand.let = options.let;\n }\n return findCommand;\n}\n(0, operation_1.defineAspects)(FindOperation, [\n operation_1.Aspect.READ_OPERATION,\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.EXPLAINABLE,\n operation_1.Aspect.CURSOR_CREATING,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n//# sourceMappingURL=find.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,gBAAgB,KAAK;CAC7B,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,gBAAN,cAA4B,UAAU,iBAAiB;EACnD,YAAY,IAAI,SAAS,EAAE,EAAE,UAAU,EAAE,EAAE;AACvC,SAAM,QAAW,QAAQ;AACzB,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU,EAAE,GAAG,SAAS;AAC7B,UAAO,KAAK,QAAQ;AACpB,QAAK,KAAK;AACV,OAAI,OAAO,WAAW,YAAY,MAAM,QAAQ,OAAO,CACnD,OAAM,IAAI,QAAQ,0BAA0B,kDAAkD;AAGlG,QAAK,SAAS,UAAU,QAAQ,O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