pecunia-root 0.1.1 → 0.1.2

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 (326) 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/index.d.mts +1 -2
  5. package/dist/index.mjs +1 -2
  6. package/package.json +2 -16
  7. package/dist/_virtual/rolldown_runtime.mjs +0 -8
  8. package/dist/adapters/mongodb-adapter/index.d.mts +0 -35
  9. package/dist/adapters/mongodb-adapter/index.mjs +0 -314
  10. package/dist/adapters/mongodb-adapter/index.mjs.map +0 -1
  11. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs +0 -14
  12. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs.map +0 -1
  13. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs +0 -54
  14. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs.map +0 -1
  15. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs +0 -36
  16. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs.map +0 -1
  17. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs +0 -27
  18. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs.map +0 -1
  19. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs +0 -3728
  20. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs.map +0 -1
  21. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs +0 -137
  22. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs.map +0 -1
  23. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs +0 -211
  24. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/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/redact.mjs +0 -95
  26. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs.map +0 -1
  27. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs +0 -158
  28. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs.map +0 -1
  29. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs +0 -195
  30. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs.map +0 -1
  31. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs +0 -710
  32. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs.map +0 -1
  33. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs +0 -53
  34. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs.map +0 -1
  35. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs +0 -63
  36. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs.map +0 -1
  37. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs +0 -368
  38. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs.map +0 -1
  39. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs +0 -234
  40. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs.map +0 -1
  41. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs +0 -545
  42. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs.map +0 -1
  43. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs +0 -83
  44. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs.map +0 -1
  45. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs +0 -146
  46. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs.map +0 -1
  47. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs +0 -58
  48. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs.map +0 -1
  49. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs +0 -30
  50. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs.map +0 -1
  51. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs +0 -135
  52. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs.map +0 -1
  53. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs +0 -25
  54. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs.map +0 -1
  55. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs +0 -47
  56. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs.map +0 -1
  57. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs +0 -362
  58. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs.map +0 -1
  59. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs +0 -58
  60. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs.map +0 -1
  61. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs +0 -123
  62. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs.map +0 -1
  63. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs +0 -128
  64. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs.map +0 -1
  65. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs +0 -133
  66. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs.map +0 -1
  67. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs +0 -126
  68. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs.map +0 -1
  69. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs +0 -79
  70. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs.map +0 -1
  71. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs +0 -65
  72. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs.map +0 -1
  73. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs +0 -127
  74. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs.map +0 -1
  75. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs +0 -47
  76. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs.map +0 -1
  77. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs +0 -44
  78. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs.map +0 -1
  79. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs +0 -101
  80. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs.map +0 -1
  81. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs +0 -33
  82. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs.map +0 -1
  83. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs +0 -53
  84. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs.map +0 -1
  85. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs +0 -29
  86. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs.map +0 -1
  87. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs +0 -83
  88. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs.map +0 -1
  89. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs +0 -36
  90. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs.map +0 -1
  91. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs +0 -32
  92. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs.map +0 -1
  93. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs +0 -206
  94. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs.map +0 -1
  95. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs +0 -45
  96. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs.map +0 -1
  97. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs +0 -213
  98. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs.map +0 -1
  99. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs +0 -411
  100. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs.map +0 -1
  101. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs +0 -288
  102. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs.map +0 -1
  103. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs +0 -423
  104. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs.map +0 -1
  105. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs +0 -483
  106. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs.map +0 -1
  107. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs +0 -207
  108. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs.map +0 -1
  109. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs +0 -116
  110. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs.map +0 -1
  111. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs +0 -183
  112. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs.map +0 -1
  113. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs +0 -55
  114. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs.map +0 -1
  115. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs +0 -60
  116. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs.map +0 -1
  117. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs +0 -139
  118. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs.map +0 -1
  119. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs +0 -28
  120. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs.map +0 -1
  121. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs +0 -117
  122. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs.map +0 -1
  123. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs +0 -182
  124. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs.map +0 -1
  125. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs +0 -304
  126. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs.map +0 -1
  127. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs +0 -34
  128. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs.map +0 -1
  129. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs +0 -739
  130. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs.map +0 -1
  131. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs +0 -805
  132. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs.map +0 -1
  133. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs +0 -174
  134. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs.map +0 -1
  135. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs +0 -726
  136. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs.map +0 -1
  137. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs +0 -172
  138. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs.map +0 -1
  139. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs +0 -103
  140. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs.map +0 -1
  141. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs +0 -66
  142. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs.map +0 -1
  143. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs +0 -41
  144. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs.map +0 -1
  145. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs +0 -365
  146. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs.map +0 -1
  147. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs +0 -50
  148. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs.map +0 -1
  149. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs +0 -48
  150. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs.map +0 -1
  151. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs +0 -23
  152. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs.map +0 -1
  153. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs +0 -106
  154. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs.map +0 -1
  155. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs +0 -428
  156. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs.map +0 -1
  157. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs +0 -124
  158. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs.map +0 -1
  159. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs +0 -95
  160. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs.map +0 -1
  161. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs +0 -1305
  162. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs.map +0 -1
  163. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs +0 -59
  164. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs.map +0 -1
  165. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs +0 -250
  166. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs.map +0 -1
  167. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs +0 -170
  168. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs.map +0 -1
  169. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs +0 -315
  170. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs.map +0 -1
  171. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs +0 -925
  172. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs.map +0 -1
  173. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs +0 -520
  174. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs.map +0 -1
  175. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs +0 -90
  176. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs.map +0 -1
  177. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs +0 -582
  178. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs.map +0 -1
  179. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs +0 -64
  180. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs.map +0 -1
  181. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs +0 -86
  182. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs.map +0 -1
  183. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs +0 -60
  184. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs.map +0 -1
  185. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs +0 -264
  186. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs.map +0 -1
  187. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs +0 -109
  188. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs.map +0 -1
  189. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs +0 -172
  190. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs.map +0 -1
  191. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs +0 -68
  192. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs.map +0 -1
  193. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs +0 -53
  194. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs.map +0 -1
  195. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs +0 -123
  196. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs.map +0 -1
  197. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs +0 -119
  198. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs.map +0 -1
  199. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs +0 -65
  200. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs.map +0 -1
  201. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs +0 -97
  202. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs.map +0 -1
  203. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs +0 -47
  204. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs.map +0 -1
  205. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs +0 -188
  206. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs.map +0 -1
  207. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs +0 -103
  208. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs.map +0 -1
  209. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs +0 -136
  210. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs.map +0 -1
  211. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs +0 -61
  212. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs.map +0 -1
  213. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs +0 -179
  214. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs.map +0 -1
  215. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs +0 -77
  216. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs.map +0 -1
  217. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs +0 -48
  218. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs.map +0 -1
  219. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs +0 -60
  220. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs.map +0 -1
  221. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs +0 -43
  222. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs.map +0 -1
  223. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs +0 -105
  224. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs.map +0 -1
  225. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs +0 -50
  226. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs.map +0 -1
  227. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs +0 -39
  228. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs.map +0 -1
  229. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs +0 -49
  230. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs.map +0 -1
  231. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs +0 -58
  232. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs.map +0 -1
  233. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs +0 -46
  234. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs.map +0 -1
  235. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs +0 -48
  236. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs.map +0 -1
  237. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs +0 -46
  238. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs.map +0 -1
  239. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs +0 -67
  240. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs.map +0 -1
  241. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs +0 -37
  242. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs.map +0 -1
  243. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs +0 -171
  244. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs.map +0 -1
  245. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs +0 -45
  246. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs.map +0 -1
  247. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs +0 -71
  248. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs.map +0 -1
  249. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs +0 -165
  250. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs.map +0 -1
  251. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs +0 -62
  252. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs.map +0 -1
  253. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs +0 -51
  254. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs.map +0 -1
  255. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs +0 -156
  256. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs.map +0 -1
  257. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs +0 -477
  258. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs.map +0 -1
  259. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs +0 -315
  260. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs.map +0 -1
  261. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs +0 -157
  262. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs.map +0 -1
  263. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs +0 -184
  264. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs.map +0 -1
  265. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs +0 -96
  266. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs.map +0 -1
  267. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs +0 -107
  268. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs.map +0 -1
  269. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs +0 -540
  270. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs.map +0 -1
  271. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs +0 -298
  272. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs.map +0 -1
  273. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs +0 -623
  274. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs.map +0 -1
  275. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs +0 -91
  276. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs.map +0 -1
  277. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs +0 -254
  278. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs.map +0 -1
  279. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs +0 -138
  280. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs.map +0 -1
  281. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs +0 -993
  282. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs.map +0 -1
  283. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs +0 -81
  284. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs.map +0 -1
  285. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs +0 -171
  286. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs.map +0 -1
  287. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs +0 -295
  288. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs.map +0 -1
  289. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs +0 -81
  290. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs.map +0 -1
  291. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs +0 -206
  292. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs.map +0 -1
  293. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs +0 -33590
  294. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs.map +0 -1
  295. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs +0 -37
  296. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs.map +0 -1
  297. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs +0 -18
  298. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs.map +0 -1
  299. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs +0 -252
  300. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs.map +0 -1
  301. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs +0 -41
  302. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs.map +0 -1
  303. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs +0 -41
  304. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs.map +0 -1
  305. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs +0 -173
  306. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs.map +0 -1
  307. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs +0 -334
  308. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs.map +0 -1
  309. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs +0 -90
  310. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs.map +0 -1
  311. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs +0 -356
  312. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs.map +0 -1
  313. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs +0 -23
  314. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs.map +0 -1
  315. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs +0 -29
  316. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs.map +0 -1
  317. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs +0 -140
  318. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs.map +0 -1
  319. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs +0 -831
  320. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs.map +0 -1
  321. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs +0 -77
  322. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs.map +0 -1
  323. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs +0 -147
  324. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs.map +0 -1
  325. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs +0 -17
  326. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs.map +0 -1
