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,365 +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_explain } from "../explain.mjs";
6
- import { require_execute_operation } from "../operations/execute_operation.mjs";
7
- import { require_sort } from "../sort.mjs";
8
- import { require_explainable_cursor } from "./explainable_cursor.mjs";
9
- import { require_count } from "../operations/count.mjs";
10
- import { require_find } from "../operations/find.mjs";
11
-
12
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.js
13
- var require_find_cursor = /* @__PURE__ */ __commonJSMin(((exports) => {
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.FindCursor = exports.FLAGS = void 0;
16
- const responses_1 = require_responses();
17
- const error_1 = require_error();
18
- const explain_1 = require_explain();
19
- const count_1 = require_count();
20
- const execute_operation_1 = require_execute_operation();
21
- const find_1 = require_find();
22
- const sort_1 = require_sort();
23
- const utils_1 = require_utils();
24
- const explainable_cursor_1 = require_explainable_cursor();
25
- /** @public Flags allowed for cursor */
26
- exports.FLAGS = [
27
- "tailable",
28
- "oplogReplay",
29
- "noCursorTimeout",
30
- "awaitData",
31
- "exhaust",
32
- "partial"
33
- ];
34
- /** @public */
35
- var FindCursor = class FindCursor extends explainable_cursor_1.ExplainableCursor {
36
- /** @internal */
37
- constructor(client, namespace, filter = {}, options = {}) {
38
- super(client, namespace, options);
39
- /** @internal */
40
- this.numReturned = 0;
41
- this.cursorFilter = filter;
42
- this.findOptions = options;
43
- if (options.sort != null) this.findOptions.sort = (0, sort_1.formatSort)(options.sort);
44
- }
45
- clone() {
46
- const clonedOptions = (0, utils_1.mergeOptions)({}, this.findOptions);
47
- delete clonedOptions.session;
48
- return new FindCursor(this.client, this.namespace, this.cursorFilter, { ...clonedOptions });
49
- }
50
- map(transform) {
51
- return super.map(transform);
52
- }
53
- /** @internal */
54
- async _initialize(session) {
55
- const options = {
56
- ...this.findOptions,
57
- ...this.cursorOptions,
58
- session,
59
- signal: this.signal
60
- };
61
- if (options.explain) try {
62
- (0, explain_1.validateExplainTimeoutOptions)(options, explain_1.Explain.fromOptions(options));
63
- } catch {
64
- throw new error_1.MongoAPIError("timeoutMS cannot be used with explain when explain is specified in findOptions");
65
- }
66
- const findOperation = new find_1.FindOperation(this.namespace, this.cursorFilter, options);
67
- const response = await (0, execute_operation_1.executeOperation)(this.client, findOperation, this.timeoutContext);
68
- this.numReturned = response.batchSize;
69
- return {
70
- server: findOperation.server,
71
- session,
72
- response
73
- };
74
- }
75
- /** @internal */
76
- async getMore(batchSize) {
77
- const numReturned = this.numReturned;
78
- if (numReturned) {
79
- const limit = this.findOptions.limit;
80
- batchSize = limit && limit > 0 && numReturned + batchSize > limit ? limit - numReturned : batchSize;
81
- if (batchSize <= 0) {
82
- try {
83
- await this.close();
84
- } catch (error) {
85
- (0, utils_1.squashError)(error);
86
- }
87
- return responses_1.CursorResponse.emptyGetMore;
88
- }
89
- }
90
- const response = await super.getMore(batchSize);
91
- this.numReturned = this.numReturned + response.batchSize;
92
- return response;
93
- }
94
- /**
95
- * Get the count of documents for this cursor
96
- * @deprecated Use `collection.estimatedDocumentCount` or `collection.countDocuments` instead
97
- */
98
- async count(options) {
99
- (0, utils_1.emitWarningOnce)("cursor.count is deprecated and will be removed in the next major version, please use `collection.estimatedDocumentCount` or `collection.countDocuments` instead ");
100
- if (typeof options === "boolean") throw new error_1.MongoInvalidArgumentError("Invalid first parameter to count");
101
- return await (0, execute_operation_1.executeOperation)(this.client, new count_1.CountOperation(this.namespace, this.cursorFilter, {
102
- ...this.findOptions,
103
- ...this.cursorOptions,
104
- ...options
105
- }));
106
- }
107
- async explain(verbosity, options) {
108
- const { explain, timeout } = this.resolveExplainTimeoutOptions(verbosity, options);
109
- return (await (0, execute_operation_1.executeOperation)(this.client, new find_1.FindOperation(this.namespace, this.cursorFilter, {
110
- ...this.findOptions,
111
- ...this.cursorOptions,
112
- ...timeout,
113
- explain: explain ?? true
114
- }))).shift(this.deserializationOptions);
115
- }
116
- /** Set the cursor query */
117
- filter(filter) {
118
- this.throwIfInitialized();
119
- this.cursorFilter = filter;
120
- return this;
121
- }
122
- /**
123
- * Set the cursor hint
124
- *
125
- * @param hint - If specified, then the query system will only consider plans using the hinted index.
126
- */
127
- hint(hint) {
128
- this.throwIfInitialized();
129
- this.findOptions.hint = hint;
130
- return this;
131
- }
132
- /**
133
- * Set the cursor min
134
- *
135
- * @param min - Specify a $min value to specify the inclusive lower bound for a specific index in order to constrain the results of find(). The $min specifies the lower bound for all keys of a specific index in order.
136
- */
137
- min(min) {
138
- this.throwIfInitialized();
139
- this.findOptions.min = min;
140
- return this;
141
- }
142
- /**
143
- * Set the cursor max
144
- *
145
- * @param max - Specify a $max value to specify the exclusive upper bound for a specific index in order to constrain the results of find(). The $max specifies the upper bound for all keys of a specific index in order.
146
- */
147
- max(max) {
148
- this.throwIfInitialized();
149
- this.findOptions.max = max;
150
- return this;
151
- }
152
- /**
153
- * Set the cursor returnKey.
154
- * If set to true, modifies the cursor to only return the index field or fields for the results of the query, rather than documents.
155
- * If set to true and the query does not use an index to perform the read operation, the returned documents will not contain any fields.
156
- *
157
- * @param value - the returnKey value.
158
- */
159
- returnKey(value) {
160
- this.throwIfInitialized();
161
- this.findOptions.returnKey = value;
162
- return this;
163
- }
164
- /**
165
- * Modifies the output of a query by adding a field $recordId to matching documents. $recordId is the internal key which uniquely identifies a document in a collection.
166
- *
167
- * @param value - The $showDiskLoc option has now been deprecated and replaced with the showRecordId field. $showDiskLoc will still be accepted for OP_QUERY stye find.
168
- */
169
- showRecordId(value) {
170
- this.throwIfInitialized();
171
- this.findOptions.showRecordId = value;
172
- return this;
173
- }
174
- /**
175
- * Add a query modifier to the cursor query
176
- *
177
- * @param name - The query modifier (must start with $, such as $orderby etc)
178
- * @param value - The modifier value.
179
- */
180
- addQueryModifier(name, value) {
181
- this.throwIfInitialized();
182
- if (name[0] !== "$") throw new error_1.MongoInvalidArgumentError(`${name} is not a valid query modifier`);
183
- switch (name.substr(1)) {
184
- case "comment":
185
- this.findOptions.comment = value;
186
- break;
187
- case "explain":
188
- this.findOptions.explain = value;
189
- break;
190
- case "hint":
191
- this.findOptions.hint = value;
192
- break;
193
- case "max":
194
- this.findOptions.max = value;
195
- break;
196
- case "maxTimeMS":
197
- this.findOptions.maxTimeMS = value;
198
- break;
199
- case "min":
200
- this.findOptions.min = value;
201
- break;
202
- case "orderby":
203
- this.findOptions.sort = (0, sort_1.formatSort)(value);
204
- break;
205
- case "query":
206
- this.cursorFilter = value;
207
- break;
208
- case "returnKey":
209
- this.findOptions.returnKey = value;
210
- break;
211
- case "showDiskLoc":
212
- this.findOptions.showRecordId = value;
213
- break;
214
- default: throw new error_1.MongoInvalidArgumentError(`Invalid query modifier: ${name}`);
215
- }
216
- return this;
217
- }
218
- /**
219
- * Add a comment to the cursor query allowing for tracking the comment in the log.
220
- *
221
- * @param value - The comment attached to this query.
222
- */
223
- comment(value) {
224
- this.throwIfInitialized();
225
- this.findOptions.comment = value;
226
- return this;
227
- }
228
- /**
229
- * Set a maxAwaitTimeMS on a tailing cursor query to allow to customize the timeout value for the option awaitData (Only supported on MongoDB 3.2 or higher, ignored otherwise)
230
- *
231
- * @param value - Number of milliseconds to wait before aborting the tailed query.
232
- */
233
- maxAwaitTimeMS(value) {
234
- this.throwIfInitialized();
235
- if (typeof value !== "number") throw new error_1.MongoInvalidArgumentError("Argument for maxAwaitTimeMS must be a number");
236
- this.findOptions.maxAwaitTimeMS = value;
237
- return this;
238
- }
239
- /**
240
- * Set a maxTimeMS on the cursor query, allowing for hard timeout limits on queries (Only supported on MongoDB 2.6 or higher)
241
- *
242
- * @param value - Number of milliseconds to wait before aborting the query.
243
- */
244
- maxTimeMS(value) {
245
- this.throwIfInitialized();
246
- if (typeof value !== "number") throw new error_1.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");
247
- this.findOptions.maxTimeMS = value;
248
- return this;
249
- }
250
- /**
251
- * Add a project stage to the aggregation pipeline
252
- *
253
- * @remarks
254
- * In order to strictly type this function you must provide an interface
255
- * that represents the effect of your projection on the result documents.
256
- *
257
- * By default chaining a projection to your cursor changes the returned type to the generic
258
- * {@link Document} type.
259
- * You should specify a parameterized type to have assertions on your final results.
260
- *
261
- * @example
262
- * ```typescript
263
- * // Best way
264
- * const docs: FindCursor<{ a: number }> = cursor.project<{ a: number }>({ _id: 0, a: true });
265
- * // Flexible way
266
- * const docs: FindCursor<Document> = cursor.project({ _id: 0, a: true });
267
- * ```
268
- *
269
- * @remarks
270
- *
271
- * **Note for Typescript Users:** adding a transform changes the return type of the iteration of this cursor,
272
- * it **does not** return a new instance of a cursor. This means when calling project,
273
- * you should always assign the result to a new variable in order to get a correctly typed cursor variable.
274
- * Take note of the following example:
275
- *
276
- * @example
277
- * ```typescript
278
- * const cursor: FindCursor<{ a: number; b: string }> = coll.find();
279
- * const projectCursor = cursor.project<{ a: number }>({ _id: 0, a: true });
280
- * const aPropOnlyArray: {a: number}[] = await projectCursor.toArray();
281
- *
282
- * // or always use chaining and save the final cursor
283
- *
284
- * const cursor = coll.find().project<{ a: string }>({
285
- * _id: 0,
286
- * a: { $convert: { input: '$a', to: 'string' }
287
- * }});
288
- * ```
289
- */
290
- project(value) {
291
- this.throwIfInitialized();
292
- this.findOptions.projection = value;
293
- return this;
294
- }
295
- /**
296
- * Sets the sort order of the cursor query.
297
- *
298
- * @param sort - The key or keys set for the sort.
299
- * @param direction - The direction of the sorting (1 or -1).
300
- */
301
- sort(sort, direction) {
302
- this.throwIfInitialized();
303
- if (this.findOptions.tailable) throw new error_1.MongoTailableCursorError("Tailable cursor does not support sorting");
304
- this.findOptions.sort = (0, sort_1.formatSort)(sort, direction);
305
- return this;
306
- }
307
- /**
308
- * Allows disk use for blocking sort operations exceeding 100MB memory. (MongoDB 3.2 or higher)
309
- *
310
- * @remarks
311
- * {@link https://www.mongodb.com/docs/manual/reference/command/find/#find-cmd-allowdiskuse | find command allowDiskUse documentation}
312
- */
313
- allowDiskUse(allow = true) {
314
- this.throwIfInitialized();
315
- if (!this.findOptions.sort) throw new error_1.MongoInvalidArgumentError("Option \"allowDiskUse\" requires a sort specification");
316
- if (!allow) {
317
- this.findOptions.allowDiskUse = false;
318
- return this;
319
- }
320
- this.findOptions.allowDiskUse = true;
321
- return this;
322
- }
323
- /**
324
- * Set the collation options for the cursor.
325
- *
326
- * @param value - The cursor collation options (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
327
- */
328
- collation(value) {
329
- this.throwIfInitialized();
330
- this.findOptions.collation = value;
331
- return this;
332
- }
333
- /**
334
- * Set the limit for the cursor.
335
- *
336
- * @param value - The limit for the cursor query.
337
- */
338
- limit(value) {
339
- this.throwIfInitialized();
340
- if (this.findOptions.tailable) throw new error_1.MongoTailableCursorError("Tailable cursor does not support limit");
341
- if (typeof value !== "number") throw new error_1.MongoInvalidArgumentError("Operation \"limit\" requires an integer");
342
- this.findOptions.limit = value;
343
- return this;
344
- }
345
- /**
346
- * Set the skip for the cursor.
347
- *
348
- * @param value - The skip for the cursor query.
349
- */
350
- skip(value) {
351
- this.throwIfInitialized();
352
- if (this.findOptions.tailable) throw new error_1.MongoTailableCursorError("Tailable cursor does not support skip");
353
- if (typeof value !== "number") throw new error_1.MongoInvalidArgumentError("Operation \"skip\" requires an integer");
354
- this.findOptions.skip = value;
355
- return this;
356
- }
357
- };
358
- exports.FindCursor = FindCursor;
359
- }));
360
-
361
- //#endregion
362
- export default require_find_cursor();
363
-
364
- export { require_find_cursor };
365
- //# sourceMappingURL=find_cursor.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find_cursor.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.FindCursor = exports.FLAGS = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst explain_1 = require(\"../explain\");\nconst count_1 = require(\"../operations/count\");\nconst execute_operation_1 = require(\"../operations/execute_operation\");\nconst find_1 = require(\"../operations/find\");\nconst sort_1 = require(\"../sort\");\nconst utils_1 = require(\"../utils\");\nconst explainable_cursor_1 = require(\"./explainable_cursor\");\n/** @public Flags allowed for cursor */\nexports.FLAGS = [\n 'tailable',\n 'oplogReplay',\n 'noCursorTimeout',\n 'awaitData',\n 'exhaust',\n 'partial'\n];\n/** @public */\nclass FindCursor extends explainable_cursor_1.ExplainableCursor {\n /** @internal */\n constructor(client, namespace, filter = {}, options = {}) {\n super(client, namespace, options);\n /** @internal */\n this.numReturned = 0;\n this.cursorFilter = filter;\n this.findOptions = options;\n if (options.sort != null) {\n this.findOptions.sort = (0, sort_1.formatSort)(options.sort);\n }\n }\n clone() {\n const clonedOptions = (0, utils_1.mergeOptions)({}, this.findOptions);\n delete clonedOptions.session;\n return new FindCursor(this.client, this.namespace, this.cursorFilter, {\n ...clonedOptions\n });\n }\n map(transform) {\n return super.map(transform);\n }\n /** @internal */\n async _initialize(session) {\n const options = {\n ...this.findOptions, // NOTE: order matters here, we may need to refine this\n ...this.cursorOptions,\n session,\n signal: this.signal\n };\n if (options.explain) {\n try {\n (0, explain_1.validateExplainTimeoutOptions)(options, explain_1.Explain.fromOptions(options));\n }\n catch {\n throw new error_1.MongoAPIError('timeoutMS cannot be used with explain when explain is specified in findOptions');\n }\n }\n const findOperation = new find_1.FindOperation(this.namespace, this.cursorFilter, options);\n const response = await (0, execute_operation_1.executeOperation)(this.client, findOperation, this.timeoutContext);\n // the response is not a cursor when `explain` is enabled\n this.numReturned = response.batchSize;\n return { server: findOperation.server, session, response };\n }\n /** @internal */\n async getMore(batchSize) {\n const numReturned = this.numReturned;\n if (numReturned) {\n // TODO(DRIVERS-1448): Remove logic to enforce `limit` in the driver\n const limit = this.findOptions.limit;\n batchSize =\n limit && limit > 0 && numReturned + batchSize > limit ? limit - numReturned : batchSize;\n if (batchSize <= 0) {\n try {\n await this.close();\n }\n catch (error) {\n (0, utils_1.squashError)(error);\n // this is an optimization for the special case of a limit for a find command to avoid an\n // extra getMore when the limit has been reached and the limit is a multiple of the batchSize.\n // This is a consequence of the new query engine in 5.0 having no knowledge of the limit as it\n // produces results for the find command. Once a batch is filled up, it is returned and only\n // on the subsequent getMore will the query framework consider the limit, determine the cursor\n // is exhausted and return a cursorId of zero.\n // instead, if we determine there are no more documents to request from the server, we preemptively\n // close the cursor\n }\n return responses_1.CursorResponse.emptyGetMore;\n }\n }\n const response = await super.getMore(batchSize);\n // TODO: wrap this in some logic to prevent it from happening if we don't need this support\n this.numReturned = this.numReturned + response.batchSize;\n return response;\n }\n /**\n * Get the count of documents for this cursor\n * @deprecated Use `collection.estimatedDocumentCount` or `collection.countDocuments` instead\n */\n async count(options) {\n (0, utils_1.emitWarningOnce)('cursor.count is deprecated and will be removed in the next major version, please use `collection.estimatedDocumentCount` or `collection.countDocuments` instead ');\n if (typeof options === 'boolean') {\n throw new error_1.MongoInvalidArgumentError('Invalid first parameter to count');\n }\n return await (0, execute_operation_1.executeOperation)(this.client, new count_1.CountOperation(this.namespace, this.cursorFilter, {\n ...this.findOptions, // NOTE: order matters here, we may need to refine this\n ...this.cursorOptions,\n ...options\n }));\n }\n async explain(verbosity, options) {\n const { explain, timeout } = this.resolveExplainTimeoutOptions(verbosity, options);\n return (await (0, execute_operation_1.executeOperation)(this.client, new find_1.FindOperation(this.namespace, this.cursorFilter, {\n ...this.findOptions, // NOTE: order matters here, we may need to refine this\n ...this.cursorOptions,\n ...timeout,\n explain: explain ?? true\n }))).shift(this.deserializationOptions);\n }\n /** Set the cursor query */\n filter(filter) {\n this.throwIfInitialized();\n this.cursorFilter = filter;\n return this;\n }\n /**\n * Set the cursor hint\n *\n * @param hint - If specified, then the query system will only consider plans using the hinted index.\n */\n hint(hint) {\n this.throwIfInitialized();\n this.findOptions.hint = hint;\n return this;\n }\n /**\n * Set the cursor min\n *\n * @param min - Specify a $min value to specify the inclusive lower bound for a specific index in order to constrain the results of find(). The $min specifies the lower bound for all keys of a specific index in order.\n */\n min(min) {\n this.throwIfInitialized();\n this.findOptions.min = min;\n return this;\n }\n /**\n * Set the cursor max\n *\n * @param max - Specify a $max value to specify the exclusive upper bound for a specific index in order to constrain the results of find(). The $max specifies the upper bound for all keys of a specific index in order.\n */\n max(max) {\n this.throwIfInitialized();\n this.findOptions.max = max;\n return this;\n }\n /**\n * Set the cursor returnKey.\n * If set to true, modifies the cursor to only return the index field or fields for the results of the query, rather than documents.\n * If set to true and the query does not use an index to perform the read operation, the returned documents will not contain any fields.\n *\n * @param value - the returnKey value.\n */\n returnKey(value) {\n this.throwIfInitialized();\n this.findOptions.returnKey = value;\n return this;\n }\n /**\n * Modifies the output of a query by adding a field $recordId to matching documents. $recordId is the internal key which uniquely identifies a document in a collection.\n *\n * @param value - The $showDiskLoc option has now been deprecated and replaced with the showRecordId field. $showDiskLoc will still be accepted for OP_QUERY stye find.\n */\n showRecordId(value) {\n this.throwIfInitialized();\n this.findOptions.showRecordId = value;\n return this;\n }\n /**\n * Add a query modifier to the cursor query\n *\n * @param name - The query modifier (must start with $, such as $orderby etc)\n * @param value - The modifier value.\n */\n addQueryModifier(name, value) {\n this.throwIfInitialized();\n if (name[0] !== '$') {\n throw new error_1.MongoInvalidArgumentError(`${name} is not a valid query modifier`);\n }\n // Strip of the $\n const field = name.substr(1);\n // NOTE: consider some TS magic for this\n switch (field) {\n case 'comment':\n this.findOptions.comment = value;\n break;\n case 'explain':\n this.findOptions.explain = value;\n break;\n case 'hint':\n this.findOptions.hint = value;\n break;\n case 'max':\n this.findOptions.max = value;\n break;\n case 'maxTimeMS':\n this.findOptions.maxTimeMS = value;\n break;\n case 'min':\n this.findOptions.min = value;\n break;\n case 'orderby':\n this.findOptions.sort = (0, sort_1.formatSort)(value);\n break;\n case 'query':\n this.cursorFilter = value;\n break;\n case 'returnKey':\n this.findOptions.returnKey = value;\n break;\n case 'showDiskLoc':\n this.findOptions.showRecordId = value;\n break;\n default:\n throw new error_1.MongoInvalidArgumentError(`Invalid query modifier: ${name}`);\n }\n return this;\n }\n /**\n * Add a comment to the cursor query allowing for tracking the comment in the log.\n *\n * @param value - The comment attached to this query.\n */\n comment(value) {\n this.throwIfInitialized();\n this.findOptions.comment = value;\n return this;\n }\n /**\n * Set a maxAwaitTimeMS on a tailing cursor query to allow to customize the timeout value for the option awaitData (Only supported on MongoDB 3.2 or higher, ignored otherwise)\n *\n * @param value - Number of milliseconds to wait before aborting the tailed query.\n */\n maxAwaitTimeMS(value) {\n this.throwIfInitialized();\n if (typeof value !== 'number') {\n throw new error_1.MongoInvalidArgumentError('Argument for maxAwaitTimeMS must be a number');\n }\n this.findOptions.maxAwaitTimeMS = value;\n return this;\n }\n /**\n * Set a maxTimeMS on the cursor query, allowing for hard timeout limits on queries (Only supported on MongoDB 2.6 or higher)\n *\n * @param value - Number of milliseconds to wait before aborting the query.\n */\n maxTimeMS(value) {\n this.throwIfInitialized();\n if (typeof value !== 'number') {\n throw new error_1.MongoInvalidArgumentError('Argument for maxTimeMS must be a number');\n }\n this.findOptions.maxTimeMS = value;\n return this;\n }\n /**\n * Add a project stage to the aggregation pipeline\n *\n * @remarks\n * In order to strictly type this function you must provide an interface\n * that represents the effect of your projection on the result documents.\n *\n * By default chaining a projection to your cursor changes the returned type to the generic\n * {@link Document} type.\n * You should specify a parameterized type to have assertions on your final results.\n *\n * @example\n * ```typescript\n * // Best way\n * const docs: FindCursor<{ a: number }> = cursor.project<{ a: number }>({ _id: 0, a: true });\n * // Flexible way\n * const docs: FindCursor<Document> = cursor.project({ _id: 0, a: true });\n * ```\n *\n * @remarks\n *\n * **Note for Typescript Users:** adding a transform changes the return type of the iteration of this cursor,\n * it **does not** return a new instance of a cursor. This means when calling project,\n * you should always assign the result to a new variable in order to get a correctly typed cursor variable.\n * Take note of the following example:\n *\n * @example\n * ```typescript\n * const cursor: FindCursor<{ a: number; b: string }> = coll.find();\n * const projectCursor = cursor.project<{ a: number }>({ _id: 0, a: true });\n * const aPropOnlyArray: {a: number}[] = await projectCursor.toArray();\n *\n * // or always use chaining and save the final cursor\n *\n * const cursor = coll.find().project<{ a: string }>({\n * _id: 0,\n * a: { $convert: { input: '$a', to: 'string' }\n * }});\n * ```\n */\n project(value) {\n this.throwIfInitialized();\n this.findOptions.projection = value;\n return this;\n }\n /**\n * Sets the sort order of the cursor query.\n *\n * @param sort - The key or keys set for the sort.\n * @param direction - The direction of the sorting (1 or -1).\n */\n sort(sort, direction) {\n this.throwIfInitialized();\n if (this.findOptions.tailable) {\n throw new error_1.MongoTailableCursorError('Tailable cursor does not support sorting');\n }\n this.findOptions.sort = (0, sort_1.formatSort)(sort, direction);\n return this;\n }\n /**\n * Allows disk use for blocking sort operations exceeding 100MB memory. (MongoDB 3.2 or higher)\n *\n * @remarks\n * {@link https://www.mongodb.com/docs/manual/reference/command/find/#find-cmd-allowdiskuse | find command allowDiskUse documentation}\n */\n allowDiskUse(allow = true) {\n this.throwIfInitialized();\n if (!this.findOptions.sort) {\n throw new error_1.MongoInvalidArgumentError('Option \"allowDiskUse\" requires a sort specification');\n }\n // As of 6.0 the default is true. This allows users to get back to the old behavior.\n if (!allow) {\n this.findOptions.allowDiskUse = false;\n return this;\n }\n this.findOptions.allowDiskUse = true;\n return this;\n }\n /**\n * Set the collation options for the cursor.\n *\n * @param value - The cursor collation options (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).\n */\n collation(value) {\n this.throwIfInitialized();\n this.findOptions.collation = value;\n return this;\n }\n /**\n * Set the limit for the cursor.\n *\n * @param value - The limit for the cursor query.\n */\n limit(value) {\n this.throwIfInitialized();\n if (this.findOptions.tailable) {\n throw new error_1.MongoTailableCursorError('Tailable cursor does not support limit');\n }\n if (typeof value !== 'number') {\n throw new error_1.MongoInvalidArgumentError('Operation \"limit\" requires an integer');\n }\n this.findOptions.limit = value;\n return this;\n }\n /**\n * Set the skip for the cursor.\n *\n * @param value - The skip for the cursor query.\n */\n skip(value) {\n this.throwIfInitialized();\n if (this.findOptions.tailable) {\n throw new error_1.MongoTailableCursorError('Tailable cursor does not support skip');\n }\n if (typeof value !== 'number') {\n throw new error_1.MongoInvalidArgumentError('Operation \"skip\" requires an integer');\n }\n this.findOptions.skip = value;\n return this;\n }\n}\nexports.FindCursor = FindCursor;\n//# sourceMappingURL=find_cursor.js.map"],"x_google_ignoreList":[0],"mappings":"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"}
@@ -1,50 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_execute_operation } from "../operations/execute_operation.mjs";
3
- import { require_list_collections } from "../operations/list_collections.mjs";
4
- import { require_abstract_cursor } from "./abstract_cursor.mjs";
5
-
6
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.js
7
- var require_list_collections_cursor = /* @__PURE__ */ __commonJSMin(((exports) => {
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.ListCollectionsCursor = void 0;
10
- const execute_operation_1 = require_execute_operation();
11
- const list_collections_1 = require_list_collections();
12
- const abstract_cursor_1 = require_abstract_cursor();
13
- /** @public */
14
- var ListCollectionsCursor = class ListCollectionsCursor extends abstract_cursor_1.AbstractCursor {
15
- constructor(db, filter, options) {
16
- super(db.client, db.s.namespace, options);
17
- this.parent = db;
18
- this.filter = filter;
19
- this.options = options;
20
- }
21
- clone() {
22
- return new ListCollectionsCursor(this.parent, this.filter, {
23
- ...this.options,
24
- ...this.cursorOptions
25
- });
26
- }
27
- /** @internal */
28
- async _initialize(session) {
29
- const operation = new list_collections_1.ListCollectionsOperation(this.parent, this.filter, {
30
- ...this.cursorOptions,
31
- ...this.options,
32
- session,
33
- signal: this.signal
34
- });
35
- const response = await (0, execute_operation_1.executeOperation)(this.parent.client, operation, this.timeoutContext);
36
- return {
37
- server: operation.server,
38
- session,
39
- response
40
- };
41
- }
42
- };
43
- exports.ListCollectionsCursor = ListCollectionsCursor;
44
- }));
45
-
46
- //#endregion
47
- export default require_list_collections_cursor();
48
-
49
- export { require_list_collections_cursor };
50
- //# sourceMappingURL=list_collections_cursor.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list_collections_cursor.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ListCollectionsCursor = void 0;\nconst execute_operation_1 = require(\"../operations/execute_operation\");\nconst list_collections_1 = require(\"../operations/list_collections\");\nconst abstract_cursor_1 = require(\"./abstract_cursor\");\n/** @public */\nclass ListCollectionsCursor extends abstract_cursor_1.AbstractCursor {\n constructor(db, filter, options) {\n super(db.client, db.s.namespace, options);\n this.parent = db;\n this.filter = filter;\n this.options = options;\n }\n clone() {\n return new ListCollectionsCursor(this.parent, this.filter, {\n ...this.options,\n ...this.cursorOptions\n });\n }\n /** @internal */\n async _initialize(session) {\n const operation = new list_collections_1.ListCollectionsOperation(this.parent, this.filter, {\n ...this.cursorOptions,\n ...this.options,\n session,\n signal: this.signal\n });\n const response = await (0, execute_operation_1.executeOperation)(this.parent.client, operation, this.timeoutContext);\n return { server: operation.server, session, response };\n }\n}\nexports.ListCollectionsCursor = ListCollectionsCursor;\n//# sourceMappingURL=list_collections_cursor.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,wBAAwB,KAAK;CACrC,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,wBAAN,MAAM,8BAA8B,kBAAkB,eAAe;EACjE,YAAY,IAAI,QAAQ,SAAS;AAC7B,SAAM,GAAG,QAAQ,GAAG,EAAE,WAAW,QAAQ;AACzC,QAAK,SAAS;AACd,QAAK,SAAS;AACd,QAAK,UAAU;;EAEnB,QAAQ;AACJ,UAAO,IAAI,sBAAsB,KAAK,QAAQ,KAAK,QAAQ;IACvD,GAAG,KAAK;IACR,GAAG,KAAK;IACX,CAAC;;;EAGN,MAAM,YAAY,SAAS;GACvB,MAAM,YAAY,IAAI,mBAAmB,yBAAyB,KAAK,QAAQ,KAAK,QAAQ;IACxF,GAAG,KAAK;IACR,GAAG,KAAK;IACR;IACA,QAAQ,KAAK;IAChB,CAAC;GACF,MAAM,WAAW,OAAO,GAAG,oBAAoB,kBAAkB,KAAK,OAAO,QAAQ,WAAW,KAAK,eAAe;AACpH,UAAO;IAAE,QAAQ,UAAU;IAAQ;IAAS;IAAU;;;AAG9D,SAAQ,wBAAwB"}
@@ -1,48 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_execute_operation } from "../operations/execute_operation.mjs";
3
- import { require_indexes } from "../operations/indexes.mjs";
4
- import { require_abstract_cursor } from "./abstract_cursor.mjs";
5
-
6
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.js
7
- var require_list_indexes_cursor = /* @__PURE__ */ __commonJSMin(((exports) => {
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.ListIndexesCursor = void 0;
10
- const execute_operation_1 = require_execute_operation();
11
- const indexes_1 = require_indexes();
12
- const abstract_cursor_1 = require_abstract_cursor();
13
- /** @public */
14
- var ListIndexesCursor = class ListIndexesCursor extends abstract_cursor_1.AbstractCursor {
15
- constructor(collection, options) {
16
- super(collection.client, collection.s.namespace, options);
17
- this.parent = collection;
18
- this.options = options;
19
- }
20
- clone() {
21
- return new ListIndexesCursor(this.parent, {
22
- ...this.options,
23
- ...this.cursorOptions
24
- });
25
- }
26
- /** @internal */
27
- async _initialize(session) {
28
- const operation = new indexes_1.ListIndexesOperation(this.parent, {
29
- ...this.cursorOptions,
30
- ...this.options,
31
- session
32
- });
33
- const response = await (0, execute_operation_1.executeOperation)(this.parent.client, operation, this.timeoutContext);
34
- return {
35
- server: operation.server,
36
- session,
37
- response
38
- };
39
- }
40
- };
41
- exports.ListIndexesCursor = ListIndexesCursor;
42
- }));
43
-
44
- //#endregion
45
- export default require_list_indexes_cursor();
46
-
47
- export { require_list_indexes_cursor };
48
- //# sourceMappingURL=list_indexes_cursor.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list_indexes_cursor.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ListIndexesCursor = void 0;\nconst execute_operation_1 = require(\"../operations/execute_operation\");\nconst indexes_1 = require(\"../operations/indexes\");\nconst abstract_cursor_1 = require(\"./abstract_cursor\");\n/** @public */\nclass ListIndexesCursor extends abstract_cursor_1.AbstractCursor {\n constructor(collection, options) {\n super(collection.client, collection.s.namespace, options);\n this.parent = collection;\n this.options = options;\n }\n clone() {\n return new ListIndexesCursor(this.parent, {\n ...this.options,\n ...this.cursorOptions\n });\n }\n /** @internal */\n async _initialize(session) {\n const operation = new indexes_1.ListIndexesOperation(this.parent, {\n ...this.cursorOptions,\n ...this.options,\n session\n });\n const response = await (0, execute_operation_1.executeOperation)(this.parent.client, operation, this.timeoutContext);\n return { server: operation.server, session, response };\n }\n}\nexports.ListIndexesCursor = ListIndexesCursor;\n//# sourceMappingURL=list_indexes_cursor.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,oBAAoB,KAAK;CACjC,MAAM;CACN,MAAM;CACN,MAAM;;CAEN,IAAM,oBAAN,MAAM,0BAA0B,kBAAkB,eAAe;EAC7D,YAAY,YAAY,SAAS;AAC7B,SAAM,WAAW,QAAQ,WAAW,EAAE,WAAW,QAAQ;AACzD,QAAK,SAAS;AACd,QAAK,UAAU;;EAEnB,QAAQ;AACJ,UAAO,IAAI,kBAAkB,KAAK,QAAQ;IACtC,GAAG,KAAK;IACR,GAAG,KAAK;IACX,CAAC;;;EAGN,MAAM,YAAY,SAAS;GACvB,MAAM,YAAY,IAAI,UAAU,qBAAqB,KAAK,QAAQ;IAC9D,GAAG,KAAK;IACR,GAAG,KAAK;IACR;IACH,CAAC;GACF,MAAM,WAAW,OAAO,GAAG,oBAAoB,kBAAkB,KAAK,OAAO,QAAQ,WAAW,KAAK,eAAe;AACpH,UAAO;IAAE,QAAQ,UAAU;IAAQ;IAAS;IAAU;;;AAG9D,SAAQ,oBAAoB"}
@@ -1,23 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_aggregation_cursor } from "./aggregation_cursor.mjs";
3
-
4
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.js
5
- var require_list_search_indexes_cursor = /* @__PURE__ */ __commonJSMin(((exports) => {
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.ListSearchIndexesCursor = void 0;
8
- const aggregation_cursor_1 = require_aggregation_cursor();
9
- /** @public */
10
- var ListSearchIndexesCursor = class extends aggregation_cursor_1.AggregationCursor {
11
- /** @internal */
12
- constructor({ fullNamespace: ns, client }, name, options = {}) {
13
- super(client, ns, name == null ? [{ $listSearchIndexes: {} }] : [{ $listSearchIndexes: { name } }], options);
14
- }
15
- };
16
- exports.ListSearchIndexesCursor = ListSearchIndexesCursor;
17
- }));
18
-
19
- //#endregion
20
- export default require_list_search_indexes_cursor();
21
-
22
- export { require_list_search_indexes_cursor };
23
- //# sourceMappingURL=list_search_indexes_cursor.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list_search_indexes_cursor.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ListSearchIndexesCursor = void 0;\nconst aggregation_cursor_1 = require(\"./aggregation_cursor\");\n/** @public */\nclass ListSearchIndexesCursor extends aggregation_cursor_1.AggregationCursor {\n /** @internal */\n constructor({ fullNamespace: ns, client }, name, options = {}) {\n const pipeline = name == null ? [{ $listSearchIndexes: {} }] : [{ $listSearchIndexes: { name } }];\n super(client, ns, pipeline, options);\n }\n}\nexports.ListSearchIndexesCursor = ListSearchIndexesCursor;\n//# sourceMappingURL=list_search_indexes_cursor.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,0BAA0B,KAAK;CACvC,MAAM;;CAEN,IAAM,0BAAN,cAAsC,qBAAqB,kBAAkB;;EAEzE,YAAY,EAAE,eAAe,IAAI,UAAU,MAAM,UAAU,EAAE,EAAE;AAE3D,SAAM,QAAQ,IADG,QAAQ,OAAO,CAAC,EAAE,oBAAoB,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,oBAAoB,EAAE,MAAM,EAAE,CAAC,EACrE,QAAQ;;;AAG5C,SAAQ,0BAA0B"}
@@ -1,106 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_error } from "../error.mjs";
3
- import { require_utils } from "../utils.mjs";
4
- import { require_execute_operation } from "../operations/execute_operation.mjs";
5
- import { require_run_command } from "../operations/run_command.mjs";
6
- import { require_get_more } from "../operations/get_more.mjs";
7
- import { require_abstract_cursor } from "./abstract_cursor.mjs";
8
-
9
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.js
10
- var require_run_command_cursor = /* @__PURE__ */ __commonJSMin(((exports) => {
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RunCommandCursor = void 0;
13
- const error_1 = require_error();
14
- const execute_operation_1 = require_execute_operation();
15
- const get_more_1 = require_get_more();
16
- const run_command_1 = require_run_command();
17
- const utils_1 = require_utils();
18
- const abstract_cursor_1 = require_abstract_cursor();
19
- /** @public */
20
- var RunCommandCursor = class extends abstract_cursor_1.AbstractCursor {
21
- /**
22
- * Controls the `getMore.comment` field
23
- * @param comment - any BSON value
24
- */
25
- setComment(comment) {
26
- this.getMoreOptions.comment = comment;
27
- return this;
28
- }
29
- /**
30
- * Controls the `getMore.maxTimeMS` field. Only valid when cursor is tailable await
31
- * @param maxTimeMS - the number of milliseconds to wait for new data
32
- */
33
- setMaxTimeMS(maxTimeMS) {
34
- this.getMoreOptions.maxAwaitTimeMS = maxTimeMS;
35
- return this;
36
- }
37
- /**
38
- * Controls the `getMore.batchSize` field
39
- * @param batchSize - the number documents to return in the `nextBatch`
40
- */
41
- setBatchSize(batchSize) {
42
- this.getMoreOptions.batchSize = batchSize;
43
- return this;
44
- }
45
- /** Unsupported for RunCommandCursor */
46
- clone() {
47
- throw new error_1.MongoAPIError("Clone not supported, create a new cursor with db.runCursorCommand");
48
- }
49
- /** Unsupported for RunCommandCursor: readConcern must be configured directly on command document */
50
- withReadConcern(_) {
51
- throw new error_1.MongoAPIError("RunCommandCursor does not support readConcern it must be attached to the command being run");
52
- }
53
- /** Unsupported for RunCommandCursor: various cursor flags must be configured directly on command document */
54
- addCursorFlag(_, __) {
55
- throw new error_1.MongoAPIError("RunCommandCursor does not support cursor flags, they must be attached to the command being run");
56
- }
57
- /**
58
- * Unsupported for RunCommandCursor: maxTimeMS must be configured directly on command document
59
- */
60
- maxTimeMS(_) {
61
- throw new error_1.MongoAPIError("maxTimeMS must be configured on the command document directly, to configure getMore.maxTimeMS use cursor.setMaxTimeMS()");
62
- }
63
- /** Unsupported for RunCommandCursor: batchSize must be configured directly on command document */
64
- batchSize(_) {
65
- throw new error_1.MongoAPIError("batchSize must be configured on the command document directly, to configure getMore.batchSize use cursor.setBatchSize()");
66
- }
67
- /** @internal */
68
- constructor(db, command, options = {}) {
69
- super(db.client, (0, utils_1.ns)(db.namespace), options);
70
- this.getMoreOptions = {};
71
- this.db = db;
72
- this.command = Object.freeze({ ...command });
73
- }
74
- /** @internal */
75
- async _initialize(session) {
76
- const operation = new run_command_1.RunCursorCommandOperation(this.db.s.namespace, this.command, {
77
- ...this.cursorOptions,
78
- session,
79
- readPreference: this.cursorOptions.readPreference
80
- });
81
- const response = await (0, execute_operation_1.executeOperation)(this.client, operation, this.timeoutContext);
82
- return {
83
- server: operation.server,
84
- session,
85
- response
86
- };
87
- }
88
- /** @internal */
89
- async getMore(_batchSize) {
90
- if (!this.session) throw new error_1.MongoRuntimeError("Unexpected null session. A cursor creating command should have set this");
91
- const getMoreOperation = new get_more_1.GetMoreOperation(this.namespace, this.id, this.server, {
92
- ...this.cursorOptions,
93
- session: this.session,
94
- ...this.getMoreOptions
95
- });
96
- return await (0, execute_operation_1.executeOperation)(this.client, getMoreOperation, this.timeoutContext);
97
- }
98
- };
99
- exports.RunCommandCursor = RunCommandCursor;
100
- }));
101
-
102
- //#endregion
103
- export default require_run_command_cursor();
104
-
105
- export { require_run_command_cursor };
106
- //# sourceMappingURL=run_command_cursor.mjs.map