pecunia-root 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/dist/adapters/prisma-adapter/index.d.mts +1 -1
  2. package/dist/adapters/prisma-adapter/index.mjs +1 -1
  3. package/dist/adapters/prisma-adapter/index.mjs.map +1 -1
  4. package/dist/context/index.mjs +1 -1
  5. package/dist/context/index.mjs.map +1 -1
  6. package/dist/index.d.mts +1 -2
  7. package/dist/index.mjs +1 -2
  8. package/package.json +2 -16
  9. package/dist/_virtual/rolldown_runtime.mjs +0 -8
  10. package/dist/adapters/mongodb-adapter/index.d.mts +0 -35
  11. package/dist/adapters/mongodb-adapter/index.mjs +0 -314
  12. package/dist/adapters/mongodb-adapter/index.mjs.map +0 -1
  13. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs +0 -14
  14. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs.map +0 -1
  15. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs +0 -54
  16. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs.map +0 -1
  17. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs +0 -36
  18. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs.map +0 -1
  19. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs +0 -27
  20. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs.map +0 -1
  21. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs +0 -3728
  22. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs.map +0 -1
  23. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs +0 -137
  24. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs.map +0 -1
  25. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs +0 -211
  26. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs.map +0 -1
  27. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs +0 -95
  28. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs.map +0 -1
  29. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs +0 -158
  30. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs.map +0 -1
  31. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs +0 -195
  32. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs.map +0 -1
  33. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs +0 -710
  34. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs.map +0 -1
  35. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs +0 -53
  36. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs.map +0 -1
  37. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs +0 -63
  38. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs.map +0 -1
  39. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs +0 -368
  40. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs.map +0 -1
  41. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs +0 -234
  42. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs.map +0 -1
  43. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs +0 -545
  44. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs.map +0 -1
  45. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs +0 -83
  46. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs.map +0 -1
  47. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs +0 -146
  48. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs.map +0 -1
  49. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs +0 -58
  50. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs.map +0 -1
  51. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs +0 -30
  52. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs.map +0 -1
  53. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs +0 -135
  54. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs.map +0 -1
  55. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs +0 -25
  56. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs.map +0 -1
  57. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs +0 -47
  58. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs.map +0 -1
  59. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs +0 -362
  60. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs.map +0 -1
  61. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs +0 -58
  62. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs.map +0 -1
  63. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs +0 -123
  64. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs.map +0 -1
  65. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs +0 -128
  66. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs.map +0 -1
  67. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs +0 -133
  68. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs.map +0 -1
  69. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs +0 -126
  70. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs.map +0 -1
  71. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs +0 -79
  72. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs.map +0 -1
  73. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs +0 -65
  74. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs.map +0 -1
  75. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs +0 -127
  76. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs.map +0 -1
  77. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs +0 -47
  78. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs.map +0 -1
  79. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs +0 -44
  80. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs.map +0 -1
  81. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs +0 -101
  82. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs.map +0 -1
  83. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs +0 -33
  84. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs.map +0 -1
  85. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs +0 -53
  86. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs.map +0 -1
  87. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs +0 -29
  88. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs.map +0 -1
  89. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs +0 -83
  90. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs.map +0 -1
  91. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs +0 -36
  92. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs.map +0 -1
  93. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs +0 -32
  94. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs.map +0 -1
  95. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs +0 -206
  96. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs.map +0 -1
  97. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs +0 -45
  98. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs.map +0 -1
  99. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs +0 -213
  100. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs.map +0 -1
  101. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs +0 -411
  102. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs.map +0 -1
  103. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs +0 -288
  104. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs.map +0 -1
  105. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs +0 -423
  106. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs.map +0 -1
  107. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs +0 -483
  108. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs.map +0 -1
  109. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs +0 -207
  110. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs.map +0 -1
  111. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs +0 -116
  112. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs.map +0 -1
  113. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs +0 -183
  114. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs.map +0 -1
  115. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs +0 -55
  116. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs.map +0 -1
  117. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs +0 -60
  118. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs.map +0 -1
  119. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs +0 -139
  120. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs.map +0 -1
  121. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs +0 -28
  122. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs.map +0 -1
  123. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs +0 -117
  124. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs.map +0 -1
  125. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs +0 -182
  126. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs.map +0 -1
  127. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs +0 -304
  128. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs.map +0 -1
  129. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs +0 -34
  130. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs.map +0 -1
  131. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs +0 -739
  132. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs.map +0 -1
  133. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs +0 -805
  134. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs.map +0 -1
  135. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs +0 -174
  136. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs.map +0 -1
  137. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs +0 -726
  138. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs.map +0 -1
  139. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs +0 -172
  140. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs.map +0 -1
  141. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs +0 -103
  142. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs.map +0 -1
  143. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs +0 -66
  144. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs.map +0 -1
  145. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs +0 -41
  146. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs.map +0 -1
  147. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs +0 -365
  148. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs.map +0 -1
  149. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs +0 -50
  150. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs.map +0 -1
  151. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs +0 -48
  152. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs.map +0 -1
  153. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs +0 -23
  154. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs.map +0 -1
  155. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs +0 -106
  156. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs.map +0 -1
  157. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs +0 -428
  158. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs.map +0 -1
  159. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs +0 -124
  160. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs.map +0 -1
  161. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs +0 -95
  162. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs.map +0 -1
  163. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs +0 -1305
  164. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs.map +0 -1
  165. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs +0 -59
  166. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs.map +0 -1
  167. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs +0 -250
  168. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs.map +0 -1
  169. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs +0 -170
  170. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs.map +0 -1
  171. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs +0 -315
  172. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs.map +0 -1
  173. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs +0 -925
  174. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs.map +0 -1
  175. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs +0 -520
  176. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs.map +0 -1
  177. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs +0 -90
  178. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs.map +0 -1
  179. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs +0 -582
  180. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs.map +0 -1
  181. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs +0 -64
  182. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs.map +0 -1
  183. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs +0 -86
  184. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs.map +0 -1
  185. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs +0 -60
  186. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs.map +0 -1
  187. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs +0 -264
  188. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs.map +0 -1
  189. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs +0 -109
  190. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs.map +0 -1
  191. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs +0 -172
  192. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs.map +0 -1
  193. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs +0 -68
  194. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs.map +0 -1
  195. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs +0 -53
  196. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs.map +0 -1
  197. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs +0 -123
  198. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs.map +0 -1
  199. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs +0 -119
  200. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs.map +0 -1
  201. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs +0 -65
  202. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs.map +0 -1
  203. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs +0 -97
  204. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs.map +0 -1
  205. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs +0 -47
  206. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs.map +0 -1
  207. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs +0 -188
  208. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs.map +0 -1
  209. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs +0 -103
  210. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs.map +0 -1
  211. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs +0 -136
  212. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs.map +0 -1
  213. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs +0 -61
  214. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs.map +0 -1
  215. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs +0 -179
  216. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs.map +0 -1
  217. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs +0 -77
  218. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs.map +0 -1
  219. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs +0 -48
  220. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs.map +0 -1
  221. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs +0 -60
  222. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs.map +0 -1
  223. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs +0 -43
  224. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs.map +0 -1
  225. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs +0 -105
  226. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs.map +0 -1
  227. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs +0 -50
  228. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs.map +0 -1
  229. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs +0 -39
  230. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs.map +0 -1
  231. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs +0 -49
  232. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs.map +0 -1
  233. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs +0 -58
  234. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs.map +0 -1
  235. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs +0 -46
  236. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs.map +0 -1
  237. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs +0 -48
  238. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs.map +0 -1
  239. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs +0 -46
  240. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs.map +0 -1
  241. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs +0 -67
  242. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs.map +0 -1
  243. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs +0 -37
  244. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs.map +0 -1
  245. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs +0 -171
  246. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs.map +0 -1
  247. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs +0 -45
  248. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs.map +0 -1
  249. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs +0 -71
  250. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs.map +0 -1
  251. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs +0 -165
  252. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs.map +0 -1
  253. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs +0 -62
  254. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs.map +0 -1
  255. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs +0 -51
  256. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs.map +0 -1
  257. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs +0 -156
  258. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs.map +0 -1
  259. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs +0 -477
  260. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs.map +0 -1
  261. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs +0 -315
  262. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs.map +0 -1
  263. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs +0 -157
  264. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs.map +0 -1
  265. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs +0 -184
  266. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs.map +0 -1
  267. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs +0 -96
  268. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs.map +0 -1
  269. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs +0 -107
  270. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs.map +0 -1
  271. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs +0 -540
  272. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs.map +0 -1
  273. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs +0 -298
  274. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs.map +0 -1
  275. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs +0 -623
  276. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs.map +0 -1
  277. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs +0 -91
  278. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs.map +0 -1
  279. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs +0 -254
  280. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs.map +0 -1
  281. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs +0 -138
  282. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs.map +0 -1
  283. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs +0 -993
  284. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs.map +0 -1
  285. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs +0 -81
  286. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs.map +0 -1
  287. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs +0 -171
  288. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs.map +0 -1
  289. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs +0 -295
  290. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs.map +0 -1
  291. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs +0 -81
  292. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs.map +0 -1
  293. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs +0 -206
  294. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs.map +0 -1
  295. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs +0 -33590
  296. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs.map +0 -1
  297. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs +0 -37
  298. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs.map +0 -1
  299. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs +0 -18
  300. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs.map +0 -1
  301. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs +0 -252
  302. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs.map +0 -1
  303. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs +0 -41
  304. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs.map +0 -1
  305. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs +0 -41
  306. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs.map +0 -1
  307. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs +0 -173
  308. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs.map +0 -1
  309. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs +0 -334
  310. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs.map +0 -1
  311. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs +0 -90
  312. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs.map +0 -1
  313. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs +0 -356
  314. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs.map +0 -1
  315. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs +0 -23
  316. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs.map +0 -1
  317. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs +0 -29
  318. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs.map +0 -1
  319. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs +0 -140
  320. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs.map +0 -1
  321. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs +0 -831
  322. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs.map +0 -1
  323. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs +0 -77
  324. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs.map +0 -1
  325. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs +0 -147
  326. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs.map +0 -1
  327. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs +0 -17
  328. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs.map +0 -1
