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,423 +0,0 @@
1
- import { __commonJSMin, __require } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_bson } from "../bson.mjs";
3
- import { require_error } from "../error.mjs";
4
- import { require_read_preference } from "../read_preference.mjs";
5
- import { require_common } from "../sdam/common.mjs";
6
- import { require_constants } from "../constants.mjs";
7
- import { require_responses } from "./wire_protocol/responses.mjs";
8
- import { require_utils } from "../utils.mjs";
9
- import { require_timeout } from "../timeout.mjs";
10
- import { require_mongo_logger } from "../mongo_logger.mjs";
11
- import { require_mongo_types } from "../mongo_types.mjs";
12
- import { require_commands } from "./commands.mjs";
13
- import { require_compression } from "./wire_protocol/compression.mjs";
14
- import { require_sessions } from "../sessions.mjs";
15
- import { require_command_monitoring_events } from "./command_monitoring_events.mjs";
16
- import { require_stream_description } from "./stream_description.mjs";
17
- import { require_on_data } from "./wire_protocol/on_data.mjs";
18
- import { require_shared } from "./wire_protocol/shared.mjs";
19
-
20
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.js
21
- var require_connection = /* @__PURE__ */ __commonJSMin(((exports) => {
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.CryptoConnection = exports.SizedMessageTransform = exports.Connection = void 0;
24
- exports.hasSessionSupport = hasSessionSupport;
25
- const stream_1 = __require("stream");
26
- const timers_1 = __require("timers");
27
- const bson_1 = require_bson();
28
- const constants_1 = require_constants();
29
- const error_1 = require_error();
30
- const mongo_logger_1 = require_mongo_logger();
31
- const mongo_types_1 = require_mongo_types();
32
- const read_preference_1 = require_read_preference();
33
- const common_1 = require_common();
34
- const sessions_1 = require_sessions();
35
- const timeout_1 = require_timeout();
36
- const utils_1 = require_utils();
37
- const command_monitoring_events_1 = require_command_monitoring_events();
38
- const commands_1 = require_commands();
39
- const stream_description_1 = require_stream_description();
40
- const compression_1 = require_compression();
41
- const on_data_1 = require_on_data();
42
- const responses_1 = require_responses();
43
- const shared_1 = require_shared();
44
- /** @internal */
45
- function hasSessionSupport(conn) {
46
- return conn.description.logicalSessionTimeoutMinutes != null;
47
- }
48
- function streamIdentifier(stream, options) {
49
- if (options.proxyHost) return options.hostAddress.toString();
50
- const { remoteAddress, remotePort } = stream;
51
- if (typeof remoteAddress === "string" && typeof remotePort === "number") return utils_1.HostAddress.fromHostPort(remoteAddress, remotePort).toString();
52
- return (0, utils_1.uuidV4)().toString("hex");
53
- }
54
- /** @internal */
55
- var Connection = class Connection extends mongo_types_1.TypedEventEmitter {
56
- constructor(stream, options) {
57
- super();
58
- this.lastHelloMS = -1;
59
- this.helloOk = false;
60
- this.delayedTimeoutId = null;
61
- /** Indicates that the connection (including underlying TCP socket) has been closed. */
62
- this.closed = false;
63
- this.clusterTime = null;
64
- this.error = null;
65
- this.dataEvents = null;
66
- this.on("error", utils_1.noop);
67
- this.socket = stream;
68
- this.id = options.id;
69
- this.address = streamIdentifier(stream, options);
70
- this.socketTimeoutMS = options.socketTimeoutMS ?? 0;
71
- this.monitorCommands = options.monitorCommands;
72
- this.serverApi = options.serverApi;
73
- this.mongoLogger = options.mongoLogger;
74
- this.established = false;
75
- this.description = new stream_description_1.StreamDescription(this.address, options);
76
- this.generation = options.generation;
77
- this.lastUseTime = (0, utils_1.now)();
78
- this.messageStream = this.socket.on("error", this.onSocketError.bind(this)).pipe(new SizedMessageTransform({ connection: this })).on("error", this.onTransformError.bind(this));
79
- this.socket.on("close", this.onClose.bind(this));
80
- this.socket.on("timeout", this.onTimeout.bind(this));
81
- this.messageStream.pause();
82
- }
83
- get hello() {
84
- return this.description.hello;
85
- }
86
- set hello(response) {
87
- this.description.receiveResponse(response);
88
- Object.freeze(this.description);
89
- }
90
- get serviceId() {
91
- return this.hello?.serviceId;
92
- }
93
- get loadBalanced() {
94
- return this.description.loadBalanced;
95
- }
96
- get idleTime() {
97
- return (0, utils_1.calculateDurationInMs)(this.lastUseTime);
98
- }
99
- get hasSessionSupport() {
100
- return this.description.logicalSessionTimeoutMinutes != null;
101
- }
102
- get supportsOpMsg() {
103
- return this.description != null && (0, utils_1.maxWireVersion)(this) >= 6 && !this.description.__nodejs_mock_server__;
104
- }
105
- get shouldEmitAndLogCommand() {
106
- return (this.monitorCommands || this.established && !this.authContext?.reauthenticating && this.mongoLogger?.willLog(mongo_logger_1.MongoLoggableComponent.COMMAND, mongo_logger_1.SeverityLevel.DEBUG)) ?? false;
107
- }
108
- markAvailable() {
109
- this.lastUseTime = (0, utils_1.now)();
110
- }
111
- onSocketError(cause) {
112
- this.onError(new error_1.MongoNetworkError(cause.message, { cause }));
113
- }
114
- onTransformError(error) {
115
- this.onError(error);
116
- }
117
- onError(error) {
118
- this.cleanup(error);
119
- }
120
- onClose() {
121
- const message = `connection ${this.id} to ${this.address} closed`;
122
- this.cleanup(new error_1.MongoNetworkError(message));
123
- }
124
- onTimeout() {
125
- this.delayedTimeoutId = (0, timers_1.setTimeout)(() => {
126
- const message = `connection ${this.id} to ${this.address} timed out`;
127
- const beforeHandshake = this.hello == null;
128
- this.cleanup(new error_1.MongoNetworkTimeoutError(message, { beforeHandshake }));
129
- }, 1).unref();
130
- }
131
- destroy() {
132
- if (this.closed) return;
133
- this.removeAllListeners(Connection.PINNED);
134
- this.removeAllListeners(Connection.UNPINNED);
135
- const message = `connection ${this.id} to ${this.address} closed`;
136
- this.cleanup(new error_1.MongoNetworkError(message));
137
- }
138
- /**
139
- * A method that cleans up the connection. When `force` is true, this method
140
- * forcibly destroys the socket.
141
- *
142
- * If an error is provided, any in-flight operations will be closed with the error.
143
- *
144
- * This method does nothing if the connection is already closed.
145
- */
146
- cleanup(error) {
147
- if (this.closed) return;
148
- this.socket.destroy();
149
- this.error = error;
150
- this.dataEvents?.throw(error).then(void 0, utils_1.squashError);
151
- this.closed = true;
152
- this.emit(Connection.CLOSE);
153
- }
154
- prepareCommand(db, command, options) {
155
- let cmd = { ...command };
156
- const readPreference = (0, shared_1.getReadPreference)(options);
157
- const session = options?.session;
158
- let clusterTime = this.clusterTime;
159
- if (this.serverApi) {
160
- const { version, strict, deprecationErrors } = this.serverApi;
161
- cmd.apiVersion = version;
162
- if (strict != null) cmd.apiStrict = strict;
163
- if (deprecationErrors != null) cmd.apiDeprecationErrors = deprecationErrors;
164
- }
165
- if (this.hasSessionSupport && session) {
166
- if (session.clusterTime && clusterTime && session.clusterTime.clusterTime.greaterThan(clusterTime.clusterTime)) clusterTime = session.clusterTime;
167
- const sessionError = (0, sessions_1.applySession)(session, cmd, options);
168
- if (sessionError) throw sessionError;
169
- } else if (session?.explicit) throw new error_1.MongoCompatibilityError("Current topology does not support sessions");
170
- if (clusterTime) cmd.$clusterTime = clusterTime;
171
- if (this.description.type !== common_1.ServerType.Standalone) {
172
- if (!(0, shared_1.isSharded)(this) && !this.description.loadBalanced && this.supportsOpMsg && options.directConnection === true && readPreference?.mode === "primary") cmd.$readPreference = read_preference_1.ReadPreference.primaryPreferred.toJSON();
173
- else if ((0, shared_1.isSharded)(this) && !this.supportsOpMsg && readPreference?.mode !== "primary") cmd = {
174
- $query: cmd,
175
- $readPreference: readPreference.toJSON()
176
- };
177
- else if (readPreference?.mode !== "primary") cmd.$readPreference = readPreference.toJSON();
178
- }
179
- const commandOptions = {
180
- numberToSkip: 0,
181
- numberToReturn: -1,
182
- checkKeys: false,
183
- secondaryOk: readPreference.secondaryOk(),
184
- ...options
185
- };
186
- options.timeoutContext?.addMaxTimeMSToCommand(cmd, options);
187
- return this.supportsOpMsg ? new commands_1.OpMsgRequest(db, cmd, commandOptions) : new commands_1.OpQueryRequest(db, cmd, commandOptions);
188
- }
189
- async *sendWire(message, options, responseType) {
190
- this.throwIfAborted();
191
- const timeout = options.socketTimeoutMS ?? options?.timeoutContext?.getSocketTimeoutMS() ?? this.socketTimeoutMS;
192
- this.socket.setTimeout(timeout);
193
- try {
194
- await this.writeCommand(message, {
195
- agreedCompressor: this.description.compressor ?? "none",
196
- zlibCompressionLevel: this.description.zlibCompressionLevel,
197
- timeoutContext: options.timeoutContext,
198
- signal: options.signal
199
- });
200
- if (options.noResponse || message.moreToCome) {
201
- yield responses_1.MongoDBResponse.empty;
202
- return;
203
- }
204
- this.throwIfAborted();
205
- if (options.timeoutContext?.csotEnabled() && options.timeoutContext.minRoundTripTime != null && options.timeoutContext.remainingTimeMS < options.timeoutContext.minRoundTripTime) throw new error_1.MongoOperationTimeoutError("Server roundtrip time is greater than the time remaining");
206
- for await (const response of this.readMany(options)) {
207
- this.socket.setTimeout(0);
208
- const bson = response.parse();
209
- yield (responseType ?? responses_1.MongoDBResponse).make(bson);
210
- this.throwIfAborted();
211
- this.socket.setTimeout(timeout);
212
- }
213
- } finally {
214
- this.socket.setTimeout(0);
215
- }
216
- }
217
- async *sendCommand(ns, command, options, responseType) {
218
- options?.signal?.throwIfAborted();
219
- const message = this.prepareCommand(ns.db, command, options);
220
- let started = 0;
221
- if (this.shouldEmitAndLogCommand) {
222
- started = (0, utils_1.now)();
223
- this.emitAndLogCommand(this.monitorCommands, Connection.COMMAND_STARTED, message.databaseName, this.established, new command_monitoring_events_1.CommandStartedEvent(this, message, this.description.serverConnectionId));
224
- }
225
- const bsonOptions = options.documentsReturnedIn == null || !options.raw ? options : {
226
- ...options,
227
- raw: false,
228
- fieldsAsRaw: { [options.documentsReturnedIn]: true }
229
- };
230
- /** MongoDBResponse instance or subclass */
231
- let document = void 0;
232
- /** Cached result of a toObject call */
233
- let object = void 0;
234
- try {
235
- this.throwIfAborted();
236
- for await (document of this.sendWire(message, options, responseType)) {
237
- object = void 0;
238
- if (options.session != null) (0, sessions_1.updateSessionFromResponse)(options.session, document);
239
- if (document.$clusterTime) {
240
- this.clusterTime = document.$clusterTime;
241
- this.emit(Connection.CLUSTER_TIME_RECEIVED, document.$clusterTime);
242
- }
243
- if (document.ok === 0) {
244
- if (options.timeoutContext?.csotEnabled() && document.isMaxTimeExpiredError) throw new error_1.MongoOperationTimeoutError("Server reported a timeout error", { cause: new error_1.MongoServerError(object ??= document.toObject(bsonOptions)) });
245
- throw new error_1.MongoServerError(object ??= document.toObject(bsonOptions));
246
- }
247
- if (this.shouldEmitAndLogCommand) this.emitAndLogCommand(this.monitorCommands, Connection.COMMAND_SUCCEEDED, message.databaseName, this.established, new command_monitoring_events_1.CommandSucceededEvent(this, message, options.noResponse ? void 0 : message.moreToCome ? { ok: 1 } : object ??= document.toObject(bsonOptions), started, this.description.serverConnectionId));
248
- if (responseType == null) yield object ??= document.toObject(bsonOptions);
249
- else yield document;
250
- this.throwIfAborted();
251
- }
252
- } catch (error) {
253
- if (this.shouldEmitAndLogCommand) this.emitAndLogCommand(this.monitorCommands, Connection.COMMAND_FAILED, message.databaseName, this.established, new command_monitoring_events_1.CommandFailedEvent(this, message, error, started, this.description.serverConnectionId));
254
- throw error;
255
- }
256
- }
257
- async command(ns, command, options = {}, responseType) {
258
- this.throwIfAborted();
259
- options.signal?.throwIfAborted();
260
- for await (const document of this.sendCommand(ns, command, options, responseType)) {
261
- if (options.timeoutContext?.csotEnabled()) {
262
- if (responses_1.MongoDBResponse.is(document)) {
263
- if (document.isMaxTimeExpiredError) throw new error_1.MongoOperationTimeoutError("Server reported a timeout error", { cause: new error_1.MongoServerError(document.toObject()) });
264
- } else if (Array.isArray(document?.writeErrors) && document.writeErrors.some((error) => error?.code === error_1.MONGODB_ERROR_CODES.MaxTimeMSExpired) || document?.writeConcernError?.code === error_1.MONGODB_ERROR_CODES.MaxTimeMSExpired) throw new error_1.MongoOperationTimeoutError("Server reported a timeout error", { cause: new error_1.MongoServerError(document) });
265
- }
266
- return document;
267
- }
268
- throw new error_1.MongoUnexpectedServerResponseError("Unable to get response from server");
269
- }
270
- exhaustCommand(ns, command, options, replyListener) {
271
- const exhaustLoop = async () => {
272
- this.throwIfAborted();
273
- for await (const reply of this.sendCommand(ns, command, options)) {
274
- replyListener(void 0, reply);
275
- this.throwIfAborted();
276
- }
277
- throw new error_1.MongoUnexpectedServerResponseError("Server ended moreToCome unexpectedly");
278
- };
279
- exhaustLoop().then(void 0, replyListener);
280
- }
281
- throwIfAborted() {
282
- if (this.error) throw this.error;
283
- }
284
- /**
285
- * @internal
286
- *
287
- * Writes an OP_MSG or OP_QUERY request to the socket, optionally compressing the command. This method
288
- * waits until the socket's buffer has emptied (the Nodejs socket `drain` event has fired).
289
- */
290
- async writeCommand(command, options) {
291
- const finalCommand = options.agreedCompressor === "none" || !commands_1.OpCompressedRequest.canCompress(command) ? command : new commands_1.OpCompressedRequest(command, {
292
- agreedCompressor: options.agreedCompressor ?? "none",
293
- zlibCompressionLevel: options.zlibCompressionLevel ?? 0
294
- });
295
- const buffer = Buffer.concat(await finalCommand.toBin());
296
- if (options.timeoutContext?.csotEnabled()) {
297
- if (options.timeoutContext.minRoundTripTime != null && options.timeoutContext.remainingTimeMS < options.timeoutContext.minRoundTripTime) throw new error_1.MongoOperationTimeoutError("Server roundtrip time is greater than the time remaining");
298
- }
299
- if (this.socket.write(buffer)) return;
300
- const drainEvent = (0, utils_1.once)(this.socket, "drain", options);
301
- const timeout = options?.timeoutContext?.timeoutForSocketWrite;
302
- const drained = timeout ? Promise.race([drainEvent, timeout]) : drainEvent;
303
- try {
304
- return await drained;
305
- } catch (writeError) {
306
- if (timeout_1.TimeoutError.is(writeError)) {
307
- const timeoutError = new error_1.MongoOperationTimeoutError("Timed out at socket write");
308
- this.onError(timeoutError);
309
- throw timeoutError;
310
- } else if (writeError === options.signal?.reason) this.onError(writeError);
311
- throw writeError;
312
- } finally {
313
- timeout?.clear();
314
- }
315
- }
316
- /**
317
- * @internal
318
- *
319
- * Returns an async generator that yields full wire protocol messages from the underlying socket. This function
320
- * yields messages until `moreToCome` is false or not present in a response, or the caller cancels the request
321
- * by calling `return` on the generator.
322
- *
323
- * Note that `for-await` loops call `return` automatically when the loop is exited.
324
- */
325
- async *readMany(options) {
326
- try {
327
- this.dataEvents = (0, on_data_1.onData)(this.messageStream, options);
328
- this.messageStream.resume();
329
- for await (const message of this.dataEvents) {
330
- const response = await (0, compression_1.decompressResponse)(message);
331
- yield response;
332
- if (!response.moreToCome) return;
333
- }
334
- } catch (readError) {
335
- if (timeout_1.TimeoutError.is(readError)) {
336
- const timeoutError = new error_1.MongoOperationTimeoutError(`Timed out during socket read (${readError.duration}ms)`);
337
- this.dataEvents = null;
338
- this.onError(timeoutError);
339
- throw timeoutError;
340
- } else if (readError === options.signal?.reason) this.onError(readError);
341
- throw readError;
342
- } finally {
343
- this.dataEvents = null;
344
- this.messageStream.pause();
345
- }
346
- }
347
- };
348
- exports.Connection = Connection;
349
- /** @event */
350
- Connection.COMMAND_STARTED = constants_1.COMMAND_STARTED;
351
- /** @event */
352
- Connection.COMMAND_SUCCEEDED = constants_1.COMMAND_SUCCEEDED;
353
- /** @event */
354
- Connection.COMMAND_FAILED = constants_1.COMMAND_FAILED;
355
- /** @event */
356
- Connection.CLUSTER_TIME_RECEIVED = constants_1.CLUSTER_TIME_RECEIVED;
357
- /** @event */
358
- Connection.CLOSE = constants_1.CLOSE;
359
- /** @event */
360
- Connection.PINNED = constants_1.PINNED;
361
- /** @event */
362
- Connection.UNPINNED = constants_1.UNPINNED;
363
- /** @internal */
364
- var SizedMessageTransform = class extends stream_1.Transform {
365
- constructor({ connection }) {
366
- super({
367
- writableObjectMode: false,
368
- readableObjectMode: true
369
- });
370
- this.bufferPool = new utils_1.BufferPool();
371
- this.connection = connection;
372
- }
373
- _transform(chunk, encoding, callback) {
374
- if (this.connection.delayedTimeoutId != null) {
375
- (0, timers_1.clearTimeout)(this.connection.delayedTimeoutId);
376
- this.connection.delayedTimeoutId = null;
377
- }
378
- this.bufferPool.append(chunk);
379
- while (this.bufferPool.length) {
380
- const sizeOfMessage = this.bufferPool.getInt32();
381
- if (sizeOfMessage == null) break;
382
- if (sizeOfMessage < 0) return callback(new error_1.MongoParseError(`Message size cannot be negative: ${sizeOfMessage}`));
383
- if (sizeOfMessage > this.bufferPool.length) break;
384
- const message = this.bufferPool.read(sizeOfMessage);
385
- if (!this.push(message)) return callback(new error_1.MongoRuntimeError(`SizedMessageTransform does not support backpressure`));
386
- }
387
- callback();
388
- }
389
- };
390
- exports.SizedMessageTransform = SizedMessageTransform;
391
- /** @internal */
392
- var CryptoConnection = class extends Connection {
393
- constructor(stream, options) {
394
- super(stream, options);
395
- this.autoEncrypter = options.autoEncrypter;
396
- }
397
- async command(ns, cmd, options, responseType) {
398
- const { autoEncrypter } = this;
399
- if (!autoEncrypter) throw new error_1.MongoMissingDependencyError("No AutoEncrypter available for encryption", { dependencyName: "n/a" });
400
- if ((0, utils_1.maxWireVersion)(this) === 0) return await super.command(ns, cmd, options, responseType);
401
- const sort = cmd.find || cmd.findAndModify ? cmd.sort : null;
402
- const indexKeys = cmd.createIndexes ? cmd.indexes.map((index) => index.key) : null;
403
- const encrypted = await autoEncrypter.encrypt(ns.toString(), cmd, options);
404
- if (sort != null && (cmd.find || cmd.findAndModify)) encrypted.sort = sort;
405
- if (indexKeys != null && cmd.createIndexes) for (const [offset, index] of indexKeys.entries()) encrypted.indexes[offset].key = index;
406
- const encryptedResponse = await super.command(ns, encrypted, options, responseType ?? responses_1.MongoDBResponse);
407
- const result = await autoEncrypter.decrypt(encryptedResponse.toBytes(), options);
408
- const decryptedResponse = responseType?.make(result) ?? (0, bson_1.deserialize)(result, options);
409
- if (autoEncrypter[constants_1.kDecorateResult]) {
410
- if (responseType == null) (0, utils_1.decorateDecryptionResult)(decryptedResponse, encryptedResponse.toObject(), true);
411
- else if (decryptedResponse instanceof responses_1.CursorResponse) decryptedResponse.encryptedResponse = encryptedResponse;
412
- }
413
- return decryptedResponse;
414
- }
415
- };
416
- exports.CryptoConnection = CryptoConnection;
417
- }));
418
-
419
- //#endregion
420
- export default require_connection();
421
-
422
- export { require_connection };
423
- //# sourceMappingURL=connection.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connection.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CryptoConnection = exports.SizedMessageTransform = exports.Connection = void 0;\nexports.hasSessionSupport = hasSessionSupport;\nconst stream_1 = require(\"stream\");\nconst timers_1 = require(\"timers\");\nconst bson_1 = require(\"../bson\");\nconst constants_1 = require(\"../constants\");\nconst error_1 = require(\"../error\");\nconst mongo_logger_1 = require(\"../mongo_logger\");\nconst mongo_types_1 = require(\"../mongo_types\");\nconst read_preference_1 = require(\"../read_preference\");\nconst common_1 = require(\"../sdam/common\");\nconst sessions_1 = require(\"../sessions\");\nconst timeout_1 = require(\"../timeout\");\nconst utils_1 = require(\"../utils\");\nconst command_monitoring_events_1 = require(\"./command_monitoring_events\");\nconst commands_1 = require(\"./commands\");\nconst stream_description_1 = require(\"./stream_description\");\nconst compression_1 = require(\"./wire_protocol/compression\");\nconst on_data_1 = require(\"./wire_protocol/on_data\");\nconst responses_1 = require(\"./wire_protocol/responses\");\nconst shared_1 = require(\"./wire_protocol/shared\");\n/** @internal */\nfunction hasSessionSupport(conn) {\n const description = conn.description;\n return description.logicalSessionTimeoutMinutes != null;\n}\nfunction streamIdentifier(stream, options) {\n if (options.proxyHost) {\n // If proxy options are specified, the properties of `stream` itself\n // will not accurately reflect what endpoint this is connected to.\n return options.hostAddress.toString();\n }\n const { remoteAddress, remotePort } = stream;\n if (typeof remoteAddress === 'string' && typeof remotePort === 'number') {\n return utils_1.HostAddress.fromHostPort(remoteAddress, remotePort).toString();\n }\n return (0, utils_1.uuidV4)().toString('hex');\n}\n/** @internal */\nclass Connection extends mongo_types_1.TypedEventEmitter {\n constructor(stream, options) {\n super();\n this.lastHelloMS = -1;\n this.helloOk = false;\n this.delayedTimeoutId = null;\n /** Indicates that the connection (including underlying TCP socket) has been closed. */\n this.closed = false;\n this.clusterTime = null;\n this.error = null;\n this.dataEvents = null;\n this.on('error', utils_1.noop);\n this.socket = stream;\n this.id = options.id;\n this.address = streamIdentifier(stream, options);\n this.socketTimeoutMS = options.socketTimeoutMS ?? 0;\n this.monitorCommands = options.monitorCommands;\n this.serverApi = options.serverApi;\n this.mongoLogger = options.mongoLogger;\n this.established = false;\n this.description = new stream_description_1.StreamDescription(this.address, options);\n this.generation = options.generation;\n this.lastUseTime = (0, utils_1.now)();\n this.messageStream = this.socket\n .on('error', this.onSocketError.bind(this))\n .pipe(new SizedMessageTransform({ connection: this }))\n .on('error', this.onTransformError.bind(this));\n this.socket.on('close', this.onClose.bind(this));\n this.socket.on('timeout', this.onTimeout.bind(this));\n this.messageStream.pause();\n }\n get hello() {\n return this.description.hello;\n }\n // the `connect` method stores the result of the handshake hello on the connection\n set hello(response) {\n this.description.receiveResponse(response);\n Object.freeze(this.description);\n }\n get serviceId() {\n return this.hello?.serviceId;\n }\n get loadBalanced() {\n return this.description.loadBalanced;\n }\n get idleTime() {\n return (0, utils_1.calculateDurationInMs)(this.lastUseTime);\n }\n get hasSessionSupport() {\n return this.description.logicalSessionTimeoutMinutes != null;\n }\n get supportsOpMsg() {\n return (this.description != null &&\n // TODO(NODE-6672,NODE-6287): This guard is primarily for maxWireVersion = 0\n (0, utils_1.maxWireVersion)(this) >= 6 &&\n !this.description.__nodejs_mock_server__);\n }\n get shouldEmitAndLogCommand() {\n return ((this.monitorCommands ||\n (this.established &&\n !this.authContext?.reauthenticating &&\n this.mongoLogger?.willLog(mongo_logger_1.MongoLoggableComponent.COMMAND, mongo_logger_1.SeverityLevel.DEBUG))) ??\n false);\n }\n markAvailable() {\n this.lastUseTime = (0, utils_1.now)();\n }\n onSocketError(cause) {\n this.onError(new error_1.MongoNetworkError(cause.message, { cause }));\n }\n onTransformError(error) {\n this.onError(error);\n }\n onError(error) {\n this.cleanup(error);\n }\n onClose() {\n const message = `connection ${this.id} to ${this.address} closed`;\n this.cleanup(new error_1.MongoNetworkError(message));\n }\n onTimeout() {\n this.delayedTimeoutId = (0, timers_1.setTimeout)(() => {\n const message = `connection ${this.id} to ${this.address} timed out`;\n const beforeHandshake = this.hello == null;\n this.cleanup(new error_1.MongoNetworkTimeoutError(message, { beforeHandshake }));\n }, 1).unref(); // No need for this timer to hold the event loop open\n }\n destroy() {\n if (this.closed) {\n return;\n }\n // load balanced mode requires that these listeners remain on the connection\n // after cleanup on timeouts, errors or close so we remove them before calling\n // cleanup.\n this.removeAllListeners(Connection.PINNED);\n this.removeAllListeners(Connection.UNPINNED);\n const message = `connection ${this.id} to ${this.address} closed`;\n this.cleanup(new error_1.MongoNetworkError(message));\n }\n /**\n * A method that cleans up the connection. When `force` is true, this method\n * forcibly destroys the socket.\n *\n * If an error is provided, any in-flight operations will be closed with the error.\n *\n * This method does nothing if the connection is already closed.\n */\n cleanup(error) {\n if (this.closed) {\n return;\n }\n this.socket.destroy();\n this.error = error;\n this.dataEvents?.throw(error).then(undefined, utils_1.squashError);\n this.closed = true;\n this.emit(Connection.CLOSE);\n }\n prepareCommand(db, command, options) {\n let cmd = { ...command };\n const readPreference = (0, shared_1.getReadPreference)(options);\n const session = options?.session;\n let clusterTime = this.clusterTime;\n if (this.serverApi) {\n const { version, strict, deprecationErrors } = this.serverApi;\n cmd.apiVersion = version;\n if (strict != null)\n cmd.apiStrict = strict;\n if (deprecationErrors != null)\n cmd.apiDeprecationErrors = deprecationErrors;\n }\n if (this.hasSessionSupport && session) {\n if (session.clusterTime &&\n clusterTime &&\n session.clusterTime.clusterTime.greaterThan(clusterTime.clusterTime)) {\n clusterTime = session.clusterTime;\n }\n const sessionError = (0, sessions_1.applySession)(session, cmd, options);\n if (sessionError)\n throw sessionError;\n }\n else if (session?.explicit) {\n throw new error_1.MongoCompatibilityError('Current topology does not support sessions');\n }\n // if we have a known cluster time, gossip it\n if (clusterTime) {\n cmd.$clusterTime = clusterTime;\n }\n // For standalone, drivers MUST NOT set $readPreference.\n if (this.description.type !== common_1.ServerType.Standalone) {\n if (!(0, shared_1.isSharded)(this) &&\n !this.description.loadBalanced &&\n this.supportsOpMsg &&\n options.directConnection === true &&\n readPreference?.mode === 'primary') {\n // For mongos and load balancers with 'primary' mode, drivers MUST NOT set $readPreference.\n // For all other types with a direct connection, if the read preference is 'primary'\n // (driver sets 'primary' as default if no read preference is configured),\n // the $readPreference MUST be set to 'primaryPreferred'\n // to ensure that any server type can handle the request.\n cmd.$readPreference = read_preference_1.ReadPreference.primaryPreferred.toJSON();\n }\n else if ((0, shared_1.isSharded)(this) && !this.supportsOpMsg && readPreference?.mode !== 'primary') {\n // When sending a read operation via OP_QUERY and the $readPreference modifier,\n // the query MUST be provided using the $query modifier.\n cmd = {\n $query: cmd,\n $readPreference: readPreference.toJSON()\n };\n }\n else if (readPreference?.mode !== 'primary') {\n // For mode 'primary', drivers MUST NOT set $readPreference.\n // For all other read preference modes (i.e. 'secondary', 'primaryPreferred', ...),\n // drivers MUST set $readPreference\n cmd.$readPreference = readPreference.toJSON();\n }\n }\n const commandOptions = {\n numberToSkip: 0,\n numberToReturn: -1,\n checkKeys: false,\n // This value is not overridable\n secondaryOk: readPreference.secondaryOk(),\n ...options\n };\n options.timeoutContext?.addMaxTimeMSToCommand(cmd, options);\n const message = this.supportsOpMsg\n ? new commands_1.OpMsgRequest(db, cmd, commandOptions)\n : new commands_1.OpQueryRequest(db, cmd, commandOptions);\n return message;\n }\n async *sendWire(message, options, responseType) {\n this.throwIfAborted();\n const timeout = options.socketTimeoutMS ??\n options?.timeoutContext?.getSocketTimeoutMS() ??\n this.socketTimeoutMS;\n this.socket.setTimeout(timeout);\n try {\n await this.writeCommand(message, {\n agreedCompressor: this.description.compressor ?? 'none',\n zlibCompressionLevel: this.description.zlibCompressionLevel,\n timeoutContext: options.timeoutContext,\n signal: options.signal\n });\n if (options.noResponse || message.moreToCome) {\n yield responses_1.MongoDBResponse.empty;\n return;\n }\n this.throwIfAborted();\n if (options.timeoutContext?.csotEnabled() &&\n options.timeoutContext.minRoundTripTime != null &&\n options.timeoutContext.remainingTimeMS < options.timeoutContext.minRoundTripTime) {\n throw new error_1.MongoOperationTimeoutError('Server roundtrip time is greater than the time remaining');\n }\n for await (const response of this.readMany(options)) {\n this.socket.setTimeout(0);\n const bson = response.parse();\n const document = (responseType ?? responses_1.MongoDBResponse).make(bson);\n yield document;\n this.throwIfAborted();\n this.socket.setTimeout(timeout);\n }\n }\n finally {\n this.socket.setTimeout(0);\n }\n }\n async *sendCommand(ns, command, options, responseType) {\n options?.signal?.throwIfAborted();\n const message = this.prepareCommand(ns.db, command, options);\n let started = 0;\n if (this.shouldEmitAndLogCommand) {\n started = (0, utils_1.now)();\n this.emitAndLogCommand(this.monitorCommands, Connection.COMMAND_STARTED, message.databaseName, this.established, new command_monitoring_events_1.CommandStartedEvent(this, message, this.description.serverConnectionId));\n }\n // If `documentsReturnedIn` not set or raw is not enabled, use input bson options\n // Otherwise, support raw flag. Raw only works for cursors that hardcode firstBatch/nextBatch fields\n const bsonOptions = options.documentsReturnedIn == null || !options.raw\n ? options\n : {\n ...options,\n raw: false,\n fieldsAsRaw: { [options.documentsReturnedIn]: true }\n };\n /** MongoDBResponse instance or subclass */\n let document = undefined;\n /** Cached result of a toObject call */\n let object = undefined;\n try {\n this.throwIfAborted();\n for await (document of this.sendWire(message, options, responseType)) {\n object = undefined;\n if (options.session != null) {\n (0, sessions_1.updateSessionFromResponse)(options.session, document);\n }\n if (document.$clusterTime) {\n this.clusterTime = document.$clusterTime;\n this.emit(Connection.CLUSTER_TIME_RECEIVED, document.$clusterTime);\n }\n if (document.ok === 0) {\n if (options.timeoutContext?.csotEnabled() && document.isMaxTimeExpiredError) {\n throw new error_1.MongoOperationTimeoutError('Server reported a timeout error', {\n cause: new error_1.MongoServerError((object ??= document.toObject(bsonOptions)))\n });\n }\n throw new error_1.MongoServerError((object ??= document.toObject(bsonOptions)));\n }\n if (this.shouldEmitAndLogCommand) {\n this.emitAndLogCommand(this.monitorCommands, Connection.COMMAND_SUCCEEDED, message.databaseName, this.established, new command_monitoring_events_1.CommandSucceededEvent(this, message, options.noResponse\n ? undefined\n : message.moreToCome\n ? { ok: 1 }\n : (object ??= document.toObject(bsonOptions)), started, this.description.serverConnectionId));\n }\n if (responseType == null) {\n yield (object ??= document.toObject(bsonOptions));\n }\n else {\n yield document;\n }\n this.throwIfAborted();\n }\n }\n catch (error) {\n if (this.shouldEmitAndLogCommand) {\n this.emitAndLogCommand(this.monitorCommands, Connection.COMMAND_FAILED, message.databaseName, this.established, new command_monitoring_events_1.CommandFailedEvent(this, message, error, started, this.description.serverConnectionId));\n }\n throw error;\n }\n }\n async command(ns, command, options = {}, responseType) {\n this.throwIfAborted();\n options.signal?.throwIfAborted();\n for await (const document of this.sendCommand(ns, command, options, responseType)) {\n if (options.timeoutContext?.csotEnabled()) {\n if (responses_1.MongoDBResponse.is(document)) {\n if (document.isMaxTimeExpiredError) {\n throw new error_1.MongoOperationTimeoutError('Server reported a timeout error', {\n cause: new error_1.MongoServerError(document.toObject())\n });\n }\n }\n else {\n if ((Array.isArray(document?.writeErrors) &&\n document.writeErrors.some(error => error?.code === error_1.MONGODB_ERROR_CODES.MaxTimeMSExpired)) ||\n document?.writeConcernError?.code === error_1.MONGODB_ERROR_CODES.MaxTimeMSExpired) {\n throw new error_1.MongoOperationTimeoutError('Server reported a timeout error', {\n cause: new error_1.MongoServerError(document)\n });\n }\n }\n }\n return document;\n }\n throw new error_1.MongoUnexpectedServerResponseError('Unable to get response from server');\n }\n exhaustCommand(ns, command, options, replyListener) {\n const exhaustLoop = async () => {\n this.throwIfAborted();\n for await (const reply of this.sendCommand(ns, command, options)) {\n replyListener(undefined, reply);\n this.throwIfAborted();\n }\n throw new error_1.MongoUnexpectedServerResponseError('Server ended moreToCome unexpectedly');\n };\n exhaustLoop().then(undefined, replyListener);\n }\n throwIfAborted() {\n if (this.error)\n throw this.error;\n }\n /**\n * @internal\n *\n * Writes an OP_MSG or OP_QUERY request to the socket, optionally compressing the command. This method\n * waits until the socket's buffer has emptied (the Nodejs socket `drain` event has fired).\n */\n async writeCommand(command, options) {\n const finalCommand = options.agreedCompressor === 'none' || !commands_1.OpCompressedRequest.canCompress(command)\n ? command\n : new commands_1.OpCompressedRequest(command, {\n agreedCompressor: options.agreedCompressor ?? 'none',\n zlibCompressionLevel: options.zlibCompressionLevel ?? 0\n });\n const buffer = Buffer.concat(await finalCommand.toBin());\n if (options.timeoutContext?.csotEnabled()) {\n if (options.timeoutContext.minRoundTripTime != null &&\n options.timeoutContext.remainingTimeMS < options.timeoutContext.minRoundTripTime) {\n throw new error_1.MongoOperationTimeoutError('Server roundtrip time is greater than the time remaining');\n }\n }\n if (this.socket.write(buffer))\n return;\n const drainEvent = (0, utils_1.once)(this.socket, 'drain', options);\n const timeout = options?.timeoutContext?.timeoutForSocketWrite;\n const drained = timeout ? Promise.race([drainEvent, timeout]) : drainEvent;\n try {\n return await drained;\n }\n catch (writeError) {\n if (timeout_1.TimeoutError.is(writeError)) {\n const timeoutError = new error_1.MongoOperationTimeoutError('Timed out at socket write');\n this.onError(timeoutError);\n throw timeoutError;\n }\n else if (writeError === options.signal?.reason) {\n this.onError(writeError);\n }\n throw writeError;\n }\n finally {\n timeout?.clear();\n }\n }\n /**\n * @internal\n *\n * Returns an async generator that yields full wire protocol messages from the underlying socket. This function\n * yields messages until `moreToCome` is false or not present in a response, or the caller cancels the request\n * by calling `return` on the generator.\n *\n * Note that `for-await` loops call `return` automatically when the loop is exited.\n */\n async *readMany(options) {\n try {\n this.dataEvents = (0, on_data_1.onData)(this.messageStream, options);\n this.messageStream.resume();\n for await (const message of this.dataEvents) {\n const response = await (0, compression_1.decompressResponse)(message);\n yield response;\n if (!response.moreToCome) {\n return;\n }\n }\n }\n catch (readError) {\n if (timeout_1.TimeoutError.is(readError)) {\n const timeoutError = new error_1.MongoOperationTimeoutError(`Timed out during socket read (${readError.duration}ms)`);\n this.dataEvents = null;\n this.onError(timeoutError);\n throw timeoutError;\n }\n else if (readError === options.signal?.reason) {\n this.onError(readError);\n }\n throw readError;\n }\n finally {\n this.dataEvents = null;\n this.messageStream.pause();\n }\n }\n}\nexports.Connection = Connection;\n/** @event */\nConnection.COMMAND_STARTED = constants_1.COMMAND_STARTED;\n/** @event */\nConnection.COMMAND_SUCCEEDED = constants_1.COMMAND_SUCCEEDED;\n/** @event */\nConnection.COMMAND_FAILED = constants_1.COMMAND_FAILED;\n/** @event */\nConnection.CLUSTER_TIME_RECEIVED = constants_1.CLUSTER_TIME_RECEIVED;\n/** @event */\nConnection.CLOSE = constants_1.CLOSE;\n/** @event */\nConnection.PINNED = constants_1.PINNED;\n/** @event */\nConnection.UNPINNED = constants_1.UNPINNED;\n/** @internal */\nclass SizedMessageTransform extends stream_1.Transform {\n constructor({ connection }) {\n super({ writableObjectMode: false, readableObjectMode: true });\n this.bufferPool = new utils_1.BufferPool();\n this.connection = connection;\n }\n _transform(chunk, encoding, callback) {\n if (this.connection.delayedTimeoutId != null) {\n (0, timers_1.clearTimeout)(this.connection.delayedTimeoutId);\n this.connection.delayedTimeoutId = null;\n }\n this.bufferPool.append(chunk);\n while (this.bufferPool.length) {\n // While there are any bytes in the buffer\n // Try to fetch a size from the top 4 bytes\n const sizeOfMessage = this.bufferPool.getInt32();\n if (sizeOfMessage == null) {\n // Not even an int32 worth of data. Stop the loop, we need more chunks.\n break;\n }\n if (sizeOfMessage < 0) {\n // The size in the message has a negative value, this is probably corruption, throw:\n return callback(new error_1.MongoParseError(`Message size cannot be negative: ${sizeOfMessage}`));\n }\n if (sizeOfMessage > this.bufferPool.length) {\n // We do not have enough bytes to make a sizeOfMessage chunk\n break;\n }\n // Add a message to the stream\n const message = this.bufferPool.read(sizeOfMessage);\n if (!this.push(message)) {\n // We only subscribe to data events so we should never get backpressure\n // if we do, we do not have the handling for it.\n return callback(new error_1.MongoRuntimeError(`SizedMessageTransform does not support backpressure`));\n }\n }\n callback();\n }\n}\nexports.SizedMessageTransform = SizedMessageTransform;\n/** @internal */\nclass CryptoConnection extends Connection {\n constructor(stream, options) {\n super(stream, options);\n this.autoEncrypter = options.autoEncrypter;\n }\n async command(ns, cmd, options, responseType) {\n const { autoEncrypter } = this;\n if (!autoEncrypter) {\n // TODO(NODE-6065): throw a MongoRuntimeError in Node V7\n // @ts-expect-error No cause provided because there is no underlying error.\n throw new error_1.MongoMissingDependencyError('No AutoEncrypter available for encryption', {\n dependencyName: 'n/a'\n });\n }\n const serverWireVersion = (0, utils_1.maxWireVersion)(this);\n if (serverWireVersion === 0) {\n // This means the initial handshake hasn't happened yet\n return await super.command(ns, cmd, options, responseType);\n }\n // Save sort or indexKeys based on the command being run\n // the encrypt API serializes our JS objects to BSON to pass to the native code layer\n // and then deserializes the encrypted result, the protocol level components\n // of the command (ex. sort) are then converted to JS objects potentially losing\n // import key order information. These fields are never encrypted so we can save the values\n // from before the encryption and replace them after encryption has been performed\n const sort = cmd.find || cmd.findAndModify ? cmd.sort : null;\n const indexKeys = cmd.createIndexes\n ? cmd.indexes.map((index) => index.key)\n : null;\n const encrypted = await autoEncrypter.encrypt(ns.toString(), cmd, options);\n // Replace the saved values\n if (sort != null && (cmd.find || cmd.findAndModify)) {\n encrypted.sort = sort;\n }\n if (indexKeys != null && cmd.createIndexes) {\n for (const [offset, index] of indexKeys.entries()) {\n // @ts-expect-error `encrypted` is a generic \"command\", but we've narrowed for only `createIndexes` commands here\n encrypted.indexes[offset].key = index;\n }\n }\n const encryptedResponse = await super.command(ns, encrypted, options, \n // Eventually we want to require `responseType` which means we would satisfy `T` as the return type.\n // In the meantime, we want encryptedResponse to always be _at least_ a MongoDBResponse if not a more specific subclass\n // So that we can ensure we have access to the on-demand APIs for decorate response\n responseType ?? responses_1.MongoDBResponse);\n const result = await autoEncrypter.decrypt(encryptedResponse.toBytes(), options);\n const decryptedResponse = responseType?.make(result) ?? (0, bson_1.deserialize)(result, options);\n if (autoEncrypter[constants_1.kDecorateResult]) {\n if (responseType == null) {\n (0, utils_1.decorateDecryptionResult)(decryptedResponse, encryptedResponse.toObject(), true);\n }\n else if (decryptedResponse instanceof responses_1.CursorResponse) {\n decryptedResponse.encryptedResponse = encryptedResponse;\n }\n }\n return decryptedResponse;\n }\n}\nexports.CryptoConnection = CryptoConnection;\n//# sourceMappingURL=connection.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,mBAAmB,QAAQ,wBAAwB,QAAQ,aAAa,KAAK;AACrF,SAAQ,oBAAoB;CA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