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,483 +0,0 @@
1
- import { __commonJSMin, __require } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_error } from "../error.mjs";
3
- import { require_constants } from "../constants.mjs";
4
- import { require_utils } from "../utils.mjs";
5
- import { require_timeout } from "../timeout.mjs";
6
- import { require_mongo_types } from "../mongo_types.mjs";
7
- import { require_metrics } from "./metrics.mjs";
8
- import { require_connection } from "./connection.mjs";
9
- import { require_connect } from "./connect.mjs";
10
- import { require_connection_pool_events } from "./connection_pool_events.mjs";
11
- import { require_errors } from "./errors.mjs";
12
-
13
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.js
14
- var require_connection_pool = /* @__PURE__ */ __commonJSMin(((exports) => {
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ConnectionPool = exports.PoolState = void 0;
17
- const timers_1 = __require("timers");
18
- const constants_1 = require_constants();
19
- const error_1 = require_error();
20
- const mongo_types_1 = require_mongo_types();
21
- const timeout_1 = require_timeout();
22
- const utils_1 = require_utils();
23
- const connect_1 = require_connect();
24
- const connection_1 = require_connection();
25
- const connection_pool_events_1 = require_connection_pool_events();
26
- const errors_1 = require_errors();
27
- const metrics_1 = require_metrics();
28
- /** @internal */
29
- exports.PoolState = Object.freeze({
30
- paused: "paused",
31
- ready: "ready",
32
- closed: "closed"
33
- });
34
- /**
35
- * A pool of connections which dynamically resizes, and emit events related to pool activity
36
- * @internal
37
- */
38
- var ConnectionPool = class ConnectionPool extends mongo_types_1.TypedEventEmitter {
39
- constructor(server, options) {
40
- super();
41
- this.on("error", utils_1.noop);
42
- this.options = Object.freeze({
43
- connectionType: connection_1.Connection,
44
- ...options,
45
- maxPoolSize: options.maxPoolSize ?? 100,
46
- minPoolSize: options.minPoolSize ?? 0,
47
- maxConnecting: options.maxConnecting ?? 2,
48
- maxIdleTimeMS: options.maxIdleTimeMS ?? 0,
49
- waitQueueTimeoutMS: options.waitQueueTimeoutMS ?? 0,
50
- minPoolSizeCheckFrequencyMS: options.minPoolSizeCheckFrequencyMS ?? 100,
51
- autoEncrypter: options.autoEncrypter
52
- });
53
- if (this.options.minPoolSize > this.options.maxPoolSize) throw new error_1.MongoInvalidArgumentError("Connection pool minimum size must not be greater than maximum pool size");
54
- this.poolState = exports.PoolState.paused;
55
- this.server = server;
56
- this.connections = new utils_1.List();
57
- this.pending = 0;
58
- this.checkedOut = /* @__PURE__ */ new Set();
59
- this.minPoolSizeTimer = void 0;
60
- this.generation = 0;
61
- this.serviceGenerations = /* @__PURE__ */ new Map();
62
- this.connectionCounter = (0, utils_1.makeCounter)(1);
63
- this.cancellationToken = new mongo_types_1.CancellationToken();
64
- this.cancellationToken.setMaxListeners(Infinity);
65
- this.waitQueue = new utils_1.List();
66
- this.metrics = new metrics_1.ConnectionPoolMetrics();
67
- this.processingWaitQueue = false;
68
- this.mongoLogger = this.server.topology.client?.mongoLogger;
69
- this.component = "connection";
70
- process.nextTick(() => {
71
- this.emitAndLog(ConnectionPool.CONNECTION_POOL_CREATED, new connection_pool_events_1.ConnectionPoolCreatedEvent(this));
72
- });
73
- }
74
- /** The address of the endpoint the pool is connected to */
75
- get address() {
76
- return this.options.hostAddress.toString();
77
- }
78
- /**
79
- * Check if the pool has been closed
80
- *
81
- * TODO(NODE-3263): We can remove this property once shell no longer needs it
82
- */
83
- get closed() {
84
- return this.poolState === exports.PoolState.closed;
85
- }
86
- /** An integer expressing how many total connections (available + pending + in use) the pool currently has */
87
- get totalConnectionCount() {
88
- return this.availableConnectionCount + this.pendingConnectionCount + this.currentCheckedOutCount;
89
- }
90
- /** An integer expressing how many connections are currently available in the pool. */
91
- get availableConnectionCount() {
92
- return this.connections.length;
93
- }
94
- get pendingConnectionCount() {
95
- return this.pending;
96
- }
97
- get currentCheckedOutCount() {
98
- return this.checkedOut.size;
99
- }
100
- get waitQueueSize() {
101
- return this.waitQueue.length;
102
- }
103
- get loadBalanced() {
104
- return this.options.loadBalanced;
105
- }
106
- get serverError() {
107
- return this.server.description.error;
108
- }
109
- /**
110
- * This is exposed ONLY for use in mongosh, to enable
111
- * killing all connections if a user quits the shell with
112
- * operations in progress.
113
- *
114
- * This property may be removed as a part of NODE-3263.
115
- */
116
- get checkedOutConnections() {
117
- return this.checkedOut;
118
- }
119
- /**
120
- * Get the metrics information for the pool when a wait queue timeout occurs.
121
- */
122
- waitQueueErrorMetrics() {
123
- return this.metrics.info(this.options.maxPoolSize);
124
- }
125
- /**
126
- * Set the pool state to "ready"
127
- */
128
- ready() {
129
- if (this.poolState !== exports.PoolState.paused) return;
130
- this.poolState = exports.PoolState.ready;
131
- this.emitAndLog(ConnectionPool.CONNECTION_POOL_READY, new connection_pool_events_1.ConnectionPoolReadyEvent(this));
132
- (0, timers_1.clearTimeout)(this.minPoolSizeTimer);
133
- this.ensureMinPoolSize();
134
- }
135
- /**
136
- * Check a connection out of this pool. The connection will continue to be tracked, but no reference to it
137
- * will be held by the pool. This means that if a connection is checked out it MUST be checked back in or
138
- * explicitly destroyed by the new owner.
139
- */
140
- async checkOut(options) {
141
- const checkoutTime = (0, utils_1.now)();
142
- this.emitAndLog(ConnectionPool.CONNECTION_CHECK_OUT_STARTED, new connection_pool_events_1.ConnectionCheckOutStartedEvent(this));
143
- const { promise, resolve, reject } = (0, utils_1.promiseWithResolvers)();
144
- const timeout = options.timeoutContext.connectionCheckoutTimeout;
145
- const waitQueueMember = {
146
- resolve,
147
- reject,
148
- cancelled: false,
149
- checkoutTime
150
- };
151
- const abortListener = (0, utils_1.addAbortListener)(options.signal, function() {
152
- waitQueueMember.cancelled = true;
153
- reject(this.reason);
154
- });
155
- this.waitQueue.push(waitQueueMember);
156
- process.nextTick(() => this.processWaitQueue());
157
- try {
158
- timeout?.throwIfExpired();
159
- return await (timeout ? Promise.race([promise, timeout]) : promise);
160
- } catch (error) {
161
- if (timeout_1.TimeoutError.is(error)) {
162
- timeout?.clear();
163
- waitQueueMember.cancelled = true;
164
- this.emitAndLog(ConnectionPool.CONNECTION_CHECK_OUT_FAILED, new connection_pool_events_1.ConnectionCheckOutFailedEvent(this, "timeout", waitQueueMember.checkoutTime));
165
- const timeoutError = new errors_1.WaitQueueTimeoutError(this.loadBalanced ? this.waitQueueErrorMetrics() : "Timed out while checking out a connection from connection pool", this.address);
166
- if (options.timeoutContext.csotEnabled()) throw new error_1.MongoOperationTimeoutError("Timed out during connection checkout", { cause: timeoutError });
167
- throw timeoutError;
168
- }
169
- throw error;
170
- } finally {
171
- abortListener?.[utils_1.kDispose]();
172
- timeout?.clear();
173
- }
174
- }
175
- /**
176
- * Check a connection into the pool.
177
- *
178
- * @param connection - The connection to check in
179
- */
180
- checkIn(connection) {
181
- if (!this.checkedOut.has(connection)) return;
182
- const poolClosed = this.closed;
183
- const stale = this.connectionIsStale(connection);
184
- const willDestroy = !!(poolClosed || stale || connection.closed);
185
- if (!willDestroy) {
186
- connection.markAvailable();
187
- this.connections.unshift(connection);
188
- }
189
- this.checkedOut.delete(connection);
190
- this.emitAndLog(ConnectionPool.CONNECTION_CHECKED_IN, new connection_pool_events_1.ConnectionCheckedInEvent(this, connection));
191
- if (willDestroy) {
192
- const reason = connection.closed ? "error" : poolClosed ? "poolClosed" : "stale";
193
- this.destroyConnection(connection, reason);
194
- }
195
- process.nextTick(() => this.processWaitQueue());
196
- }
197
- /**
198
- * Clear the pool
199
- *
200
- * Pool reset is handled by incrementing the pool's generation count. Any existing connection of a
201
- * previous generation will eventually be pruned during subsequent checkouts.
202
- */
203
- clear(options = {}) {
204
- if (this.closed) return;
205
- if (this.loadBalanced) {
206
- const { serviceId } = options;
207
- if (!serviceId) throw new error_1.MongoRuntimeError("ConnectionPool.clear() called in load balanced mode with no serviceId.");
208
- const sid = serviceId.toHexString();
209
- const generation = this.serviceGenerations.get(sid);
210
- if (generation == null) throw new error_1.MongoRuntimeError("Service generations are required in load balancer mode.");
211
- else this.serviceGenerations.set(sid, generation + 1);
212
- this.emitAndLog(ConnectionPool.CONNECTION_POOL_CLEARED, new connection_pool_events_1.ConnectionPoolClearedEvent(this, { serviceId }));
213
- return;
214
- }
215
- const interruptInUseConnections = options.interruptInUseConnections ?? false;
216
- const oldGeneration = this.generation;
217
- this.generation += 1;
218
- const alreadyPaused = this.poolState === exports.PoolState.paused;
219
- this.poolState = exports.PoolState.paused;
220
- this.clearMinPoolSizeTimer();
221
- if (!alreadyPaused) this.emitAndLog(ConnectionPool.CONNECTION_POOL_CLEARED, new connection_pool_events_1.ConnectionPoolClearedEvent(this, { interruptInUseConnections }));
222
- if (interruptInUseConnections) process.nextTick(() => this.interruptInUseConnections(oldGeneration));
223
- this.processWaitQueue();
224
- }
225
- /**
226
- * Closes all stale in-use connections in the pool with a resumable PoolClearedOnNetworkError.
227
- *
228
- * Only connections where `connection.generation <= minGeneration` are killed.
229
- */
230
- interruptInUseConnections(minGeneration) {
231
- for (const connection of this.checkedOut) if (connection.generation <= minGeneration) connection.onError(new errors_1.PoolClearedOnNetworkError(this));
232
- }
233
- /** For MongoClient.close() procedures */
234
- closeCheckedOutConnections() {
235
- for (const conn of this.checkedOut) conn.onError(new error_1.MongoClientClosedError());
236
- }
237
- /** Close the pool */
238
- close() {
239
- if (this.closed) return;
240
- this.cancellationToken.emit("cancel");
241
- if (typeof this.connectionCounter.return === "function") this.connectionCounter.return(void 0);
242
- this.poolState = exports.PoolState.closed;
243
- this.clearMinPoolSizeTimer();
244
- this.processWaitQueue();
245
- for (const conn of this.connections) {
246
- this.emitAndLog(ConnectionPool.CONNECTION_CLOSED, new connection_pool_events_1.ConnectionClosedEvent(this, conn, "poolClosed"));
247
- conn.destroy();
248
- }
249
- this.connections.clear();
250
- this.emitAndLog(ConnectionPool.CONNECTION_POOL_CLOSED, new connection_pool_events_1.ConnectionPoolClosedEvent(this));
251
- }
252
- /**
253
- * @internal
254
- * Reauthenticate a connection
255
- */
256
- async reauthenticate(connection) {
257
- const authContext = connection.authContext;
258
- if (!authContext) throw new error_1.MongoRuntimeError("No auth context found on connection.");
259
- const credentials = authContext.credentials;
260
- if (!credentials) throw new error_1.MongoMissingCredentialsError("Connection is missing credentials when asked to reauthenticate");
261
- const resolvedCredentials = credentials.resolveAuthMechanism(connection.hello);
262
- const provider = this.server.topology.client.s.authProviders.getOrCreateProvider(resolvedCredentials.mechanism, resolvedCredentials.mechanismProperties);
263
- if (!provider) throw new error_1.MongoMissingCredentialsError(`Reauthenticate failed due to no auth provider for ${credentials.mechanism}`);
264
- await provider.reauth(authContext);
265
- }
266
- /** Clear the min pool size timer */
267
- clearMinPoolSizeTimer() {
268
- const minPoolSizeTimer = this.minPoolSizeTimer;
269
- if (minPoolSizeTimer) (0, timers_1.clearTimeout)(minPoolSizeTimer);
270
- }
271
- destroyConnection(connection, reason) {
272
- this.emitAndLog(ConnectionPool.CONNECTION_CLOSED, new connection_pool_events_1.ConnectionClosedEvent(this, connection, reason));
273
- connection.destroy();
274
- }
275
- connectionIsStale(connection) {
276
- const serviceId = connection.serviceId;
277
- if (this.loadBalanced && serviceId) {
278
- const sid = serviceId.toHexString();
279
- const generation = this.serviceGenerations.get(sid);
280
- return connection.generation !== generation;
281
- }
282
- return connection.generation !== this.generation;
283
- }
284
- connectionIsIdle(connection) {
285
- return !!(this.options.maxIdleTimeMS && connection.idleTime > this.options.maxIdleTimeMS);
286
- }
287
- /**
288
- * Destroys a connection if the connection is perished.
289
- *
290
- * @returns `true` if the connection was destroyed, `false` otherwise.
291
- */
292
- destroyConnectionIfPerished(connection) {
293
- const isStale = this.connectionIsStale(connection);
294
- const isIdle = this.connectionIsIdle(connection);
295
- if (!isStale && !isIdle && !connection.closed) return false;
296
- const reason = connection.closed ? "error" : isStale ? "stale" : "idle";
297
- this.destroyConnection(connection, reason);
298
- return true;
299
- }
300
- createConnection(callback) {
301
- const connectOptions = {
302
- ...this.options,
303
- id: this.connectionCounter.next().value,
304
- generation: this.generation,
305
- cancellationToken: this.cancellationToken,
306
- mongoLogger: this.mongoLogger,
307
- authProviders: this.server.topology.client.s.authProviders,
308
- extendedMetadata: this.server.topology.client.options.extendedMetadata
309
- };
310
- this.pending++;
311
- const connectionCreatedTime = (0, utils_1.now)();
312
- this.emitAndLog(ConnectionPool.CONNECTION_CREATED, new connection_pool_events_1.ConnectionCreatedEvent(this, { id: connectOptions.id }));
313
- (0, connect_1.connect)(connectOptions).then((connection) => {
314
- if (this.poolState !== exports.PoolState.ready) {
315
- this.pending--;
316
- connection.destroy();
317
- callback(this.closed ? new errors_1.PoolClosedError(this) : new errors_1.PoolClearedError(this));
318
- return;
319
- }
320
- for (const event of [...constants_1.APM_EVENTS, connection_1.Connection.CLUSTER_TIME_RECEIVED]) connection.on(event, (e) => this.emit(event, e));
321
- if (this.loadBalanced) {
322
- connection.on(connection_1.Connection.PINNED, (pinType) => this.metrics.markPinned(pinType));
323
- connection.on(connection_1.Connection.UNPINNED, (pinType) => this.metrics.markUnpinned(pinType));
324
- const serviceId = connection.serviceId;
325
- if (serviceId) {
326
- let generation;
327
- const sid = serviceId.toHexString();
328
- if (generation = this.serviceGenerations.get(sid)) connection.generation = generation;
329
- else {
330
- this.serviceGenerations.set(sid, 0);
331
- connection.generation = 0;
332
- }
333
- }
334
- }
335
- connection.markAvailable();
336
- this.emitAndLog(ConnectionPool.CONNECTION_READY, new connection_pool_events_1.ConnectionReadyEvent(this, connection, connectionCreatedTime));
337
- this.pending--;
338
- callback(void 0, connection);
339
- }, (error) => {
340
- this.pending--;
341
- this.server.handleError(error);
342
- this.emitAndLog(ConnectionPool.CONNECTION_CLOSED, new connection_pool_events_1.ConnectionClosedEvent(this, {
343
- id: connectOptions.id,
344
- serviceId: void 0
345
- }, "error", error));
346
- if (error instanceof error_1.MongoNetworkError || error instanceof error_1.MongoServerError) error.connectionGeneration = connectOptions.generation;
347
- callback(error ?? new error_1.MongoRuntimeError("Connection creation failed without error"));
348
- });
349
- }
350
- ensureMinPoolSize() {
351
- const minPoolSize = this.options.minPoolSize;
352
- if (this.poolState !== exports.PoolState.ready) return;
353
- this.connections.prune((connection) => this.destroyConnectionIfPerished(connection));
354
- if (this.totalConnectionCount < minPoolSize && this.pendingConnectionCount < this.options.maxConnecting) this.createConnection((err, connection) => {
355
- if (!err && connection) {
356
- this.connections.push(connection);
357
- process.nextTick(() => this.processWaitQueue());
358
- }
359
- if (this.poolState === exports.PoolState.ready) {
360
- (0, timers_1.clearTimeout)(this.minPoolSizeTimer);
361
- this.minPoolSizeTimer = (0, timers_1.setTimeout)(() => this.ensureMinPoolSize(), this.options.minPoolSizeCheckFrequencyMS);
362
- }
363
- });
364
- else {
365
- (0, timers_1.clearTimeout)(this.minPoolSizeTimer);
366
- this.minPoolSizeTimer = (0, timers_1.setTimeout)(() => this.ensureMinPoolSize(), this.options.minPoolSizeCheckFrequencyMS);
367
- }
368
- }
369
- processWaitQueue() {
370
- if (this.processingWaitQueue) return;
371
- this.processingWaitQueue = true;
372
- while (this.waitQueueSize) {
373
- const waitQueueMember = this.waitQueue.first();
374
- if (!waitQueueMember) {
375
- this.waitQueue.shift();
376
- continue;
377
- }
378
- if (waitQueueMember.cancelled) {
379
- this.waitQueue.shift();
380
- continue;
381
- }
382
- if (this.poolState !== exports.PoolState.ready) {
383
- const reason = this.closed ? "poolClosed" : "connectionError";
384
- const error = this.closed ? new errors_1.PoolClosedError(this) : new errors_1.PoolClearedError(this);
385
- this.emitAndLog(ConnectionPool.CONNECTION_CHECK_OUT_FAILED, new connection_pool_events_1.ConnectionCheckOutFailedEvent(this, reason, waitQueueMember.checkoutTime, error));
386
- this.waitQueue.shift();
387
- waitQueueMember.reject(error);
388
- continue;
389
- }
390
- if (!this.availableConnectionCount) break;
391
- const connection = this.connections.shift();
392
- if (!connection) break;
393
- if (!this.destroyConnectionIfPerished(connection)) {
394
- this.checkedOut.add(connection);
395
- this.emitAndLog(ConnectionPool.CONNECTION_CHECKED_OUT, new connection_pool_events_1.ConnectionCheckedOutEvent(this, connection, waitQueueMember.checkoutTime));
396
- this.waitQueue.shift();
397
- waitQueueMember.resolve(connection);
398
- }
399
- }
400
- const { maxPoolSize, maxConnecting } = this.options;
401
- while (this.waitQueueSize > 0 && this.pendingConnectionCount < maxConnecting && (maxPoolSize === 0 || this.totalConnectionCount < maxPoolSize)) {
402
- const waitQueueMember = this.waitQueue.shift();
403
- if (!waitQueueMember || waitQueueMember.cancelled) continue;
404
- this.createConnection((err, connection) => {
405
- if (waitQueueMember.cancelled) {
406
- if (!err && connection) this.connections.push(connection);
407
- } else if (err) {
408
- this.emitAndLog(ConnectionPool.CONNECTION_CHECK_OUT_FAILED, new connection_pool_events_1.ConnectionCheckOutFailedEvent(this, "connectionError", waitQueueMember.checkoutTime, err));
409
- waitQueueMember.reject(err);
410
- } else if (connection) {
411
- this.checkedOut.add(connection);
412
- this.emitAndLog(ConnectionPool.CONNECTION_CHECKED_OUT, new connection_pool_events_1.ConnectionCheckedOutEvent(this, connection, waitQueueMember.checkoutTime));
413
- waitQueueMember.resolve(connection);
414
- }
415
- process.nextTick(() => this.processWaitQueue());
416
- });
417
- }
418
- this.processingWaitQueue = false;
419
- }
420
- };
421
- exports.ConnectionPool = ConnectionPool;
422
- /**
423
- * Emitted when the connection pool is created.
424
- * @event
425
- */
426
- ConnectionPool.CONNECTION_POOL_CREATED = constants_1.CONNECTION_POOL_CREATED;
427
- /**
428
- * Emitted once when the connection pool is closed
429
- * @event
430
- */
431
- ConnectionPool.CONNECTION_POOL_CLOSED = constants_1.CONNECTION_POOL_CLOSED;
432
- /**
433
- * Emitted each time the connection pool is cleared and it's generation incremented
434
- * @event
435
- */
436
- ConnectionPool.CONNECTION_POOL_CLEARED = constants_1.CONNECTION_POOL_CLEARED;
437
- /**
438
- * Emitted each time the connection pool is marked ready
439
- * @event
440
- */
441
- ConnectionPool.CONNECTION_POOL_READY = constants_1.CONNECTION_POOL_READY;
442
- /**
443
- * Emitted when a connection is created.
444
- * @event
445
- */
446
- ConnectionPool.CONNECTION_CREATED = constants_1.CONNECTION_CREATED;
447
- /**
448
- * Emitted when a connection becomes established, and is ready to use
449
- * @event
450
- */
451
- ConnectionPool.CONNECTION_READY = constants_1.CONNECTION_READY;
452
- /**
453
- * Emitted when a connection is closed
454
- * @event
455
- */
456
- ConnectionPool.CONNECTION_CLOSED = constants_1.CONNECTION_CLOSED;
457
- /**
458
- * Emitted when an attempt to check out a connection begins
459
- * @event
460
- */
461
- ConnectionPool.CONNECTION_CHECK_OUT_STARTED = constants_1.CONNECTION_CHECK_OUT_STARTED;
462
- /**
463
- * Emitted when an attempt to check out a connection fails
464
- * @event
465
- */
466
- ConnectionPool.CONNECTION_CHECK_OUT_FAILED = constants_1.CONNECTION_CHECK_OUT_FAILED;
467
- /**
468
- * Emitted each time a connection is successfully checked out of the connection pool
469
- * @event
470
- */
471
- ConnectionPool.CONNECTION_CHECKED_OUT = constants_1.CONNECTION_CHECKED_OUT;
472
- /**
473
- * Emitted each time a connection is successfully checked into the connection pool
474
- * @event
475
- */
476
- ConnectionPool.CONNECTION_CHECKED_IN = constants_1.CONNECTION_CHECKED_IN;
477
- }));
478
-
479
- //#endregion
480
- export default require_connection_pool();
481
-
482
- export { require_connection_pool };
483
- //# sourceMappingURL=connection_pool.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connection_pool.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ConnectionPool = exports.PoolState = void 0;\nconst timers_1 = require(\"timers\");\nconst constants_1 = require(\"../constants\");\nconst error_1 = require(\"../error\");\nconst mongo_types_1 = require(\"../mongo_types\");\nconst timeout_1 = require(\"../timeout\");\nconst utils_1 = require(\"../utils\");\nconst connect_1 = require(\"./connect\");\nconst connection_1 = require(\"./connection\");\nconst connection_pool_events_1 = require(\"./connection_pool_events\");\nconst errors_1 = require(\"./errors\");\nconst metrics_1 = require(\"./metrics\");\n/** @internal */\nexports.PoolState = Object.freeze({\n paused: 'paused',\n ready: 'ready',\n closed: 'closed'\n});\n/**\n * A pool of connections which dynamically resizes, and emit events related to pool activity\n * @internal\n */\nclass ConnectionPool extends mongo_types_1.TypedEventEmitter {\n constructor(server, options) {\n super();\n this.on('error', utils_1.noop);\n this.options = Object.freeze({\n connectionType: connection_1.Connection,\n ...options,\n maxPoolSize: options.maxPoolSize ?? 100,\n minPoolSize: options.minPoolSize ?? 0,\n maxConnecting: options.maxConnecting ?? 2,\n maxIdleTimeMS: options.maxIdleTimeMS ?? 0,\n waitQueueTimeoutMS: options.waitQueueTimeoutMS ?? 0,\n minPoolSizeCheckFrequencyMS: options.minPoolSizeCheckFrequencyMS ?? 100,\n autoEncrypter: options.autoEncrypter\n });\n if (this.options.minPoolSize > this.options.maxPoolSize) {\n throw new error_1.MongoInvalidArgumentError('Connection pool minimum size must not be greater than maximum pool size');\n }\n this.poolState = exports.PoolState.paused;\n this.server = server;\n this.connections = new utils_1.List();\n this.pending = 0;\n this.checkedOut = new Set();\n this.minPoolSizeTimer = undefined;\n this.generation = 0;\n this.serviceGenerations = new Map();\n this.connectionCounter = (0, utils_1.makeCounter)(1);\n this.cancellationToken = new mongo_types_1.CancellationToken();\n this.cancellationToken.setMaxListeners(Infinity);\n this.waitQueue = new utils_1.List();\n this.metrics = new metrics_1.ConnectionPoolMetrics();\n this.processingWaitQueue = false;\n this.mongoLogger = this.server.topology.client?.mongoLogger;\n this.component = 'connection';\n process.nextTick(() => {\n this.emitAndLog(ConnectionPool.CONNECTION_POOL_CREATED, new connection_pool_events_1.ConnectionPoolCreatedEvent(this));\n });\n }\n /** The address of the endpoint the pool is connected to */\n get address() {\n return this.options.hostAddress.toString();\n }\n /**\n * Check if the pool has been closed\n *\n * TODO(NODE-3263): We can remove this property once shell no longer needs it\n */\n get closed() {\n return this.poolState === exports.PoolState.closed;\n }\n /** An integer expressing how many total connections (available + pending + in use) the pool currently has */\n get totalConnectionCount() {\n return (this.availableConnectionCount + this.pendingConnectionCount + this.currentCheckedOutCount);\n }\n /** An integer expressing how many connections are currently available in the pool. */\n get availableConnectionCount() {\n return this.connections.length;\n }\n get pendingConnectionCount() {\n return this.pending;\n }\n get currentCheckedOutCount() {\n return this.checkedOut.size;\n }\n get waitQueueSize() {\n return this.waitQueue.length;\n }\n get loadBalanced() {\n return this.options.loadBalanced;\n }\n get serverError() {\n return this.server.description.error;\n }\n /**\n * This is exposed ONLY for use in mongosh, to enable\n * killing all connections if a user quits the shell with\n * operations in progress.\n *\n * This property may be removed as a part of NODE-3263.\n */\n get checkedOutConnections() {\n return this.checkedOut;\n }\n /**\n * Get the metrics information for the pool when a wait queue timeout occurs.\n */\n waitQueueErrorMetrics() {\n return this.metrics.info(this.options.maxPoolSize);\n }\n /**\n * Set the pool state to \"ready\"\n */\n ready() {\n if (this.poolState !== exports.PoolState.paused) {\n return;\n }\n this.poolState = exports.PoolState.ready;\n this.emitAndLog(ConnectionPool.CONNECTION_POOL_READY, new connection_pool_events_1.ConnectionPoolReadyEvent(this));\n (0, timers_1.clearTimeout)(this.minPoolSizeTimer);\n this.ensureMinPoolSize();\n }\n /**\n * Check a connection out of this pool. The connection will continue to be tracked, but no reference to it\n * will be held by the pool. This means that if a connection is checked out it MUST be checked back in or\n * explicitly destroyed by the new owner.\n */\n async checkOut(options) {\n const checkoutTime = (0, utils_1.now)();\n this.emitAndLog(ConnectionPool.CONNECTION_CHECK_OUT_STARTED, new connection_pool_events_1.ConnectionCheckOutStartedEvent(this));\n const { promise, resolve, reject } = (0, utils_1.promiseWithResolvers)();\n const timeout = options.timeoutContext.connectionCheckoutTimeout;\n const waitQueueMember = {\n resolve,\n reject,\n cancelled: false,\n checkoutTime\n };\n const abortListener = (0, utils_1.addAbortListener)(options.signal, function () {\n waitQueueMember.cancelled = true;\n reject(this.reason);\n });\n this.waitQueue.push(waitQueueMember);\n process.nextTick(() => this.processWaitQueue());\n try {\n timeout?.throwIfExpired();\n return await (timeout ? Promise.race([promise, timeout]) : promise);\n }\n catch (error) {\n if (timeout_1.TimeoutError.is(error)) {\n timeout?.clear();\n waitQueueMember.cancelled = true;\n this.emitAndLog(ConnectionPool.CONNECTION_CHECK_OUT_FAILED, new connection_pool_events_1.ConnectionCheckOutFailedEvent(this, 'timeout', waitQueueMember.checkoutTime));\n const timeoutError = new errors_1.WaitQueueTimeoutError(this.loadBalanced\n ? this.waitQueueErrorMetrics()\n : 'Timed out while checking out a connection from connection pool', this.address);\n if (options.timeoutContext.csotEnabled()) {\n throw new error_1.MongoOperationTimeoutError('Timed out during connection checkout', {\n cause: timeoutError\n });\n }\n throw timeoutError;\n }\n throw error;\n }\n finally {\n abortListener?.[utils_1.kDispose]();\n timeout?.clear();\n }\n }\n /**\n * Check a connection into the pool.\n *\n * @param connection - The connection to check in\n */\n checkIn(connection) {\n if (!this.checkedOut.has(connection)) {\n return;\n }\n const poolClosed = this.closed;\n const stale = this.connectionIsStale(connection);\n const willDestroy = !!(poolClosed || stale || connection.closed);\n if (!willDestroy) {\n connection.markAvailable();\n this.connections.unshift(connection);\n }\n this.checkedOut.delete(connection);\n this.emitAndLog(ConnectionPool.CONNECTION_CHECKED_IN, new connection_pool_events_1.ConnectionCheckedInEvent(this, connection));\n if (willDestroy) {\n const reason = connection.closed ? 'error' : poolClosed ? 'poolClosed' : 'stale';\n this.destroyConnection(connection, reason);\n }\n process.nextTick(() => this.processWaitQueue());\n }\n /**\n * Clear the pool\n *\n * Pool reset is handled by incrementing the pool's generation count. Any existing connection of a\n * previous generation will eventually be pruned during subsequent checkouts.\n */\n clear(options = {}) {\n if (this.closed) {\n return;\n }\n // handle load balanced case\n if (this.loadBalanced) {\n const { serviceId } = options;\n if (!serviceId) {\n throw new error_1.MongoRuntimeError('ConnectionPool.clear() called in load balanced mode with no serviceId.');\n }\n const sid = serviceId.toHexString();\n const generation = this.serviceGenerations.get(sid);\n // Only need to worry if the generation exists, since it should\n // always be there but typescript needs the check.\n if (generation == null) {\n throw new error_1.MongoRuntimeError('Service generations are required in load balancer mode.');\n }\n else {\n // Increment the generation for the service id.\n this.serviceGenerations.set(sid, generation + 1);\n }\n this.emitAndLog(ConnectionPool.CONNECTION_POOL_CLEARED, new connection_pool_events_1.ConnectionPoolClearedEvent(this, { serviceId }));\n return;\n }\n // handle non load-balanced case\n const interruptInUseConnections = options.interruptInUseConnections ?? false;\n const oldGeneration = this.generation;\n this.generation += 1;\n const alreadyPaused = this.poolState === exports.PoolState.paused;\n this.poolState = exports.PoolState.paused;\n this.clearMinPoolSizeTimer();\n if (!alreadyPaused) {\n this.emitAndLog(ConnectionPool.CONNECTION_POOL_CLEARED, new connection_pool_events_1.ConnectionPoolClearedEvent(this, {\n interruptInUseConnections\n }));\n }\n if (interruptInUseConnections) {\n process.nextTick(() => this.interruptInUseConnections(oldGeneration));\n }\n this.processWaitQueue();\n }\n /**\n * Closes all stale in-use connections in the pool with a resumable PoolClearedOnNetworkError.\n *\n * Only connections where `connection.generation <= minGeneration` are killed.\n */\n interruptInUseConnections(minGeneration) {\n for (const connection of this.checkedOut) {\n if (connection.generation <= minGeneration) {\n connection.onError(new errors_1.PoolClearedOnNetworkError(this));\n }\n }\n }\n /** For MongoClient.close() procedures */\n closeCheckedOutConnections() {\n for (const conn of this.checkedOut) {\n conn.onError(new error_1.MongoClientClosedError());\n }\n }\n /** Close the pool */\n close() {\n if (this.closed) {\n return;\n }\n // immediately cancel any in-flight connections\n this.cancellationToken.emit('cancel');\n // end the connection counter\n if (typeof this.connectionCounter.return === 'function') {\n this.connectionCounter.return(undefined);\n }\n this.poolState = exports.PoolState.closed;\n this.clearMinPoolSizeTimer();\n this.processWaitQueue();\n for (const conn of this.connections) {\n this.emitAndLog(ConnectionPool.CONNECTION_CLOSED, new connection_pool_events_1.ConnectionClosedEvent(this, conn, 'poolClosed'));\n conn.destroy();\n }\n this.connections.clear();\n this.emitAndLog(ConnectionPool.CONNECTION_POOL_CLOSED, new connection_pool_events_1.ConnectionPoolClosedEvent(this));\n }\n /**\n * @internal\n * Reauthenticate a connection\n */\n async reauthenticate(connection) {\n const authContext = connection.authContext;\n if (!authContext) {\n throw new error_1.MongoRuntimeError('No auth context found on connection.');\n }\n const credentials = authContext.credentials;\n if (!credentials) {\n throw new error_1.MongoMissingCredentialsError('Connection is missing credentials when asked to reauthenticate');\n }\n const resolvedCredentials = credentials.resolveAuthMechanism(connection.hello);\n const provider = this.server.topology.client.s.authProviders.getOrCreateProvider(resolvedCredentials.mechanism, resolvedCredentials.mechanismProperties);\n if (!provider) {\n throw new error_1.MongoMissingCredentialsError(`Reauthenticate failed due to no auth provider for ${credentials.mechanism}`);\n }\n await provider.reauth(authContext);\n return;\n }\n /** Clear the min pool size timer */\n clearMinPoolSizeTimer() {\n const minPoolSizeTimer = this.minPoolSizeTimer;\n if (minPoolSizeTimer) {\n (0, timers_1.clearTimeout)(minPoolSizeTimer);\n }\n }\n destroyConnection(connection, reason) {\n this.emitAndLog(ConnectionPool.CONNECTION_CLOSED, new connection_pool_events_1.ConnectionClosedEvent(this, connection, reason));\n // destroy the connection\n connection.destroy();\n }\n connectionIsStale(connection) {\n const serviceId = connection.serviceId;\n if (this.loadBalanced && serviceId) {\n const sid = serviceId.toHexString();\n const generation = this.serviceGenerations.get(sid);\n return connection.generation !== generation;\n }\n return connection.generation !== this.generation;\n }\n connectionIsIdle(connection) {\n return !!(this.options.maxIdleTimeMS && connection.idleTime > this.options.maxIdleTimeMS);\n }\n /**\n * Destroys a connection if the connection is perished.\n *\n * @returns `true` if the connection was destroyed, `false` otherwise.\n */\n destroyConnectionIfPerished(connection) {\n const isStale = this.connectionIsStale(connection);\n const isIdle = this.connectionIsIdle(connection);\n if (!isStale && !isIdle && !connection.closed) {\n return false;\n }\n const reason = connection.closed ? 'error' : isStale ? 'stale' : 'idle';\n this.destroyConnection(connection, reason);\n return true;\n }\n createConnection(callback) {\n // Note that metadata and extendedMetadata may have changed on the client but have\n // been frozen here, so we pull the extendedMetadata promise always from the client\n // no mattter what options were set at the construction of the pool.\n const connectOptions = {\n ...this.options,\n id: this.connectionCounter.next().value,\n generation: this.generation,\n cancellationToken: this.cancellationToken,\n mongoLogger: this.mongoLogger,\n authProviders: this.server.topology.client.s.authProviders,\n extendedMetadata: this.server.topology.client.options.extendedMetadata\n };\n this.pending++;\n // This is our version of a \"virtual\" no-I/O connection as the spec requires\n const connectionCreatedTime = (0, utils_1.now)();\n this.emitAndLog(ConnectionPool.CONNECTION_CREATED, new connection_pool_events_1.ConnectionCreatedEvent(this, { id: connectOptions.id }));\n (0, connect_1.connect)(connectOptions).then(connection => {\n // The pool might have closed since we started trying to create a connection\n if (this.poolState !== exports.PoolState.ready) {\n this.pending--;\n connection.destroy();\n callback(this.closed ? new errors_1.PoolClosedError(this) : new errors_1.PoolClearedError(this));\n return;\n }\n // forward all events from the connection to the pool\n for (const event of [...constants_1.APM_EVENTS, connection_1.Connection.CLUSTER_TIME_RECEIVED]) {\n connection.on(event, (e) => this.emit(event, e));\n }\n if (this.loadBalanced) {\n connection.on(connection_1.Connection.PINNED, pinType => this.metrics.markPinned(pinType));\n connection.on(connection_1.Connection.UNPINNED, pinType => this.metrics.markUnpinned(pinType));\n const serviceId = connection.serviceId;\n if (serviceId) {\n let generation;\n const sid = serviceId.toHexString();\n if ((generation = this.serviceGenerations.get(sid))) {\n connection.generation = generation;\n }\n else {\n this.serviceGenerations.set(sid, 0);\n connection.generation = 0;\n }\n }\n }\n connection.markAvailable();\n this.emitAndLog(ConnectionPool.CONNECTION_READY, new connection_pool_events_1.ConnectionReadyEvent(this, connection, connectionCreatedTime));\n this.pending--;\n callback(undefined, connection);\n }, error => {\n this.pending--;\n this.server.handleError(error);\n this.emitAndLog(ConnectionPool.CONNECTION_CLOSED, new connection_pool_events_1.ConnectionClosedEvent(this, { id: connectOptions.id, serviceId: undefined }, 'error', \n // TODO(NODE-5192): Remove this cast\n error));\n if (error instanceof error_1.MongoNetworkError || error instanceof error_1.MongoServerError) {\n error.connectionGeneration = connectOptions.generation;\n }\n callback(error ?? new error_1.MongoRuntimeError('Connection creation failed without error'));\n });\n }\n ensureMinPoolSize() {\n const minPoolSize = this.options.minPoolSize;\n if (this.poolState !== exports.PoolState.ready) {\n return;\n }\n this.connections.prune(connection => this.destroyConnectionIfPerished(connection));\n if (this.totalConnectionCount < minPoolSize &&\n this.pendingConnectionCount < this.options.maxConnecting) {\n // NOTE: ensureMinPoolSize should not try to get all the pending\n // connection permits because that potentially delays the availability of\n // the connection to a checkout request\n this.createConnection((err, connection) => {\n if (!err && connection) {\n this.connections.push(connection);\n process.nextTick(() => this.processWaitQueue());\n }\n if (this.poolState === exports.PoolState.ready) {\n (0, timers_1.clearTimeout)(this.minPoolSizeTimer);\n this.minPoolSizeTimer = (0, timers_1.setTimeout)(() => this.ensureMinPoolSize(), this.options.minPoolSizeCheckFrequencyMS);\n }\n });\n }\n else {\n (0, timers_1.clearTimeout)(this.minPoolSizeTimer);\n this.minPoolSizeTimer = (0, timers_1.setTimeout)(() => this.ensureMinPoolSize(), this.options.minPoolSizeCheckFrequencyMS);\n }\n }\n processWaitQueue() {\n if (this.processingWaitQueue) {\n return;\n }\n this.processingWaitQueue = true;\n while (this.waitQueueSize) {\n const waitQueueMember = this.waitQueue.first();\n if (!waitQueueMember) {\n this.waitQueue.shift();\n continue;\n }\n if (waitQueueMember.cancelled) {\n this.waitQueue.shift();\n continue;\n }\n if (this.poolState !== exports.PoolState.ready) {\n const reason = this.closed ? 'poolClosed' : 'connectionError';\n const error = this.closed ? new errors_1.PoolClosedError(this) : new errors_1.PoolClearedError(this);\n this.emitAndLog(ConnectionPool.CONNECTION_CHECK_OUT_FAILED, new connection_pool_events_1.ConnectionCheckOutFailedEvent(this, reason, waitQueueMember.checkoutTime, error));\n this.waitQueue.shift();\n waitQueueMember.reject(error);\n continue;\n }\n if (!this.availableConnectionCount) {\n break;\n }\n const connection = this.connections.shift();\n if (!connection) {\n break;\n }\n if (!this.destroyConnectionIfPerished(connection)) {\n this.checkedOut.add(connection);\n this.emitAndLog(ConnectionPool.CONNECTION_CHECKED_OUT, new connection_pool_events_1.ConnectionCheckedOutEvent(this, connection, waitQueueMember.checkoutTime));\n this.waitQueue.shift();\n waitQueueMember.resolve(connection);\n }\n }\n const { maxPoolSize, maxConnecting } = this.options;\n while (this.waitQueueSize > 0 &&\n this.pendingConnectionCount < maxConnecting &&\n (maxPoolSize === 0 || this.totalConnectionCount < maxPoolSize)) {\n const waitQueueMember = this.waitQueue.shift();\n if (!waitQueueMember || waitQueueMember.cancelled) {\n continue;\n }\n this.createConnection((err, connection) => {\n if (waitQueueMember.cancelled) {\n if (!err && connection) {\n this.connections.push(connection);\n }\n }\n else {\n if (err) {\n this.emitAndLog(ConnectionPool.CONNECTION_CHECK_OUT_FAILED, \n // TODO(NODE-5192): Remove this cast\n new connection_pool_events_1.ConnectionCheckOutFailedEvent(this, 'connectionError', waitQueueMember.checkoutTime, err));\n waitQueueMember.reject(err);\n }\n else if (connection) {\n this.checkedOut.add(connection);\n this.emitAndLog(ConnectionPool.CONNECTION_CHECKED_OUT, new connection_pool_events_1.ConnectionCheckedOutEvent(this, connection, waitQueueMember.checkoutTime));\n waitQueueMember.resolve(connection);\n }\n }\n process.nextTick(() => this.processWaitQueue());\n });\n }\n this.processingWaitQueue = false;\n }\n}\nexports.ConnectionPool = ConnectionPool;\n/**\n * Emitted when the connection pool is created.\n * @event\n */\nConnectionPool.CONNECTION_POOL_CREATED = constants_1.CONNECTION_POOL_CREATED;\n/**\n * Emitted once when the connection pool is closed\n * @event\n */\nConnectionPool.CONNECTION_POOL_CLOSED = constants_1.CONNECTION_POOL_CLOSED;\n/**\n * Emitted each time the connection pool is cleared and it's generation incremented\n * @event\n */\nConnectionPool.CONNECTION_POOL_CLEARED = constants_1.CONNECTION_POOL_CLEARED;\n/**\n * Emitted each time the connection pool is marked ready\n * @event\n */\nConnectionPool.CONNECTION_POOL_READY = constants_1.CONNECTION_POOL_READY;\n/**\n * Emitted when a connection is created.\n * @event\n */\nConnectionPool.CONNECTION_CREATED = constants_1.CONNECTION_CREATED;\n/**\n * Emitted when a connection becomes established, and is ready to use\n * @event\n */\nConnectionPool.CONNECTION_READY = constants_1.CONNECTION_READY;\n/**\n * Emitted when a connection is closed\n * @event\n */\nConnectionPool.CONNECTION_CLOSED = constants_1.CONNECTION_CLOSED;\n/**\n * Emitted when an attempt to check out a connection begins\n * @event\n */\nConnectionPool.CONNECTION_CHECK_OUT_STARTED = constants_1.CONNECTION_CHECK_OUT_STARTED;\n/**\n * Emitted when an attempt to check out a connection fails\n * @event\n */\nConnectionPool.CONNECTION_CHECK_OUT_FAILED = constants_1.CONNECTION_CHECK_OUT_FAILED;\n/**\n * Emitted each time a connection is successfully checked out of the connection pool\n * @event\n */\nConnectionPool.CONNECTION_CHECKED_OUT = constants_1.CONNECTION_CHECKED_OUT;\n/**\n * Emitted each time a connection is successfully checked into the connection pool\n * @event\n */\nConnectionPool.CONNECTION_CHECKED_IN = constants_1.CONNECTION_CHECKED_IN;\n//# sourceMappingURL=connection_pool.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,iBAAiB,QAAQ,YAAY,KAAK;CAClD,MAAM,qBAAmB,SAAS;CAClC,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;;AAEN,SAAQ,YAAY,OAAO,OAAO;EAC9B,QAAQ;EACR,OAAO;EACP,QAAQ;EACX,CAAC;;;;;CAKF,IAAM,iBAAN,MAAM,uBAAuB,cAAc,kBAAkB;EACzD,YAAY,QAAQ,SAAS;AACzB,UAAO;AACP,QAAK,GAAG,SAAS,QAAQ,KAAK;AAC9B,QAAK,UAAU,OAAO,OAAO;IACzB,gBAAgB,aAAa;IAC7B,GAAG;IACH,aAAa,QAAQ,eAAe;IACpC,aAAa,QAAQ,eAAe;IACpC,eAAe,QAAQ,iBAAiB;IACxC,eAAe,QAAQ,iBAAiB;IACxC,oBAAoB,QAAQ,sBAAsB;IAClD,6BAA6B,QAAQ,+BAA+B;IACpE,eAAe,QAAQ;IAC1B,CAAC;AACF,OAAI,KAAK,QAAQ,cAAc,KAAK,QAAQ,YACxC,OAAM,IAAI,QAAQ,0BAA0B,0EAA0E;AAE1H,QAAK,YA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