pecunia-root 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) 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/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs +14 -0
  7. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs.map +1 -0
  8. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs +54 -0
  9. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs.map +1 -0
  10. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs +36 -0
  11. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs.map +1 -0
  12. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs +27 -0
  13. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs.map +1 -0
  14. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs +3728 -0
  15. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs.map +1 -0
  16. 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
  17. 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
  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.mjs +55 -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.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/entity.mjs +18 -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/entity.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/pg-core/columns/common.mjs +183 -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/pg-core/columns/common.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/enum.mjs +35 -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/enum.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/foreign-keys.mjs +68 -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/foreign-keys.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/unique-constraint.mjs +56 -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/unique-constraint.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/utils/array.mjs +65 -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/utils/array.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/sql/expressions/conditions.mjs +69 -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/sql/expressions/conditions.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/select.mjs +13 -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/select.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/functions/aggregate.mjs +10 -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/functions/aggregate.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/sql.mjs +366 -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/sql.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/subquery.mjs +22 -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/subquery.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/table.mjs +62 -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/table.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.utils.mjs +6 -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.utils.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/tracing-utils.mjs +8 -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/tracing-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.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.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/view-common.mjs +6 -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/view-common.mjs.map +1 -0
  52. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs +137 -0
  53. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs.map +1 -0
  54. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs +211 -0
  55. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/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/redact.mjs +95 -0
  57. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs.map +1 -0
  58. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs +158 -0
  59. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs.map +1 -0
  60. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs +195 -0
  61. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs.map +1 -0
  62. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs +710 -0
  63. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs.map +1 -0
  64. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs +53 -0
  65. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs.map +1 -0
  66. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs +63 -0
  67. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs.map +1 -0
  68. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs +368 -0
  69. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs.map +1 -0
  70. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs +234 -0
  71. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs.map +1 -0
  72. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs +545 -0
  73. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs.map +1 -0
  74. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs +83 -0
  75. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs.map +1 -0
  76. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs +146 -0
  77. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs.map +1 -0
  78. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs +58 -0
  79. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs.map +1 -0
  80. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs +30 -0
  81. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs.map +1 -0
  82. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs +135 -0
  83. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs.map +1 -0
  84. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs +25 -0
  85. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs.map +1 -0
  86. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs +47 -0
  87. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs.map +1 -0
  88. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs +362 -0
  89. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs.map +1 -0
  90. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs +58 -0
  91. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs.map +1 -0
  92. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs +123 -0
  93. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs.map +1 -0
  94. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs +128 -0
  95. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs.map +1 -0
  96. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs +133 -0
  97. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs.map +1 -0
  98. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs +126 -0
  99. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs.map +1 -0
  100. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs +79 -0
  101. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs.map +1 -0
  102. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs +65 -0
  103. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs.map +1 -0
  104. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs +127 -0
  105. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs.map +1 -0
  106. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs +47 -0
  107. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs.map +1 -0
  108. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs +44 -0
  109. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs.map +1 -0
  110. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs +101 -0
  111. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs.map +1 -0
  112. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs +33 -0
  113. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs.map +1 -0
  114. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs +53 -0
  115. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs.map +1 -0
  116. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs +29 -0
  117. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs.map +1 -0
  118. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs +83 -0
  119. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs.map +1 -0
  120. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs +36 -0
  121. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs.map +1 -0
  122. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs +32 -0
  123. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs.map +1 -0
  124. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs +206 -0
  125. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs.map +1 -0
  126. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs +45 -0
  127. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs.map +1 -0
  128. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs +213 -0
  129. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs.map +1 -0
  130. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs +411 -0
  131. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs.map +1 -0
  132. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs +288 -0
  133. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs.map +1 -0
  134. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs +423 -0
  135. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs.map +1 -0
  136. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs +483 -0
  137. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs.map +1 -0
  138. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs +207 -0
  139. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs.map +1 -0
  140. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs +116 -0
  141. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs.map +1 -0
  142. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs +183 -0
  143. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs.map +1 -0
  144. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs +55 -0
  145. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs.map +1 -0
  146. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs +60 -0
  147. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs.map +1 -0
  148. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs +139 -0
  149. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs.map +1 -0
  150. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs +28 -0
  151. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs.map +1 -0
  152. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs +117 -0
  153. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs.map +1 -0
  154. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs +182 -0
  155. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs.map +1 -0
  156. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs +304 -0
  157. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs.map +1 -0
  158. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs +34 -0
  159. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs.map +1 -0
  160. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs +739 -0
  161. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs.map +1 -0
  162. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs +805 -0
  163. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs.map +1 -0
  164. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs +174 -0
  165. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs.map +1 -0
  166. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs +726 -0
  167. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs.map +1 -0
  168. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs +172 -0
  169. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs.map +1 -0
  170. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs +103 -0
  171. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs.map +1 -0
  172. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs +66 -0
  173. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs.map +1 -0
  174. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs +41 -0
  175. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs.map +1 -0
  176. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs +365 -0
  177. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs.map +1 -0
  178. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs +50 -0
  179. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs.map +1 -0
  180. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs +48 -0
  181. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs.map +1 -0
  182. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs +23 -0
  183. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs.map +1 -0
  184. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs +106 -0
  185. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs.map +1 -0
  186. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs +428 -0
  187. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs.map +1 -0
  188. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs +124 -0
  189. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs.map +1 -0
  190. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs +95 -0
  191. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs.map +1 -0
  192. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs +1305 -0
  193. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs.map +1 -0
  194. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs +59 -0
  195. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs.map +1 -0
  196. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs +250 -0
  197. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs.map +1 -0
  198. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs +170 -0
  199. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs.map +1 -0
  200. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs +315 -0
  201. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs.map +1 -0
  202. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs +925 -0
  203. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs.map +1 -0
  204. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs +520 -0
  205. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs.map +1 -0
  206. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs +90 -0
  207. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs.map +1 -0
  208. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs +582 -0
  209. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs.map +1 -0
  210. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs +64 -0
  211. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs.map +1 -0
  212. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs +86 -0
  213. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs.map +1 -0
  214. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs +60 -0
  215. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs.map +1 -0
  216. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs +264 -0
  217. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs.map +1 -0
  218. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs +109 -0
  219. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs.map +1 -0
  220. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs +172 -0
  221. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs.map +1 -0
  222. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs +68 -0
  223. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs.map +1 -0
  224. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs +53 -0
  225. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs.map +1 -0
  226. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs +123 -0
  227. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs.map +1 -0
  228. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs +119 -0
  229. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs.map +1 -0
  230. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs +65 -0
  231. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs.map +1 -0
  232. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs +97 -0
  233. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs.map +1 -0
  234. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs +47 -0
  235. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs.map +1 -0
  236. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs +188 -0
  237. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs.map +1 -0
  238. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs +103 -0
  239. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs.map +1 -0
  240. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs +136 -0
  241. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs.map +1 -0
  242. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs +61 -0
  243. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs.map +1 -0
  244. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs +179 -0
  245. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs.map +1 -0
  246. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs +77 -0
  247. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs.map +1 -0
  248. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs +48 -0
  249. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs.map +1 -0
  250. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs +60 -0
  251. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs.map +1 -0
  252. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs +43 -0
  253. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs.map +1 -0
  254. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs +105 -0
  255. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs.map +1 -0
  256. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs +50 -0
  257. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs.map +1 -0
  258. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs +39 -0
  259. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs.map +1 -0
  260. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs +49 -0
  261. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs.map +1 -0
  262. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs +58 -0
  263. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs.map +1 -0
  264. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs +46 -0
  265. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs.map +1 -0
  266. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs +48 -0
  267. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs.map +1 -0
  268. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs +46 -0
  269. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs.map +1 -0
  270. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs +67 -0
  271. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs.map +1 -0
  272. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs +37 -0
  273. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs.map +1 -0
  274. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs +171 -0
  275. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs.map +1 -0
  276. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs +45 -0
  277. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs.map +1 -0
  278. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs +71 -0
  279. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs.map +1 -0
  280. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs +165 -0
  281. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs.map +1 -0
  282. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs +62 -0
  283. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs.map +1 -0
  284. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs +51 -0
  285. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs.map +1 -0
  286. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs +156 -0
  287. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs.map +1 -0
  288. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs +477 -0
  289. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs.map +1 -0
  290. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs +315 -0
  291. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs.map +1 -0
  292. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs +157 -0
  293. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs.map +1 -0
  294. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs +184 -0
  295. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs.map +1 -0
  296. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs +96 -0
  297. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs.map +1 -0
  298. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs +107 -0
  299. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs.map +1 -0
  300. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs +540 -0
  301. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs.map +1 -0
  302. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs +298 -0
  303. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs.map +1 -0
  304. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs +623 -0
  305. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs.map +1 -0
  306. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs +91 -0
  307. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs.map +1 -0
  308. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs +254 -0
  309. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs.map +1 -0
  310. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs +138 -0
  311. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs.map +1 -0
  312. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs +993 -0
  313. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs.map +1 -0
  314. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs +81 -0
  315. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs.map +1 -0
  316. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs +171 -0
  317. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs.map +1 -0
  318. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs +295 -0
  319. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs.map +1 -0
  320. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs +81 -0
  321. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs.map +1 -0
  322. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs +206 -0
  323. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs.map +1 -0
  324. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs +33590 -0
  325. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs.map +1 -0
  326. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs +37 -0
  327. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs.map +1 -0
  328. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs +18 -0
  329. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs.map +1 -0
  330. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs +252 -0
  331. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs.map +1 -0
  332. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs +41 -0
  333. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs.map +1 -0
  334. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs +41 -0
  335. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs.map +1 -0
  336. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs +173 -0
  337. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs.map +1 -0
  338. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs +334 -0
  339. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs.map +1 -0
  340. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs +90 -0
  341. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs.map +1 -0
  342. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs +356 -0
  343. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs.map +1 -0
  344. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs +23 -0
  345. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs.map +1 -0
  346. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs +29 -0
  347. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs.map +1 -0
  348. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs +140 -0
  349. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs.map +1 -0
  350. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs +831 -0
  351. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs.map +1 -0
  352. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs +77 -0
  353. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs.map +1 -0
  354. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs +147 -0
  355. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs.map +1 -0
  356. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs +17 -0
  357. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs.map +1 -0
  358. package/package.json +1 -39
