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,37 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_responses } from "../cmap/wire_protocol/responses.mjs";
3
- import { require_operation } from "./operation.mjs";
4
- import { require_command } from "./command.mjs";
5
-
6
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.js
7
- var require_stats = /* @__PURE__ */ __commonJSMin(((exports) => {
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.DbStatsOperation = void 0;
10
- const responses_1 = require_responses();
11
- const command_1 = require_command();
12
- const operation_1 = require_operation();
13
- /** @internal */
14
- var DbStatsOperation = class extends command_1.CommandOperation {
15
- constructor(db, options) {
16
- super(db, options);
17
- this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
18
- this.options = options;
19
- }
20
- get commandName() {
21
- return "dbStats";
22
- }
23
- buildCommandDocument(_connection) {
24
- const command = { dbStats: true };
25
- if (this.options.scale != null) command.scale = this.options.scale;
26
- return command;
27
- }
28
- };
29
- exports.DbStatsOperation = DbStatsOperation;
30
- (0, operation_1.defineAspects)(DbStatsOperation, [operation_1.Aspect.READ_OPERATION]);
31
- }));
32
-
33
- //#endregion
34
- export default require_stats();
35
-
36
- export { require_stats };
37
- //# sourceMappingURL=stats.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stats.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DbStatsOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nclass DbStatsOperation extends command_1.CommandOperation {\n constructor(db, options) {\n super(db, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options;\n }\n get commandName() {\n return 'dbStats';\n }\n buildCommandDocument(_connection) {\n const command = { dbStats: true };\n if (this.options.scale != null) {\n command.scale = this.options.scale;\n }\n return command;\n }\n}\nexports.DbStatsOperation = DbStatsOperation;\n(0, operation_1.defineAspects)(DbStatsOperation, [operation_1.Aspect.READ_OPERATION]);\n//# sourceMappingURL=stats.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;;CAEN,IAAM,mBAAN,cAA+B,UAAU,iBAAiB;EACtD,YAAY,IAAI,SAAS;AACrB,SAAM,IAAI,QAAQ;AAClB,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU;;EAEnB,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,aAAa;GAC9B,MAAM,UAAU,EAAE,SAAS,MAAM;AACjC,OAAI,KAAK,QAAQ,SAAS,KACtB,SAAQ,QAAQ,KAAK,QAAQ;AAEjC,UAAO;;;AAGf,SAAQ,mBAAmB;AAC3B,EAAC,GAAG,YAAY,eAAe,kBAAkB,CAAC,YAAY,OAAO,eAAe,CAAC"}
@@ -1,171 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_error } from "../error.mjs";
3
- import { require_responses } from "../cmap/wire_protocol/responses.mjs";
4
- import { require_utils } from "../utils.mjs";
5
- import { require_operation } from "./operation.mjs";
6
- import { require_command } from "./command.mjs";
7
- import { require_sort } from "../sort.mjs";
8
-
9
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.js
10
- var require_update = /* @__PURE__ */ __commonJSMin(((exports) => {
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ReplaceOneOperation = exports.UpdateManyOperation = exports.UpdateOneOperation = exports.UpdateOperation = void 0;
13
- exports.makeUpdateStatement = makeUpdateStatement;
14
- const responses_1 = require_responses();
15
- const error_1 = require_error();
16
- const sort_1 = require_sort();
17
- const utils_1 = require_utils();
18
- const command_1 = require_command();
19
- const operation_1 = require_operation();
20
- /**
21
- * @internal
22
- * UpdateOperation is used in bulk write, while UpdateOneOperation and UpdateManyOperation are only used in the collections API
23
- */
24
- var UpdateOperation = class extends command_1.CommandOperation {
25
- constructor(ns, statements, options) {
26
- super(void 0, options);
27
- this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
28
- this.options = options;
29
- this.ns = ns;
30
- this.statements = statements;
31
- }
32
- get commandName() {
33
- return "update";
34
- }
35
- get canRetryWrite() {
36
- if (super.canRetryWrite === false) return false;
37
- return this.statements.every((op) => op.multi == null || op.multi === false);
38
- }
39
- buildCommandDocument(_connection, _session) {
40
- const options = this.options;
41
- const command = {
42
- update: this.ns.collection,
43
- updates: this.statements,
44
- ordered: options.ordered ?? true
45
- };
46
- if (typeof options.bypassDocumentValidation === "boolean") command.bypassDocumentValidation = options.bypassDocumentValidation;
47
- if (options.let) command.let = options.let;
48
- if (options.comment !== void 0) command.comment = options.comment;
49
- return command;
50
- }
51
- };
52
- exports.UpdateOperation = UpdateOperation;
53
- /** @internal */
54
- var UpdateOneOperation = class extends UpdateOperation {
55
- constructor(ns, filter, update, options) {
56
- super(ns, [makeUpdateStatement(filter, update, {
57
- ...options,
58
- multi: false
59
- })], options);
60
- if (!(0, utils_1.hasAtomicOperators)(update, options)) throw new error_1.MongoInvalidArgumentError("Update document requires atomic operators");
61
- }
62
- handleOk(response) {
63
- const res = super.handleOk(response);
64
- if (this.explain != null) return res;
65
- if (res.code) throw new error_1.MongoServerError(res);
66
- if (res.writeErrors) throw new error_1.MongoServerError(res.writeErrors[0]);
67
- return {
68
- acknowledged: this.writeConcern?.w !== 0,
69
- modifiedCount: res.nModified ?? res.n,
70
- upsertedId: Array.isArray(res.upserted) && res.upserted.length > 0 ? res.upserted[0]._id : null,
71
- upsertedCount: Array.isArray(res.upserted) && res.upserted.length ? res.upserted.length : 0,
72
- matchedCount: Array.isArray(res.upserted) && res.upserted.length > 0 ? 0 : res.n
73
- };
74
- }
75
- };
76
- exports.UpdateOneOperation = UpdateOneOperation;
77
- /** @internal */
78
- var UpdateManyOperation = class extends UpdateOperation {
79
- constructor(ns, filter, update, options) {
80
- super(ns, [makeUpdateStatement(filter, update, {
81
- ...options,
82
- multi: true
83
- })], options);
84
- if (!(0, utils_1.hasAtomicOperators)(update, options)) throw new error_1.MongoInvalidArgumentError("Update document requires atomic operators");
85
- }
86
- handleOk(response) {
87
- const res = super.handleOk(response);
88
- if (this.explain != null) return res;
89
- if (res.code) throw new error_1.MongoServerError(res);
90
- if (res.writeErrors) throw new error_1.MongoServerError(res.writeErrors[0]);
91
- return {
92
- acknowledged: this.writeConcern?.w !== 0,
93
- modifiedCount: res.nModified ?? res.n,
94
- upsertedId: Array.isArray(res.upserted) && res.upserted.length > 0 ? res.upserted[0]._id : null,
95
- upsertedCount: Array.isArray(res.upserted) && res.upserted.length ? res.upserted.length : 0,
96
- matchedCount: Array.isArray(res.upserted) && res.upserted.length > 0 ? 0 : res.n
97
- };
98
- }
99
- };
100
- exports.UpdateManyOperation = UpdateManyOperation;
101
- /** @internal */
102
- var ReplaceOneOperation = class extends UpdateOperation {
103
- constructor(ns, filter, replacement, options) {
104
- super(ns, [makeUpdateStatement(filter, replacement, {
105
- ...options,
106
- multi: false
107
- })], options);
108
- if ((0, utils_1.hasAtomicOperators)(replacement)) throw new error_1.MongoInvalidArgumentError("Replacement document must not contain atomic operators");
109
- }
110
- handleOk(response) {
111
- const res = super.handleOk(response);
112
- if (this.explain != null) return res;
113
- if (res.code) throw new error_1.MongoServerError(res);
114
- if (res.writeErrors) throw new error_1.MongoServerError(res.writeErrors[0]);
115
- return {
116
- acknowledged: this.writeConcern?.w !== 0,
117
- modifiedCount: res.nModified ?? res.n,
118
- upsertedId: Array.isArray(res.upserted) && res.upserted.length > 0 ? res.upserted[0]._id : null,
119
- upsertedCount: Array.isArray(res.upserted) && res.upserted.length ? res.upserted.length : 0,
120
- matchedCount: Array.isArray(res.upserted) && res.upserted.length > 0 ? 0 : res.n
121
- };
122
- }
123
- };
124
- exports.ReplaceOneOperation = ReplaceOneOperation;
125
- function makeUpdateStatement(filter, update, options) {
126
- if (filter == null || typeof filter !== "object") throw new error_1.MongoInvalidArgumentError("Selector must be a valid JavaScript object");
127
- if (update == null || typeof update !== "object") throw new error_1.MongoInvalidArgumentError("Document must be a valid JavaScript object");
128
- const op = {
129
- q: filter,
130
- u: update
131
- };
132
- if (typeof options.upsert === "boolean") op.upsert = options.upsert;
133
- if (options.multi) op.multi = options.multi;
134
- if (options.hint) op.hint = options.hint;
135
- if (options.arrayFilters) op.arrayFilters = options.arrayFilters;
136
- if (options.collation) op.collation = options.collation;
137
- if (!options.multi && options.sort != null) op.sort = (0, sort_1.formatSort)(options.sort);
138
- return op;
139
- }
140
- (0, operation_1.defineAspects)(UpdateOperation, [
141
- operation_1.Aspect.RETRYABLE,
142
- operation_1.Aspect.WRITE_OPERATION,
143
- operation_1.Aspect.SKIP_COLLATION,
144
- operation_1.Aspect.SUPPORTS_RAW_DATA
145
- ]);
146
- (0, operation_1.defineAspects)(UpdateOneOperation, [
147
- operation_1.Aspect.RETRYABLE,
148
- operation_1.Aspect.WRITE_OPERATION,
149
- operation_1.Aspect.EXPLAINABLE,
150
- operation_1.Aspect.SKIP_COLLATION,
151
- operation_1.Aspect.SUPPORTS_RAW_DATA
152
- ]);
153
- (0, operation_1.defineAspects)(UpdateManyOperation, [
154
- operation_1.Aspect.WRITE_OPERATION,
155
- operation_1.Aspect.EXPLAINABLE,
156
- operation_1.Aspect.SKIP_COLLATION,
157
- operation_1.Aspect.SUPPORTS_RAW_DATA
158
- ]);
159
- (0, operation_1.defineAspects)(ReplaceOneOperation, [
160
- operation_1.Aspect.RETRYABLE,
161
- operation_1.Aspect.WRITE_OPERATION,
162
- operation_1.Aspect.SKIP_COLLATION,
163
- operation_1.Aspect.SUPPORTS_RAW_DATA
164
- ]);
165
- }));
166
-
167
- //#endregion
168
- export default require_update();
169
-
170
- export { require_update };
171
- //# sourceMappingURL=update.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReplaceOneOperation = exports.UpdateManyOperation = exports.UpdateOneOperation = exports.UpdateOperation = void 0;\nexports.makeUpdateStatement = makeUpdateStatement;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst sort_1 = require(\"../sort\");\nconst utils_1 = require(\"../utils\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/**\n * @internal\n * UpdateOperation is used in bulk write, while UpdateOneOperation and UpdateManyOperation are only used in the collections API\n */\nclass UpdateOperation extends command_1.CommandOperation {\n constructor(ns, statements, options) {\n super(undefined, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options;\n this.ns = ns;\n this.statements = statements;\n }\n get commandName() {\n return 'update';\n }\n get canRetryWrite() {\n if (super.canRetryWrite === false) {\n return false;\n }\n return this.statements.every(op => op.multi == null || op.multi === false);\n }\n buildCommandDocument(_connection, _session) {\n const options = this.options;\n const command = {\n update: this.ns.collection,\n updates: this.statements,\n ordered: options.ordered ?? true\n };\n if (typeof options.bypassDocumentValidation === 'boolean') {\n command.bypassDocumentValidation = options.bypassDocumentValidation;\n }\n if (options.let) {\n command.let = options.let;\n }\n // we check for undefined specifically here to allow falsy values\n // eslint-disable-next-line no-restricted-syntax\n if (options.comment !== undefined) {\n command.comment = options.comment;\n }\n return command;\n }\n}\nexports.UpdateOperation = UpdateOperation;\n/** @internal */\nclass UpdateOneOperation extends UpdateOperation {\n constructor(ns, filter, update, options) {\n super(ns, [makeUpdateStatement(filter, update, { ...options, multi: false })], options);\n if (!(0, utils_1.hasAtomicOperators)(update, options)) {\n throw new error_1.MongoInvalidArgumentError('Update document requires atomic operators');\n }\n }\n handleOk(response) {\n const res = super.handleOk(response);\n // @ts-expect-error Explain typing is broken\n if (this.explain != null)\n return res;\n if (res.code)\n throw new error_1.MongoServerError(res);\n if (res.writeErrors)\n throw new error_1.MongoServerError(res.writeErrors[0]);\n return {\n acknowledged: this.writeConcern?.w !== 0,\n modifiedCount: res.nModified ?? res.n,\n upsertedId: Array.isArray(res.upserted) && res.upserted.length > 0 ? res.upserted[0]._id : null,\n upsertedCount: Array.isArray(res.upserted) && res.upserted.length ? res.upserted.length : 0,\n matchedCount: Array.isArray(res.upserted) && res.upserted.length > 0 ? 0 : res.n\n };\n }\n}\nexports.UpdateOneOperation = UpdateOneOperation;\n/** @internal */\nclass UpdateManyOperation extends UpdateOperation {\n constructor(ns, filter, update, options) {\n super(ns, [makeUpdateStatement(filter, update, { ...options, multi: true })], options);\n if (!(0, utils_1.hasAtomicOperators)(update, options)) {\n throw new error_1.MongoInvalidArgumentError('Update document requires atomic operators');\n }\n }\n handleOk(response) {\n const res = super.handleOk(response);\n // @ts-expect-error Explain typing is broken\n if (this.explain != null)\n return res;\n if (res.code)\n throw new error_1.MongoServerError(res);\n if (res.writeErrors)\n throw new error_1.MongoServerError(res.writeErrors[0]);\n return {\n acknowledged: this.writeConcern?.w !== 0,\n modifiedCount: res.nModified ?? res.n,\n upsertedId: Array.isArray(res.upserted) && res.upserted.length > 0 ? res.upserted[0]._id : null,\n upsertedCount: Array.isArray(res.upserted) && res.upserted.length ? res.upserted.length : 0,\n matchedCount: Array.isArray(res.upserted) && res.upserted.length > 0 ? 0 : res.n\n };\n }\n}\nexports.UpdateManyOperation = UpdateManyOperation;\n/** @internal */\nclass ReplaceOneOperation extends UpdateOperation {\n constructor(ns, filter, replacement, options) {\n super(ns, [makeUpdateStatement(filter, replacement, { ...options, multi: false })], options);\n if ((0, utils_1.hasAtomicOperators)(replacement)) {\n throw new error_1.MongoInvalidArgumentError('Replacement document must not contain atomic operators');\n }\n }\n handleOk(response) {\n const res = super.handleOk(response);\n // @ts-expect-error Explain typing is broken\n if (this.explain != null)\n return res;\n if (res.code)\n throw new error_1.MongoServerError(res);\n if (res.writeErrors)\n throw new error_1.MongoServerError(res.writeErrors[0]);\n return {\n acknowledged: this.writeConcern?.w !== 0,\n modifiedCount: res.nModified ?? res.n,\n upsertedId: Array.isArray(res.upserted) && res.upserted.length > 0 ? res.upserted[0]._id : null,\n upsertedCount: Array.isArray(res.upserted) && res.upserted.length ? res.upserted.length : 0,\n matchedCount: Array.isArray(res.upserted) && res.upserted.length > 0 ? 0 : res.n\n };\n }\n}\nexports.ReplaceOneOperation = ReplaceOneOperation;\nfunction makeUpdateStatement(filter, update, options) {\n if (filter == null || typeof filter !== 'object') {\n throw new error_1.MongoInvalidArgumentError('Selector must be a valid JavaScript object');\n }\n if (update == null || typeof update !== 'object') {\n throw new error_1.MongoInvalidArgumentError('Document must be a valid JavaScript object');\n }\n const op = { q: filter, u: update };\n if (typeof options.upsert === 'boolean') {\n op.upsert = options.upsert;\n }\n if (options.multi) {\n op.multi = options.multi;\n }\n if (options.hint) {\n op.hint = options.hint;\n }\n if (options.arrayFilters) {\n op.arrayFilters = options.arrayFilters;\n }\n if (options.collation) {\n op.collation = options.collation;\n }\n if (!options.multi && options.sort != null) {\n op.sort = (0, sort_1.formatSort)(options.sort);\n }\n return op;\n}\n(0, operation_1.defineAspects)(UpdateOperation, [\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.WRITE_OPERATION,\n operation_1.Aspect.SKIP_COLLATION,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n(0, operation_1.defineAspects)(UpdateOneOperation, [\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.WRITE_OPERATION,\n operation_1.Aspect.EXPLAINABLE,\n operation_1.Aspect.SKIP_COLLATION,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n(0, operation_1.defineAspects)(UpdateManyOperation, [\n operation_1.Aspect.WRITE_OPERATION,\n operation_1.Aspect.EXPLAINABLE,\n operation_1.Aspect.SKIP_COLLATION,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n(0, operation_1.defineAspects)(ReplaceO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AAO,WAAW,SACpC,OAAM,IAAI,QAAQ,0BAA0B,6CAA6C;AAE7F,MAAI,UAAU,QAAQ,OAAO,WAAW,SACpC,OAAM,IAAI,QAAQ,0BAA0B,6CAA6C;EAE7F,MAAM,KAAK;GAAE,GAAG;GAAQ,GAAG;GAAQ;AACnC,MAAI,OAAO,QAAQ,WAAW,UAC1B,IAAG,SAAS,QAAQ;AAExB,MAAI,QAAQ,MACR,IAAG,QAAQ,QAAQ;AAEvB,MAAI,QAAQ,KACR,IAAG,OAAO,QAAQ;AAEtB,MAAI,QAAQ,aACR,IAAG,eAAe,QAAQ;AAE9B,MAAI,QAAQ,UACR,IAAG,YAAY,QAAQ;AAE3B,MAAI,CAAC,QAAQ,SAAS,QAAQ,QAAQ,KAClC,IAAG,QAAQ,GAAG,OAAO,YAAY,QAAQ,KAAK;AAElD,SAAO;;AAEX,EAAC,GAAG,YAAY,eAAe,iBAAiB;EAC5C,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC;AACF,EAAC,GAAG,YAAY,eAAe,oBAAoB;EAC/C,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC;AACF,EAAC,GAAG,YAAY,eAAe,qBAAqB;EAChD,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC;AACF,EAAC,GAAG,YAAY,eAAe,qBAAqB;EAChD,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC"}
@@ -1,45 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_error } from "../error.mjs";
3
- import { require_responses } from "../cmap/wire_protocol/responses.mjs";
4
- import { require_command } from "./command.mjs";
5
-
6
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.js
7
- var require_validate_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.ValidateCollectionOperation = void 0;
10
- const responses_1 = require_responses();
11
- const error_1 = require_error();
12
- const command_1 = require_command();
13
- /** @internal */
14
- var ValidateCollectionOperation = class extends command_1.CommandOperation {
15
- constructor(admin, collectionName, options) {
16
- super(admin.s.db, options);
17
- this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
18
- this.options = options;
19
- this.collectionName = collectionName;
20
- }
21
- get commandName() {
22
- return "validate";
23
- }
24
- buildCommandDocument(_connection, _session) {
25
- return {
26
- validate: this.collectionName,
27
- ...Object.fromEntries(Object.entries(this.options).filter((entry) => entry[0] !== "session"))
28
- };
29
- }
30
- handleOk(response) {
31
- const result = super.handleOk(response);
32
- if (result.result != null && typeof result.result !== "string") throw new error_1.MongoUnexpectedServerResponseError("Error with validation data");
33
- if (result.result != null && result.result.match(/exception|corrupt/) != null) throw new error_1.MongoUnexpectedServerResponseError(`Invalid collection ${this.collectionName}`);
34
- if (result.valid != null && !result.valid) throw new error_1.MongoUnexpectedServerResponseError(`Invalid collection ${this.collectionName}`);
35
- return response;
36
- }
37
- };
38
- exports.ValidateCollectionOperation = ValidateCollectionOperation;
39
- }));
40
-
41
- //#endregion
42
- export default require_validate_collection();
43
-
44
- export { require_validate_collection };
45
- //# sourceMappingURL=validate_collection.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validate_collection.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ValidateCollectionOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst command_1 = require(\"./command\");\n/** @internal */\nclass ValidateCollectionOperation extends command_1.CommandOperation {\n constructor(admin, collectionName, options) {\n super(admin.s.db, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options;\n this.collectionName = collectionName;\n }\n get commandName() {\n return 'validate';\n }\n buildCommandDocument(_connection, _session) {\n // Decorate command with extra options\n return {\n validate: this.collectionName,\n ...Object.fromEntries(Object.entries(this.options).filter(entry => entry[0] !== 'session'))\n };\n }\n handleOk(response) {\n const result = super.handleOk(response);\n if (result.result != null && typeof result.result !== 'string')\n throw new error_1.MongoUnexpectedServerResponseError('Error with validation data');\n if (result.result != null && result.result.match(/exception|corrupt/) != null)\n throw new error_1.MongoUnexpectedServerResponseError(`Invalid collection ${this.collectionName}`);\n if (result.valid != null && !result.valid)\n throw new error_1.MongoUnexpectedServerResponseError(`Invalid collection ${this.collectionName}`);\n return response;\n }\n}\nexports.ValidateCollectionOperation = ValidateCollectionOperation;\n//# sourceMappingURL=validate_collection.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,8BAA8B,KAAK;CAC3C,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,8BAAN,cAA0C,UAAU,iBAAiB;EACjE,YAAY,OAAO,gBAAgB,SAAS;AACxC,SAAM,MAAM,EAAE,IAAI,QAAQ;AAC1B,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU;AACf,QAAK,iBAAiB;;EAE1B,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,aAAa,UAAU;AAExC,UAAO;IACH,UAAU,KAAK;IACf,GAAG,OAAO,YAAY,OAAO,QAAQ,KAAK,QAAQ,CAAC,QAAO,UAAS,MAAM,OAAO,UAAU,CAAC;IAC9F;;EAEL,SAAS,UAAU;GACf,MAAM,SAAS,MAAM,SAAS,SAAS;AACvC,OAAI,OAAO,UAAU,QAAQ,OAAO,OAAO,WAAW,SAClD,OAAM,IAAI,QAAQ,mCAAmC,6BAA6B;AACtF,OAAI,OAAO,UAAU,QAAQ,OAAO,OAAO,MAAM,oBAAoB,IAAI,KACrE,OAAM,IAAI,QAAQ,mCAAmC,sBAAsB,KAAK,iBAAiB;AACrG,OAAI,OAAO,SAAS,QAAQ,CAAC,OAAO,MAChC,OAAM,IAAI,QAAQ,mCAAmC,sBAAsB,KAAK,iBAAiB;AACrG,UAAO;;;AAGf,SAAQ,8BAA8B"}
@@ -1,71 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.js
4
- var require_read_concern = /* @__PURE__ */ __commonJSMin(((exports) => {
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ReadConcern = exports.ReadConcernLevel = void 0;
7
- /** @public */
8
- exports.ReadConcernLevel = Object.freeze({
9
- local: "local",
10
- majority: "majority",
11
- linearizable: "linearizable",
12
- available: "available",
13
- snapshot: "snapshot"
14
- });
15
- /**
16
- * The MongoDB ReadConcern, which allows for control of the consistency and isolation properties
17
- * of the data read from replica sets and replica set shards.
18
- * @public
19
- *
20
- * @see https://www.mongodb.com/docs/manual/reference/read-concern/index.html
21
- */
22
- var ReadConcern = class ReadConcern {
23
- /** Constructs a ReadConcern from the read concern level.*/
24
- constructor(level) {
25
- /**
26
- * A spec test exists that allows level to be any string.
27
- * "invalid readConcern with out stage"
28
- * @see ./test/spec/crud/v2/aggregate-out-readConcern.json
29
- * @see https://github.com/mongodb/specifications/blob/master/source/read-write-concern/read-write-concern.md#unknown-levels-and-additional-options-for-string-based-readconcerns
30
- */
31
- this.level = exports.ReadConcernLevel[level] ?? level;
32
- }
33
- /**
34
- * Construct a ReadConcern given an options object.
35
- *
36
- * @param options - The options object from which to extract the write concern.
37
- */
38
- static fromOptions(options) {
39
- if (options == null) return;
40
- if (options.readConcern) {
41
- const { readConcern } = options;
42
- if (readConcern instanceof ReadConcern) return readConcern;
43
- else if (typeof readConcern === "string") return new ReadConcern(readConcern);
44
- else if ("level" in readConcern && readConcern.level) return new ReadConcern(readConcern.level);
45
- }
46
- if (options.level) return new ReadConcern(options.level);
47
- }
48
- static get MAJORITY() {
49
- return exports.ReadConcernLevel.majority;
50
- }
51
- static get AVAILABLE() {
52
- return exports.ReadConcernLevel.available;
53
- }
54
- static get LINEARIZABLE() {
55
- return exports.ReadConcernLevel.linearizable;
56
- }
57
- static get SNAPSHOT() {
58
- return exports.ReadConcernLevel.snapshot;
59
- }
60
- toJSON() {
61
- return { level: this.level };
62
- }
63
- };
64
- exports.ReadConcern = ReadConcern;
65
- }));
66
-
67
- //#endregion
68
- export default require_read_concern();
69
-
70
- export { require_read_concern };
71
- //# sourceMappingURL=read_concern.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"read_concern.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReadConcern = exports.ReadConcernLevel = void 0;\n/** @public */\nexports.ReadConcernLevel = Object.freeze({\n local: 'local',\n majority: 'majority',\n linearizable: 'linearizable',\n available: 'available',\n snapshot: 'snapshot'\n});\n/**\n * The MongoDB ReadConcern, which allows for control of the consistency and isolation properties\n * of the data read from replica sets and replica set shards.\n * @public\n *\n * @see https://www.mongodb.com/docs/manual/reference/read-concern/index.html\n */\nclass ReadConcern {\n /** Constructs a ReadConcern from the read concern level.*/\n constructor(level) {\n /**\n * A spec test exists that allows level to be any string.\n * \"invalid readConcern with out stage\"\n * @see ./test/spec/crud/v2/aggregate-out-readConcern.json\n * @see https://github.com/mongodb/specifications/blob/master/source/read-write-concern/read-write-concern.md#unknown-levels-and-additional-options-for-string-based-readconcerns\n */\n this.level = exports.ReadConcernLevel[level] ?? level;\n }\n /**\n * Construct a ReadConcern given an options object.\n *\n * @param options - The options object from which to extract the write concern.\n */\n static fromOptions(options) {\n if (options == null) {\n return;\n }\n if (options.readConcern) {\n const { readConcern } = options;\n if (readConcern instanceof ReadConcern) {\n return readConcern;\n }\n else if (typeof readConcern === 'string') {\n return new ReadConcern(readConcern);\n }\n else if ('level' in readConcern && readConcern.level) {\n return new ReadConcern(readConcern.level);\n }\n }\n if (options.level) {\n return new ReadConcern(options.level);\n }\n return;\n }\n static get MAJORITY() {\n return exports.ReadConcernLevel.majority;\n }\n static get AVAILABLE() {\n return exports.ReadConcernLevel.available;\n }\n static get LINEARIZABLE() {\n return exports.ReadConcernLevel.linearizable;\n }\n static get SNAPSHOT() {\n return exports.ReadConcernLevel.snapshot;\n }\n toJSON() {\n return { level: this.level };\n }\n}\nexports.ReadConcern = ReadConcern;\n//# sourceMappingURL=read_concern.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,cAAc,QAAQ,mBAAmB,KAAK;;AAEtD,SAAQ,mBAAmB,OAAO,OAAO;EACrC,OAAO;EACP,UAAU;EACV,cAAc;EACd,WAAW;EACX,UAAU;EACb,CAAC;;;;;;;;CAQF,IAAM,cAAN,MAAM,YAAY;;EAEd,YAAY,OAAO;;;;;;;AAOf,QAAK,QAAQ,QAAQ,iBAAiB,UAAU;;;;;;;EAOpD,OAAO,YAAY,SAAS;AACxB,OAAI,WAAW,KACX;AAEJ,OAAI,QAAQ,aAAa;IACrB,MAAM,EAAE,gBAAgB;AACxB,QAAI,uBAAuB,YACvB,QAAO;aAEF,OAAO,gBAAgB,SAC5B,QAAO,IAAI,YAAY,YAAY;aAE9B,WAAW,eAAe,YAAY,MAC3C,QAAO,IAAI,YAAY,YAAY,MAAM;;AAGjD,OAAI,QAAQ,MACR,QAAO,IAAI,YAAY,QAAQ,MAAM;;EAI7C,WAAW,WAAW;AAClB,UAAO,QAAQ,iBAAiB;;EAEpC,WAAW,YAAY;AACnB,UAAO,QAAQ,iBAAiB;;EAEpC,WAAW,eAAe;AACtB,UAAO,QAAQ,iBAAiB;;EAEpC,WAAW,WAAW;AAClB,UAAO,QAAQ,iBAAiB;;EAEpC,SAAS;AACL,UAAO,EAAE,OAAO,KAAK,OAAO;;;AAGpC,SAAQ,cAAc"}
@@ -1,165 +0,0 @@
1
- import { __commonJSMin } 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/read_preference.js
5
- var require_read_preference = /* @__PURE__ */ __commonJSMin(((exports) => {
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.ReadPreference = exports.ReadPreferenceMode = void 0;
8
- const error_1 = require_error();
9
- /** @public */
10
- exports.ReadPreferenceMode = Object.freeze({
11
- primary: "primary",
12
- primaryPreferred: "primaryPreferred",
13
- secondary: "secondary",
14
- secondaryPreferred: "secondaryPreferred",
15
- nearest: "nearest"
16
- });
17
- /**
18
- * The **ReadPreference** class is a class that represents a MongoDB ReadPreference and is
19
- * used to construct connections.
20
- * @public
21
- *
22
- * @see https://www.mongodb.com/docs/manual/core/read-preference/
23
- */
24
- var ReadPreference = class ReadPreference {
25
- /**
26
- * @param mode - A string describing the read preference mode (primary|primaryPreferred|secondary|secondaryPreferred|nearest)
27
- * @param tags - A tag set used to target reads to members with the specified tag(s). tagSet is not available if using read preference mode primary.
28
- * @param options - Additional read preference options
29
- */
30
- constructor(mode, tags, options) {
31
- if (!ReadPreference.isValid(mode)) throw new error_1.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(mode)}`);
32
- if (options == null && typeof tags === "object" && !Array.isArray(tags)) {
33
- options = tags;
34
- tags = void 0;
35
- } else if (tags && !Array.isArray(tags)) throw new error_1.MongoInvalidArgumentError("ReadPreference tags must be an array");
36
- this.mode = mode;
37
- this.tags = tags;
38
- this.hedge = options?.hedge;
39
- this.maxStalenessSeconds = void 0;
40
- this.minWireVersion = void 0;
41
- options = options ?? {};
42
- if (options.maxStalenessSeconds != null) {
43
- if (options.maxStalenessSeconds <= 0) throw new error_1.MongoInvalidArgumentError("maxStalenessSeconds must be a positive integer");
44
- this.maxStalenessSeconds = options.maxStalenessSeconds;
45
- this.minWireVersion = 5;
46
- }
47
- if (this.mode === ReadPreference.PRIMARY) {
48
- if (this.tags && Array.isArray(this.tags) && this.tags.length > 0) throw new error_1.MongoInvalidArgumentError("Primary read preference cannot be combined with tags");
49
- if (this.maxStalenessSeconds) throw new error_1.MongoInvalidArgumentError("Primary read preference cannot be combined with maxStalenessSeconds");
50
- if (this.hedge) throw new error_1.MongoInvalidArgumentError("Primary read preference cannot be combined with hedge");
51
- }
52
- }
53
- get preference() {
54
- return this.mode;
55
- }
56
- static fromString(mode) {
57
- return new ReadPreference(mode);
58
- }
59
- /**
60
- * Construct a ReadPreference given an options object.
61
- *
62
- * @param options - The options object from which to extract the read preference.
63
- */
64
- static fromOptions(options) {
65
- if (!options) return;
66
- const readPreference = options.readPreference ?? options.session?.transaction.options.readPreference;
67
- const readPreferenceTags = options.readPreferenceTags;
68
- if (readPreference == null) return;
69
- if (typeof readPreference === "string") return new ReadPreference(readPreference, readPreferenceTags, {
70
- maxStalenessSeconds: options.maxStalenessSeconds,
71
- hedge: options.hedge
72
- });
73
- else if (!(readPreference instanceof ReadPreference) && typeof readPreference === "object") {
74
- const mode = readPreference.mode || readPreference.preference;
75
- if (mode && typeof mode === "string") return new ReadPreference(mode, readPreference.tags ?? readPreferenceTags, {
76
- maxStalenessSeconds: readPreference.maxStalenessSeconds,
77
- hedge: options.hedge
78
- });
79
- }
80
- if (readPreferenceTags) readPreference.tags = readPreferenceTags;
81
- return readPreference;
82
- }
83
- /**
84
- * Replaces options.readPreference with a ReadPreference instance
85
- */
86
- static translate(options) {
87
- if (options.readPreference == null) return options;
88
- const r = options.readPreference;
89
- if (typeof r === "string") options.readPreference = new ReadPreference(r);
90
- else if (r && !(r instanceof ReadPreference) && typeof r === "object") {
91
- const mode = r.mode || r.preference;
92
- if (mode && typeof mode === "string") options.readPreference = new ReadPreference(mode, r.tags, { maxStalenessSeconds: r.maxStalenessSeconds });
93
- } else if (!(r instanceof ReadPreference)) throw new error_1.MongoInvalidArgumentError(`Invalid read preference: ${r}`);
94
- return options;
95
- }
96
- /**
97
- * Validate if a mode is legal
98
- *
99
- * @param mode - The string representing the read preference mode.
100
- */
101
- static isValid(mode) {
102
- return new Set([
103
- ReadPreference.PRIMARY,
104
- ReadPreference.PRIMARY_PREFERRED,
105
- ReadPreference.SECONDARY,
106
- ReadPreference.SECONDARY_PREFERRED,
107
- ReadPreference.NEAREST,
108
- null
109
- ]).has(mode);
110
- }
111
- /**
112
- * Validate if a mode is legal
113
- *
114
- * @param mode - The string representing the read preference mode.
115
- */
116
- isValid(mode) {
117
- return ReadPreference.isValid(typeof mode === "string" ? mode : this.mode);
118
- }
119
- /**
120
- * Indicates that this readPreference needs the "SecondaryOk" bit when sent over the wire
121
- * @see https://www.mongodb.com/docs/manual/reference/mongodb-wire-protocol/#op-query
122
- */
123
- secondaryOk() {
124
- return new Set([
125
- ReadPreference.PRIMARY_PREFERRED,
126
- ReadPreference.SECONDARY,
127
- ReadPreference.SECONDARY_PREFERRED,
128
- ReadPreference.NEAREST
129
- ]).has(this.mode);
130
- }
131
- /**
132
- * Check if the two ReadPreferences are equivalent
133
- *
134
- * @param readPreference - The read preference with which to check equality
135
- */
136
- equals(readPreference) {
137
- return readPreference.mode === this.mode;
138
- }
139
- /** Return JSON representation */
140
- toJSON() {
141
- const readPreference = { mode: this.mode };
142
- if (Array.isArray(this.tags)) readPreference.tags = this.tags;
143
- if (this.maxStalenessSeconds) readPreference.maxStalenessSeconds = this.maxStalenessSeconds;
144
- if (this.hedge) readPreference.hedge = this.hedge;
145
- return readPreference;
146
- }
147
- };
148
- exports.ReadPreference = ReadPreference;
149
- ReadPreference.PRIMARY = exports.ReadPreferenceMode.primary;
150
- ReadPreference.PRIMARY_PREFERRED = exports.ReadPreferenceMode.primaryPreferred;
151
- ReadPreference.SECONDARY = exports.ReadPreferenceMode.secondary;
152
- ReadPreference.SECONDARY_PREFERRED = exports.ReadPreferenceMode.secondaryPreferred;
153
- ReadPreference.NEAREST = exports.ReadPreferenceMode.nearest;
154
- ReadPreference.primary = new ReadPreference(exports.ReadPreferenceMode.primary);
155
- ReadPreference.primaryPreferred = new ReadPreference(exports.ReadPreferenceMode.primaryPreferred);
156
- ReadPreference.secondary = new ReadPreference(exports.ReadPreferenceMode.secondary);
157
- ReadPreference.secondaryPreferred = new ReadPreference(exports.ReadPreferenceMode.secondaryPreferred);
158
- ReadPreference.nearest = new ReadPreference(exports.ReadPreferenceMode.nearest);
159
- }));
160
-
161
- //#endregion
162
- export default require_read_preference();
163
-
164
- export { require_read_preference };
165
- //# sourceMappingURL=read_preference.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"read_preference.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReadPreference = exports.ReadPreferenceMode = void 0;\nconst error_1 = require(\"./error\");\n/** @public */\nexports.ReadPreferenceMode = Object.freeze({\n primary: 'primary',\n primaryPreferred: 'primaryPreferred',\n secondary: 'secondary',\n secondaryPreferred: 'secondaryPreferred',\n nearest: 'nearest'\n});\n/**\n * The **ReadPreference** class is a class that represents a MongoDB ReadPreference and is\n * used to construct connections.\n * @public\n *\n * @see https://www.mongodb.com/docs/manual/core/read-preference/\n */\nclass ReadPreference {\n /**\n * @param mode - A string describing the read preference mode (primary|primaryPreferred|secondary|secondaryPreferred|nearest)\n * @param tags - A tag set used to target reads to members with the specified tag(s). tagSet is not available if using read preference mode primary.\n * @param options - Additional read preference options\n */\n constructor(mode, tags, options) {\n if (!ReadPreference.isValid(mode)) {\n throw new error_1.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(mode)}`);\n }\n if (options == null && typeof tags === 'object' && !Array.isArray(tags)) {\n options = tags;\n tags = undefined;\n }\n else if (tags && !Array.isArray(tags)) {\n throw new error_1.MongoInvalidArgumentError('ReadPreference tags must be an array');\n }\n this.mode = mode;\n this.tags = tags;\n this.hedge = options?.hedge;\n this.maxStalenessSeconds = undefined;\n this.minWireVersion = undefined;\n options = options ?? {};\n if (options.maxStalenessSeconds != null) {\n if (options.maxStalenessSeconds <= 0) {\n throw new error_1.MongoInvalidArgumentError('maxStalenessSeconds must be a positive integer');\n }\n this.maxStalenessSeconds = options.maxStalenessSeconds;\n // NOTE: The minimum required wire version is 5 for this read preference. If the existing\n // topology has a lower value then a MongoError will be thrown during server selection.\n this.minWireVersion = 5;\n }\n if (this.mode === ReadPreference.PRIMARY) {\n if (this.tags && Array.isArray(this.tags) && this.tags.length > 0) {\n throw new error_1.MongoInvalidArgumentError('Primary read preference cannot be combined with tags');\n }\n if (this.maxStalenessSeconds) {\n throw new error_1.MongoInvalidArgumentError('Primary read preference cannot be combined with maxStalenessSeconds');\n }\n if (this.hedge) {\n throw new error_1.MongoInvalidArgumentError('Primary read preference cannot be combined with hedge');\n }\n }\n }\n // Support the deprecated `preference` property introduced in the porcelain layer\n get preference() {\n return this.mode;\n }\n static fromString(mode) {\n return new ReadPreference(mode);\n }\n /**\n * Construct a ReadPreference given an options object.\n *\n * @param options - The options object from which to extract the read preference.\n */\n static fromOptions(options) {\n if (!options)\n return;\n const readPreference = options.readPreference ?? options.session?.transaction.options.readPreference;\n const readPreferenceTags = options.readPreferenceTags;\n if (readPreference == null) {\n return;\n }\n if (typeof readPreference === 'string') {\n return new ReadPreference(readPreference, readPreferenceTags, {\n maxStalenessSeconds: options.maxStalenessSeconds,\n hedge: options.hedge\n });\n }\n else if (!(readPreference instanceof ReadPreference) && typeof readPreference === 'object') {\n const mode = readPreference.mode || readPreference.preference;\n if (mode && typeof mode === 'string') {\n return new ReadPreference(mode, readPreference.tags ?? readPreferenceTags, {\n maxStalenessSeconds: readPreference.maxStalenessSeconds,\n hedge: options.hedge\n });\n }\n }\n if (readPreferenceTags) {\n readPreference.tags = readPreferenceTags;\n }\n return readPreference;\n }\n /**\n * Replaces options.readPreference with a ReadPreference instance\n */\n static translate(options) {\n if (options.readPreference == null)\n return options;\n const r = options.readPreference;\n if (typeof r === 'string') {\n options.readPreference = new ReadPreference(r);\n }\n else if (r && !(r instanceof ReadPreference) && typeof r === 'object') {\n const mode = r.mode || r.preference;\n if (mode && typeof mode === 'string') {\n options.readPreference = new ReadPreference(mode, r.tags, {\n maxStalenessSeconds: r.maxStalenessSeconds\n });\n }\n }\n else if (!(r instanceof ReadPreference)) {\n throw new error_1.MongoInvalidArgumentError(`Invalid read preference: ${r}`);\n }\n return options;\n }\n /**\n * Validate if a mode is legal\n *\n * @param mode - The string representing the read preference mode.\n */\n static isValid(mode) {\n const VALID_MODES = new Set([\n ReadPreference.PRIMARY,\n ReadPreference.PRIMARY_PREFERRED,\n ReadPreference.SECONDARY,\n ReadPreference.SECONDARY_PREFERRED,\n ReadPreference.NEAREST,\n null\n ]);\n return VALID_MODES.has(mode);\n }\n /**\n * Validate if a mode is legal\n *\n * @param mode - The string representing the read preference mode.\n */\n isValid(mode) {\n return ReadPreference.isValid(typeof mode === 'string' ? mode : this.mode);\n }\n /**\n * Indicates that this readPreference needs the \"SecondaryOk\" bit when sent over the wire\n * @see https://www.mongodb.com/docs/manual/reference/mongodb-wire-protocol/#op-query\n */\n secondaryOk() {\n const NEEDS_SECONDARYOK = new Set([\n ReadPreference.PRIMARY_PREFERRED,\n ReadPreference.SECONDARY,\n ReadPreference.SECONDARY_PREFERRED,\n ReadPreference.NEAREST\n ]);\n return NEEDS_SECONDARYOK.has(this.mode);\n }\n /**\n * Check if the two ReadPreferences are equivalent\n *\n * @param readPreference - The read preference with which to check equality\n */\n equals(readPreference) {\n return readPreference.mode === this.mode;\n }\n /** Return JSON representation */\n toJSON() {\n const readPreference = { mode: this.mode };\n if (Array.isArray(this.tags))\n readPreference.tags = this.tags;\n if (this.maxStalenessSeconds)\n readPreference.maxStalenessSeconds = this.maxStalenessSeconds;\n if (this.hedge)\n readPreference.hedge = this.hedge;\n return readPreference;\n }\n}\nexports.ReadPreference = ReadPreference;\nReadPreference.PRIMARY = exports.ReadPreferenceMode.primary;\nReadPreference.PRIMARY_PREFERRED = exports.ReadPreferenceMode.primaryPreferred;\nReadPreference.SECONDARY = exports.ReadPreferenceMode.secondary;\nReadPreference.SECONDARY_PREFERRED = exports.ReadPreferenceMode.secondaryPreferred;\nReadPreference.NEAREST = exports.ReadPreferenceMode.nearest;\nReadPreference.primary = new ReadPreference(exports.ReadPreferenceMode.primary);\nReadPreference.primaryPreferred = new ReadPreference(exports.ReadPreferenceMode.primaryPreferred);\nReadPreference.secondary = new ReadPreference(exports.ReadPreferenceMode.secondary);\nReadPreference.secondaryPreferred = new ReadPreference(exports.ReadPreferenceMode.secondaryPreferred);\nReadPreference.nearest = new ReadPreference(exports.ReadPreferenceMode.nearest);\n//# sourceMappingURL=read_preference.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,iBAAiB,QAAQ,qBAAqB,KAAK;CAC3D,MAAM;;AAEN,SAAQ,qBAAqB,OAAO,OAAO;EACvC,SAAS;EACT,kBAAkB;EAClB,WAAW;EACX,oBAAoB;EACpB,SAAS;EACZ,CAAC;;;;;;;;CAQF,IAAM,iBAAN,MAAM,eAAe;;;;;;EAMjB,YAAY,MAAM,MAAM,SAAS;AAC7B,OAAI,CAAC,eAAe,QAAQ,KAAK,CAC7B,OAAM,IAAI,QAAQ,0BAA0B,gCAAgC,KAAK,UAAU,KAAK,GAAG;AAEvG,OAAI,WAAW,QAAQ,OAAO,SAAS,YAAY,CAAC,MAAM,QAAQ,KAAK,EAAE;AACrE,cAAU;AACV,WAAO;cAEF,QAAQ,CAAC,MAAM,QAAQ,KAAK,CACjC,OAAM,IAAI,QAAQ,0BAA0B,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sBAAsB,QAAQ,mBAAmB;AAChE,gBAAe,UAAU,QAAQ,mBAAmB;AACpD,gBAAe,UAAU,IAAI,eAAe,QAAQ,mBAAmB,QAAQ;AAC/E,gBAAe,mBAAmB,IAAI,eAAe,QAAQ,mBAAmB,iBAAiB;AACjG,gBAAe,YAAY,IAAI,eAAe,QAAQ,mBAAmB,UAAU;AACnF,gBAAe,qBAAqB,IAAI,eAAe,QAAQ,mBAAmB,mBAAmB;AACrG,gBAAe,UAAU,IAAI,eAAe,QAAQ,mBAAmB,QAAQ"}
@@ -1,62 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_sessions } from "./sessions.mjs";
3
- import { require_mongo_client } from "./mongo_client.mjs";
4
- import { require_abstract_cursor } from "./cursor/abstract_cursor.mjs";
5
- import { require_change_stream } from "./change_stream.mjs";
6
-
7
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.js
8
- var require_resource_management = /* @__PURE__ */ __commonJSMin(((exports) => {
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.configureResourceManagement = configureResourceManagement;
11
- exports.configureExplicitResourceManagement = configureExplicitResourceManagement;
12
- /** @internal */
13
- function configureResourceManagement(target) {
14
- Symbol.asyncDispose && Object.defineProperty(target, Symbol.asyncDispose, {
15
- value: async function asyncDispose() {
16
- await this.asyncDispose();
17
- },
18
- enumerable: false,
19
- configurable: true,
20
- writable: true
21
- });
22
- }
23
- /**
24
- * @beta
25
- * @experimental
26
- *
27
- * Attaches `Symbol.asyncDispose` methods to the MongoClient, Cursors, sessions and change streams
28
- * if Symbol.asyncDispose is defined.
29
- *
30
- * It's usually not necessary to call this method - the driver attempts to attach these methods
31
- * itself when its loaded. However, sometimes the driver may be loaded before `Symbol.asyncDispose`
32
- * is defined, in which case it is necessary to call this method directly. This can happen if the
33
- * application is polyfilling `Symbol.asyncDispose`.
34
- *
35
- * Example:
36
- *
37
- * ```typescript
38
- * import { configureExplicitResourceManagement, MongoClient } from 'mongodb/lib/beta';
39
- *
40
- * Symbol.asyncDispose ??= Symbol('dispose');
41
- * load();
42
- *
43
- * await using client = new MongoClient(...);
44
- * ```
45
- */
46
- function configureExplicitResourceManagement() {
47
- const { MongoClient } = require_mongo_client();
48
- const { ClientSession } = require_sessions();
49
- const { AbstractCursor } = require_abstract_cursor();
50
- const { ChangeStream } = require_change_stream();
51
- configureResourceManagement(MongoClient.prototype);
52
- configureResourceManagement(ClientSession.prototype);
53
- configureResourceManagement(AbstractCursor.prototype);
54
- configureResourceManagement(ChangeStream.prototype);
55
- }
56
- }));
57
-
58
- //#endregion
59
- export default require_resource_management();
60
-
61
- export { require_resource_management };
62
- //# sourceMappingURL=resource_management.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resource_management.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.configureResourceManagement = configureResourceManagement;\nexports.configureExplicitResourceManagement = configureExplicitResourceManagement;\n/** @internal */\nfunction configureResourceManagement(target) {\n Symbol.asyncDispose &&\n Object.defineProperty(target, Symbol.asyncDispose, {\n value: async function asyncDispose() {\n await this.asyncDispose();\n },\n enumerable: false,\n configurable: true,\n writable: true\n });\n}\n/**\n * @beta\n * @experimental\n *\n * Attaches `Symbol.asyncDispose` methods to the MongoClient, Cursors, sessions and change streams\n * if Symbol.asyncDispose is defined.\n *\n * It's usually not necessary to call this method - the driver attempts to attach these methods\n * itself when its loaded. However, sometimes the driver may be loaded before `Symbol.asyncDispose`\n * is defined, in which case it is necessary to call this method directly. This can happen if the\n * application is polyfilling `Symbol.asyncDispose`.\n *\n * Example:\n *\n * ```typescript\n * import { configureExplicitResourceManagement, MongoClient } from 'mongodb/lib/beta';\n *\n * Symbol.asyncDispose ??= Symbol('dispose');\n * load();\n *\n * await using client = new MongoClient(...);\n * ```\n */\nfunction configureExplicitResourceManagement() {\n // We must import lazily here, because there's a circular dependency between the resource management\n // file and each resources' file. We could move `configureResourceManagement` to a separate\n // function, but keeping all resource-management related code together seemed preferable and I chose\n // lazy requiring of resources instead.\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const { MongoClient } = require('./mongo_client');\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const { ClientSession } = require('./sessions');\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const { AbstractCursor } = require('./cursor/abstract_cursor');\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const { ChangeStream } = require('./change_stream');\n configureResourceManagement(MongoClient.prototype);\n configureResourceManagement(ClientSession.prototype);\n configureResourceManagement(AbstractCursor.prototype);\n configureResourceManagement(ChangeStream.prototype);\n}\n//# sourceMappingURL=resource_management.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,8BAA8B;AACtC,SAAQ,sCAAsC;;CAE9C,SAAS,4BAA4B,QAAQ;AACzC,SAAO,gBACH,OAAO,eAAe,QAAQ,OAAO,cAAc;GAC/C,OAAO,eAAe,eAAe;AACjC,UAAM,KAAK,cAAc;;GAE7B,YAAY;GACZ,cAAc;GACd,UAAU;GACb,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAyBV,SAAS,sCAAsC;EAM3C,MAAM,EAAE;EAER,MAAM,EAAE;EAER,MAAM,EAAE;EAER,MAAM,EAAE;AACR,8BAA4B,YAAY,UAAU;AAClD,8BAA4B,cAAc,UAAU;AACpD,8BAA4B,eAAe,UAAU;AACrD,8BAA4B,aAAa,UAAU"}