pecunia-root 0.1.1 → 0.1.3

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 (328) hide show
  1. package/dist/adapters/prisma-adapter/index.d.mts +1 -1
  2. package/dist/adapters/prisma-adapter/index.mjs +1 -1
  3. package/dist/adapters/prisma-adapter/index.mjs.map +1 -1
  4. package/dist/context/index.mjs +1 -1
  5. package/dist/context/index.mjs.map +1 -1
  6. package/dist/index.d.mts +1 -2
  7. package/dist/index.mjs +1 -2
  8. package/package.json +2 -16
  9. package/dist/_virtual/rolldown_runtime.mjs +0 -8
  10. package/dist/adapters/mongodb-adapter/index.d.mts +0 -35
  11. package/dist/adapters/mongodb-adapter/index.mjs +0 -314
  12. package/dist/adapters/mongodb-adapter/index.mjs.map +0 -1
  13. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs +0 -14
  14. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs.map +0 -1
  15. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs +0 -54
  16. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs.map +0 -1
  17. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs +0 -36
  18. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs.map +0 -1
  19. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs +0 -27
  20. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs.map +0 -1
  21. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs +0 -3728
  22. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs.map +0 -1
  23. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs +0 -137
  24. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs.map +0 -1
  25. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs +0 -211
  26. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs.map +0 -1
  27. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs +0 -95
  28. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs.map +0 -1
  29. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs +0 -158
  30. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs.map +0 -1
  31. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs +0 -195
  32. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs.map +0 -1
  33. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs +0 -710
  34. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs.map +0 -1
  35. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs +0 -53
  36. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs.map +0 -1
  37. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs +0 -63
  38. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs.map +0 -1
  39. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs +0 -368
  40. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs.map +0 -1
  41. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs +0 -234
  42. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs.map +0 -1
  43. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs +0 -545
  44. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs.map +0 -1
  45. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs +0 -83
  46. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs.map +0 -1
  47. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs +0 -146
  48. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs.map +0 -1
  49. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs +0 -58
  50. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs.map +0 -1
  51. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs +0 -30
  52. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs.map +0 -1
  53. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs +0 -135
  54. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs.map +0 -1
  55. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs +0 -25
  56. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs.map +0 -1
  57. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs +0 -47
  58. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs.map +0 -1
  59. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs +0 -362
  60. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs.map +0 -1
  61. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs +0 -58
  62. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs.map +0 -1
  63. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs +0 -123
  64. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs.map +0 -1
  65. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs +0 -128
  66. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs.map +0 -1
  67. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs +0 -133
  68. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs.map +0 -1
  69. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs +0 -126
  70. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs.map +0 -1
  71. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs +0 -79
  72. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs.map +0 -1
  73. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs +0 -65
  74. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs.map +0 -1
  75. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs +0 -127
  76. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs.map +0 -1
  77. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs +0 -47
  78. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs.map +0 -1
  79. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs +0 -44
  80. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs.map +0 -1
  81. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs +0 -101
  82. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs.map +0 -1
  83. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs +0 -33
  84. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs.map +0 -1
  85. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs +0 -53
  86. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs.map +0 -1
  87. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs +0 -29
  88. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs.map +0 -1
  89. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs +0 -83
  90. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs.map +0 -1
  91. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs +0 -36
  92. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs.map +0 -1
  93. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs +0 -32
  94. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs.map +0 -1
  95. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs +0 -206
  96. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs.map +0 -1
  97. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs +0 -45
  98. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs.map +0 -1
  99. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs +0 -213
  100. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs.map +0 -1
  101. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs +0 -411
  102. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs.map +0 -1
  103. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs +0 -288
  104. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs.map +0 -1
  105. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs +0 -423
  106. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs.map +0 -1
  107. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs +0 -483
  108. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs.map +0 -1
  109. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs +0 -207
  110. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs.map +0 -1
  111. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs +0 -116
  112. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs.map +0 -1
  113. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs +0 -183
  114. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs.map +0 -1
  115. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs +0 -55
  116. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs.map +0 -1
  117. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs +0 -60
  118. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs.map +0 -1
  119. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs +0 -139
  120. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs.map +0 -1
  121. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs +0 -28
  122. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs.map +0 -1
  123. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs +0 -117
  124. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs.map +0 -1
  125. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs +0 -182
  126. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs.map +0 -1
  127. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs +0 -304
  128. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs.map +0 -1
  129. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs +0 -34
  130. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs.map +0 -1
  131. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs +0 -739
  132. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs.map +0 -1
  133. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs +0 -805
  134. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs.map +0 -1
  135. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs +0 -174
  136. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs.map +0 -1
  137. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs +0 -726
  138. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs.map +0 -1
  139. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs +0 -172
  140. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs.map +0 -1
  141. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs +0 -103
  142. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs.map +0 -1
  143. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs +0 -66
  144. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs.map +0 -1
  145. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs +0 -41
  146. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs.map +0 -1
  147. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs +0 -365
  148. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs.map +0 -1
  149. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs +0 -50
  150. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs.map +0 -1
  151. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs +0 -48
  152. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs.map +0 -1
  153. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs +0 -23
  154. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs.map +0 -1
  155. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs +0 -106
  156. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs.map +0 -1
  157. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs +0 -428
  158. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs.map +0 -1
  159. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs +0 -124
  160. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs.map +0 -1
  161. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs +0 -95
  162. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs.map +0 -1
  163. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs +0 -1305
  164. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs.map +0 -1
  165. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs +0 -59
  166. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs.map +0 -1
  167. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs +0 -250
  168. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs.map +0 -1
  169. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs +0 -170
  170. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs.map +0 -1
  171. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs +0 -315
  172. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs.map +0 -1
  173. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs +0 -925
  174. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs.map +0 -1
  175. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs +0 -520
  176. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs.map +0 -1
  177. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs +0 -90
  178. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs.map +0 -1
  179. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs +0 -582
  180. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs.map +0 -1
  181. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs +0 -64
  182. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs.map +0 -1
  183. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs +0 -86
  184. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs.map +0 -1
  185. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs +0 -60
  186. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs.map +0 -1
  187. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs +0 -264
  188. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs.map +0 -1
  189. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs +0 -109
  190. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs.map +0 -1
  191. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs +0 -172
  192. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs.map +0 -1
  193. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs +0 -68
  194. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs.map +0 -1
  195. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs +0 -53
  196. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs.map +0 -1
  197. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs +0 -123
  198. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs.map +0 -1
  199. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs +0 -119
  200. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs.map +0 -1
  201. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs +0 -65
  202. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs.map +0 -1
  203. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs +0 -97
  204. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs.map +0 -1
  205. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs +0 -47
  206. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs.map +0 -1
  207. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs +0 -188
  208. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs.map +0 -1
  209. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs +0 -103
  210. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs.map +0 -1
  211. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs +0 -136
  212. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs.map +0 -1
  213. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs +0 -61
  214. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs.map +0 -1
  215. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs +0 -179
  216. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs.map +0 -1
  217. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs +0 -77
  218. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs.map +0 -1
  219. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs +0 -48
  220. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs.map +0 -1
  221. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs +0 -60
  222. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs.map +0 -1
  223. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs +0 -43
  224. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs.map +0 -1
  225. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs +0 -105
  226. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs.map +0 -1
  227. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs +0 -50
  228. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs.map +0 -1
  229. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs +0 -39
  230. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs.map +0 -1
  231. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs +0 -49
  232. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs.map +0 -1
  233. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs +0 -58
  234. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs.map +0 -1
  235. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs +0 -46
  236. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs.map +0 -1
  237. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs +0 -48
  238. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs.map +0 -1
  239. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs +0 -46
  240. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs.map +0 -1
  241. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs +0 -67
  242. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs.map +0 -1
  243. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs +0 -37
  244. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs.map +0 -1
  245. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs +0 -171
  246. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs.map +0 -1
  247. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs +0 -45
  248. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs.map +0 -1
  249. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs +0 -71
  250. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs.map +0 -1
  251. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs +0 -165
  252. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs.map +0 -1
  253. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs +0 -62
  254. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs.map +0 -1
  255. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs +0 -51
  256. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs.map +0 -1
  257. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs +0 -156
  258. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs.map +0 -1
  259. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs +0 -477
  260. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs.map +0 -1
  261. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs +0 -315
  262. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs.map +0 -1
  263. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs +0 -157
  264. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs.map +0 -1
  265. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs +0 -184
  266. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs.map +0 -1
  267. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs +0 -96
  268. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs.map +0 -1
  269. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs +0 -107
  270. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs.map +0 -1
  271. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs +0 -540
  272. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs.map +0 -1
  273. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs +0 -298
  274. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs.map +0 -1
  275. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs +0 -623
  276. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs.map +0 -1
  277. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs +0 -91
  278. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs.map +0 -1
  279. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs +0 -254
  280. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs.map +0 -1
  281. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs +0 -138
  282. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs.map +0 -1
  283. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs +0 -993
  284. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs.map +0 -1
  285. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs +0 -81
  286. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs.map +0 -1
  287. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs +0 -171
  288. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs.map +0 -1
  289. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs +0 -295
  290. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs.map +0 -1
  291. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs +0 -81
  292. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs.map +0 -1
  293. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs +0 -206
  294. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs.map +0 -1
  295. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs +0 -33590
  296. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs.map +0 -1
  297. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs +0 -37
  298. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs.map +0 -1
  299. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs +0 -18
  300. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs.map +0 -1
  301. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs +0 -252
  302. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs.map +0 -1
  303. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs +0 -41
  304. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs.map +0 -1
  305. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs +0 -41
  306. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs.map +0 -1
  307. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs +0 -173
  308. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs.map +0 -1
  309. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs +0 -334
  310. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs.map +0 -1
  311. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs +0 -90
  312. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs.map +0 -1
  313. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs +0 -356
  314. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs.map +0 -1
  315. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs +0 -23
  316. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs.map +0 -1
  317. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs +0 -29
  318. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs.map +0 -1
  319. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs +0 -140
  320. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs.map +0 -1
  321. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs +0 -831
  322. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs.map +0 -1
  323. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs +0 -77
  324. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs.map +0 -1
  325. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs +0 -147
  326. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs.map +0 -1
  327. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs +0 -17
  328. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"run_command_cursor.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RunCommandCursor = void 0;\nconst error_1 = require(\"../error\");\nconst execute_operation_1 = require(\"../operations/execute_operation\");\nconst get_more_1 = require(\"../operations/get_more\");\nconst run_command_1 = require(\"../operations/run_command\");\nconst utils_1 = require(\"../utils\");\nconst abstract_cursor_1 = require(\"./abstract_cursor\");\n/** @public */\nclass RunCommandCursor extends abstract_cursor_1.AbstractCursor {\n /**\n * Controls the `getMore.comment` field\n * @param comment - any BSON value\n */\n setComment(comment) {\n this.getMoreOptions.comment = comment;\n return this;\n }\n /**\n * Controls the `getMore.maxTimeMS` field. Only valid when cursor is tailable await\n * @param maxTimeMS - the number of milliseconds to wait for new data\n */\n setMaxTimeMS(maxTimeMS) {\n this.getMoreOptions.maxAwaitTimeMS = maxTimeMS;\n return this;\n }\n /**\n * Controls the `getMore.batchSize` field\n * @param batchSize - the number documents to return in the `nextBatch`\n */\n setBatchSize(batchSize) {\n this.getMoreOptions.batchSize = batchSize;\n return this;\n }\n /** Unsupported for RunCommandCursor */\n clone() {\n throw new error_1.MongoAPIError('Clone not supported, create a new cursor with db.runCursorCommand');\n }\n /** Unsupported for RunCommandCursor: readConcern must be configured directly on command document */\n withReadConcern(_) {\n throw new error_1.MongoAPIError('RunCommandCursor does not support readConcern it must be attached to the command being run');\n }\n /** Unsupported for RunCommandCursor: various cursor flags must be configured directly on command document */\n addCursorFlag(_, __) {\n throw new error_1.MongoAPIError('RunCommandCursor does not support cursor flags, they must be attached to the command being run');\n }\n /**\n * Unsupported for RunCommandCursor: maxTimeMS must be configured directly on command document\n */\n maxTimeMS(_) {\n throw new error_1.MongoAPIError('maxTimeMS must be configured on the command document directly, to configure getMore.maxTimeMS use cursor.setMaxTimeMS()');\n }\n /** Unsupported for RunCommandCursor: batchSize must be configured directly on command document */\n batchSize(_) {\n throw new error_1.MongoAPIError('batchSize must be configured on the command document directly, to configure getMore.batchSize use cursor.setBatchSize()');\n }\n /** @internal */\n constructor(db, command, options = {}) {\n super(db.client, (0, utils_1.ns)(db.namespace), options);\n this.getMoreOptions = {};\n this.db = db;\n this.command = Object.freeze({ ...command });\n }\n /** @internal */\n async _initialize(session) {\n const operation = new run_command_1.RunCursorCommandOperation(this.db.s.namespace, this.command, {\n ...this.cursorOptions,\n session: session,\n readPreference: this.cursorOptions.readPreference\n });\n const response = await (0, execute_operation_1.executeOperation)(this.client, operation, this.timeoutContext);\n return {\n server: operation.server,\n session,\n response\n };\n }\n /** @internal */\n async getMore(_batchSize) {\n if (!this.session) {\n throw new error_1.MongoRuntimeError('Unexpected null session. A cursor creating command should have set this');\n }\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const getMoreOperation = new get_more_1.GetMoreOperation(this.namespace, this.id, this.server, {\n ...this.cursorOptions,\n session: this.session,\n ...this.getMoreOptions\n });\n return await (0, execute_operation_1.executeOperation)(this.client, getMoreOperation, this.timeoutContext);\n }\n}\nexports.RunCommandCursor = RunCommandCursor;\n//# sourceMappingURL=run_command_cursor.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,mBAAmB,KAAK;CAChC,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,mBAAN,cAA+B,kBAAkB,eAAe;;;;;EAK5D,WAAW,SAAS;AAChB,QAAK,eAAe,UAAU;AAC9B,UAAO;;;;;;EAMX,aAAa,WAAW;AACpB,QAAK,eAAe,iBAAiB;AACrC,UAAO;;;;;;EAMX,aAAa,WAAW;AACpB,QAAK,eAAe,YAAY;AAChC,UAAO;;;EAGX,QAAQ;AACJ,SAAM,IAAI,QAAQ,cAAc,oEAAoE;;;EAGxG,gBAAgB,GAAG;AACf,SAAM,IAAI,QAAQ,cAAc,6FAA6F;;;EAGjI,cAAc,GAAG,IAAI;AACjB,SAAM,IAAI,QAAQ,cAAc,iGAAiG;;;;;EAKrI,UAAU,GAAG;AACT,SAAM,IAAI,QAAQ,cAAc,0HAA0H;;;EAG9J,UAAU,GAAG;AACT,SAAM,IAAI,QAAQ,cAAc,0HAA0H;;;EAG9J,YAAY,IAAI,SAAS,UAAU,EAAE,EAAE;AACnC,SAAM,GAAG,SAAS,GAAG,QAAQ,IAAI,GAAG,UAAU,EAAE,QAAQ;AACxD,QAAK,iBAAiB,EAAE;AACxB,QAAK,KAAK;AACV,QAAK,UAAU,OAAO,OAAO,EAAE,GAAG,SAAS,CAAC;;;EAGhD,MAAM,YAAY,SAAS;GACvB,MAAM,YAAY,IAAI,cAAc,0BAA0B,KAAK,GAAG,EAAE,WAAW,KAAK,SAAS;IAC7F,GAAG,KAAK;IACC;IACT,gBAAgB,KAAK,cAAc;IACtC,CAAC;GACF,MAAM,WAAW,OAAO,GAAG,oBAAoB,kBAAkB,KAAK,QAAQ,WAAW,KAAK,eAAe;AAC7G,UAAO;IACH,QAAQ,UAAU;IAClB;IACA;IACH;;;EAGL,MAAM,QAAQ,YAAY;AACtB,OAAI,CAAC,KAAK,QACN,OAAM,IAAI,QAAQ,kBAAkB,0EAA0E;GAGlH,MAAM,mBAAmB,IAAI,WAAW,iBAAiB,KAAK,WAAW,KAAK,IAAI,KAAK,QAAQ;IAC3F,GAAG,KAAK;IACR,SAAS,KAAK;IACd,GAAG,KAAK;IACX,CAAC;AACF,UAAO,OAAO,GAAG,oBAAoB,kBAAkB,KAAK,QAAQ,kBAAkB,KAAK,eAAe;;;AAGlH,SAAQ,mBAAmB"}
