pecunia-root 0.1.1 → 0.1.2

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 (326) 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/index.d.mts +1 -2
  5. package/dist/index.mjs +1 -2
  6. package/package.json +2 -16
  7. package/dist/_virtual/rolldown_runtime.mjs +0 -8
  8. package/dist/adapters/mongodb-adapter/index.d.mts +0 -35
  9. package/dist/adapters/mongodb-adapter/index.mjs +0 -314
  10. package/dist/adapters/mongodb-adapter/index.mjs.map +0 -1
  11. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs +0 -14
  12. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs.map +0 -1
  13. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs +0 -54
  14. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs.map +0 -1
  15. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs +0 -36
  16. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs.map +0 -1
  17. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs +0 -27
  18. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs.map +0 -1
  19. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs +0 -3728
  20. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs.map +0 -1
  21. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs +0 -137
  22. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs.map +0 -1
  23. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs +0 -211
  24. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/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/redact.mjs +0 -95
  26. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs.map +0 -1
  27. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs +0 -158
  28. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs.map +0 -1
  29. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs +0 -195
  30. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs.map +0 -1
  31. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs +0 -710
  32. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs.map +0 -1
  33. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs +0 -53
  34. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs.map +0 -1
  35. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs +0 -63
  36. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs.map +0 -1
  37. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs +0 -368
  38. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs.map +0 -1
  39. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs +0 -234
  40. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs.map +0 -1
  41. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs +0 -545
  42. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs.map +0 -1
  43. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs +0 -83
  44. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs.map +0 -1
  45. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs +0 -146
  46. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs.map +0 -1
  47. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs +0 -58
  48. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs.map +0 -1
  49. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs +0 -30
  50. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs.map +0 -1
  51. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs +0 -135
  52. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs.map +0 -1
  53. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs +0 -25
  54. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs.map +0 -1
  55. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs +0 -47
  56. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs.map +0 -1
  57. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs +0 -362
  58. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs.map +0 -1
  59. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs +0 -58
  60. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs.map +0 -1
  61. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs +0 -123
  62. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs.map +0 -1
  63. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs +0 -128
  64. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs.map +0 -1
  65. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs +0 -133
  66. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs.map +0 -1
  67. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs +0 -126
  68. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs.map +0 -1
  69. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs +0 -79
  70. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs.map +0 -1
  71. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs +0 -65
  72. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs.map +0 -1
  73. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs +0 -127
  74. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs.map +0 -1
  75. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs +0 -47
  76. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs.map +0 -1
  77. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs +0 -44
  78. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs.map +0 -1
  79. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs +0 -101
  80. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs.map +0 -1
  81. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs +0 -33
  82. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs.map +0 -1
  83. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs +0 -53
  84. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs.map +0 -1
  85. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs +0 -29
  86. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs.map +0 -1
  87. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs +0 -83
  88. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs.map +0 -1
  89. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs +0 -36
  90. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs.map +0 -1
  91. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs +0 -32
  92. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs.map +0 -1
  93. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs +0 -206
  94. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs.map +0 -1
  95. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs +0 -45
  96. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs.map +0 -1
  97. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs +0 -213
  98. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs.map +0 -1
  99. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs +0 -411
  100. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs.map +0 -1
  101. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs +0 -288
  102. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs.map +0 -1
  103. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs +0 -423
  104. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs.map +0 -1
  105. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs +0 -483
  106. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs.map +0 -1
  107. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs +0 -207
  108. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs.map +0 -1
  109. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs +0 -116
  110. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs.map +0 -1
  111. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs +0 -183
  112. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs.map +0 -1
  113. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs +0 -55
  114. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs.map +0 -1
  115. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs +0 -60
  116. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs.map +0 -1
  117. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs +0 -139
  118. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs.map +0 -1
  119. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs +0 -28
  120. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs.map +0 -1
  121. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs +0 -117
  122. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs.map +0 -1
  123. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs +0 -182
  124. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs.map +0 -1
  125. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs +0 -304
  126. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs.map +0 -1
  127. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs +0 -34
  128. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs.map +0 -1
  129. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs +0 -739
  130. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs.map +0 -1
  131. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs +0 -805
  132. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs.map +0 -1
  133. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs +0 -174
  134. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs.map +0 -1
  135. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs +0 -726
  136. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs.map +0 -1
  137. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs +0 -172
  138. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs.map +0 -1
  139. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs +0 -103
  140. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs.map +0 -1
  141. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs +0 -66
  142. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs.map +0 -1
  143. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs +0 -41
  144. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs.map +0 -1
  145. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs +0 -365
  146. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs.map +0 -1
  147. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs +0 -50
  148. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs.map +0 -1
  149. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs +0 -48
  150. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs.map +0 -1
  151. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs +0 -23
  152. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs.map +0 -1
  153. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs +0 -106
  154. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs.map +0 -1
  155. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs +0 -428
  156. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs.map +0 -1
  157. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs +0 -124
  158. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs.map +0 -1
  159. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs +0 -95
  160. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs.map +0 -1
  161. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs +0 -1305
  162. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs.map +0 -1
  163. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs +0 -59
  164. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs.map +0 -1
  165. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs +0 -250
  166. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs.map +0 -1
  167. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs +0 -170
  168. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs.map +0 -1
  169. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs +0 -315
  170. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs.map +0 -1
  171. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs +0 -925
  172. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs.map +0 -1
  173. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs +0 -520
  174. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs.map +0 -1
  175. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs +0 -90
  176. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs.map +0 -1
  177. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs +0 -582
  178. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs.map +0 -1
  179. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs +0 -64
  180. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs.map +0 -1
  181. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs +0 -86
  182. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs.map +0 -1
  183. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs +0 -60
  184. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs.map +0 -1
  185. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs +0 -264
  186. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs.map +0 -1
  187. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs +0 -109
  188. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs.map +0 -1
  189. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs +0 -172
  190. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs.map +0 -1
  191. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs +0 -68
  192. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs.map +0 -1
  193. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs +0 -53
  194. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs.map +0 -1
  195. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs +0 -123
  196. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs.map +0 -1
  197. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs +0 -119
  198. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs.map +0 -1
  199. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs +0 -65
  200. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs.map +0 -1
  201. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs +0 -97
  202. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs.map +0 -1
  203. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs +0 -47
  204. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs.map +0 -1
  205. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs +0 -188
  206. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs.map +0 -1
  207. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs +0 -103
  208. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs.map +0 -1
  209. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs +0 -136
  210. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs.map +0 -1
  211. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs +0 -61
  212. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs.map +0 -1
  213. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs +0 -179
  214. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs.map +0 -1
  215. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs +0 -77
  216. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs.map +0 -1
  217. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs +0 -48
  218. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs.map +0 -1
  219. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs +0 -60
  220. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs.map +0 -1
  221. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs +0 -43
  222. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs.map +0 -1
  223. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs +0 -105
  224. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs.map +0 -1
  225. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs +0 -50
  226. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs.map +0 -1
  227. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs +0 -39
  228. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs.map +0 -1
  229. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs +0 -49
  230. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs.map +0 -1
  231. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs +0 -58
  232. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs.map +0 -1
  233. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs +0 -46
  234. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs.map +0 -1
  235. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs +0 -48
  236. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs.map +0 -1
  237. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs +0 -46
  238. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs.map +0 -1
  239. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs +0 -67
  240. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs.map +0 -1
  241. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs +0 -37
  242. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs.map +0 -1
  243. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs +0 -171
  244. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs.map +0 -1
  245. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs +0 -45
  246. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs.map +0 -1
  247. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs +0 -71
  248. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs.map +0 -1
  249. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs +0 -165
  250. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs.map +0 -1
  251. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs +0 -62
  252. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs.map +0 -1
  253. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs +0 -51
  254. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs.map +0 -1
  255. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs +0 -156
  256. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs.map +0 -1
  257. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs +0 -477
  258. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs.map +0 -1
  259. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs +0 -315
  260. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs.map +0 -1
  261. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs +0 -157
  262. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs.map +0 -1
  263. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs +0 -184
  264. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs.map +0 -1
  265. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs +0 -96
  266. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs.map +0 -1
  267. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs +0 -107
  268. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs.map +0 -1
  269. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs +0 -540
  270. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs.map +0 -1
  271. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs +0 -298
  272. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs.map +0 -1
  273. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs +0 -623
  274. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs.map +0 -1
  275. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs +0 -91
  276. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs.map +0 -1
  277. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs +0 -254
  278. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs.map +0 -1
  279. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs +0 -138
  280. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs.map +0 -1
  281. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs +0 -993
  282. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs.map +0 -1
  283. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs +0 -81
  284. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs.map +0 -1
  285. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs +0 -171
  286. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs.map +0 -1
  287. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs +0 -295
  288. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs.map +0 -1
  289. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs +0 -81
  290. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs.map +0 -1
  291. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs +0 -206
  292. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs.map +0 -1
  293. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs +0 -33590
  294. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs.map +0 -1
  295. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs +0 -37
  296. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs.map +0 -1
  297. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs +0 -18
  298. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs.map +0 -1
  299. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs +0 -252
  300. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs.map +0 -1
  301. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs +0 -41
  302. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs.map +0 -1
  303. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs +0 -41
  304. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs.map +0 -1
  305. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs +0 -173
  306. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs.map +0 -1
  307. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs +0 -334
  308. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs.map +0 -1
  309. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs +0 -90
  310. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs.map +0 -1
  311. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs +0 -356
  312. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs.map +0 -1
  313. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs +0 -23
  314. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs.map +0 -1
  315. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs +0 -29
  316. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs.map +0 -1
  317. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs +0 -140
  318. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs.map +0 -1
  319. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs +0 -831
  320. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs.map +0 -1
  321. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs +0 -77
  322. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs.map +0 -1
  323. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs +0 -147
  324. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs.map +0 -1
  325. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs +0 -17
  326. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs.map +0 -1