@@ -0,0 +1,36 @@
1
+ import { __commonJSMin } from "../../../../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_bson } from "../../bson.mjs";
3
+ import { require_error } from "../../error.mjs";
4
+ import { require_utils } from "../../utils.mjs";
5
+ import { require_auth_provider } from "./auth_provider.mjs";
6
+
7
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.js
8
+ var require_plain = /* @__PURE__ */ __commonJSMin(((exports) => {
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.Plain = void 0;
11
+ const bson_1 = require_bson();
12
+ const error_1 = require_error();
13
+ const utils_1 = require_utils();
14
+ const auth_provider_1 = require_auth_provider();
15
+ var Plain = class extends auth_provider_1.AuthProvider {
16
+ async auth(authContext) {
17
+ const { connection, credentials } = authContext;
18
+ if (!credentials) throw new error_1.MongoMissingCredentialsError("AuthContext must provide credentials.");
19
+ const { username, password } = credentials;
20
+ const command = {
21
+ saslStart: 1,
22
+ mechanism: "PLAIN",
23
+ payload: new bson_1.Binary(Buffer.from(`\x00${username}\x00${password}`)),
24
+ autoAuthorize: 1
25
+ };
26
+ await connection.command((0, utils_1.ns)("$external.$cmd"), command, void 0);
27
+ }
28
+ };
29
+ exports.Plain = Plain;
30
+ }));
31
+
32
+ //#endregion
33
+ export default require_plain();
34
+
35
+ export { require_plain };
36
+ //# sourceMappingURL=plain.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plain.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Plain = void 0;\nconst bson_1 = require(\"../../bson\");\nconst error_1 = require(\"../../error\");\nconst utils_1 = require(\"../../utils\");\nconst auth_provider_1 = require(\"./auth_provider\");\nclass Plain extends auth_provider_1.AuthProvider {\n async auth(authContext) {\n const { connection, credentials } = authContext;\n if (!credentials) {\n throw new error_1.MongoMissingCredentialsError('AuthContext must provide credentials.');\n }\n const { username, password } = credentials;\n const payload = new bson_1.Binary(Buffer.from(`\\x00${username}\\x00${password}`));\n const command = {\n saslStart: 1,\n mechanism: 'PLAIN',\n payload: payload,\n autoAuthorize: 1\n };\n await connection.command((0, utils_1.ns)('$external.$cmd'), command, undefined);\n }\n}\nexports.Plain = Plain;\n//# sourceMappingURL=plain.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,QAAQ,KAAK;CACrB,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,IAAM,QAAN,cAAoB,gBAAgB,aAAa;EAC7C,MAAM,KAAK,aAAa;GACpB,MAAM,EAAE,YAAY,gBAAgB;AACpC,OAAI,CAAC,YACD,OAAM,IAAI,QAAQ,6BAA6B,wCAAwC;GAE3F,MAAM,EAAE,UAAU,aAAa;GAE/B,MAAM,UAAU;IACZ,WAAW;IACX,WAAW;IACX,SAJY,IAAI,OAAO,OAAO,OAAO,KAAK,OAAO,SAAS,MAAM,WAAW,CAAC;IAK5E,eAAe;IAClB;AACD,SAAM,WAAW,SAAS,GAAG,QAAQ,IAAI,iBAAiB,EAAE,SAAS,OAAU;;;AAGvF,SAAQ,QAAQ"}
@@ -0,0 +1,32 @@
1
+ import { __commonJSMin } from "../../../../../../../../_virtual/rolldown_runtime.mjs";
2
+
3
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.js
4
+ var require_providers = /* @__PURE__ */ __commonJSMin(((exports) => {
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AUTH_MECHS_AUTH_SRC_EXTERNAL = exports.AuthMechanism = void 0;
7
+ /** @public */
8
+ exports.AuthMechanism = Object.freeze({
9
+ MONGODB_AWS: "MONGODB-AWS",
10
+ MONGODB_CR: "MONGODB-CR",
11
+ MONGODB_DEFAULT: "DEFAULT",
12
+ MONGODB_GSSAPI: "GSSAPI",
13
+ MONGODB_PLAIN: "PLAIN",
14
+ MONGODB_SCRAM_SHA1: "SCRAM-SHA-1",
15
+ MONGODB_SCRAM_SHA256: "SCRAM-SHA-256",
16
+ MONGODB_X509: "MONGODB-X509",
17
+ MONGODB_OIDC: "MONGODB-OIDC"
18
+ });
19
+ /** @internal */
20
+ exports.AUTH_MECHS_AUTH_SRC_EXTERNAL = new Set([
21
+ exports.AuthMechanism.MONGODB_GSSAPI,
22
+ exports.AuthMechanism.MONGODB_AWS,
23
+ exports.AuthMechanism.MONGODB_OIDC,
24
+ exports.AuthMechanism.MONGODB_X509
25
+ ]);
26
+ }));
27
+
28
+ //#endregion
29
+ export default require_providers();
30
+
31
+ export { require_providers };
32
+ //# sourceMappingURL=providers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providers.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AUTH_MECHS_AUTH_SRC_EXTERNAL = exports.AuthMechanism = void 0;\n/** @public */\nexports.AuthMechanism = Object.freeze({\n MONGODB_AWS: 'MONGODB-AWS',\n MONGODB_CR: 'MONGODB-CR',\n MONGODB_DEFAULT: 'DEFAULT',\n MONGODB_GSSAPI: 'GSSAPI',\n MONGODB_PLAIN: 'PLAIN',\n MONGODB_SCRAM_SHA1: 'SCRAM-SHA-1',\n MONGODB_SCRAM_SHA256: 'SCRAM-SHA-256',\n MONGODB_X509: 'MONGODB-X509',\n MONGODB_OIDC: 'MONGODB-OIDC'\n});\n/** @internal */\nexports.AUTH_MECHS_AUTH_SRC_EXTERNAL = new Set([\n exports.AuthMechanism.MONGODB_GSSAPI,\n exports.AuthMechanism.MONGODB_AWS,\n exports.AuthMechanism.MONGODB_OIDC,\n exports.AuthMechanism.MONGODB_X509\n]);\n//# sourceMappingURL=providers.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,+BAA+B,QAAQ,gBAAgB,KAAK;;AAEpE,SAAQ,gBAAgB,OAAO,OAAO;EAClC,aAAa;EACb,YAAY;EACZ,iBAAiB;EACjB,gBAAgB;EAChB,eAAe;EACf,oBAAoB;EACpB,sBAAsB;EACtB,cAAc;EACd,cAAc;EACjB,CAAC;;AAEF,SAAQ,+BAA+B,IAAI,IAAI;EAC3C,QAAQ,cAAc;EACtB,QAAQ,cAAc;EACtB,QAAQ,cAAc;EACtB,QAAQ,cAAc;EACzB,CAAC"}
@@ -0,0 +1,206 @@
1
+ import { __commonJSMin, __require } from "../../../../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_bson } from "../../bson.mjs";
3
+ import { require_error } from "../../error.mjs";
4
+ import { require_utils } from "../../utils.mjs";
5
+ import { require_auth_provider } from "./auth_provider.mjs";
6
+ import { require_providers } from "./providers.mjs";
7
+ import { require_node } from "../../../../../../@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs";
8
+
9
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.js
10
+ var require_scram = /* @__PURE__ */ __commonJSMin(((exports) => {
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ScramSHA256 = exports.ScramSHA1 = void 0;
13
+ const saslprep_1 = require_node();
14
+ const crypto = __require("crypto");
15
+ const bson_1 = require_bson();
16
+ const error_1 = require_error();
17
+ const utils_1 = require_utils();
18
+ const auth_provider_1 = require_auth_provider();
19
+ const providers_1 = require_providers();
20
+ var ScramSHA = class extends auth_provider_1.AuthProvider {
21
+ constructor(cryptoMethod) {
22
+ super();
23
+ this.cryptoMethod = cryptoMethod || "sha1";
24
+ }
25
+ async prepare(handshakeDoc, authContext) {
26
+ const cryptoMethod = this.cryptoMethod;
27
+ const credentials = authContext.credentials;
28
+ if (!credentials) throw new error_1.MongoMissingCredentialsError("AuthContext must provide credentials.");
29
+ const nonce = await (0, utils_1.randomBytes)(24);
30
+ authContext.nonce = nonce;
31
+ return {
32
+ ...handshakeDoc,
33
+ speculativeAuthenticate: {
34
+ ...makeFirstMessage(cryptoMethod, credentials, nonce),
35
+ db: credentials.source
36
+ }
37
+ };
38
+ }
39
+ async auth(authContext) {
40
+ const { reauthenticating, response } = authContext;
41
+ if (response?.speculativeAuthenticate && !reauthenticating) return await continueScramConversation(this.cryptoMethod, response.speculativeAuthenticate, authContext);
42
+ return await executeScram(this.cryptoMethod, authContext);
43
+ }
44
+ };
45
+ function cleanUsername(username) {
46
+ return username.replace("=", "=3D").replace(",", "=2C");
47
+ }
48
+ function clientFirstMessageBare(username, nonce) {
49
+ return Buffer.concat([
50
+ Buffer.from("n=", "utf8"),
51
+ Buffer.from(username, "utf8"),
52
+ Buffer.from(",r=", "utf8"),
53
+ Buffer.from(nonce.toString("base64"), "utf8")
54
+ ]);
55
+ }
56
+ function makeFirstMessage(cryptoMethod, credentials, nonce) {
57
+ const username = cleanUsername(credentials.username);
58
+ return {
59
+ saslStart: 1,
60
+ mechanism: cryptoMethod === "sha1" ? providers_1.AuthMechanism.MONGODB_SCRAM_SHA1 : providers_1.AuthMechanism.MONGODB_SCRAM_SHA256,
61
+ payload: new bson_1.Binary(Buffer.concat([Buffer.from("n,,", "utf8"), clientFirstMessageBare(username, nonce)])),
62
+ autoAuthorize: 1,
63
+ options: { skipEmptyExchange: true }
64
+ };
65
+ }
66
+ async function executeScram(cryptoMethod, authContext) {
67
+ const { connection, credentials } = authContext;
68
+ if (!credentials) throw new error_1.MongoMissingCredentialsError("AuthContext must provide credentials.");
69
+ if (!authContext.nonce) throw new error_1.MongoInvalidArgumentError("AuthContext must contain a valid nonce property");
70
+ const nonce = authContext.nonce;
71
+ const db = credentials.source;
72
+ const saslStartCmd = makeFirstMessage(cryptoMethod, credentials, nonce);
73
+ await continueScramConversation(cryptoMethod, await connection.command((0, utils_1.ns)(`${db}.$cmd`), saslStartCmd, void 0), authContext);
74
+ }
75
+ async function continueScramConversation(cryptoMethod, response, authContext) {
76
+ const connection = authContext.connection;
77
+ const credentials = authContext.credentials;
78
+ if (!credentials) throw new error_1.MongoMissingCredentialsError("AuthContext must provide credentials.");
79
+ if (!authContext.nonce) throw new error_1.MongoInvalidArgumentError("Unable to continue SCRAM without valid nonce");
80
+ const nonce = authContext.nonce;
81
+ const db = credentials.source;
82
+ const username = cleanUsername(credentials.username);
83
+ const password = credentials.password;
84
+ const processedPassword = cryptoMethod === "sha256" ? (0, saslprep_1.saslprep)(password) : passwordDigest(username, password);
85
+ const payload = Buffer.isBuffer(response.payload) ? new bson_1.Binary(response.payload) : response.payload;
86
+ const dict = parsePayload(payload);
87
+ const iterations = parseInt(dict.i, 10);
88
+ if (iterations && iterations < 4096) throw new error_1.MongoRuntimeError(`Server returned an invalid iteration count ${iterations}`);
89
+ const salt = dict.s;
90
+ const rnonce = dict.r;
91
+ if (rnonce.startsWith("nonce")) throw new error_1.MongoRuntimeError(`Server returned an invalid nonce: ${rnonce}`);
92
+ const withoutProof = `c=biws,r=${rnonce}`;
93
+ const saltedPassword = HI(processedPassword, Buffer.from(salt, "base64"), iterations, cryptoMethod);
94
+ const clientKey = HMAC(cryptoMethod, saltedPassword, "Client Key");
95
+ const serverKey = HMAC(cryptoMethod, saltedPassword, "Server Key");
96
+ const storedKey = H(cryptoMethod, clientKey);
97
+ const authMessage = [
98
+ clientFirstMessageBare(username, nonce),
99
+ payload.toString("utf8"),
100
+ withoutProof
101
+ ].join(",");
102
+ const clientFinal = [withoutProof, `p=${xor(clientKey, HMAC(cryptoMethod, storedKey, authMessage))}`].join(",");
103
+ const serverSignature = HMAC(cryptoMethod, serverKey, authMessage);
104
+ const saslContinueCmd = {
105
+ saslContinue: 1,
106
+ conversationId: response.conversationId,
107
+ payload: new bson_1.Binary(Buffer.from(clientFinal))
108
+ };
109
+ const r = await connection.command((0, utils_1.ns)(`${db}.$cmd`), saslContinueCmd, void 0);
110
+ const parsedResponse = parsePayload(r.payload);
111
+ if (!compareDigest(Buffer.from(parsedResponse.v, "base64"), serverSignature)) throw new error_1.MongoRuntimeError("Server returned an invalid signature");
112
+ if (r.done !== false) return;
113
+ const retrySaslContinueCmd = {
114
+ saslContinue: 1,
115
+ conversationId: r.conversationId,
116
+ payload: Buffer.alloc(0)
117
+ };
118
+ await connection.command((0, utils_1.ns)(`${db}.$cmd`), retrySaslContinueCmd, void 0);
119
+ }
120
+ function parsePayload(payload) {
121
+ const payloadStr = payload.toString("utf8");
122
+ const dict = {};
123
+ const parts = payloadStr.split(",");
124
+ for (let i = 0; i < parts.length; i++) {
125
+ const valueParts = (parts[i].match(/^([^=]*)=(.*)$/) ?? []).slice(1);
126
+ dict[valueParts[0]] = valueParts[1];
127
+ }
128
+ return dict;
129
+ }
130
+ function passwordDigest(username, password) {
131
+ if (typeof username !== "string") throw new error_1.MongoInvalidArgumentError("Username must be a string");
132
+ if (typeof password !== "string") throw new error_1.MongoInvalidArgumentError("Password must be a string");
133
+ if (password.length === 0) throw new error_1.MongoInvalidArgumentError("Password cannot be empty");
134
+ let md5;
135
+ try {
136
+ md5 = crypto.createHash("md5");
137
+ } catch (err) {
138
+ if (crypto.getFips()) throw new Error("Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode");
139
+ throw err;
140
+ }
141
+ md5.update(`${username}:mongo:${password}`, "utf8");
142
+ return md5.digest("hex");
143
+ }
144
+ function xor(a, b) {
145
+ if (!Buffer.isBuffer(a)) a = Buffer.from(a);
146
+ if (!Buffer.isBuffer(b)) b = Buffer.from(b);
147
+ const length = Math.max(a.length, b.length);
148
+ const res = [];
149
+ for (let i = 0; i < length; i += 1) res.push(a[i] ^ b[i]);
150
+ return Buffer.from(res).toString("base64");
151
+ }
152
+ function H(method, text) {
153
+ return crypto.createHash(method).update(text).digest();
154
+ }
155
+ function HMAC(method, key, text) {
156
+ return crypto.createHmac(method, key).update(text).digest();
157
+ }
158
+ let _hiCache = {};
159
+ let _hiCacheCount = 0;
160
+ function _hiCachePurge() {
161
+ _hiCache = {};
162
+ _hiCacheCount = 0;
163
+ }
164
+ const hiLengthMap = {
165
+ sha256: 32,
166
+ sha1: 20
167
+ };
168
+ function HI(data, salt, iterations, cryptoMethod) {
169
+ const key = [
170
+ data,
171
+ salt.toString("base64"),
172
+ iterations
173
+ ].join("_");
174
+ if (_hiCache[key] != null) return _hiCache[key];
175
+ const saltedData = crypto.pbkdf2Sync(data, salt, iterations, hiLengthMap[cryptoMethod], cryptoMethod);
176
+ if (_hiCacheCount >= 200) _hiCachePurge();
177
+ _hiCache[key] = saltedData;
178
+ _hiCacheCount += 1;
179
+ return saltedData;
180
+ }
181
+ function compareDigest(lhs, rhs) {
182
+ if (lhs.length !== rhs.length) return false;
183
+ if (typeof crypto.timingSafeEqual === "function") return crypto.timingSafeEqual(lhs, rhs);
184
+ let result = 0;
185
+ for (let i = 0; i < lhs.length; i++) result |= lhs[i] ^ rhs[i];
186
+ return result === 0;
187
+ }
188
+ var ScramSHA1 = class extends ScramSHA {
189
+ constructor() {
190
+ super("sha1");
191
+ }
192
+ };
193
+ exports.ScramSHA1 = ScramSHA1;
194
+ var ScramSHA256 = class extends ScramSHA {
195
+ constructor() {
196
+ super("sha256");
197
+ }
198
+ };
199
+ exports.ScramSHA256 = ScramSHA256;
200
+ }));
201
+
202
+ //#endregion
203
+ export default require_scram();
204
+
205
+ export { require_scram };
206
+ //# sourceMappingURL=scram.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scram.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ScramSHA256 = exports.ScramSHA1 = void 0;\nconst saslprep_1 = require(\"@mongodb-js/saslprep\");\nconst crypto = require(\"crypto\");\nconst bson_1 = require(\"../../bson\");\nconst error_1 = require(\"../../error\");\nconst utils_1 = require(\"../../utils\");\nconst auth_provider_1 = require(\"./auth_provider\");\nconst providers_1 = require(\"./providers\");\nclass ScramSHA extends auth_provider_1.AuthProvider {\n constructor(cryptoMethod) {\n super();\n this.cryptoMethod = cryptoMethod || 'sha1';\n }\n async prepare(handshakeDoc, authContext) {\n const cryptoMethod = this.cryptoMethod;\n const credentials = authContext.credentials;\n if (!credentials) {\n throw new error_1.MongoMissingCredentialsError('AuthContext must provide credentials.');\n }\n const nonce = await (0, utils_1.randomBytes)(24);\n // store the nonce for later use\n authContext.nonce = nonce;\n const request = {\n ...handshakeDoc,\n speculativeAuthenticate: {\n ...makeFirstMessage(cryptoMethod, credentials, nonce),\n db: credentials.source\n }\n };\n return request;\n }\n async auth(authContext) {\n const { reauthenticating, response } = authContext;\n if (response?.speculativeAuthenticate && !reauthenticating) {\n return await continueScramConversation(this.cryptoMethod, response.speculativeAuthenticate, authContext);\n }\n return await executeScram(this.cryptoMethod, authContext);\n }\n}\nfunction cleanUsername(username) {\n return username.replace('=', '=3D').replace(',', '=2C');\n}\nfunction clientFirstMessageBare(username, nonce) {\n // NOTE: This is done b/c Javascript uses UTF-16, but the server is hashing in UTF-8.\n // Since the username is not sasl-prep-d, we need to do this here.\n return Buffer.concat([\n Buffer.from('n=', 'utf8'),\n Buffer.from(username, 'utf8'),\n Buffer.from(',r=', 'utf8'),\n Buffer.from(nonce.toString('base64'), 'utf8')\n ]);\n}\nfunction makeFirstMessage(cryptoMethod, credentials, nonce) {\n const username = cleanUsername(credentials.username);\n const mechanism = cryptoMethod === 'sha1' ? providers_1.AuthMechanism.MONGODB_SCRAM_SHA1 : providers_1.AuthMechanism.MONGODB_SCRAM_SHA256;\n // NOTE: This is done b/c Javascript uses UTF-16, but the server is hashing in UTF-8.\n // Since the username is not sasl-prep-d, we need to do this here.\n return {\n saslStart: 1,\n mechanism,\n payload: new bson_1.Binary(Buffer.concat([Buffer.from('n,,', 'utf8'), clientFirstMessageBare(username, nonce)])),\n autoAuthorize: 1,\n options: { skipEmptyExchange: true }\n };\n}\nasync function executeScram(cryptoMethod, authContext) {\n const { connection, credentials } = authContext;\n if (!credentials) {\n throw new error_1.MongoMissingCredentialsError('AuthContext must provide credentials.');\n }\n if (!authContext.nonce) {\n throw new error_1.MongoInvalidArgumentError('AuthContext must contain a valid nonce property');\n }\n const nonce = authContext.nonce;\n const db = credentials.source;\n const saslStartCmd = makeFirstMessage(cryptoMethod, credentials, nonce);\n const response = await connection.command((0, utils_1.ns)(`${db}.$cmd`), saslStartCmd, undefined);\n await continueScramConversation(cryptoMethod, response, authContext);\n}\nasync function continueScramConversation(cryptoMethod, response, authContext) {\n const connection = authContext.connection;\n const credentials = authContext.credentials;\n if (!credentials) {\n throw new error_1.MongoMissingCredentialsError('AuthContext must provide credentials.');\n }\n if (!authContext.nonce) {\n throw new error_1.MongoInvalidArgumentError('Unable to continue SCRAM without valid nonce');\n }\n const nonce = authContext.nonce;\n const db = credentials.source;\n const username = cleanUsername(credentials.username);\n const password = credentials.password;\n const processedPassword = cryptoMethod === 'sha256' ? (0, saslprep_1.saslprep)(password) : passwordDigest(username, password);\n const payload = Buffer.isBuffer(response.payload)\n ? new bson_1.Binary(response.payload)\n : response.payload;\n const dict = parsePayload(payload);\n const iterations = parseInt(dict.i, 10);\n if (iterations && iterations < 4096) {\n // TODO(NODE-3483)\n throw new error_1.MongoRuntimeError(`Server returned an invalid iteration count ${iterations}`);\n }\n const salt = dict.s;\n const rnonce = dict.r;\n if (rnonce.startsWith('nonce')) {\n // TODO(NODE-3483)\n throw new error_1.MongoRuntimeError(`Server returned an invalid nonce: ${rnonce}`);\n }\n // Set up start of proof\n const withoutProof = `c=biws,r=${rnonce}`;\n const saltedPassword = HI(processedPassword, Buffer.from(salt, 'base64'), iterations, cryptoMethod);\n const clientKey = HMAC(cryptoMethod, saltedPassword, 'Client Key');\n const serverKey = HMAC(cryptoMethod, saltedPassword, 'Server Key');\n const storedKey = H(cryptoMethod, clientKey);\n const authMessage = [\n clientFirstMessageBare(username, nonce),\n payload.toString('utf8'),\n withoutProof\n ].join(',');\n const clientSignature = HMAC(cryptoMethod, storedKey, authMessage);\n const clientProof = `p=${xor(clientKey, clientSignature)}`;\n const clientFinal = [withoutProof, clientProof].join(',');\n const serverSignature = HMAC(cryptoMethod, serverKey, authMessage);\n const saslContinueCmd = {\n saslContinue: 1,\n conversationId: response.conversationId,\n payload: new bson_1.Binary(Buffer.from(clientFinal))\n };\n const r = await connection.command((0, utils_1.ns)(`${db}.$cmd`), saslContinueCmd, undefined);\n const parsedResponse = parsePayload(r.payload);\n if (!compareDigest(Buffer.from(parsedResponse.v, 'base64'), serverSignature)) {\n throw new error_1.MongoRuntimeError('Server returned an invalid signature');\n }\n if (r.done !== false) {\n // If the server sends r.done === true we can save one RTT\n return;\n }\n const retrySaslContinueCmd = {\n saslContinue: 1,\n conversationId: r.conversationId,\n payload: Buffer.alloc(0)\n };\n await connection.command((0, utils_1.ns)(`${db}.$cmd`), retrySaslContinueCmd, undefined);\n}\nfunction parsePayload(payload) {\n const payloadStr = payload.toString('utf8');\n const dict = {};\n const parts = payloadStr.split(',');\n for (let i = 0; i < parts.length; i++) {\n const valueParts = (parts[i].match(/^([^=]*)=(.*)$/) ?? []).slice(1);\n dict[valueParts[0]] = valueParts[1];\n }\n return dict;\n}\nfunction passwordDigest(username, password) {\n if (typeof username !== 'string') {\n throw new error_1.MongoInvalidArgumentError('Username must be a string');\n }\n if (typeof password !== 'string') {\n throw new error_1.MongoInvalidArgumentError('Password must be a string');\n }\n if (password.length === 0) {\n throw new error_1.MongoInvalidArgumentError('Password cannot be empty');\n }\n let md5;\n try {\n md5 = crypto.createHash('md5');\n }\n catch (err) {\n if (crypto.getFips()) {\n // This error is (slightly) more helpful than what comes from OpenSSL directly, e.g.\n // 'Error: error:060800C8:digital envelope routines:EVP_DigestInit_ex:disabled for FIPS'\n throw new Error('Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode');\n }\n throw err;\n }\n md5.update(`${username}:mongo:${password}`, 'utf8');\n return md5.digest('hex');\n}\n// XOR two buffers\nfunction xor(a, b) {\n if (!Buffer.isBuffer(a)) {\n a = Buffer.from(a);\n }\n if (!Buffer.isBuffer(b)) {\n b = Buffer.from(b);\n }\n const length = Math.max(a.length, b.length);\n const res = [];\n for (let i = 0; i < length; i += 1) {\n res.push(a[i] ^ b[i]);\n }\n return Buffer.from(res).toString('base64');\n}\nfunction H(method, text) {\n return crypto.createHash(method).update(text).digest();\n}\nfunction HMAC(method, key, text) {\n return crypto.createHmac(method, key).update(text).digest();\n}\nlet _hiCache = {};\nlet _hiCacheCount = 0;\nfunction _hiCachePurge() {\n _hiCache = {};\n _hiCacheCount = 0;\n}\nconst hiLengthMap = {\n sha256: 32,\n sha1: 20\n};\nfunction HI(data, salt, iterations, cryptoMethod) {\n // omit the work if already generated\n const key = [data, salt.toString('base64'), iterations].join('_');\n if (_hiCache[key] != null) {\n return _hiCache[key];\n }\n // generate the salt\n const saltedData = crypto.pbkdf2Sync(data, salt, iterations, hiLengthMap[cryptoMethod], cryptoMethod);\n // cache a copy to speed up the next lookup, but prevent unbounded cache growth\n if (_hiCacheCount >= 200) {\n _hiCachePurge();\n }\n _hiCache[key] = saltedData;\n _hiCacheCount += 1;\n return saltedData;\n}\nfunction compareDigest(lhs, rhs) {\n if (lhs.length !== rhs.length) {\n return false;\n }\n if (typeof crypto.timingSafeEqual === 'function') {\n return crypto.timingSafeEqual(lhs, rhs);\n }\n let result = 0;\n for (let i = 0; i < lhs.length; i++) {\n result |= lhs[i] ^ rhs[i];\n }\n return result === 0;\n}\nclass ScramSHA1 extends ScramSHA {\n constructor() {\n super('sha1');\n }\n}\nexports.ScramSHA1 = ScramSHA1;\nclass ScramSHA256 extends ScramSHA {\n constructor() {\n super('sha256');\n }\n}\nexports.ScramSHA256 = ScramSHA256;\n//# sourceMappingURL=scram.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,cAAc,QAAQ,YAAY,KAAK;CAC/C,MAAM;CACN,MAAM,mBAAiB,SAAS;CAChC,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,IAAM,WAAN,cAAuB,gBAAgB,aAAa;EAChD,YAAY,cAAc;AACtB,UAAO;AACP,QAAK,eAAe,gBAAgB;;EAExC,MAAM,QAAQ,cAAc,aAAa;GACrC,MAAM,eAAe,KAAK;GAC1B,MAAM,cAAc,YAAY;AAChC,OAAI,CAAC,YACD,OAAM,IAAI,QAAQ,6BAA6B,wCAAwC;GAE3F,MAAM,QAAQ,OAAO,GAAG,QAAQ,aAAa,GAAG;AAEhD,eAAY,QAAQ;AAQpB,UAPgB;IACZ,GAAG;IACH,yBAAyB;KACrB,GAAG,iBAAiB,cAAc,aAAa,MAAM;KACrD,IAAI,YAAY;KACnB;IACJ;;EAGL,MAAM,KAAK,aAAa;GACpB,MAAM,EAAE,kBAAkB,aAAa;AACvC,OAAI,UAAU,2BAA2B,CAAC,iBACtC,QAAO,MAAM,0BAA0B,KAAK,cAAc,SAAS,yBAAyB,YAAY;AAE5G,UAAO,MAAM,aAAa,KAAK,cAAc,YAAY;;;CAGjE,SAAS,cAAc,UAAU;AAC7B,SAAO,SAAS,QAAQ,KAAK,MAAM,CAAC,QAAQ,KAAK,MAAM;;CAE3D,SAAS,uBAAuB,UAAU,OAAO;AAG7C,SAAO,OAAO,OAAO;GACjB,OAAO,KAAK,MAAM,OAAO;GACzB,OAAO,KAAK,UAAU,OAAO;GAC7B,OAAO,KAAK,OAAO,OAAO;GAC1B,OAAO,KAAK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,SAAS,SAAS;;CAE9C,SAAS,EAAE,QAAQ,MAAM;AACrB,SAAO,OAAO,WAAW,OAAO,CAAC,OAAO,KAAK,CAAC,QAAQ;;CAE1D,SAAS,KAAK,QAAQ,KAAK,MAAM;AAC7B,SAAO,OAAO,WAAW,QAAQ,IAAI,CAAC,OAAO,KAAK,CAAC,QAAQ;;CAE/D,IAAI,WAAW,EAAE;CACjB,IAAI,gBAAgB;CACpB,SAAS,gBAAgB;AACrB,aAAW,EAAE;AACb,kBAAgB;;CAEpB,MAAM,cAAc;EAChB,QAAQ;EACR,MAAM;EACT;CACD,SAAS,GAAG,MAAM,MAAM,YAAY,cAAc;EAE9C,MAAM,MAAM;GAAC;GAAM,KAAK,SAAS,SAAS;GAAE;GAAW,CAAC,KAAK,IAAI;AACjE,MAAI,SAAS,QAAQ,KACjB,QAAO,SAAS;EAGpB,MAAM,aAAa,OAAO,WAAW,MAAM,MAAM,YAAY,YAAY,eAAe,aAAa;AAErG,MAAI,iBAAiB,IACjB,gBAAe;AAEnB,WAAS,OAAO;AAChB,mBAAiB;AACjB,SAAO;;CAEX,SAAS,cAAc,KAAK,KAAK;AAC7B,MAAI,IAAI,WAAW,IAAI,OACnB,QAAO;AAEX,MAAI,OAAO,OAAO,oBAAoB,WAClC,QAAO,OAAO,gBAAgB,KAAK,IAAI;EAE3C,IAAI,SAAS;AACb,OAAK,IAAI,IAAI,GAAG,IAAI,IAAI,QAAQ,IAC5B,WAAU,IAAI,KAAK,IAAI;AAE3B,SAAO,WAAW;;CAEtB,IAAM,YAAN,cAAwB,SAAS;EAC7B,cAAc;AACV,SAAM,OAAO;;;AAGrB,SAAQ,YAAY;CACpB,IAAM,cAAN,cAA0B,SAAS;EAC/B,cAAc;AACV,SAAM,SAAS;;;AAGvB,SAAQ,cAAc"}
@@ -0,0 +1,45 @@
1
+ import { __commonJSMin } from "../../../../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_error } from "../../error.mjs";
3
+ import { require_utils } from "../../utils.mjs";
4
+ import { require_auth_provider } from "./auth_provider.mjs";
5
+
6
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.js
7
+ var require_x509 = /* @__PURE__ */ __commonJSMin(((exports) => {
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.X509 = void 0;
10
+ const error_1 = require_error();
11
+ const utils_1 = require_utils();
12
+ const auth_provider_1 = require_auth_provider();
13
+ var X509 = class extends auth_provider_1.AuthProvider {
14
+ async prepare(handshakeDoc, authContext) {
15
+ const { credentials } = authContext;
16
+ if (!credentials) throw new error_1.MongoMissingCredentialsError("AuthContext must provide credentials.");
17
+ return {
18
+ ...handshakeDoc,
19
+ speculativeAuthenticate: x509AuthenticateCommand(credentials)
20
+ };
21
+ }
22
+ async auth(authContext) {
23
+ const connection = authContext.connection;
24
+ const credentials = authContext.credentials;
25
+ if (!credentials) throw new error_1.MongoMissingCredentialsError("AuthContext must provide credentials.");
26
+ if (authContext.response?.speculativeAuthenticate) return;
27
+ await connection.command((0, utils_1.ns)("$external.$cmd"), x509AuthenticateCommand(credentials), void 0);
28
+ }
29
+ };
30
+ exports.X509 = X509;
31
+ function x509AuthenticateCommand(credentials) {
32
+ const command = {
33
+ authenticate: 1,
34
+ mechanism: "MONGODB-X509"
35
+ };
36
+ if (credentials.username) command.user = credentials.username;
37
+ return command;
38
+ }
39
+ }));
40
+
41
+ //#endregion
42
+ export default require_x509();
43
+
44
+ export { require_x509 };
45
+ //# sourceMappingURL=x509.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x509.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.X509 = void 0;\nconst error_1 = require(\"../../error\");\nconst utils_1 = require(\"../../utils\");\nconst auth_provider_1 = require(\"./auth_provider\");\nclass X509 extends auth_provider_1.AuthProvider {\n async prepare(handshakeDoc, authContext) {\n const { credentials } = authContext;\n if (!credentials) {\n throw new error_1.MongoMissingCredentialsError('AuthContext must provide credentials.');\n }\n return { ...handshakeDoc, speculativeAuthenticate: x509AuthenticateCommand(credentials) };\n }\n async auth(authContext) {\n const connection = authContext.connection;\n const credentials = authContext.credentials;\n if (!credentials) {\n throw new error_1.MongoMissingCredentialsError('AuthContext must provide credentials.');\n }\n const response = authContext.response;\n if (response?.speculativeAuthenticate) {\n return;\n }\n await connection.command((0, utils_1.ns)('$external.$cmd'), x509AuthenticateCommand(credentials), undefined);\n }\n}\nexports.X509 = X509;\nfunction x509AuthenticateCommand(credentials) {\n const command = { authenticate: 1, mechanism: 'MONGODB-X509' };\n if (credentials.username) {\n command.user = credentials.username;\n }\n return command;\n}\n//# sourceMappingURL=x509.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,OAAO,KAAK;CACpB,MAAM;CACN,MAAM;CACN,MAAM;CACN,IAAM,OAAN,cAAmB,gBAAgB,aAAa;EAC5C,MAAM,QAAQ,cAAc,aAAa;GACrC,MAAM,EAAE,gBAAgB;AACxB,OAAI,CAAC,YACD,OAAM,IAAI,QAAQ,6BAA6B,wCAAwC;AAE3F,UAAO;IAAE,GAAG;IAAc,yBAAyB,wBAAwB,YAAY;IAAE;;EAE7F,MAAM,KAAK,aAAa;GACpB,MAAM,aAAa,YAAY;GAC/B,MAAM,cAAc,YAAY;AAChC,OAAI,CAAC,YACD,OAAM,IAAI,QAAQ,6BAA6B,wCAAwC;AAG3F,OADiB,YAAY,UACf,wBACV;AAEJ,SAAM,WAAW,SAAS,GAAG,QAAQ,IAAI,iBAAiB,EAAE,wBAAwB,YAAY,EAAE,OAAU;;;AAGpH,SAAQ,OAAO;CACf,SAAS,wBAAwB,aAAa;EAC1C,MAAM,UAAU;GAAE,cAAc;GAAG,WAAW;GAAgB;AAC9D,MAAI,YAAY,SACZ,SAAQ,OAAO,YAAY;AAE/B,SAAO"}
@@ -0,0 +1,213 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_constants } from "../constants.mjs";
3
+ import { require_utils } from "../utils.mjs";
4
+ import { require_commands } from "./commands.mjs";
5
+
6
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.js
7
+ var require_command_monitoring_events = /* @__PURE__ */ __commonJSMin(((exports) => {
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.SENSITIVE_COMMANDS = exports.CommandFailedEvent = exports.CommandSucceededEvent = exports.CommandStartedEvent = void 0;
10
+ const constants_1 = require_constants();
11
+ const utils_1 = require_utils();
12
+ const commands_1 = require_commands();
13
+ /**
14
+ * An event indicating the start of a given command
15
+ * @public
16
+ * @category Event
17
+ */
18
+ var CommandStartedEvent = class {
19
+ /**
20
+ * Create a started event
21
+ *
22
+ * @internal
23
+ * @param pool - the pool that originated the command
24
+ * @param command - the command
25
+ */
26
+ constructor(connection, command, serverConnectionId) {
27
+ /** @internal */
28
+ this.name = constants_1.COMMAND_STARTED;
29
+ const cmd = extractCommand(command);
30
+ const commandName = extractCommandName(cmd);
31
+ const { address, connectionId, serviceId } = extractConnectionDetails(connection);
32
+ if (exports.SENSITIVE_COMMANDS.has(commandName)) {
33
+ this.commandObj = {};
34
+ this.commandObj[commandName] = true;
35
+ }
36
+ this.address = address;
37
+ this.connectionId = connectionId;
38
+ this.serviceId = serviceId;
39
+ this.requestId = command.requestId;
40
+ this.databaseName = command.databaseName;
41
+ this.commandName = commandName;
42
+ this.command = maybeRedact(commandName, cmd, cmd);
43
+ this.serverConnectionId = serverConnectionId;
44
+ }
45
+ get hasServiceId() {
46
+ return !!this.serviceId;
47
+ }
48
+ };
49
+ exports.CommandStartedEvent = CommandStartedEvent;
50
+ /**
51
+ * An event indicating the success of a given command
52
+ * @public
53
+ * @category Event
54
+ */
55
+ var CommandSucceededEvent = class {
56
+ /**
57
+ * Create a succeeded event
58
+ *
59
+ * @internal
60
+ * @param pool - the pool that originated the command
61
+ * @param command - the command
62
+ * @param reply - the reply for this command from the server
63
+ * @param started - a high resolution tuple timestamp of when the command was first sent, to calculate duration
64
+ */
65
+ constructor(connection, command, reply, started, serverConnectionId) {
66
+ /** @internal */
67
+ this.name = constants_1.COMMAND_SUCCEEDED;
68
+ const cmd = extractCommand(command);
69
+ const commandName = extractCommandName(cmd);
70
+ const { address, connectionId, serviceId } = extractConnectionDetails(connection);
71
+ this.address = address;
72
+ this.connectionId = connectionId;
73
+ this.serviceId = serviceId;
74
+ this.requestId = command.requestId;
75
+ this.commandName = commandName;
76
+ this.duration = (0, utils_1.calculateDurationInMs)(started);
77
+ this.reply = maybeRedact(commandName, cmd, extractReply(reply));
78
+ this.serverConnectionId = serverConnectionId;
79
+ this.databaseName = command.databaseName;
80
+ }
81
+ get hasServiceId() {
82
+ return !!this.serviceId;
83
+ }
84
+ };
85
+ exports.CommandSucceededEvent = CommandSucceededEvent;
86
+ /**
87
+ * An event indicating the failure of a given command
88
+ * @public
89
+ * @category Event
90
+ */
91
+ var CommandFailedEvent = class {
92
+ /**
93
+ * Create a failure event
94
+ *
95
+ * @internal
96
+ * @param pool - the pool that originated the command
97
+ * @param command - the command
98
+ * @param error - the generated error or a server error response
99
+ * @param started - a high resolution tuple timestamp of when the command was first sent, to calculate duration
100
+ */
101
+ constructor(connection, command, error, started, serverConnectionId) {
102
+ /** @internal */
103
+ this.name = constants_1.COMMAND_FAILED;
104
+ const cmd = extractCommand(command);
105
+ const commandName = extractCommandName(cmd);
106
+ const { address, connectionId, serviceId } = extractConnectionDetails(connection);
107
+ this.address = address;
108
+ this.connectionId = connectionId;
109
+ this.serviceId = serviceId;
110
+ this.requestId = command.requestId;
111
+ this.commandName = commandName;
112
+ this.duration = (0, utils_1.calculateDurationInMs)(started);
113
+ this.failure = maybeRedact(commandName, cmd, error);
114
+ this.serverConnectionId = serverConnectionId;
115
+ this.databaseName = command.databaseName;
116
+ }
117
+ get hasServiceId() {
118
+ return !!this.serviceId;
119
+ }
120
+ };
121
+ exports.CommandFailedEvent = CommandFailedEvent;
122
+ /**
123
+ * Commands that we want to redact because of the sensitive nature of their contents
124
+ * @internal
125
+ */
126
+ exports.SENSITIVE_COMMANDS = new Set([
127
+ "authenticate",
128
+ "saslStart",
129
+ "saslContinue",
130
+ "getnonce",
131
+ "createUser",
132
+ "updateUser",
133
+ "copydbgetnonce",
134
+ "copydbsaslstart",
135
+ "copydb"
136
+ ]);
137
+ const HELLO_COMMANDS = new Set([
138
+ "hello",
139
+ constants_1.LEGACY_HELLO_COMMAND,
140
+ constants_1.LEGACY_HELLO_COMMAND_CAMEL_CASE
141
+ ]);
142
+ const extractCommandName = (commandDoc) => Object.keys(commandDoc)[0];
143
+ const collectionName = (command) => command.ns.split(".")[1];
144
+ const maybeRedact = (commandName, commandDoc, result) => exports.SENSITIVE_COMMANDS.has(commandName) || HELLO_COMMANDS.has(commandName) && commandDoc.speculativeAuthenticate ? {} : result;
145
+ const LEGACY_FIND_QUERY_MAP = {
146
+ $query: "filter",
147
+ $orderby: "sort",
148
+ $hint: "hint",
149
+ $comment: "comment",
150
+ $maxScan: "maxScan",
151
+ $max: "max",
152
+ $min: "min",
153
+ $returnKey: "returnKey",
154
+ $showDiskLoc: "showRecordId",
155
+ $maxTimeMS: "maxTimeMS",
156
+ $snapshot: "snapshot"
157
+ };
158
+ const LEGACY_FIND_OPTIONS_MAP = {
159
+ numberToSkip: "skip",
160
+ numberToReturn: "batchSize",
161
+ returnFieldSelector: "projection"
162
+ };
163
+ /** Extract the actual command from the query, possibly up-converting if it's a legacy format */
164
+ function extractCommand(command) {
165
+ if (command instanceof commands_1.OpMsgRequest) {
166
+ const cmd = { ...command.command };
167
+ if (cmd.ops instanceof commands_1.DocumentSequence) cmd.ops = cmd.ops.documents;
168
+ if (cmd.nsInfo instanceof commands_1.DocumentSequence) cmd.nsInfo = cmd.nsInfo.documents;
169
+ return cmd;
170
+ }
171
+ if (command.query?.$query) {
172
+ let result;
173
+ if (command.ns === "admin.$cmd") result = Object.assign({}, command.query.$query);
174
+ else {
175
+ result = { find: collectionName(command) };
176
+ Object.keys(LEGACY_FIND_QUERY_MAP).forEach((key) => {
177
+ if (command.query[key] != null) result[LEGACY_FIND_QUERY_MAP[key]] = { ...command.query[key] };
178
+ });
179
+ }
180
+ Object.keys(LEGACY_FIND_OPTIONS_MAP).forEach((key) => {
181
+ const legacyKey = key;
182
+ if (command[legacyKey] != null) result[LEGACY_FIND_OPTIONS_MAP[legacyKey]] = command[legacyKey];
183
+ });
184
+ return result;
185
+ }
186
+ let clonedQuery = {};
187
+ const clonedCommand = { ...command };
188
+ if (command.query) {
189
+ clonedQuery = { ...command.query };
190
+ clonedCommand.query = clonedQuery;
191
+ }
192
+ return command.query ? clonedQuery : clonedCommand;
193
+ }
194
+ function extractReply(reply) {
195
+ if (!reply) return reply;
196
+ return reply.result ? reply.result : reply;
197
+ }
198
+ function extractConnectionDetails(connection) {
199
+ let connectionId;
200
+ if ("id" in connection) connectionId = connection.id;
201
+ return {
202
+ address: connection.address,
203
+ serviceId: connection.serviceId,
204
+ connectionId
205
+ };
206
+ }
207
+ }));
208
+
209
+ //#endregion
210
+ export default require_command_monitoring_events();
211
+
212
+ export { require_command_monitoring_events };
213
+ //# sourceMappingURL=command_monitoring_events.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command_monitoring_events.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SENSITIVE_COMMANDS = exports.CommandFailedEvent = exports.CommandSucceededEvent = exports.CommandStartedEvent = void 0;\nconst constants_1 = require(\"../constants\");\nconst utils_1 = require(\"../utils\");\nconst commands_1 = require(\"./commands\");\n/**\n * An event indicating the start of a given command\n * @public\n * @category Event\n */\nclass CommandStartedEvent {\n /**\n * Create a started event\n *\n * @internal\n * @param pool - the pool that originated the command\n * @param command - the command\n */\n constructor(connection, command, serverConnectionId) {\n /** @internal */\n this.name = constants_1.COMMAND_STARTED;\n const cmd = extractCommand(command);\n const commandName = extractCommandName(cmd);\n const { address, connectionId, serviceId } = extractConnectionDetails(connection);\n // TODO: remove in major revision, this is not spec behavior\n if (exports.SENSITIVE_COMMANDS.has(commandName)) {\n this.commandObj = {};\n this.commandObj[commandName] = true;\n }\n this.address = address;\n this.connectionId = connectionId;\n this.serviceId = serviceId;\n this.requestId = command.requestId;\n this.databaseName = command.databaseName;\n this.commandName = commandName;\n this.command = maybeRedact(commandName, cmd, cmd);\n this.serverConnectionId = serverConnectionId;\n }\n /* @internal */\n get hasServiceId() {\n return !!this.serviceId;\n }\n}\nexports.CommandStartedEvent = CommandStartedEvent;\n/**\n * An event indicating the success of a given command\n * @public\n * @category Event\n */\nclass CommandSucceededEvent {\n /**\n * Create a succeeded event\n *\n * @internal\n * @param pool - the pool that originated the command\n * @param command - the command\n * @param reply - the reply for this command from the server\n * @param started - a high resolution tuple timestamp of when the command was first sent, to calculate duration\n */\n constructor(connection, command, reply, started, serverConnectionId) {\n /** @internal */\n this.name = constants_1.COMMAND_SUCCEEDED;\n const cmd = extractCommand(command);\n const commandName = extractCommandName(cmd);\n const { address, connectionId, serviceId } = extractConnectionDetails(connection);\n this.address = address;\n this.connectionId = connectionId;\n this.serviceId = serviceId;\n this.requestId = command.requestId;\n this.commandName = commandName;\n this.duration = (0, utils_1.calculateDurationInMs)(started);\n this.reply = maybeRedact(commandName, cmd, extractReply(reply));\n this.serverConnectionId = serverConnectionId;\n this.databaseName = command.databaseName;\n }\n /* @internal */\n get hasServiceId() {\n return !!this.serviceId;\n }\n}\nexports.CommandSucceededEvent = CommandSucceededEvent;\n/**\n * An event indicating the failure of a given command\n * @public\n * @category Event\n */\nclass CommandFailedEvent {\n /**\n * Create a failure event\n *\n * @internal\n * @param pool - the pool that originated the command\n * @param command - the command\n * @param error - the generated error or a server error response\n * @param started - a high resolution tuple timestamp of when the command was first sent, to calculate duration\n */\n constructor(connection, command, error, started, serverConnectionId) {\n /** @internal */\n this.name = constants_1.COMMAND_FAILED;\n const cmd = extractCommand(command);\n const commandName = extractCommandName(cmd);\n const { address, connectionId, serviceId } = extractConnectionDetails(connection);\n this.address = address;\n this.connectionId = connectionId;\n this.serviceId = serviceId;\n this.requestId = command.requestId;\n this.commandName = commandName;\n this.duration = (0, utils_1.calculateDurationInMs)(started);\n this.failure = maybeRedact(commandName, cmd, error);\n this.serverConnectionId = serverConnectionId;\n this.databaseName = command.databaseName;\n }\n /* @internal */\n get hasServiceId() {\n return !!this.serviceId;\n }\n}\nexports.CommandFailedEvent = CommandFailedEvent;\n/**\n * Commands that we want to redact because of the sensitive nature of their contents\n * @internal\n */\nexports.SENSITIVE_COMMANDS = new Set([\n 'authenticate',\n 'saslStart',\n 'saslContinue',\n 'getnonce',\n 'createUser',\n 'updateUser',\n 'copydbgetnonce',\n 'copydbsaslstart',\n 'copydb'\n]);\nconst HELLO_COMMANDS = new Set(['hello', constants_1.LEGACY_HELLO_COMMAND, constants_1.LEGACY_HELLO_COMMAND_CAMEL_CASE]);\n// helper methods\nconst extractCommandName = (commandDoc) => Object.keys(commandDoc)[0];\nconst collectionName = (command) => command.ns.split('.')[1];\nconst maybeRedact = (commandName, commandDoc, result) => exports.SENSITIVE_COMMANDS.has(commandName) ||\n (HELLO_COMMANDS.has(commandName) && commandDoc.speculativeAuthenticate)\n ? {}\n : result;\nconst LEGACY_FIND_QUERY_MAP = {\n $query: 'filter',\n $orderby: 'sort',\n $hint: 'hint',\n $comment: 'comment',\n $maxScan: 'maxScan',\n $max: 'max',\n $min: 'min',\n $returnKey: 'returnKey',\n $showDiskLoc: 'showRecordId',\n $maxTimeMS: 'maxTimeMS',\n $snapshot: 'snapshot'\n};\nconst LEGACY_FIND_OPTIONS_MAP = {\n numberToSkip: 'skip',\n numberToReturn: 'batchSize',\n returnFieldSelector: 'projection'\n};\n/** Extract the actual command from the query, possibly up-converting if it's a legacy format */\nfunction extractCommand(command) {\n if (command instanceof commands_1.OpMsgRequest) {\n const cmd = { ...command.command };\n // For OP_MSG with payload type 1 we need to pull the documents\n // array out of the document sequence for monitoring.\n if (cmd.ops instanceof commands_1.DocumentSequence) {\n cmd.ops = cmd.ops.documents;\n }\n if (cmd.nsInfo instanceof commands_1.DocumentSequence) {\n cmd.nsInfo = cmd.nsInfo.documents;\n }\n return cmd;\n }\n if (command.query?.$query) {\n let result;\n if (command.ns === 'admin.$cmd') {\n // up-convert legacy command\n result = Object.assign({}, command.query.$query);\n }\n else {\n // up-convert legacy find command\n result = { find: collectionName(command) };\n Object.keys(LEGACY_FIND_QUERY_MAP).forEach(key => {\n if (command.query[key] != null) {\n result[LEGACY_FIND_QUERY_MAP[key]] = { ...command.query[key] };\n }\n });\n }\n Object.keys(LEGACY_FIND_OPTIONS_MAP).forEach(key => {\n const legacyKey = key;\n if (command[legacyKey] != null) {\n result[LEGACY_FIND_OPTIONS_MAP[legacyKey]] = command[legacyKey];\n }\n });\n return result;\n }\n let clonedQuery = {};\n const clonedCommand = { ...command };\n if (command.query) {\n clonedQuery = { ...command.query };\n clonedCommand.query = clonedQuery;\n }\n return command.query ? clonedQuery : clonedCommand;\n}\nfunction extractReply(reply) {\n if (!reply) {\n return reply;\n }\n return reply.result ? reply.result : reply;\n}\nfunction extractConnectionDetails(connection) {\n let connectionId;\n if ('id' in connection) {\n connectionId = connection.id;\n }\n return {\n address: connection.address,\n serviceId: connection.serviceId,\n connectionId\n };\n}\n//# sourceMappingURL=command_monitoring_events.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,qBAAqB,QAAQ,qBAAqB,QAAQ,wBAAwB,QAAQ,sBAAsB,KAAK;CAC7H,MAAM;CAC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