@@ -1,428 +0,0 @@
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_read_preference } from "./read_preference.mjs";
5
- import { require_constants } from "./constants.mjs";
6
- import { require_read_concern } from "./read_concern.mjs";
7
- import { require_write_concern } from "./write_concern.mjs";
8
- import { require_utils } from "./utils.mjs";
9
- import { require_execute_operation } from "./operations/execute_operation.mjs";
10
- import { require_remove_user } from "./operations/remove_user.mjs";
11
- import { require_run_command } from "./operations/run_command.mjs";
12
- import { require_admin } from "./admin.mjs";
13
- import { require_list_collections_cursor } from "./cursor/list_collections_cursor.mjs";
14
- import { require_run_command_cursor } from "./cursor/run_command_cursor.mjs";
15
- import { require_indexes } from "./operations/indexes.mjs";
16
- import { require_create_collection } from "./operations/create_collection.mjs";
17
- import { require_drop } from "./operations/drop.mjs";
18
- import { require_profiling_level } from "./operations/profiling_level.mjs";
19
- import { require_rename } from "./operations/rename.mjs";
20
- import { require_set_profiling_level } from "./operations/set_profiling_level.mjs";
21
- import { require_stats } from "./operations/stats.mjs";
22
- import { require_aggregation_cursor } from "./cursor/aggregation_cursor.mjs";
23
- import { require_collection } from "./collection.mjs";
24
- import { require_change_stream } from "./change_stream.mjs";
25
-
26
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.js
27
- var require_db = /* @__PURE__ */ __commonJSMin(((exports) => {
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.Db = void 0;
30
- const admin_1 = require_admin();
31
- const bson_1 = require_bson();
32
- const change_stream_1 = require_change_stream();
33
- const collection_1 = require_collection();
34
- const CONSTANTS = require_constants();
35
- const aggregation_cursor_1 = require_aggregation_cursor();
36
- const list_collections_cursor_1 = require_list_collections_cursor();
37
- const run_command_cursor_1 = require_run_command_cursor();
38
- const error_1 = require_error();
39
- const create_collection_1 = require_create_collection();
40
- const drop_1 = require_drop();
41
- const execute_operation_1 = require_execute_operation();
42
- const indexes_1 = require_indexes();
43
- const profiling_level_1 = require_profiling_level();
44
- const remove_user_1 = require_remove_user();
45
- const rename_1 = require_rename();
46
- const run_command_1 = require_run_command();
47
- const set_profiling_level_1 = require_set_profiling_level();
48
- const stats_1 = require_stats();
49
- const read_concern_1 = require_read_concern();
50
- const read_preference_1 = require_read_preference();
51
- const utils_1 = require_utils();
52
- const write_concern_1 = require_write_concern();
53
- const DB_OPTIONS_ALLOW_LIST = [
54
- "writeConcern",
55
- "readPreference",
56
- "readPreferenceTags",
57
- "native_parser",
58
- "forceServerObjectId",
59
- "pkFactory",
60
- "serializeFunctions",
61
- "raw",
62
- "authSource",
63
- "ignoreUndefined",
64
- "readConcern",
65
- "retryMiliSeconds",
66
- "numberOfRetries",
67
- "useBigInt64",
68
- "promoteBuffers",
69
- "promoteLongs",
70
- "bsonRegExp",
71
- "enableUtf8Validation",
72
- "promoteValues",
73
- "compression",
74
- "retryWrites",
75
- "timeoutMS"
76
- ];
77
- /**
78
- * The **Db** class is a class that represents a MongoDB Database.
79
- * @public
80
- *
81
- * @example
82
- * ```ts
83
- * import { MongoClient } from 'mongodb';
84
- *
85
- * interface Pet {
86
- * name: string;
87
- * kind: 'dog' | 'cat' | 'fish';
88
- * }
89
- *
90
- * const client = new MongoClient('mongodb://localhost:27017');
91
- * const db = client.db();
92
- *
93
- * // Create a collection that validates our union
94
- * await db.createCollection<Pet>('pets', {
95
- * validator: { $expr: { $in: ['$kind', ['dog', 'cat', 'fish']] } }
96
- * })
97
- * ```
98
- */
99
- var Db = class {
100
- /**
101
- * Creates a new Db instance.
102
- *
103
- * Db name cannot contain a dot, the server may apply more restrictions when an operation is run.
104
- *
105
- * @param client - The MongoClient for the database.
106
- * @param databaseName - The name of the database this instance represents.
107
- * @param options - Optional settings for Db construction.
108
- */
109
- constructor(client, databaseName, options) {
110
- options = options ?? {};
111
- options = (0, utils_1.filterOptions)(options, DB_OPTIONS_ALLOW_LIST);
112
- if (typeof databaseName === "string" && databaseName.includes(".")) throw new error_1.MongoInvalidArgumentError(`Database names cannot contain the character '.'`);
113
- this.s = {
114
- options,
115
- readPreference: read_preference_1.ReadPreference.fromOptions(options),
116
- bsonOptions: (0, bson_1.resolveBSONOptions)(options, client),
117
- pkFactory: options?.pkFactory ?? utils_1.DEFAULT_PK_FACTORY,
118
- readConcern: read_concern_1.ReadConcern.fromOptions(options),
119
- writeConcern: write_concern_1.WriteConcern.fromOptions(options),
120
- namespace: new utils_1.MongoDBNamespace(databaseName)
121
- };
122
- this.client = client;
123
- }
124
- get databaseName() {
125
- return this.s.namespace.db;
126
- }
127
- get options() {
128
- return this.s.options;
129
- }
130
- /**
131
- * Check if a secondary can be used (because the read preference is *not* set to primary)
132
- */
133
- get secondaryOk() {
134
- return this.s.readPreference?.preference !== "primary" || false;
135
- }
136
- get readConcern() {
137
- return this.s.readConcern;
138
- }
139
- /**
140
- * The current readPreference of the Db. If not explicitly defined for
141
- * this Db, will be inherited from the parent MongoClient
142
- */
143
- get readPreference() {
144
- if (this.s.readPreference == null) return this.client.readPreference;
145
- return this.s.readPreference;
146
- }
147
- get bsonOptions() {
148
- return this.s.bsonOptions;
149
- }
150
- get writeConcern() {
151
- return this.s.writeConcern;
152
- }
153
- get namespace() {
154
- return this.s.namespace.toString();
155
- }
156
- get timeoutMS() {
157
- return this.s.options?.timeoutMS;
158
- }
159
- /**
160
- * Create a new collection on a server with the specified options. Use this to create capped collections.
161
- * More information about command options available at https://www.mongodb.com/docs/manual/reference/command/create/
162
- *
163
- * Collection namespace validation is performed server-side.
164
- *
165
- * @param name - The name of the collection to create
166
- * @param options - Optional settings for the command
167
- */
168
- async createCollection(name, options) {
169
- options = (0, utils_1.resolveOptions)(this, options);
170
- return await (0, create_collection_1.createCollections)(this, name, options);
171
- }
172
- /**
173
- * Execute a command
174
- *
175
- * @remarks
176
- * This command does not inherit options from the MongoClient.
177
- *
178
- * The driver will ensure the following fields are attached to the command sent to the server:
179
- * - `lsid` - sourced from an implicit session or options.session
180
- * - `$readPreference` - defaults to primary or can be configured by options.readPreference
181
- * - `$db` - sourced from the name of this database
182
- *
183
- * If the client has a serverApi setting:
184
- * - `apiVersion`
185
- * - `apiStrict`
186
- * - `apiDeprecationErrors`
187
- *
188
- * When in a transaction:
189
- * - `readConcern` - sourced from readConcern set on the TransactionOptions
190
- * - `writeConcern` - sourced from writeConcern set on the TransactionOptions
191
- *
192
- * Attaching any of the above fields to the command will have no effect as the driver will overwrite the value.
193
- *
194
- * @param command - The command to run
195
- * @param options - Optional settings for the command
196
- */
197
- async command(command, options) {
198
- return await (0, execute_operation_1.executeOperation)(this.client, new run_command_1.RunCommandOperation(this.s.namespace, command, (0, utils_1.resolveOptions)(void 0, {
199
- ...(0, bson_1.resolveBSONOptions)(options),
200
- timeoutMS: options?.timeoutMS ?? this.timeoutMS,
201
- session: options?.session,
202
- readPreference: options?.readPreference,
203
- signal: options?.signal
204
- })));
205
- }
206
- /**
207
- * Execute an aggregation framework pipeline against the database.
208
- *
209
- * @param pipeline - An array of aggregation stages to be executed
210
- * @param options - Optional settings for the command
211
- */
212
- aggregate(pipeline = [], options) {
213
- return new aggregation_cursor_1.AggregationCursor(this.client, this.s.namespace, pipeline, (0, utils_1.resolveOptions)(this, options));
214
- }
215
- /** Return the Admin db instance */
216
- admin() {
217
- return new admin_1.Admin(this);
218
- }
219
- /**
220
- * Returns a reference to a MongoDB Collection. If it does not exist it will be created implicitly.
221
- *
222
- * Collection namespace validation is performed server-side.
223
- *
224
- * @param name - the collection name we wish to access.
225
- * @returns return the new Collection instance
226
- */
227
- collection(name, options = {}) {
228
- if (typeof options === "function") throw new error_1.MongoInvalidArgumentError("The callback form of this helper has been removed.");
229
- return new collection_1.Collection(this, name, (0, utils_1.resolveOptions)(this, options));
230
- }
231
- /**
232
- * Get all the db statistics.
233
- *
234
- * @param options - Optional settings for the command
235
- */
236
- async stats(options) {
237
- return await (0, execute_operation_1.executeOperation)(this.client, new stats_1.DbStatsOperation(this, (0, utils_1.resolveOptions)(this, options)));
238
- }
239
- listCollections(filter = {}, options = {}) {
240
- return new list_collections_cursor_1.ListCollectionsCursor(this, filter, (0, utils_1.resolveOptions)(this, options));
241
- }
242
- /**
243
- * Rename a collection.
244
- *
245
- * @remarks
246
- * This operation does not inherit options from the MongoClient.
247
- *
248
- * @param fromCollection - Name of current collection to rename
249
- * @param toCollection - New name of of the collection
250
- * @param options - Optional settings for the command
251
- */
252
- async renameCollection(fromCollection, toCollection, options) {
253
- return await (0, execute_operation_1.executeOperation)(this.client, new rename_1.RenameOperation(this.collection(fromCollection), toCollection, (0, utils_1.resolveOptions)(void 0, {
254
- ...options,
255
- new_collection: true,
256
- readPreference: read_preference_1.ReadPreference.primary
257
- })));
258
- }
259
- /**
260
- * Drop a collection from the database, removing it permanently. New accesses will create a new collection.
261
- *
262
- * @param name - Name of collection to drop
263
- * @param options - Optional settings for the command
264
- */
265
- async dropCollection(name, options) {
266
- options = (0, utils_1.resolveOptions)(this, options);
267
- return await (0, drop_1.dropCollections)(this, name, options);
268
- }
269
- /**
270
- * Drop a database, removing it permanently from the server.
271
- *
272
- * @param options - Optional settings for the command
273
- */
274
- async dropDatabase(options) {
275
- return await (0, execute_operation_1.executeOperation)(this.client, new drop_1.DropDatabaseOperation(this, (0, utils_1.resolveOptions)(this, options)));
276
- }
277
- /**
278
- * Fetch all collections for the current db.
279
- *
280
- * @param options - Optional settings for the command
281
- */
282
- async collections(options) {
283
- options = (0, utils_1.resolveOptions)(this, options);
284
- return (await this.listCollections({}, {
285
- ...options,
286
- nameOnly: true
287
- }).toArray()).filter(({ name }) => !name.includes("$")).map(({ name }) => new collection_1.Collection(this, name, this.s.options));
288
- }
289
- /**
290
- * Creates an index on the db and collection.
291
- *
292
- * @param name - Name of the collection to create the index on.
293
- * @param indexSpec - Specify the field to index, or an index specification
294
- * @param options - Optional settings for the command
295
- */
296
- async createIndex(name, indexSpec, options) {
297
- return (await (0, execute_operation_1.executeOperation)(this.client, indexes_1.CreateIndexesOperation.fromIndexSpecification(this, name, indexSpec, options)))[0];
298
- }
299
- /**
300
- * Remove a user from a database
301
- *
302
- * @param username - The username to remove
303
- * @param options - Optional settings for the command
304
- */
305
- async removeUser(username, options) {
306
- return await (0, execute_operation_1.executeOperation)(this.client, new remove_user_1.RemoveUserOperation(this, username, (0, utils_1.resolveOptions)(this, options)));
307
- }
308
- /**
309
- * Set the current profiling level of MongoDB
310
- *
311
- * @param level - The new profiling level (off, slow_only, all).
312
- * @param options - Optional settings for the command
313
- */
314
- async setProfilingLevel(level, options) {
315
- return await (0, execute_operation_1.executeOperation)(this.client, new set_profiling_level_1.SetProfilingLevelOperation(this, level, (0, utils_1.resolveOptions)(this, options)));
316
- }
317
- /**
318
- * Retrieve the current profiling Level for MongoDB
319
- *
320
- * @param options - Optional settings for the command
321
- */
322
- async profilingLevel(options) {
323
- return await (0, execute_operation_1.executeOperation)(this.client, new profiling_level_1.ProfilingLevelOperation(this, (0, utils_1.resolveOptions)(this, options)));
324
- }
325
- async indexInformation(name, options) {
326
- return await this.collection(name).indexInformation((0, utils_1.resolveOptions)(this, options));
327
- }
328
- /**
329
- * Create a new Change Stream, watching for new changes (insertions, updates,
330
- * replacements, deletions, and invalidations) in this database. Will ignore all
331
- * changes to system collections.
332
- *
333
- * @remarks
334
- * watch() accepts two generic arguments for distinct use cases:
335
- * - The first is to provide the schema that may be defined for all the collections within this database
336
- * - The second is to override the shape of the change stream document entirely, if it is not provided the type will default to ChangeStreamDocument of the first argument
337
- *
338
- * @remarks
339
- * When `timeoutMS` is configured for a change stream, it will have different behaviour depending
340
- * on whether the change stream is in iterator mode or emitter mode. In both cases, a change
341
- * stream will time out if it does not receive a change event within `timeoutMS` of the last change
342
- * event.
343
- *
344
- * Note that if a change stream is consistently timing out when watching a collection, database or
345
- * client that is being changed, then this may be due to the server timing out before it can finish
346
- * processing the existing oplog. To address this, restart the change stream with a higher
347
- * `timeoutMS`.
348
- *
349
- * If the change stream times out the initial aggregate operation to establish the change stream on
350
- * the server, then the client will close the change stream. If the getMore calls to the server
351
- * time out, then the change stream will be left open, but will throw a MongoOperationTimeoutError
352
- * when in iterator mode and emit an error event that returns a MongoOperationTimeoutError in
353
- * emitter mode.
354
- *
355
- * To determine whether or not the change stream is still open following a timeout, check the
356
- * {@link ChangeStream.closed} getter.
357
- *
358
- * @example
359
- * In iterator mode, if a next() call throws a timeout error, it will attempt to resume the change stream.
360
- * The next call can just be retried after this succeeds.
361
- * ```ts
362
- * const changeStream = collection.watch([], { timeoutMS: 100 });
363
- * try {
364
- * await changeStream.next();
365
- * } catch (e) {
366
- * if (e instanceof MongoOperationTimeoutError && !changeStream.closed) {
367
- * await changeStream.next();
368
- * }
369
- * throw e;
370
- * }
371
- * ```
372
- *
373
- * @example
374
- * In emitter mode, if the change stream goes `timeoutMS` without emitting a change event, it will
375
- * emit an error event that returns a MongoOperationTimeoutError, but will not close the change
376
- * stream unless the resume attempt fails. There is no need to re-establish change listeners as
377
- * this will automatically continue emitting change events once the resume attempt completes.
378
- *
379
- * ```ts
380
- * const changeStream = collection.watch([], { timeoutMS: 100 });
381
- * changeStream.on('change', console.log);
382
- * changeStream.on('error', e => {
383
- * if (e instanceof MongoOperationTimeoutError && !changeStream.closed) {
384
- * // do nothing
385
- * } else {
386
- * changeStream.close();
387
- * }
388
- * });
389
- * ```
390
- * @param pipeline - An array of {@link https://www.mongodb.com/docs/manual/reference/operator/aggregation-pipeline/|aggregation pipeline stages} through which to pass change stream documents. This allows for filtering (using $match) and manipulating the change stream documents.
391
- * @param options - Optional settings for the command
392
- * @typeParam TSchema - Type of the data being detected by the change stream
393
- * @typeParam TChange - Type of the whole change stream document emitted
394
- */
395
- watch(pipeline = [], options = {}) {
396
- if (!Array.isArray(pipeline)) {
397
- options = pipeline;
398
- pipeline = [];
399
- }
400
- return new change_stream_1.ChangeStream(this, pipeline, (0, utils_1.resolveOptions)(this, options));
401
- }
402
- /**
403
- * A low level cursor API providing basic driver functionality:
404
- * - ClientSession management
405
- * - ReadPreference for server selection
406
- * - Running getMores automatically when a local batch is exhausted
407
- *
408
- * @param command - The command that will start a cursor on the server.
409
- * @param options - Configurations for running the command, bson options will apply to getMores
410
- */
411
- runCursorCommand(command, options) {
412
- return new run_command_cursor_1.RunCommandCursor(this, command, options);
413
- }
414
- };
415
- exports.Db = Db;
416
- Db.SYSTEM_NAMESPACE_COLLECTION = CONSTANTS.SYSTEM_NAMESPACE_COLLECTION;
417
- Db.SYSTEM_INDEX_COLLECTION = CONSTANTS.SYSTEM_INDEX_COLLECTION;
418
- Db.SYSTEM_PROFILE_COLLECTION = CONSTANTS.SYSTEM_PROFILE_COLLECTION;
419
- Db.SYSTEM_USER_COLLECTION = CONSTANTS.SYSTEM_USER_COLLECTION;
420
- Db.SYSTEM_COMMAND_COLLECTION = CONSTANTS.SYSTEM_COMMAND_COLLECTION;
421
- Db.SYSTEM_JS_COLLECTION = CONSTANTS.SYSTEM_JS_COLLECTION;
422
- }));
423
-
424
- //#endregion
425
- export default require_db();
426
-
427
- export { require_db };
428
- //# sourceMappingURL=db.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"db.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Db = void 0;\nconst admin_1 = require(\"./admin\");\nconst bson_1 = require(\"./bson\");\nconst change_stream_1 = require(\"./change_stream\");\nconst collection_1 = require(\"./collection\");\nconst CONSTANTS = require(\"./constants\");\nconst aggregation_cursor_1 = require(\"./cursor/aggregation_cursor\");\nconst list_collections_cursor_1 = require(\"./cursor/list_collections_cursor\");\nconst run_command_cursor_1 = require(\"./cursor/run_command_cursor\");\nconst error_1 = require(\"./error\");\nconst create_collection_1 = require(\"./operations/create_collection\");\nconst drop_1 = require(\"./operations/drop\");\nconst execute_operation_1 = require(\"./operations/execute_operation\");\nconst indexes_1 = require(\"./operations/indexes\");\nconst profiling_level_1 = require(\"./operations/profiling_level\");\nconst remove_user_1 = require(\"./operations/remove_user\");\nconst rename_1 = require(\"./operations/rename\");\nconst run_command_1 = require(\"./operations/run_command\");\nconst set_profiling_level_1 = require(\"./operations/set_profiling_level\");\nconst stats_1 = require(\"./operations/stats\");\nconst read_concern_1 = require(\"./read_concern\");\nconst read_preference_1 = require(\"./read_preference\");\nconst utils_1 = require(\"./utils\");\nconst write_concern_1 = require(\"./write_concern\");\n// Allowed parameters\nconst DB_OPTIONS_ALLOW_LIST = [\n 'writeConcern',\n 'readPreference',\n 'readPreferenceTags',\n 'native_parser',\n 'forceServerObjectId',\n 'pkFactory',\n 'serializeFunctions',\n 'raw',\n 'authSource',\n 'ignoreUndefined',\n 'readConcern',\n 'retryMiliSeconds',\n 'numberOfRetries',\n 'useBigInt64',\n 'promoteBuffers',\n 'promoteLongs',\n 'bsonRegExp',\n 'enableUtf8Validation',\n 'promoteValues',\n 'compression',\n 'retryWrites',\n 'timeoutMS'\n];\n/**\n * The **Db** class is a class that represents a MongoDB Database.\n * @public\n *\n * @example\n * ```ts\n * import { MongoClient } from 'mongodb';\n *\n * interface Pet {\n * name: string;\n * kind: 'dog' | 'cat' | 'fish';\n * }\n *\n * const client = new MongoClient('mongodb://localhost:27017');\n * const db = client.db();\n *\n * // Create a collection that validates our union\n * await db.createCollection<Pet>('pets', {\n * validator: { $expr: { $in: ['$kind', ['dog', 'cat', 'fish']] } }\n * })\n * ```\n */\nclass Db {\n /**\n * Creates a new Db instance.\n *\n * Db name cannot contain a dot, the server may apply more restrictions when an operation is run.\n *\n * @param client - The MongoClient for the database.\n * @param databaseName - The name of the database this instance represents.\n * @param options - Optional settings for Db construction.\n */\n constructor(client, databaseName, options) {\n options = options ?? {};\n // Filter the options\n options = (0, utils_1.filterOptions)(options, DB_OPTIONS_ALLOW_LIST);\n // Ensure there are no dots in database name\n if (typeof databaseName === 'string' && databaseName.includes('.')) {\n throw new error_1.MongoInvalidArgumentError(`Database names cannot contain the character '.'`);\n }\n // Internal state of the db object\n this.s = {\n // Options\n options,\n // Unpack read preference\n readPreference: read_preference_1.ReadPreference.fromOptions(options),\n // Merge bson options\n bsonOptions: (0, bson_1.resolveBSONOptions)(options, client),\n // Set up the primary key factory or fallback to ObjectId\n pkFactory: options?.pkFactory ?? utils_1.DEFAULT_PK_FACTORY,\n // ReadConcern\n readConcern: read_concern_1.ReadConcern.fromOptions(options),\n writeConcern: write_concern_1.WriteConcern.fromOptions(options),\n // Namespace\n namespace: new utils_1.MongoDBNamespace(databaseName)\n };\n this.client = client;\n }\n get databaseName() {\n return this.s.namespace.db;\n }\n // Options\n get options() {\n return this.s.options;\n }\n /**\n * Check if a secondary can be used (because the read preference is *not* set to primary)\n */\n get secondaryOk() {\n return this.s.readPreference?.preference !== 'primary' || false;\n }\n get readConcern() {\n return this.s.readConcern;\n }\n /**\n * The current readPreference of the Db. If not explicitly defined for\n * this Db, will be inherited from the parent MongoClient\n */\n get readPreference() {\n if (this.s.readPreference == null) {\n return this.client.readPreference;\n }\n return this.s.readPreference;\n }\n get bsonOptions() {\n return this.s.bsonOptions;\n }\n // get the write Concern\n get writeConcern() {\n return this.s.writeConcern;\n }\n get namespace() {\n return this.s.namespace.toString();\n }\n get timeoutMS() {\n return this.s.options?.timeoutMS;\n }\n /**\n * Create a new collection on a server with the specified options. Use this to create capped collections.\n * More information about command options available at https://www.mongodb.com/docs/manual/reference/command/create/\n *\n * Collection namespace validation is performed server-side.\n *\n * @param name - The name of the collection to create\n * @param options - Optional settings for the command\n */\n async createCollection(name, options) {\n options = (0, utils_1.resolveOptions)(this, options);\n return await (0, create_collection_1.createCollections)(this, name, options);\n }\n /**\n * Execute a command\n *\n * @remarks\n * This command does not inherit options from the MongoClient.\n *\n * The driver will ensure the following fields are attached to the command sent to the server:\n * - `lsid` - sourced from an implicit session or options.session\n * - `$readPreference` - defaults to primary or can be configured by options.readPreference\n * - `$db` - sourced from the name of this database\n *\n * If the client has a serverApi setting:\n * - `apiVersion`\n * - `apiStrict`\n * - `apiDeprecationErrors`\n *\n * When in a transaction:\n * - `readConcern` - sourced from readConcern set on the TransactionOptions\n * - `writeConcern` - sourced from writeConcern set on the TransactionOptions\n *\n * Attaching any of the above fields to the command will have no effect as the driver will overwrite the value.\n *\n * @param command - The command to run\n * @param options - Optional settings for the command\n */\n async command(command, options) {\n // Intentionally, we do not inherit options from parent for this operation.\n return await (0, execute_operation_1.executeOperation)(this.client, new run_command_1.RunCommandOperation(this.s.namespace, command, (0, utils_1.resolveOptions)(undefined, {\n ...(0, bson_1.resolveBSONOptions)(options),\n timeoutMS: options?.timeoutMS ?? this.timeoutMS,\n session: options?.session,\n readPreference: options?.readPreference,\n signal: options?.signal\n })));\n }\n /**\n * Execute an aggregation framework pipeline against the database.\n *\n * @param pipeline - An array of aggregation stages to be executed\n * @param options - Optional settings for the command\n */\n aggregate(pipeline = [], options) {\n return new aggregation_cursor_1.AggregationCursor(this.client, this.s.namespace, pipeline, (0, utils_1.resolveOptions)(this, options));\n }\n /** Return the Admin db instance */\n admin() {\n return new admin_1.Admin(this);\n }\n /**\n * Returns a reference to a MongoDB Collection. If it does not exist it will be created implicitly.\n *\n * Collection namespace validation is performed server-side.\n *\n * @param name - the collection name we wish to access.\n * @returns return the new Collection instance\n */\n collection(name, options = {}) {\n if (typeof options === 'function') {\n throw new error_1.MongoInvalidArgumentError('The callback form of this helper has been removed.');\n }\n return new collection_1.Collection(this, name, (0, utils_1.resolveOptions)(this, options));\n }\n /**\n * Get all the db statistics.\n *\n * @param options - Optional settings for the command\n */\n async stats(options) {\n return await (0, execute_operation_1.executeOperation)(this.client, new stats_1.DbStatsOperation(this, (0, utils_1.resolveOptions)(this, options)));\n }\n listCollections(filter = {}, options = {}) {\n return new list_collections_cursor_1.ListCollectionsCursor(this, filter, (0, utils_1.resolveOptions)(this, options));\n }\n /**\n * Rename a collection.\n *\n * @remarks\n * This operation does not inherit options from the MongoClient.\n *\n * @param fromCollection - Name of current collection to rename\n * @param toCollection - New name of of the collection\n * @param options - Optional settings for the command\n */\n async renameCollection(fromCollection, toCollection, options) {\n // Intentionally, we do not inherit options from parent for this operation.\n return await (0, execute_operation_1.executeOperation)(this.client, new rename_1.RenameOperation(this.collection(fromCollection), toCollection, (0, utils_1.resolveOptions)(undefined, {\n ...options,\n new_collection: true,\n readPreference: read_preference_1.ReadPreference.primary\n })));\n }\n /**\n * Drop a collection from the database, removing it permanently. New accesses will create a new collection.\n *\n * @param name - Name of collection to drop\n * @param options - Optional settings for the command\n */\n async dropCollection(name, options) {\n options = (0, utils_1.resolveOptions)(this, options);\n return await (0, drop_1.dropCollections)(this, name, options);\n }\n /**\n * Drop a database, removing it permanently from the server.\n *\n * @param options - Optional settings for the command\n */\n async dropDatabase(options) {\n return await (0, execute_operation_1.executeOperation)(this.client, new drop_1.DropDatabaseOperation(this, (0, utils_1.resolveOptions)(this, options)));\n }\n /**\n * Fetch all collections for the current db.\n *\n * @param options - Optional settings for the command\n */\n async collections(options) {\n options = (0, utils_1.resolveOptions)(this, options);\n const collections = await this.listCollections({}, { ...options, nameOnly: true }).toArray();\n return collections\n .filter(\n // Filter collections removing any illegal ones\n ({ name }) => !name.includes('$'))\n .map(({ name }) => new collection_1.Collection(this, name, this.s.options));\n }\n /**\n * Creates an index on the db and collection.\n *\n * @param name - Name of the collection to create the index on.\n * @param indexSpec - Specify the field to index, or an index specification\n * @param options - Optional settings for the command\n */\n async createIndex(name, indexSpec, options) {\n const indexes = await (0, execute_operation_1.executeOperation)(this.client, indexes_1.CreateIndexesOperation.fromIndexSpecification(this, name, indexSpec, options));\n return indexes[0];\n }\n /**\n * Remove a user from a database\n *\n * @param username - The username to remove\n * @param options - Optional settings for the command\n */\n async removeUser(username, options) {\n return await (0, execute_operation_1.executeOperation)(this.client, new remove_user_1.RemoveUserOperation(this, username, (0, utils_1.resolveOptions)(this, options)));\n }\n /**\n * Set the current profiling level of MongoDB\n *\n * @param level - The new profiling level (off, slow_only, all).\n * @param options - Optional settings for the command\n */\n async setProfilingLevel(level, options) {\n return await (0, execute_operation_1.executeOperation)(this.client, new set_profiling_level_1.SetProfilingLevelOperation(this, level, (0, utils_1.resolveOptions)(this, options)));\n }\n /**\n * Retrieve the current profiling Level for MongoDB\n *\n * @param options - Optional settings for the command\n */\n async profilingLevel(options) {\n return await (0, execute_operation_1.executeOperation)(this.client, new profiling_level_1.ProfilingLevelOperation(this, (0, utils_1.resolveOptions)(this, options)));\n }\n async indexInformation(name, options) {\n return await this.collection(name).indexInformation((0, utils_1.resolveOptions)(this, options));\n }\n /**\n * Create a new Change Stream, watching for new changes (insertions, updates,\n * replacements, deletions, and invalidations) in this database. Will ignore all\n * changes to system collections.\n *\n * @remarks\n * watch() accepts two generic arguments for distinct use cases:\n * - The first is to provide the schema that may be defined for all the collections within this database\n * - The second is to override the shape of the change stream document entirely, if it is not provided the type will default to ChangeStreamDocument of the first argument\n *\n * @remarks\n * When `timeoutMS` is configured for a change stream, it will have different behaviour depending\n * on whether the change stream is in iterator mode or emitter mode. In both cases, a change\n * stream will time out if it does not receive a change event within `timeoutMS` of the last change\n * event.\n *\n * Note that if a change stream is consistently timing out when watching a collection, database or\n * client that is being changed, then this may be due to the server timing out before it can finish\n * processing the existing oplog. To address this, restart the change stream with a higher\n * `timeoutMS`.\n *\n * If the change stream times out the initial aggregate operation to establish the change stream on\n * the server, then the client will close the change stream. If the getMore calls to the server\n * time out, then the change stream will be left open, but will throw a MongoOperationTimeoutError\n * when in iterator mode and emit an error event that returns a MongoOperationTimeoutError in\n * emitter mode.\n *\n * To determine whether or not the change stream is still open following a timeout, check the\n * {@link ChangeStream.closed} getter.\n *\n * @example\n * In iterator mode, if a next() call throws a timeout error, it will attempt to resume the change stream.\n * The next call can just be retried after this succeeds.\n * ```ts\n * const changeStream = collection.watch([], { timeoutMS: 100 });\n * try {\n * await changeStream.next();\n * } catch (e) {\n * if (e instanceof MongoOperationTimeoutError && !changeStream.closed) {\n * await changeStream.next();\n * }\n * throw e;\n * }\n * ```\n *\n * @example\n * In emitter mode, if the change stream goes `timeoutMS` without emitting a change event, it will\n * emit an error event that returns a MongoOperationTimeoutError, but will not close the change\n * stream unless the resume attempt fails. There is no need to re-establish change listeners as\n * this will automatically continue emitting change events once the resume attempt completes.\n *\n * ```ts\n * const changeStream = collection.watch([], { timeoutMS: 100 });\n * changeStream.on('change', console.log);\n * changeStream.on('error', e => {\n * if (e instanceof MongoOperationTimeoutError && !changeStream.closed) {\n * // do nothing\n * } else {\n * changeStream.close();\n * }\n * });\n * ```\n * @param pipeline - An array of {@link https://www.mongodb.com/docs/manual/reference/operator/aggregation-pipeline/|aggregation pipeline stages} through which to pass change stream documents. This allows for filtering (using $match) and manipulating the change stream documents.\n * @param options - Optional settings for the command\n * @typeParam TSchema - Type of the data being detected by the change stream\n * @typeParam TChange - Type of the whole change stream document emitted\n */\n watch(pipeline = [], options = {}) {\n // Allow optionally not specifying a pipeline\n if (!Array.isArray(pipeline)) {\n options = pipeline;\n pipeline = [];\n }\n return new change_stream_1.ChangeStream(this, pipeline, (0, utils_1.resolveOptions)(this, options));\n }\n /**\n * A low level cursor API providing basic driver functionality:\n * - ClientSession management\n * - ReadPreference for server selection\n * - Running getMores automatically when a local batch is exhausted\n *\n * @param command - The command that will start a cursor on the server.\n * @param options - Configurations for running the command, bson options will apply to getMores\n */\n runCursorCommand(command, options) {\n return new run_command_cursor_1.RunCommandCursor(this, command, options);\n }\n}\nexports.Db = Db;\nDb.SYSTEM_NAMESPACE_COLLECTION = CONSTANTS.SYSTEM_NAMESPACE_COLLECTION;\nDb.SYSTEM_INDEX_COLLECTION = CONSTANTS.SYSTEM_INDEX_COLLECTION;\nDb.SYSTEM_PROFILE_COLLECTION = CONSTANTS.SYSTEM_PROFILE_COLLECTION;\nDb.SYSTEM_USER_COLLECTION = CONSTANTS.SYSTEM_USER_COLLECTION;\nDb.SYSTEM_COMMAND_COLLECTION = CONSTANTS.SYSTEM_COMMAND_COLLECTION;\nDb.SYSTEM_JS_COLLECTION = CONSTANTS.SYSTEM_JS_COLLECTION;\n//# sourceMappingURL=db.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,KAAK,KAAK;CAClB,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CAEN,MAAM,wBAAwB;EAC1B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACH;;;;;;;;;;;;;;;;;;;;;;;CAuBD,IAAM,KAAN,MAAS;;;;;;;;;;EAUL,YAAY,QAAQ,cAAc,SAAS;AACvC,aAAU,WAAW,EAAE;AAEvB,cAAW,GAAG,QAAQ,eAAe,SAAS,sBAAsB;AAEpE,OAAI,OAAO,iBAAiB,YAAY,aAAa,SAAS,IAAI,CAC9D,OAAM,IAAI,QAAQ,0BAA0B,kDAAkD;AAGlG,QAAK,IAAI;IAEL;IAEA,gBAAgB,kBAAkB,eAAe,YAAY,QAAQ;IAErE,cAAc,GAAG,OAAO,oBAAoB,SAAS,OAAO;IAE5D,WAAW,SAAS,aAAa,QAAQ;IAEzC,aAAa,eAAe,YAAY,YAAY,QAAQ;IAC5D,cAAc,gBAAgB,aAAa,YAAY,QAAQ;IAE/D,WAAW,IAAI,QAAQ,iBAAiB,aAAa;IACxD;AACD,QAAK,SAAS;;EAElB,IAAI,eAAe;AACf,UAAO,KAAK,EAAE,UAAU;;EAG5B,IAAI,UAAU;AACV,UAAO,KAAK,EAAE;;;;;EAKlB,IAAI,cAAc;AACd,UAAO,KAAK,EAAE,gBAAgB,eAAe,aAAa;;EAE9D,IAAI,cAAc;AACd,UAAO,KAAK,EAAE;;;;;;EAMlB,IAAI,iBAAiB;AACjB,OAAI,KAAK,EAAE,kBAAkB,KACzB,QAAO,KAAK,OAAO;AAEvB,UAAO,KAAK,EAAE;;EAElB,IAAI,cAAc;AACd,UAAO,KAAK,EAAE;;EAGlB,IAAI,eAAe;AACf,UAAO,KAAK,EAAE;;EAElB,IAAI,YAAY;AACZ,UAAO,KAAK,EAAE,UAAU,UAAU;;EAEtC,IAAI,YAAY;AACZ,UAAO,KAAK,EAAE,SAAS;;;;;;;;;;;EAW3B,MAAM,iBAAiB,MAAM,SAAS;AAClC,cAAW,GAAG,QAAQ,gBAAgB,MAAM,QAAQ;AACpD,UAAO,OAAO,GAAG,oBAAoB,mBAAmB,MAAM,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BhF,MAAM,QAAQ,SAAS,SAAS;AAE5B,UAAO,OAAO,GAAG,oBAAoB,kBAAkB,KAAK,QAAQ,IAAI,cAAc,oBAAoB,KAAK,EAAE,WAAW,UAAU,GAAG,QAAQ,gBAAgB,QAAW;IACxK,IAAI,GAAG,OAAO,oBAAoB,QAAQ;IAC1C,WAAW,SAAS,aAAa,KAAK;IACtC,SAAS,SAAS;IAClB,gBAAgB,SAAS;IACzB,QAAQ,SAAS;IACpB,CAAC,CAAC,CAAC;;;;;;;;EAQR,UAAU,WAAW,EAAE,EAAE,SAAS;AAC9B,UAAO,IAAI,qBAAqB,kBAAkB,KAAK,QAAQ,KAAK,EAAE,WAAW,WAAW,GAAG,QAAQ,gBAAgB,MAAM,QAAQ,CAAC;;;EAG1I,QAAQ;AACJ,UAAO,IAAI,QAAQ,MAAM,KAAK;;;;;;;;;;EAUlC,WAAW,MAAM,UAAU,EAAE,EAAE;AAC3B,OAAI,OAAO,YAAY,WACnB,OAAM,IAAI,QAAQ,0BAA0B,qDAAqD;AAErG,UAAO,IAAI,aAAa,WAAW,MAAM,OAAO,GAAG,QAAQ,gBAAgB,MAAM,QAAQ,CAAC;;;;;;;EAO9F,MAAM,MAAM,SAAS;AACjB,UAAO,OAAO,GAAG,oBAAoB,kBAAkB,KAAK,QAAQ,IAAI,QAAQ,iBAAiB,OAAO,GAAG,QAAQ,gBAAgB,MAAM,QAAQ,CAAC,CAAC;;EAEvJ,gBAAgB,SAAS,EAAE,EAAE,UAAU,EAAE,EAAE;AACvC,UAAO,IAAI,0BAA0B,sBAAsB,MAAM,SAAS,GAAG,QAAQ,gBAAgB,MAAM,QAAQ,CAAC;;;;;;;;;;;;EAYxH,MAAM,iBAAiB,gBAAgB,cAAc,SAAS;AAE1D,UAAO,OAAO,GAAG,oBAAoB,kBAAkB,KAAK,QAAQ,IAAI,SAAS,gBAAgB,KAAK,WAAW,eAAe,EAAE,eAAe,GAAG,QAAQ,gBAAgB,QAAW;IACnL,GAAG;IACH,gBAAgB;IAChB,gBAAgB,kBAAkB,eAAe;IACpD,CAAC,CAAC,CAAC;;;;;;;;EAQR,MAAM,eAAe,MAAM,SAAS;AAChC,cAAW,GAAG,QAAQ,gBAAgB,MAAM,QAAQ;AACpD,UAAO,OAAO,GAAG,OAAO,iBAAiB,MAAM,MAAM,QAAQ;;;;;;;EAOjE,MAAM,aAAa,SAAS;AACxB,UAAO,OAAO,GAAG,oBAAoB,kBAAkB,KAAK,QAAQ,IAAI,OAAO,sBAAsB,OAAO,GAAG,QAAQ,gBAAgB,MAAM,QAAQ,CAAC,CAAC;;;;;;;EAO3J,MAAM,YAAY,SAAS;AACvB,cAAW,GAAG,QAAQ,gBAAgB,MAAM,QAAQ;AAEpD,WADoB,MAAM,KAAK,gBAAgB,EAAE,EAAE;IAAE,GAAG;IAAS,UAAU;IAAM,CAAC,CAAC,SAAS,EAEvF,QAEJ,EAAE,WAAW,CAAC,KAAK,SAAS,IAAI,CAAC,CAC7B,KAAK,EAAE,WAAW,IAAI,aAAa,WAAW,MAAM,MAAM,KAAK,EAAE,QAAQ,CAAC;;;;;;;;;EASnF,MAAM,YAAY,MAAM,WAAW,SAAS;AAExC,WADgB,OAAO,GAAG,oBAAoB,kBAAkB,KAAK,QAAQ,UAAU,uBAAuB,uBAAuB,MAAM,MAAM,WAAW,QAAQ,CAAC,EACtJ;;;;;;;;EAQnB,MAAM,WAAW,UAAU,SAAS;AAChC,UAAO,OAAO,GAAG,oBAAoB,kBAAkB,KAAK,QAAQ,IAAI,cAAc,oBAAoB,MAAM,WAAW,GAAG,QAAQ,gBAAgB,MAAM,QAAQ,CAAC,CAAC;;;;;;;;EAQ1K,MAAM,kBAAkB,OAAO,SAAS;AACpC,UAAO,OAAO,GAAG,oBAAoB,kBAAkB,KAAK,QAAQ,IAAI,sBAAsB,2BAA2B,MAAM,QAAQ,GAAG,QAAQ,gBAAgB,MAAM,QAAQ,CAAC,CAAC;;;;;;;EAOtL,MAAM,eAAe,SAAS;AAC1B,UAAO,OAAO,GAAG,oBAAoB,kBAAkB,KAAK,QAAQ,IAAI,kBAAkB,wBAAwB,OAAO,GAAG,QAAQ,gBAAgB,MAAM,QAAQ,CAAC,CAAC;;EAExK,MAAM,iBAAiB,MAAM,SAAS;AAClC,UAAO,MAAM,KAAK,WAAW,KAAK,CAAC,kBAAkB,GAAG,QAAQ,gBAAgB,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqEnG,MAAM,WAAW,EAAE,EAAE,UAAU,EAAE,EAAE;AAE/B,OAAI,CAAC,MAAM,QAAQ,SAAS,EAAE;AAC1B,cAAU;AACV,eAAW,EAAE;;AAEjB,UAAO,IAAI,gBAAgB,aAAa,MAAM,WAAW,GAAG,QAAQ,gBAAgB,MAAM,QAAQ,CAAC;;;;;;;;;;;EAWvG,iBAAiB,SAAS,SAAS;AAC/B,UAAO,IAAI,qBAAqB,iBAAiB,MAAM,SAAS,QAAQ;;;AAGhF,SAAQ,KAAK;AACb,IAAG,8BAA8B,UAAU;AAC3C,IAAG,0BAA0B,UAAU;AACvC,IAAG,4BAA4B,UAAU;AACzC,IAAG,yBAAyB,UAAU;AACtC,IAAG,4BAA4B,UAAU;AACzC,IAAG,uBAAuB,UAAU"}
@@ -1,124 +0,0 @@
1
- import { __commonJSMin, __require } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_error } from "./error.mjs";
3
-
4
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.js
5
- var require_deps = /* @__PURE__ */ __commonJSMin(((exports) => {
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.aws4 = void 0;
8
- exports.getKerberos = getKerberos;
9
- exports.getZstdLibrary = getZstdLibrary;
10
- exports.getAwsCredentialProvider = getAwsCredentialProvider;
11
- exports.getGcpMetadata = getGcpMetadata;
12
- exports.getSnappy = getSnappy;
13
- exports.getSocks = getSocks;
14
- exports.getMongoDBClientEncryption = getMongoDBClientEncryption;
15
- const error_1 = require_error();
16
- function makeErrorModule(error) {
17
- const props = error ? { kModuleError: error } : {};
18
- return new Proxy(props, {
19
- get: (_, key) => {
20
- if (key === "kModuleError") return error;
21
- throw error;
22
- },
23
- set: () => {
24
- throw error;
25
- }
26
- });
27
- }
28
- function getKerberos() {
29
- let kerberos;
30
- try {
31
- kerberos = __require("kerberos");
32
- } catch (error) {
33
- kerberos = makeErrorModule(new error_1.MongoMissingDependencyError("Optional module `kerberos` not found. Please install it to enable kerberos authentication", {
34
- cause: error,
35
- dependencyName: "kerberos"
36
- }));
37
- }
38
- return kerberos;
39
- }
40
- function getZstdLibrary() {
41
- let ZStandard;
42
- try {
43
- ZStandard = __require("@mongodb-js/zstd");
44
- } catch (error) {
45
- ZStandard = makeErrorModule(new error_1.MongoMissingDependencyError("Optional module `@mongodb-js/zstd` not found. Please install it to enable zstd compression", {
46
- cause: error,
47
- dependencyName: "zstd"
48
- }));
49
- }
50
- return ZStandard;
51
- }
52
- function getAwsCredentialProvider() {
53
- try {
54
- return __require("@aws-sdk/credential-providers");
55
- } catch (error) {
56
- return makeErrorModule(new error_1.MongoMissingDependencyError("Optional module `@aws-sdk/credential-providers` not found. Please install it to enable getting aws credentials via the official sdk.", {
57
- cause: error,
58
- dependencyName: "@aws-sdk/credential-providers"
59
- }));
60
- }
61
- }
62
- function getGcpMetadata() {
63
- try {
64
- return __require("gcp-metadata");
65
- } catch (error) {
66
- return makeErrorModule(new error_1.MongoMissingDependencyError("Optional module `gcp-metadata` not found. Please install it to enable getting gcp credentials via the official sdk.", {
67
- cause: error,
68
- dependencyName: "gcp-metadata"
69
- }));
70
- }
71
- }
72
- function getSnappy() {
73
- try {
74
- return __require("snappy");
75
- } catch (error) {
76
- return { kModuleError: new error_1.MongoMissingDependencyError("Optional module `snappy` not found. Please install it to enable snappy compression", {
77
- cause: error,
78
- dependencyName: "snappy"
79
- }) };
80
- }
81
- }
82
- function getSocks() {
83
- try {
84
- return __require("socks");
85
- } catch (error) {
86
- return { kModuleError: new error_1.MongoMissingDependencyError("Optional module `socks` not found. Please install it to connections over a SOCKS5 proxy", {
87
- cause: error,
88
- dependencyName: "socks"
89
- }) };
90
- }
91
- }
92
- exports.aws4 = loadAws4();
93
- function loadAws4() {
94
- let aws4;
95
- try {
96
- aws4 = __require("aws4");
97
- } catch (error) {
98
- aws4 = makeErrorModule(new error_1.MongoMissingDependencyError("Optional module `aws4` not found. Please install it to enable AWS authentication", {
99
- cause: error,
100
- dependencyName: "aws4"
101
- }));
102
- }
103
- return aws4;
104
- }
105
- /** A utility function to get the instance of mongodb-client-encryption, if it exists. */
106
- function getMongoDBClientEncryption() {
107
- let mongodbClientEncryption = null;
108
- try {
109
- mongodbClientEncryption = __require("mongodb-client-encryption");
110
- } catch (error) {
111
- return { kModuleError: new error_1.MongoMissingDependencyError("Optional module `mongodb-client-encryption` not found. Please install it to use auto encryption or ClientEncryption.", {
112
- cause: error,
113
- dependencyName: "mongodb-client-encryption"
114
- }) };
115
- }
116
- return mongodbClientEncryption;
117
- }
118
- }));
119
-
120
- //#endregion
121
- export default require_deps();
122
-
123
- export { require_deps };
124
- //# sourceMappingURL=deps.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deps.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.aws4 = void 0;\nexports.getKerberos = getKerberos;\nexports.getZstdLibrary = getZstdLibrary;\nexports.getAwsCredentialProvider = getAwsCredentialProvider;\nexports.getGcpMetadata = getGcpMetadata;\nexports.getSnappy = getSnappy;\nexports.getSocks = getSocks;\nexports.getMongoDBClientEncryption = getMongoDBClientEncryption;\nconst error_1 = require(\"./error\");\nfunction makeErrorModule(error) {\n const props = error ? { kModuleError: error } : {};\n return new Proxy(props, {\n get: (_, key) => {\n if (key === 'kModuleError') {\n return error;\n }\n throw error;\n },\n set: () => {\n throw error;\n }\n });\n}\nfunction getKerberos() {\n let kerberos;\n try {\n // Ensure you always wrap an optional require in the try block NODE-3199\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n kerberos = require('kerberos');\n }\n catch (error) {\n kerberos = makeErrorModule(new error_1.MongoMissingDependencyError('Optional module `kerberos` not found. Please install it to enable kerberos authentication', { cause: error, dependencyName: 'kerberos' }));\n }\n return kerberos;\n}\nfunction getZstdLibrary() {\n let ZStandard;\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n ZStandard = require('@mongodb-js/zstd');\n }\n catch (error) {\n ZStandard = makeErrorModule(new error_1.MongoMissingDependencyError('Optional module `@mongodb-js/zstd` not found. Please install it to enable zstd compression', { cause: error, dependencyName: 'zstd' }));\n }\n return ZStandard;\n}\nfunction getAwsCredentialProvider() {\n try {\n // Ensure you always wrap an optional require in the try block NODE-3199\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const credentialProvider = require('@aws-sdk/credential-providers');\n return credentialProvider;\n }\n catch (error) {\n return makeErrorModule(new error_1.MongoMissingDependencyError('Optional module `@aws-sdk/credential-providers` not found.' +\n ' Please install it to enable getting aws credentials via the official sdk.', { cause: error, dependencyName: '@aws-sdk/credential-providers' }));\n }\n}\nfunction getGcpMetadata() {\n try {\n // Ensure you always wrap an optional require in the try block NODE-3199\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const credentialProvider = require('gcp-metadata');\n return credentialProvider;\n }\n catch (error) {\n return makeErrorModule(new error_1.MongoMissingDependencyError('Optional module `gcp-metadata` not found.' +\n ' Please install it to enable getting gcp credentials via the official sdk.', { cause: error, dependencyName: 'gcp-metadata' }));\n }\n}\nfunction getSnappy() {\n try {\n // Ensure you always wrap an optional require in the try block NODE-3199\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const value = require('snappy');\n return value;\n }\n catch (error) {\n const kModuleError = new error_1.MongoMissingDependencyError('Optional module `snappy` not found. Please install it to enable snappy compression', { cause: error, dependencyName: 'snappy' });\n return { kModuleError };\n }\n}\nfunction getSocks() {\n try {\n // Ensure you always wrap an optional require in the try block NODE-3199\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const value = require('socks');\n return value;\n }\n catch (error) {\n const kModuleError = new error_1.MongoMissingDependencyError('Optional module `socks` not found. Please install it to connections over a SOCKS5 proxy', { cause: error, dependencyName: 'socks' });\n return { kModuleError };\n }\n}\nexports.aws4 = loadAws4();\nfunction loadAws4() {\n let aws4;\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n aws4 = require('aws4');\n }\n catch (error) {\n aws4 = makeErrorModule(new error_1.MongoMissingDependencyError('Optional module `aws4` not found. Please install it to enable AWS authentication', { cause: error, dependencyName: 'aws4' }));\n }\n return aws4;\n}\n/** A utility function to get the instance of mongodb-client-encryption, if it exists. */\nfunction getMongoDBClientEncryption() {\n let mongodbClientEncryption = null;\n try {\n // NOTE(NODE-3199): Ensure you always wrap an optional require literally in the try block\n // Cannot be moved to helper utility function, bundlers search and replace the actual require call\n // in a way that makes this line throw at bundle time, not runtime, catching here will make bundling succeed\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n mongodbClientEncryption = require('mongodb-client-encryption');\n }\n catch (error) {\n const kModuleError = new error_1.MongoMissingDependencyError('Optional module `mongodb-client-encryption` not found. Please install it to use auto encryption or ClientEncryption.', { cause: error, dependencyName: 'mongodb-client-encryption' });\n return { kModuleError };\n }\n return mongodbClientEncryption;\n}\n//# sourceMappingURL=deps.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,OAAO,KAAK;AACpB,SAAQ,cAAc;AACtB,SAAQ,iBAAiB;AACzB,SAAQ,2BAA2B;AACnC,SAAQ,iBAAiB;AACzB,SAAQ,YAAY;AACpB,SAAQ,WAAW;AACnB,SAAQ,6BAA6B;CACrC,MAAM;CACN,SAAS,gBAAgB,OAAO;EAC5B,MAAM,QAAQ,QAAQ,EAAE,cAAc,OAAO,GAAG,EAAE;AAClD,SAAO,IAAI,MAAM,OAAO;GACpB,MAAM,GAAG,QAAQ;AACb,QAAI,QAAQ,eACR,QAAO;AAEX,UAAM;;GAEV,WAAW;AACP,UAAM;;GAEb,CAAC;;CAEN,SAAS,cAAc;EACnB,IAAI;AACJ,MAAI;AAGA,wBAAmB,WAAW;WAE3B,OAAO;AACV,cAAW,gBAAgB,IAAI,QAAQ,4BAA4B,6FAA6F;IAAE,OAAO;IAAO,gBAAgB;IAAY,CAAC,CAAC;;AAElN,SAAO;;CAEX,SAAS,iBAAiB;EACtB,IAAI;AACJ,MAAI;AAEA,yBAAoB,mBAAmB;WAEpC,OAAO;AACV,eAAY,gBAAgB,IAAI,QAAQ,4BAA4B,8FAA8F;IAAE,OAAO;IAAO,gBAAgB;IAAQ,CAAC,CAAC;;AAEhN,SAAO;;CAEX,SAAS,2BAA2B;AAChC,MAAI;AAIA,oBADmC,gCAAgC;WAGhE,OAAO;AACV,UAAO,gBAAgB,IAAI,QAAQ,4BAA4B,wIACmB;IAAE,OAAO;IAAO,gBAAgB;IAAiC,CAAC,CAAC;;;CAG7J,SAAS,iBAAiB;AACtB,MAAI;AAIA,oBADmC,eAAe;WAG/C,OAAO;AACV,UAAO,gBAAgB,IAAI,QAAQ,4BAA4B,uHACmB;IAAE,OAAO;IAAO,gBAAgB;IAAgB,CAAC,CAAC;;;CAG5I,SAAS,YAAY;AACjB,MAAI;AAIA,oBADsB,SAAS;WAG5B,OAAO;AAEV,UAAO,EAAE,cADY,IAAI,QAAQ,4BAA4B,sFAAsF;IAAE,OAAO;IAAO,gBAAgB;IAAU,CAAC,EACvK;;;CAG/B,SAAS,WAAW;AAChB,MAAI;AAIA,oBADsB,QAAQ;WAG3B,OAAO;AAEV,UAAO,EAAE,cADY,IAAI,QAAQ,4BAA4B,2FAA2F;IAAE,OAAO;IAAO,gBAAgB;IAAS,CAAC,EAC3K;;;AAG/B,SAAQ,OAAO,UAAU;CACzB,SAAS,WAAW;EAChB,IAAI;AACJ,MAAI;AAEA,oBAAe,OAAO;WAEnB,OAAO;AACV,UAAO,gBAAgB,IAAI,QAAQ,4BAA4B,oFAAoF;IAAE,OAAO;IAAO,gBAAgB;IAAQ,CAAC,CAAC;;AAEjM,SAAO;;;CAGX,SAAS,6BAA6B;EAClC,IAAI,0BAA0B;AAC9B,MAAI;AAKA,uCAAkC,4BAA4B;WAE3D,OAAO;AAEV,UAAO,EAAE,cADY,IAAI,QAAQ,4BAA4B,wHAAwH;IAAE,OAAO;IAAO,gBAAgB;IAA6B,CAAC,EAC5N;;AAE3B,SAAO"}