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,136 @@
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_responses } from "../cmap/wire_protocol/responses.mjs";
5
+ import { require_utils } from "../utils.mjs";
6
+ import { require_operation } from "./operation.mjs";
7
+ import { require_command } from "./command.mjs";
8
+ import { require_sort } from "../sort.mjs";
9
+
10
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.js
11
+ var require_find_and_modify = /* @__PURE__ */ __commonJSMin(((exports) => {
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.FindOneAndUpdateOperation = exports.FindOneAndReplaceOperation = exports.FindOneAndDeleteOperation = exports.FindAndModifyOperation = exports.ReturnDocument = void 0;
14
+ const responses_1 = require_responses();
15
+ const error_1 = require_error();
16
+ const read_preference_1 = require_read_preference();
17
+ const sort_1 = require_sort();
18
+ const utils_1 = require_utils();
19
+ const command_1 = require_command();
20
+ const operation_1 = require_operation();
21
+ /** @public */
22
+ exports.ReturnDocument = Object.freeze({
23
+ BEFORE: "before",
24
+ AFTER: "after"
25
+ });
26
+ function configureFindAndModifyCmdBaseUpdateOpts(cmdBase, options) {
27
+ cmdBase.new = options.returnDocument === exports.ReturnDocument.AFTER;
28
+ cmdBase.upsert = options.upsert === true;
29
+ if (options.bypassDocumentValidation === true) cmdBase.bypassDocumentValidation = options.bypassDocumentValidation;
30
+ return cmdBase;
31
+ }
32
+ /** @internal */
33
+ var FindAndModifyOperation = class extends command_1.CommandOperation {
34
+ constructor(collection, query, options) {
35
+ super(collection, options);
36
+ this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
37
+ this.options = options;
38
+ this.readPreference = read_preference_1.ReadPreference.primary;
39
+ this.collection = collection;
40
+ this.query = query;
41
+ }
42
+ get commandName() {
43
+ return "findAndModify";
44
+ }
45
+ buildCommandDocument(connection, _session) {
46
+ const options = this.options;
47
+ const command = {
48
+ findAndModify: this.collection.collectionName,
49
+ query: this.query,
50
+ remove: false,
51
+ new: false,
52
+ upsert: false
53
+ };
54
+ options.includeResultMetadata ??= false;
55
+ const sort = (0, sort_1.formatSort)(options.sort);
56
+ if (sort) command.sort = sort;
57
+ if (options.projection) command.fields = options.projection;
58
+ if (options.maxTimeMS) command.maxTimeMS = options.maxTimeMS;
59
+ if (options.writeConcern) command.writeConcern = options.writeConcern;
60
+ if (options.let) command.let = options.let;
61
+ if (options.comment !== void 0) command.comment = options.comment;
62
+ (0, utils_1.decorateWithCollation)(command, options);
63
+ if (options.hint) {
64
+ if (this.writeConcern?.w === 0 && (0, utils_1.maxWireVersion)(connection) < 9) throw new error_1.MongoCompatibilityError("hint for the findAndModify command is only supported on MongoDB 4.4+");
65
+ command.hint = options.hint;
66
+ }
67
+ return command;
68
+ }
69
+ handleOk(response) {
70
+ const result = super.handleOk(response);
71
+ return this.options.includeResultMetadata ? result : result.value ?? null;
72
+ }
73
+ };
74
+ exports.FindAndModifyOperation = FindAndModifyOperation;
75
+ /** @internal */
76
+ var FindOneAndDeleteOperation = class extends FindAndModifyOperation {
77
+ constructor(collection, filter, options) {
78
+ if (filter == null || typeof filter !== "object") throw new error_1.MongoInvalidArgumentError("Argument \"filter\" must be an object");
79
+ super(collection, filter, options);
80
+ }
81
+ buildCommandDocument(connection, session) {
82
+ const document = super.buildCommandDocument(connection, session);
83
+ document.remove = true;
84
+ return document;
85
+ }
86
+ };
87
+ exports.FindOneAndDeleteOperation = FindOneAndDeleteOperation;
88
+ /** @internal */
89
+ var FindOneAndReplaceOperation = class extends FindAndModifyOperation {
90
+ constructor(collection, filter, replacement, options) {
91
+ if (filter == null || typeof filter !== "object") throw new error_1.MongoInvalidArgumentError("Argument \"filter\" must be an object");
92
+ if (replacement == null || typeof replacement !== "object") throw new error_1.MongoInvalidArgumentError("Argument \"replacement\" must be an object");
93
+ if ((0, utils_1.hasAtomicOperators)(replacement)) throw new error_1.MongoInvalidArgumentError("Replacement document must not contain atomic operators");
94
+ super(collection, filter, options);
95
+ this.replacement = replacement;
96
+ }
97
+ buildCommandDocument(connection, session) {
98
+ const document = super.buildCommandDocument(connection, session);
99
+ document.update = this.replacement;
100
+ configureFindAndModifyCmdBaseUpdateOpts(document, this.options);
101
+ return document;
102
+ }
103
+ };
104
+ exports.FindOneAndReplaceOperation = FindOneAndReplaceOperation;
105
+ /** @internal */
106
+ var FindOneAndUpdateOperation = class extends FindAndModifyOperation {
107
+ constructor(collection, filter, update, options) {
108
+ if (filter == null || typeof filter !== "object") throw new error_1.MongoInvalidArgumentError("Argument \"filter\" must be an object");
109
+ if (update == null || typeof update !== "object") throw new error_1.MongoInvalidArgumentError("Argument \"update\" must be an object");
110
+ if (!(0, utils_1.hasAtomicOperators)(update, options)) throw new error_1.MongoInvalidArgumentError("Update document requires atomic operators");
111
+ super(collection, filter, options);
112
+ this.update = update;
113
+ this.options = options;
114
+ }
115
+ buildCommandDocument(connection, session) {
116
+ const document = super.buildCommandDocument(connection, session);
117
+ document.update = this.update;
118
+ configureFindAndModifyCmdBaseUpdateOpts(document, this.options);
119
+ if (this.options.arrayFilters) document.arrayFilters = this.options.arrayFilters;
120
+ return document;
121
+ }
122
+ };
123
+ exports.FindOneAndUpdateOperation = FindOneAndUpdateOperation;
124
+ (0, operation_1.defineAspects)(FindAndModifyOperation, [
125
+ operation_1.Aspect.WRITE_OPERATION,
126
+ operation_1.Aspect.RETRYABLE,
127
+ operation_1.Aspect.EXPLAINABLE,
128
+ operation_1.Aspect.SUPPORTS_RAW_DATA
129
+ ]);
130
+ }));
131
+
132
+ //#endregion
133
+ export default require_find_and_modify();
134
+
135
+ export { require_find_and_modify };
136
+ //# sourceMappingURL=find_and_modify.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find_and_modify.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.FindOneAndUpdateOperation = exports.FindOneAndReplaceOperation = exports.FindOneAndDeleteOperation = exports.FindAndModifyOperation = exports.ReturnDocument = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst read_preference_1 = require(\"../read_preference\");\nconst sort_1 = require(\"../sort\");\nconst utils_1 = require(\"../utils\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/** @public */\nexports.ReturnDocument = Object.freeze({\n BEFORE: 'before',\n AFTER: 'after'\n});\nfunction configureFindAndModifyCmdBaseUpdateOpts(cmdBase, options) {\n cmdBase.new = options.returnDocument === exports.ReturnDocument.AFTER;\n cmdBase.upsert = options.upsert === true;\n if (options.bypassDocumentValidation === true) {\n cmdBase.bypassDocumentValidation = options.bypassDocumentValidation;\n }\n return cmdBase;\n}\n/** @internal */\nclass FindAndModifyOperation extends command_1.CommandOperation {\n constructor(collection, query, options) {\n super(collection, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options;\n // force primary read preference\n this.readPreference = read_preference_1.ReadPreference.primary;\n this.collection = collection;\n this.query = query;\n }\n get commandName() {\n return 'findAndModify';\n }\n buildCommandDocument(connection, _session) {\n const options = this.options;\n const command = {\n findAndModify: this.collection.collectionName,\n query: this.query,\n remove: false,\n new: false,\n upsert: false\n };\n options.includeResultMetadata ??= false;\n const sort = (0, sort_1.formatSort)(options.sort);\n if (sort) {\n command.sort = sort;\n }\n if (options.projection) {\n command.fields = options.projection;\n }\n if (options.maxTimeMS) {\n command.maxTimeMS = options.maxTimeMS;\n }\n // Decorate the findAndModify command with the write Concern\n if (options.writeConcern) {\n command.writeConcern = options.writeConcern;\n }\n if (options.let) {\n command.let = options.let;\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 command.comment = options.comment;\n }\n (0, utils_1.decorateWithCollation)(command, options);\n if (options.hint) {\n const unacknowledgedWrite = this.writeConcern?.w === 0;\n if (unacknowledgedWrite && (0, utils_1.maxWireVersion)(connection) < 9) {\n throw new error_1.MongoCompatibilityError('hint for the findAndModify command is only supported on MongoDB 4.4+');\n }\n command.hint = options.hint;\n }\n return command;\n }\n handleOk(response) {\n const result = super.handleOk(response);\n return this.options.includeResultMetadata ? result : (result.value ?? null);\n }\n}\nexports.FindAndModifyOperation = FindAndModifyOperation;\n/** @internal */\nclass FindOneAndDeleteOperation extends FindAndModifyOperation {\n constructor(collection, filter, options) {\n // Basic validation\n if (filter == null || typeof filter !== 'object') {\n throw new error_1.MongoInvalidArgumentError('Argument \"filter\" must be an object');\n }\n super(collection, filter, options);\n }\n buildCommandDocument(connection, session) {\n const document = super.buildCommandDocument(connection, session);\n document.remove = true;\n return document;\n }\n}\nexports.FindOneAndDeleteOperation = FindOneAndDeleteOperation;\n/** @internal */\nclass FindOneAndReplaceOperation extends FindAndModifyOperation {\n constructor(collection, filter, replacement, options) {\n if (filter == null || typeof filter !== 'object') {\n throw new error_1.MongoInvalidArgumentError('Argument \"filter\" must be an object');\n }\n if (replacement == null || typeof replacement !== 'object') {\n throw new error_1.MongoInvalidArgumentError('Argument \"replacement\" must be an object');\n }\n if ((0, utils_1.hasAtomicOperators)(replacement)) {\n throw new error_1.MongoInvalidArgumentError('Replacement document must not contain atomic operators');\n }\n super(collection, filter, options);\n this.replacement = replacement;\n }\n buildCommandDocument(connection, session) {\n const document = super.buildCommandDocument(connection, session);\n document.update = this.replacement;\n configureFindAndModifyCmdBaseUpdateOpts(document, this.options);\n return document;\n }\n}\nexports.FindOneAndReplaceOperation = FindOneAndReplaceOperation;\n/** @internal */\nclass FindOneAndUpdateOperation extends FindAndModifyOperation {\n constructor(collection, filter, update, options) {\n if (filter == null || typeof filter !== 'object') {\n throw new error_1.MongoInvalidArgumentError('Argument \"filter\" must be an object');\n }\n if (update == null || typeof update !== 'object') {\n throw new error_1.MongoInvalidArgumentError('Argument \"update\" must be an object');\n }\n if (!(0, utils_1.hasAtomicOperators)(update, options)) {\n throw new error_1.MongoInvalidArgumentError('Update document requires atomic operators');\n }\n super(collection, filter, options);\n this.update = update;\n this.options = options;\n }\n buildCommandDocument(connection, session) {\n const document = super.buildCommandDocument(connection, session);\n document.update = this.update;\n configureFindAndModifyCmdBaseUpdateOpts(document, this.options);\n if (this.options.arrayFilters) {\n document.arrayFilters = this.options.arrayFilters;\n }\n return document;\n }\n}\nexports.FindOneAndUpdateOperation = FindOneAndUpdateOperation;\n(0, operation_1.defineAspects)(FindAndModifyOperation, [\n operation_1.Aspect.WRITE_OPERATION,\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.EXPLAINABLE,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n//# sourceMappingURL=find_and_modify.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,4BAA4B,QAAQ,6BAA6B,QAAQ,4BAA4B,QAAQ,yBAAyB,QAAQ,iBAAiB,KAAK;CAC5K,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;AAEN,SAAQ,iBAAiB,OAAO,OAAO;EACnC,QAAQ;EACR,OAAO;EACV,CAAC;CACF,SAAS,wCAAwC,SAAS,SAAS;AAC/D,UAAQ,MAAM,QAAQ,mBAAmB,QAAQ,eAAe;AAChE,UAAQ,SAAS,QAAQ,WAAW;AACpC,MAAI,QAAQ,6BAA6B,KACrC,SAAQ,2BAA2B,QAAQ;AAE/C,SAAO;;;CAGX,IAAM,yBAAN,cAAqC,UAAU,iBAAiB;EAC5D,YAAY,YAAY,OAAO,SAAS;AACpC,SAAM,YAAY,QAAQ;AAC1B,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU;AAEf,QAAK,iBAAiB,kBAAkB,eAAe;AACvD,QAAK,aAAa;AAClB,QAAK,QAAQ;;EAEjB,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,YAAY,UAAU;GACvC,MAAM,UAAU,KAAK;GACrB,MAAM,UAAU;IACZ,eAAe,KAAK,WAAW;IAC/B,OAAO,KAAK;IACZ,QAAQ;IACR,KAAK;IACL,QAAQ;IACX;AACD,WAAQ,0BAA0B;GAClC,MAAM,QAAQ,GAAG,OAAO,YAAY,QAAQ,KAAK;AACjD,OAAI,KACA,SAAQ,OAAO;AAEnB,OAAI,QAAQ,WACR,SAAQ,SAAS,QAAQ;AAE7B,OAAI,QAAQ,UACR,SAAQ,YAAY,QAAQ;AAGhC,OAAI,QAAQ,aACR,SAAQ,eAAe,QAAQ;AAEnC,OAAI,QAAQ,IACR,SAAQ,MAAM,QAAQ;AAI1B,OAAI,QAAQ,YAAY,OACpB,SAAQ,UAAU,QAAQ;AAE9B,IAAC,GAAG,QAAQ,uBAAuB,SAAS,QAAQ;AACpD,OAAI,QAAQ,MAAM;AAEd,QAD4B,KAAK,cAAc,MAAM,MACzB,GAAG,QAAQ,gBAAgB,WAAW,GAAG,EACjE,OAAM,IAAI,QAAQ,wBAAwB,uEAAuE;AAErH,YAAQ,OAAO,QAAQ;;AAE3B,UAAO;;EAEX,SAAS,UAAU;GACf,MAAM,SAAS,MAAM,SAAS,SAAS;AACvC,UAAO,KAAK,QAAQ,wBAAwB,SAAU,OAAO,SAAS;;;AAG9E,SAAQ,yBAAyB;;CAEjC,IAAM,4BAAN,cAAwC,uBAAuB;EAC3D,YAAY,YAAY,QAAQ,SAAS;AAErC,OAAI,UAAU,QAAQ,OAAO,WAAW,SACpC,OAAM,IAAI,QAAQ,0BAA0B,wCAAsC;AAEtF,SAAM,YAAY,QAAQ,QAAQ;;EAEtC,qBAAqB,YAAY,SAAS;GACtC,MAAM,WAAW,MAAM,qBAAqB,YAAY,QAAQ;AAChE,YAAS,SAAS;AAClB,UAAO;;;AAGf,SAAQ,4BAA4B;;CAEpC,IAAM,6BAAN,cAAyC,uBAAuB;EAC5D,YAAY,YAAY,QAAQ,aAAa,SAAS;AAClD,OAAI,UAAU,QAAQ,OAAO,WAAW,SACpC,OAAM,IAAI,QAAQ,0BAA0B,wCAAsC;AAEtF,OAAI,eAAe,QAAQ,OAAO,gBAAgB,SAC9C,OAAM,IAAI,QAAQ,0BAA0B,6CAA2C;AAE3F,QAAK,GAAG,QAAQ,oBAAoB,YAAY,CAC5C,OAAM,IAAI,QAAQ,0BAA0B,yDAAyD;AAEzG,SAAM,YAAY,QAAQ,QAAQ;AAClC,QAAK,cAAc;;EAEvB,qBAAqB,YAAY,SAAS;GACtC,MAAM,WAAW,MAAM,qBAAqB,YAAY,QAAQ;AAChE,YAAS,SAAS,KAAK;AACvB,2CAAwC,UAAU,KAAK,QAAQ;AAC/D,UAAO;;;AAGf,SAAQ,6BAA6B;;CAErC,IAAM,4BAAN,cAAwC,uBAAuB;EAC3D,YAAY,YAAY,QAAQ,QAAQ,SAAS;AAC7C,OAAI,UAAU,QAAQ,OAAO,WAAW,SACpC,OAAM,IAAI,QAAQ,0BAA0B,wCAAsC;AAEtF,OAAI,UAAU,QAAQ,OAAO,WAAW,SACpC,OAAM,IAAI,QAAQ,0BAA0B,wCAAsC;AAEtF,OAAI,EAAE,GAAG,QAAQ,oBAAoB,QAAQ,QAAQ,CACjD,OAAM,IAAI,QAAQ,0BAA0B,4CAA4C;AAE5F,SAAM,YAAY,QAAQ,QAAQ;AAClC,QAAK,SAAS;AACd,QAAK,UAAU;;EAEnB,qBAAqB,YAAY,SAAS;GACtC,MAAM,WAAW,MAAM,qBAAqB,YAAY,QAAQ;AAChE,YAAS,SAAS,KAAK;AACvB,2CAAwC,UAAU,KAAK,QAAQ;AAC/D,OAAI,KAAK,QAAQ,aACb,UAAS,eAAe,KAAK,QAAQ;AAEzC,UAAO;;;AAGf,SAAQ,4BAA4B;AACpC,EAAC,GAAG,YAAY,eAAe,wBAAwB;EACnD,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC"}
@@ -0,0 +1,61 @@
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
+
7
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.js
8
+ var require_get_more = /* @__PURE__ */ __commonJSMin(((exports) => {
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.GetMoreOperation = void 0;
11
+ const responses_1 = require_responses();
12
+ const error_1 = require_error();
13
+ const utils_1 = require_utils();
14
+ const operation_1 = require_operation();
15
+ /** @internal */
16
+ var GetMoreOperation = class extends operation_1.AbstractOperation {
17
+ constructor(ns, cursorId, server, options) {
18
+ super(options);
19
+ this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;
20
+ this.options = options;
21
+ this.ns = ns;
22
+ this.cursorId = cursorId;
23
+ this.server = server;
24
+ }
25
+ get commandName() {
26
+ return "getMore";
27
+ }
28
+ buildCommand(connection) {
29
+ if (this.cursorId == null || this.cursorId.isZero()) throw new error_1.MongoRuntimeError("Unable to iterate cursor with no id");
30
+ const collection = this.ns.collection;
31
+ if (collection == null) throw new error_1.MongoRuntimeError("A collection name must be determined before getMore");
32
+ const getMoreCmd = {
33
+ getMore: this.cursorId,
34
+ collection
35
+ };
36
+ if (typeof this.options.batchSize === "number") getMoreCmd.batchSize = Math.abs(this.options.batchSize);
37
+ if (typeof this.options.maxAwaitTimeMS === "number") getMoreCmd.maxTimeMS = this.options.maxAwaitTimeMS;
38
+ if (this.options.comment !== void 0 && (0, utils_1.maxWireVersion)(connection) >= 9) getMoreCmd.comment = this.options.comment;
39
+ return getMoreCmd;
40
+ }
41
+ buildOptions(timeoutContext) {
42
+ return {
43
+ returnFieldSelector: null,
44
+ documentsReturnedIn: "nextBatch",
45
+ timeoutContext,
46
+ ...this.options
47
+ };
48
+ }
49
+ handleOk(response) {
50
+ return response;
51
+ }
52
+ };
53
+ exports.GetMoreOperation = GetMoreOperation;
54
+ (0, operation_1.defineAspects)(GetMoreOperation, [operation_1.Aspect.READ_OPERATION, operation_1.Aspect.MUST_SELECT_SAME_SERVER]);
55
+ }));
56
+
57
+ //#endregion
58
+ export default require_get_more();
59
+
60
+ export { require_get_more };
61
+ //# sourceMappingURL=get_more.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get_more.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.GetMoreOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst utils_1 = require(\"../utils\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nclass GetMoreOperation extends operation_1.AbstractOperation {\n constructor(ns, cursorId, server, options) {\n super(options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;\n this.options = options;\n this.ns = ns;\n this.cursorId = cursorId;\n this.server = server;\n }\n get commandName() {\n return 'getMore';\n }\n buildCommand(connection) {\n if (this.cursorId == null || this.cursorId.isZero()) {\n throw new error_1.MongoRuntimeError('Unable to iterate cursor with no id');\n }\n const collection = this.ns.collection;\n if (collection == null) {\n // Cursors should have adopted the namespace returned by MongoDB\n // which should always defined a collection name (even a pseudo one, ex. db.aggregate())\n throw new error_1.MongoRuntimeError('A collection name must be determined before getMore');\n }\n const getMoreCmd = {\n getMore: this.cursorId,\n collection\n };\n if (typeof this.options.batchSize === 'number') {\n getMoreCmd.batchSize = Math.abs(this.options.batchSize);\n }\n if (typeof this.options.maxAwaitTimeMS === 'number') {\n getMoreCmd.maxTimeMS = this.options.maxAwaitTimeMS;\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 && (0, utils_1.maxWireVersion)(connection) >= 9) {\n getMoreCmd.comment = this.options.comment;\n }\n return getMoreCmd;\n }\n buildOptions(timeoutContext) {\n return {\n returnFieldSelector: null,\n documentsReturnedIn: 'nextBatch',\n timeoutContext,\n ...this.options\n };\n }\n handleOk(response) {\n return response;\n }\n}\nexports.GetMoreOperation = GetMoreOperation;\n(0, operation_1.defineAspects)(GetMoreOperation, [operation_1.Aspect.READ_OPERATION, operation_1.Aspect.MUST_SELECT_SAME_SERVER]);\n//# sourceMappingURL=get_more.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,mBAAmB,KAAK;CAChC,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,mBAAN,cAA+B,YAAY,kBAAkB;EACzD,YAAY,IAAI,UAAU,QAAQ,SAAS;AACvC,SAAM,QAAQ;AACd,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU;AACf,QAAK,KAAK;AACV,QAAK,WAAW;AAChB,QAAK,SAAS;;EAElB,IAAI,cAAc;AACd,UAAO;;EAEX,aAAa,YAAY;AACrB,OAAI,KAAK,YAAY,QAAQ,KAAK,SAAS,QAAQ,CAC/C,OAAM,IAAI,QAAQ,kBAAkB,sCAAsC;GAE9E,MAAM,aAAa,KAAK,GAAG;AAC3B,OAAI,cAAc,KAGd,OAAM,IAAI,QAAQ,kBAAkB,sDAAsD;GAE9F,MAAM,aAAa;IACf,SAAS,KAAK;IACd;IACH;AACD,OAAI,OAAO,KAAK,QAAQ,cAAc,SAClC,YAAW,YAAY,KAAK,IAAI,KAAK,QAAQ,UAAU;AAE3D,OAAI,OAAO,KAAK,QAAQ,mBAAmB,SACvC,YAAW,YAAY,KAAK,QAAQ;AAIxC,OAAI,KAAK,QAAQ,YAAY,WAAc,GAAG,QAAQ,gBAAgB,WAAW,IAAI,EACjF,YAAW,UAAU,KAAK,QAAQ;AAEtC,UAAO;;EAEX,aAAa,gBAAgB;AACzB,UAAO;IACH,qBAAqB;IACrB,qBAAqB;IACrB;IACA,GAAG,KAAK;IACX;;EAEL,SAAS,UAAU;AACf,UAAO;;;AAGf,SAAQ,mBAAmB;AAC3B,EAAC,GAAG,YAAY,eAAe,kBAAkB,CAAC,YAAY,OAAO,gBAAgB,YAAY,OAAO,wBAAwB,CAAC"}
@@ -0,0 +1,179 @@
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
+
8
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.js
9
+ var require_indexes = /* @__PURE__ */ __commonJSMin(((exports) => {
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.ListIndexesOperation = exports.DropIndexOperation = exports.CreateIndexesOperation = void 0;
12
+ const responses_1 = require_responses();
13
+ const error_1 = require_error();
14
+ const utils_1 = require_utils();
15
+ const command_1 = require_command();
16
+ const operation_1 = require_operation();
17
+ const VALID_INDEX_OPTIONS = new Set([
18
+ "background",
19
+ "unique",
20
+ "name",
21
+ "partialFilterExpression",
22
+ "sparse",
23
+ "hidden",
24
+ "expireAfterSeconds",
25
+ "storageEngine",
26
+ "collation",
27
+ "version",
28
+ "weights",
29
+ "default_language",
30
+ "language_override",
31
+ "textIndexVersion",
32
+ "2dsphereIndexVersion",
33
+ "bits",
34
+ "min",
35
+ "max",
36
+ "bucketSize",
37
+ "wildcardProjection"
38
+ ]);
39
+ function isIndexDirection(x) {
40
+ return typeof x === "number" || x === "2d" || x === "2dsphere" || x === "text" || x === "geoHaystack";
41
+ }
42
+ function isSingleIndexTuple(t) {
43
+ return Array.isArray(t) && t.length === 2 && isIndexDirection(t[1]);
44
+ }
45
+ /**
46
+ * Converts an `IndexSpecification`, which can be specified in multiple formats, into a
47
+ * valid `key` for the createIndexes command.
48
+ */
49
+ function constructIndexDescriptionMap(indexSpec) {
50
+ const key = /* @__PURE__ */ new Map();
51
+ const indexSpecs = !Array.isArray(indexSpec) || isSingleIndexTuple(indexSpec) ? [indexSpec] : indexSpec;
52
+ for (const spec of indexSpecs) if (typeof spec === "string") key.set(spec, 1);
53
+ else if (Array.isArray(spec)) key.set(spec[0], spec[1] ?? 1);
54
+ else if (spec instanceof Map) for (const [property, value] of spec) key.set(property, value);
55
+ else if ((0, utils_1.isObject)(spec)) for (const [property, value] of Object.entries(spec)) key.set(property, value);
56
+ return key;
57
+ }
58
+ /**
59
+ * Receives an index description and returns a modified index description which has had invalid options removed
60
+ * from the description and has mapped the `version` option to the `v` option.
61
+ */
62
+ function resolveIndexDescription(description) {
63
+ const validProvidedOptions = Object.entries(description).filter(([optionName]) => VALID_INDEX_OPTIONS.has(optionName));
64
+ return Object.fromEntries(validProvidedOptions.map(([name, value]) => name === "version" ? ["v", value] : [name, value]));
65
+ }
66
+ /** @internal */
67
+ var CreateIndexesOperation = class CreateIndexesOperation extends command_1.CommandOperation {
68
+ constructor(parent, collectionName, indexes, options) {
69
+ super(parent, options);
70
+ this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
71
+ this.options = options ?? {};
72
+ this.options.collation = void 0;
73
+ this.collectionName = collectionName;
74
+ this.indexes = indexes.map((userIndex) => {
75
+ const key = userIndex.key instanceof Map ? userIndex.key : new Map(Object.entries(userIndex.key));
76
+ const name = userIndex.name ?? Array.from(key).flat().join("_");
77
+ return {
78
+ ...resolveIndexDescription(userIndex),
79
+ name,
80
+ key
81
+ };
82
+ });
83
+ this.ns = parent.s.namespace;
84
+ }
85
+ static fromIndexDescriptionArray(parent, collectionName, indexes, options) {
86
+ return new CreateIndexesOperation(parent, collectionName, indexes, options);
87
+ }
88
+ static fromIndexSpecification(parent, collectionName, indexSpec, options = {}) {
89
+ const key = constructIndexDescriptionMap(indexSpec);
90
+ return new CreateIndexesOperation(parent, collectionName, [{
91
+ ...options,
92
+ key
93
+ }], options);
94
+ }
95
+ get commandName() {
96
+ return "createIndexes";
97
+ }
98
+ buildCommandDocument(connection) {
99
+ const options = this.options;
100
+ const indexes = this.indexes;
101
+ const serverWireVersion = (0, utils_1.maxWireVersion)(connection);
102
+ const cmd = {
103
+ createIndexes: this.collectionName,
104
+ indexes
105
+ };
106
+ if (options.commitQuorum != null) {
107
+ if (serverWireVersion < 9) throw new error_1.MongoCompatibilityError("Option `commitQuorum` for `createIndexes` not supported on servers < 4.4");
108
+ cmd.commitQuorum = options.commitQuorum;
109
+ }
110
+ return cmd;
111
+ }
112
+ handleOk(_response) {
113
+ return this.indexes.map((index) => index.name || "");
114
+ }
115
+ };
116
+ exports.CreateIndexesOperation = CreateIndexesOperation;
117
+ /** @internal */
118
+ var DropIndexOperation = class extends command_1.CommandOperation {
119
+ constructor(collection, indexName, options) {
120
+ super(collection, options);
121
+ this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
122
+ this.options = options ?? {};
123
+ this.collection = collection;
124
+ this.indexName = indexName;
125
+ this.ns = collection.fullNamespace;
126
+ }
127
+ get commandName() {
128
+ return "dropIndexes";
129
+ }
130
+ buildCommandDocument(_connection) {
131
+ return {
132
+ dropIndexes: this.collection.collectionName,
133
+ index: this.indexName
134
+ };
135
+ }
136
+ };
137
+ exports.DropIndexOperation = DropIndexOperation;
138
+ /** @internal */
139
+ var ListIndexesOperation = class extends command_1.CommandOperation {
140
+ constructor(collection, options) {
141
+ super(collection, options);
142
+ this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;
143
+ this.options = { ...options };
144
+ delete this.options.writeConcern;
145
+ this.collectionNamespace = collection.s.namespace;
146
+ }
147
+ get commandName() {
148
+ return "listIndexes";
149
+ }
150
+ buildCommandDocument(connection) {
151
+ const serverWireVersion = (0, utils_1.maxWireVersion)(connection);
152
+ const cursor = this.options.batchSize ? { batchSize: this.options.batchSize } : {};
153
+ const command = {
154
+ listIndexes: this.collectionNamespace.collection,
155
+ cursor
156
+ };
157
+ if (serverWireVersion >= 9 && this.options.comment !== void 0) command.comment = this.options.comment;
158
+ return command;
159
+ }
160
+ handleOk(response) {
161
+ return response;
162
+ }
163
+ };
164
+ exports.ListIndexesOperation = ListIndexesOperation;
165
+ (0, operation_1.defineAspects)(ListIndexesOperation, [
166
+ operation_1.Aspect.READ_OPERATION,
167
+ operation_1.Aspect.RETRYABLE,
168
+ operation_1.Aspect.CURSOR_CREATING,
169
+ operation_1.Aspect.SUPPORTS_RAW_DATA
170
+ ]);
171
+ (0, operation_1.defineAspects)(CreateIndexesOperation, [operation_1.Aspect.WRITE_OPERATION, operation_1.Aspect.SUPPORTS_RAW_DATA]);
172
+ (0, operation_1.defineAspects)(DropIndexOperation, [operation_1.Aspect.WRITE_OPERATION, operation_1.Aspect.SUPPORTS_RAW_DATA]);
173
+ }));
174
+
175
+ //#endregion
176
+ export default require_indexes();
177
+
178
+ export { require_indexes };
179
+ //# sourceMappingURL=indexes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexes.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ListIndexesOperation = exports.DropIndexOperation = exports.CreateIndexesOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst utils_1 = require(\"../utils\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\nconst VALID_INDEX_OPTIONS = new Set([\n 'background',\n 'unique',\n 'name',\n 'partialFilterExpression',\n 'sparse',\n 'hidden',\n 'expireAfterSeconds',\n 'storageEngine',\n 'collation',\n 'version',\n // text indexes\n 'weights',\n 'default_language',\n 'language_override',\n 'textIndexVersion',\n // 2d-sphere indexes\n '2dsphereIndexVersion',\n // 2d indexes\n 'bits',\n 'min',\n 'max',\n // geoHaystack Indexes\n 'bucketSize',\n // wildcard indexes\n 'wildcardProjection'\n]);\nfunction isIndexDirection(x) {\n return (typeof x === 'number' || x === '2d' || x === '2dsphere' || x === 'text' || x === 'geoHaystack');\n}\nfunction isSingleIndexTuple(t) {\n return Array.isArray(t) && t.length === 2 && isIndexDirection(t[1]);\n}\n/**\n * Converts an `IndexSpecification`, which can be specified in multiple formats, into a\n * valid `key` for the createIndexes command.\n */\nfunction constructIndexDescriptionMap(indexSpec) {\n const key = new Map();\n const indexSpecs = !Array.isArray(indexSpec) || isSingleIndexTuple(indexSpec) ? [indexSpec] : indexSpec;\n // Iterate through array and handle different types\n for (const spec of indexSpecs) {\n if (typeof spec === 'string') {\n key.set(spec, 1);\n }\n else if (Array.isArray(spec)) {\n key.set(spec[0], spec[1] ?? 1);\n }\n else if (spec instanceof Map) {\n for (const [property, value] of spec) {\n key.set(property, value);\n }\n }\n else if ((0, utils_1.isObject)(spec)) {\n for (const [property, value] of Object.entries(spec)) {\n key.set(property, value);\n }\n }\n }\n return key;\n}\n/**\n * Receives an index description and returns a modified index description which has had invalid options removed\n * from the description and has mapped the `version` option to the `v` option.\n */\nfunction resolveIndexDescription(description) {\n const validProvidedOptions = Object.entries(description).filter(([optionName]) => VALID_INDEX_OPTIONS.has(optionName));\n return Object.fromEntries(\n // we support the `version` option, but the `createIndexes` command expects it to be the `v`\n validProvidedOptions.map(([name, value]) => (name === 'version' ? ['v', value] : [name, value])));\n}\n/** @internal */\nclass CreateIndexesOperation extends command_1.CommandOperation {\n constructor(parent, collectionName, indexes, options) {\n super(parent, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options ?? {};\n // collation is set on each index, it should not be defined at the root\n this.options.collation = undefined;\n this.collectionName = collectionName;\n this.indexes = indexes.map((userIndex) => {\n // Ensure the key is a Map to preserve index key ordering\n const key = userIndex.key instanceof Map ? userIndex.key : new Map(Object.entries(userIndex.key));\n const name = userIndex.name ?? Array.from(key).flat().join('_');\n const validIndexOptions = resolveIndexDescription(userIndex);\n return {\n ...validIndexOptions,\n name,\n key\n };\n });\n this.ns = parent.s.namespace;\n }\n static fromIndexDescriptionArray(parent, collectionName, indexes, options) {\n return new CreateIndexesOperation(parent, collectionName, indexes, options);\n }\n static fromIndexSpecification(parent, collectionName, indexSpec, options = {}) {\n const key = constructIndexDescriptionMap(indexSpec);\n const description = { ...options, key };\n return new CreateIndexesOperation(parent, collectionName, [description], options);\n }\n get commandName() {\n return 'createIndexes';\n }\n buildCommandDocument(connection) {\n const options = this.options;\n const indexes = this.indexes;\n const serverWireVersion = (0, utils_1.maxWireVersion)(connection);\n const cmd = { createIndexes: this.collectionName, indexes };\n if (options.commitQuorum != null) {\n if (serverWireVersion < 9) {\n throw new error_1.MongoCompatibilityError('Option `commitQuorum` for `createIndexes` not supported on servers < 4.4');\n }\n cmd.commitQuorum = options.commitQuorum;\n }\n return cmd;\n }\n handleOk(_response) {\n const indexNames = this.indexes.map(index => index.name || '');\n return indexNames;\n }\n}\nexports.CreateIndexesOperation = CreateIndexesOperation;\n/** @internal */\nclass DropIndexOperation extends command_1.CommandOperation {\n constructor(collection, indexName, options) {\n super(collection, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options ?? {};\n this.collection = collection;\n this.indexName = indexName;\n this.ns = collection.fullNamespace;\n }\n get commandName() {\n return 'dropIndexes';\n }\n buildCommandDocument(_connection) {\n return { dropIndexes: this.collection.collectionName, index: this.indexName };\n }\n}\nexports.DropIndexOperation = DropIndexOperation;\n/** @internal */\nclass ListIndexesOperation extends command_1.CommandOperation {\n constructor(collection, options) {\n super(collection, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;\n this.options = { ...options };\n delete this.options.writeConcern;\n this.collectionNamespace = collection.s.namespace;\n }\n get commandName() {\n return 'listIndexes';\n }\n buildCommandDocument(connection) {\n const serverWireVersion = (0, utils_1.maxWireVersion)(connection);\n const cursor = this.options.batchSize ? { batchSize: this.options.batchSize } : {};\n const command = { listIndexes: this.collectionNamespace.collection, cursor };\n // we check for undefined specifically here to allow falsy values\n // eslint-disable-next-line no-restricted-syntax\n if (serverWireVersion >= 9 && this.options.comment !== undefined) {\n command.comment = this.options.comment;\n }\n return command;\n }\n handleOk(response) {\n return response;\n }\n}\nexports.ListIndexesOperation = ListIndexesOperation;\n(0, operation_1.defineAspects)(ListIndexesOperation, [\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(0, operation_1.defineAspects)(CreateIndexesOperation, [operation_1.Aspect.WRITE_OPERATION, operation_1.Aspect.SUPPORTS_RAW_DATA]);\n(0, operation_1.defineAspects)(DropIndexOperation, [operation_1.Aspect.WRITE_OPERATION, operation_1.Aspect.SUPPORTS_RAW_DATA]);\n//# sourceMappingURL=indexes.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,uBAAuB,QAAQ,qBAAqB,QAAQ,yBAAyB,KAAK;CAClG,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM,sBAAsB,IAAI,IAAI;EAChC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAEA;EAEA;EACA;EACA;EAEA;EAEA;EACH,CAAC;CACF,SAAS,iBAAiB,GAAG;AACzB,SAAQ,OAAO,MAAM,YAAY,MAAM,QAAQ,MAAM,cAAc,MAAM,UAAU,MAAM;;CAE7F,SAAS,mBAAmB,GAAG;AAC3B,SAAO,MAAM,QAAQ,EAAE,IAAI,EAAE,WAAW,KAAK,iBAAiB,EAAE,GAAG;;;;;;CAMvE,SAAS,6BAA6B,WAAW;EAC7C,MAAM,sBAAM,IAAI,KAAK;EACrB,MAAM,aAAa,CAAC,MAAM,QAAQ,UAAU,IAAI,mBAAmB,UAAU,GAAG,CAAC,UAAU,GAAG;AAE9F,OAAK,MAAM,QAAQ,WACf,KAAI,OAAO,SAAS,SAChB,KAAI,IAAI,MAAM,EAAE;WAEX,MAAM,QAAQ,KAAK,CACxB,KAAI,IAAI,KAAK,IAAI,KAAK,MAAM,EAAE;WAEzB,gBAAgB,IACrB,MAAK,MAAM,CAAC,UAAU,UAAU,KAC5B,KAAI,IAAI,UAAU,MAAM;YAGtB,GAAG,QAAQ,UAAU,KAAK,CAChC,MAAK,MAAM,CAAC,UAAU,UAAU,OAAO,QAAQ,KAAK,CAChD,KAAI,IAAI,UAAU,MAAM;AAIpC,SAAO;;;;;;CAMX,SAAS,wBAAwB,aAAa;EAC1C,MAAM,uBAAuB,OAAO,QAAQ,YAAY,CAAC,QAAQ,CAAC,gBAAgB,oBAAoB,IAAI,WAAW,CAAC;AACtH,SAAO,OAAO,YAEd,qBAAqB,KAAK,CAAC,MAAM,WAAY,SAAS,YAAY,CAAC,KAAK,MAAM,GAAG,CAAC,MAAM,MAAM,CAAE,CAAC;;;CAGrG,IAAM,yBAAN,MAAM,+BAA+B,UAAU,iBAAiB;EAC5D,YAAY,QAAQ,gBAAgB,SAAS,SAAS;AAClD,SAAM,QAAQ,QAAQ;AACtB,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU,WAAW,EAAE;AAE5B,QAAK,QAAQ,YAAY;AACzB,QAAK,iBAAiB;AACtB,QAAK,UAAU,QAAQ,KAAK,cAAc;IAEtC,MAAM,MAAM,UAAU,eAAe,MAAM,UAAU,MAAM,IAAI,IAAI,OAAO,QAAQ,UAAU,IAAI,CAAC;IACjG,MAAM,OAAO,UAAU,QAAQ,MAAM,KAAK,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI;AAE/D,WAAO;KACH,GAFsB,wBAAwB,UAAU;KAGxD;KACA;KACH;KACH;AACF,QAAK,KAAK,OAAO,EAAE;;EAEvB,OAAO,0BAA0B,QAAQ,gBAAgB,SAAS,SAAS;AACvE,UAAO,IAAI,uBAAuB,QAAQ,gBAAgB,SAAS,QAAQ;;EAE/E,OAAO,uBAAuB,QAAQ,gBAAgB,WAAW,UAAU,EAAE,EAAE;GAC3E,MAAM,MAAM,6BAA6B,UAAU;AAEnD,UAAO,IAAI,uBAAuB,QAAQ,gBAAgB,CADtC;IAAE,GAAG;IAAS;IAAK,CACgC,EAAE,QAAQ;;EAErF,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,YAAY;GAC7B,MAAM,UAAU,KAAK;GACrB,MAAM,UAAU,KAAK;GACrB,MAAM,qBAAqB,GAAG,QAAQ,gBAAgB,WAAW;GACjE,MAAM,MAAM;IAAE,eAAe,KAAK;IAAgB;IAAS;AAC3D,OAAI,QAAQ,gBAAgB,MAAM;AAC9B,QAAI,oBAAoB,EACpB,OAAM,IAAI,QAAQ,wBAAwB,2EAA2E;AAEzH,QAAI,eAAe,QAAQ;;AAE/B,UAAO;;EAEX,SAAS,WAAW;AAEhB,UADmB,KAAK,QAAQ,KAAI,UAAS,MAAM,QAAQ,GAAG;;;AAItE,SAAQ,yBAAyB;;CAEjC,IAAM,qBAAN,cAAiC,UAAU,iBAAiB;EACxD,YAAY,YAAY,WAAW,SAAS;AACxC,SAAM,YAAY,QAAQ;AAC1B,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU,WAAW,EAAE;AAC5B,QAAK,aAAa;AAClB,QAAK,YAAY;AACjB,QAAK,KAAK,WAAW;;EAEzB,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,aAAa;AAC9B,UAAO;IAAE,aAAa,KAAK,WAAW;IAAgB,OAAO,KAAK;IAAW;;;AAGrF,SAAQ,qBAAqB;;CAE7B,IAAM,uBAAN,cAAmC,UAAU,iBAAiB;EAC1D,YAAY,YAAY,SAAS;AAC7B,SAAM,YAAY,QAAQ;AAC1B,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU,EAAE,GAAG,SAAS;AAC7B,UAAO,KAAK,QAAQ;AACpB,QAAK,sBAAsB,WAAW,EAAE;;EAE5C,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,YAAY;GAC7B,MAAM,qBAAqB,GAAG,QAAQ,gBAAgB,WAAW;GACjE,MAAM,SAAS,KAAK,QAAQ,YAAY,EAAE,WAAW,KAAK,QAAQ,WAAW,GAAG,EAAE;GAClF,MAAM,UAAU;IAAE,aAAa,KAAK,oBAAoB;IAAY;IAAQ;AAG5E,OAAI,qBAAqB,KAAK,KAAK,QAAQ,YAAY,OACnD,SAAQ,UAAU,KAAK,QAAQ;AAEnC,UAAO;;EAEX,SAAS,UAAU;AACf,UAAO;;;AAGf,SAAQ,uBAAuB;AAC/B,EAAC,GAAG,YAAY,eAAe,sBAAsB;EACjD,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC;AACF,EAAC,GAAG,YAAY,eAAe,wBAAwB,CAAC,YAAY,OAAO,iBAAiB,YAAY,OAAO,kBAAkB,CAAC;AAClI,EAAC,GAAG,YAAY,eAAe,oBAAoB,CAAC,YAAY,OAAO,iBAAiB,YAAY,OAAO,kBAAkB,CAAC"}
@@ -0,0 +1,77 @@
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
+
8
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.js
9
+ var require_insert = /* @__PURE__ */ __commonJSMin(((exports) => {
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.InsertOneOperation = exports.InsertOperation = void 0;
12
+ const responses_1 = require_responses();
13
+ const error_1 = require_error();
14
+ const utils_1 = require_utils();
15
+ const command_1 = require_command();
16
+ const operation_1 = require_operation();
17
+ /** @internal */
18
+ var InsertOperation = class extends command_1.CommandOperation {
19
+ constructor(ns, documents, options) {
20
+ super(void 0, options);
21
+ this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
22
+ this.options = {
23
+ ...options,
24
+ checkKeys: options.checkKeys ?? false
25
+ };
26
+ this.ns = ns;
27
+ this.documents = documents;
28
+ }
29
+ get commandName() {
30
+ return "insert";
31
+ }
32
+ buildCommandDocument(_connection, _session) {
33
+ const options = this.options ?? {};
34
+ const ordered = typeof options.ordered === "boolean" ? options.ordered : true;
35
+ const command = {
36
+ insert: this.ns.collection,
37
+ documents: this.documents,
38
+ ordered
39
+ };
40
+ if (typeof options.bypassDocumentValidation === "boolean") command.bypassDocumentValidation = options.bypassDocumentValidation;
41
+ if (options.comment !== void 0) command.comment = options.comment;
42
+ return command;
43
+ }
44
+ };
45
+ exports.InsertOperation = InsertOperation;
46
+ var InsertOneOperation = class extends InsertOperation {
47
+ constructor(collection, doc, options) {
48
+ super(collection.s.namespace, [(0, utils_1.maybeAddIdToDocuments)(collection, doc, options)], options);
49
+ }
50
+ handleOk(response) {
51
+ const res = super.handleOk(response);
52
+ if (res.code) throw new error_1.MongoServerError(res);
53
+ if (res.writeErrors) throw new error_1.MongoServerError(res.writeErrors[0]);
54
+ return {
55
+ acknowledged: this.writeConcern?.w !== 0,
56
+ insertedId: this.documents[0]._id
57
+ };
58
+ }
59
+ };
60
+ exports.InsertOneOperation = InsertOneOperation;
61
+ (0, operation_1.defineAspects)(InsertOperation, [
62
+ operation_1.Aspect.RETRYABLE,
63
+ operation_1.Aspect.WRITE_OPERATION,
64
+ operation_1.Aspect.SUPPORTS_RAW_DATA
65
+ ]);
66
+ (0, operation_1.defineAspects)(InsertOneOperation, [
67
+ operation_1.Aspect.RETRYABLE,
68
+ operation_1.Aspect.WRITE_OPERATION,
69
+ operation_1.Aspect.SUPPORTS_RAW_DATA
70
+ ]);
71
+ }));
72
+
73
+ //#endregion
74
+ export default require_insert();
75
+
76
+ export { require_insert };
77
+ //# sourceMappingURL=insert.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insert.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InsertOneOperation = exports.InsertOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst utils_1 = require(\"../utils\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nclass InsertOperation extends command_1.CommandOperation {\n constructor(ns, documents, options) {\n super(undefined, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = { ...options, checkKeys: options.checkKeys ?? false };\n this.ns = ns;\n this.documents = documents;\n }\n get commandName() {\n return 'insert';\n }\n buildCommandDocument(_connection, _session) {\n const options = this.options ?? {};\n const ordered = typeof options.ordered === 'boolean' ? options.ordered : true;\n const command = {\n insert: this.ns.collection,\n documents: this.documents,\n ordered\n };\n if (typeof options.bypassDocumentValidation === 'boolean') {\n command.bypassDocumentValidation = options.bypassDocumentValidation;\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 command.comment = options.comment;\n }\n return command;\n }\n}\nexports.InsertOperation = InsertOperation;\nclass InsertOneOperation extends InsertOperation {\n constructor(collection, doc, options) {\n super(collection.s.namespace, [(0, utils_1.maybeAddIdToDocuments)(collection, doc, options)], options);\n }\n handleOk(response) {\n const res = super.handleOk(response);\n if (res.code)\n throw new error_1.MongoServerError(res);\n if (res.writeErrors) {\n // This should be a WriteError but we can't change it now because of error hierarchy\n throw new error_1.MongoServerError(res.writeErrors[0]);\n }\n return {\n acknowledged: this.writeConcern?.w !== 0,\n insertedId: this.documents[0]._id\n };\n }\n}\nexports.InsertOneOperation = InsertOneOperation;\n(0, operation_1.defineAspects)(InsertOperation, [\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.WRITE_OPERATION,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n(0, operation_1.defineAspects)(InsertOneOperation, [\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.WRITE_OPERATION,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n//# sourceMappingURL=insert.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,qBAAqB,QAAQ,kBAAkB,KAAK;CAC5D,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,kBAAN,cAA8B,UAAU,iBAAiB;EACrD,YAAY,IAAI,WAAW,SAAS;AAChC,SAAM,QAAW,QAAQ;AACzB,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU;IAAE,GAAG;IAAS,WAAW,QAAQ,aAAa;IAAO;AACpE,QAAK,KAAK;AACV,QAAK,YAAY;;EAErB,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,aAAa,UAAU;GACxC,MAAM,UAAU,KAAK,WAAW,EAAE;GAClC,MAAM,UAAU,OAAO,QAAQ,YAAY,YAAY,QAAQ,UAAU;GACzE,MAAM,UAAU;IACZ,QAAQ,KAAK,GAAG;IAChB,WAAW,KAAK;IAChB;IACH;AACD,OAAI,OAAO,QAAQ,6BAA6B,UAC5C,SAAQ,2BAA2B,QAAQ;AAI/C,OAAI,QAAQ,YAAY,OACpB,SAAQ,UAAU,QAAQ;AAE9B,UAAO;;;AAGf,SAAQ,kBAAkB;CAC1B,IAAM,qBAAN,cAAiC,gBAAgB;EAC7C,YAAY,YAAY,KAAK,SAAS;AAClC,SAAM,WAAW,EAAE,WAAW,EAAE,GAAG,QAAQ,uBAAuB,YAAY,KAAK,QAAQ,CAAC,EAAE,QAAQ;;EAE1G,SAAS,UAAU;GACf,MAAM,MAAM,MAAM,SAAS,SAAS;AACpC,OAAI,IAAI,KACJ,OAAM,IAAI,QAAQ,iBAAiB,IAAI;AAC3C,OAAI,IAAI,YAEJ,OAAM,IAAI,QAAQ,iBAAiB,IAAI,YAAY,GAAG;AAE1D,UAAO;IACH,cAAc,KAAK,cAAc,MAAM;IACvC,YAAY,KAAK,UAAU,GAAG;IACjC;;;AAGT,SAAQ,qBAAqB;AAC7B,EAAC,GAAG,YAAY,eAAe,iBAAiB;EAC5C,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC;AACF,EAAC,GAAG,YAAY,eAAe,oBAAoB;EAC/C,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_error } from "../error.mjs";
3
+ import { require_responses } from "../cmap/wire_protocol/responses.mjs";
4
+ import { require_operation } from "./operation.mjs";
5
+
6
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.js
7
+ var require_kill_cursors = /* @__PURE__ */ __commonJSMin(((exports) => {
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.KillCursorsOperation = void 0;
10
+ const responses_1 = require_responses();
11
+ const error_1 = require_error();
12
+ const operation_1 = require_operation();
13
+ var KillCursorsOperation = class extends operation_1.AbstractOperation {
14
+ constructor(cursorId, ns, server, options) {
15
+ super(options);
16
+ this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
17
+ this.ns = ns;
18
+ this.cursorId = cursorId;
19
+ this.server = server;
20
+ }
21
+ get commandName() {
22
+ return "killCursors";
23
+ }
24
+ buildCommand(_connection, _session) {
25
+ const killCursors = this.ns.collection;
26
+ if (killCursors == null) throw new error_1.MongoRuntimeError("A collection name must be determined before killCursors");
27
+ return {
28
+ killCursors,
29
+ cursors: [this.cursorId]
30
+ };
31
+ }
32
+ buildOptions(timeoutContext) {
33
+ return {
34
+ session: this.session,
35
+ timeoutContext
36
+ };
37
+ }
38
+ handleError(_error) {}
39
+ };
40
+ exports.KillCursorsOperation = KillCursorsOperation;
41
+ (0, operation_1.defineAspects)(KillCursorsOperation, [operation_1.Aspect.MUST_SELECT_SAME_SERVER]);
42
+ }));
43
+
44
+ //#endregion
45
+ export default require_kill_cursors();
46
+
47
+ export { require_kill_cursors };
48
+ //# sourceMappingURL=kill_cursors.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kill_cursors.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.KillCursorsOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst operation_1 = require(\"./operation\");\nclass KillCursorsOperation extends operation_1.AbstractOperation {\n constructor(cursorId, ns, server, options) {\n super(options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.ns = ns;\n this.cursorId = cursorId;\n this.server = server;\n }\n get commandName() {\n return 'killCursors';\n }\n buildCommand(_connection, _session) {\n const killCursors = this.ns.collection;\n if (killCursors == null) {\n // Cursors should have adopted the namespace returned by MongoDB\n // which should always defined a collection name (even a pseudo one, ex. db.aggregate())\n throw new error_1.MongoRuntimeError('A collection name must be determined before killCursors');\n }\n const killCursorsCommand = {\n killCursors,\n cursors: [this.cursorId]\n };\n return killCursorsCommand;\n }\n buildOptions(timeoutContext) {\n return {\n session: this.session,\n timeoutContext\n };\n }\n handleError(_error) {\n // The driver should never emit errors from killCursors, this is spec-ed behavior\n }\n}\nexports.KillCursorsOperation = KillCursorsOperation;\n(0, operation_1.defineAspects)(KillCursorsOperation, [operation_1.Aspect.MUST_SELECT_SAME_SERVER]);\n//# sourceMappingURL=kill_cursors.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,uBAAuB,KAAK;CACpC,MAAM;CACN,MAAM;CACN,MAAM;CACN,IAAM,uBAAN,cAAmC,YAAY,kBAAkB;EAC7D,YAAY,UAAU,IAAI,QAAQ,SAAS;AACvC,SAAM,QAAQ;AACd,QAAK,+BAA+B,YAAY;AAChD,QAAK,KAAK;AACV,QAAK,WAAW;AAChB,QAAK,SAAS;;EAElB,IAAI,cAAc;AACd,UAAO;;EAEX,aAAa,aAAa,UAAU;GAChC,MAAM,cAAc,KAAK,GAAG;AAC5B,OAAI,eAAe,KAGf,OAAM,IAAI,QAAQ,kBAAkB,0DAA0D;AAMlG,UAJ2B;IACvB;IACA,SAAS,CAAC,KAAK,SAAS;IAC3B;;EAGL,aAAa,gBAAgB;AACzB,UAAO;IACH,SAAS,KAAK;IACd;IACH;;EAEL,YAAY,QAAQ;;AAIxB,SAAQ,uBAAuB;AAC/B,EAAC,GAAG,YAAY,eAAe,sBAAsB,CAAC,YAAY,OAAO,wBAAwB,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_responses } from "../cmap/wire_protocol/responses.mjs";
3
+ import { require_utils } from "../utils.mjs";
4
+ import { require_operation } from "./operation.mjs";
5
+ import { require_command } from "./command.mjs";
6
+
7
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.js
8
+ var require_list_collections = /* @__PURE__ */ __commonJSMin(((exports) => {
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ListCollectionsOperation = void 0;
11
+ const responses_1 = require_responses();
12
+ const utils_1 = require_utils();
13
+ const command_1 = require_command();
14
+ const operation_1 = require_operation();
15
+ /** @internal */
16
+ var ListCollectionsOperation = class extends command_1.CommandOperation {
17
+ constructor(db, filter, options) {
18
+ super(db, options);
19
+ this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;
20
+ this.options = { ...options };
21
+ delete this.options.writeConcern;
22
+ this.db = db;
23
+ this.filter = filter;
24
+ this.nameOnly = !!this.options.nameOnly;
25
+ this.authorizedCollections = !!this.options.authorizedCollections;
26
+ if (typeof this.options.batchSize === "number") this.batchSize = this.options.batchSize;
27
+ this.SERVER_COMMAND_RESPONSE_TYPE = this.explain ? responses_1.ExplainedCursorResponse : responses_1.CursorResponse;
28
+ }
29
+ get commandName() {
30
+ return "listCollections";
31
+ }
32
+ buildCommandDocument(connection) {
33
+ const command = {
34
+ listCollections: 1,
35
+ filter: this.filter,
36
+ cursor: this.batchSize ? { batchSize: this.batchSize } : {},
37
+ nameOnly: this.nameOnly,
38
+ authorizedCollections: this.authorizedCollections
39
+ };
40
+ if ((0, utils_1.maxWireVersion)(connection) >= 9 && this.options.comment !== void 0) command.comment = this.options.comment;
41
+ return command;
42
+ }
43
+ handleOk(response) {
44
+ return response;
45
+ }
46
+ };
47
+ exports.ListCollectionsOperation = ListCollectionsOperation;
48
+ (0, operation_1.defineAspects)(ListCollectionsOperation, [
49
+ operation_1.Aspect.READ_OPERATION,
50
+ operation_1.Aspect.RETRYABLE,
51
+ operation_1.Aspect.CURSOR_CREATING,
52
+ operation_1.Aspect.SUPPORTS_RAW_DATA
53
+ ]);
54
+ }));
55
+
56
+ //#endregion
57
+ export default require_list_collections();
58
+
59
+ export { require_list_collections };
60
+ //# sourceMappingURL=list_collections.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list_collections.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ListCollectionsOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst utils_1 = require(\"../utils\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nclass ListCollectionsOperation extends command_1.CommandOperation {\n constructor(db, filter, options) {\n super(db, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;\n this.options = { ...options };\n delete this.options.writeConcern;\n this.db = db;\n this.filter = filter;\n this.nameOnly = !!this.options.nameOnly;\n this.authorizedCollections = !!this.options.authorizedCollections;\n if (typeof this.options.batchSize === 'number') {\n this.batchSize = this.options.batchSize;\n }\n this.SERVER_COMMAND_RESPONSE_TYPE = this.explain ? responses_1.ExplainedCursorResponse : responses_1.CursorResponse;\n }\n get commandName() {\n return 'listCollections';\n }\n buildCommandDocument(connection) {\n const command = {\n listCollections: 1,\n filter: this.filter,\n cursor: this.batchSize ? { batchSize: this.batchSize } : {},\n nameOnly: this.nameOnly,\n authorizedCollections: this.authorizedCollections\n };\n // we check for undefined specifically here to allow falsy values\n // eslint-disable-next-line no-restricted-syntax\n if ((0, utils_1.maxWireVersion)(connection) >= 9 && this.options.comment !== undefined) {\n command.comment = this.options.comment;\n }\n return command;\n }\n handleOk(response) {\n return response;\n }\n}\nexports.ListCollectionsOperation = ListCollectionsOperation;\n(0, operation_1.defineAspects)(ListCollectionsOperation, [\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=list_collections.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,2BAA2B,KAAK;CACxC,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,2BAAN,cAAuC,UAAU,iBAAiB;EAC9D,YAAY,IAAI,QAAQ,SAAS;AAC7B,SAAM,IAAI,QAAQ;AAClB,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU,EAAE,GAAG,SAAS;AAC7B,UAAO,KAAK,QAAQ;AACpB,QAAK,KAAK;AACV,QAAK,SAAS;AACd,QAAK,WAAW,CAAC,CAAC,KAAK,QAAQ;AAC/B,QAAK,wBAAwB,CAAC,CAAC,KAAK,QAAQ;AAC5C,OAAI,OAAO,KAAK,QAAQ,cAAc,SAClC,MAAK,YAAY,KAAK,QAAQ;AAElC,QAAK,+BAA+B,KAAK,UAAU,YAAY,0BAA0B,YAAY;;EAEzG,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,YAAY;GAC7B,MAAM,UAAU;IACZ,iBAAiB;IACjB,QAAQ,KAAK;IACb,QAAQ,KAAK,YAAY,EAAE,WAAW,KAAK,WAAW,GAAG,EAAE;IAC3D,UAAU,KAAK;IACf,uBAAuB,KAAK;IAC/B;AAGD,QAAK,GAAG,QAAQ,gBAAgB,WAAW,IAAI,KAAK,KAAK,QAAQ,YAAY,OACzE,SAAQ,UAAU,KAAK,QAAQ;AAEnC,UAAO;;EAEX,SAAS,UAAU;AACf,UAAO;;;AAGf,SAAQ,2BAA2B;AACnC,EAAC,GAAG,YAAY,eAAe,0BAA0B;EACrD,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC"}