@@ -1,83 +0,0 @@
1
- import { __commonJSMin, __require } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.js
4
- var require_crypto_callbacks = /* @__PURE__ */ __commonJSMin(((exports) => {
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.hmacSha256Hook = exports.hmacSha512Hook = exports.aes256CtrDecryptHook = exports.aes256CtrEncryptHook = exports.aes256CbcDecryptHook = exports.aes256CbcEncryptHook = void 0;
7
- exports.makeAES256Hook = makeAES256Hook;
8
- exports.randomHook = randomHook;
9
- exports.sha256Hook = sha256Hook;
10
- exports.makeHmacHook = makeHmacHook;
11
- exports.signRsaSha256Hook = signRsaSha256Hook;
12
- const crypto = __require("crypto");
13
- function makeAES256Hook(method, mode) {
14
- return function(key, iv, input, output) {
15
- let result;
16
- try {
17
- const cipher = crypto[method](mode, key, iv);
18
- cipher.setAutoPadding(false);
19
- result = cipher.update(input);
20
- const final = cipher.final();
21
- if (final.length > 0) result = Buffer.concat([result, final]);
22
- } catch (e) {
23
- return e;
24
- }
25
- result.copy(output);
26
- return result.length;
27
- };
28
- }
29
- function randomHook(buffer, count) {
30
- try {
31
- crypto.randomFillSync(buffer, 0, count);
32
- } catch (e) {
33
- return e;
34
- }
35
- return count;
36
- }
37
- function sha256Hook(input, output) {
38
- let result;
39
- try {
40
- result = crypto.createHash("sha256").update(input).digest();
41
- } catch (e) {
42
- return e;
43
- }
44
- result.copy(output);
45
- return result.length;
46
- }
47
- function makeHmacHook(algorithm) {
48
- return (key, input, output) => {
49
- let result;
50
- try {
51
- result = crypto.createHmac(algorithm, key).update(input).digest();
52
- } catch (e) {
53
- return e;
54
- }
55
- result.copy(output);
56
- return result.length;
57
- };
58
- }
59
- function signRsaSha256Hook(key, input, output) {
60
- let result;
61
- try {
62
- const signer = crypto.createSign("sha256WithRSAEncryption");
63
- const privateKey = Buffer.from(`-----BEGIN PRIVATE KEY-----\n${key.toString("base64")}\n-----END PRIVATE KEY-----\n`);
64
- result = signer.update(input).end().sign(privateKey);
65
- } catch (e) {
66
- return e;
67
- }
68
- result.copy(output);
69
- return result.length;
70
- }
71
- exports.aes256CbcEncryptHook = makeAES256Hook("createCipheriv", "aes-256-cbc");
72
- exports.aes256CbcDecryptHook = makeAES256Hook("createDecipheriv", "aes-256-cbc");
73
- exports.aes256CtrEncryptHook = makeAES256Hook("createCipheriv", "aes-256-ctr");
74
- exports.aes256CtrDecryptHook = makeAES256Hook("createDecipheriv", "aes-256-ctr");
75
- exports.hmacSha512Hook = makeHmacHook("sha512");
76
- exports.hmacSha256Hook = makeHmacHook("sha256");
77
- }));
78
-
79
- //#endregion
80
- export default require_crypto_callbacks();
81
-
82
- export { require_crypto_callbacks };
83
- //# sourceMappingURL=crypto_callbacks.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"crypto_callbacks.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hmacSha256Hook = exports.hmacSha512Hook = exports.aes256CtrDecryptHook = exports.aes256CtrEncryptHook = exports.aes256CbcDecryptHook = exports.aes256CbcEncryptHook = void 0;\nexports.makeAES256Hook = makeAES256Hook;\nexports.randomHook = randomHook;\nexports.sha256Hook = sha256Hook;\nexports.makeHmacHook = makeHmacHook;\nexports.signRsaSha256Hook = signRsaSha256Hook;\nconst crypto = require(\"crypto\");\nfunction makeAES256Hook(method, mode) {\n return function (key, iv, input, output) {\n let result;\n try {\n const cipher = crypto[method](mode, key, iv);\n cipher.setAutoPadding(false);\n result = cipher.update(input);\n const final = cipher.final();\n if (final.length > 0) {\n result = Buffer.concat([result, final]);\n }\n }\n catch (e) {\n return e;\n }\n result.copy(output);\n return result.length;\n };\n}\nfunction randomHook(buffer, count) {\n try {\n crypto.randomFillSync(buffer, 0, count);\n }\n catch (e) {\n return e;\n }\n return count;\n}\nfunction sha256Hook(input, output) {\n let result;\n try {\n result = crypto.createHash('sha256').update(input).digest();\n }\n catch (e) {\n return e;\n }\n result.copy(output);\n return result.length;\n}\nfunction makeHmacHook(algorithm) {\n return (key, input, output) => {\n let result;\n try {\n result = crypto.createHmac(algorithm, key).update(input).digest();\n }\n catch (e) {\n return e;\n }\n result.copy(output);\n return result.length;\n };\n}\nfunction signRsaSha256Hook(key, input, output) {\n let result;\n try {\n const signer = crypto.createSign('sha256WithRSAEncryption');\n const privateKey = Buffer.from(`-----BEGIN PRIVATE KEY-----\\n${key.toString('base64')}\\n-----END PRIVATE KEY-----\\n`);\n result = signer.update(input).end().sign(privateKey);\n }\n catch (e) {\n return e;\n }\n result.copy(output);\n return result.length;\n}\nexports.aes256CbcEncryptHook = makeAES256Hook('createCipheriv', 'aes-256-cbc');\nexports.aes256CbcDecryptHook = makeAES256Hook('createDecipheriv', 'aes-256-cbc');\nexports.aes256CtrEncryptHook = makeAES256Hook('createCipheriv', 'aes-256-ctr');\nexports.aes256CtrDecryptHook = makeAES256Hook('createDecipheriv', 'aes-256-ctr');\nexports.hmacSha512Hook = makeHmacHook('sha512');\nexports.hmacSha256Hook = makeHmacHook('sha256');\n//# sourceMappingURL=crypto_callbacks.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,iBAAiB,QAAQ,iBAAiB,QAAQ,uBAAuB,QAAQ,uBAAuB,QAAQ,uBAAuB,QAAQ,uBAAuB,KAAK;AACnL,SAAQ,iBAAiB;AACzB,SAAQ,aAAa;AACrB,SAAQ,aAAa;AACrB,SAAQ,eAAe;AACvB,SAAQ,oBAAoB;CAC5B,MAAM,mBAAiB,SAAS;CAChC,SAAS,eAAe,QAAQ,MAAM;AAClC,SAAO,SAAU,KAAK,IAAI,OAAO,QAAQ;GACrC,IAAI;AACJ,OAAI;IACA,MAAM,SAAS,OAAO,QAAQ,MAAM,KAAK,GAAG;AAC5C,WAAO,eAAe,MAAM;AAC5B,aAAS,OAAO,OAAO,MAAM;IAC7B,MAAM,QAAQ,OAAO,OAAO;AAC5B,QAAI,MAAM,SAAS,EACf,UAAS,OAAO,OAAO,CAAC,QAAQ,MAAM,CAAC;YAGxC,GAAG;AACN,WAAO;;AAEX,UAAO,KAAK,OAAO;AACnB,UAAO,OAAO;;;CAGtB,SAAS,WAAW,QAAQ,OAAO;AAC/B,MAAI;AACA,UAAO,eAAe,QAAQ,GAAG,MAAM;WAEpC,GAAG;AACN,UAAO;;AAEX,SAAO;;CAEX,SAAS,WAAW,OAAO,QAAQ;EAC/B,IAAI;AACJ,MAAI;AACA,YAAS,OAAO,WAAW,SAAS,CAAC,OAAO,MAAM,CAAC,QAAQ;WAExD,GAAG;AACN,UAAO;;AAEX,SAAO,KAAK,OAAO;AACnB,SAAO,OAAO;;CAElB,SAAS,aAAa,WAAW;AAC7B,UAAQ,KAAK,OAAO,WAAW;GAC3B,IAAI;AACJ,OAAI;AACA,aAAS,OAAO,WAAW,WAAW,IAAI,CAAC,OAAO,MAAM,CAAC,QAAQ;YAE9D,GAAG;AACN,WAAO;;AAEX,UAAO,KAAK,OAAO;AACnB,UAAO,OAAO;;;CAGtB,SAAS,kBAAkB,KAAK,OAAO,QAAQ;EAC3C,IAAI;AACJ,MAAI;GACA,MAAM,SAAS,OAAO,WAAW,0BAA0B;GAC3D,MAAM,aAAa,OAAO,KAAK,gCAAgC,IAAI,SAAS,SAAS,CAAC,+BAA+B;AACrH,YAAS,OAAO,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,WAAW;WAEjD,GAAG;AACN,UAAO;;AAEX,SAAO,KAAK,OAAO;AACnB,SAAO,OAAO;;AAElB,SAAQ,uBAAuB,eAAe,kBAAkB,cAAc;AAC9E,SAAQ,uBAAuB,eAAe,oBAAoB,cAAc;AAChF,SAAQ,uBAAuB,eAAe,kBAAkB,cAAc;AAC9E,SAAQ,uBAAuB,eAAe,oBAAoB,cAAc;AAChF,SAAQ,iBAAiB,aAAa,SAAS;AAC/C,SAAQ,iBAAiB,aAAa,SAAS"}
@@ -1,146 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_error } from "../error.mjs";
3
-
4
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.js
5
- var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.MongoCryptKMSRequestNetworkTimeoutError = exports.MongoCryptAzureKMSRequestError = exports.MongoCryptCreateEncryptedCollectionError = exports.MongoCryptCreateDataKeyError = exports.MongoCryptInvalidArgumentError = exports.MongoCryptError = void 0;
8
- const error_1 = require_error();
9
- /**
10
- * @public
11
- * An error indicating that something went wrong specifically with MongoDB Client Encryption
12
- */
13
- var MongoCryptError = class extends error_1.MongoError {
14
- /**
15
- * **Do not use this constructor!**
16
- *
17
- * Meant for internal use only.
18
- *
19
- * @remarks
20
- * This class is only meant to be constructed within the driver. This constructor is
21
- * not subject to semantic versioning compatibility guarantees and may change at any time.
22
- *
23
- * @public
24
- **/
25
- constructor(message, options = {}) {
26
- super(message, options);
27
- }
28
- get name() {
29
- return "MongoCryptError";
30
- }
31
- };
32
- exports.MongoCryptError = MongoCryptError;
33
- /**
34
- * @public
35
- *
36
- * An error indicating an invalid argument was provided to an encryption API.
37
- */
38
- var MongoCryptInvalidArgumentError = class extends MongoCryptError {
39
- /**
40
- * **Do not use this constructor!**
41
- *
42
- * Meant for internal use only.
43
- *
44
- * @remarks
45
- * This class is only meant to be constructed within the driver. This constructor is
46
- * not subject to semantic versioning compatibility guarantees and may change at any time.
47
- *
48
- * @public
49
- **/
50
- constructor(message) {
51
- super(message);
52
- }
53
- get name() {
54
- return "MongoCryptInvalidArgumentError";
55
- }
56
- };
57
- exports.MongoCryptInvalidArgumentError = MongoCryptInvalidArgumentError;
58
- /**
59
- * @public
60
- * An error indicating that `ClientEncryption.createEncryptedCollection()` failed to create data keys
61
- */
62
- var MongoCryptCreateDataKeyError = class extends MongoCryptError {
63
- /**
64
- * **Do not use this constructor!**
65
- *
66
- * Meant for internal use only.
67
- *
68
- * @remarks
69
- * This class is only meant to be constructed within the driver. This constructor is
70
- * not subject to semantic versioning compatibility guarantees and may change at any time.
71
- *
72
- * @public
73
- **/
74
- constructor(encryptedFields, { cause }) {
75
- super(`Unable to complete creating data keys: ${cause.message}`, { cause });
76
- this.encryptedFields = encryptedFields;
77
- }
78
- get name() {
79
- return "MongoCryptCreateDataKeyError";
80
- }
81
- };
82
- exports.MongoCryptCreateDataKeyError = MongoCryptCreateDataKeyError;
83
- /**
84
- * @public
85
- * An error indicating that `ClientEncryption.createEncryptedCollection()` failed to create a collection
86
- */
87
- var MongoCryptCreateEncryptedCollectionError = class extends MongoCryptError {
88
- /**
89
- * **Do not use this constructor!**
90
- *
91
- * Meant for internal use only.
92
- *
93
- * @remarks
94
- * This class is only meant to be constructed within the driver. This constructor is
95
- * not subject to semantic versioning compatibility guarantees and may change at any time.
96
- *
97
- * @public
98
- **/
99
- constructor(encryptedFields, { cause }) {
100
- super(`Unable to create collection: ${cause.message}`, { cause });
101
- this.encryptedFields = encryptedFields;
102
- }
103
- get name() {
104
- return "MongoCryptCreateEncryptedCollectionError";
105
- }
106
- };
107
- exports.MongoCryptCreateEncryptedCollectionError = MongoCryptCreateEncryptedCollectionError;
108
- /**
109
- * @public
110
- * An error indicating that mongodb-client-encryption failed to auto-refresh Azure KMS credentials.
111
- */
112
- var MongoCryptAzureKMSRequestError = class extends MongoCryptError {
113
- /**
114
- * **Do not use this constructor!**
115
- *
116
- * Meant for internal use only.
117
- *
118
- * @remarks
119
- * This class is only meant to be constructed within the driver. This constructor is
120
- * not subject to semantic versioning compatibility guarantees and may change at any time.
121
- *
122
- * @public
123
- **/
124
- constructor(message, body) {
125
- super(message);
126
- this.body = body;
127
- }
128
- get name() {
129
- return "MongoCryptAzureKMSRequestError";
130
- }
131
- };
132
- exports.MongoCryptAzureKMSRequestError = MongoCryptAzureKMSRequestError;
133
- /** @public */
134
- var MongoCryptKMSRequestNetworkTimeoutError = class extends MongoCryptError {
135
- get name() {
136
- return "MongoCryptKMSRequestNetworkTimeoutError";
137
- }
138
- };
139
- exports.MongoCryptKMSRequestNetworkTimeoutError = MongoCryptKMSRequestNetworkTimeoutError;
140
- }));
141
-
142
- //#endregion
143
- export default require_errors();
144
-
145
- export { require_errors };
146
- //# sourceMappingURL=errors.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MongoCryptKMSRequestNetworkTimeoutError = exports.MongoCryptAzureKMSRequestError = exports.MongoCryptCreateEncryptedCollectionError = exports.MongoCryptCreateDataKeyError = exports.MongoCryptInvalidArgumentError = exports.MongoCryptError = void 0;\nconst error_1 = require(\"../error\");\n/**\n * @public\n * An error indicating that something went wrong specifically with MongoDB Client Encryption\n */\nclass MongoCryptError extends error_1.MongoError {\n /**\n * **Do not use this constructor!**\n *\n * Meant for internal use only.\n *\n * @remarks\n * This class is only meant to be constructed within the driver. This constructor is\n * not subject to semantic versioning compatibility guarantees and may change at any time.\n *\n * @public\n **/\n constructor(message, options = {}) {\n super(message, options);\n }\n get name() {\n return 'MongoCryptError';\n }\n}\nexports.MongoCryptError = MongoCryptError;\n/**\n * @public\n *\n * An error indicating an invalid argument was provided to an encryption API.\n */\nclass MongoCryptInvalidArgumentError extends MongoCryptError {\n /**\n * **Do not use this constructor!**\n *\n * Meant for internal use only.\n *\n * @remarks\n * This class is only meant to be constructed within the driver. This constructor is\n * not subject to semantic versioning compatibility guarantees and may change at any time.\n *\n * @public\n **/\n constructor(message) {\n super(message);\n }\n get name() {\n return 'MongoCryptInvalidArgumentError';\n }\n}\nexports.MongoCryptInvalidArgumentError = MongoCryptInvalidArgumentError;\n/**\n * @public\n * An error indicating that `ClientEncryption.createEncryptedCollection()` failed to create data keys\n */\nclass MongoCryptCreateDataKeyError extends MongoCryptError {\n /**\n * **Do not use this constructor!**\n *\n * Meant for internal use only.\n *\n * @remarks\n * This class is only meant to be constructed within the driver. This constructor is\n * not subject to semantic versioning compatibility guarantees and may change at any time.\n *\n * @public\n **/\n constructor(encryptedFields, { cause }) {\n super(`Unable to complete creating data keys: ${cause.message}`, { cause });\n this.encryptedFields = encryptedFields;\n }\n get name() {\n return 'MongoCryptCreateDataKeyError';\n }\n}\nexports.MongoCryptCreateDataKeyError = MongoCryptCreateDataKeyError;\n/**\n * @public\n * An error indicating that `ClientEncryption.createEncryptedCollection()` failed to create a collection\n */\nclass MongoCryptCreateEncryptedCollectionError extends MongoCryptError {\n /**\n * **Do not use this constructor!**\n *\n * Meant for internal use only.\n *\n * @remarks\n * This class is only meant to be constructed within the driver. This constructor is\n * not subject to semantic versioning compatibility guarantees and may change at any time.\n *\n * @public\n **/\n constructor(encryptedFields, { cause }) {\n super(`Unable to create collection: ${cause.message}`, { cause });\n this.encryptedFields = encryptedFields;\n }\n get name() {\n return 'MongoCryptCreateEncryptedCollectionError';\n }\n}\nexports.MongoCryptCreateEncryptedCollectionError = MongoCryptCreateEncryptedCollectionError;\n/**\n * @public\n * An error indicating that mongodb-client-encryption failed to auto-refresh Azure KMS credentials.\n */\nclass MongoCryptAzureKMSRequestError extends MongoCryptError {\n /**\n * **Do not use this constructor!**\n *\n * Meant for internal use only.\n *\n * @remarks\n * This class is only meant to be constructed within the driver. This constructor is\n * not subject to semantic versioning compatibility guarantees and may change at any time.\n *\n * @public\n **/\n constructor(message, body) {\n super(message);\n this.body = body;\n }\n get name() {\n return 'MongoCryptAzureKMSRequestError';\n }\n}\nexports.MongoCryptAzureKMSRequestError = MongoCryptAzureKMSRequestError;\n/** @public */\nclass MongoCryptKMSRequestNetworkTimeoutError extends MongoCryptError {\n get name() {\n return 'MongoCryptKMSRequestNetworkTimeoutError';\n }\n}\nexports.MongoCryptKMSRequestNetworkTimeoutError = MongoCryptKMSRequestNetworkTimeoutError;\n//# sourceMappingURL=errors.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,0CAA0C,QAAQ,iCAAiC,QAAQ,2CAA2C,QAAQ,+BAA+B,QAAQ,iCAAiC,QAAQ,kBAAkB,KAAK;CAC7P,MAAM;;;;;CAKN,IAAM,kBAAN,cAA8B,QAAQ,WAAW;;;;;;;;;;;;EAY7C,YAAY,SAAS,UAAU,EAAE,EAAE;AAC/B,SAAM,SAAS,QAAQ;;EAE3B,IAAI,OAAO;AACP,UAAO;;;AAGf,SAAQ,kBAAkB;;;;;;CAM1B,IAAM,iCAAN,cAA6C,gBAAgB;;;;;;;;;;;;EAYzD,YAAY,SAAS;AACjB,SAAM,QAAQ;;EAElB,IAAI,OAAO;AACP,UAAO;;;AAGf,SAAQ,iCAAiC;;;;;CAKzC,IAAM,+BAAN,cAA2C,gBAAgB;;;;;;;;;;;;EAYvD,YAAY,iBAAiB,EAAE,SAAS;AACpC,SAAM,0CAA0C,MAAM,WAAW,EAAE,OAAO,CAAC;AAC3E,QAAK,kBAAkB;;EAE3B,IAAI,OAAO;AACP,UAAO;;;AAGf,SAAQ,+BAA+B;;;;;CAKvC,IAAM,2CAAN,cAAuD,gBAAgB;;;;;;;;;;;;EAYnE,YAAY,iBAAiB,EAAE,SAAS;AACpC,SAAM,gCAAgC,MAAM,WAAW,EAAE,OAAO,CAAC;AACjE,QAAK,kBAAkB;;EAE3B,IAAI,OAAO;AACP,UAAO;;;AAGf,SAAQ,2CAA2C;;;;;CAKnD,IAAM,iCAAN,cAA6C,gBAAgB;;;;;;;;;;;;EAYzD,YAAY,SAAS,MAAM;AACvB,SAAM,QAAQ;AACd,QAAK,OAAO;;EAEhB,IAAI,OAAO;AACP,UAAO;;;AAGf,SAAQ,iCAAiC;;CAEzC,IAAM,0CAAN,cAAsD,gBAAgB;EAClE,IAAI,OAAO;AACP,UAAO;;;AAGf,SAAQ,0CAA0C"}
@@ -1,58 +0,0 @@
1
- import { __commonJSMin, __require } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_error } from "../error.mjs";
3
-
4
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.js
5
- var require_mongocryptd_manager = /* @__PURE__ */ __commonJSMin(((exports) => {
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.MongocryptdManager = void 0;
8
- const error_1 = require_error();
9
- /**
10
- * @internal
11
- * An internal class that handles spawning a mongocryptd.
12
- */
13
- var MongocryptdManager = class MongocryptdManager {
14
- constructor(extraOptions = {}) {
15
- this.spawnPath = "";
16
- this.spawnArgs = [];
17
- this.uri = typeof extraOptions.mongocryptdURI === "string" && extraOptions.mongocryptdURI.length > 0 ? extraOptions.mongocryptdURI : MongocryptdManager.DEFAULT_MONGOCRYPTD_URI;
18
- this.bypassSpawn = !!extraOptions.mongocryptdBypassSpawn;
19
- if (Object.hasOwn(extraOptions, "mongocryptdSpawnPath") && extraOptions.mongocryptdSpawnPath) this.spawnPath = extraOptions.mongocryptdSpawnPath;
20
- if (Object.hasOwn(extraOptions, "mongocryptdSpawnArgs") && Array.isArray(extraOptions.mongocryptdSpawnArgs)) this.spawnArgs = this.spawnArgs.concat(extraOptions.mongocryptdSpawnArgs);
21
- if (this.spawnArgs.filter((arg) => typeof arg === "string").every((arg) => arg.indexOf("--idleShutdownTimeoutSecs") < 0)) this.spawnArgs.push("--idleShutdownTimeoutSecs", "60");
22
- }
23
- /**
24
- * Will check to see if a mongocryptd is up. If it is not up, it will attempt
25
- * to spawn a mongocryptd in a detached process, and then wait for it to be up.
26
- */
27
- async spawn() {
28
- const cmdName = this.spawnPath || "mongocryptd";
29
- const { spawn } = __require("child_process");
30
- this._child = spawn(cmdName, this.spawnArgs, {
31
- stdio: "ignore",
32
- detached: true
33
- });
34
- this._child.on("error", () => {});
35
- this._child.unref();
36
- }
37
- /**
38
- * @returns the result of `fn` or rejects with an error.
39
- */
40
- async withRespawn(fn) {
41
- try {
42
- return await fn();
43
- } catch (err) {
44
- if (!(err instanceof error_1.MongoNetworkTimeoutError && !this.bypassSpawn)) throw err;
45
- }
46
- await this.spawn();
47
- return await fn();
48
- }
49
- };
50
- exports.MongocryptdManager = MongocryptdManager;
51
- MongocryptdManager.DEFAULT_MONGOCRYPTD_URI = "mongodb://localhost:27020";
52
- }));
53
-
54
- //#endregion
55
- export default require_mongocryptd_manager();
56
-
57
- export { require_mongocryptd_manager };
58
- //# sourceMappingURL=mongocryptd_manager.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mongocryptd_manager.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MongocryptdManager = void 0;\nconst error_1 = require(\"../error\");\n/**\n * @internal\n * An internal class that handles spawning a mongocryptd.\n */\nclass MongocryptdManager {\n constructor(extraOptions = {}) {\n this.spawnPath = '';\n this.spawnArgs = [];\n this.uri =\n typeof extraOptions.mongocryptdURI === 'string' && extraOptions.mongocryptdURI.length > 0\n ? extraOptions.mongocryptdURI\n : MongocryptdManager.DEFAULT_MONGOCRYPTD_URI;\n this.bypassSpawn = !!extraOptions.mongocryptdBypassSpawn;\n if (Object.hasOwn(extraOptions, 'mongocryptdSpawnPath') && extraOptions.mongocryptdSpawnPath) {\n this.spawnPath = extraOptions.mongocryptdSpawnPath;\n }\n if (Object.hasOwn(extraOptions, 'mongocryptdSpawnArgs') &&\n Array.isArray(extraOptions.mongocryptdSpawnArgs)) {\n this.spawnArgs = this.spawnArgs.concat(extraOptions.mongocryptdSpawnArgs);\n }\n if (this.spawnArgs\n .filter(arg => typeof arg === 'string')\n .every(arg => arg.indexOf('--idleShutdownTimeoutSecs') < 0)) {\n this.spawnArgs.push('--idleShutdownTimeoutSecs', '60');\n }\n }\n /**\n * Will check to see if a mongocryptd is up. If it is not up, it will attempt\n * to spawn a mongocryptd in a detached process, and then wait for it to be up.\n */\n async spawn() {\n const cmdName = this.spawnPath || 'mongocryptd';\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const { spawn } = require('child_process');\n // Spawned with stdio: ignore and detached: true\n // to ensure child can outlive parent.\n this._child = spawn(cmdName, this.spawnArgs, {\n stdio: 'ignore',\n detached: true\n });\n this._child.on('error', () => {\n // From the FLE spec:\n // \"The stdout and stderr of the spawned process MUST not be exposed in the driver\n // (e.g. redirect to /dev/null). Users can pass the argument --logpath to\n // extraOptions.mongocryptdSpawnArgs if they need to inspect mongocryptd logs.\n // If spawning is necessary, the driver MUST spawn mongocryptd whenever server\n // selection on the MongoClient to mongocryptd fails. If the MongoClient fails to\n // connect after spawning, the server selection error is propagated to the user.\"\n // The AutoEncrypter and MongoCryptdManager should work together to spawn\n // mongocryptd whenever necessary. Additionally, the `mongocryptd` intentionally\n // shuts down after 60s and gets respawned when necessary. We rely on server\n // selection timeouts when connecting to the `mongocryptd` to inform users that something\n // has been configured incorrectly. For those reasons, we suppress stderr from\n // the `mongocryptd` process and immediately unref the process.\n });\n // unref child to remove handle from event loop\n this._child.unref();\n }\n /**\n * @returns the result of `fn` or rejects with an error.\n */\n async withRespawn(fn) {\n try {\n const result = await fn();\n return result;\n }\n catch (err) {\n // If we are not bypassing spawning, then we should retry once on a MongoTimeoutError (server selection error)\n const shouldSpawn = err instanceof error_1.MongoNetworkTimeoutError && !this.bypassSpawn;\n if (!shouldSpawn) {\n throw err;\n }\n }\n await this.spawn();\n const result = await fn();\n return result;\n }\n}\nexports.MongocryptdManager = MongocryptdManager;\nMongocryptdManager.DEFAULT_MONGOCRYPTD_URI = 'mongodb://localhost:27020';\n//# sourceMappingURL=mongocryptd_manager.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,qBAAqB,KAAK;CAClC,MAAM;;;;;CAKN,IAAM,qBAAN,MAAM,mBAAmB;EACrB,YAAY,eAAe,EAAE,EAAE;AAC3B,QAAK,YAAY;AACjB,QAAK,YAAY,EAAE;AACnB,QAAK,MACD,OAAO,aAAa,mBAAmB,YAAY,aAAa,eAAe,SAAS,IAClF,aAAa,iBACb,mBAAmB;AAC7B,QAAK,cAAc,CAAC,CAAC,aAAa;AAClC,OAAI,OAAO,OAAO,cAAc,uBAAuB,IAAI,aAAa,qBACpE,MAAK,YAAY,aAAa;AAElC,OAAI,OAAO,OAAO,cAAc,uBAAuB,IACnD,MAAM,QAAQ,aAAa,qBAAqB,CAChD,MAAK,YAAY,KAAK,UAAU,OAAO,aAAa,qBAAqB;AAE7E,OAAI,KAAK,UACJ,QAAO,QAAO,OAAO,QAAQ,SAAS,CACtC,OAAM,QAAO,IAAI,QAAQ,4BAA4B,GAAG,EAAE,CAC3D,MAAK,UAAU,KAAK,6BAA6B,KAAK;;;;;;EAO9D,MAAM,QAAQ;GACV,MAAM,UAAU,KAAK,aAAa;GAElC,MAAM,EAAE,oBAAkB,gBAAgB;AAG1C,QAAK,SAAS,MAAM,SAAS,KAAK,WAAW;IACzC,OAAO;IACP,UAAU;IACb,CAAC;AACF,QAAK,OAAO,GAAG,eAAe,GAc5B;AAEF,QAAK,OAAO,OAAO;;;;;EAKvB,MAAM,YAAY,IAAI;AAClB,OAAI;AAEA,WADe,MAAM,IAAI;YAGtB,KAAK;AAGR,QAAI,EADgB,eAAe,QAAQ,4BAA4B,CAAC,KAAK,aAEzE,OAAM;;AAGd,SAAM,KAAK,OAAO;AAElB,UADe,MAAM,IAAI;;;AAIjC,SAAQ,qBAAqB;AAC7B,oBAAmB,0BAA0B"}
@@ -1,30 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_aws_temporary_credentials } from "../../cmap/auth/aws_temporary_credentials.mjs";
3
-
4
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.js
5
- var require_aws = /* @__PURE__ */ __commonJSMin(((exports) => {
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.loadAWSCredentials = loadAWSCredentials;
8
- const aws_temporary_credentials_1 = require_aws_temporary_credentials();
9
- /**
10
- * @internal
11
- */
12
- async function loadAWSCredentials(kmsProviders, provider) {
13
- const { SecretAccessKey = "", AccessKeyId = "", Token } = await new aws_temporary_credentials_1.AWSSDKCredentialProvider(provider).getCredentials();
14
- const aws = {
15
- secretAccessKey: SecretAccessKey,
16
- accessKeyId: AccessKeyId
17
- };
18
- Token != null && (aws.sessionToken = Token);
19
- return {
20
- ...kmsProviders,
21
- aws
22
- };
23
- }
24
- }));
25
-
26
- //#endregion
27
- export default require_aws();
28
-
29
- export { require_aws };
30
- //# sourceMappingURL=aws.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aws.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.loadAWSCredentials = loadAWSCredentials;\nconst aws_temporary_credentials_1 = require(\"../../cmap/auth/aws_temporary_credentials\");\n/**\n * @internal\n */\nasync function loadAWSCredentials(kmsProviders, provider) {\n const credentialProvider = new aws_temporary_credentials_1.AWSSDKCredentialProvider(provider);\n // We shouldn't ever receive a response from the AWS SDK that doesn't have a `SecretAccessKey`\n // or `AccessKeyId`. However, TS says these fields are optional. We provide empty strings\n // and let libmongocrypt error if we're unable to fetch the required keys.\n const { SecretAccessKey = '', AccessKeyId = '', Token } = await credentialProvider.getCredentials();\n const aws = {\n secretAccessKey: SecretAccessKey,\n accessKeyId: AccessKeyId\n };\n // the AWS session token is only required for temporary credentials so only attach it to the\n // result if it's present in the response from the aws sdk\n Token != null && (aws.sessionToken = Token);\n return { ...kmsProviders, aws };\n}\n//# sourceMappingURL=aws.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,qBAAqB;CAC7B,MAAM;;;;CAIN,eAAe,mBAAmB,cAAc,UAAU;EAKtD,MAAM,EAAE,kBAAkB,IAAI,cAAc,IAAI,UAAU,MAJ/B,IAAI,4BAA4B,yBAAyB,SAAS,CAIV,gBAAgB;EACnG,MAAM,MAAM;GACR,iBAAiB;GACjB,aAAa;GAChB;AAGD,WAAS,SAAS,IAAI,eAAe;AACrC,SAAO;GAAE,GAAG;GAAc;GAAK"}
@@ -1,135 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_error } from "../../error.mjs";
3
- import { require_utils } from "../../utils.mjs";
4
- import { require_errors } from "../errors.mjs";
5
-
6
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.js
7
- var require_azure = /* @__PURE__ */ __commonJSMin(((exports) => {
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.tokenCache = exports.AzureCredentialCache = exports.AZURE_BASE_URL = void 0;
10
- exports.addAzureParams = addAzureParams;
11
- exports.prepareRequest = prepareRequest;
12
- exports.fetchAzureKMSToken = fetchAzureKMSToken;
13
- exports.loadAzureCredentials = loadAzureCredentials;
14
- const error_1 = require_error();
15
- const utils_1 = require_utils();
16
- const errors_1 = require_errors();
17
- const MINIMUM_TOKEN_REFRESH_IN_MILLISECONDS = 6e3;
18
- /** Base URL for getting Azure tokens. */
19
- exports.AZURE_BASE_URL = "http://169.254.169.254/metadata/identity/oauth2/token?";
20
- /**
21
- * @internal
22
- */
23
- var AzureCredentialCache = class {
24
- constructor() {
25
- this.cachedToken = null;
26
- }
27
- async getToken() {
28
- if (this.cachedToken == null || this.needsRefresh(this.cachedToken)) this.cachedToken = await this._getToken();
29
- return { accessToken: this.cachedToken.accessToken };
30
- }
31
- needsRefresh(token) {
32
- return token.expiresOnTimestamp - Date.now() <= MINIMUM_TOKEN_REFRESH_IN_MILLISECONDS;
33
- }
34
- /**
35
- * exposed for testing
36
- */
37
- resetCache() {
38
- this.cachedToken = null;
39
- }
40
- /**
41
- * exposed for testing
42
- */
43
- _getToken() {
44
- return fetchAzureKMSToken();
45
- }
46
- };
47
- exports.AzureCredentialCache = AzureCredentialCache;
48
- /** @internal */
49
- exports.tokenCache = new AzureCredentialCache();
50
- /** @internal */
51
- async function parseResponse(response) {
52
- const { status, body: rawBody } = response;
53
- const body = (() => {
54
- try {
55
- return JSON.parse(rawBody);
56
- } catch {
57
- throw new errors_1.MongoCryptAzureKMSRequestError("Malformed JSON body in GET request.");
58
- }
59
- })();
60
- if (status !== 200) throw new errors_1.MongoCryptAzureKMSRequestError("Unable to complete request.", body);
61
- if (!body.access_token) throw new errors_1.MongoCryptAzureKMSRequestError("Malformed response body - missing field `access_token`.");
62
- if (!body.expires_in) throw new errors_1.MongoCryptAzureKMSRequestError("Malformed response body - missing field `expires_in`.");
63
- const expiresInMS = Number(body.expires_in) * 1e3;
64
- if (Number.isNaN(expiresInMS)) throw new errors_1.MongoCryptAzureKMSRequestError("Malformed response body - unable to parse int from `expires_in` field.");
65
- return {
66
- accessToken: body.access_token,
67
- expiresOnTimestamp: Date.now() + expiresInMS
68
- };
69
- }
70
- /**
71
- * @internal
72
- * Get the Azure endpoint URL.
73
- */
74
- function addAzureParams(url, resource, username) {
75
- url.searchParams.append("api-version", "2018-02-01");
76
- url.searchParams.append("resource", resource);
77
- if (username) url.searchParams.append("client_id", username);
78
- return url;
79
- }
80
- /**
81
- * @internal
82
- *
83
- * parses any options provided by prose tests to `fetchAzureKMSToken` and merges them with
84
- * the default values for headers and the request url.
85
- */
86
- function prepareRequest(options) {
87
- const url = new URL(options.url?.toString() ?? exports.AZURE_BASE_URL);
88
- addAzureParams(url, "https://vault.azure.net");
89
- return {
90
- headers: {
91
- ...options.headers,
92
- "Content-Type": "application/json",
93
- Metadata: true
94
- },
95
- url
96
- };
97
- }
98
- /**
99
- * @internal
100
- *
101
- * `AzureKMSRequestOptions` allows prose tests to modify the http request sent to the idms
102
- * servers. This is required to simulate different server conditions. No options are expected to
103
- * be set outside of tests.
104
- *
105
- * exposed for CSFLE
106
- * [prose test 18](https://github.com/mongodb/specifications/tree/master/source/client-side-encryption/tests#azure-imds-credentials)
107
- */
108
- async function fetchAzureKMSToken(options = {}) {
109
- const { headers, url } = prepareRequest(options);
110
- try {
111
- return await parseResponse(await (0, utils_1.get)(url, { headers }));
112
- } catch (error) {
113
- if (error instanceof error_1.MongoNetworkTimeoutError) throw new errors_1.MongoCryptAzureKMSRequestError(`[Azure KMS] ${error.message}`);
114
- throw error;
115
- }
116
- }
117
- /**
118
- * @internal
119
- *
120
- * @throws Will reject with a `MongoCryptError` if the http request fails or the http response is malformed.
121
- */
122
- async function loadAzureCredentials(kmsProviders) {
123
- const azure = await exports.tokenCache.getToken();
124
- return {
125
- ...kmsProviders,
126
- azure
127
- };
128
- }
129
- }));
130
-
131
- //#endregion
132
- export default require_azure();
133
-
134
- export { require_azure };
135
- //# sourceMappingURL=azure.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azure.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.tokenCache = exports.AzureCredentialCache = exports.AZURE_BASE_URL = void 0;\nexports.addAzureParams = addAzureParams;\nexports.prepareRequest = prepareRequest;\nexports.fetchAzureKMSToken = fetchAzureKMSToken;\nexports.loadAzureCredentials = loadAzureCredentials;\nconst error_1 = require(\"../../error\");\nconst utils_1 = require(\"../../utils\");\nconst errors_1 = require(\"../errors\");\nconst MINIMUM_TOKEN_REFRESH_IN_MILLISECONDS = 6000;\n/** Base URL for getting Azure tokens. */\nexports.AZURE_BASE_URL = 'http://169.254.169.254/metadata/identity/oauth2/token?';\n/**\n * @internal\n */\nclass AzureCredentialCache {\n constructor() {\n this.cachedToken = null;\n }\n async getToken() {\n if (this.cachedToken == null || this.needsRefresh(this.cachedToken)) {\n this.cachedToken = await this._getToken();\n }\n return { accessToken: this.cachedToken.accessToken };\n }\n needsRefresh(token) {\n const timeUntilExpirationMS = token.expiresOnTimestamp - Date.now();\n return timeUntilExpirationMS <= MINIMUM_TOKEN_REFRESH_IN_MILLISECONDS;\n }\n /**\n * exposed for testing\n */\n resetCache() {\n this.cachedToken = null;\n }\n /**\n * exposed for testing\n */\n _getToken() {\n return fetchAzureKMSToken();\n }\n}\nexports.AzureCredentialCache = AzureCredentialCache;\n/** @internal */\nexports.tokenCache = new AzureCredentialCache();\n/** @internal */\nasync function parseResponse(response) {\n const { status, body: rawBody } = response;\n const body = (() => {\n try {\n return JSON.parse(rawBody);\n }\n catch {\n throw new errors_1.MongoCryptAzureKMSRequestError('Malformed JSON body in GET request.');\n }\n })();\n if (status !== 200) {\n throw new errors_1.MongoCryptAzureKMSRequestError('Unable to complete request.', body);\n }\n if (!body.access_token) {\n throw new errors_1.MongoCryptAzureKMSRequestError('Malformed response body - missing field `access_token`.');\n }\n if (!body.expires_in) {\n throw new errors_1.MongoCryptAzureKMSRequestError('Malformed response body - missing field `expires_in`.');\n }\n const expiresInMS = Number(body.expires_in) * 1000;\n if (Number.isNaN(expiresInMS)) {\n throw new errors_1.MongoCryptAzureKMSRequestError('Malformed response body - unable to parse int from `expires_in` field.');\n }\n return {\n accessToken: body.access_token,\n expiresOnTimestamp: Date.now() + expiresInMS\n };\n}\n/**\n * @internal\n * Get the Azure endpoint URL.\n */\nfunction addAzureParams(url, resource, username) {\n url.searchParams.append('api-version', '2018-02-01');\n url.searchParams.append('resource', resource);\n if (username) {\n url.searchParams.append('client_id', username);\n }\n return url;\n}\n/**\n * @internal\n *\n * parses any options provided by prose tests to `fetchAzureKMSToken` and merges them with\n * the default values for headers and the request url.\n */\nfunction prepareRequest(options) {\n const url = new URL(options.url?.toString() ?? exports.AZURE_BASE_URL);\n addAzureParams(url, 'https://vault.azure.net');\n const headers = { ...options.headers, 'Content-Type': 'application/json', Metadata: true };\n return { headers, url };\n}\n/**\n * @internal\n *\n * `AzureKMSRequestOptions` allows prose tests to modify the http request sent to the idms\n * servers. This is required to simulate different server conditions. No options are expected to\n * be set outside of tests.\n *\n * exposed for CSFLE\n * [prose test 18](https://github.com/mongodb/specifications/tree/master/source/client-side-encryption/tests#azure-imds-credentials)\n */\nasync function fetchAzureKMSToken(options = {}) {\n const { headers, url } = prepareRequest(options);\n try {\n const response = await (0, utils_1.get)(url, { headers });\n return await parseResponse(response);\n }\n catch (error) {\n if (error instanceof error_1.MongoNetworkTimeoutError) {\n throw new errors_1.MongoCryptAzureKMSRequestError(`[Azure KMS] ${error.message}`);\n }\n throw error;\n }\n}\n/**\n * @internal\n *\n * @throws Will reject with a `MongoCryptError` if the http request fails or the http response is malformed.\n */\nasync function loadAzureCredentials(kmsProviders) {\n const azure = await exports.tokenCache.getToken();\n return { ...kmsProviders, azure };\n}\n//# sourceMappingURL=azure.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,aAAa,QAAQ,uBAAuB,QAAQ,iBAAiB,KAAK;AAClF,SAAQ,iBAAiB;AACzB,SAAQ,iBAAiB;AACzB,SAAQ,qBAAqB;AAC7B,SAAQ,uBAAuB;CAC/B,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM,wCAAwC;;AAE9C,SAAQ,iBAAiB;;;;CAIzB,IAAM,uBAAN,MAA2B;EACvB,cAAc;AACV,QAAK,cAAc;;EAEvB,MAAM,WAAW;AACb,OAAI,KAAK,eAAe,QAAQ,KAAK,aAAa,KAAK,YAAY,CAC/D,MAAK,cAAc,MAAM,KAAK,WAAW;AAE7C,UAAO,EAAE,aAAa,KAAK,YAAY,aAAa;;EAExD,aAAa,OAAO;AAEhB,UAD8B,MAAM,qBAAqB,KAAK,KAAK,IACnC;;;;;EAKpC,aAAa;AACT,QAAK,cAAc;;;;;EAKvB,YAAY;AACR,UAAO,oBAAoB;;;AAGnC,SAAQ,uBAAuB;;AAE/B,SAAQ,aAAa,IAAI,sBAAsB;;CAE/C,eAAe,cAAc,UAAU;EACnC,MAAM,EAAE,QAAQ,MAAM,YAAY;EAClC,MAAM,cAAc;AAChB,OAAI;AACA,WAAO,KAAK,MAAM,QAAQ;WAExB;AACF,UAAM,IAAI,SAAS,+BAA+B,sCAAsC;;MAE5F;AACJ,MAAI,WAAW,IACX,OAAM,IAAI,SAAS,+BAA+B,+BAA+B,KAAK;AAE1F,MAAI,CAAC,KAAK,aACN,OAAM,IAAI,SAAS,+BAA+B,0DAA0D;AAEhH,MAAI,CAAC,KAAK,WACN,OAAM,IAAI,SAAS,+BAA+B,wDAAwD;EAE9G,MAAM,cAAc,OAAO,KAAK,WAAW,GAAG;AAC9C,MAAI,OAAO,MAAM,YAAY,CACzB,OAAM,IAAI,SAAS,+BAA+B,yEAAyE;AAE/H,SAAO;GACH,aAAa,KAAK;GAClB,oBAAoB,KAAK,KAAK,GAAG;GACpC;;;;;;CAML,SAAS,eAAe,KAAK,UAAU,UAAU;AAC7C,MAAI,aAAa,OAAO,eAAe,aAAa;AACpD,MAAI,aAAa,OAAO,YAAY,SAAS;AAC7C,MAAI,SACA,KAAI,aAAa,OAAO,aAAa,SAAS;AAElD,SAAO;;;;;;;;CAQX,SAAS,eAAe,SAAS;EAC7B,MAAM,MAAM,IAAI,IAAI,QAAQ,KAAK,UAAU,IAAI,QAAQ,eAAe;AACtE,iBAAe,KAAK,0BAA0B;AAE9C,SAAO;GAAE,SADO;IAAE,GAAG,QAAQ;IAAS,gBAAgB;IAAoB,UAAU;IAAM;GACxE;GAAK;;;;;;;;;;;;CAY3B,eAAe,mBAAmB,UAAU,EAAE,EAAE;EAC5C,MAAM,EAAE,SAAS,QAAQ,eAAe,QAAQ;AAChD,MAAI;AAEA,UAAO,MAAM,cADI,OAAO,GAAG,QAAQ,KAAK,KAAK,EAAE,SAAS,CAAC,CACrB;WAEjC,OAAO;AACV,OAAI,iBAAiB,QAAQ,yBACzB,OAAM,IAAI,SAAS,+BAA+B,eAAe,MAAM,UAAU;AAErF,SAAM;;;;;;;;CAQd,eAAe,qBAAqB,cAAc;EAC9C,MAAM,QAAQ,MAAM,QAAQ,WAAW,UAAU;AACjD,SAAO;GAAE,GAAG;GAAc;GAAO"}
@@ -1,25 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_deps } from "../../deps.mjs";
3
-
4
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.js
5
- var require_gcp = /* @__PURE__ */ __commonJSMin(((exports) => {
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.loadGCPCredentials = loadGCPCredentials;
8
- const deps_1 = require_deps();
9
- /** @internal */
10
- async function loadGCPCredentials(kmsProviders) {
11
- const gcpMetadata = (0, deps_1.getGcpMetadata)();
12
- if ("kModuleError" in gcpMetadata) return kmsProviders;
13
- const { access_token: accessToken } = await gcpMetadata.instance({ property: "service-accounts/default/token" });
14
- return {
15
- ...kmsProviders,
16
- gcp: { accessToken }
17
- };
18
- }
19
- }));
20
-
21
- //#endregion
22
- export default require_gcp();
23
-
24
- export { require_gcp };
25
- //# sourceMappingURL=gcp.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gcp.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.loadGCPCredentials = loadGCPCredentials;\nconst deps_1 = require(\"../../deps\");\n/** @internal */\nasync function loadGCPCredentials(kmsProviders) {\n const gcpMetadata = (0, deps_1.getGcpMetadata)();\n if ('kModuleError' in gcpMetadata) {\n return kmsProviders;\n }\n const { access_token: accessToken } = await gcpMetadata.instance({\n property: 'service-accounts/default/token'\n });\n return { ...kmsProviders, gcp: { accessToken } };\n}\n//# sourceMappingURL=gcp.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,qBAAqB;CAC7B,MAAM;;CAEN,eAAe,mBAAmB,cAAc;EAC5C,MAAM,eAAe,GAAG,OAAO,iBAAiB;AAChD,MAAI,kBAAkB,YAClB,QAAO;EAEX,MAAM,EAAE,cAAc,gBAAgB,MAAM,YAAY,SAAS,EAC7D,UAAU,kCACb,CAAC;AACF,SAAO;GAAE,GAAG;GAAc,KAAK,EAAE,aAAa;GAAE"}
@@ -1,47 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_aws } from "./aws.mjs";
3
- import { require_azure } from "./azure.mjs";
4
- import { require_gcp } from "./gcp.mjs";
5
-
6
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.js
7
- var require_providers = /* @__PURE__ */ __commonJSMin(((exports) => {
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.isEmptyCredentials = isEmptyCredentials;
10
- exports.refreshKMSCredentials = refreshKMSCredentials;
11
- const aws_1 = require_aws();
12
- const azure_1 = require_azure();
13
- const gcp_1 = require_gcp();
14
- /**
15
- * Auto credential fetching should only occur when the provider is defined on the kmsProviders map
16
- * and the settings are an empty object.
17
- *
18
- * This is distinct from a nullish provider key.
19
- *
20
- * @internal - exposed for testing purposes only
21
- */
22
- function isEmptyCredentials(providerName, kmsProviders) {
23
- const provider = kmsProviders[providerName];
24
- if (provider == null) return false;
25
- return typeof provider === "object" && Object.keys(provider).length === 0;
26
- }
27
- /**
28
- * Load cloud provider credentials for the user provided KMS providers.
29
- * Credentials will only attempt to get loaded if they do not exist
30
- * and no existing credentials will get overwritten.
31
- *
32
- * @internal
33
- */
34
- async function refreshKMSCredentials(kmsProviders, credentialProviders) {
35
- let finalKMSProviders = kmsProviders;
36
- if (isEmptyCredentials("aws", kmsProviders)) finalKMSProviders = await (0, aws_1.loadAWSCredentials)(finalKMSProviders, credentialProviders?.aws);
37
- if (isEmptyCredentials("gcp", kmsProviders)) finalKMSProviders = await (0, gcp_1.loadGCPCredentials)(finalKMSProviders);
38
- if (isEmptyCredentials("azure", kmsProviders)) finalKMSProviders = await (0, azure_1.loadAzureCredentials)(finalKMSProviders);
39
- return finalKMSProviders;
40
- }
41
- }));
42
-
43
- //#endregion
44
- export default require_providers();
45
-
46
- export { require_providers };
47
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isEmptyCredentials = isEmptyCredentials;\nexports.refreshKMSCredentials = refreshKMSCredentials;\nconst aws_1 = require(\"./aws\");\nconst azure_1 = require(\"./azure\");\nconst gcp_1 = require(\"./gcp\");\n/**\n * Auto credential fetching should only occur when the provider is defined on the kmsProviders map\n * and the settings are an empty object.\n *\n * This is distinct from a nullish provider key.\n *\n * @internal - exposed for testing purposes only\n */\nfunction isEmptyCredentials(providerName, kmsProviders) {\n const provider = kmsProviders[providerName];\n if (provider == null) {\n return false;\n }\n return typeof provider === 'object' && Object.keys(provider).length === 0;\n}\n/**\n * Load cloud provider credentials for the user provided KMS providers.\n * Credentials will only attempt to get loaded if they do not exist\n * and no existing credentials will get overwritten.\n *\n * @internal\n */\nasync function refreshKMSCredentials(kmsProviders, credentialProviders) {\n let finalKMSProviders = kmsProviders;\n if (isEmptyCredentials('aws', kmsProviders)) {\n finalKMSProviders = await (0, aws_1.loadAWSCredentials)(finalKMSProviders, credentialProviders?.aws);\n }\n if (isEmptyCredentials('gcp', kmsProviders)) {\n finalKMSProviders = await (0, gcp_1.loadGCPCredentials)(finalKMSProviders);\n }\n if (isEmptyCredentials('azure', kmsProviders)) {\n finalKMSProviders = await (0, azure_1.loadAzureCredentials)(finalKMSProviders);\n }\n return finalKMSProviders;\n}\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,qBAAqB;AAC7B,SAAQ,wBAAwB;CAChC,MAAM;CACN,MAAM;CACN,MAAM;;;;;;;;;CASN,SAAS,mBAAmB,cAAc,cAAc;EACpD,MAAM,WAAW,aAAa;AAC9B,MAAI,YAAY,KACZ,QAAO;AAEX,SAAO,OAAO,aAAa,YAAY,OAAO,KAAK,SAAS,CAAC,WAAW;;;;;;;;;CAS5E,eAAe,sBAAsB,cAAc,qBAAqB;EACpE,IAAI,oBAAoB;AACxB,MAAI,mBAAmB,OAAO,aAAa,CACvC,qBAAoB,OAAO,GAAG,MAAM,oBAAoB,mBAAmB,qBAAqB,IAAI;AAExG,MAAI,mBAAmB,OAAO,aAAa,CACvC,qBAAoB,OAAO,GAAG,MAAM,oBAAoB,kBAAkB;AAE9E,MAAI,mBAAmB,SAAS,aAAa,CACzC,qBAAoB,OAAO,GAAG,QAAQ,sBAAsB,kBAAkB;AAElF,SAAO"}