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,184 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_error } from "../error.mjs";
3
- import { require_read_preference } from "../read_preference.mjs";
4
- import { require_common } from "./common.mjs";
5
-
6
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.js
7
- var require_server_selection = /* @__PURE__ */ __commonJSMin(((exports) => {
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.MIN_SECONDARY_WRITE_WIRE_VERSION = void 0;
10
- exports.writableServerSelector = writableServerSelector;
11
- exports.sameServerSelector = sameServerSelector;
12
- exports.secondaryWritableServerSelector = secondaryWritableServerSelector;
13
- exports.readPreferenceServerSelector = readPreferenceServerSelector;
14
- const error_1 = require_error();
15
- const read_preference_1 = require_read_preference();
16
- const common_1 = require_common();
17
- const IDLE_WRITE_PERIOD = 1e4;
18
- const SMALLEST_MAX_STALENESS_SECONDS = 90;
19
- exports.MIN_SECONDARY_WRITE_WIRE_VERSION = 13;
20
- /**
21
- * Returns a server selector that selects for writable servers
22
- */
23
- function writableServerSelector() {
24
- return function writableServer(topologyDescription, servers) {
25
- return latencyWindowReducer(topologyDescription, servers.filter((s) => s.isWritable));
26
- };
27
- }
28
- /**
29
- * The purpose of this selector is to select the same server, only
30
- * if it is in a state that it can have commands sent to it.
31
- */
32
- function sameServerSelector(description) {
33
- return function sameServerSelector(topologyDescription, servers) {
34
- if (!description) return [];
35
- return servers.filter((sd) => {
36
- return sd.address === description.address && sd.type !== common_1.ServerType.Unknown;
37
- });
38
- };
39
- }
40
- /**
41
- * Returns a server selector that uses a read preference to select a
42
- * server potentially for a write on a secondary.
43
- */
44
- function secondaryWritableServerSelector(wireVersion, readPreference) {
45
- if (!readPreference || !wireVersion || wireVersion && wireVersion < exports.MIN_SECONDARY_WRITE_WIRE_VERSION) return readPreferenceServerSelector(read_preference_1.ReadPreference.primary);
46
- return readPreferenceServerSelector(readPreference);
47
- }
48
- /**
49
- * Reduces the passed in array of servers by the rules of the "Max Staleness" specification
50
- * found here:
51
- *
52
- * @see https://github.com/mongodb/specifications/blob/master/source/max-staleness/max-staleness.md
53
- *
54
- * @param readPreference - The read preference providing max staleness guidance
55
- * @param topologyDescription - The topology description
56
- * @param servers - The list of server descriptions to be reduced
57
- * @returns The list of servers that satisfy the requirements of max staleness
58
- */
59
- function maxStalenessReducer(readPreference, topologyDescription, servers) {
60
- if (readPreference.maxStalenessSeconds == null || readPreference.maxStalenessSeconds < 0) return servers;
61
- const maxStaleness = readPreference.maxStalenessSeconds;
62
- const maxStalenessVariance = (topologyDescription.heartbeatFrequencyMS + IDLE_WRITE_PERIOD) / 1e3;
63
- if (maxStaleness < maxStalenessVariance) throw new error_1.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${maxStalenessVariance} seconds`);
64
- if (maxStaleness < SMALLEST_MAX_STALENESS_SECONDS) throw new error_1.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${SMALLEST_MAX_STALENESS_SECONDS} seconds`);
65
- if (topologyDescription.type === common_1.TopologyType.ReplicaSetWithPrimary) {
66
- const primary = Array.from(topologyDescription.servers.values()).filter(primaryFilter)[0];
67
- return servers.reduce((result, server) => {
68
- if ((server.lastUpdateTime - server.lastWriteDate - (primary.lastUpdateTime - primary.lastWriteDate) + topologyDescription.heartbeatFrequencyMS) / 1e3 <= (readPreference.maxStalenessSeconds ?? 0)) result.push(server);
69
- return result;
70
- }, []);
71
- }
72
- if (topologyDescription.type === common_1.TopologyType.ReplicaSetNoPrimary) {
73
- if (servers.length === 0) return servers;
74
- const sMax = servers.reduce((max, s) => s.lastWriteDate > max.lastWriteDate ? s : max);
75
- return servers.reduce((result, server) => {
76
- if ((sMax.lastWriteDate - server.lastWriteDate + topologyDescription.heartbeatFrequencyMS) / 1e3 <= (readPreference.maxStalenessSeconds ?? 0)) result.push(server);
77
- return result;
78
- }, []);
79
- }
80
- return servers;
81
- }
82
- /**
83
- * Determines whether a server's tags match a given set of tags
84
- *
85
- * @param tagSet - The requested tag set to match
86
- * @param serverTags - The server's tags
87
- */
88
- function tagSetMatch(tagSet, serverTags) {
89
- const keys = Object.keys(tagSet);
90
- const serverTagKeys = Object.keys(serverTags);
91
- for (let i = 0; i < keys.length; ++i) {
92
- const key = keys[i];
93
- if (serverTagKeys.indexOf(key) === -1 || serverTags[key] !== tagSet[key]) return false;
94
- }
95
- return true;
96
- }
97
- /**
98
- * Reduces a set of server descriptions based on tags requested by the read preference
99
- *
100
- * @param readPreference - The read preference providing the requested tags
101
- * @param servers - The list of server descriptions to reduce
102
- * @returns The list of servers matching the requested tags
103
- */
104
- function tagSetReducer(readPreference, servers) {
105
- if (readPreference.tags == null || Array.isArray(readPreference.tags) && readPreference.tags.length === 0) return servers;
106
- for (let i = 0; i < readPreference.tags.length; ++i) {
107
- const tagSet = readPreference.tags[i];
108
- const serversMatchingTagset = servers.reduce((matched, server) => {
109
- if (tagSetMatch(tagSet, server.tags)) matched.push(server);
110
- return matched;
111
- }, []);
112
- if (serversMatchingTagset.length) return serversMatchingTagset;
113
- }
114
- return [];
115
- }
116
- /**
117
- * Reduces a list of servers to ensure they fall within an acceptable latency window. This is
118
- * further specified in the "Server Selection" specification, found here:
119
- *
120
- * @see https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.md
121
- *
122
- * @param topologyDescription - The topology description
123
- * @param servers - The list of servers to reduce
124
- * @returns The servers which fall within an acceptable latency window
125
- */
126
- function latencyWindowReducer(topologyDescription, servers) {
127
- const low = servers.reduce((min, server) => Math.min(server.roundTripTime, min), Infinity);
128
- const high = low + topologyDescription.localThresholdMS;
129
- return servers.reduce((result, server) => {
130
- if (server.roundTripTime <= high && server.roundTripTime >= low) result.push(server);
131
- return result;
132
- }, []);
133
- }
134
- function primaryFilter(server) {
135
- return server.type === common_1.ServerType.RSPrimary;
136
- }
137
- function secondaryFilter(server) {
138
- return server.type === common_1.ServerType.RSSecondary;
139
- }
140
- function nearestFilter(server) {
141
- return server.type === common_1.ServerType.RSSecondary || server.type === common_1.ServerType.RSPrimary;
142
- }
143
- function knownFilter(server) {
144
- return server.type !== common_1.ServerType.Unknown;
145
- }
146
- function loadBalancerFilter(server) {
147
- return server.type === common_1.ServerType.LoadBalancer;
148
- }
149
- /**
150
- * Returns a function which selects servers based on a provided read preference
151
- *
152
- * @param readPreference - The read preference to select with
153
- */
154
- function readPreferenceServerSelector(readPreference) {
155
- if (!readPreference.isValid()) throw new error_1.MongoInvalidArgumentError("Invalid read preference specified");
156
- return function readPreferenceServers(topologyDescription, servers, deprioritized = []) {
157
- if (topologyDescription.type === common_1.TopologyType.LoadBalanced) return servers.filter(loadBalancerFilter);
158
- if (topologyDescription.type === common_1.TopologyType.Unknown) return [];
159
- if (topologyDescription.type === common_1.TopologyType.Single) return latencyWindowReducer(topologyDescription, servers.filter(knownFilter));
160
- if (topologyDescription.type === common_1.TopologyType.Sharded) {
161
- const filtered = servers.filter((server) => {
162
- return !deprioritized.includes(server);
163
- });
164
- return latencyWindowReducer(topologyDescription, (filtered.length > 0 ? filtered : deprioritized).filter(knownFilter));
165
- }
166
- const mode = readPreference.mode;
167
- if (mode === read_preference_1.ReadPreference.PRIMARY) return servers.filter(primaryFilter);
168
- if (mode === read_preference_1.ReadPreference.PRIMARY_PREFERRED) {
169
- const result = servers.filter(primaryFilter);
170
- if (result.length) return result;
171
- }
172
- const filter = mode === read_preference_1.ReadPreference.NEAREST ? nearestFilter : secondaryFilter;
173
- const selectedServers = latencyWindowReducer(topologyDescription, tagSetReducer(readPreference, maxStalenessReducer(readPreference, topologyDescription, servers.filter(filter))));
174
- if (mode === read_preference_1.ReadPreference.SECONDARY_PREFERRED && selectedServers.length === 0) return servers.filter(primaryFilter);
175
- return selectedServers;
176
- };
177
- }
178
- }));
179
-
180
- //#endregion
181
- export default require_server_selection();
182
-
183
- export { require_server_selection };
184
- //# sourceMappingURL=server_selection.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server_selection.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MIN_SECONDARY_WRITE_WIRE_VERSION = void 0;\nexports.writableServerSelector = writableServerSelector;\nexports.sameServerSelector = sameServerSelector;\nexports.secondaryWritableServerSelector = secondaryWritableServerSelector;\nexports.readPreferenceServerSelector = readPreferenceServerSelector;\nconst error_1 = require(\"../error\");\nconst read_preference_1 = require(\"../read_preference\");\nconst common_1 = require(\"./common\");\n// max staleness constants\nconst IDLE_WRITE_PERIOD = 10000;\nconst SMALLEST_MAX_STALENESS_SECONDS = 90;\n// Minimum version to try writes on secondaries.\nexports.MIN_SECONDARY_WRITE_WIRE_VERSION = 13;\n/**\n * Returns a server selector that selects for writable servers\n */\nfunction writableServerSelector() {\n return function writableServer(topologyDescription, servers) {\n return latencyWindowReducer(topologyDescription, servers.filter((s) => s.isWritable));\n };\n}\n/**\n * The purpose of this selector is to select the same server, only\n * if it is in a state that it can have commands sent to it.\n */\nfunction sameServerSelector(description) {\n return function sameServerSelector(topologyDescription, servers) {\n if (!description)\n return [];\n // Filter the servers to match the provided description only if\n // the type is not unknown.\n return servers.filter(sd => {\n return sd.address === description.address && sd.type !== common_1.ServerType.Unknown;\n });\n };\n}\n/**\n * Returns a server selector that uses a read preference to select a\n * server potentially for a write on a secondary.\n */\nfunction secondaryWritableServerSelector(wireVersion, readPreference) {\n // If server version < 5.0, read preference always primary.\n // If server version >= 5.0...\n // - If read preference is supplied, use that.\n // - If no read preference is supplied, use primary.\n if (!readPreference ||\n !wireVersion ||\n (wireVersion && wireVersion < exports.MIN_SECONDARY_WRITE_WIRE_VERSION)) {\n return readPreferenceServerSelector(read_preference_1.ReadPreference.primary);\n }\n return readPreferenceServerSelector(readPreference);\n}\n/**\n * Reduces the passed in array of servers by the rules of the \"Max Staleness\" specification\n * found here:\n *\n * @see https://github.com/mongodb/specifications/blob/master/source/max-staleness/max-staleness.md\n *\n * @param readPreference - The read preference providing max staleness guidance\n * @param topologyDescription - The topology description\n * @param servers - The list of server descriptions to be reduced\n * @returns The list of servers that satisfy the requirements of max staleness\n */\nfunction maxStalenessReducer(readPreference, topologyDescription, servers) {\n if (readPreference.maxStalenessSeconds == null || readPreference.maxStalenessSeconds < 0) {\n return servers;\n }\n const maxStaleness = readPreference.maxStalenessSeconds;\n const maxStalenessVariance = (topologyDescription.heartbeatFrequencyMS + IDLE_WRITE_PERIOD) / 1000;\n if (maxStaleness < maxStalenessVariance) {\n throw new error_1.MongoInvalidArgumentError(`Option \"maxStalenessSeconds\" must be at least ${maxStalenessVariance} seconds`);\n }\n if (maxStaleness < SMALLEST_MAX_STALENESS_SECONDS) {\n throw new error_1.MongoInvalidArgumentError(`Option \"maxStalenessSeconds\" must be at least ${SMALLEST_MAX_STALENESS_SECONDS} seconds`);\n }\n if (topologyDescription.type === common_1.TopologyType.ReplicaSetWithPrimary) {\n const primary = Array.from(topologyDescription.servers.values()).filter(primaryFilter)[0];\n return servers.reduce((result, server) => {\n const stalenessMS = server.lastUpdateTime -\n server.lastWriteDate -\n (primary.lastUpdateTime - primary.lastWriteDate) +\n topologyDescription.heartbeatFrequencyMS;\n const staleness = stalenessMS / 1000;\n const maxStalenessSeconds = readPreference.maxStalenessSeconds ?? 0;\n if (staleness <= maxStalenessSeconds) {\n result.push(server);\n }\n return result;\n }, []);\n }\n if (topologyDescription.type === common_1.TopologyType.ReplicaSetNoPrimary) {\n if (servers.length === 0) {\n return servers;\n }\n const sMax = servers.reduce((max, s) => s.lastWriteDate > max.lastWriteDate ? s : max);\n return servers.reduce((result, server) => {\n const stalenessMS = sMax.lastWriteDate - server.lastWriteDate + topologyDescription.heartbeatFrequencyMS;\n const staleness = stalenessMS / 1000;\n const maxStalenessSeconds = readPreference.maxStalenessSeconds ?? 0;\n if (staleness <= maxStalenessSeconds) {\n result.push(server);\n }\n return result;\n }, []);\n }\n return servers;\n}\n/**\n * Determines whether a server's tags match a given set of tags\n *\n * @param tagSet - The requested tag set to match\n * @param serverTags - The server's tags\n */\nfunction tagSetMatch(tagSet, serverTags) {\n const keys = Object.keys(tagSet);\n const serverTagKeys = Object.keys(serverTags);\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i];\n if (serverTagKeys.indexOf(key) === -1 || serverTags[key] !== tagSet[key]) {\n return false;\n }\n }\n return true;\n}\n/**\n * Reduces a set of server descriptions based on tags requested by the read preference\n *\n * @param readPreference - The read preference providing the requested tags\n * @param servers - The list of server descriptions to reduce\n * @returns The list of servers matching the requested tags\n */\nfunction tagSetReducer(readPreference, servers) {\n if (readPreference.tags == null ||\n (Array.isArray(readPreference.tags) && readPreference.tags.length === 0)) {\n return servers;\n }\n for (let i = 0; i < readPreference.tags.length; ++i) {\n const tagSet = readPreference.tags[i];\n const serversMatchingTagset = servers.reduce((matched, server) => {\n if (tagSetMatch(tagSet, server.tags))\n matched.push(server);\n return matched;\n }, []);\n if (serversMatchingTagset.length) {\n return serversMatchingTagset;\n }\n }\n return [];\n}\n/**\n * Reduces a list of servers to ensure they fall within an acceptable latency window. This is\n * further specified in the \"Server Selection\" specification, found here:\n *\n * @see https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.md\n *\n * @param topologyDescription - The topology description\n * @param servers - The list of servers to reduce\n * @returns The servers which fall within an acceptable latency window\n */\nfunction latencyWindowReducer(topologyDescription, servers) {\n const low = servers.reduce((min, server) => Math.min(server.roundTripTime, min), Infinity);\n const high = low + topologyDescription.localThresholdMS;\n return servers.reduce((result, server) => {\n if (server.roundTripTime <= high && server.roundTripTime >= low)\n result.push(server);\n return result;\n }, []);\n}\n// filters\nfunction primaryFilter(server) {\n return server.type === common_1.ServerType.RSPrimary;\n}\nfunction secondaryFilter(server) {\n return server.type === common_1.ServerType.RSSecondary;\n}\nfunction nearestFilter(server) {\n return server.type === common_1.ServerType.RSSecondary || server.type === common_1.ServerType.RSPrimary;\n}\nfunction knownFilter(server) {\n return server.type !== common_1.ServerType.Unknown;\n}\nfunction loadBalancerFilter(server) {\n return server.type === common_1.ServerType.LoadBalancer;\n}\n/**\n * Returns a function which selects servers based on a provided read preference\n *\n * @param readPreference - The read preference to select with\n */\nfunction readPreferenceServerSelector(readPreference) {\n if (!readPreference.isValid()) {\n throw new error_1.MongoInvalidArgumentError('Invalid read preference specified');\n }\n return function readPreferenceServers(topologyDescription, servers, deprioritized = []) {\n if (topologyDescription.type === common_1.TopologyType.LoadBalanced) {\n return servers.filter(loadBalancerFilter);\n }\n if (topologyDescription.type === common_1.TopologyType.Unknown) {\n return [];\n }\n if (topologyDescription.type === common_1.TopologyType.Single) {\n return latencyWindowReducer(topologyDescription, servers.filter(knownFilter));\n }\n if (topologyDescription.type === common_1.TopologyType.Sharded) {\n const filtered = servers.filter(server => {\n return !deprioritized.includes(server);\n });\n const selectable = filtered.length > 0 ? filtered : deprioritized;\n return latencyWindowReducer(topologyDescription, selectable.filter(knownFilter));\n }\n const mode = readPreference.mode;\n if (mode === read_preference_1.ReadPreference.PRIMARY) {\n return servers.filter(primaryFilter);\n }\n if (mode === read_preference_1.ReadPreference.PRIMARY_PREFERRED) {\n const result = servers.filter(primaryFilter);\n if (result.length) {\n return result;\n }\n }\n const filter = mode === read_preference_1.ReadPreference.NEAREST ? nearestFilter : secondaryFilter;\n const selectedServers = latencyWindowReducer(topologyDescription, tagSetReducer(readPreference, maxStalenessReducer(readPreference, topologyDescription, servers.filter(filter))));\n if (mode === read_preference_1.ReadPreference.SECONDARY_PREFERRED && selectedServers.length === 0) {\n return servers.filter(primaryFilter);\n }\n return selectedServers;\n };\n}\n//# sourceMappingURL=server_selection.js.map"],"x_google_ignoreList":[0],"mappings":"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"}
@@ -1,96 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_constants } from "../constants.mjs";
3
- import { require_utils } from "../utils.mjs";
4
-
5
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.js
6
- var require_server_selection_events = /* @__PURE__ */ __commonJSMin(((exports) => {
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.WaitingForSuitableServerEvent = exports.ServerSelectionSucceededEvent = exports.ServerSelectionFailedEvent = exports.ServerSelectionStartedEvent = exports.ServerSelectionEvent = void 0;
9
- const utils_1 = require_utils();
10
- const constants_1 = require_constants();
11
- /**
12
- * The base export class for all logs published from server selection
13
- * @internal
14
- * @category Log Type
15
- */
16
- var ServerSelectionEvent = class {
17
- /** @internal */
18
- constructor(selector, topologyDescription, operation) {
19
- this.selector = selector;
20
- this.operation = operation;
21
- this.topologyDescription = topologyDescription;
22
- }
23
- };
24
- exports.ServerSelectionEvent = ServerSelectionEvent;
25
- /**
26
- * An event published when server selection starts
27
- * @internal
28
- * @category Event
29
- */
30
- var ServerSelectionStartedEvent = class extends ServerSelectionEvent {
31
- /** @internal */
32
- constructor(selector, topologyDescription, operation) {
33
- super(selector, topologyDescription, operation);
34
- /** @internal */
35
- this.name = constants_1.SERVER_SELECTION_STARTED;
36
- this.message = "Server selection started";
37
- }
38
- };
39
- exports.ServerSelectionStartedEvent = ServerSelectionStartedEvent;
40
- /**
41
- * An event published when a server selection fails
42
- * @internal
43
- * @category Event
44
- */
45
- var ServerSelectionFailedEvent = class extends ServerSelectionEvent {
46
- /** @internal */
47
- constructor(selector, topologyDescription, error, operation) {
48
- super(selector, topologyDescription, operation);
49
- /** @internal */
50
- this.name = constants_1.SERVER_SELECTION_FAILED;
51
- this.message = "Server selection failed";
52
- this.failure = error;
53
- }
54
- };
55
- exports.ServerSelectionFailedEvent = ServerSelectionFailedEvent;
56
- /**
57
- * An event published when server selection succeeds
58
- * @internal
59
- * @category Event
60
- */
61
- var ServerSelectionSucceededEvent = class extends ServerSelectionEvent {
62
- /** @internal */
63
- constructor(selector, topologyDescription, address, operation) {
64
- super(selector, topologyDescription, operation);
65
- /** @internal */
66
- this.name = constants_1.SERVER_SELECTION_SUCCEEDED;
67
- this.message = "Server selection succeeded";
68
- const { host, port } = utils_1.HostAddress.fromString(address).toHostPort();
69
- this.serverHost = host;
70
- this.serverPort = port;
71
- }
72
- };
73
- exports.ServerSelectionSucceededEvent = ServerSelectionSucceededEvent;
74
- /**
75
- * An event published when server selection is waiting for a suitable server to become available
76
- * @internal
77
- * @category Event
78
- */
79
- var WaitingForSuitableServerEvent = class extends ServerSelectionEvent {
80
- /** @internal */
81
- constructor(selector, topologyDescription, remainingTimeMS, operation) {
82
- super(selector, topologyDescription, operation);
83
- /** @internal */
84
- this.name = constants_1.WAITING_FOR_SUITABLE_SERVER;
85
- this.message = "Waiting for suitable server to become available";
86
- this.remainingTimeMS = remainingTimeMS;
87
- }
88
- };
89
- exports.WaitingForSuitableServerEvent = WaitingForSuitableServerEvent;
90
- }));
91
-
92
- //#endregion
93
- export default require_server_selection_events();
94
-
95
- export { require_server_selection_events };
96
- //# sourceMappingURL=server_selection_events.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server_selection_events.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WaitingForSuitableServerEvent = exports.ServerSelectionSucceededEvent = exports.ServerSelectionFailedEvent = exports.ServerSelectionStartedEvent = exports.ServerSelectionEvent = void 0;\nconst utils_1 = require(\".././utils\");\nconst constants_1 = require(\"../constants\");\n/**\n * The base export class for all logs published from server selection\n * @internal\n * @category Log Type\n */\nclass ServerSelectionEvent {\n /** @internal */\n constructor(selector, topologyDescription, operation) {\n this.selector = selector;\n this.operation = operation;\n this.topologyDescription = topologyDescription;\n }\n}\nexports.ServerSelectionEvent = ServerSelectionEvent;\n/**\n * An event published when server selection starts\n * @internal\n * @category Event\n */\nclass ServerSelectionStartedEvent extends ServerSelectionEvent {\n /** @internal */\n constructor(selector, topologyDescription, operation) {\n super(selector, topologyDescription, operation);\n /** @internal */\n this.name = constants_1.SERVER_SELECTION_STARTED;\n this.message = 'Server selection started';\n }\n}\nexports.ServerSelectionStartedEvent = ServerSelectionStartedEvent;\n/**\n * An event published when a server selection fails\n * @internal\n * @category Event\n */\nclass ServerSelectionFailedEvent extends ServerSelectionEvent {\n /** @internal */\n constructor(selector, topologyDescription, error, operation) {\n super(selector, topologyDescription, operation);\n /** @internal */\n this.name = constants_1.SERVER_SELECTION_FAILED;\n this.message = 'Server selection failed';\n this.failure = error;\n }\n}\nexports.ServerSelectionFailedEvent = ServerSelectionFailedEvent;\n/**\n * An event published when server selection succeeds\n * @internal\n * @category Event\n */\nclass ServerSelectionSucceededEvent extends ServerSelectionEvent {\n /** @internal */\n constructor(selector, topologyDescription, address, operation) {\n super(selector, topologyDescription, operation);\n /** @internal */\n this.name = constants_1.SERVER_SELECTION_SUCCEEDED;\n this.message = 'Server selection succeeded';\n const { host, port } = utils_1.HostAddress.fromString(address).toHostPort();\n this.serverHost = host;\n this.serverPort = port;\n }\n}\nexports.ServerSelectionSucceededEvent = ServerSelectionSucceededEvent;\n/**\n * An event published when server selection is waiting for a suitable server to become available\n * @internal\n * @category Event\n */\nclass WaitingForSuitableServerEvent extends ServerSelectionEvent {\n /** @internal */\n constructor(selector, topologyDescription, remainingTimeMS, operation) {\n super(selector, topologyDescription, operation);\n /** @internal */\n this.name = constants_1.WAITING_FOR_SUITABLE_SERVER;\n this.message = 'Waiting for suitable server to become available';\n this.remainingTimeMS = remainingTimeMS;\n }\n}\nexports.WaitingForSuitableServerEvent = WaitingForSuitableServerEvent;\n//# sourceMappingURL=server_selection_events.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,gCAAgC,QAAQ,gCAAgC,QAAQ,6BAA6B,QAAQ,8BAA8B,QAAQ,uBAAuB,KAAK;CAC/L,MAAM;CACN,MAAM;;;;;;CAMN,IAAM,uBAAN,MAA2B;;EAEvB,YAAY,UAAU,qBAAqB,WAAW;AAClD,QAAK,WAAW;AAChB,QAAK,YAAY;AACjB,QAAK,sBAAsB;;;AAGnC,SAAQ,uBAAuB;;;;;;CAM/B,IAAM,8BAAN,cAA0C,qBAAqB;;EAE3D,YAAY,UAAU,qBAAqB,WAAW;AAClD,SAAM,UAAU,qBAAqB,UAAU;;AAE/C,QAAK,OAAO,YAAY;AACxB,QAAK,UAAU;;;AAGvB,SAAQ,8BAA8B;;;;;;CAMtC,IAAM,6BAAN,cAAyC,qBAAqB;;EAE1D,YAAY,UAAU,qBAAqB,OAAO,WAAW;AACzD,SAAM,UAAU,qBAAqB,UAAU;;AAE/C,QAAK,OAAO,YAAY;AACxB,QAAK,UAAU;AACf,QAAK,UAAU;;;AAGvB,SAAQ,6BAA6B;;;;;;CAMrC,IAAM,gCAAN,cAA4C,qBAAqB;;EAE7D,YAAY,UAAU,qBAAqB,SAAS,WAAW;AAC3D,SAAM,UAAU,qBAAqB,UAAU;;AAE/C,QAAK,OAAO,YAAY;AACxB,QAAK,UAAU;GACf,MAAM,EAAE,MAAM,SAAS,QAAQ,YAAY,WAAW,QAAQ,CAAC,YAAY;AAC3E,QAAK,aAAa;AAClB,QAAK,aAAa;;;AAG1B,SAAQ,gCAAgC;;;;;;CAMxC,IAAM,gCAAN,cAA4C,qBAAqB;;EAE7D,YAAY,UAAU,qBAAqB,iBAAiB,WAAW;AACnE,SAAM,UAAU,qBAAqB,UAAU;;AAE/C,QAAK,OAAO,YAAY;AACxB,QAAK,UAAU;AACf,QAAK,kBAAkB;;;AAG/B,SAAQ,gCAAgC"}
@@ -1,107 +0,0 @@
1
- import { __commonJSMin, __require } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_error } from "../error.mjs";
3
- import { require_utils } from "../utils.mjs";
4
- import { require_mongo_types } from "../mongo_types.mjs";
5
-
6
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.js
7
- var require_srv_polling = /* @__PURE__ */ __commonJSMin(((exports) => {
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.SrvPoller = exports.SrvPollingEvent = void 0;
10
- const dns = __require("dns");
11
- const timers_1 = __require("timers");
12
- const error_1 = require_error();
13
- const mongo_types_1 = require_mongo_types();
14
- const utils_1 = require_utils();
15
- /**
16
- * @internal
17
- * @category Event
18
- */
19
- var SrvPollingEvent = class {
20
- constructor(srvRecords) {
21
- this.srvRecords = srvRecords;
22
- }
23
- hostnames() {
24
- return new Set(this.srvRecords.map((r) => utils_1.HostAddress.fromSrvRecord(r).toString()));
25
- }
26
- };
27
- exports.SrvPollingEvent = SrvPollingEvent;
28
- /** @internal */
29
- var SrvPoller = class SrvPoller extends mongo_types_1.TypedEventEmitter {
30
- constructor(options) {
31
- super();
32
- this.on("error", utils_1.noop);
33
- if (!options || !options.srvHost) throw new error_1.MongoRuntimeError("Options for SrvPoller must exist and include srvHost");
34
- this.srvHost = options.srvHost;
35
- this.srvMaxHosts = options.srvMaxHosts ?? 0;
36
- this.srvServiceName = options.srvServiceName ?? "mongodb";
37
- this.rescanSrvIntervalMS = 6e4;
38
- this.heartbeatFrequencyMS = options.heartbeatFrequencyMS ?? 1e4;
39
- this.haMode = false;
40
- this.generation = 0;
41
- this._timeout = void 0;
42
- }
43
- get srvAddress() {
44
- return `_${this.srvServiceName}._tcp.${this.srvHost}`;
45
- }
46
- get intervalMS() {
47
- return this.haMode ? this.heartbeatFrequencyMS : this.rescanSrvIntervalMS;
48
- }
49
- start() {
50
- if (!this._timeout) this.schedule();
51
- }
52
- stop() {
53
- if (this._timeout) {
54
- (0, timers_1.clearTimeout)(this._timeout);
55
- this.generation += 1;
56
- this._timeout = void 0;
57
- }
58
- }
59
- schedule() {
60
- if (this._timeout) (0, timers_1.clearTimeout)(this._timeout);
61
- this._timeout = (0, timers_1.setTimeout)(() => {
62
- this._poll().then(void 0, utils_1.squashError);
63
- }, this.intervalMS);
64
- }
65
- success(srvRecords) {
66
- this.haMode = false;
67
- this.schedule();
68
- this.emit(SrvPoller.SRV_RECORD_DISCOVERY, new SrvPollingEvent(srvRecords));
69
- }
70
- failure() {
71
- this.haMode = true;
72
- this.schedule();
73
- }
74
- async _poll() {
75
- const generation = this.generation;
76
- let srvRecords;
77
- try {
78
- srvRecords = await dns.promises.resolveSrv(this.srvAddress);
79
- } catch {
80
- this.failure();
81
- return;
82
- }
83
- if (generation !== this.generation) return;
84
- const finalAddresses = [];
85
- for (const record of srvRecords) try {
86
- (0, utils_1.checkParentDomainMatch)(record.name, this.srvHost);
87
- finalAddresses.push(record);
88
- } catch (error) {
89
- (0, utils_1.squashError)(error);
90
- }
91
- if (!finalAddresses.length) {
92
- this.failure();
93
- return;
94
- }
95
- this.success(finalAddresses);
96
- }
97
- };
98
- exports.SrvPoller = SrvPoller;
99
- /** @event */
100
- SrvPoller.SRV_RECORD_DISCOVERY = "srvRecordDiscovery";
101
- }));
102
-
103
- //#endregion
104
- export default require_srv_polling();
105
-
106
- export { require_srv_polling };
107
- //# sourceMappingURL=srv_polling.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"srv_polling.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SrvPoller = exports.SrvPollingEvent = void 0;\nconst dns = require(\"dns\");\nconst timers_1 = require(\"timers\");\nconst error_1 = require(\"../error\");\nconst mongo_types_1 = require(\"../mongo_types\");\nconst utils_1 = require(\"../utils\");\n/**\n * @internal\n * @category Event\n */\nclass SrvPollingEvent {\n constructor(srvRecords) {\n this.srvRecords = srvRecords;\n }\n hostnames() {\n return new Set(this.srvRecords.map(r => utils_1.HostAddress.fromSrvRecord(r).toString()));\n }\n}\nexports.SrvPollingEvent = SrvPollingEvent;\n/** @internal */\nclass SrvPoller extends mongo_types_1.TypedEventEmitter {\n constructor(options) {\n super();\n this.on('error', utils_1.noop);\n if (!options || !options.srvHost) {\n throw new error_1.MongoRuntimeError('Options for SrvPoller must exist and include srvHost');\n }\n this.srvHost = options.srvHost;\n this.srvMaxHosts = options.srvMaxHosts ?? 0;\n this.srvServiceName = options.srvServiceName ?? 'mongodb';\n this.rescanSrvIntervalMS = 60000;\n this.heartbeatFrequencyMS = options.heartbeatFrequencyMS ?? 10000;\n this.haMode = false;\n this.generation = 0;\n this._timeout = undefined;\n }\n get srvAddress() {\n return `_${this.srvServiceName}._tcp.${this.srvHost}`;\n }\n get intervalMS() {\n return this.haMode ? this.heartbeatFrequencyMS : this.rescanSrvIntervalMS;\n }\n start() {\n if (!this._timeout) {\n this.schedule();\n }\n }\n stop() {\n if (this._timeout) {\n (0, timers_1.clearTimeout)(this._timeout);\n this.generation += 1;\n this._timeout = undefined;\n }\n }\n // TODO(NODE-4994): implement new logging logic for SrvPoller failures\n schedule() {\n if (this._timeout) {\n (0, timers_1.clearTimeout)(this._timeout);\n }\n this._timeout = (0, timers_1.setTimeout)(() => {\n this._poll().then(undefined, utils_1.squashError);\n }, this.intervalMS);\n }\n success(srvRecords) {\n this.haMode = false;\n this.schedule();\n this.emit(SrvPoller.SRV_RECORD_DISCOVERY, new SrvPollingEvent(srvRecords));\n }\n failure() {\n this.haMode = true;\n this.schedule();\n }\n async _poll() {\n const generation = this.generation;\n let srvRecords;\n try {\n srvRecords = await dns.promises.resolveSrv(this.srvAddress);\n }\n catch {\n this.failure();\n return;\n }\n if (generation !== this.generation) {\n return;\n }\n const finalAddresses = [];\n for (const record of srvRecords) {\n try {\n (0, utils_1.checkParentDomainMatch)(record.name, this.srvHost);\n finalAddresses.push(record);\n }\n catch (error) {\n (0, utils_1.squashError)(error);\n }\n }\n if (!finalAddresses.length) {\n this.failure();\n return;\n }\n this.success(finalAddresses);\n }\n}\nexports.SrvPoller = SrvPoller;\n/** @event */\nSrvPoller.SRV_RECORD_DISCOVERY = 'srvRecordDiscovery';\n//# sourceMappingURL=srv_polling.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,YAAY,QAAQ,kBAAkB,KAAK;CACnD,MAAM,gBAAc,MAAM;CAC1B,MAAM,qBAAmB,SAAS;CAClC,MAAM;CACN,MAAM;CACN,MAAM;;;;;CAKN,IAAM,kBAAN,MAAsB;EAClB,YAAY,YAAY;AACpB,QAAK,aAAa;;EAEtB,YAAY;AACR,UAAO,IAAI,IAAI,KAAK,WAAW,KAAI,MAAK,QAAQ,YAAY,cAAc,EAAE,CAAC,UAAU,CAAC,CAAC;;;AAGjG,SAAQ,kBAAkB;;CAE1B,IAAM,YAAN,MAAM,kBAAkB,cAAc,kBAAkB;EACpD,YAAY,SAAS;AACjB,UAAO;AACP,QAAK,GAAG,SAAS,QAAQ,KAAK;AAC9B,OAAI,CAAC,WAAW,CAAC,QAAQ,QACrB,OAAM,IAAI,QAAQ,kBAAkB,uDAAuD;AAE/F,QAAK,UAAU,QAAQ;AACvB,QAAK,cAAc,QAAQ,eAAe;AAC1C,QAAK,iBAAiB,QAAQ,kBAAkB;AAChD,QAAK,sBAAsB;AAC3B,QAAK,uBAAuB,QAAQ,wBAAwB;AAC5D,QAAK,SAAS;AACd,QAAK,aAAa;AAClB,QAAK,WAAW;;EAEpB,IAAI,aAAa;AACb,UAAO,IAAI,KAAK,eAAe,QAAQ,KAAK;;EAEhD,IAAI,aAAa;AACb,UAAO,KAAK,SAAS,KAAK,uBAAuB,KAAK;;EAE1D,QAAQ;AACJ,OAAI,CAAC,KAAK,SACN,MAAK,UAAU;;EAGvB,OAAO;AACH,OAAI,KAAK,UAAU;AACf,KAAC,GAAG,SAAS,cAAc,KAAK,SAAS;AACzC,SAAK,cAAc;AACnB,SAAK,WAAW;;;EAIxB,WAAW;AACP,OAAI,KAAK,SACL,EAAC,GAAG,SAAS,cAAc,KAAK,SAAS;AAE7C,QAAK,YAAY,GAAG,SAAS,kBAAkB;AAC3C,SAAK,OAAO,CAAC,KAAK,QAAW,QAAQ,YAAY;MAClD,KAAK,WAAW;;EAEvB,QAAQ,YAAY;AAChB,QAAK,SAAS;AACd,QAAK,UAAU;AACf,QAAK,KAAK,UAAU,sBAAsB,IAAI,gBAAgB,WAAW,CAAC;;EAE9E,UAAU;AACN,QAAK,SAAS;AACd,QAAK,UAAU;;EAEnB,MAAM,QAAQ;GACV,MAAM,aAAa,KAAK;GACxB,IAAI;AACJ,OAAI;AACA,iBAAa,MAAM,IAAI,SAAS,WAAW,KAAK,WAAW;WAEzD;AACF,SAAK,SAAS;AACd;;AAEJ,OAAI,eAAe,KAAK,WACpB;GAEJ,MAAM,iBAAiB,EAAE;AACzB,QAAK,MAAM,UAAU,WACjB,KAAI;AACA,KAAC,GAAG,QAAQ,wBAAwB,OAAO,MAAM,KAAK,QAAQ;AAC9D,mBAAe,KAAK,OAAO;YAExB,OAAO;AACV,KAAC,GAAG,QAAQ,aAAa,MAAM;;AAGvC,OAAI,CAAC,eAAe,QAAQ;AACxB,SAAK,SAAS;AACd;;AAEJ,QAAK,QAAQ,eAAe;;;AAGpC,SAAQ,YAAY;;AAEpB,WAAU,uBAAuB"}