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,411 @@
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_constants } from "./wire_protocol/constants.mjs";
5
+ import { require_compression } from "./wire_protocol/compression.mjs";
6
+
7
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.js
8
+ var require_commands = /* @__PURE__ */ __commonJSMin(((exports) => {
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.OpCompressedRequest = exports.OpMsgResponse = exports.OpMsgRequest = exports.DocumentSequence = exports.OpReply = exports.OpQueryRequest = void 0;
11
+ const BSON = require_bson();
12
+ const error_1 = require_error();
13
+ const compression_1 = require_compression();
14
+ const constants_1 = require_constants();
15
+ let _requestId = 0;
16
+ const OPTS_TAILABLE_CURSOR = 2;
17
+ const OPTS_SECONDARY = 4;
18
+ const OPTS_OPLOG_REPLAY = 8;
19
+ const OPTS_NO_CURSOR_TIMEOUT = 16;
20
+ const OPTS_AWAIT_DATA = 32;
21
+ const OPTS_EXHAUST = 64;
22
+ const OPTS_PARTIAL = 128;
23
+ const CURSOR_NOT_FOUND = 1;
24
+ const QUERY_FAILURE = 2;
25
+ const SHARD_CONFIG_STALE = 4;
26
+ const AWAIT_CAPABLE = 8;
27
+ const encodeUTF8Into = BSON.BSON.onDemand.ByteUtils.encodeUTF8Into;
28
+ /** @internal */
29
+ var OpQueryRequest = class OpQueryRequest {
30
+ constructor(databaseName, query, options) {
31
+ /** moreToCome is an OP_MSG only concept */
32
+ this.moreToCome = false;
33
+ const ns = `${databaseName}.$cmd`;
34
+ if (typeof databaseName !== "string") throw new error_1.MongoRuntimeError("Database name must be a string for a query");
35
+ if (query == null) throw new error_1.MongoRuntimeError("A query document must be specified for query");
36
+ if (ns.indexOf("\0") !== -1) throw new error_1.MongoRuntimeError("Namespace cannot contain a null character");
37
+ this.databaseName = databaseName;
38
+ this.query = query;
39
+ this.ns = ns;
40
+ this.numberToSkip = options.numberToSkip || 0;
41
+ this.numberToReturn = options.numberToReturn || 0;
42
+ this.returnFieldSelector = options.returnFieldSelector || void 0;
43
+ this.requestId = options.requestId ?? OpQueryRequest.getRequestId();
44
+ this.pre32Limit = options.pre32Limit;
45
+ this.serializeFunctions = typeof options.serializeFunctions === "boolean" ? options.serializeFunctions : false;
46
+ this.ignoreUndefined = typeof options.ignoreUndefined === "boolean" ? options.ignoreUndefined : false;
47
+ this.maxBsonSize = options.maxBsonSize || 1024 * 1024 * 16;
48
+ this.checkKeys = typeof options.checkKeys === "boolean" ? options.checkKeys : false;
49
+ this.batchSize = this.numberToReturn;
50
+ this.tailable = false;
51
+ this.secondaryOk = typeof options.secondaryOk === "boolean" ? options.secondaryOk : false;
52
+ this.oplogReplay = false;
53
+ this.noCursorTimeout = false;
54
+ this.awaitData = false;
55
+ this.exhaust = false;
56
+ this.partial = false;
57
+ }
58
+ /** Assign next request Id. */
59
+ incRequestId() {
60
+ this.requestId = _requestId++;
61
+ }
62
+ /** Peek next request Id. */
63
+ nextRequestId() {
64
+ return _requestId + 1;
65
+ }
66
+ /** Increment then return next request Id. */
67
+ static getRequestId() {
68
+ return ++_requestId;
69
+ }
70
+ toBin() {
71
+ const buffers = [];
72
+ let projection = null;
73
+ let flags = 0;
74
+ if (this.tailable) flags |= OPTS_TAILABLE_CURSOR;
75
+ if (this.secondaryOk) flags |= OPTS_SECONDARY;
76
+ if (this.oplogReplay) flags |= OPTS_OPLOG_REPLAY;
77
+ if (this.noCursorTimeout) flags |= OPTS_NO_CURSOR_TIMEOUT;
78
+ if (this.awaitData) flags |= OPTS_AWAIT_DATA;
79
+ if (this.exhaust) flags |= OPTS_EXHAUST;
80
+ if (this.partial) flags |= OPTS_PARTIAL;
81
+ if (this.batchSize !== this.numberToReturn) this.numberToReturn = this.batchSize;
82
+ const header = Buffer.alloc(20 + Buffer.byteLength(this.ns) + 1 + 4 + 4);
83
+ buffers.push(header);
84
+ const query = BSON.serialize(this.query, {
85
+ checkKeys: this.checkKeys,
86
+ serializeFunctions: this.serializeFunctions,
87
+ ignoreUndefined: this.ignoreUndefined
88
+ });
89
+ buffers.push(query);
90
+ if (this.returnFieldSelector && Object.keys(this.returnFieldSelector).length > 0) {
91
+ projection = BSON.serialize(this.returnFieldSelector, {
92
+ checkKeys: this.checkKeys,
93
+ serializeFunctions: this.serializeFunctions,
94
+ ignoreUndefined: this.ignoreUndefined
95
+ });
96
+ buffers.push(projection);
97
+ }
98
+ const totalLength = header.length + query.length + (projection ? projection.length : 0);
99
+ let index = 4;
100
+ header[3] = totalLength >> 24 & 255;
101
+ header[2] = totalLength >> 16 & 255;
102
+ header[1] = totalLength >> 8 & 255;
103
+ header[0] = totalLength & 255;
104
+ header[index + 3] = this.requestId >> 24 & 255;
105
+ header[index + 2] = this.requestId >> 16 & 255;
106
+ header[index + 1] = this.requestId >> 8 & 255;
107
+ header[index] = this.requestId & 255;
108
+ index = index + 4;
109
+ header[index + 3] = 0;
110
+ header[index + 2] = 0;
111
+ header[index + 1] = 0;
112
+ header[index] = 0;
113
+ index = index + 4;
114
+ header[index + 3] = constants_1.OP_QUERY >> 24 & 255;
115
+ header[index + 2] = constants_1.OP_QUERY >> 16 & 255;
116
+ header[index + 1] = constants_1.OP_QUERY >> 8 & 255;
117
+ header[index] = constants_1.OP_QUERY & 255;
118
+ index = index + 4;
119
+ header[index + 3] = flags >> 24 & 255;
120
+ header[index + 2] = flags >> 16 & 255;
121
+ header[index + 1] = flags >> 8 & 255;
122
+ header[index] = flags & 255;
123
+ index = index + 4;
124
+ index = index + header.write(this.ns, index, "utf8") + 1;
125
+ header[index - 1] = 0;
126
+ header[index + 3] = this.numberToSkip >> 24 & 255;
127
+ header[index + 2] = this.numberToSkip >> 16 & 255;
128
+ header[index + 1] = this.numberToSkip >> 8 & 255;
129
+ header[index] = this.numberToSkip & 255;
130
+ index = index + 4;
131
+ header[index + 3] = this.numberToReturn >> 24 & 255;
132
+ header[index + 2] = this.numberToReturn >> 16 & 255;
133
+ header[index + 1] = this.numberToReturn >> 8 & 255;
134
+ header[index] = this.numberToReturn & 255;
135
+ index = index + 4;
136
+ return buffers;
137
+ }
138
+ };
139
+ exports.OpQueryRequest = OpQueryRequest;
140
+ /** @internal */
141
+ var OpReply = class {
142
+ constructor(message, msgHeader, msgBody, opts) {
143
+ this.index = 0;
144
+ this.sections = [];
145
+ /** moreToCome is an OP_MSG only concept */
146
+ this.moreToCome = false;
147
+ this.parsed = false;
148
+ this.raw = message;
149
+ this.data = msgBody;
150
+ this.opts = opts ?? {
151
+ useBigInt64: false,
152
+ promoteLongs: true,
153
+ promoteValues: true,
154
+ promoteBuffers: false,
155
+ bsonRegExp: false
156
+ };
157
+ this.length = msgHeader.length;
158
+ this.requestId = msgHeader.requestId;
159
+ this.responseTo = msgHeader.responseTo;
160
+ this.opCode = msgHeader.opCode;
161
+ this.fromCompressed = msgHeader.fromCompressed;
162
+ this.useBigInt64 = typeof this.opts.useBigInt64 === "boolean" ? this.opts.useBigInt64 : false;
163
+ this.promoteLongs = typeof this.opts.promoteLongs === "boolean" ? this.opts.promoteLongs : true;
164
+ this.promoteValues = typeof this.opts.promoteValues === "boolean" ? this.opts.promoteValues : true;
165
+ this.promoteBuffers = typeof this.opts.promoteBuffers === "boolean" ? this.opts.promoteBuffers : false;
166
+ this.bsonRegExp = typeof this.opts.bsonRegExp === "boolean" ? this.opts.bsonRegExp : false;
167
+ }
168
+ isParsed() {
169
+ return this.parsed;
170
+ }
171
+ parse() {
172
+ if (this.parsed) return this.sections[0];
173
+ this.index = 20;
174
+ this.responseFlags = this.data.readInt32LE(0);
175
+ this.cursorId = new BSON.Long(this.data.readInt32LE(4), this.data.readInt32LE(8));
176
+ this.startingFrom = this.data.readInt32LE(12);
177
+ this.numberReturned = this.data.readInt32LE(16);
178
+ if (this.numberReturned < 0 || this.numberReturned > 2 ** 32 - 1) throw new RangeError(`OP_REPLY numberReturned is an invalid array length ${this.numberReturned}`);
179
+ this.cursorNotFound = (this.responseFlags & CURSOR_NOT_FOUND) !== 0;
180
+ this.queryFailure = (this.responseFlags & QUERY_FAILURE) !== 0;
181
+ this.shardConfigStale = (this.responseFlags & SHARD_CONFIG_STALE) !== 0;
182
+ this.awaitCapable = (this.responseFlags & AWAIT_CAPABLE) !== 0;
183
+ for (let i = 0; i < this.numberReturned; i++) {
184
+ const bsonSize = this.data[this.index] | this.data[this.index + 1] << 8 | this.data[this.index + 2] << 16 | this.data[this.index + 3] << 24;
185
+ const section = this.data.subarray(this.index, this.index + bsonSize);
186
+ this.sections.push(section);
187
+ this.index = this.index + bsonSize;
188
+ }
189
+ this.parsed = true;
190
+ return this.sections[0];
191
+ }
192
+ };
193
+ exports.OpReply = OpReply;
194
+ const OPTS_CHECKSUM_PRESENT = 1;
195
+ const OPTS_MORE_TO_COME = 2;
196
+ const OPTS_EXHAUST_ALLOWED = 65536;
197
+ /** @internal */
198
+ var DocumentSequence = class {
199
+ /**
200
+ * Create a new document sequence for the provided field.
201
+ * @param field - The field it will replace.
202
+ */
203
+ constructor(field, documents) {
204
+ this.field = field;
205
+ this.documents = [];
206
+ this.chunks = [];
207
+ this.serializedDocumentsLength = 0;
208
+ const buffer = Buffer.allocUnsafe(5 + this.field.length + 1);
209
+ buffer[0] = 1;
210
+ encodeUTF8Into(buffer, `${this.field}\0`, 5);
211
+ this.chunks.push(buffer);
212
+ this.header = buffer;
213
+ if (documents) for (const doc of documents) this.push(doc, BSON.serialize(doc));
214
+ }
215
+ /**
216
+ * Push a document to the document sequence. Will serialize the document
217
+ * as well and return the current serialized length of all documents.
218
+ * @param document - The document to add.
219
+ * @param buffer - The serialized document in raw BSON.
220
+ * @returns The new total document sequence length.
221
+ */
222
+ push(document, buffer) {
223
+ this.serializedDocumentsLength += buffer.length;
224
+ this.documents.push(document);
225
+ this.chunks.push(buffer);
226
+ this.header?.writeInt32LE(4 + this.field.length + 1 + this.serializedDocumentsLength, 1);
227
+ return this.serializedDocumentsLength + this.header.length;
228
+ }
229
+ /**
230
+ * Get the fully serialized bytes for the document sequence section.
231
+ * @returns The section bytes.
232
+ */
233
+ toBin() {
234
+ return Buffer.concat(this.chunks);
235
+ }
236
+ };
237
+ exports.DocumentSequence = DocumentSequence;
238
+ /** @internal */
239
+ var OpMsgRequest = class OpMsgRequest {
240
+ constructor(databaseName, command, options) {
241
+ if (command == null) throw new error_1.MongoInvalidArgumentError("Query document must be specified for query");
242
+ this.databaseName = databaseName;
243
+ this.command = command;
244
+ this.command.$db = databaseName;
245
+ this.options = options ?? {};
246
+ this.requestId = options.requestId ? options.requestId : OpMsgRequest.getRequestId();
247
+ this.serializeFunctions = typeof options.serializeFunctions === "boolean" ? options.serializeFunctions : false;
248
+ this.ignoreUndefined = typeof options.ignoreUndefined === "boolean" ? options.ignoreUndefined : false;
249
+ this.checkKeys = typeof options.checkKeys === "boolean" ? options.checkKeys : false;
250
+ this.maxBsonSize = options.maxBsonSize || 1024 * 1024 * 16;
251
+ this.checksumPresent = false;
252
+ this.moreToCome = options.moreToCome ?? command.writeConcern?.w === 0;
253
+ this.exhaustAllowed = typeof options.exhaustAllowed === "boolean" ? options.exhaustAllowed : false;
254
+ }
255
+ toBin() {
256
+ const buffers = [];
257
+ let flags = 0;
258
+ if (this.checksumPresent) flags |= OPTS_CHECKSUM_PRESENT;
259
+ if (this.moreToCome) flags |= OPTS_MORE_TO_COME;
260
+ if (this.exhaustAllowed) flags |= OPTS_EXHAUST_ALLOWED;
261
+ const header = Buffer.alloc(20);
262
+ buffers.push(header);
263
+ let totalLength = header.length;
264
+ const command = this.command;
265
+ totalLength += this.makeSections(buffers, command);
266
+ header.writeInt32LE(totalLength, 0);
267
+ header.writeInt32LE(this.requestId, 4);
268
+ header.writeInt32LE(0, 8);
269
+ header.writeInt32LE(constants_1.OP_MSG, 12);
270
+ header.writeUInt32LE(flags, 16);
271
+ return buffers;
272
+ }
273
+ /**
274
+ * Add the sections to the OP_MSG request's buffers and returns the length.
275
+ */
276
+ makeSections(buffers, document) {
277
+ const sequencesBuffer = this.extractDocumentSequences(document);
278
+ const payloadTypeBuffer = Buffer.allocUnsafe(1);
279
+ payloadTypeBuffer[0] = 0;
280
+ const documentBuffer = this.serializeBson(document);
281
+ buffers.push(payloadTypeBuffer);
282
+ buffers.push(documentBuffer);
283
+ buffers.push(sequencesBuffer);
284
+ return payloadTypeBuffer.length + documentBuffer.length + sequencesBuffer.length;
285
+ }
286
+ /**
287
+ * Extracts the document sequences from the command document and returns
288
+ * a buffer to be added as multiple sections after the initial type 0
289
+ * section in the message.
290
+ */
291
+ extractDocumentSequences(document) {
292
+ const chunks = [];
293
+ for (const [key, value] of Object.entries(document)) if (value instanceof DocumentSequence) {
294
+ chunks.push(value.toBin());
295
+ delete document[key];
296
+ }
297
+ if (chunks.length > 0) return Buffer.concat(chunks);
298
+ return Buffer.alloc(0);
299
+ }
300
+ serializeBson(document) {
301
+ return BSON.serialize(document, {
302
+ checkKeys: this.checkKeys,
303
+ serializeFunctions: this.serializeFunctions,
304
+ ignoreUndefined: this.ignoreUndefined
305
+ });
306
+ }
307
+ static getRequestId() {
308
+ _requestId = _requestId + 1 & 2147483647;
309
+ return _requestId;
310
+ }
311
+ };
312
+ exports.OpMsgRequest = OpMsgRequest;
313
+ /** @internal */
314
+ var OpMsgResponse = class {
315
+ constructor(message, msgHeader, msgBody, opts) {
316
+ this.index = 0;
317
+ this.sections = [];
318
+ this.parsed = false;
319
+ this.raw = message;
320
+ this.data = msgBody;
321
+ this.opts = opts ?? {
322
+ useBigInt64: false,
323
+ promoteLongs: true,
324
+ promoteValues: true,
325
+ promoteBuffers: false,
326
+ bsonRegExp: false
327
+ };
328
+ this.length = msgHeader.length;
329
+ this.requestId = msgHeader.requestId;
330
+ this.responseTo = msgHeader.responseTo;
331
+ this.opCode = msgHeader.opCode;
332
+ this.fromCompressed = msgHeader.fromCompressed;
333
+ this.responseFlags = msgBody.readInt32LE(0);
334
+ this.checksumPresent = (this.responseFlags & OPTS_CHECKSUM_PRESENT) !== 0;
335
+ this.moreToCome = (this.responseFlags & OPTS_MORE_TO_COME) !== 0;
336
+ this.exhaustAllowed = (this.responseFlags & OPTS_EXHAUST_ALLOWED) !== 0;
337
+ this.useBigInt64 = typeof this.opts.useBigInt64 === "boolean" ? this.opts.useBigInt64 : false;
338
+ this.promoteLongs = typeof this.opts.promoteLongs === "boolean" ? this.opts.promoteLongs : true;
339
+ this.promoteValues = typeof this.opts.promoteValues === "boolean" ? this.opts.promoteValues : true;
340
+ this.promoteBuffers = typeof this.opts.promoteBuffers === "boolean" ? this.opts.promoteBuffers : false;
341
+ this.bsonRegExp = typeof this.opts.bsonRegExp === "boolean" ? this.opts.bsonRegExp : false;
342
+ }
343
+ isParsed() {
344
+ return this.parsed;
345
+ }
346
+ parse() {
347
+ if (this.parsed) return this.sections[0];
348
+ this.index = 4;
349
+ while (this.index < this.data.length) {
350
+ const payloadType = this.data.readUInt8(this.index++);
351
+ if (payloadType === 0) {
352
+ const bsonSize = this.data.readUInt32LE(this.index);
353
+ const bin = this.data.subarray(this.index, this.index + bsonSize);
354
+ this.sections.push(bin);
355
+ this.index += bsonSize;
356
+ } else if (payloadType === 1) throw new error_1.MongoRuntimeError("OP_MSG Payload Type 1 detected unsupported protocol");
357
+ }
358
+ this.parsed = true;
359
+ return this.sections[0];
360
+ }
361
+ };
362
+ exports.OpMsgResponse = OpMsgResponse;
363
+ const MESSAGE_HEADER_SIZE = 16;
364
+ const COMPRESSION_DETAILS_SIZE = 9;
365
+ /**
366
+ * @internal
367
+ *
368
+ * An OP_COMPRESSED request wraps either an OP_QUERY or OP_MSG message.
369
+ */
370
+ var OpCompressedRequest = class {
371
+ constructor(command, options) {
372
+ this.command = command;
373
+ this.options = {
374
+ zlibCompressionLevel: options.zlibCompressionLevel,
375
+ agreedCompressor: options.agreedCompressor
376
+ };
377
+ }
378
+ static canCompress(command) {
379
+ const commandDoc = command instanceof OpMsgRequest ? command.command : command.query;
380
+ const commandName = Object.keys(commandDoc)[0];
381
+ return !compression_1.uncompressibleCommands.has(commandName);
382
+ }
383
+ async toBin() {
384
+ const concatenatedOriginalCommandBuffer = Buffer.concat(this.command.toBin());
385
+ const messageToBeCompressed = concatenatedOriginalCommandBuffer.slice(MESSAGE_HEADER_SIZE);
386
+ const originalCommandOpCode = concatenatedOriginalCommandBuffer.readInt32LE(12);
387
+ const compressedMessage = await (0, compression_1.compress)(this.options, messageToBeCompressed);
388
+ const msgHeader = Buffer.alloc(MESSAGE_HEADER_SIZE);
389
+ msgHeader.writeInt32LE(MESSAGE_HEADER_SIZE + COMPRESSION_DETAILS_SIZE + compressedMessage.length, 0);
390
+ msgHeader.writeInt32LE(this.command.requestId, 4);
391
+ msgHeader.writeInt32LE(0, 8);
392
+ msgHeader.writeInt32LE(constants_1.OP_COMPRESSED, 12);
393
+ const compressionDetails = Buffer.alloc(COMPRESSION_DETAILS_SIZE);
394
+ compressionDetails.writeInt32LE(originalCommandOpCode, 0);
395
+ compressionDetails.writeInt32LE(messageToBeCompressed.length, 4);
396
+ compressionDetails.writeUInt8(compression_1.Compressor[this.options.agreedCompressor], 8);
397
+ return [
398
+ msgHeader,
399
+ compressionDetails,
400
+ compressedMessage
401
+ ];
402
+ }
403
+ };
404
+ exports.OpCompressedRequest = OpCompressedRequest;
405
+ }));
406
+
407
+ //#endregion
408
+ export default require_commands();
409
+
410
+ export { require_commands };
411
+ //# sourceMappingURL=commands.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.OpCompressedRequest = exports.OpMsgResponse = exports.OpMsgRequest = exports.DocumentSequence = exports.OpReply = exports.OpQueryRequest = void 0;\nconst BSON = require(\"../bson\");\nconst error_1 = require(\"../error\");\nconst compression_1 = require(\"./wire_protocol/compression\");\nconst constants_1 = require(\"./wire_protocol/constants\");\n// Incrementing request id\nlet _requestId = 0;\n// Query flags\nconst OPTS_TAILABLE_CURSOR = 2;\nconst OPTS_SECONDARY = 4;\nconst OPTS_OPLOG_REPLAY = 8;\nconst OPTS_NO_CURSOR_TIMEOUT = 16;\nconst OPTS_AWAIT_DATA = 32;\nconst OPTS_EXHAUST = 64;\nconst OPTS_PARTIAL = 128;\n// Response flags\nconst CURSOR_NOT_FOUND = 1;\nconst QUERY_FAILURE = 2;\nconst SHARD_CONFIG_STALE = 4;\nconst AWAIT_CAPABLE = 8;\nconst encodeUTF8Into = BSON.BSON.onDemand.ByteUtils.encodeUTF8Into;\n/** @internal */\nclass OpQueryRequest {\n constructor(databaseName, query, options) {\n /** moreToCome is an OP_MSG only concept */\n this.moreToCome = false;\n // Basic options needed to be passed in\n // TODO(NODE-3483): Replace with MongoCommandError\n const ns = `${databaseName}.$cmd`;\n if (typeof databaseName !== 'string') {\n throw new error_1.MongoRuntimeError('Database name must be a string for a query');\n }\n // TODO(NODE-3483): Replace with MongoCommandError\n if (query == null)\n throw new error_1.MongoRuntimeError('A query document must be specified for query');\n // Validate that we are not passing 0x00 in the collection name\n if (ns.indexOf('\\x00') !== -1) {\n // TODO(NODE-3483): Use MongoNamespace static method\n throw new error_1.MongoRuntimeError('Namespace cannot contain a null character');\n }\n // Basic optionsa\n this.databaseName = databaseName;\n this.query = query;\n this.ns = ns;\n // Additional options\n this.numberToSkip = options.numberToSkip || 0;\n this.numberToReturn = options.numberToReturn || 0;\n this.returnFieldSelector = options.returnFieldSelector || undefined;\n this.requestId = options.requestId ?? OpQueryRequest.getRequestId();\n // special case for pre-3.2 find commands, delete ASAP\n this.pre32Limit = options.pre32Limit;\n // Serialization option\n this.serializeFunctions =\n typeof options.serializeFunctions === 'boolean' ? options.serializeFunctions : false;\n this.ignoreUndefined =\n typeof options.ignoreUndefined === 'boolean' ? options.ignoreUndefined : false;\n this.maxBsonSize = options.maxBsonSize || 1024 * 1024 * 16;\n this.checkKeys = typeof options.checkKeys === 'boolean' ? options.checkKeys : false;\n this.batchSize = this.numberToReturn;\n // Flags\n this.tailable = false;\n this.secondaryOk = typeof options.secondaryOk === 'boolean' ? options.secondaryOk : false;\n this.oplogReplay = false;\n this.noCursorTimeout = false;\n this.awaitData = false;\n this.exhaust = false;\n this.partial = false;\n }\n /** Assign next request Id. */\n incRequestId() {\n this.requestId = _requestId++;\n }\n /** Peek next request Id. */\n nextRequestId() {\n return _requestId + 1;\n }\n /** Increment then return next request Id. */\n static getRequestId() {\n return ++_requestId;\n }\n // Uses a single allocated buffer for the process, avoiding multiple memory allocations\n toBin() {\n const buffers = [];\n let projection = null;\n // Set up the flags\n let flags = 0;\n if (this.tailable) {\n flags |= OPTS_TAILABLE_CURSOR;\n }\n if (this.secondaryOk) {\n flags |= OPTS_SECONDARY;\n }\n if (this.oplogReplay) {\n flags |= OPTS_OPLOG_REPLAY;\n }\n if (this.noCursorTimeout) {\n flags |= OPTS_NO_CURSOR_TIMEOUT;\n }\n if (this.awaitData) {\n flags |= OPTS_AWAIT_DATA;\n }\n if (this.exhaust) {\n flags |= OPTS_EXHAUST;\n }\n if (this.partial) {\n flags |= OPTS_PARTIAL;\n }\n // If batchSize is different to this.numberToReturn\n if (this.batchSize !== this.numberToReturn)\n this.numberToReturn = this.batchSize;\n // Allocate write protocol header buffer\n const header = Buffer.alloc(4 * 4 + // Header\n 4 + // Flags\n Buffer.byteLength(this.ns) +\n 1 + // namespace\n 4 + // numberToSkip\n 4 // numberToReturn\n );\n // Add header to buffers\n buffers.push(header);\n // Serialize the query\n const query = BSON.serialize(this.query, {\n checkKeys: this.checkKeys,\n serializeFunctions: this.serializeFunctions,\n ignoreUndefined: this.ignoreUndefined\n });\n // Add query document\n buffers.push(query);\n if (this.returnFieldSelector && Object.keys(this.returnFieldSelector).length > 0) {\n // Serialize the projection document\n projection = BSON.serialize(this.returnFieldSelector, {\n checkKeys: this.checkKeys,\n serializeFunctions: this.serializeFunctions,\n ignoreUndefined: this.ignoreUndefined\n });\n // Add projection document\n buffers.push(projection);\n }\n // Total message size\n const totalLength = header.length + query.length + (projection ? projection.length : 0);\n // Set up the index\n let index = 4;\n // Write total document length\n header[3] = (totalLength >> 24) & 0xff;\n header[2] = (totalLength >> 16) & 0xff;\n header[1] = (totalLength >> 8) & 0xff;\n header[0] = totalLength & 0xff;\n // Write header information requestId\n header[index + 3] = (this.requestId >> 24) & 0xff;\n header[index + 2] = (this.requestId >> 16) & 0xff;\n header[index + 1] = (this.requestId >> 8) & 0xff;\n header[index] = this.requestId & 0xff;\n index = index + 4;\n // Write header information responseTo\n header[index + 3] = (0 >> 24) & 0xff;\n header[index + 2] = (0 >> 16) & 0xff;\n header[index + 1] = (0 >> 8) & 0xff;\n header[index] = 0 & 0xff;\n index = index + 4;\n // Write header information OP_QUERY\n header[index + 3] = (constants_1.OP_QUERY >> 24) & 0xff;\n header[index + 2] = (constants_1.OP_QUERY >> 16) & 0xff;\n header[index + 1] = (constants_1.OP_QUERY >> 8) & 0xff;\n header[index] = constants_1.OP_QUERY & 0xff;\n index = index + 4;\n // Write header information flags\n header[index + 3] = (flags >> 24) & 0xff;\n header[index + 2] = (flags >> 16) & 0xff;\n header[index + 1] = (flags >> 8) & 0xff;\n header[index] = flags & 0xff;\n index = index + 4;\n // Write collection name\n index = index + header.write(this.ns, index, 'utf8') + 1;\n header[index - 1] = 0;\n // Write header information flags numberToSkip\n header[index + 3] = (this.numberToSkip >> 24) & 0xff;\n header[index + 2] = (this.numberToSkip >> 16) & 0xff;\n header[index + 1] = (this.numberToSkip >> 8) & 0xff;\n header[index] = this.numberToSkip & 0xff;\n index = index + 4;\n // Write header information flags numberToReturn\n header[index + 3] = (this.numberToReturn >> 24) & 0xff;\n header[index + 2] = (this.numberToReturn >> 16) & 0xff;\n header[index + 1] = (this.numberToReturn >> 8) & 0xff;\n header[index] = this.numberToReturn & 0xff;\n index = index + 4;\n // Return the buffers\n return buffers;\n }\n}\nexports.OpQueryRequest = OpQueryRequest;\n/** @internal */\nclass OpReply {\n constructor(message, msgHeader, msgBody, opts) {\n this.index = 0;\n this.sections = [];\n /** moreToCome is an OP_MSG only concept */\n this.moreToCome = false;\n this.parsed = false;\n this.raw = message;\n this.data = msgBody;\n this.opts = opts ?? {\n useBigInt64: false,\n promoteLongs: true,\n promoteValues: true,\n promoteBuffers: false,\n bsonRegExp: false\n };\n // Read the message header\n this.length = msgHeader.length;\n this.requestId = msgHeader.requestId;\n this.responseTo = msgHeader.responseTo;\n this.opCode = msgHeader.opCode;\n this.fromCompressed = msgHeader.fromCompressed;\n // Flag values\n this.useBigInt64 = typeof this.opts.useBigInt64 === 'boolean' ? this.opts.useBigInt64 : false;\n this.promoteLongs = typeof this.opts.promoteLongs === 'boolean' ? this.opts.promoteLongs : true;\n this.promoteValues =\n typeof this.opts.promoteValues === 'boolean' ? this.opts.promoteValues : true;\n this.promoteBuffers =\n typeof this.opts.promoteBuffers === 'boolean' ? this.opts.promoteBuffers : false;\n this.bsonRegExp = typeof this.opts.bsonRegExp === 'boolean' ? this.opts.bsonRegExp : false;\n }\n isParsed() {\n return this.parsed;\n }\n parse() {\n // Don't parse again if not needed\n if (this.parsed)\n return this.sections[0];\n // Position within OP_REPLY at which documents start\n // (See https://www.mongodb.com/docs/manual/reference/mongodb-wire-protocol/#wire-op-reply)\n this.index = 20;\n // Read the message body\n this.responseFlags = this.data.readInt32LE(0);\n this.cursorId = new BSON.Long(this.data.readInt32LE(4), this.data.readInt32LE(8));\n this.startingFrom = this.data.readInt32LE(12);\n this.numberReturned = this.data.readInt32LE(16);\n if (this.numberReturned < 0 || this.numberReturned > 2 ** 32 - 1) {\n throw new RangeError(`OP_REPLY numberReturned is an invalid array length ${this.numberReturned}`);\n }\n this.cursorNotFound = (this.responseFlags & CURSOR_NOT_FOUND) !== 0;\n this.queryFailure = (this.responseFlags & QUERY_FAILURE) !== 0;\n this.shardConfigStale = (this.responseFlags & SHARD_CONFIG_STALE) !== 0;\n this.awaitCapable = (this.responseFlags & AWAIT_CAPABLE) !== 0;\n // Parse Body\n for (let i = 0; i < this.numberReturned; i++) {\n const bsonSize = this.data[this.index] |\n (this.data[this.index + 1] << 8) |\n (this.data[this.index + 2] << 16) |\n (this.data[this.index + 3] << 24);\n const section = this.data.subarray(this.index, this.index + bsonSize);\n this.sections.push(section);\n // Adjust the index\n this.index = this.index + bsonSize;\n }\n // Set parsed\n this.parsed = true;\n return this.sections[0];\n }\n}\nexports.OpReply = OpReply;\n// Msg Flags\nconst OPTS_CHECKSUM_PRESENT = 1;\nconst OPTS_MORE_TO_COME = 2;\nconst OPTS_EXHAUST_ALLOWED = 1 << 16;\n/** @internal */\nclass DocumentSequence {\n /**\n * Create a new document sequence for the provided field.\n * @param field - The field it will replace.\n */\n constructor(field, documents) {\n this.field = field;\n this.documents = [];\n this.chunks = [];\n this.serializedDocumentsLength = 0;\n // Document sequences starts with type 1 at the first byte.\n // Field strings must always be UTF-8.\n const buffer = Buffer.allocUnsafe(1 + 4 + this.field.length + 1);\n buffer[0] = 1;\n // Third part is the field name at offset 5 with trailing null byte.\n encodeUTF8Into(buffer, `${this.field}\\0`, 5);\n this.chunks.push(buffer);\n this.header = buffer;\n if (documents) {\n for (const doc of documents) {\n this.push(doc, BSON.serialize(doc));\n }\n }\n }\n /**\n * Push a document to the document sequence. Will serialize the document\n * as well and return the current serialized length of all documents.\n * @param document - The document to add.\n * @param buffer - The serialized document in raw BSON.\n * @returns The new total document sequence length.\n */\n push(document, buffer) {\n this.serializedDocumentsLength += buffer.length;\n // Push the document.\n this.documents.push(document);\n // Push the document raw bson.\n this.chunks.push(buffer);\n // Write the new length.\n this.header?.writeInt32LE(4 + this.field.length + 1 + this.serializedDocumentsLength, 1);\n return this.serializedDocumentsLength + this.header.length;\n }\n /**\n * Get the fully serialized bytes for the document sequence section.\n * @returns The section bytes.\n */\n toBin() {\n return Buffer.concat(this.chunks);\n }\n}\nexports.DocumentSequence = DocumentSequence;\n/** @internal */\nclass OpMsgRequest {\n constructor(databaseName, command, options) {\n // Basic options needed to be passed in\n if (command == null)\n throw new error_1.MongoInvalidArgumentError('Query document must be specified for query');\n // Basic optionsa\n this.databaseName = databaseName;\n this.command = command;\n this.command.$db = databaseName;\n // Ensure empty options\n this.options = options ?? {};\n // Additional options\n this.requestId = options.requestId ? options.requestId : OpMsgRequest.getRequestId();\n // Serialization option\n this.serializeFunctions =\n typeof options.serializeFunctions === 'boolean' ? options.serializeFunctions : false;\n this.ignoreUndefined =\n typeof options.ignoreUndefined === 'boolean' ? options.ignoreUndefined : false;\n this.checkKeys = typeof options.checkKeys === 'boolean' ? options.checkKeys : false;\n this.maxBsonSize = options.maxBsonSize || 1024 * 1024 * 16;\n // flags\n this.checksumPresent = false;\n this.moreToCome = options.moreToCome ?? command.writeConcern?.w === 0;\n this.exhaustAllowed =\n typeof options.exhaustAllowed === 'boolean' ? options.exhaustAllowed : false;\n }\n toBin() {\n const buffers = [];\n let flags = 0;\n if (this.checksumPresent) {\n flags |= OPTS_CHECKSUM_PRESENT;\n }\n if (this.moreToCome) {\n flags |= OPTS_MORE_TO_COME;\n }\n if (this.exhaustAllowed) {\n flags |= OPTS_EXHAUST_ALLOWED;\n }\n const header = Buffer.alloc(4 * 4 + // Header\n 4 // Flags\n );\n buffers.push(header);\n let totalLength = header.length;\n const command = this.command;\n totalLength += this.makeSections(buffers, command);\n header.writeInt32LE(totalLength, 0); // messageLength\n header.writeInt32LE(this.requestId, 4); // requestID\n header.writeInt32LE(0, 8); // responseTo\n header.writeInt32LE(constants_1.OP_MSG, 12); // opCode\n header.writeUInt32LE(flags, 16); // flags\n return buffers;\n }\n /**\n * Add the sections to the OP_MSG request's buffers and returns the length.\n */\n makeSections(buffers, document) {\n const sequencesBuffer = this.extractDocumentSequences(document);\n const payloadTypeBuffer = Buffer.allocUnsafe(1);\n payloadTypeBuffer[0] = 0;\n const documentBuffer = this.serializeBson(document);\n // First section, type 0\n buffers.push(payloadTypeBuffer);\n buffers.push(documentBuffer);\n // Subsequent sections, type 1\n buffers.push(sequencesBuffer);\n return payloadTypeBuffer.length + documentBuffer.length + sequencesBuffer.length;\n }\n /**\n * Extracts the document sequences from the command document and returns\n * a buffer to be added as multiple sections after the initial type 0\n * section in the message.\n */\n extractDocumentSequences(document) {\n // Pull out any field in the command document that's value is a document sequence.\n const chunks = [];\n for (const [key, value] of Object.entries(document)) {\n if (value instanceof DocumentSequence) {\n chunks.push(value.toBin());\n // Why are we removing the field from the command? This is because it needs to be\n // removed in the OP_MSG request first section, and DocumentSequence is not a\n // BSON type and is specific to the MongoDB wire protocol so there's nothing\n // our BSON serializer can do about this. Since DocumentSequence is not exposed\n // in the public API and only used internally, we are never mutating an original\n // command provided by the user, just our own, and it's cheaper to delete from\n // our own command than copying it.\n delete document[key];\n }\n }\n if (chunks.length > 0) {\n return Buffer.concat(chunks);\n }\n // If we have no document sequences we return an empty buffer for nothing to add\n // to the payload.\n return Buffer.alloc(0);\n }\n serializeBson(document) {\n return BSON.serialize(document, {\n checkKeys: this.checkKeys,\n serializeFunctions: this.serializeFunctions,\n ignoreUndefined: this.ignoreUndefined\n });\n }\n static getRequestId() {\n _requestId = (_requestId + 1) & 0x7fffffff;\n return _requestId;\n }\n}\nexports.OpMsgRequest = OpMsgRequest;\n/** @internal */\nclass OpMsgResponse {\n constructor(message, msgHeader, msgBody, opts) {\n this.index = 0;\n this.sections = [];\n this.parsed = false;\n this.raw = message;\n this.data = msgBody;\n this.opts = opts ?? {\n useBigInt64: false,\n promoteLongs: true,\n promoteValues: true,\n promoteBuffers: false,\n bsonRegExp: false\n };\n // Read the message header\n this.length = msgHeader.length;\n this.requestId = msgHeader.requestId;\n this.responseTo = msgHeader.responseTo;\n this.opCode = msgHeader.opCode;\n this.fromCompressed = msgHeader.fromCompressed;\n // Read response flags\n this.responseFlags = msgBody.readInt32LE(0);\n this.checksumPresent = (this.responseFlags & OPTS_CHECKSUM_PRESENT) !== 0;\n this.moreToCome = (this.responseFlags & OPTS_MORE_TO_COME) !== 0;\n this.exhaustAllowed = (this.responseFlags & OPTS_EXHAUST_ALLOWED) !== 0;\n this.useBigInt64 = typeof this.opts.useBigInt64 === 'boolean' ? this.opts.useBigInt64 : false;\n this.promoteLongs = typeof this.opts.promoteLongs === 'boolean' ? this.opts.promoteLongs : true;\n this.promoteValues =\n typeof this.opts.promoteValues === 'boolean' ? this.opts.promoteValues : true;\n this.promoteBuffers =\n typeof this.opts.promoteBuffers === 'boolean' ? this.opts.promoteBuffers : false;\n this.bsonRegExp = typeof this.opts.bsonRegExp === 'boolean' ? this.opts.bsonRegExp : false;\n }\n isParsed() {\n return this.parsed;\n }\n parse() {\n // Don't parse again if not needed\n if (this.parsed)\n return this.sections[0];\n this.index = 4;\n while (this.index < this.data.length) {\n const payloadType = this.data.readUInt8(this.index++);\n if (payloadType === 0) {\n const bsonSize = this.data.readUInt32LE(this.index);\n const bin = this.data.subarray(this.index, this.index + bsonSize);\n this.sections.push(bin);\n this.index += bsonSize;\n }\n else if (payloadType === 1) {\n // It was decided that no driver makes use of payload type 1\n // TODO(NODE-3483): Replace with MongoDeprecationError\n throw new error_1.MongoRuntimeError('OP_MSG Payload Type 1 detected unsupported protocol');\n }\n }\n this.parsed = true;\n return this.sections[0];\n }\n}\nexports.OpMsgResponse = OpMsgResponse;\nconst MESSAGE_HEADER_SIZE = 16;\nconst COMPRESSION_DETAILS_SIZE = 9; // originalOpcode + uncompressedSize, compressorID\n/**\n * @internal\n *\n * An OP_COMPRESSED request wraps either an OP_QUERY or OP_MSG message.\n */\nclass OpCompressedRequest {\n constructor(command, options) {\n this.command = command;\n this.options = {\n zlibCompressionLevel: options.zlibCompressionLevel,\n agreedCompressor: options.agreedCompressor\n };\n }\n // Return whether a command contains an uncompressible command term\n // Will return true if command contains no uncompressible command terms\n static canCompress(command) {\n const commandDoc = command instanceof OpMsgRequest ? command.command : command.query;\n const commandName = Object.keys(commandDoc)[0];\n return !compression_1.uncompressibleCommands.has(commandName);\n }\n async toBin() {\n const concatenatedOriginalCommandBuffer = Buffer.concat(this.command.toBin());\n // otherwise, compress the message\n const messageToBeCompressed = concatenatedOriginalCommandBuffer.slice(MESSAGE_HEADER_SIZE);\n // Extract information needed for OP_COMPRESSED from the uncompressed message\n const originalCommandOpCode = concatenatedOriginalCommandBuffer.readInt32LE(12);\n // Compress the message body\n const compressedMessage = await (0, compression_1.compress)(this.options, messageToBeCompressed);\n // Create the msgHeader of OP_COMPRESSED\n const msgHeader = Buffer.alloc(MESSAGE_HEADER_SIZE);\n msgHeader.writeInt32LE(MESSAGE_HEADER_SIZE + COMPRESSION_DETAILS_SIZE + compressedMessage.length, 0); // messageLength\n msgHeader.writeInt32LE(this.command.requestId, 4); // requestID\n msgHeader.writeInt32LE(0, 8); // responseTo (zero)\n msgHeader.writeInt32LE(constants_1.OP_COMPRESSED, 12); // opCode\n // Create the compression details of OP_COMPRESSED\n const compressionDetails = Buffer.alloc(COMPRESSION_DETAILS_SIZE);\n compressionDetails.writeInt32LE(originalCommandOpCode, 0); // originalOpcode\n compressionDetails.writeInt32LE(messageToBeCompressed.length, 4); // Size of the uncompressed compressedMessage, excluding the MsgHeader\n compressionDetails.writeUInt8(compression_1.Compressor[this.options.agreedCompressor], 8); // compressorID\n return [msgHeader, compressionDetails, compressedMessage];\n }\n}\nexports.OpCompressedRequest = OpCompressedRequest;\n//# sourceMappingURL=commands.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,sBAAsB,QAAQ,gBAAgB,QAAQ,eAAe,QAAQ,mBAAmB,QAAQ,UAAU,QAAQ,iBAAiB,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