@@ -1,64 +0,0 @@
1
- import { __commonJSMin, __require } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_utils } from "./utils.mjs";
3
- import { require_mongo_logger } from "./mongo_logger.mjs";
4
-
5
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.js
6
- var require_mongo_types = /* @__PURE__ */ __commonJSMin(((exports) => {
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.CancellationToken = exports.TypedEventEmitter = void 0;
9
- const events_1 = __require("events");
10
- const mongo_logger_1 = require_mongo_logger();
11
- const utils_1 = require_utils();
12
- /**
13
- * Typescript type safe event emitter
14
- * @public
15
- */
16
- var TypedEventEmitter = class extends events_1.EventEmitter {
17
- /** @internal */
18
- emitAndLog(event, ...args) {
19
- this.emit(event, ...args);
20
- if (this.component) this.mongoLogger?.debug(this.component, args[0]);
21
- }
22
- /** @internal */
23
- emitAndLogHeartbeat(event, topologyId, serverConnectionId, ...args) {
24
- this.emit(event, ...args);
25
- if (this.component) {
26
- const loggableHeartbeatEvent = {
27
- topologyId,
28
- serverConnectionId: serverConnectionId ?? null,
29
- ...args[0]
30
- };
31
- this.mongoLogger?.debug(this.component, loggableHeartbeatEvent);
32
- }
33
- }
34
- /** @internal */
35
- emitAndLogCommand(monitorCommands, event, databaseName, connectionEstablished, ...args) {
36
- if (monitorCommands) this.emit(event, ...args);
37
- if (connectionEstablished) {
38
- const loggableCommandEvent = {
39
- databaseName,
40
- ...args[0]
41
- };
42
- this.mongoLogger?.debug(mongo_logger_1.MongoLoggableComponent.COMMAND, loggableCommandEvent);
43
- }
44
- }
45
- };
46
- exports.TypedEventEmitter = TypedEventEmitter;
47
- /**
48
- * @public
49
- * @deprecated Will be removed in favor of `AbortSignal` in the next major release.
50
- */
51
- var CancellationToken = class extends TypedEventEmitter {
52
- constructor(...args) {
53
- super(...args);
54
- this.on("error", utils_1.noop);
55
- }
56
- };
57
- exports.CancellationToken = CancellationToken;
58
- }));
59
-
60
- //#endregion
61
- export default require_mongo_types();
62
-
63
- export { require_mongo_types };
64
- //# sourceMappingURL=mongo_types.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mongo_types.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CancellationToken = exports.TypedEventEmitter = void 0;\nconst events_1 = require(\"events\");\nconst mongo_logger_1 = require(\"./mongo_logger\");\nconst utils_1 = require(\"./utils\");\n/**\n * Typescript type safe event emitter\n * @public\n */\n// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging\nclass TypedEventEmitter extends events_1.EventEmitter {\n /** @internal */\n emitAndLog(event, ...args) {\n this.emit(event, ...args);\n if (this.component)\n this.mongoLogger?.debug(this.component, args[0]);\n }\n /** @internal */\n emitAndLogHeartbeat(event, topologyId, serverConnectionId, ...args) {\n this.emit(event, ...args);\n if (this.component) {\n const loggableHeartbeatEvent = {\n topologyId: topologyId,\n serverConnectionId: serverConnectionId ?? null,\n ...args[0]\n };\n this.mongoLogger?.debug(this.component, loggableHeartbeatEvent);\n }\n }\n /** @internal */\n emitAndLogCommand(monitorCommands, event, databaseName, connectionEstablished, ...args) {\n if (monitorCommands) {\n this.emit(event, ...args);\n }\n if (connectionEstablished) {\n const loggableCommandEvent = {\n databaseName: databaseName,\n ...args[0]\n };\n this.mongoLogger?.debug(mongo_logger_1.MongoLoggableComponent.COMMAND, loggableCommandEvent);\n }\n }\n}\nexports.TypedEventEmitter = TypedEventEmitter;\n/**\n * @public\n * @deprecated Will be removed in favor of `AbortSignal` in the next major release.\n */\nclass CancellationToken extends TypedEventEmitter {\n constructor(...args) {\n super(...args);\n this.on('error', utils_1.noop);\n }\n}\nexports.CancellationToken = CancellationToken;\n//# sourceMappingURL=mongo_types.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,oBAAoB,QAAQ,oBAAoB,KAAK;CAC7D,MAAM,qBAAmB,SAAS;CAClC,MAAM;CACN,MAAM;;;;;CAMN,IAAM,oBAAN,cAAgC,SAAS,aAAa;;EAElD,WAAW,OAAO,GAAG,MAAM;AACvB,QAAK,KAAK,OAAO,GAAG,KAAK;AACzB,OAAI,KAAK,UACL,MAAK,aAAa,MAAM,KAAK,WAAW,KAAK,GAAG;;;EAGxD,oBAAoB,OAAO,YAAY,oBAAoB,GAAG,MAAM;AAChE,QAAK,KAAK,OAAO,GAAG,KAAK;AACzB,OAAI,KAAK,WAAW;IAChB,MAAM,yBAAyB;KACf;KACZ,oBAAoB,sBAAsB;KAC1C,GAAG,KAAK;KACX;AACD,SAAK,aAAa,MAAM,KAAK,WAAW,uBAAuB;;;;EAIvE,kBAAkB,iBAAiB,OAAO,cAAc,uBAAuB,GAAG,MAAM;AACpF,OAAI,gBACA,MAAK,KAAK,OAAO,GAAG,KAAK;AAE7B,OAAI,uBAAuB;IACvB,MAAM,uBAAuB;KACX;KACd,GAAG,KAAK;KACX;AACD,SAAK,aAAa,MAAM,eAAe,uBAAuB,SAAS,qBAAqB;;;;AAIxG,SAAQ,oBAAoB;;;;;CAK5B,IAAM,oBAAN,cAAgC,kBAAkB;EAC9C,YAAY,GAAG,MAAM;AACjB,SAAM,GAAG,KAAK;AACd,QAAK,GAAG,SAAS,QAAQ,KAAK;;;AAGtC,SAAQ,oBAAoB"}
@@ -1,86 +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_write_concern } from "../write_concern.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/aggregate.js
9
- var require_aggregate = /* @__PURE__ */ __commonJSMin(((exports) => {
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.AggregateOperation = exports.DB_AGGREGATE_COLLECTION = void 0;
12
- const responses_1 = require_responses();
13
- const error_1 = require_error();
14
- const write_concern_1 = require_write_concern();
15
- const command_1 = require_command();
16
- const operation_1 = require_operation();
17
- /** @internal */
18
- exports.DB_AGGREGATE_COLLECTION = 1;
19
- /** @internal */
20
- var AggregateOperation = class extends command_1.CommandOperation {
21
- constructor(ns, pipeline, options) {
22
- super(void 0, {
23
- ...options,
24
- dbName: ns.db
25
- });
26
- this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;
27
- this.options = { ...options };
28
- this.target = ns.collection || exports.DB_AGGREGATE_COLLECTION;
29
- this.pipeline = pipeline;
30
- this.hasWriteStage = false;
31
- if (typeof options?.out === "string") {
32
- this.pipeline = this.pipeline.concat({ $out: options.out });
33
- this.hasWriteStage = true;
34
- } else if (pipeline.length > 0) {
35
- const finalStage = pipeline[pipeline.length - 1];
36
- if (finalStage.$out || finalStage.$merge) this.hasWriteStage = true;
37
- }
38
- if (!this.hasWriteStage) delete this.options.writeConcern;
39
- if (this.explain && this.writeConcern) throw new error_1.MongoInvalidArgumentError("Option \"explain\" cannot be used on an aggregate call with writeConcern");
40
- if (options?.cursor != null && typeof options.cursor !== "object") throw new error_1.MongoInvalidArgumentError("Cursor options must be an object");
41
- this.SERVER_COMMAND_RESPONSE_TYPE = this.explain ? responses_1.ExplainedCursorResponse : responses_1.CursorResponse;
42
- }
43
- get commandName() {
44
- return "aggregate";
45
- }
46
- get canRetryRead() {
47
- return !this.hasWriteStage;
48
- }
49
- addToPipeline(stage) {
50
- this.pipeline.push(stage);
51
- }
52
- buildCommandDocument() {
53
- const options = this.options;
54
- const command = {
55
- aggregate: this.target,
56
- pipeline: this.pipeline
57
- };
58
- if (this.hasWriteStage && this.writeConcern) write_concern_1.WriteConcern.apply(command, this.writeConcern);
59
- if (options.bypassDocumentValidation === true) command.bypassDocumentValidation = options.bypassDocumentValidation;
60
- if (typeof options.allowDiskUse === "boolean") command.allowDiskUse = options.allowDiskUse;
61
- if (options.hint) command.hint = options.hint;
62
- if (options.let) command.let = options.let;
63
- if (options.comment !== void 0) command.comment = options.comment;
64
- command.cursor = options.cursor || {};
65
- if (options.batchSize && !this.hasWriteStage) command.cursor.batchSize = options.batchSize;
66
- return command;
67
- }
68
- handleOk(response) {
69
- return response;
70
- }
71
- };
72
- exports.AggregateOperation = AggregateOperation;
73
- (0, operation_1.defineAspects)(AggregateOperation, [
74
- operation_1.Aspect.READ_OPERATION,
75
- operation_1.Aspect.RETRYABLE,
76
- operation_1.Aspect.EXPLAINABLE,
77
- operation_1.Aspect.CURSOR_CREATING,
78
- operation_1.Aspect.SUPPORTS_RAW_DATA
79
- ]);
80
- }));
81
-
82
- //#endregion
83
- export default require_aggregate();
84
-
85
- export { require_aggregate };
86
- //# sourceMappingURL=aggregate.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aggregate.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AggregateOperation = exports.DB_AGGREGATE_COLLECTION = void 0;\nconst responses_1 = require(\"../cmap/wire_protocol/responses\");\nconst error_1 = require(\"../error\");\nconst write_concern_1 = require(\"../write_concern\");\nconst command_1 = require(\"./command\");\nconst operation_1 = require(\"./operation\");\n/** @internal */\nexports.DB_AGGREGATE_COLLECTION = 1;\n/** @internal */\nclass AggregateOperation extends command_1.CommandOperation {\n constructor(ns, pipeline, options) {\n super(undefined, { ...options, dbName: ns.db });\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.CursorResponse;\n this.options = { ...options };\n // Covers when ns.collection is null, undefined or the empty string, use DB_AGGREGATE_COLLECTION\n this.target = ns.collection || exports.DB_AGGREGATE_COLLECTION;\n this.pipeline = pipeline;\n // determine if we have a write stage, override read preference if so\n this.hasWriteStage = false;\n if (typeof options?.out === 'string') {\n this.pipeline = this.pipeline.concat({ $out: options.out });\n this.hasWriteStage = true;\n }\n else if (pipeline.length > 0) {\n const finalStage = pipeline[pipeline.length - 1];\n if (finalStage.$out || finalStage.$merge) {\n this.hasWriteStage = true;\n }\n }\n if (!this.hasWriteStage) {\n delete this.options.writeConcern;\n }\n if (this.explain && this.writeConcern) {\n throw new error_1.MongoInvalidArgumentError('Option \"explain\" cannot be used on an aggregate call with writeConcern');\n }\n if (options?.cursor != null && typeof options.cursor !== 'object') {\n throw new error_1.MongoInvalidArgumentError('Cursor options must be an object');\n }\n this.SERVER_COMMAND_RESPONSE_TYPE = this.explain ? responses_1.ExplainedCursorResponse : responses_1.CursorResponse;\n }\n get commandName() {\n return 'aggregate';\n }\n get canRetryRead() {\n return !this.hasWriteStage;\n }\n addToPipeline(stage) {\n this.pipeline.push(stage);\n }\n buildCommandDocument() {\n const options = this.options;\n const command = { aggregate: this.target, pipeline: this.pipeline };\n if (this.hasWriteStage && this.writeConcern) {\n write_concern_1.WriteConcern.apply(command, this.writeConcern);\n }\n if (options.bypassDocumentValidation === true) {\n command.bypassDocumentValidation = options.bypassDocumentValidation;\n }\n if (typeof options.allowDiskUse === 'boolean') {\n command.allowDiskUse = options.allowDiskUse;\n }\n if (options.hint) {\n command.hint = options.hint;\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 command.cursor = options.cursor || {};\n if (options.batchSize && !this.hasWriteStage) {\n command.cursor.batchSize = options.batchSize;\n }\n return command;\n }\n handleOk(response) {\n return response;\n }\n}\nexports.AggregateOperation = AggregateOperation;\n(0, operation_1.defineAspects)(AggregateOperation, [\n operation_1.Aspect.READ_OPERATION,\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.EXPLAINABLE,\n operation_1.Aspect.CURSOR_CREATING,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n//# sourceMappingURL=aggregate.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC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AAQ,6BAA6B,KACrC,SAAQ,2BAA2B,QAAQ;AAE/C,OAAI,OAAO,QAAQ,iBAAiB,UAChC,SAAQ,eAAe,QAAQ;AAEnC,OAAI,QAAQ,KACR,SAAQ,OAAO,QAAQ;AAE3B,OAAI,QAAQ,IACR,SAAQ,MAAM,QAAQ;AAI1B,OAAI,QAAQ,YAAY,OACpB,SAAQ,UAAU,QAAQ;AAE9B,WAAQ,SAAS,QAAQ,UAAU,EAAE;AACrC,OAAI,QAAQ,aAAa,CAAC,KAAK,cAC3B,SAAQ,OAAO,YAAY,QAAQ;AAEvC,UAAO;;EAEX,SAAS,UAAU;AACf,UAAO;;;AAGf,SAAQ,qBAAqB;AAC7B,EAAC,GAAG,YAAY,eAAe,oBAAoB;EAC/C,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,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/client_bulk_write/client_bulk_write.js
8
- var require_client_bulk_write = /* @__PURE__ */ __commonJSMin(((exports) => {
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.ClientBulkWriteOperation = 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
- /**
16
- * Executes a single client bulk write operation within a potential batch.
17
- * @internal
18
- */
19
- var ClientBulkWriteOperation = class extends command_1.CommandOperation {
20
- get commandName() {
21
- return "bulkWrite";
22
- }
23
- constructor(commandBuilder, options) {
24
- super(void 0, options);
25
- this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.ClientBulkWriteCursorResponse;
26
- this.commandBuilder = commandBuilder;
27
- this.options = options;
28
- this.ns = new utils_1.MongoDBNamespace("admin", "$cmd");
29
- }
30
- resetBatch() {
31
- return this.commandBuilder.resetBatch();
32
- }
33
- get canRetryWrite() {
34
- return this.commandBuilder.isBatchRetryable;
35
- }
36
- handleOk(response) {
37
- return response;
38
- }
39
- buildCommandDocument(connection, _session) {
40
- const command = this.commandBuilder.buildBatch(connection.description.maxMessageSizeBytes, connection.description.maxWriteBatchSize, connection.description.maxBsonObjectSize);
41
- if (!this.canRetryWrite) this.options.willRetryWrite = false;
42
- return command;
43
- }
44
- };
45
- exports.ClientBulkWriteOperation = ClientBulkWriteOperation;
46
- (0, operation_1.defineAspects)(ClientBulkWriteOperation, [
47
- operation_1.Aspect.WRITE_OPERATION,
48
- operation_1.Aspect.SKIP_COLLATION,
49
- operation_1.Aspect.CURSOR_CREATING,
50
- operation_1.Aspect.RETRYABLE,
51
- operation_1.Aspect.COMMAND_BATCHING,
52
- operation_1.Aspect.SUPPORTS_RAW_DATA
53
- ]);
54
- }));
55
-
56
- //#endregion
57
- export default require_client_bulk_write();
58
-
59
- export { require_client_bulk_write };
60
- //# sourceMappingURL=client_bulk_write.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client_bulk_write.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ClientBulkWriteOperation = 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/**\n * Executes a single client bulk write operation within a potential batch.\n * @internal\n */\nclass ClientBulkWriteOperation extends command_1.CommandOperation {\n get commandName() {\n return 'bulkWrite';\n }\n constructor(commandBuilder, options) {\n super(undefined, options);\n this.SERVER_COMMAND_RESPONSE_TYPE = responses_1.ClientBulkWriteCursorResponse;\n this.commandBuilder = commandBuilder;\n this.options = options;\n this.ns = new utils_1.MongoDBNamespace('admin', '$cmd');\n }\n resetBatch() {\n return this.commandBuilder.resetBatch();\n }\n get canRetryWrite() {\n return this.commandBuilder.isBatchRetryable;\n }\n handleOk(response) {\n return response;\n }\n buildCommandDocument(connection, _session) {\n const command = this.commandBuilder.buildBatch(connection.description.maxMessageSizeBytes, connection.description.maxWriteBatchSize, connection.description.maxBsonObjectSize);\n // Check _after_ the batch is built if we cannot retry it and override the option.\n if (!this.canRetryWrite) {\n this.options.willRetryWrite = false;\n }\n return command;\n }\n}\nexports.ClientBulkWriteOperation = ClientBulkWriteOperation;\n// Skipping the collation as it goes on the individual ops.\n(0, operation_1.defineAspects)(ClientBulkWriteOperation, [\n operation_1.Aspect.WRITE_OPERATION,\n operation_1.Aspect.SKIP_COLLATION,\n operation_1.Aspect.CURSOR_CREATING,\n operation_1.Aspect.RETRYABLE,\n operation_1.Aspect.COMMAND_BATCHING,\n operation_1.Aspect.SUPPORTS_RAW_DATA\n]);\n//# sourceMappingURL=client_bulk_write.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;;;;;CAKN,IAAM,2BAAN,cAAuC,UAAU,iBAAiB;EAC9D,IAAI,cAAc;AACd,UAAO;;EAEX,YAAY,gBAAgB,SAAS;AACjC,SAAM,QAAW,QAAQ;AACzB,QAAK,+BAA+B,YAAY;AAChD,QAAK,iBAAiB;AACtB,QAAK,UAAU;AACf,QAAK,KAAK,IAAI,QAAQ,iBAAiB,SAAS,OAAO;;EAE3D,aAAa;AACT,UAAO,KAAK,eAAe,YAAY;;EAE3C,IAAI,gBAAgB;AAChB,UAAO,KAAK,eAAe;;EAE/B,SAAS,UAAU;AACf,UAAO;;EAEX,qBAAqB,YAAY,UAAU;GACvC,MAAM,UAAU,KAAK,eAAe,WAAW,WAAW,YAAY,qBAAqB,WAAW,YAAY,mBAAmB,WAAW,YAAY,kBAAkB;AAE9K,OAAI,CAAC,KAAK,cACN,MAAK,QAAQ,iBAAiB;AAElC,UAAO;;;AAGf,SAAQ,2BAA2B;AAEnC,EAAC,GAAG,YAAY,eAAe,0BAA0B;EACrD,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACnB,YAAY,OAAO;EACtB,CAAC"}
@@ -1,264 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_bson } from "../../bson.mjs";
3
- import { require_error } from "../../error.mjs";
4
- import { require_utils } from "../../utils.mjs";
5
- import { require_sort } from "../../sort.mjs";
6
- import { require_commands } from "../../cmap/commands.mjs";
7
-
8
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.js
9
- var require_command_builder = /* @__PURE__ */ __commonJSMin(((exports) => {
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.buildReplaceOneOperation = exports.buildUpdateManyOperation = exports.buildUpdateOneOperation = exports.buildDeleteManyOperation = exports.buildDeleteOneOperation = exports.buildInsertOneOperation = exports.ClientBulkWriteCommandBuilder = void 0;
12
- exports.buildOperation = buildOperation;
13
- const bson_1 = require_bson();
14
- const commands_1 = require_commands();
15
- const error_1 = require_error();
16
- const sort_1 = require_sort();
17
- const utils_1 = require_utils();
18
- /**
19
- * The bytes overhead for the extra fields added post command generation.
20
- */
21
- const MESSAGE_OVERHEAD_BYTES = 1e3;
22
- /** @internal */
23
- var ClientBulkWriteCommandBuilder = class {
24
- /**
25
- * Create the command builder.
26
- * @param models - The client write models.
27
- */
28
- constructor(models, options, pkFactory) {
29
- this.models = models;
30
- this.options = options;
31
- this.pkFactory = pkFactory ?? utils_1.DEFAULT_PK_FACTORY;
32
- this.currentModelIndex = 0;
33
- this.previousModelIndex = 0;
34
- this.lastOperations = [];
35
- this.isBatchRetryable = true;
36
- }
37
- /**
38
- * Gets the errorsOnly value for the command, which is the inverse of the
39
- * user provided verboseResults option. Defaults to true.
40
- */
41
- get errorsOnly() {
42
- if ("verboseResults" in this.options) return !this.options.verboseResults;
43
- return true;
44
- }
45
- /**
46
- * Determines if there is another batch to process.
47
- * @returns True if not all batches have been built.
48
- */
49
- hasNextBatch() {
50
- return this.currentModelIndex < this.models.length;
51
- }
52
- /**
53
- * When we need to retry a command we need to set the current
54
- * model index back to its previous value.
55
- */
56
- resetBatch() {
57
- this.currentModelIndex = this.previousModelIndex;
58
- return true;
59
- }
60
- /**
61
- * Build a single batch of a client bulk write command.
62
- * @param maxMessageSizeBytes - The max message size in bytes.
63
- * @param maxWriteBatchSize - The max write batch size.
64
- * @returns The client bulk write command.
65
- */
66
- buildBatch(maxMessageSizeBytes, maxWriteBatchSize, maxBsonObjectSize) {
67
- this.isBatchRetryable = true;
68
- let commandLength = 0;
69
- let currentNamespaceIndex = 0;
70
- const command = this.baseCommand();
71
- const namespaces = /* @__PURE__ */ new Map();
72
- this.previousModelIndex = this.currentModelIndex;
73
- while (this.currentModelIndex < this.models.length) {
74
- const model = this.models[this.currentModelIndex];
75
- const ns = model.namespace;
76
- const nsIndex = namespaces.get(ns);
77
- if (model.name === "deleteMany" || model.name === "updateMany") this.isBatchRetryable = false;
78
- if (nsIndex != null) {
79
- const operation = buildOperation(model, nsIndex, this.pkFactory, this.options);
80
- let operationBuffer;
81
- try {
82
- operationBuffer = bson_1.BSON.serialize(operation);
83
- } catch (cause) {
84
- throw new error_1.MongoInvalidArgumentError(`Could not serialize operation to BSON`, { cause });
85
- }
86
- validateBufferSize("ops", operationBuffer, maxBsonObjectSize);
87
- if (commandLength + operationBuffer.length < maxMessageSizeBytes && command.ops.documents.length < maxWriteBatchSize) {
88
- commandLength = MESSAGE_OVERHEAD_BYTES + command.ops.push(operation, operationBuffer);
89
- this.currentModelIndex++;
90
- } else break;
91
- } else {
92
- namespaces.set(ns, currentNamespaceIndex);
93
- const nsInfo = { ns };
94
- const operation = buildOperation(model, currentNamespaceIndex, this.pkFactory, this.options);
95
- let nsInfoBuffer;
96
- let operationBuffer;
97
- try {
98
- nsInfoBuffer = bson_1.BSON.serialize(nsInfo);
99
- operationBuffer = bson_1.BSON.serialize(operation);
100
- } catch (cause) {
101
- throw new error_1.MongoInvalidArgumentError(`Could not serialize ns info to BSON`, { cause });
102
- }
103
- validateBufferSize("nsInfo", nsInfoBuffer, maxBsonObjectSize);
104
- validateBufferSize("ops", operationBuffer, maxBsonObjectSize);
105
- if (commandLength + nsInfoBuffer.length + operationBuffer.length < maxMessageSizeBytes && command.ops.documents.length < maxWriteBatchSize) {
106
- commandLength = MESSAGE_OVERHEAD_BYTES + command.nsInfo.push(nsInfo, nsInfoBuffer) + command.ops.push(operation, operationBuffer);
107
- currentNamespaceIndex++;
108
- this.currentModelIndex++;
109
- } else break;
110
- }
111
- }
112
- this.lastOperations = command.ops.documents;
113
- return command;
114
- }
115
- baseCommand() {
116
- const command = {
117
- bulkWrite: 1,
118
- errorsOnly: this.errorsOnly,
119
- ordered: this.options.ordered ?? true,
120
- ops: new commands_1.DocumentSequence("ops"),
121
- nsInfo: new commands_1.DocumentSequence("nsInfo")
122
- };
123
- if (this.options.bypassDocumentValidation != null) command.bypassDocumentValidation = this.options.bypassDocumentValidation;
124
- if (this.options.let) command.let = this.options.let;
125
- if (this.options.comment !== void 0) command.comment = this.options.comment;
126
- return command;
127
- }
128
- };
129
- exports.ClientBulkWriteCommandBuilder = ClientBulkWriteCommandBuilder;
130
- function validateBufferSize(name, buffer, maxBsonObjectSize) {
131
- if (buffer.length > maxBsonObjectSize) throw new error_1.MongoInvalidArgumentError(`Client bulk write operation ${name} of length ${buffer.length} exceeds the max bson object size of ${maxBsonObjectSize}`);
132
- }
133
- /**
134
- * Build the insert one operation.
135
- * @param model - The insert one model.
136
- * @param index - The namespace index.
137
- * @returns the operation.
138
- */
139
- const buildInsertOneOperation = (model, index, pkFactory) => {
140
- const document = {
141
- insert: index,
142
- document: model.document
143
- };
144
- document.document._id = model.document._id ?? pkFactory.createPk();
145
- return document;
146
- };
147
- exports.buildInsertOneOperation = buildInsertOneOperation;
148
- /**
149
- * Build the delete one operation.
150
- * @param model - The insert many model.
151
- * @param index - The namespace index.
152
- * @returns the operation.
153
- */
154
- const buildDeleteOneOperation = (model, index) => {
155
- return createDeleteOperation(model, index, false);
156
- };
157
- exports.buildDeleteOneOperation = buildDeleteOneOperation;
158
- /**
159
- * Build the delete many operation.
160
- * @param model - The delete many model.
161
- * @param index - The namespace index.
162
- * @returns the operation.
163
- */
164
- const buildDeleteManyOperation = (model, index) => {
165
- return createDeleteOperation(model, index, true);
166
- };
167
- exports.buildDeleteManyOperation = buildDeleteManyOperation;
168
- /**
169
- * Creates a delete operation based on the parameters.
170
- */
171
- function createDeleteOperation(model, index, multi) {
172
- const document = {
173
- delete: index,
174
- multi,
175
- filter: model.filter
176
- };
177
- if (model.hint) document.hint = model.hint;
178
- if (model.collation) document.collation = model.collation;
179
- return document;
180
- }
181
- /**
182
- * Build the update one operation.
183
- * @param model - The update one model.
184
- * @param index - The namespace index.
185
- * @returns the operation.
186
- */
187
- const buildUpdateOneOperation = (model, index, options) => {
188
- return createUpdateOperation(model, index, false, options);
189
- };
190
- exports.buildUpdateOneOperation = buildUpdateOneOperation;
191
- /**
192
- * Build the update many operation.
193
- * @param model - The update many model.
194
- * @param index - The namespace index.
195
- * @returns the operation.
196
- */
197
- const buildUpdateManyOperation = (model, index, options) => {
198
- return createUpdateOperation(model, index, true, options);
199
- };
200
- exports.buildUpdateManyOperation = buildUpdateManyOperation;
201
- /**
202
- * Validate the update document.
203
- * @param update - The update document.
204
- */
205
- function validateUpdate(update, options) {
206
- if (!(0, utils_1.hasAtomicOperators)(update, options)) throw new error_1.MongoAPIError("Client bulk write update models must only contain atomic modifiers (start with $) and must not be empty.");
207
- }
208
- /**
209
- * Creates a delete operation based on the parameters.
210
- */
211
- function createUpdateOperation(model, index, multi, options) {
212
- validateUpdate(model.update, options);
213
- const document = {
214
- update: index,
215
- multi,
216
- filter: model.filter,
217
- updateMods: model.update
218
- };
219
- if (model.hint) document.hint = model.hint;
220
- if (model.upsert) document.upsert = model.upsert;
221
- if (model.arrayFilters) document.arrayFilters = model.arrayFilters;
222
- if (model.collation) document.collation = model.collation;
223
- if (!multi && "sort" in model && model.sort != null) document.sort = (0, sort_1.formatSort)(model.sort);
224
- return document;
225
- }
226
- /**
227
- * Build the replace one operation.
228
- * @param model - The replace one model.
229
- * @param index - The namespace index.
230
- * @returns the operation.
231
- */
232
- const buildReplaceOneOperation = (model, index) => {
233
- if ((0, utils_1.hasAtomicOperators)(model.replacement)) throw new error_1.MongoAPIError("Client bulk write replace models must not contain atomic modifiers (start with $) and must not be empty.");
234
- const document = {
235
- update: index,
236
- multi: false,
237
- filter: model.filter,
238
- updateMods: model.replacement
239
- };
240
- if (model.hint) document.hint = model.hint;
241
- if (model.upsert) document.upsert = model.upsert;
242
- if (model.collation) document.collation = model.collation;
243
- if (model.sort != null) document.sort = (0, sort_1.formatSort)(model.sort);
244
- return document;
245
- };
246
- exports.buildReplaceOneOperation = buildReplaceOneOperation;
247
- /** @internal */
248
- function buildOperation(model, index, pkFactory, options) {
249
- switch (model.name) {
250
- case "insertOne": return (0, exports.buildInsertOneOperation)(model, index, pkFactory);
251
- case "deleteOne": return (0, exports.buildDeleteOneOperation)(model, index);
252
- case "deleteMany": return (0, exports.buildDeleteManyOperation)(model, index);
253
- case "updateOne": return (0, exports.buildUpdateOneOperation)(model, index, options);
254
- case "updateMany": return (0, exports.buildUpdateManyOperation)(model, index, options);
255
- case "replaceOne": return (0, exports.buildReplaceOneOperation)(model, index);
256
- }
257
- }
258
- }));
259
-
260
- //#endregion
261
- export default require_command_builder();
262
-
263
- export { require_command_builder };
264
- //# sourceMappingURL=command_builder.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command_builder.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.buildReplaceOneOperation = exports.buildUpdateManyOperation = exports.buildUpdateOneOperation = exports.buildDeleteManyOperation = exports.buildDeleteOneOperation = exports.buildInsertOneOperation = exports.ClientBulkWriteCommandBuilder = void 0;\nexports.buildOperation = buildOperation;\nconst bson_1 = require(\"../../bson\");\nconst commands_1 = require(\"../../cmap/commands\");\nconst error_1 = require(\"../../error\");\nconst sort_1 = require(\"../../sort\");\nconst utils_1 = require(\"../../utils\");\n/**\n * The bytes overhead for the extra fields added post command generation.\n */\nconst MESSAGE_OVERHEAD_BYTES = 1000;\n/** @internal */\nclass ClientBulkWriteCommandBuilder {\n /**\n * Create the command builder.\n * @param models - The client write models.\n */\n constructor(models, options, pkFactory) {\n this.models = models;\n this.options = options;\n this.pkFactory = pkFactory ?? utils_1.DEFAULT_PK_FACTORY;\n this.currentModelIndex = 0;\n this.previousModelIndex = 0;\n this.lastOperations = [];\n this.isBatchRetryable = true;\n }\n /**\n * Gets the errorsOnly value for the command, which is the inverse of the\n * user provided verboseResults option. Defaults to true.\n */\n get errorsOnly() {\n if ('verboseResults' in this.options) {\n return !this.options.verboseResults;\n }\n return true;\n }\n /**\n * Determines if there is another batch to process.\n * @returns True if not all batches have been built.\n */\n hasNextBatch() {\n return this.currentModelIndex < this.models.length;\n }\n /**\n * When we need to retry a command we need to set the current\n * model index back to its previous value.\n */\n resetBatch() {\n this.currentModelIndex = this.previousModelIndex;\n return true;\n }\n /**\n * Build a single batch of a client bulk write command.\n * @param maxMessageSizeBytes - The max message size in bytes.\n * @param maxWriteBatchSize - The max write batch size.\n * @returns The client bulk write command.\n */\n buildBatch(maxMessageSizeBytes, maxWriteBatchSize, maxBsonObjectSize) {\n // We start by assuming the batch has no multi-updates, so it is retryable\n // until we find them.\n this.isBatchRetryable = true;\n let commandLength = 0;\n let currentNamespaceIndex = 0;\n const command = this.baseCommand();\n const namespaces = new Map();\n // In the case of retries we need to mark where we started this batch.\n this.previousModelIndex = this.currentModelIndex;\n while (this.currentModelIndex < this.models.length) {\n const model = this.models[this.currentModelIndex];\n const ns = model.namespace;\n const nsIndex = namespaces.get(ns);\n // Multi updates are not retryable.\n if (model.name === 'deleteMany' || model.name === 'updateMany') {\n this.isBatchRetryable = false;\n }\n if (nsIndex != null) {\n // Build the operation and serialize it to get the bytes buffer.\n const operation = buildOperation(model, nsIndex, this.pkFactory, this.options);\n let operationBuffer;\n try {\n operationBuffer = bson_1.BSON.serialize(operation);\n }\n catch (cause) {\n throw new error_1.MongoInvalidArgumentError(`Could not serialize operation to BSON`, { cause });\n }\n validateBufferSize('ops', operationBuffer, maxBsonObjectSize);\n // Check if the operation buffer can fit in the command. If it can,\n // then add the operation to the document sequence and increment the\n // current length as long as the ops don't exceed the maxWriteBatchSize.\n if (commandLength + operationBuffer.length < maxMessageSizeBytes &&\n command.ops.documents.length < maxWriteBatchSize) {\n // Pushing to the ops document sequence returns the total byte length of the document sequence.\n commandLength = MESSAGE_OVERHEAD_BYTES + command.ops.push(operation, operationBuffer);\n // Increment the builder's current model index.\n this.currentModelIndex++;\n }\n else {\n // The operation cannot fit in the current command and will need to\n // go in the next batch. Exit the loop.\n break;\n }\n }\n else {\n // The namespace is not already in the nsInfo so we will set it in the map, and\n // construct our nsInfo and ops documents and buffers.\n namespaces.set(ns, currentNamespaceIndex);\n const nsInfo = { ns: ns };\n const operation = buildOperation(model, currentNamespaceIndex, this.pkFactory, this.options);\n let nsInfoBuffer;\n let operationBuffer;\n try {\n nsInfoBuffer = bson_1.BSON.serialize(nsInfo);\n operationBuffer = bson_1.BSON.serialize(operation);\n }\n catch (cause) {\n throw new error_1.MongoInvalidArgumentError(`Could not serialize ns info to BSON`, { cause });\n }\n validateBufferSize('nsInfo', nsInfoBuffer, maxBsonObjectSize);\n validateBufferSize('ops', operationBuffer, maxBsonObjectSize);\n // Check if the operation and nsInfo buffers can fit in the command. If they\n // can, then add the operation and nsInfo to their respective document\n // sequences and increment the current length as long as the ops don't exceed\n // the maxWriteBatchSize.\n if (commandLength + nsInfoBuffer.length + operationBuffer.length < maxMessageSizeBytes &&\n command.ops.documents.length < maxWriteBatchSize) {\n // Pushing to the ops document sequence returns the total byte length of the document sequence.\n commandLength =\n MESSAGE_OVERHEAD_BYTES +\n command.nsInfo.push(nsInfo, nsInfoBuffer) +\n command.ops.push(operation, operationBuffer);\n // We've added a new namespace, increment the namespace index.\n currentNamespaceIndex++;\n // Increment the builder's current model index.\n this.currentModelIndex++;\n }\n else {\n // The operation cannot fit in the current command and will need to\n // go in the next batch. Exit the loop.\n break;\n }\n }\n }\n // Set the last operations and return the command.\n this.lastOperations = command.ops.documents;\n return command;\n }\n baseCommand() {\n const command = {\n bulkWrite: 1,\n errorsOnly: this.errorsOnly,\n ordered: this.options.ordered ?? true,\n ops: new commands_1.DocumentSequence('ops'),\n nsInfo: new commands_1.DocumentSequence('nsInfo')\n };\n // Add bypassDocumentValidation if it was present in the options.\n if (this.options.bypassDocumentValidation != null) {\n command.bypassDocumentValidation = this.options.bypassDocumentValidation;\n }\n // Add let if it was present in the options.\n if (this.options.let) {\n command.let = this.options.let;\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) {\n command.comment = this.options.comment;\n }\n return command;\n }\n}\nexports.ClientBulkWriteCommandBuilder = ClientBulkWriteCommandBuilder;\nfunction validateBufferSize(name, buffer, maxBsonObjectSize) {\n if (buffer.length > maxBsonObjectSize) {\n throw new error_1.MongoInvalidArgumentError(`Client bulk write operation ${name} of length ${buffer.length} exceeds the max bson object size of ${maxBsonObjectSize}`);\n }\n}\n/**\n * Build the insert one operation.\n * @param model - The insert one model.\n * @param index - The namespace index.\n * @returns the operation.\n */\nconst buildInsertOneOperation = (model, index, pkFactory) => {\n const document = {\n insert: index,\n document: model.document\n };\n document.document._id = model.document._id ?? pkFactory.createPk();\n return document;\n};\nexports.buildInsertOneOperation = buildInsertOneOperation;\n/**\n * Build the delete one operation.\n * @param model - The insert many model.\n * @param index - The namespace index.\n * @returns the operation.\n */\nconst buildDeleteOneOperation = (model, index) => {\n return createDeleteOperation(model, index, false);\n};\nexports.buildDeleteOneOperation = buildDeleteOneOperation;\n/**\n * Build the delete many operation.\n * @param model - The delete many model.\n * @param index - The namespace index.\n * @returns the operation.\n */\nconst buildDeleteManyOperation = (model, index) => {\n return createDeleteOperation(model, index, true);\n};\nexports.buildDeleteManyOperation = buildDeleteManyOperation;\n/**\n * Creates a delete operation based on the parameters.\n */\nfunction createDeleteOperation(model, index, multi) {\n const document = {\n delete: index,\n multi: multi,\n filter: model.filter\n };\n if (model.hint) {\n document.hint = model.hint;\n }\n if (model.collation) {\n document.collation = model.collation;\n }\n return document;\n}\n/**\n * Build the update one operation.\n * @param model - The update one model.\n * @param index - The namespace index.\n * @returns the operation.\n */\nconst buildUpdateOneOperation = (model, index, options) => {\n return createUpdateOperation(model, index, false, options);\n};\nexports.buildUpdateOneOperation = buildUpdateOneOperation;\n/**\n * Build the update many operation.\n * @param model - The update many model.\n * @param index - The namespace index.\n * @returns the operation.\n */\nconst buildUpdateManyOperation = (model, index, options) => {\n return createUpdateOperation(model, index, true, options);\n};\nexports.buildUpdateManyOperation = buildUpdateManyOperation;\n/**\n * Validate the update document.\n * @param update - The update document.\n */\nfunction validateUpdate(update, options) {\n if (!(0, utils_1.hasAtomicOperators)(update, options)) {\n throw new error_1.MongoAPIError('Client bulk write update models must only contain atomic modifiers (start with $) and must not be empty.');\n }\n}\n/**\n * Creates a delete operation based on the parameters.\n */\nfunction createUpdateOperation(model, index, multi, options) {\n // Update documents provided in UpdateOne and UpdateMany write models are\n // required only to contain atomic modifiers (i.e. keys that start with \"$\").\n // Drivers MUST throw an error if an update document is empty or if the\n // document's first key does not start with \"$\".\n validateUpdate(model.update, options);\n const document = {\n update: index,\n multi: multi,\n filter: model.filter,\n updateMods: model.update\n };\n if (model.hint) {\n document.hint = model.hint;\n }\n if (model.upsert) {\n document.upsert = model.upsert;\n }\n if (model.arrayFilters) {\n document.arrayFilters = model.arrayFilters;\n }\n if (model.collation) {\n document.collation = model.collation;\n }\n if (!multi && 'sort' in model && model.sort != null) {\n document.sort = (0, sort_1.formatSort)(model.sort);\n }\n return document;\n}\n/**\n * Build the replace one operation.\n * @param model - The replace one model.\n * @param index - The namespace index.\n * @returns the operation.\n */\nconst buildReplaceOneOperation = (model, index) => {\n if ((0, utils_1.hasAtomicOperators)(model.replacement)) {\n throw new error_1.MongoAPIError('Client bulk write replace models must not contain atomic modifiers (start with $) and must not be empty.');\n }\n const document = {\n update: index,\n multi: false,\n filter: model.filter,\n updateMods: model.replacement\n };\n if (model.hint) {\n document.hint = model.hint;\n }\n if (model.upsert) {\n document.upsert = model.upsert;\n }\n if (model.collation) {\n document.collation = model.collation;\n }\n if (model.sort != null) {\n document.sort = (0, sort_1.formatSort)(model.sort);\n }\n return document;\n};\nexports.buildReplaceOneOperation = buildReplaceOneOperation;\n/** @internal */\nfunction buildOperation(model, index, pkFactory, options) {\n switch (model.name) {\n case 'insertOne':\n return (0, exports.buildInsertOneOperation)(model, index, pkFactory);\n case 'deleteOne':\n return (0, exports.buildDeleteOneOperation)(model, index);\n case 'deleteMany':\n return (0, exports.buildDeleteManyOperation)(model, index);\n case 'updateOne':\n return (0, exports.buildUpdateOneOperation)(model, index, options);\n case 'updateMany':\n return (0, exports.buildUpdateManyOperation)(model, index, options);\n case 'replaceOne':\n return (0, exports.buildReplaceOneOperation)(model, index);\n }\n}\n//# sourceMappingURL=command_builder.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,2BAA2B,QAAQ,2BAA2B,QAAQ,0BA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,0 @@
1
- import { __commonJSMin } from "../../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_error } from "../../error.mjs";
3
- import { require_write_concern } from "../../write_concern.mjs";
4
- import { require_utils } from "../../utils.mjs";
5
- import { require_timeout } from "../../timeout.mjs";
6
- import { require_execute_operation } from "../execute_operation.mjs";
7
- import { require_client_bulk_write } from "./client_bulk_write.mjs";
8
- import { require_client_bulk_write_cursor } from "../../cursor/client_bulk_write_cursor.mjs";
9
- import { require_command_builder } from "./command_builder.mjs";
10
- import { require_results_merger } from "./results_merger.mjs";
11
- import { require_abstract_cursor } from "../../cursor/abstract_cursor.mjs";
12
-
13
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.js
14
- var require_executor = /* @__PURE__ */ __commonJSMin(((exports) => {
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ClientBulkWriteExecutor = void 0;
17
- const abstract_cursor_1 = require_abstract_cursor();
18
- const client_bulk_write_cursor_1 = require_client_bulk_write_cursor();
19
- const error_1 = require_error();
20
- const timeout_1 = require_timeout();
21
- const utils_1 = require_utils();
22
- const write_concern_1 = require_write_concern();
23
- const execute_operation_1 = require_execute_operation();
24
- const client_bulk_write_1 = require_client_bulk_write();
25
- const command_builder_1 = require_command_builder();
26
- const results_merger_1 = require_results_merger();
27
- /**
28
- * Responsible for executing a client bulk write.
29
- * @internal
30
- */
31
- var ClientBulkWriteExecutor = class {
32
- /**
33
- * Instantiate the executor.
34
- * @param client - The mongo client.
35
- * @param operations - The user supplied bulk write models.
36
- * @param options - The bulk write options.
37
- */
38
- constructor(client, operations, options) {
39
- if (operations.length === 0) throw new error_1.MongoClientBulkWriteExecutionError("No client bulk write models were provided.");
40
- this.client = client;
41
- this.operations = operations;
42
- this.options = {
43
- ordered: true,
44
- bypassDocumentValidation: false,
45
- verboseResults: false,
46
- ...options
47
- };
48
- if (!this.options.writeConcern) this.options.writeConcern = write_concern_1.WriteConcern.fromOptions(this.client.s.options);
49
- if (this.options.writeConcern?.w === 0) {
50
- if (this.options.verboseResults) throw new error_1.MongoInvalidArgumentError("Cannot request unacknowledged write concern and verbose results");
51
- if (this.options.ordered) throw new error_1.MongoInvalidArgumentError("Cannot request unacknowledged write concern and ordered writes");
52
- }
53
- }
54
- /**
55
- * Execute the client bulk write. Will split commands into batches and exhaust the cursors
56
- * for each, then merge the results into one.
57
- * @returns The result.
58
- */
59
- async execute() {
60
- const pkFactory = this.client.s.options.pkFactory;
61
- const commandBuilder = new command_builder_1.ClientBulkWriteCommandBuilder(this.operations, this.options, pkFactory);
62
- const resolvedOptions = (0, utils_1.resolveTimeoutOptions)(this.client, this.options);
63
- const context = timeout_1.TimeoutContext.create(resolvedOptions);
64
- if (this.options.writeConcern?.w === 0) {
65
- while (commandBuilder.hasNextBatch()) {
66
- const operation = new client_bulk_write_1.ClientBulkWriteOperation(commandBuilder, this.options);
67
- await (0, execute_operation_1.executeOperation)(this.client, operation, context);
68
- }
69
- return results_merger_1.ClientBulkWriteResultsMerger.unacknowledged();
70
- } else {
71
- const resultsMerger = new results_merger_1.ClientBulkWriteResultsMerger(this.options);
72
- while (commandBuilder.hasNextBatch()) {
73
- const cursorContext = new abstract_cursor_1.CursorTimeoutContext(context, Symbol());
74
- const options = {
75
- ...this.options,
76
- timeoutContext: cursorContext,
77
- ...resolvedOptions.timeoutMS != null && { timeoutMode: abstract_cursor_1.CursorTimeoutMode.LIFETIME }
78
- };
79
- const cursor = new client_bulk_write_cursor_1.ClientBulkWriteCursor(this.client, commandBuilder, options);
80
- try {
81
- await resultsMerger.merge(cursor);
82
- } catch (error) {
83
- if (error instanceof error_1.MongoServerError && !(error instanceof error_1.MongoClientBulkWriteError)) {
84
- const bulkWriteError = new error_1.MongoClientBulkWriteError({ message: "Mongo client bulk write encountered an error during execution" });
85
- bulkWriteError.cause = error;
86
- bulkWriteError.partialResult = resultsMerger.bulkWriteResult;
87
- throw bulkWriteError;
88
- } else throw error;
89
- }
90
- }
91
- if (resultsMerger.writeConcernErrors.length > 0 || resultsMerger.writeErrors.size > 0) {
92
- const error = new error_1.MongoClientBulkWriteError({ message: "Mongo client bulk write encountered errors during execution." });
93
- error.writeConcernErrors = resultsMerger.writeConcernErrors;
94
- error.writeErrors = resultsMerger.writeErrors;
95
- error.partialResult = resultsMerger.bulkWriteResult;
96
- throw error;
97
- }
98
- return resultsMerger.bulkWriteResult;
99
- }
100
- }
101
- };
102
- exports.ClientBulkWriteExecutor = ClientBulkWriteExecutor;
103
- }));
104
-
105
- //#endregion
106
- export default require_executor();
107
-
108
- export { require_executor };
109
- //# sourceMappingURL=executor.mjs.map