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,1305 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.js
4
- var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.MongoWriteConcernError = exports.MongoServerSelectionError = exports.MongoSystemError = exports.MongoMissingDependencyError = exports.MongoMissingCredentialsError = exports.MongoCompatibilityError = exports.MongoInvalidArgumentError = exports.MongoParseError = exports.MongoNetworkTimeoutError = exports.MongoNetworkError = exports.MongoClientClosedError = exports.MongoTopologyClosedError = exports.MongoCursorExhaustedError = exports.MongoServerClosedError = exports.MongoCursorInUseError = exports.MongoOperationTimeoutError = exports.MongoUnexpectedServerResponseError = exports.MongoGridFSChunkError = exports.MongoGridFSStreamError = exports.MongoTailableCursorError = exports.MongoChangeStreamError = exports.MongoClientBulkWriteExecutionError = exports.MongoClientBulkWriteCursorError = exports.MongoClientBulkWriteError = exports.MongoGCPError = exports.MongoAzureError = exports.MongoOIDCError = exports.MongoAWSError = exports.MongoKerberosError = exports.MongoExpiredSessionError = exports.MongoTransactionError = exports.MongoNotConnectedError = exports.MongoDecompressionError = exports.MongoBatchReExecutionError = exports.MongoStalePrimaryError = exports.MongoRuntimeError = exports.MongoAPIError = exports.MongoDriverError = exports.MongoServerError = exports.MongoError = exports.MongoErrorLabel = exports.GET_MORE_RESUMABLE_CODES = exports.MONGODB_ERROR_CODES = exports.NODE_IS_RECOVERING_ERROR_MESSAGE = exports.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE = exports.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE = void 0;
7
- exports.needsRetryableWriteLabel = needsRetryableWriteLabel;
8
- exports.isRetryableWriteError = isRetryableWriteError;
9
- exports.isRetryableReadError = isRetryableReadError;
10
- exports.isNodeShuttingDownError = isNodeShuttingDownError;
11
- exports.isSDAMUnrecoverableError = isSDAMUnrecoverableError;
12
- exports.isNetworkTimeoutError = isNetworkTimeoutError;
13
- exports.isResumableError = isResumableError;
14
- /**
15
- * @internal
16
- * The legacy error message from the server that indicates the node is not a writable primary
17
- * https://github.com/mongodb/specifications/blob/921232976f9913cf17415b5ef937ee772e45e6ae/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md#not-writable-primary-and-node-is-recovering
18
- */
19
- exports.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE = new RegExp("not master", "i");
20
- /**
21
- * @internal
22
- * The legacy error message from the server that indicates the node is not a primary or secondary
23
- * https://github.com/mongodb/specifications/blob/921232976f9913cf17415b5ef937ee772e45e6ae/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md#not-writable-primary-and-node-is-recovering
24
- */
25
- exports.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE = new RegExp("not master or secondary", "i");
26
- /**
27
- * @internal
28
- * The error message from the server that indicates the node is recovering
29
- * https://github.com/mongodb/specifications/blob/921232976f9913cf17415b5ef937ee772e45e6ae/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md#not-writable-primary-and-node-is-recovering
30
- */
31
- exports.NODE_IS_RECOVERING_ERROR_MESSAGE = new RegExp("node is recovering", "i");
32
- /** @internal MongoDB Error Codes */
33
- exports.MONGODB_ERROR_CODES = Object.freeze({
34
- HostUnreachable: 6,
35
- HostNotFound: 7,
36
- AuthenticationFailed: 18,
37
- NetworkTimeout: 89,
38
- ShutdownInProgress: 91,
39
- PrimarySteppedDown: 189,
40
- ExceededTimeLimit: 262,
41
- SocketException: 9001,
42
- NotWritablePrimary: 10107,
43
- InterruptedAtShutdown: 11600,
44
- InterruptedDueToReplStateChange: 11602,
45
- NotPrimaryNoSecondaryOk: 13435,
46
- NotPrimaryOrSecondary: 13436,
47
- StaleShardVersion: 63,
48
- StaleEpoch: 150,
49
- StaleConfig: 13388,
50
- RetryChangeStream: 234,
51
- FailedToSatisfyReadPreference: 133,
52
- CursorNotFound: 43,
53
- LegacyNotPrimary: 10058,
54
- WriteConcernTimeout: 64,
55
- NamespaceNotFound: 26,
56
- IllegalOperation: 20,
57
- MaxTimeMSExpired: 50,
58
- UnknownReplWriteConcern: 79,
59
- UnsatisfiableWriteConcern: 100,
60
- Reauthenticate: 391,
61
- ReadConcernMajorityNotAvailableYet: 134
62
- });
63
- exports.GET_MORE_RESUMABLE_CODES = new Set([
64
- exports.MONGODB_ERROR_CODES.HostUnreachable,
65
- exports.MONGODB_ERROR_CODES.HostNotFound,
66
- exports.MONGODB_ERROR_CODES.NetworkTimeout,
67
- exports.MONGODB_ERROR_CODES.ShutdownInProgress,
68
- exports.MONGODB_ERROR_CODES.PrimarySteppedDown,
69
- exports.MONGODB_ERROR_CODES.ExceededTimeLimit,
70
- exports.MONGODB_ERROR_CODES.SocketException,
71
- exports.MONGODB_ERROR_CODES.NotWritablePrimary,
72
- exports.MONGODB_ERROR_CODES.InterruptedAtShutdown,
73
- exports.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,
74
- exports.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,
75
- exports.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,
76
- exports.MONGODB_ERROR_CODES.StaleShardVersion,
77
- exports.MONGODB_ERROR_CODES.StaleEpoch,
78
- exports.MONGODB_ERROR_CODES.StaleConfig,
79
- exports.MONGODB_ERROR_CODES.RetryChangeStream,
80
- exports.MONGODB_ERROR_CODES.FailedToSatisfyReadPreference,
81
- exports.MONGODB_ERROR_CODES.CursorNotFound
82
- ]);
83
- /** @public */
84
- exports.MongoErrorLabel = Object.freeze({
85
- RetryableWriteError: "RetryableWriteError",
86
- TransientTransactionError: "TransientTransactionError",
87
- UnknownTransactionCommitResult: "UnknownTransactionCommitResult",
88
- ResumableChangeStreamError: "ResumableChangeStreamError",
89
- HandshakeError: "HandshakeError",
90
- ResetPool: "ResetPool",
91
- PoolRequstedRetry: "PoolRequstedRetry",
92
- InterruptInUseConnections: "InterruptInUseConnections",
93
- NoWritesPerformed: "NoWritesPerformed"
94
- });
95
- function isAggregateError(e) {
96
- return e != null && typeof e === "object" && "errors" in e && Array.isArray(e.errors);
97
- }
98
- /**
99
- * @public
100
- * @category Error
101
- *
102
- * @privateRemarks
103
- * mongodb-client-encryption has a dependency on this error, it uses the constructor with a string argument
104
- */
105
- var MongoError = class extends Error {
106
- get errorLabels() {
107
- return Array.from(this.errorLabelSet);
108
- }
109
- /**
110
- * **Do not use this constructor!**
111
- *
112
- * Meant for internal use only.
113
- *
114
- * @remarks
115
- * This class is only meant to be constructed within the driver. This constructor is
116
- * not subject to semantic versioning compatibility guarantees and may change at any time.
117
- *
118
- * @public
119
- **/
120
- constructor(message, options) {
121
- super(message, options);
122
- /** @internal */
123
- this.errorLabelSet = /* @__PURE__ */ new Set();
124
- }
125
- /** @internal */
126
- static buildErrorMessage(e) {
127
- if (typeof e === "string") return e;
128
- if (isAggregateError(e) && e.message.length === 0) return e.errors.length === 0 ? "AggregateError has an empty errors array. Please check the `cause` property for more information." : e.errors.map(({ message }) => message).join(", ");
129
- return e != null && typeof e === "object" && "message" in e && typeof e.message === "string" ? e.message : "empty error message";
130
- }
131
- get name() {
132
- return "MongoError";
133
- }
134
- /** Legacy name for server error responses */
135
- get errmsg() {
136
- return this.message;
137
- }
138
- /**
139
- * Checks the error to see if it has an error label
140
- *
141
- * @param label - The error label to check for
142
- * @returns returns true if the error has the provided error label
143
- */
144
- hasErrorLabel(label) {
145
- return this.errorLabelSet.has(label);
146
- }
147
- addErrorLabel(label) {
148
- this.errorLabelSet.add(label);
149
- }
150
- };
151
- exports.MongoError = MongoError;
152
- /**
153
- * An error coming from the mongo server
154
- *
155
- * @public
156
- * @category Error
157
- */
158
- var MongoServerError = class extends MongoError {
159
- /**
160
- * **Do not use this constructor!**
161
- *
162
- * Meant for internal use only.
163
- *
164
- * @remarks
165
- * This class is only meant to be constructed within the driver. This constructor is
166
- * not subject to semantic versioning compatibility guarantees and may change at any time.
167
- *
168
- * @public
169
- **/
170
- constructor(message) {
171
- super(message.message || message.errmsg || message.$err || "n/a");
172
- if (message.errorLabels) for (const label of message.errorLabels) this.addErrorLabel(label);
173
- this.errorResponse = message;
174
- for (const name in message) if (name !== "errorLabels" && name !== "errmsg" && name !== "message" && name !== "errorResponse") this[name] = message[name];
175
- }
176
- get name() {
177
- return "MongoServerError";
178
- }
179
- };
180
- exports.MongoServerError = MongoServerError;
181
- /**
182
- * An error generated by the driver
183
- *
184
- * @public
185
- * @category Error
186
- */
187
- var MongoDriverError = class extends MongoError {
188
- /**
189
- * **Do not use this constructor!**
190
- *
191
- * Meant for internal use only.
192
- *
193
- * @remarks
194
- * This class is only meant to be constructed within the driver. This constructor is
195
- * not subject to semantic versioning compatibility guarantees and may change at any time.
196
- *
197
- * @public
198
- **/
199
- constructor(message, options) {
200
- super(message, options);
201
- }
202
- get name() {
203
- return "MongoDriverError";
204
- }
205
- };
206
- exports.MongoDriverError = MongoDriverError;
207
- /**
208
- * An error generated when the driver API is used incorrectly
209
- *
210
- * @privateRemarks
211
- * Should **never** be directly instantiated
212
- *
213
- * @public
214
- * @category Error
215
- */
216
- var MongoAPIError = class extends MongoDriverError {
217
- /**
218
- * **Do not use this constructor!**
219
- *
220
- * Meant for internal use only.
221
- *
222
- * @remarks
223
- * This class is only meant to be constructed within the driver. This constructor is
224
- * not subject to semantic versioning compatibility guarantees and may change at any time.
225
- *
226
- * @public
227
- **/
228
- constructor(message, options) {
229
- super(message, options);
230
- }
231
- get name() {
232
- return "MongoAPIError";
233
- }
234
- };
235
- exports.MongoAPIError = MongoAPIError;
236
- /**
237
- * An error generated when the driver encounters unexpected input
238
- * or reaches an unexpected/invalid internal state.
239
- *
240
- * @privateRemarks
241
- * Should **never** be directly instantiated.
242
- *
243
- * @public
244
- * @category Error
245
- */
246
- var MongoRuntimeError = class extends MongoDriverError {
247
- /**
248
- * **Do not use this constructor!**
249
- *
250
- * Meant for internal use only.
251
- *
252
- * @remarks
253
- * This class is only meant to be constructed within the driver. This constructor is
254
- * not subject to semantic versioning compatibility guarantees and may change at any time.
255
- *
256
- * @public
257
- **/
258
- constructor(message, options) {
259
- super(message, options);
260
- }
261
- get name() {
262
- return "MongoRuntimeError";
263
- }
264
- };
265
- exports.MongoRuntimeError = MongoRuntimeError;
266
- /**
267
- * An error generated when a primary server is marked stale, never directly thrown
268
- *
269
- * @public
270
- * @category Error
271
- */
272
- var MongoStalePrimaryError = class extends MongoRuntimeError {
273
- /**
274
- * **Do not use this constructor!**
275
- *
276
- * Meant for internal use only.
277
- *
278
- * @remarks
279
- * This class is only meant to be constructed within the driver. This constructor is
280
- * not subject to semantic versioning compatibility guarantees and may change at any time.
281
- *
282
- * @public
283
- **/
284
- constructor(message, options) {
285
- super(message, options);
286
- }
287
- get name() {
288
- return "MongoStalePrimaryError";
289
- }
290
- };
291
- exports.MongoStalePrimaryError = MongoStalePrimaryError;
292
- /**
293
- * An error generated when a batch command is re-executed after one of the commands in the batch
294
- * has failed
295
- *
296
- * @public
297
- * @category Error
298
- */
299
- var MongoBatchReExecutionError = class extends MongoAPIError {
300
- /**
301
- * **Do not use this constructor!**
302
- *
303
- * Meant for internal use only.
304
- *
305
- * @remarks
306
- * This class is only meant to be constructed within the driver. This constructor is
307
- * not subject to semantic versioning compatibility guarantees and may change at any time.
308
- *
309
- * @public
310
- **/
311
- constructor(message = "This batch has already been executed, create new batch to execute") {
312
- super(message);
313
- }
314
- get name() {
315
- return "MongoBatchReExecutionError";
316
- }
317
- };
318
- exports.MongoBatchReExecutionError = MongoBatchReExecutionError;
319
- /**
320
- * An error generated when the driver fails to decompress
321
- * data received from the server.
322
- *
323
- * @public
324
- * @category Error
325
- */
326
- var MongoDecompressionError = class extends MongoRuntimeError {
327
- /**
328
- * **Do not use this constructor!**
329
- *
330
- * Meant for internal use only.
331
- *
332
- * @remarks
333
- * This class is only meant to be constructed within the driver. This constructor is
334
- * not subject to semantic versioning compatibility guarantees and may change at any time.
335
- *
336
- * @public
337
- **/
338
- constructor(message) {
339
- super(message);
340
- }
341
- get name() {
342
- return "MongoDecompressionError";
343
- }
344
- };
345
- exports.MongoDecompressionError = MongoDecompressionError;
346
- /**
347
- * An error thrown when the user attempts to operate on a database or collection through a MongoClient
348
- * that has not yet successfully called the "connect" method
349
- *
350
- * @public
351
- * @category Error
352
- */
353
- var MongoNotConnectedError = class extends MongoAPIError {
354
- /**
355
- * **Do not use this constructor!**
356
- *
357
- * Meant for internal use only.
358
- *
359
- * @remarks
360
- * This class is only meant to be constructed within the driver. This constructor is
361
- * not subject to semantic versioning compatibility guarantees and may change at any time.
362
- *
363
- * @public
364
- **/
365
- constructor(message) {
366
- super(message);
367
- }
368
- get name() {
369
- return "MongoNotConnectedError";
370
- }
371
- };
372
- exports.MongoNotConnectedError = MongoNotConnectedError;
373
- /**
374
- * An error generated when the user makes a mistake in the usage of transactions.
375
- * (e.g. attempting to commit a transaction with a readPreference other than primary)
376
- *
377
- * @public
378
- * @category Error
379
- */
380
- var MongoTransactionError = class extends MongoAPIError {
381
- /**
382
- * **Do not use this constructor!**
383
- *
384
- * Meant for internal use only.
385
- *
386
- * @remarks
387
- * This class is only meant to be constructed within the driver. This constructor is
388
- * not subject to semantic versioning compatibility guarantees and may change at any time.
389
- *
390
- * @public
391
- **/
392
- constructor(message) {
393
- super(message);
394
- }
395
- get name() {
396
- return "MongoTransactionError";
397
- }
398
- };
399
- exports.MongoTransactionError = MongoTransactionError;
400
- /**
401
- * An error generated when the user attempts to operate
402
- * on a session that has expired or has been closed.
403
- *
404
- * @public
405
- * @category Error
406
- */
407
- var MongoExpiredSessionError = class extends MongoAPIError {
408
- /**
409
- * **Do not use this constructor!**
410
- *
411
- * Meant for internal use only.
412
- *
413
- * @remarks
414
- * This class is only meant to be constructed within the driver. This constructor is
415
- * not subject to semantic versioning compatibility guarantees and may change at any time.
416
- *
417
- * @public
418
- **/
419
- constructor(message = "Cannot use a session that has ended") {
420
- super(message);
421
- }
422
- get name() {
423
- return "MongoExpiredSessionError";
424
- }
425
- };
426
- exports.MongoExpiredSessionError = MongoExpiredSessionError;
427
- /**
428
- * A error generated when the user attempts to authenticate
429
- * via Kerberos, but fails to connect to the Kerberos client.
430
- *
431
- * @public
432
- * @category Error
433
- */
434
- var MongoKerberosError = class extends MongoRuntimeError {
435
- /**
436
- * **Do not use this constructor!**
437
- *
438
- * Meant for internal use only.
439
- *
440
- * @remarks
441
- * This class is only meant to be constructed within the driver. This constructor is
442
- * not subject to semantic versioning compatibility guarantees and may change at any time.
443
- *
444
- * @public
445
- **/
446
- constructor(message) {
447
- super(message);
448
- }
449
- get name() {
450
- return "MongoKerberosError";
451
- }
452
- };
453
- exports.MongoKerberosError = MongoKerberosError;
454
- /**
455
- * A error generated when the user attempts to authenticate
456
- * via AWS, but fails
457
- *
458
- * @public
459
- * @category Error
460
- */
461
- var MongoAWSError = class extends MongoRuntimeError {
462
- /**
463
- * **Do not use this constructor!**
464
- *
465
- * Meant for internal use only.
466
- *
467
- * @remarks
468
- * This class is only meant to be constructed within the driver. This constructor is
469
- * not subject to semantic versioning compatibility guarantees and may change at any time.
470
- *
471
- * @public
472
- **/
473
- constructor(message, options) {
474
- super(message, options);
475
- }
476
- get name() {
477
- return "MongoAWSError";
478
- }
479
- };
480
- exports.MongoAWSError = MongoAWSError;
481
- /**
482
- * A error generated when the user attempts to authenticate
483
- * via OIDC callbacks, but fails.
484
- *
485
- * @public
486
- * @category Error
487
- */
488
- var MongoOIDCError = class extends MongoRuntimeError {
489
- /**
490
- * **Do not use this constructor!**
491
- *
492
- * Meant for internal use only.
493
- *
494
- * @remarks
495
- * This class is only meant to be constructed within the driver. This constructor is
496
- * not subject to semantic versioning compatibility guarantees and may change at any time.
497
- *
498
- * @public
499
- **/
500
- constructor(message) {
501
- super(message);
502
- }
503
- get name() {
504
- return "MongoOIDCError";
505
- }
506
- };
507
- exports.MongoOIDCError = MongoOIDCError;
508
- /**
509
- * A error generated when the user attempts to authenticate
510
- * via Azure, but fails.
511
- *
512
- * @public
513
- * @category Error
514
- */
515
- var MongoAzureError = class extends MongoOIDCError {
516
- /**
517
- * **Do not use this constructor!**
518
- *
519
- * Meant for internal use only.
520
- *
521
- * @remarks
522
- * This class is only meant to be constructed within the driver. This constructor is
523
- * not subject to semantic versioning compatibility guarantees and may change at any time.
524
- *
525
- * @public
526
- **/
527
- constructor(message) {
528
- super(message);
529
- }
530
- get name() {
531
- return "MongoAzureError";
532
- }
533
- };
534
- exports.MongoAzureError = MongoAzureError;
535
- /**
536
- * A error generated when the user attempts to authenticate
537
- * via GCP, but fails.
538
- *
539
- * @public
540
- * @category Error
541
- */
542
- var MongoGCPError = class extends MongoOIDCError {
543
- /**
544
- * **Do not use this constructor!**
545
- *
546
- * Meant for internal use only.
547
- *
548
- * @remarks
549
- * This class is only meant to be constructed within the driver. This constructor is
550
- * not subject to semantic versioning compatibility guarantees and may change at any time.
551
- *
552
- * @public
553
- **/
554
- constructor(message) {
555
- super(message);
556
- }
557
- get name() {
558
- return "MongoGCPError";
559
- }
560
- };
561
- exports.MongoGCPError = MongoGCPError;
562
- /**
563
- * An error indicating that an error occurred when executing the bulk write.
564
- *
565
- * @public
566
- * @category Error
567
- */
568
- var MongoClientBulkWriteError = class extends MongoServerError {
569
- /**
570
- * Initialize the client bulk write error.
571
- * @param message - The error message.
572
- */
573
- constructor(message) {
574
- super(message);
575
- this.writeConcernErrors = [];
576
- this.writeErrors = /* @__PURE__ */ new Map();
577
- }
578
- get name() {
579
- return "MongoClientBulkWriteError";
580
- }
581
- };
582
- exports.MongoClientBulkWriteError = MongoClientBulkWriteError;
583
- /**
584
- * An error indicating that an error occurred when processing bulk write results.
585
- *
586
- * @public
587
- * @category Error
588
- */
589
- var MongoClientBulkWriteCursorError = class extends MongoRuntimeError {
590
- /**
591
- * **Do not use this constructor!**
592
- *
593
- * Meant for internal use only.
594
- *
595
- * @remarks
596
- * This class is only meant to be constructed within the driver. This constructor is
597
- * not subject to semantic versioning compatibility guarantees and may change at any time.
598
- *
599
- * @public
600
- **/
601
- constructor(message) {
602
- super(message);
603
- }
604
- get name() {
605
- return "MongoClientBulkWriteCursorError";
606
- }
607
- };
608
- exports.MongoClientBulkWriteCursorError = MongoClientBulkWriteCursorError;
609
- /**
610
- * An error indicating that an error occurred on the client when executing a client bulk write.
611
- *
612
- * @public
613
- * @category Error
614
- */
615
- var MongoClientBulkWriteExecutionError = class extends MongoRuntimeError {
616
- /**
617
- * **Do not use this constructor!**
618
- *
619
- * Meant for internal use only.
620
- *
621
- * @remarks
622
- * This class is only meant to be constructed within the driver. This constructor is
623
- * not subject to semantic versioning compatibility guarantees and may change at any time.
624
- *
625
- * @public
626
- **/
627
- constructor(message) {
628
- super(message);
629
- }
630
- get name() {
631
- return "MongoClientBulkWriteExecutionError";
632
- }
633
- };
634
- exports.MongoClientBulkWriteExecutionError = MongoClientBulkWriteExecutionError;
635
- /**
636
- * An error generated when a ChangeStream operation fails to execute.
637
- *
638
- * @public
639
- * @category Error
640
- */
641
- var MongoChangeStreamError = class extends MongoRuntimeError {
642
- /**
643
- * **Do not use this constructor!**
644
- *
645
- * Meant for internal use only.
646
- *
647
- * @remarks
648
- * This class is only meant to be constructed within the driver. This constructor is
649
- * not subject to semantic versioning compatibility guarantees and may change at any time.
650
- *
651
- * @public
652
- **/
653
- constructor(message) {
654
- super(message);
655
- }
656
- get name() {
657
- return "MongoChangeStreamError";
658
- }
659
- };
660
- exports.MongoChangeStreamError = MongoChangeStreamError;
661
- /**
662
- * An error thrown when the user calls a function or method not supported on a tailable cursor
663
- *
664
- * @public
665
- * @category Error
666
- */
667
- var MongoTailableCursorError = class extends MongoAPIError {
668
- /**
669
- * **Do not use this constructor!**
670
- *
671
- * Meant for internal use only.
672
- *
673
- * @remarks
674
- * This class is only meant to be constructed within the driver. This constructor is
675
- * not subject to semantic versioning compatibility guarantees and may change at any time.
676
- *
677
- * @public
678
- **/
679
- constructor(message = "Tailable cursor does not support this operation") {
680
- super(message);
681
- }
682
- get name() {
683
- return "MongoTailableCursorError";
684
- }
685
- };
686
- exports.MongoTailableCursorError = MongoTailableCursorError;
687
- /** An error generated when a GridFSStream operation fails to execute.
688
- *
689
- * @public
690
- * @category Error
691
- */
692
- var MongoGridFSStreamError = class extends MongoRuntimeError {
693
- /**
694
- * **Do not use this constructor!**
695
- *
696
- * Meant for internal use only.
697
- *
698
- * @remarks
699
- * This class is only meant to be constructed within the driver. This constructor is
700
- * not subject to semantic versioning compatibility guarantees and may change at any time.
701
- *
702
- * @public
703
- **/
704
- constructor(message) {
705
- super(message);
706
- }
707
- get name() {
708
- return "MongoGridFSStreamError";
709
- }
710
- };
711
- exports.MongoGridFSStreamError = MongoGridFSStreamError;
712
- /**
713
- * An error generated when a malformed or invalid chunk is
714
- * encountered when reading from a GridFSStream.
715
- *
716
- * @public
717
- * @category Error
718
- */
719
- var MongoGridFSChunkError = class extends MongoRuntimeError {
720
- /**
721
- * **Do not use this constructor!**
722
- *
723
- * Meant for internal use only.
724
- *
725
- * @remarks
726
- * This class is only meant to be constructed within the driver. This constructor is
727
- * not subject to semantic versioning compatibility guarantees and may change at any time.
728
- *
729
- * @public
730
- **/
731
- constructor(message) {
732
- super(message);
733
- }
734
- get name() {
735
- return "MongoGridFSChunkError";
736
- }
737
- };
738
- exports.MongoGridFSChunkError = MongoGridFSChunkError;
739
- /**
740
- * An error generated when a **parsable** unexpected response comes from the server.
741
- * This is generally an error where the driver in a state expecting a certain behavior to occur in
742
- * the next message from MongoDB but it receives something else.
743
- * This error **does not** represent an issue with wire message formatting.
744
- *
745
- * #### Example
746
- * When an operation fails, it is the driver's job to retry it. It must perform serverSelection
747
- * again to make sure that it attempts the operation against a server in a good state. If server
748
- * selection returns a server that does not support retryable operations, this error is used.
749
- * This scenario is unlikely as retryable support would also have been determined on the first attempt
750
- * but it is possible the state change could report a selectable server that does not support retries.
751
- *
752
- * @public
753
- * @category Error
754
- */
755
- var MongoUnexpectedServerResponseError = class extends MongoRuntimeError {
756
- /**
757
- * **Do not use this constructor!**
758
- *
759
- * Meant for internal use only.
760
- *
761
- * @remarks
762
- * This class is only meant to be constructed within the driver. This constructor is
763
- * not subject to semantic versioning compatibility guarantees and may change at any time.
764
- *
765
- * @public
766
- **/
767
- constructor(message, options) {
768
- super(message, options);
769
- }
770
- get name() {
771
- return "MongoUnexpectedServerResponseError";
772
- }
773
- };
774
- exports.MongoUnexpectedServerResponseError = MongoUnexpectedServerResponseError;
775
- /**
776
- * @public
777
- * @category Error
778
- *
779
- * The `MongoOperationTimeoutError` class represents an error that occurs when an operation could not be completed within the specified `timeoutMS`.
780
- * It is generated by the driver in support of the "client side operation timeout" feature so inherits from `MongoDriverError`.
781
- * When `timeoutMS` is enabled `MongoServerError`s relating to `MaxTimeExpired` errors will be converted to `MongoOperationTimeoutError`
782
- *
783
- * @example
784
- * ```ts
785
- * try {
786
- * await blogs.insertOne(blogPost, { timeoutMS: 60_000 })
787
- * } catch (error) {
788
- * if (error instanceof MongoOperationTimeoutError) {
789
- * console.log(`Oh no! writer's block!`, error);
790
- * }
791
- * }
792
- * ```
793
- */
794
- var MongoOperationTimeoutError = class extends MongoDriverError {
795
- get name() {
796
- return "MongoOperationTimeoutError";
797
- }
798
- };
799
- exports.MongoOperationTimeoutError = MongoOperationTimeoutError;
800
- /**
801
- * An error thrown when the user attempts to add options to a cursor that has already been
802
- * initialized
803
- *
804
- * @public
805
- * @category Error
806
- */
807
- var MongoCursorInUseError = class extends MongoAPIError {
808
- /**
809
- * **Do not use this constructor!**
810
- *
811
- * Meant for internal use only.
812
- *
813
- * @remarks
814
- * This class is only meant to be constructed within the driver. This constructor is
815
- * not subject to semantic versioning compatibility guarantees and may change at any time.
816
- *
817
- * @public
818
- **/
819
- constructor(message = "Cursor is already initialized") {
820
- super(message);
821
- }
822
- get name() {
823
- return "MongoCursorInUseError";
824
- }
825
- };
826
- exports.MongoCursorInUseError = MongoCursorInUseError;
827
- /**
828
- * An error generated when an attempt is made to operate
829
- * on a closed/closing server.
830
- *
831
- * @public
832
- * @category Error
833
- */
834
- var MongoServerClosedError = class extends MongoAPIError {
835
- /**
836
- * **Do not use this constructor!**
837
- *
838
- * Meant for internal use only.
839
- *
840
- * @remarks
841
- * This class is only meant to be constructed within the driver. This constructor is
842
- * not subject to semantic versioning compatibility guarantees and may change at any time.
843
- *
844
- * @public
845
- **/
846
- constructor(message = "Server is closed") {
847
- super(message);
848
- }
849
- get name() {
850
- return "MongoServerClosedError";
851
- }
852
- };
853
- exports.MongoServerClosedError = MongoServerClosedError;
854
- /**
855
- * An error thrown when an attempt is made to read from a cursor that has been exhausted
856
- *
857
- * @public
858
- * @category Error
859
- */
860
- var MongoCursorExhaustedError = class extends MongoAPIError {
861
- /**
862
- * **Do not use this constructor!**
863
- *
864
- * Meant for internal use only.
865
- *
866
- * @remarks
867
- * This class is only meant to be constructed within the driver. This constructor is
868
- * not subject to semantic versioning compatibility guarantees and may change at any time.
869
- *
870
- * @public
871
- **/
872
- constructor(message) {
873
- super(message || "Cursor is exhausted");
874
- }
875
- get name() {
876
- return "MongoCursorExhaustedError";
877
- }
878
- };
879
- exports.MongoCursorExhaustedError = MongoCursorExhaustedError;
880
- /**
881
- * An error generated when an attempt is made to operate on a
882
- * dropped, or otherwise unavailable, database.
883
- *
884
- * @public
885
- * @category Error
886
- */
887
- var MongoTopologyClosedError = class extends MongoAPIError {
888
- /**
889
- * **Do not use this constructor!**
890
- *
891
- * Meant for internal use only.
892
- *
893
- * @remarks
894
- * This class is only meant to be constructed within the driver. This constructor is
895
- * not subject to semantic versioning compatibility guarantees and may change at any time.
896
- *
897
- * @public
898
- **/
899
- constructor(message = "Topology is closed") {
900
- super(message);
901
- }
902
- get name() {
903
- return "MongoTopologyClosedError";
904
- }
905
- };
906
- exports.MongoTopologyClosedError = MongoTopologyClosedError;
907
- /**
908
- * An error generated when the MongoClient is closed and async
909
- * operations are interrupted.
910
- *
911
- * @public
912
- * @category Error
913
- */
914
- var MongoClientClosedError = class extends MongoAPIError {
915
- /**
916
- * **Do not use this constructor!**
917
- *
918
- * Meant for internal use only.
919
- *
920
- * @remarks
921
- * This class is only meant to be constructed within the driver. This constructor is
922
- * not subject to semantic versioning compatibility guarantees and may change at any time.
923
- *
924
- * @public
925
- **/
926
- constructor() {
927
- super("Operation interrupted because client was closed");
928
- }
929
- get name() {
930
- return "MongoClientClosedError";
931
- }
932
- };
933
- exports.MongoClientClosedError = MongoClientClosedError;
934
- /**
935
- * An error indicating an issue with the network, including TCP errors and timeouts.
936
- * @public
937
- * @category Error
938
- */
939
- var MongoNetworkError = class extends MongoError {
940
- /**
941
- * **Do not use this constructor!**
942
- *
943
- * Meant for internal use only.
944
- *
945
- * @remarks
946
- * This class is only meant to be constructed within the driver. This constructor is
947
- * not subject to semantic versioning compatibility guarantees and may change at any time.
948
- *
949
- * @public
950
- **/
951
- constructor(message, options) {
952
- super(message, { cause: options?.cause });
953
- this.beforeHandshake = !!options?.beforeHandshake;
954
- }
955
- get name() {
956
- return "MongoNetworkError";
957
- }
958
- };
959
- exports.MongoNetworkError = MongoNetworkError;
960
- /**
961
- * An error indicating a network timeout occurred
962
- * @public
963
- * @category Error
964
- *
965
- * @privateRemarks
966
- * mongodb-client-encryption has a dependency on this error with an instanceof check
967
- */
968
- var MongoNetworkTimeoutError = class extends MongoNetworkError {
969
- /**
970
- * **Do not use this constructor!**
971
- *
972
- * Meant for internal use only.
973
- *
974
- * @remarks
975
- * This class is only meant to be constructed within the driver. This constructor is
976
- * not subject to semantic versioning compatibility guarantees and may change at any time.
977
- *
978
- * @public
979
- **/
980
- constructor(message, options) {
981
- super(message, options);
982
- }
983
- get name() {
984
- return "MongoNetworkTimeoutError";
985
- }
986
- };
987
- exports.MongoNetworkTimeoutError = MongoNetworkTimeoutError;
988
- /**
989
- * An error used when attempting to parse a value (like a connection string)
990
- * @public
991
- * @category Error
992
- */
993
- var MongoParseError = class extends MongoDriverError {
994
- /**
995
- * **Do not use this constructor!**
996
- *
997
- * Meant for internal use only.
998
- *
999
- * @remarks
1000
- * This class is only meant to be constructed within the driver. This constructor is
1001
- * not subject to semantic versioning compatibility guarantees and may change at any time.
1002
- *
1003
- * @public
1004
- **/
1005
- constructor(message) {
1006
- super(message);
1007
- }
1008
- get name() {
1009
- return "MongoParseError";
1010
- }
1011
- };
1012
- exports.MongoParseError = MongoParseError;
1013
- /**
1014
- * An error generated when the user supplies malformed or unexpected arguments
1015
- * or when a required argument or field is not provided.
1016
- *
1017
- *
1018
- * @public
1019
- * @category Error
1020
- */
1021
- var MongoInvalidArgumentError = class extends MongoAPIError {
1022
- /**
1023
- * **Do not use this constructor!**
1024
- *
1025
- * Meant for internal use only.
1026
- *
1027
- * @remarks
1028
- * This class is only meant to be constructed within the driver. This constructor is
1029
- * not subject to semantic versioning compatibility guarantees and may change at any time.
1030
- *
1031
- * @public
1032
- **/
1033
- constructor(message, options) {
1034
- super(message, options);
1035
- }
1036
- get name() {
1037
- return "MongoInvalidArgumentError";
1038
- }
1039
- };
1040
- exports.MongoInvalidArgumentError = MongoInvalidArgumentError;
1041
- /**
1042
- * An error generated when a feature that is not enabled or allowed for the current server
1043
- * configuration is used
1044
- *
1045
- *
1046
- * @public
1047
- * @category Error
1048
- */
1049
- var MongoCompatibilityError = class extends MongoAPIError {
1050
- /**
1051
- * **Do not use this constructor!**
1052
- *
1053
- * Meant for internal use only.
1054
- *
1055
- * @remarks
1056
- * This class is only meant to be constructed within the driver. This constructor is
1057
- * not subject to semantic versioning compatibility guarantees and may change at any time.
1058
- *
1059
- * @public
1060
- **/
1061
- constructor(message) {
1062
- super(message);
1063
- }
1064
- get name() {
1065
- return "MongoCompatibilityError";
1066
- }
1067
- };
1068
- exports.MongoCompatibilityError = MongoCompatibilityError;
1069
- /**
1070
- * An error generated when the user fails to provide authentication credentials before attempting
1071
- * to connect to a mongo server instance.
1072
- *
1073
- *
1074
- * @public
1075
- * @category Error
1076
- */
1077
- var MongoMissingCredentialsError = class extends MongoAPIError {
1078
- /**
1079
- * **Do not use this constructor!**
1080
- *
1081
- * Meant for internal use only.
1082
- *
1083
- * @remarks
1084
- * This class is only meant to be constructed within the driver. This constructor is
1085
- * not subject to semantic versioning compatibility guarantees and may change at any time.
1086
- *
1087
- * @public
1088
- **/
1089
- constructor(message) {
1090
- super(message);
1091
- }
1092
- get name() {
1093
- return "MongoMissingCredentialsError";
1094
- }
1095
- };
1096
- exports.MongoMissingCredentialsError = MongoMissingCredentialsError;
1097
- /**
1098
- * An error generated when a required module or dependency is not present in the local environment
1099
- *
1100
- * @public
1101
- * @category Error
1102
- */
1103
- var MongoMissingDependencyError = class extends MongoAPIError {
1104
- /**
1105
- * **Do not use this constructor!**
1106
- *
1107
- * Meant for internal use only.
1108
- *
1109
- * @remarks
1110
- * This class is only meant to be constructed within the driver. This constructor is
1111
- * not subject to semantic versioning compatibility guarantees and may change at any time.
1112
- *
1113
- * @public
1114
- **/
1115
- constructor(message, options) {
1116
- super(message, options);
1117
- this.dependencyName = options.dependencyName;
1118
- }
1119
- get name() {
1120
- return "MongoMissingDependencyError";
1121
- }
1122
- };
1123
- exports.MongoMissingDependencyError = MongoMissingDependencyError;
1124
- /**
1125
- * An error signifying a general system issue
1126
- * @public
1127
- * @category Error
1128
- */
1129
- var MongoSystemError = class extends MongoError {
1130
- /**
1131
- * **Do not use this constructor!**
1132
- *
1133
- * Meant for internal use only.
1134
- *
1135
- * @remarks
1136
- * This class is only meant to be constructed within the driver. This constructor is
1137
- * not subject to semantic versioning compatibility guarantees and may change at any time.
1138
- *
1139
- * @public
1140
- **/
1141
- constructor(message, reason) {
1142
- if (reason && reason.error) super(MongoError.buildErrorMessage(reason.error.message || reason.error), { cause: reason.error });
1143
- else super(message);
1144
- if (reason) this.reason = reason;
1145
- this.code = reason.error?.code;
1146
- }
1147
- get name() {
1148
- return "MongoSystemError";
1149
- }
1150
- };
1151
- exports.MongoSystemError = MongoSystemError;
1152
- /**
1153
- * An error signifying a client-side server selection error
1154
- * @public
1155
- * @category Error
1156
- */
1157
- var MongoServerSelectionError = class extends MongoSystemError {
1158
- /**
1159
- * **Do not use this constructor!**
1160
- *
1161
- * Meant for internal use only.
1162
- *
1163
- * @remarks
1164
- * This class is only meant to be constructed within the driver. This constructor is
1165
- * not subject to semantic versioning compatibility guarantees and may change at any time.
1166
- *
1167
- * @public
1168
- **/
1169
- constructor(message, reason) {
1170
- super(message, reason);
1171
- }
1172
- get name() {
1173
- return "MongoServerSelectionError";
1174
- }
1175
- };
1176
- exports.MongoServerSelectionError = MongoServerSelectionError;
1177
- /**
1178
- * An error thrown when the server reports a writeConcernError
1179
- * @public
1180
- * @category Error
1181
- */
1182
- var MongoWriteConcernError = class extends MongoServerError {
1183
- /**
1184
- * **Do not use this constructor!**
1185
- *
1186
- * Meant for internal use only.
1187
- *
1188
- * @remarks
1189
- * This class is only meant to be constructed within the driver. This constructor is
1190
- * not subject to semantic versioning compatibility guarantees and may change at any time.
1191
- *
1192
- * @public
1193
- **/
1194
- constructor(result) {
1195
- super({
1196
- ...result.writeConcernError,
1197
- ...result
1198
- });
1199
- this.errInfo = result.writeConcernError.errInfo;
1200
- this.result = result;
1201
- }
1202
- get name() {
1203
- return "MongoWriteConcernError";
1204
- }
1205
- };
1206
- exports.MongoWriteConcernError = MongoWriteConcernError;
1207
- const RETRYABLE_READ_ERROR_CODES = new Set([
1208
- exports.MONGODB_ERROR_CODES.HostUnreachable,
1209
- exports.MONGODB_ERROR_CODES.HostNotFound,
1210
- exports.MONGODB_ERROR_CODES.NetworkTimeout,
1211
- exports.MONGODB_ERROR_CODES.ShutdownInProgress,
1212
- exports.MONGODB_ERROR_CODES.PrimarySteppedDown,
1213
- exports.MONGODB_ERROR_CODES.SocketException,
1214
- exports.MONGODB_ERROR_CODES.NotWritablePrimary,
1215
- exports.MONGODB_ERROR_CODES.InterruptedAtShutdown,
1216
- exports.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,
1217
- exports.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,
1218
- exports.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,
1219
- exports.MONGODB_ERROR_CODES.ExceededTimeLimit,
1220
- exports.MONGODB_ERROR_CODES.ReadConcernMajorityNotAvailableYet
1221
- ]);
1222
- const RETRYABLE_WRITE_ERROR_CODES = RETRYABLE_READ_ERROR_CODES;
1223
- function needsRetryableWriteLabel(error, maxWireVersion, serverType) {
1224
- if (error instanceof MongoNetworkError) return true;
1225
- if (error instanceof MongoError) {
1226
- if ((maxWireVersion >= 9 || isRetryableWriteError(error)) && !error.hasErrorLabel(exports.MongoErrorLabel.HandshakeError)) return false;
1227
- }
1228
- if (error instanceof MongoWriteConcernError) {
1229
- if (serverType === "Mongos" && maxWireVersion < 9) return RETRYABLE_WRITE_ERROR_CODES.has(error.result.code ?? 0);
1230
- const code = error.result.writeConcernError.code ?? Number(error.code);
1231
- return RETRYABLE_WRITE_ERROR_CODES.has(Number.isNaN(code) ? 0 : code);
1232
- }
1233
- if (error instanceof MongoError) return RETRYABLE_WRITE_ERROR_CODES.has(Number(error.code));
1234
- if (exports.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(error.message)) return true;
1235
- if (exports.NODE_IS_RECOVERING_ERROR_MESSAGE.test(error.message)) return true;
1236
- return false;
1237
- }
1238
- function isRetryableWriteError(error) {
1239
- return error.hasErrorLabel(exports.MongoErrorLabel.RetryableWriteError) || error.hasErrorLabel(exports.MongoErrorLabel.PoolRequstedRetry);
1240
- }
1241
- /** Determines whether an error is something the driver should attempt to retry */
1242
- function isRetryableReadError(error) {
1243
- if (typeof error.code === "number" ? RETRYABLE_READ_ERROR_CODES.has(error.code) : false) return true;
1244
- if (error instanceof MongoNetworkError) return true;
1245
- if (exports.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(error.message)) return true;
1246
- if (exports.NODE_IS_RECOVERING_ERROR_MESSAGE.test(error.message)) return true;
1247
- return false;
1248
- }
1249
- const SDAM_RECOVERING_CODES = new Set([
1250
- exports.MONGODB_ERROR_CODES.ShutdownInProgress,
1251
- exports.MONGODB_ERROR_CODES.PrimarySteppedDown,
1252
- exports.MONGODB_ERROR_CODES.InterruptedAtShutdown,
1253
- exports.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,
1254
- exports.MONGODB_ERROR_CODES.NotPrimaryOrSecondary
1255
- ]);
1256
- const SDAM_NOT_PRIMARY_CODES = new Set([
1257
- exports.MONGODB_ERROR_CODES.NotWritablePrimary,
1258
- exports.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,
1259
- exports.MONGODB_ERROR_CODES.LegacyNotPrimary
1260
- ]);
1261
- const SDAM_NODE_SHUTTING_DOWN_ERROR_CODES = new Set([exports.MONGODB_ERROR_CODES.InterruptedAtShutdown, exports.MONGODB_ERROR_CODES.ShutdownInProgress]);
1262
- function isRecoveringError(err) {
1263
- if (typeof err.code === "number") return SDAM_RECOVERING_CODES.has(err.code);
1264
- return exports.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE.test(err.message) || exports.NODE_IS_RECOVERING_ERROR_MESSAGE.test(err.message);
1265
- }
1266
- function isNotWritablePrimaryError(err) {
1267
- if (typeof err.code === "number") return SDAM_NOT_PRIMARY_CODES.has(err.code);
1268
- if (isRecoveringError(err)) return false;
1269
- return exports.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(err.message);
1270
- }
1271
- function isNodeShuttingDownError(err) {
1272
- return !!(typeof err.code === "number" && SDAM_NODE_SHUTTING_DOWN_ERROR_CODES.has(err.code));
1273
- }
1274
- /**
1275
- * Determines whether SDAM can recover from a given error. If it cannot
1276
- * then the pool will be cleared, and server state will completely reset
1277
- * locally.
1278
- *
1279
- * @see https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md#not-writable-primary-and-node-is-recovering
1280
- */
1281
- function isSDAMUnrecoverableError(error) {
1282
- if (error instanceof MongoParseError || error == null) return true;
1283
- return isRecoveringError(error) || isNotWritablePrimaryError(error);
1284
- }
1285
- function isNetworkTimeoutError(err) {
1286
- return !!(err instanceof MongoNetworkError && err.message.match(/timed out/));
1287
- }
1288
- function isResumableError(error, wireVersion) {
1289
- if (error == null || !(error instanceof MongoError)) return false;
1290
- if (error instanceof MongoNetworkError) return true;
1291
- if (error instanceof MongoServerSelectionError) return true;
1292
- if (wireVersion != null && wireVersion >= 9) {
1293
- if (error.code === exports.MONGODB_ERROR_CODES.CursorNotFound) return true;
1294
- return error.hasErrorLabel(exports.MongoErrorLabel.ResumableChangeStreamError);
1295
- }
1296
- if (typeof error.code === "number") return exports.GET_MORE_RESUMABLE_CODES.has(error.code);
1297
- return false;
1298
- }
1299
- }));
1300
-
1301
- //#endregion
1302
- export default require_error();
1303
-
1304
- export { require_error };
1305
- //# sourceMappingURL=error.mjs.map