@@ -1,136 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_error } from "../error.mjs";
3
- import { require_read_preference } from "../read_preference.mjs";
4
- import { require_responses } from "../cmap/wire_protocol/responses.mjs";
5
- import { require_utils } from "../utils.mjs";
6
- import { require_operation } from "./operation.mjs";
7
- import { require_command } from "./command.mjs";
8
- import { require_sort } from "../sort.mjs";
9
-
10
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.js
11
- var require_find_and_modify = /* @__PURE__ */ __commonJSMin(((exports) => {
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.FindOneAndUpdateOperation = exports.FindOneAndReplaceOperation = exports.FindOneAndDeleteOperation = exports.FindAndModifyOperation = exports.ReturnDocument = void 0;
14
- const responses_1 = require_responses();
15
- const error_1 = require_error();
16
- const read_preference_1 = require_read_preference();
17
- const sort_1 = require_sort();
18
- const utils_1 = require_utils();
19
- const command_1 = require_command();
20
- const operation_1 = require_operation();
21
- /** @public */
22
- exports.ReturnDocument = Object.freeze({
23
- BEFORE: "before",
24
- AFTER: "after"
25
- });
26
- function configureFindAndModifyCmdBaseUpdateOpts(cmdBase, options) {
27
- cmdBase.new = options.returnDocument === exports.ReturnDocument.AFTER;
28
- cmdBase.upsert = options.upsert === true;
29
- if (options.bypassDocumentValidation === true) cmdBase.bypassDocumentValidation = options.bypassDocumentValidation;
30
- return cmdBase;
31
- }
32
- /** @internal */
33
- var FindAndModifyOperation = class extends command_1.CommandOperation {
34
- constructor(collection, query, options) {
35
- super(collection, options);
36
- this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
37
- this.options = options;
38
- this.readPreference = read_preference_1.ReadPreference.primary;
39
- this.collection = collection;
40
- this.query = query;
41
- }
42
- get commandName() {
43
- return "findAndModify";
44
- }
45
- buildCommandDocument(connection, _session) {
46
- const options = this.options;
47
- const command = {
48
- findAndModify: this.collection.collectionName,
49
- query: this.query,
50
- remove: false,
51
- new: false,
52
- upsert: false
53
- };
54
- options.includeResultMetadata ??= false;
55
- const sort = (0, sort_1.formatSort)(options.sort);
56
- if (sort) command.sort = sort;
57
- if (options.projection) command.fields = options.projection;
58
- if (options.maxTimeMS) command.maxTimeMS = options.maxTimeMS;
59
- if (options.writeConcern) command.writeConcern = options.writeConcern;
60
- if (options.let) command.let = options.let;
61
- if (options.comment !== void 0) command.comment = options.comment;
62
- (0, utils_1.decorateWithCollation)(command, options);
63
- if (options.hint) {
64
- if (this.writeConcern?.w === 0 && (0, utils_1.maxWireVersion)(connection) < 9) throw new error_1.MongoCompatibilityError("hint for the findAndModify command is only supported on MongoDB 4.4+");
65
- command.hint = options.hint;
66
- }
67
- return command;
68
- }
69
- handleOk(response) {
70
- const result = super.handleOk(response);
71
- return this.options.includeResultMetadata ? result : result.value ?? null;
72
- }
73
- };
74
- exports.FindAndModifyOperation = FindAndModifyOperation;
75
- /** @internal */
76
- var FindOneAndDeleteOperation = class extends FindAndModifyOperation {
77
- constructor(collection, filter, options) {
78
- if (filter == null || typeof filter !== "object") throw new error_1.MongoInvalidArgumentError("Argument \"filter\" must be an object");
79
- super(collection, filter, options);
80
- }
81
- buildCommandDocument(connection, session) {
82
- const document = super.buildCommandDocument(connection, session);
83
- document.remove = true;
84
- return document;
85
- }
86
- };
87
- exports.FindOneAndDeleteOperation = FindOneAndDeleteOperation;
88
- /** @internal */
89
- var FindOneAndReplaceOperation = class extends FindAndModifyOperation {
90
- constructor(collection, filter, replacement, options) {
91
- if (filter == null || typeof filter !== "object") throw new error_1.MongoInvalidArgumentError("Argument \"filter\" must be an object");
92
- if (replacement == null || typeof replacement !== "object") throw new error_1.MongoInvalidArgumentError("Argument \"replacement\" must be an object");
93
- if ((0, utils_1.hasAtomicOperators)(replacement)) throw new error_1.MongoInvalidArgumentError("Replacement document must not contain atomic operators");
94
- super(collection, filter, options);
95
- this.replacement = replacement;
96
- }
97
- buildCommandDocument(connection, session) {
98
- const document = super.buildCommandDocument(connection, session);
99
- document.update = this.replacement;
100
- configureFindAndModifyCmdBaseUpdateOpts(document, this.options);
101
- return document;
102
- }
103
- };
104
- exports.FindOneAndReplaceOperation = FindOneAndReplaceOperation;
105
- /** @internal */
106
- var FindOneAndUpdateOperation = class extends FindAndModifyOperation {
107
- constructor(collection, filter, update, options) {
108
- if (filter == null || typeof filter !== "object") throw new error_1.MongoInvalidArgumentError("Argument \"filter\" must be an object");
109
- if (update == null || typeof update !== "object") throw new error_1.MongoInvalidArgumentError("Argument \"update\" must be an object");
110
- if (!(0, utils_1.hasAtomicOperators)(update, options)) throw new error_1.MongoInvalidArgumentError("Update document requires atomic operators");
111
- super(collection, filter, options);
112
- this.update = update;
113
- this.options = options;
114
- }
115
- buildCommandDocument(connection, session) {
116
- const document = super.buildCommandDocument(connection, session);
117
- document.update = this.update;
118
- configureFindAndModifyCmdBaseUpdateOpts(document, this.options);
119
- if (this.options.arrayFilters) document.arrayFilters = this.options.arrayFilters;
120
- return document;
121
- }
122
- };
123
- exports.FindOneAndUpdateOperation = FindOneAndUpdateOperation;
124
- (0, operation_1.defineAspects)(FindAndModifyOperation, [
125
- operation_1.Aspect.WRITE_OPERATION,
126
- operation_1.Aspect.RETRYABLE,
127
- operation_1.Aspect.EXPLAINABLE,
128
- operation_1.Aspect.SUPPORTS_RAW_DATA
129
- ]);
130
- }));
131
-
132
- //#endregion
133
- export default require_find_and_modify();
134
-
135
- export { require_find_and_modify };
136
- //# sourceMappingURL=find_and_modify.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find_and_modify.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.FindOneAndUpdateOperation = exports.FindOneAndReplaceOperation = exports.FindOneAndDeleteOperation = exports.FindAndModifyOperation = exports.ReturnDocument = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst read_preference_1 = require(\"../read_preference\");\nconst sort_1 = require(\"../sort\");\nconst utils_1 = require(\"../utils\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/** @public */\nexports.ReturnDocument = Object.freeze({\n BEFORE: 'before',\n AFTER: 'after'\n});\nfunction configureFindAndModifyCmdBaseUpdateOpts(cmdBase, options) {\n cmdBase.new = options.returnDocument === exports.ReturnDocument.AFTER;\n cmdBase.upsert = options.upsert === true;\n if (options.bypassDocumentValidation === true) {\n cmdBase.bypassDocumentValidation = options.bypassDocumentValidation;\n }\n return cmdBase;\n}\n/** @internal */\nclass FindAndModifyOperation extends command_1.CommandOperation {\n constructor(collection, query, options) {\n super(collection, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options;\n // force primary read preference\n this.readPreference = read_preference_1.ReadPreference.primary;\n this.collection = collection;\n this.query = query;\n }\n get commandName() {\n return 'findAndModify';\n }\n buildCommandDocument(connection, _session) {\n const options = this.options;\n const command = {\n findAndModify: this.collection.collectionName,\n query: this.query,\n remove: false,\n new: false,\n upsert: false\n };\n options.includeResultMetadata ??= false;\n const sort = (0, sort_1.formatSort)(options.sort);\n if (sort) {\n command.sort = sort;\n }\n if (options.projection) {\n command.fields = options.projection;\n }\n if (options.maxTimeMS) {\n command.maxTimeMS = options.maxTimeMS;\n }\n // Decorate the findAndModify command with the write Concern\n if (options.writeConcern) {\n command.writeConcern = options.writeConcern;\n }\n if (options.let) {\n command.let = options.let;\n }\n // we check for undefined specifically here to allow falsy values\n // eslint-disable-next-line no-restricted-syntax\n if (options.comment !== undefined) {\n command.comment = options.comment;\n }\n (0, utils_1.decorateWithCollation)(command, options);\n if (options.hint) {\n const unacknowledgedWrite = this.writeConcern?.w === 0;\n if (unacknowledgedWrite && (0, utils_1.maxWireVersion)(connection) < 9) {\n throw new error_1.MongoCompatibilityError('hint for the findAndModify command is only supported on MongoDB 4.4+');\n }\n command.hint = options.hint;\n }\n return command;\n }\n handleOk(response) {\n const result = super.handleOk(response);\n return this.options.includeResultMetadata ? result : (result.value ?? null);\n }\n}\nexports.FindAndModifyOperation = FindAndModifyOperation;\n/** @internal */\nclass FindOneAndDeleteOperation extends FindAndModifyOperation {\n constructor(collection, filter, options) {\n // Basic validation\n if (filter == null || typeof filter !== 'object') {\n throw new error_1.MongoInvalidArgumentError('Argument \"filter\" must be an object');\n }\n super(collection, filter, options);\n }\n buildCommandDocument(connection, session) {\n const document = super.buildCommandDocument(connection, session);\n document.remove = true;\n return document;\n }\n}\nexports.FindOneAndDeleteOperation = FindOneAndDeleteOperation;\n/** @internal */\nclass FindOneAndReplaceOperation extends FindAndModifyOperation {\n constructor(collection, filter, replacement, options) {\n if (filter == null || typeof filter !== 'object') {\n throw new error_1.MongoInvalidArgumentError('Argument \"filter\" must be an object');\n }\n if (replacement == null || typeof replacement !== 'object') {\n throw new error_1.MongoInvalidArgumentError('Argument \"replacement\" must be an object');\n }\n if ((0, utils_1.hasAtomicOperators)(replacement)) {\n throw new error_1.MongoInvalidArgumentError('Replacement document must not contain atomic operators');\n }\n super(collection, filter, options);\n this.replacement = replacement;\n }\n buildCommandDocument(connection, session) {\n const document = super.buildCommandDocument(connection, session);\n document.update = this.replacement;\n configureFindAndModifyCmdBaseUpdateOpts(document, this.options);\n return document;\n }\n}\nexports.FindOneAndReplaceOperation = FindOneAndReplaceOperation;\n/** @internal */\nclass FindOneAndUpdateOperation extends FindAndModifyOperation {\n constructor(collection, filter, update, options) {\n if (filter == null || typeof filter !== 'object') {\n throw new error_1.MongoInvalidArgumentError('Argument \"filter\" must be an object');\n }\n if (update == null || typeof update !== 'object') {\n throw new error_1.MongoInvalidArgumentError('Argument \"update\" must be an object');\n }\n if (!(0, utils_1.hasAtomicOperators)(update, options)) {\n throw new error_1.MongoInvalidArgumentError('Update document requires atomic operators');\n }\n super(collection, filter, options);\n this.update = update;\n this.options = options;\n }\n buildCommandDocument(connection, session) {\n const document = super.buildCommandDocument(connection, session);\n document.update = this.update;\n configureFindAndModifyCmdBaseUpdateOpts(document, this.options);\n if (this.options.arrayFilters) {\n document.arrayFilters = this.options.arrayFilters;\n }\n return document;\n }\n}\nexports.FindOneAndUpdateOperation = FindOneAndUpdateOperation;\n(0, operation_1.defineAspects)(FindAndModifyOperation, [\n operation_1.Aspect.WRITE_OPERATION,\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.EXPLAINABLE,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n//# sourceMappingURL=find_and_modify.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,4BAA4B,QAAQ,6BAA6B,QAAQ,4BAA4B,QAAQ,yBAAyB,QAAQ,iBAAiB,KAAK;CAC5K,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;AAEN,SAAQ,iBAAiB,OAAO,OAAO;EACnC,QAAQ;EACR,OAAO;EACV,CAAC;CACF,SAAS,wCAAwC,SAAS,SAAS;AAC/D,UAAQ,MAAM,QAAQ,mBAAmB,QAAQ,eAAe;AAChE,UAAQ,SAAS,QAAQ,WAAW;AACpC,MAAI,QAAQ,6BAA6B,KACrC,SAAQ,2BAA2B,QAAQ;AAE/C,SAAO;;;CAGX,IAAM,yBAAN,cAAqC,UAAU,iBAAiB;EAC5D,YAAY,YAAY,OAAO,SAAS;AACpC,SAAM,YAAY,QAAQ;AAC1B,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU;AAEf,QAAK,iBAAiB,kBAAkB,eAAe;AACvD,QAAK,aAAa;AAClB,QAAK,QAAQ;;EAEjB,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,YAAY,UAAU;GACvC,MAAM,UAAU,KAAK;GACrB,MAAM,UAAU;IACZ,eAAe,KAAK,WAAW;IAC/B,OAAO,KAAK;IACZ,QAAQ;IACR,KAAK;IACL,QAAQ;IACX;AACD,WAAQ,0BAA0B;GAClC,MAAM,QAAQ,GAAG,OAAO,YAAY,QAAQ,KAAK;AACjD,OAAI,KACA,SAAQ,OAAO;AAEnB,OAAI,QAAQ,WACR,SAAQ,SAAS,QAAQ;AAE7B,OAAI,QAAQ,UACR,SAAQ,YAAY,QAAQ;AAGhC,OAAI,QAAQ,aACR,SAAQ,eAAe,QAAQ;AAEnC,OAAI,QAAQ,IACR,SAAQ,MAAM,QAAQ;AAI1B,OAAI,QAAQ,YAAY,OACpB,SAAQ,UAAU,QAAQ;AAE9B,IAAC,GAAG,QAAQ,uBAAuB,SAAS,QAAQ;AACpD,OAAI,QAAQ,MAAM;AAEd,QAD4B,KAAK,cAAc,MAAM,MACzB,GAAG,QAAQ,gBAAgB,WAAW,GAAG,EACjE,OAAM,IAAI,QAAQ,wBAAwB,uEAAuE;AAErH,YAAQ,OAAO,QAAQ;;AAE3B,UAAO;;EAEX,SAAS,UAAU;GACf,MAAM,SAAS,MAAM,SAAS,SAAS;AACvC,UAAO,KAAK,QAAQ,wBAAwB,SAAU,OAAO,SAAS;;;AAG9E,SAAQ,yBAAyB;;CAEjC,IAAM,4BAAN,cAAwC,uBAAuB;EAC3D,YAAY,YAAY,QAAQ,SAAS;AAErC,OAAI,UAAU,QAAQ,OAAO,WAAW,SACpC,OAAM,IAAI,QAAQ,0BAA0B,wCAAsC;AAEtF,SAAM,YAAY,QAAQ,QAAQ;;EAEtC,qBAAqB,YAAY,SAAS;GACtC,MAAM,WAAW,MAAM,qBAAqB,YAAY,QAAQ;AAChE,YAAS,SAAS;AAClB,UAAO;;;AAGf,SAAQ,4BAA4B;;CAEpC,IAAM,6BAAN,cAAyC,uBAAuB;EAC5D,YAAY,YAAY,QAAQ,aAAa,SAAS;AAClD,OAAI,UAAU,QAAQ,OAAO,WAAW,SACpC,OAAM,IAAI,QAAQ,0BAA0B,wCAAsC;AAEtF,OAAI,eAAe,QAAQ,OAAO,gBAAgB,SAC9C,OAAM,IAAI,QAAQ,0BAA0B,6CAA2C;AAE3F,QAAK,GAAG,QAAQ,oBAAoB,YAAY,CAC5C,OAAM,IAAI,QAAQ,0BAA0B,yDAAyD;AAEzG,SAAM,YAAY,QAAQ,QAAQ;AAClC,QAAK,cAAc;;EAEvB,qBAAqB,YAAY,SAAS;GACtC,MAAM,WAAW,MAAM,qBAAqB,YAAY,QAAQ;AAChE,YAAS,SAAS,KAAK;AACvB,2CAAwC,UAAU,KAAK,QAAQ;AAC/D,UAAO;;;AAGf,SAAQ,6BAA6B;;CAErC,IAAM,4BAAN,cAAwC,uBAAuB;EAC3D,YAAY,YAAY,QAAQ,QAAQ,SAAS;AAC7C,OAAI,UAAU,QAAQ,OAAO,WAAW,SACpC,OAAM,IAAI,QAAQ,0BAA0B,wCAAsC;AAEtF,OAAI,UAAU,QAAQ,OAAO,WAAW,SACpC,OAAM,IAAI,QAAQ,0BAA0B,wCAAsC;AAEtF,OAAI,EAAE,GAAG,QAAQ,oBAAoB,QAAQ,QAAQ,CACjD,OAAM,IAAI,QAAQ,0BAA0B,4CAA4C;AAE5F,SAAM,YAAY,QAAQ,QAAQ;AAClC,QAAK,SAAS;AACd,QAAK,UAAU;;EAEnB,qBAAqB,YAAY,SAAS;GACtC,MAAM,WAAW,MAAM,qBAAqB,YAAY,QAAQ;AAChE,YAAS,SAAS,KAAK;AACvB,2CAAwC,UAAU,KAAK,QAAQ;AAC/D,OAAI,KAAK,QAAQ,aACb,UAAS,eAAe,KAAK,QAAQ;AAEzC,UAAO;;;AAGf,SAAQ,4BAA4B;AACpC,EAAC,GAAG,YAAY,eAAe,wBAAwB;EACnD,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC"}
@@ -1,61 +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
-
7
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.js
8
- var require_get_more = /* @__PURE__ */ __commonJSMin(((exports) => {
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.GetMoreOperation = void 0;
11
- const responses_1 = require_responses();
12
- const error_1 = require_error();
13
- const utils_1 = require_utils();
14
- const operation_1 = require_operation();
15
- /** @internal */
16
- var GetMoreOperation = class extends operation_1.AbstractOperation {
17
- constructor(ns, cursorId, server, options) {
18
- super(options);
19
- this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;
20
- this.options = options;
21
- this.ns = ns;
22
- this.cursorId = cursorId;
23
- this.server = server;
24
- }
25
- get commandName() {
26
- return "getMore";
27
- }
28
- buildCommand(connection) {
29
- if (this.cursorId == null || this.cursorId.isZero()) throw new error_1.MongoRuntimeError("Unable to iterate cursor with no id");
30
- const collection = this.ns.collection;
31
- if (collection == null) throw new error_1.MongoRuntimeError("A collection name must be determined before getMore");
32
- const getMoreCmd = {
33
- getMore: this.cursorId,
34
- collection
35
- };
36
- if (typeof this.options.batchSize === "number") getMoreCmd.batchSize = Math.abs(this.options.batchSize);
37
- if (typeof this.options.maxAwaitTimeMS === "number") getMoreCmd.maxTimeMS = this.options.maxAwaitTimeMS;
38
- if (this.options.comment !== void 0 && (0, utils_1.maxWireVersion)(connection) >= 9) getMoreCmd.comment = this.options.comment;
39
- return getMoreCmd;
40
- }
41
- buildOptions(timeoutContext) {
42
- return {
43
- returnFieldSelector: null,
44
- documentsReturnedIn: "nextBatch",
45
- timeoutContext,
46
- ...this.options
47
- };
48
- }
49
- handleOk(response) {
50
- return response;
51
- }
52
- };
53
- exports.GetMoreOperation = GetMoreOperation;
54
- (0, operation_1.defineAspects)(GetMoreOperation, [operation_1.Aspect.READ_OPERATION, operation_1.Aspect.MUST_SELECT_SAME_SERVER]);
55
- }));
56
-
57
- //#endregion
58
- export default require_get_more();
59
-
60
- export { require_get_more };
61
- //# sourceMappingURL=get_more.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get_more.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.GetMoreOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst utils_1 = require(\"../utils\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nclass GetMoreOperation extends operation_1.AbstractOperation {\n constructor(ns, cursorId, server, options) {\n super(options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;\n this.options = options;\n this.ns = ns;\n this.cursorId = cursorId;\n this.server = server;\n }\n get commandName() {\n return 'getMore';\n }\n buildCommand(connection) {\n if (this.cursorId == null || this.cursorId.isZero()) {\n throw new error_1.MongoRuntimeError('Unable to iterate cursor with no id');\n }\n const collection = this.ns.collection;\n if (collection == null) {\n // Cursors should have adopted the namespace returned by MongoDB\n // which should always defined a collection name (even a pseudo one, ex. db.aggregate())\n throw new error_1.MongoRuntimeError('A collection name must be determined before getMore');\n }\n const getMoreCmd = {\n getMore: this.cursorId,\n collection\n };\n if (typeof this.options.batchSize === 'number') {\n getMoreCmd.batchSize = Math.abs(this.options.batchSize);\n }\n if (typeof this.options.maxAwaitTimeMS === 'number') {\n getMoreCmd.maxTimeMS = this.options.maxAwaitTimeMS;\n }\n // we check for undefined specifically here to allow falsy values\n // eslint-disable-next-line no-restricted-syntax\n if (this.options.comment !== undefined && (0, utils_1.maxWireVersion)(connection) >= 9) {\n getMoreCmd.comment = this.options.comment;\n }\n return getMoreCmd;\n }\n buildOptions(timeoutContext) {\n return {\n returnFieldSelector: null,\n documentsReturnedIn: 'nextBatch',\n timeoutContext,\n ...this.options\n };\n }\n handleOk(response) {\n return response;\n }\n}\nexports.GetMoreOperation = GetMoreOperation;\n(0, operation_1.defineAspects)(GetMoreOperation, [operation_1.Aspect.READ_OPERATION, operation_1.Aspect.MUST_SELECT_SAME_SERVER]);\n//# sourceMappingURL=get_more.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,mBAAmB,KAAK;CAChC,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,mBAAN,cAA+B,YAAY,kBAAkB;EACzD,YAAY,IAAI,UAAU,QAAQ,SAAS;AACvC,SAAM,QAAQ;AACd,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU;AACf,QAAK,KAAK;AACV,QAAK,WAAW;AAChB,QAAK,SAAS;;EAElB,IAAI,cAAc;AACd,UAAO;;EAEX,aAAa,YAAY;AACrB,OAAI,KAAK,YAAY,QAAQ,KAAK,SAAS,QAAQ,CAC/C,OAAM,IAAI,QAAQ,kBAAkB,sCAAsC;GAE9E,MAAM,aAAa,KAAK,GAAG;AAC3B,OAAI,cAAc,KAGd,OAAM,IAAI,QAAQ,kBAAkB,sDAAsD;GAE9F,MAAM,aAAa;IACf,SAAS,KAAK;IACd;IACH;AACD,OAAI,OAAO,KAAK,QAAQ,cAAc,SAClC,YAAW,YAAY,KAAK,IAAI,KAAK,QAAQ,UAAU;AAE3D,OAAI,OAAO,KAAK,QAAQ,mBAAmB,SACvC,YAAW,YAAY,KAAK,QAAQ;AAIxC,OAAI,KAAK,QAAQ,YAAY,WAAc,GAAG,QAAQ,gBAAgB,WAAW,IAAI,EACjF,YAAW,UAAU,KAAK,QAAQ;AAEtC,UAAO;;EAEX,aAAa,gBAAgB;AACzB,UAAO;IACH,qBAAqB;IACrB,qBAAqB;IACrB;IACA,GAAG,KAAK;IACX;;EAEL,SAAS,UAAU;AACf,UAAO;;;AAGf,SAAQ,mBAAmB;AAC3B,EAAC,GAAG,YAAY,eAAe,kBAAkB,CAAC,YAAY,OAAO,gBAAgB,YAAY,OAAO,wBAAwB,CAAC"}
@@ -1,179 +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
-
8
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.js
9
- var require_indexes = /* @__PURE__ */ __commonJSMin(((exports) => {
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.ListIndexesOperation = exports.DropIndexOperation = exports.CreateIndexesOperation = void 0;
12
- const responses_1 = require_responses();
13
- const error_1 = require_error();
14
- const utils_1 = require_utils();
15
- const command_1 = require_command();
16
- const operation_1 = require_operation();
17
- const VALID_INDEX_OPTIONS = new Set([
18
- "background",
19
- "unique",
20
- "name",
21
- "partialFilterExpression",
22
- "sparse",
23
- "hidden",
24
- "expireAfterSeconds",
25
- "storageEngine",
26
- "collation",
27
- "version",
28
- "weights",
29
- "default_language",
30
- "language_override",
31
- "textIndexVersion",
32
- "2dsphereIndexVersion",
33
- "bits",
34
- "min",
35
- "max",
36
- "bucketSize",
37
- "wildcardProjection"
38
- ]);
39
- function isIndexDirection(x) {
40
- return typeof x === "number" || x === "2d" || x === "2dsphere" || x === "text" || x === "geoHaystack";
41
- }
42
- function isSingleIndexTuple(t) {
43
- return Array.isArray(t) && t.length === 2 && isIndexDirection(t[1]);
44
- }
45
- /**
46
- * Converts an `IndexSpecification`, which can be specified in multiple formats, into a
47
- * valid `key` for the createIndexes command.
48
- */
49
- function constructIndexDescriptionMap(indexSpec) {
50
- const key = /* @__PURE__ */ new Map();
51
- const indexSpecs = !Array.isArray(indexSpec) || isSingleIndexTuple(indexSpec) ? [indexSpec] : indexSpec;
52
- for (const spec of indexSpecs) if (typeof spec === "string") key.set(spec, 1);
53
- else if (Array.isArray(spec)) key.set(spec[0], spec[1] ?? 1);
54
- else if (spec instanceof Map) for (const [property, value] of spec) key.set(property, value);
55
- else if ((0, utils_1.isObject)(spec)) for (const [property, value] of Object.entries(spec)) key.set(property, value);
56
- return key;
57
- }
58
- /**
59
- * Receives an index description and returns a modified index description which has had invalid options removed
60
- * from the description and has mapped the `version` option to the `v` option.
61
- */
62
- function resolveIndexDescription(description) {
63
- const validProvidedOptions = Object.entries(description).filter(([optionName]) => VALID_INDEX_OPTIONS.has(optionName));
64
- return Object.fromEntries(validProvidedOptions.map(([name, value]) => name === "version" ? ["v", value] : [name, value]));
65
- }
66
- /** @internal */
67
- var CreateIndexesOperation = class CreateIndexesOperation extends command_1.CommandOperation {
68
- constructor(parent, collectionName, indexes, options) {
69
- super(parent, options);
70
- this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
71
- this.options = options ?? {};
72
- this.options.collation = void 0;
73
- this.collectionName = collectionName;
74
- this.indexes = indexes.map((userIndex) => {
75
- const key = userIndex.key instanceof Map ? userIndex.key : new Map(Object.entries(userIndex.key));
76
- const name = userIndex.name ?? Array.from(key).flat().join("_");
77
- return {
78
- ...resolveIndexDescription(userIndex),
79
- name,
80
- key
81
- };
82
- });
83
- this.ns = parent.s.namespace;
84
- }
85
- static fromIndexDescriptionArray(parent, collectionName, indexes, options) {
86
- return new CreateIndexesOperation(parent, collectionName, indexes, options);
87
- }
88
- static fromIndexSpecification(parent, collectionName, indexSpec, options = {}) {
89
- const key = constructIndexDescriptionMap(indexSpec);
90
- return new CreateIndexesOperation(parent, collectionName, [{
91
- ...options,
92
- key
93
- }], options);
94
- }
95
- get commandName() {
96
- return "createIndexes";
97
- }
98
- buildCommandDocument(connection) {
99
- const options = this.options;
100
- const indexes = this.indexes;
101
- const serverWireVersion = (0, utils_1.maxWireVersion)(connection);
102
- const cmd = {
103
- createIndexes: this.collectionName,
104
- indexes
105
- };
106
- if (options.commitQuorum != null) {
107
- if (serverWireVersion < 9) throw new error_1.MongoCompatibilityError("Option `commitQuorum` for `createIndexes` not supported on servers < 4.4");
108
- cmd.commitQuorum = options.commitQuorum;
109
- }
110
- return cmd;
111
- }
112
- handleOk(_response) {
113
- return this.indexes.map((index) => index.name || "");
114
- }
115
- };
116
- exports.CreateIndexesOperation = CreateIndexesOperation;
117
- /** @internal */
118
- var DropIndexOperation = class extends command_1.CommandOperation {
119
- constructor(collection, indexName, options) {
120
- super(collection, options);
121
- this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
122
- this.options = options ?? {};
123
- this.collection = collection;
124
- this.indexName = indexName;
125
- this.ns = collection.fullNamespace;
126
- }
127
- get commandName() {
128
- return "dropIndexes";
129
- }
130
- buildCommandDocument(_connection) {
131
- return {
132
- dropIndexes: this.collection.collectionName,
133
- index: this.indexName
134
- };
135
- }
136
- };
137
- exports.DropIndexOperation = DropIndexOperation;
138
- /** @internal */
139
- var ListIndexesOperation = class extends command_1.CommandOperation {
140
- constructor(collection, options) {
141
- super(collection, options);
142
- this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;
143
- this.options = { ...options };
144
- delete this.options.writeConcern;
145
- this.collectionNamespace = collection.s.namespace;
146
- }
147
- get commandName() {
148
- return "listIndexes";
149
- }
150
- buildCommandDocument(connection) {
151
- const serverWireVersion = (0, utils_1.maxWireVersion)(connection);
152
- const cursor = this.options.batchSize ? { batchSize: this.options.batchSize } : {};
153
- const command = {
154
- listIndexes: this.collectionNamespace.collection,
155
- cursor
156
- };
157
- if (serverWireVersion >= 9 && this.options.comment !== void 0) command.comment = this.options.comment;
158
- return command;
159
- }
160
- handleOk(response) {
161
- return response;
162
- }
163
- };
164
- exports.ListIndexesOperation = ListIndexesOperation;
165
- (0, operation_1.defineAspects)(ListIndexesOperation, [
166
- operation_1.Aspect.READ_OPERATION,
167
- operation_1.Aspect.RETRYABLE,
168
- operation_1.Aspect.CURSOR_CREATING,
169
- operation_1.Aspect.SUPPORTS_RAW_DATA
170
- ]);
171
- (0, operation_1.defineAspects)(CreateIndexesOperation, [operation_1.Aspect.WRITE_OPERATION, operation_1.Aspect.SUPPORTS_RAW_DATA]);
172
- (0, operation_1.defineAspects)(DropIndexOperation, [operation_1.Aspect.WRITE_OPERATION, operation_1.Aspect.SUPPORTS_RAW_DATA]);
173
- }));
174
-
175
- //#endregion
176
- export default require_indexes();
177
-
178
- export { require_indexes };
179
- //# sourceMappingURL=indexes.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"indexes.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ListIndexesOperation = exports.DropIndexOperation = exports.CreateIndexesOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst utils_1 = require(\"../utils\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\nconst VALID_INDEX_OPTIONS = new Set([\n 'background',\n 'unique',\n 'name',\n 'partialFilterExpression',\n 'sparse',\n 'hidden',\n 'expireAfterSeconds',\n 'storageEngine',\n 'collation',\n 'version',\n // text indexes\n 'weights',\n 'default_language',\n 'language_override',\n 'textIndexVersion',\n // 2d-sphere indexes\n '2dsphereIndexVersion',\n // 2d indexes\n 'bits',\n 'min',\n 'max',\n // geoHaystack Indexes\n 'bucketSize',\n // wildcard indexes\n 'wildcardProjection'\n]);\nfunction isIndexDirection(x) {\n return (typeof x === 'number' || x === '2d' || x === '2dsphere' || x === 'text' || x === 'geoHaystack');\n}\nfunction isSingleIndexTuple(t) {\n return Array.isArray(t) && t.length === 2 && isIndexDirection(t[1]);\n}\n/**\n * Converts an `IndexSpecification`, which can be specified in multiple formats, into a\n * valid `key` for the createIndexes command.\n */\nfunction constructIndexDescriptionMap(indexSpec) {\n const key = new Map();\n const indexSpecs = !Array.isArray(indexSpec) || isSingleIndexTuple(indexSpec) ? [indexSpec] : indexSpec;\n // Iterate through array and handle different types\n for (const spec of indexSpecs) {\n if (typeof spec === 'string') {\n key.set(spec, 1);\n }\n else if (Array.isArray(spec)) {\n key.set(spec[0], spec[1] ?? 1);\n }\n else if (spec instanceof Map) {\n for (const [property, value] of spec) {\n key.set(property, value);\n }\n }\n else if ((0, utils_1.isObject)(spec)) {\n for (const [property, value] of Object.entries(spec)) {\n key.set(property, value);\n }\n }\n }\n return key;\n}\n/**\n * Receives an index description and returns a modified index description which has had invalid options removed\n * from the description and has mapped the `version` option to the `v` option.\n */\nfunction resolveIndexDescription(description) {\n const validProvidedOptions = Object.entries(description).filter(([optionName]) => VALID_INDEX_OPTIONS.has(optionName));\n return Object.fromEntries(\n // we support the `version` option, but the `createIndexes` command expects it to be the `v`\n validProvidedOptions.map(([name, value]) => (name === 'version' ? ['v', value] : [name, value])));\n}\n/** @internal */\nclass CreateIndexesOperation extends command_1.CommandOperation {\n constructor(parent, collectionName, indexes, options) {\n super(parent, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options ?? {};\n // collation is set on each index, it should not be defined at the root\n this.options.collation = undefined;\n this.collectionName = collectionName;\n this.indexes = indexes.map((userIndex) => {\n // Ensure the key is a Map to preserve index key ordering\n const key = userIndex.key instanceof Map ? userIndex.key : new Map(Object.entries(userIndex.key));\n const name = userIndex.name ?? Array.from(key).flat().join('_');\n const validIndexOptions = resolveIndexDescription(userIndex);\n return {\n ...validIndexOptions,\n name,\n key\n };\n });\n this.ns = parent.s.namespace;\n }\n static fromIndexDescriptionArray(parent, collectionName, indexes, options) {\n return new CreateIndexesOperation(parent, collectionName, indexes, options);\n }\n static fromIndexSpecification(parent, collectionName, indexSpec, options = {}) {\n const key = constructIndexDescriptionMap(indexSpec);\n const description = { ...options, key };\n return new CreateIndexesOperation(parent, collectionName, [description], options);\n }\n get commandName() {\n return 'createIndexes';\n }\n buildCommandDocument(connection) {\n const options = this.options;\n const indexes = this.indexes;\n const serverWireVersion = (0, utils_1.maxWireVersion)(connection);\n const cmd = { createIndexes: this.collectionName, indexes };\n if (options.commitQuorum != null) {\n if (serverWireVersion < 9) {\n throw new error_1.MongoCompatibilityError('Option `commitQuorum` for `createIndexes` not supported on servers < 4.4');\n }\n cmd.commitQuorum = options.commitQuorum;\n }\n return cmd;\n }\n handleOk(_response) {\n const indexNames = this.indexes.map(index => index.name || '');\n return indexNames;\n }\n}\nexports.CreateIndexesOperation = CreateIndexesOperation;\n/** @internal */\nclass DropIndexOperation extends command_1.CommandOperation {\n constructor(collection, indexName, options) {\n super(collection, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = options ?? {};\n this.collection = collection;\n this.indexName = indexName;\n this.ns = collection.fullNamespace;\n }\n get commandName() {\n return 'dropIndexes';\n }\n buildCommandDocument(_connection) {\n return { dropIndexes: this.collection.collectionName, index: this.indexName };\n }\n}\nexports.DropIndexOperation = DropIndexOperation;\n/** @internal */\nclass ListIndexesOperation extends command_1.CommandOperation {\n constructor(collection, options) {\n super(collection, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;\n this.options = { ...options };\n delete this.options.writeConcern;\n this.collectionNamespace = collection.s.namespace;\n }\n get commandName() {\n return 'listIndexes';\n }\n buildCommandDocument(connection) {\n const serverWireVersion = (0, utils_1.maxWireVersion)(connection);\n const cursor = this.options.batchSize ? { batchSize: this.options.batchSize } : {};\n const command = { listIndexes: this.collectionNamespace.collection, cursor };\n // we check for undefined specifically here to allow falsy values\n // eslint-disable-next-line no-restricted-syntax\n if (serverWireVersion >= 9 && this.options.comment !== undefined) {\n command.comment = this.options.comment;\n }\n return command;\n }\n handleOk(response) {\n return response;\n }\n}\nexports.ListIndexesOperation = ListIndexesOperation;\n(0, operation_1.defineAspects)(ListIndexesOperation, [\n operation_1.Aspect.READ_OPERATION,\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.CURSOR_CREATING,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n(0, operation_1.defineAspects)(CreateIndexesOperation, [operation_1.Aspect.WRITE_OPERATION, operation_1.Aspect.SUPPORTS_RAW_DATA]);\n(0, operation_1.defineAspects)(DropIndexOperation, [operation_1.Aspect.WRITE_OPERATION, operation_1.Aspect.SUPPORTS_RAW_DATA]);\n//# sourceMappingURL=indexes.js.map"],"x_google_ignoreList":[0],"mappings":"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"}
@@ -1,77 +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
-
8
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.js
9
- var require_insert = /* @__PURE__ */ __commonJSMin(((exports) => {
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.InsertOneOperation = exports.InsertOperation = void 0;
12
- const responses_1 = require_responses();
13
- const error_1 = require_error();
14
- const utils_1 = require_utils();
15
- const command_1 = require_command();
16
- const operation_1 = require_operation();
17
- /** @internal */
18
- var InsertOperation = class extends command_1.CommandOperation {
19
- constructor(ns, documents, options) {
20
- super(void 0, options);
21
- this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
22
- this.options = {
23
- ...options,
24
- checkKeys: options.checkKeys ?? false
25
- };
26
- this.ns = ns;
27
- this.documents = documents;
28
- }
29
- get commandName() {
30
- return "insert";
31
- }
32
- buildCommandDocument(_connection, _session) {
33
- const options = this.options ?? {};
34
- const ordered = typeof options.ordered === "boolean" ? options.ordered : true;
35
- const command = {
36
- insert: this.ns.collection,
37
- documents: this.documents,
38
- ordered
39
- };
40
- if (typeof options.bypassDocumentValidation === "boolean") command.bypassDocumentValidation = options.bypassDocumentValidation;
41
- if (options.comment !== void 0) command.comment = options.comment;
42
- return command;
43
- }
44
- };
45
- exports.InsertOperation = InsertOperation;
46
- var InsertOneOperation = class extends InsertOperation {
47
- constructor(collection, doc, options) {
48
- super(collection.s.namespace, [(0, utils_1.maybeAddIdToDocuments)(collection, doc, options)], options);
49
- }
50
- handleOk(response) {
51
- const res = super.handleOk(response);
52
- if (res.code) throw new error_1.MongoServerError(res);
53
- if (res.writeErrors) throw new error_1.MongoServerError(res.writeErrors[0]);
54
- return {
55
- acknowledged: this.writeConcern?.w !== 0,
56
- insertedId: this.documents[0]._id
57
- };
58
- }
59
- };
60
- exports.InsertOneOperation = InsertOneOperation;
61
- (0, operation_1.defineAspects)(InsertOperation, [
62
- operation_1.Aspect.RETRYABLE,
63
- operation_1.Aspect.WRITE_OPERATION,
64
- operation_1.Aspect.SUPPORTS_RAW_DATA
65
- ]);
66
- (0, operation_1.defineAspects)(InsertOneOperation, [
67
- operation_1.Aspect.RETRYABLE,
68
- operation_1.Aspect.WRITE_OPERATION,
69
- operation_1.Aspect.SUPPORTS_RAW_DATA
70
- ]);
71
- }));
72
-
73
- //#endregion
74
- export default require_insert();
75
-
76
- export { require_insert };
77
- //# sourceMappingURL=insert.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"insert.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InsertOneOperation = exports.InsertOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst utils_1 = require(\"../utils\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nclass InsertOperation extends command_1.CommandOperation {\n constructor(ns, documents, options) {\n super(undefined, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.options = { ...options, checkKeys: options.checkKeys ?? false };\n this.ns = ns;\n this.documents = documents;\n }\n get commandName() {\n return 'insert';\n }\n buildCommandDocument(_connection, _session) {\n const options = this.options ?? {};\n const ordered = typeof options.ordered === 'boolean' ? options.ordered : true;\n const command = {\n insert: this.ns.collection,\n documents: this.documents,\n ordered\n };\n if (typeof options.bypassDocumentValidation === 'boolean') {\n command.bypassDocumentValidation = options.bypassDocumentValidation;\n }\n // we check for undefined specifically here to allow falsy values\n // eslint-disable-next-line no-restricted-syntax\n if (options.comment !== undefined) {\n command.comment = options.comment;\n }\n return command;\n }\n}\nexports.InsertOperation = InsertOperation;\nclass InsertOneOperation extends InsertOperation {\n constructor(collection, doc, options) {\n super(collection.s.namespace, [(0, utils_1.maybeAddIdToDocuments)(collection, doc, options)], options);\n }\n handleOk(response) {\n const res = super.handleOk(response);\n if (res.code)\n throw new error_1.MongoServerError(res);\n if (res.writeErrors) {\n // This should be a WriteError but we can't change it now because of error hierarchy\n throw new error_1.MongoServerError(res.writeErrors[0]);\n }\n return {\n acknowledged: this.writeConcern?.w !== 0,\n insertedId: this.documents[0]._id\n };\n }\n}\nexports.InsertOneOperation = InsertOneOperation;\n(0, operation_1.defineAspects)(InsertOperation, [\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.WRITE_OPERATION,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n(0, operation_1.defineAspects)(InsertOneOperation, [\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.WRITE_OPERATION,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n//# sourceMappingURL=insert.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,qBAAqB,QAAQ,kBAAkB,KAAK;CAC5D,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,kBAAN,cAA8B,UAAU,iBAAiB;EACrD,YAAY,IAAI,WAAW,SAAS;AAChC,SAAM,QAAW,QAAQ;AACzB,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU;IAAE,GAAG;IAAS,WAAW,QAAQ,aAAa;IAAO;AACpE,QAAK,KAAK;AACV,QAAK,YAAY;;EAErB,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,aAAa,UAAU;GACxC,MAAM,UAAU,KAAK,WAAW,EAAE;GAClC,MAAM,UAAU,OAAO,QAAQ,YAAY,YAAY,QAAQ,UAAU;GACzE,MAAM,UAAU;IACZ,QAAQ,KAAK,GAAG;IAChB,WAAW,KAAK;IAChB;IACH;AACD,OAAI,OAAO,QAAQ,6BAA6B,UAC5C,SAAQ,2BAA2B,QAAQ;AAI/C,OAAI,QAAQ,YAAY,OACpB,SAAQ,UAAU,QAAQ;AAE9B,UAAO;;;AAGf,SAAQ,kBAAkB;CAC1B,IAAM,qBAAN,cAAiC,gBAAgB;EAC7C,YAAY,YAAY,KAAK,SAAS;AAClC,SAAM,WAAW,EAAE,WAAW,EAAE,GAAG,QAAQ,uBAAuB,YAAY,KAAK,QAAQ,CAAC,EAAE,QAAQ;;EAE1G,SAAS,UAAU;GACf,MAAM,MAAM,MAAM,SAAS,SAAS;AACpC,OAAI,IAAI,KACJ,OAAM,IAAI,QAAQ,iBAAiB,IAAI;AAC3C,OAAI,IAAI,YAEJ,OAAM,IAAI,QAAQ,iBAAiB,IAAI,YAAY,GAAG;AAE1D,UAAO;IACH,cAAc,KAAK,cAAc,MAAM;IACvC,YAAY,KAAK,UAAU,GAAG;IACjC;;;AAGT,SAAQ,qBAAqB;AAC7B,EAAC,GAAG,YAAY,eAAe,iBAAiB;EAC5C,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC;AACF,EAAC,GAAG,YAAY,eAAe,oBAAoB;EAC/C,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC"}
@@ -1,48 +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_operation } from "./operation.mjs";
5
-
6
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.js
7
- var require_kill_cursors = /* @__PURE__ */ __commonJSMin(((exports) => {
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.KillCursorsOperation = void 0;
10
- const responses_1 = require_responses();
11
- const error_1 = require_error();
12
- const operation_1 = require_operation();
13
- var KillCursorsOperation = class extends operation_1.AbstractOperation {
14
- constructor(cursorId, ns, server, options) {
15
- super(options);
16
- this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;
17
- this.ns = ns;
18
- this.cursorId = cursorId;
19
- this.server = server;
20
- }
21
- get commandName() {
22
- return "killCursors";
23
- }
24
- buildCommand(_connection, _session) {
25
- const killCursors = this.ns.collection;
26
- if (killCursors == null) throw new error_1.MongoRuntimeError("A collection name must be determined before killCursors");
27
- return {
28
- killCursors,
29
- cursors: [this.cursorId]
30
- };
31
- }
32
- buildOptions(timeoutContext) {
33
- return {
34
- session: this.session,
35
- timeoutContext
36
- };
37
- }
38
- handleError(_error) {}
39
- };
40
- exports.KillCursorsOperation = KillCursorsOperation;
41
- (0, operation_1.defineAspects)(KillCursorsOperation, [operation_1.Aspect.MUST_SELECT_SAME_SERVER]);
42
- }));
43
-
44
- //#endregion
45
- export default require_kill_cursors();
46
-
47
- export { require_kill_cursors };
48
- //# sourceMappingURL=kill_cursors.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kill_cursors.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.KillCursorsOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst operation_1 = require(\"./operation\");\nclass KillCursorsOperation extends operation_1.AbstractOperation {\n constructor(cursorId, ns, server, options) {\n super(options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.MongoDBResponse;\n this.ns = ns;\n this.cursorId = cursorId;\n this.server = server;\n }\n get commandName() {\n return 'killCursors';\n }\n buildCommand(_connection, _session) {\n const killCursors = this.ns.collection;\n if (killCursors == null) {\n // Cursors should have adopted the namespace returned by MongoDB\n // which should always defined a collection name (even a pseudo one, ex. db.aggregate())\n throw new error_1.MongoRuntimeError('A collection name must be determined before killCursors');\n }\n const killCursorsCommand = {\n killCursors,\n cursors: [this.cursorId]\n };\n return killCursorsCommand;\n }\n buildOptions(timeoutContext) {\n return {\n session: this.session,\n timeoutContext\n };\n }\n handleError(_error) {\n // The driver should never emit errors from killCursors, this is spec-ed behavior\n }\n}\nexports.KillCursorsOperation = KillCursorsOperation;\n(0, operation_1.defineAspects)(KillCursorsOperation, [operation_1.Aspect.MUST_SELECT_SAME_SERVER]);\n//# sourceMappingURL=kill_cursors.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,uBAAuB,KAAK;CACpC,MAAM;CACN,MAAM;CACN,MAAM;CACN,IAAM,uBAAN,cAAmC,YAAY,kBAAkB;EAC7D,YAAY,UAAU,IAAI,QAAQ,SAAS;AACvC,SAAM,QAAQ;AACd,QAAK,+BAA+B,YAAY;AAChD,QAAK,KAAK;AACV,QAAK,WAAW;AAChB,QAAK,SAAS;;EAElB,IAAI,cAAc;AACd,UAAO;;EAEX,aAAa,aAAa,UAAU;GAChC,MAAM,cAAc,KAAK,GAAG;AAC5B,OAAI,eAAe,KAGf,OAAM,IAAI,QAAQ,kBAAkB,0DAA0D;AAMlG,UAJ2B;IACvB;IACA,SAAS,CAAC,KAAK,SAAS;IAC3B;;EAGL,aAAa,gBAAgB;AACzB,UAAO;IACH,SAAS,KAAK;IACd;IACH;;EAEL,YAAY,QAAQ;;AAIxB,SAAQ,uBAAuB;AAC/B,EAAC,GAAG,YAAY,eAAe,sBAAsB,CAAC,YAAY,OAAO,wBAAwB,CAAC"}
@@ -1,60 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_responses } from "../cmap/wire_protocol/responses.mjs";
3
- import { require_utils } from "../utils.mjs";
4
- import { require_operation } from "./operation.mjs";
5
- import { require_command } from "./command.mjs";
6
-
7
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.js
8
- var require_list_collections = /* @__PURE__ */ __commonJSMin(((exports) => {
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.ListCollectionsOperation = void 0;
11
- const responses_1 = require_responses();
12
- const utils_1 = require_utils();
13
- const command_1 = require_command();
14
- const operation_1 = require_operation();
15
- /** @internal */
16
- var ListCollectionsOperation = class extends command_1.CommandOperation {
17
- constructor(db, filter, options) {
18
- super(db, options);
19
- this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;
20
- this.options = { ...options };
21
- delete this.options.writeConcern;
22
- this.db = db;
23
- this.filter = filter;
24
- this.nameOnly = !!this.options.nameOnly;
25
- this.authorizedCollections = !!this.options.authorizedCollections;
26
- if (typeof this.options.batchSize === "number") this.batchSize = this.options.batchSize;
27
- this.SERVER_COMMAND_RESPONSE_TYPE = this.explain ? responses_1.ExplainedCursorResponse : responses_1.CursorResponse;
28
- }
29
- get commandName() {
30
- return "listCollections";
31
- }
32
- buildCommandDocument(connection) {
33
- const command = {
34
- listCollections: 1,
35
- filter: this.filter,
36
- cursor: this.batchSize ? { batchSize: this.batchSize } : {},
37
- nameOnly: this.nameOnly,
38
- authorizedCollections: this.authorizedCollections
39
- };
40
- if ((0, utils_1.maxWireVersion)(connection) >= 9 && this.options.comment !== void 0) command.comment = this.options.comment;
41
- return command;
42
- }
43
- handleOk(response) {
44
- return response;
45
- }
46
- };
47
- exports.ListCollectionsOperation = ListCollectionsOperation;
48
- (0, operation_1.defineAspects)(ListCollectionsOperation, [
49
- operation_1.Aspect.READ_OPERATION,
50
- operation_1.Aspect.RETRYABLE,
51
- operation_1.Aspect.CURSOR_CREATING,
52
- operation_1.Aspect.SUPPORTS_RAW_DATA
53
- ]);
54
- }));
55
-
56
- //#endregion
57
- export default require_list_collections();
58
-
59
- export { require_list_collections };
60
- //# sourceMappingURL=list_collections.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list_collections.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ListCollectionsOperation = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst utils_1 = require(\"../utils\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nclass ListCollectionsOperation extends command_1.CommandOperation {\n constructor(db, filter, options) {\n super(db, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;\n this.options = { ...options };\n delete this.options.writeConcern;\n this.db = db;\n this.filter = filter;\n this.nameOnly = !!this.options.nameOnly;\n this.authorizedCollections = !!this.options.authorizedCollections;\n if (typeof this.options.batchSize === 'number') {\n this.batchSize = this.options.batchSize;\n }\n this.SERVER_COMMAND_RESPONSE_TYPE = this.explain ? responses_1.ExplainedCursorResponse : responses_1.CursorResponse;\n }\n get commandName() {\n return 'listCollections';\n }\n buildCommandDocument(connection) {\n const command = {\n listCollections: 1,\n filter: this.filter,\n cursor: this.batchSize ? { batchSize: this.batchSize } : {},\n nameOnly: this.nameOnly,\n authorizedCollections: this.authorizedCollections\n };\n // we check for undefined specifically here to allow falsy values\n // eslint-disable-next-line no-restricted-syntax\n if ((0, utils_1.maxWireVersion)(connection) >= 9 && this.options.comment !== undefined) {\n command.comment = this.options.comment;\n }\n return command;\n }\n handleOk(response) {\n return response;\n }\n}\nexports.ListCollectionsOperation = ListCollectionsOperation;\n(0, operation_1.defineAspects)(ListCollectionsOperation, [\n operation_1.Aspect.READ_OPERATION,\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.CURSOR_CREATING,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n//# sourceMappingURL=list_collections.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,2BAA2B,KAAK;CACxC,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,2BAAN,cAAuC,UAAU,iBAAiB;EAC9D,YAAY,IAAI,QAAQ,SAAS;AAC7B,SAAM,IAAI,QAAQ;AAClB,QAAK,+BAA+B,YAAY;AAChD,QAAK,UAAU,EAAE,GAAG,SAAS;AAC7B,UAAO,KAAK,QAAQ;AACpB,QAAK,KAAK;AACV,QAAK,SAAS;AACd,QAAK,WAAW,CAAC,CAAC,KAAK,QAAQ;AAC/B,QAAK,wBAAwB,CAAC,CAAC,KAAK,QAAQ;AAC5C,OAAI,OAAO,KAAK,QAAQ,cAAc,SAClC,MAAK,YAAY,KAAK,QAAQ;AAElC,QAAK,+BAA+B,KAAK,UAAU,YAAY,0BAA0B,YAAY;;EAEzG,IAAI,cAAc;AACd,UAAO;;EAEX,qBAAqB,YAAY;GAC7B,MAAM,UAAU;IACZ,iBAAiB;IACjB,QAAQ,KAAK;IACb,QAAQ,KAAK,YAAY,EAAE,WAAW,KAAK,WAAW,GAAG,EAAE;IAC3D,UAAU,KAAK;IACf,uBAAuB,KAAK;IAC/B;AAGD,QAAK,GAAG,QAAQ,gBAAgB,WAAW,IAAI,KAAK,KAAK,QAAQ,YAAY,OACzE,SAAQ,UAAU,KAAK,QAAQ;AAEnC,UAAO;;EAEX,SAAS,UAAU;AACf,UAAO;;;AAGf,SAAQ,2BAA2B;AACnC,EAAC,GAAG,YAAY,eAAe,0BAA0B;EACrD,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC"}