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
@@ -5,7 +5,7 @@ interface PrismaConfig {
5
5
  /**
6
6
  * Database provider.
7
7
  */
8
- provider: "sqlite" | "cockroachdb" | "mysql" | "postgresql" | "sqlserver" | "mongodb";
8
+ provider: "sqlite" | "cockroachdb" | "mysql" | "postgresql" | "sqlserver";
9
9
  /**
10
10
  * Enable debug logs for the adapter
11
11
  *
@@ -191,7 +191,7 @@ const prismaAdapter = (prisma, config) => {
191
191
  adapterName: "Prisma Adapter",
192
192
  usePlural: config.usePlural ?? false,
193
193
  supportsUUIDs: config.provider === "postgresql" ? true : false,
194
- supportsArrays: config.provider === "postgresql" || config.provider === "mongodb" ? true : false,
194
+ supportsArrays: config.provider === "postgresql" ? true : false,
195
195
  transaction: config.transaction ?? false ? (cb) => prisma.$transaction((tx) => {
196
196
  return cb(createAdapterFactory({
197
197
  config: adapterOptions.config,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["prisma","and","or","orClause","andClause"],"sources":["../../../src/adapters/prisma-adapter/index.ts"],"sourcesContent":["import type { Awaitable, PecuniaOptions } from \"pecunia-core\";\nimport type {\n AdapterFactoryCreator,\n AdapterFactoryOptions,\n DBAdapter,\n DBAdapterDebugLogOption,\n Where,\n} from \"pecunia-core\";\nimport { createAdapterFactory } from \"pecunia-core\";\nimport { PecuniaError } from \"pecunia-core\";\n\nexport interface PrismaConfig {\n /**\n * Database provider.\n */\n provider:\n | \"sqlite\"\n | \"cockroachdb\"\n | \"mysql\"\n | \"postgresql\"\n | \"sqlserver\"\n | \"mongodb\";\n\n /**\n * Enable debug logs for the adapter\n *\n * @default false\n */\n debugLogs?: DBAdapterDebugLogOption | undefined;\n\n /**\n * Use plural table names\n *\n * @default false\n */\n usePlural?: boolean | undefined;\n\n /**\n * Whether to execute multiple operations in a transaction.\n *\n * If the database doesn't support transactions,\n * set this to `false` and operations will be executed sequentially.\n * @default false\n */\n transaction?: boolean | undefined;\n}\n\ninterface PrismaClient {}\n\ntype PrismaClientInternal = {\n $transaction: (\n callback: (db: PrismaClient) => Awaitable<any>,\n ) => Promise<any>;\n} & {\n [model: string]: {\n create: (data: any) => Promise<any>;\n findFirst: (data: any) => Promise<any>;\n findMany: (data: any) => Promise<any>;\n update: (data: any) => Promise<any>;\n updateMany: (data: any) => Promise<any>;\n delete: (data: any) => Promise<any>;\n count: (data: any) => Promise<any>;\n [key: string]: any;\n };\n};\n\nexport const prismaAdapter = (prisma: PrismaClient, config: PrismaConfig) => {\n let lazyOptions: PecuniaOptions | null = null;\n\n const createCustomAdapter =\n (prisma: PrismaClient): AdapterFactoryCreator =>\n ({ getFieldName }) => {\n const db = prisma as PrismaClientInternal;\n\n function operatorToPrismaOperator(operator: string) {\n switch (operator) {\n case \"starts_with\":\n return \"startsWith\";\n case \"ends_with\":\n return \"endsWith\";\n case \"ne\":\n return \"not\";\n case \"not_in\":\n return \"notIn\";\n default:\n return operator;\n }\n }\n\n const convertWhereClause = ({\n action,\n model,\n where,\n }: {\n model: string;\n where?: Where[] | undefined;\n action:\n | \"create\"\n | \"update\"\n | \"delete\"\n | \"findOne\"\n | \"findMany\"\n | \"count\"\n | \"updateMany\"\n | \"deleteMany\";\n }) => {\n if (!where || !where.length) return {};\n\n const buildSingleCondition = (w: Where) => {\n const fieldName = getFieldName({ model, field: w.field });\n\n // Prisma null semantics: \"not: null\" on nullable can behave unexpectedly;\n // for non-nullable fields it's a tautology. Skip.\n if (w.operator === \"ne\" && w.value === null) {\n return {};\n }\n\n if (\n (w.operator === \"in\" || w.operator === \"not_in\") &&\n Array.isArray(w.value)\n ) {\n const filtered = w.value.filter((v) => v != null);\n\n if (filtered.length === 0) {\n if (w.operator === \"in\") {\n return {\n AND: [\n { [fieldName]: { equals: \"__never__\" } },\n { [fieldName]: { not: \"__never__\" } },\n ],\n };\n }\n return {};\n }\n\n const prismaOp = operatorToPrismaOperator(w.operator);\n return { [fieldName]: { [prismaOp]: filtered } };\n }\n\n if (w.operator === \"eq\" || !w.operator) {\n return { [fieldName]: w.value };\n }\n\n return {\n [fieldName]: {\n [operatorToPrismaOperator(w.operator)]: w.value,\n },\n };\n };\n\n // Update: extract simple equality AND conditions to root (Prisma unique where)\n if (action === \"update\") {\n const and = where.filter(\n (w) => w.connector === \"AND\" || !w.connector,\n );\n const or = where.filter((w) => w.connector === \"OR\");\n\n const andSimple = and.filter(\n (w) => w.operator === \"eq\" || !w.operator,\n );\n const andComplex = and.filter(\n (w) => w.operator !== \"eq\" && w.operator !== undefined,\n );\n\n const andSimpleClause = andSimple.map((w) => buildSingleCondition(w));\n const andComplexClause = andComplex.map((w) =>\n buildSingleCondition(w),\n );\n const orClause = or.map((w) => buildSingleCondition(w));\n\n const result: Record<string, any> = {};\n for (const clause of andSimpleClause) Object.assign(result, clause);\n if (andComplexClause.length > 0) result.AND = andComplexClause;\n if (orClause.length > 0) result.OR = orClause;\n\n return result;\n }\n\n // Delete: extract id to root if present\n if (action === \"delete\") {\n const idCondition = where.find((w) => w.field === \"id\");\n if (idCondition) {\n const idFieldName = getFieldName({ model, field: \"id\" });\n const idClause = buildSingleCondition(idCondition);\n const remainingWhere = where.filter((w) => w.field !== \"id\");\n\n if (remainingWhere.length === 0) return idClause;\n\n const and = remainingWhere.filter(\n (w) => w.connector === \"AND\" || !w.connector,\n );\n const or = remainingWhere.filter((w) => w.connector === \"OR\");\n const andClause = and.map((w) => buildSingleCondition(w));\n const orClause = or.map((w) => buildSingleCondition(w));\n\n const result: Record<string, any> = {};\n\n if (idFieldName in idClause) {\n result[idFieldName] = (idClause as Record<string, any>)[\n idFieldName\n ];\n } else {\n Object.assign(result, idClause);\n }\n\n if (andClause.length > 0) result.AND = andClause;\n if (orClause.length > 0) result.OR = orClause;\n\n return result;\n }\n }\n\n if (where.length === 1) {\n return buildSingleCondition(where[0]!);\n }\n\n const and = where.filter((w) => w.connector === \"AND\" || !w.connector);\n const or = where.filter((w) => w.connector === \"OR\");\n\n const andClause = and.map((w) => buildSingleCondition(w));\n const orClause = or.map((w) => buildSingleCondition(w));\n\n return {\n ...(andClause.length ? { AND: andClause } : {}),\n ...(orClause.length ? { OR: orClause } : {}),\n };\n };\n\n return {\n async create({ model, data: values, select }) {\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n const result = await db[model]!.create({\n data: values,\n select: select\n ? Object.fromEntries(\n select.map((field) => [getFieldName({ model, field }), true]),\n )\n : undefined,\n });\n\n return result;\n },\n\n async findOne({ model, where, select }) {\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"findOne\",\n });\n\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n return await db[model]!.findFirst({\n where: whereClause,\n select: select\n ? Object.fromEntries(\n select.map((field) => [getFieldName({ model, field }), true]),\n )\n : undefined,\n });\n },\n\n async findMany({ model, where, limit, offset, sortBy }) {\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"findMany\",\n });\n\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n return await db[model]!.findMany({\n where: whereClause,\n take: limit || 100,\n skip: offset || 0,\n ...(sortBy?.field\n ? {\n orderBy: {\n [getFieldName({ model, field: sortBy.field })]:\n sortBy.direction === \"desc\" ? \"desc\" : \"asc\",\n },\n }\n : {}),\n select: undefined,\n });\n },\n\n async count({ model, where }) {\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"count\",\n });\n\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n return await db[model]!.count({ where: whereClause });\n },\n\n async update({ model, where, update }) {\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"update\",\n });\n\n return await db[model]!.update({\n where: whereClause,\n data: update,\n });\n },\n\n async updateMany({ model, where, update }) {\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"updateMany\",\n });\n\n const result = await db[model]!.updateMany({\n where: whereClause,\n data: update,\n });\n\n return result ? (result.count as number) : 0;\n },\n\n async delete({ model, where }) {\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"delete\",\n });\n\n try {\n await db[model]!.delete({ where: whereClause });\n } catch (e: any) {\n if (e?.meta?.cause === \"Record to delete does not exist.\") return;\n console.log(e);\n }\n },\n\n async deleteMany({ model, where }) {\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"deleteMany\",\n });\n\n const result = await db[model]!.deleteMany({\n where: whereClause,\n });\n\n return result ? (result.count as number) : 0;\n },\n\n options: config,\n };\n };\n\n let adapterOptions: AdapterFactoryOptions | null = null;\n\n adapterOptions = {\n config: {\n adapterId: \"prisma\",\n adapterName: \"Prisma Adapter\",\n usePlural: config.usePlural ?? false,\n supportsUUIDs: config.provider === \"postgresql\" ? true : false,\n supportsArrays:\n config.provider === \"postgresql\" || config.provider === \"mongodb\"\n ? true\n : false,\n transaction:\n (config.transaction ?? false)\n ? (cb) =>\n (prisma as PrismaClientInternal).$transaction((tx) => {\n const adapter = createAdapterFactory({\n config: adapterOptions!.config,\n adapter: createCustomAdapter(tx),\n })(lazyOptions!);\n return cb(adapter);\n })\n : false,\n },\n adapter: createCustomAdapter(prisma),\n };\n\n const adapter = createAdapterFactory(adapterOptions);\n\n return (options: PecuniaOptions): DBAdapter<PecuniaOptions> => {\n lazyOptions = options;\n return adapter(options);\n };\n};\n"],"mappings":";;;AAkEA,MAAa,iBAAiB,QAAsB,WAAyB;CAC3E,IAAI,cAAqC;CAEzC,MAAM,uBACH,cACA,EAAE,mBAAmB;EACpB,MAAM,KAAKA;EAEX,SAAS,yBAAyB,UAAkB;AAClD,WAAQ,UAAR;IACE,KAAK,cACH,QAAO;IACT,KAAK,YACH,QAAO;IACT,KAAK,KACH,QAAO;IACT,KA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AAQ,WAAW,EACzC,OAAO,aACR,CAAC;AAEF,WAAO,SAAU,OAAO,QAAmB;;GAG7C,SAAS;GACV;;CAGL,IAAI,iBAA+C;AAEnD,kBAAiB;EACf,QAAQ;GACN,WAAW;GACX,aAAa;GACb,WAAW,OAAO,aAAa;GAC/B,eAAe,OAAO,aAAa,eAAe,OAAO;GACzD,gBACE,OAAO,aAAa,gBAAgB,OAAO,aAAa,YACpD,OACA;GACN,aACG,OAAO,eAAe,SAClB,OACE,OAAgC,cAAc,OAAO;AAKpD,WAAO,GAJS,qBAAqB;KACnC,QAAQ,eAAgB;KACxB,SAAS,oBAAoB,GAAG;KACjC,CAAC,CAAC,YAAa,CACE;KAClB,GACJ;GACP;EACD,SAAS,oBAAoB,OAAO;EACrC;CAED,MAAM,UAAU,qBAAqB,eAAe;AAEpD,SAAQ,YAAuD;AAC7D,gBAAc;AACd,SAAO,QAAQ,QAAQ"}
1
+ {"version":3,"file":"index.mjs","names":["prisma","and","or","orClause","andClause"],"sources":["../../../src/adapters/prisma-adapter/index.ts"],"sourcesContent":["import type { Awaitable, PecuniaOptions } from \"pecunia-core\";\nimport type {\n AdapterFactoryCreator,\n AdapterFactoryOptions,\n DBAdapter,\n DBAdapterDebugLogOption,\n Where,\n} from \"pecunia-core\";\nimport { createAdapterFactory } from \"pecunia-core\";\nimport { PecuniaError } from \"pecunia-core\";\n\nexport interface PrismaConfig {\n /**\n * Database provider.\n */\n provider:\n | \"sqlite\"\n | \"cockroachdb\"\n | \"mysql\"\n | \"postgresql\"\n | \"sqlserver\"\n\n /**\n * Enable debug logs for the adapter\n *\n * @default false\n */\n debugLogs?: DBAdapterDebugLogOption | undefined;\n\n /**\n * Use plural table names\n *\n * @default false\n */\n usePlural?: boolean | undefined;\n\n /**\n * Whether to execute multiple operations in a transaction.\n *\n * If the database doesn't support transactions,\n * set this to `false` and operations will be executed sequentially.\n * @default false\n */\n transaction?: boolean | undefined;\n}\n\ninterface PrismaClient {}\n\ntype PrismaClientInternal = {\n $transaction: (\n callback: (db: PrismaClient) => Awaitable<any>,\n ) => Promise<any>;\n} & {\n [model: string]: {\n create: (data: any) => Promise<any>;\n findFirst: (data: any) => Promise<any>;\n findMany: (data: any) => Promise<any>;\n update: (data: any) => Promise<any>;\n updateMany: (data: any) => Promise<any>;\n delete: (data: any) => Promise<any>;\n count: (data: any) => Promise<any>;\n [key: string]: any;\n };\n};\n\nexport const prismaAdapter = (prisma: PrismaClient, config: PrismaConfig) => {\n let lazyOptions: PecuniaOptions | null = null;\n\n const createCustomAdapter =\n (prisma: PrismaClient): AdapterFactoryCreator =>\n ({ getFieldName }) => {\n const db = prisma as PrismaClientInternal;\n\n function operatorToPrismaOperator(operator: string) {\n switch (operator) {\n case \"starts_with\":\n return \"startsWith\";\n case \"ends_with\":\n return \"endsWith\";\n case \"ne\":\n return \"not\";\n case \"not_in\":\n return \"notIn\";\n default:\n return operator;\n }\n }\n\n const convertWhereClause = ({\n action,\n model,\n where,\n }: {\n model: string;\n where?: Where[] | undefined;\n action:\n | \"create\"\n | \"update\"\n | \"delete\"\n | \"findOne\"\n | \"findMany\"\n | \"count\"\n | \"updateMany\"\n | \"deleteMany\";\n }) => {\n if (!where || !where.length) return {};\n\n const buildSingleCondition = (w: Where) => {\n const fieldName = getFieldName({ model, field: w.field });\n\n // Prisma null semantics: \"not: null\" on nullable can behave unexpectedly;\n // for non-nullable fields it's a tautology. Skip.\n if (w.operator === \"ne\" && w.value === null) {\n return {};\n }\n\n if (\n (w.operator === \"in\" || w.operator === \"not_in\") &&\n Array.isArray(w.value)\n ) {\n const filtered = w.value.filter((v) => v != null);\n\n if (filtered.length === 0) {\n if (w.operator === \"in\") {\n return {\n AND: [\n { [fieldName]: { equals: \"__never__\" } },\n { [fieldName]: { not: \"__never__\" } },\n ],\n };\n }\n return {};\n }\n\n const prismaOp = operatorToPrismaOperator(w.operator);\n return { [fieldName]: { [prismaOp]: filtered } };\n }\n\n if (w.operator === \"eq\" || !w.operator) {\n return { [fieldName]: w.value };\n }\n\n return {\n [fieldName]: {\n [operatorToPrismaOperator(w.operator)]: w.value,\n },\n };\n };\n\n // Update: extract simple equality AND conditions to root (Prisma unique where)\n if (action === \"update\") {\n const and = where.filter(\n (w) => w.connector === \"AND\" || !w.connector,\n );\n const or = where.filter((w) => w.connector === \"OR\");\n\n const andSimple = and.filter(\n (w) => w.operator === \"eq\" || !w.operator,\n );\n const andComplex = and.filter(\n (w) => w.operator !== \"eq\" && w.operator !== undefined,\n );\n\n const andSimpleClause = andSimple.map((w) => buildSingleCondition(w));\n const andComplexClause = andComplex.map((w) =>\n buildSingleCondition(w),\n );\n const orClause = or.map((w) => buildSingleCondition(w));\n\n const result: Record<string, any> = {};\n for (const clause of andSimpleClause) Object.assign(result, clause);\n if (andComplexClause.length > 0) result.AND = andComplexClause;\n if (orClause.length > 0) result.OR = orClause;\n\n return result;\n }\n\n // Delete: extract id to root if present\n if (action === \"delete\") {\n const idCondition = where.find((w) => w.field === \"id\");\n if (idCondition) {\n const idFieldName = getFieldName({ model, field: \"id\" });\n const idClause = buildSingleCondition(idCondition);\n const remainingWhere = where.filter((w) => w.field !== \"id\");\n\n if (remainingWhere.length === 0) return idClause;\n\n const and = remainingWhere.filter(\n (w) => w.connector === \"AND\" || !w.connector,\n );\n const or = remainingWhere.filter((w) => w.connector === \"OR\");\n const andClause = and.map((w) => buildSingleCondition(w));\n const orClause = or.map((w) => buildSingleCondition(w));\n\n const result: Record<string, any> = {};\n\n if (idFieldName in idClause) {\n result[idFieldName] = (idClause as Record<string, any>)[\n idFieldName\n ];\n } else {\n Object.assign(result, idClause);\n }\n\n if (andClause.length > 0) result.AND = andClause;\n if (orClause.length > 0) result.OR = orClause;\n\n return result;\n }\n }\n\n if (where.length === 1) {\n return buildSingleCondition(where[0]!);\n }\n\n const and = where.filter((w) => w.connector === \"AND\" || !w.connector);\n const or = where.filter((w) => w.connector === \"OR\");\n\n const andClause = and.map((w) => buildSingleCondition(w));\n const orClause = or.map((w) => buildSingleCondition(w));\n\n return {\n ...(andClause.length ? { AND: andClause } : {}),\n ...(orClause.length ? { OR: orClause } : {}),\n };\n };\n\n return {\n async create({ model, data: values, select }) {\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n const result = await db[model]!.create({\n data: values,\n select: select\n ? Object.fromEntries(\n select.map((field) => [getFieldName({ model, field }), true]),\n )\n : undefined,\n });\n\n return result;\n },\n\n async findOne({ model, where, select }) {\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"findOne\",\n });\n\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n return await db[model]!.findFirst({\n where: whereClause,\n select: select\n ? Object.fromEntries(\n select.map((field) => [getFieldName({ model, field }), true]),\n )\n : undefined,\n });\n },\n\n async findMany({ model, where, limit, offset, sortBy }) {\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"findMany\",\n });\n\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n return await db[model]!.findMany({\n where: whereClause,\n take: limit || 100,\n skip: offset || 0,\n ...(sortBy?.field\n ? {\n orderBy: {\n [getFieldName({ model, field: sortBy.field })]:\n sortBy.direction === \"desc\" ? \"desc\" : \"asc\",\n },\n }\n : {}),\n select: undefined,\n });\n },\n\n async count({ model, where }) {\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"count\",\n });\n\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n return await db[model]!.count({ where: whereClause });\n },\n\n async update({ model, where, update }) {\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"update\",\n });\n\n return await db[model]!.update({\n where: whereClause,\n data: update,\n });\n },\n\n async updateMany({ model, where, update }) {\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"updateMany\",\n });\n\n const result = await db[model]!.updateMany({\n where: whereClause,\n data: update,\n });\n\n return result ? (result.count as number) : 0;\n },\n\n async delete({ model, where }) {\n if (!db[model]) {\n throw new PecuniaError(\n `Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`,\n );\n }\n\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"delete\",\n });\n\n try {\n await db[model]!.delete({ where: whereClause });\n } catch (e: any) {\n if (e?.meta?.cause === \"Record to delete does not exist.\") return;\n console.log(e);\n }\n },\n\n async deleteMany({ model, where }) {\n const whereClause = convertWhereClause({\n model,\n where,\n action: \"deleteMany\",\n });\n\n const result = await db[model]!.deleteMany({\n where: whereClause,\n });\n\n return result ? (result.count as number) : 0;\n },\n\n options: config,\n };\n };\n\n let adapterOptions: AdapterFactoryOptions | null = null;\n\n adapterOptions = {\n config: {\n adapterId: \"prisma\",\n adapterName: \"Prisma Adapter\",\n usePlural: config.usePlural ?? false,\n supportsUUIDs: config.provider === \"postgresql\" ? true : false,\n supportsArrays:\n config.provider === \"postgresql\"\n ? true\n : false,\n transaction:\n (config.transaction ?? false)\n ? (cb) =>\n (prisma as PrismaClientInternal).$transaction((tx) => {\n const adapter = createAdapterFactory({\n config: adapterOptions!.config,\n adapter: createCustomAdapter(tx),\n })(lazyOptions!);\n return cb(adapter);\n })\n : false,\n },\n adapter: createCustomAdapter(prisma),\n };\n\n const adapter = createAdapterFactory(adapterOptions);\n\n return (options: PecuniaOptions): DBAdapter<PecuniaOptions> => {\n lazyOptions = options;\n return adapter(options);\n };\n};\n"],"mappings":";;;AAiEA,MAAa,iBAAiB,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AC;aACxC,GAAQ;AACf,SAAI,GAAG,MAAM,UAAU,mCAAoC;AAC3D,aAAQ,IAAI,EAAE;;;GAIlB,MAAM,WAAW,EAAE,OAAO,SAAS;IACjC,MAAM,cAAc,mBAAmB;KACrC;KACA;KACA,QAAQ;KACT,CAAC;IAEF,MAAM,SAAS,MAAM,GAAG,OAAQ,WAAW,EACzC,OAAO,aACR,CAAC;AAEF,WAAO,SAAU,OAAO,QAAmB;;GAG7C,SAAS;GACV;;CAGL,IAAI,iBAA+C;AAEnD,kBAAiB;EACf,QAAQ;GACN,WAAW;GACX,aAAa;GACb,WAAW,OAAO,aAAa;GAC/B,eAAe,OAAO,aAAa,eAAe,OAAO;GACzD,gBACE,OAAO,aAAa,eAChB,OACA;GACN,aACG,OAAO,eAAe,SAClB,OACE,OAAgC,cAAc,OAAO;AAKpD,WAAO,GAJS,qBAAqB;KACnC,QAAQ,eAAgB;KACxB,SAAS,oBAAoB,GAAG;KACjC,CAAC,CAAC,YAAa,CACE;KAClB,GACJ;GACP;EACD,SAAS,oBAAoB,OAAO;EACrC;CAED,MAAM,UAAU,qBAAqB,eAAe;AAEpD,SAAQ,YAAuD;AAC7D,gBAAc;AACd,SAAO,QAAQ,QAAQ"}
package/dist/index.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { drizzleAdapter } from "./adapters/drizzle-adapter/index.mjs";
2
2
  import { kyselyAdapter } from "./adapters/kysely-adapter/index.mjs";
3
- import { mongodbAdapter } from "./adapters/mongodb-adapter/index.mjs";
4
3
  import { getMigrations, matchType } from "./db/migrations/index.mjs";
5
4
  import { getSchema } from "./db/schema/get-schema.mjs";
6
5
  import "./db/index.mjs";
@@ -10,4 +9,4 @@ export * from "pecunia-core";
10
9
  export * from "zod";
11
10
  export * from "zod/v4";
12
11
  export * from "zod/v4/core";
13
- export { drizzleAdapter, getAdapter, getMigrations, getSchema, kyselyAdapter, matchType, mongodbAdapter, pecunia };
12
+ export { drizzleAdapter, getAdapter, getMigrations, getSchema, kyselyAdapter, matchType, pecunia };
package/dist/index.mjs CHANGED
@@ -2,11 +2,10 @@ import { getSchema } from "./db/schema/get-schema.mjs";
2
2
  import { getMigrations, matchType } from "./db/migrations/index.mjs";
3
3
  import "./db/index.mjs";
4
4
  import { drizzleAdapter } from "./adapters/drizzle-adapter/index.mjs";
5
- import { mongodbAdapter } from "./adapters/mongodb-adapter/index.mjs";
6
5
  import { kyselyAdapter } from "./adapters/kysely-adapter/index.mjs";
7
6
  import { getAdapter } from "./adapters/get-adapter.mjs";
8
7
  import { pecunia } from "./payment/index.mjs";
9
8
 
10
9
  export * from "pecunia-core"
11
10
 
12
- export { drizzleAdapter, getAdapter, getMigrations, getSchema, kyselyAdapter, matchType, mongodbAdapter, pecunia };
11
+ export { drizzleAdapter, getAdapter, getMigrations, getSchema, kyselyAdapter, matchType, pecunia };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pecunia-root",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -57,16 +57,6 @@
57
57
  "dev-source": "./src/adapters/drizzle-adapter/index.ts",
58
58
  "types": "./dist/adapters/drizzle-adapter/index.d.mts",
59
59
  "default": "./dist/adapters/drizzle-adapter/index.mjs"
60
- },
61
- "./adapters/mongodb": {
62
- "dev-source": "./src/adapters/mongodb-adapter/index.ts",
63
- "types": "./dist/adapters/mongodb-adapter/index.d.mts",
64
- "default": "./dist/adapters/mongodb-adapter/index.mjs"
65
- },
66
- "./adapters": {
67
- "dev-source": "./src/adapters/index.ts",
68
- "types": "./dist/adapters/index.d.mts",
69
- "default": "./dist/adapters/index.mjs"
70
60
  }
71
61
  },
72
62
  "typesVersions": {
@@ -94,9 +84,6 @@
94
84
  ],
95
85
  "adapters/drizzle": [
96
86
  "./dist/adapters/drizzle/index.d.mts"
97
- ],
98
- "adapters/mongodb": [
99
- "./dist/adapters/mongodb/index.d.mts"
100
87
  ]
101
88
  }
102
89
  },
@@ -108,7 +95,7 @@
108
95
  "jose": "^6.1.0",
109
96
  "kysely": "^0.28.5",
110
97
  "nanostores": "^1.0.1",
111
- "pecunia-core": "^0.0.3",
98
+ "pecunia-core": "^0.0.4",
112
99
  "zod": "^4.1.12"
113
100
  },
114
101
  "devDependencies": {
@@ -122,7 +109,6 @@
122
109
  "drizzle-orm": "^0.41.0",
123
110
  "happy-dom": "^20.0.10",
124
111
  "listhen": "^1.9.0",
125
- "mongodb": "^6.18.0",
126
112
  "msw": "^2.12.4",
127
113
  "mysql2": "^3.14.4",
128
114
  "pg": "^8.16.3",
@@ -1,8 +0,0 @@
1
- import { createRequire } from "node:module";
2
-
3
- //#region rolldown:runtime
4
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
5
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
6
-
7
- //#endregion
8
- export { __commonJSMin, __require };
@@ -1,35 +0,0 @@
1
- import { DBAdapter, DBAdapterDebugLogOption, PecuniaOptions } from "pecunia-core";
2
- import { Db, MongoClient } from "mongodb";
3
-
4
- //#region src/adapters/mongodb-adapter/index.d.ts
5
- interface MongoDBAdapterConfig {
6
- /**
7
- * MongoDB client instance
8
- * If not provided, Database transactions won't be enabled.
9
- */
10
- client?: MongoClient | undefined;
11
- /**
12
- * Enable debug logs for the adapter
13
- *
14
- * @default false
15
- */
16
- debugLogs?: DBAdapterDebugLogOption | undefined;
17
- /**
18
- * Use plural table names
19
- *
20
- * @default false
21
- */
22
- usePlural?: boolean | undefined;
23
- /**
24
- * Whether to execute multiple operations in a transaction.
25
- *
26
- * If the database doesn't support transactions,
27
- * set this to `false` and operations will be executed sequentially.
28
- * @default false
29
- */
30
- transaction?: boolean | undefined;
31
- }
32
- declare const mongodbAdapter: (db: Db, config?: MongoDBAdapterConfig | undefined) => (options: PecuniaOptions) => DBAdapter<PecuniaOptions>;
33
- //#endregion
34
- export { MongoDBAdapterConfig, mongodbAdapter };
35
- //# sourceMappingURL=index.d.mts.map
@@ -1,314 +0,0 @@
1
- import { require_lib } from "../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs";
2
- import { createAdapterFactory } from "pecunia-core";
3
-
4
- //#region src/adapters/mongodb-adapter/index.ts
5
- var import_lib = require_lib();
6
- const mongodbAdapter = (db, config) => {
7
- let lazyOptions;
8
- const createCustomAdapter = (db$1, session) => ({ getFieldName, schema, getDefaultModelName, options }) => {
9
- function serializeID({ field, value, model }) {
10
- model = getDefaultModelName(model);
11
- if (field === "id" || field === "_id" || schema[model].fields[field]?.references?.field === "id") {
12
- if (value === null || value === void 0) return value;
13
- if (typeof value !== "string") {
14
- if (value instanceof import_lib.ObjectId) return value;
15
- if (Array.isArray(value)) return value.map((v) => {
16
- if (v === null || v === void 0) return v;
17
- if (typeof v === "string") try {
18
- return new import_lib.ObjectId(v);
19
- } catch {
20
- return v;
21
- }
22
- if (v instanceof import_lib.ObjectId) return v;
23
- throw new Error("Invalid id value, received: " + JSON.stringify(v));
24
- });
25
- throw new Error("Invalid id value, received: " + JSON.stringify(value));
26
- }
27
- try {
28
- return new import_lib.ObjectId(value);
29
- } catch {
30
- return value;
31
- }
32
- }
33
- return value;
34
- }
35
- function convertWhereClause({ where, model }) {
36
- if (!where.length) return {};
37
- const conditions = where.map((w) => {
38
- const { field: field_, value, operator = "eq", connector = "AND" } = w;
39
- let condition;
40
- let field = getFieldName({
41
- model,
42
- field: field_
43
- });
44
- if (field === "id") field = "_id";
45
- switch (operator.toLowerCase()) {
46
- case "eq":
47
- condition = { [field]: serializeID({
48
- field,
49
- value,
50
- model
51
- }) };
52
- break;
53
- case "in":
54
- condition = { [field]: { $in: Array.isArray(value) ? value.map((v) => serializeID({
55
- field,
56
- value: v,
57
- model
58
- })) : [serializeID({
59
- field,
60
- value,
61
- model
62
- })] } };
63
- break;
64
- case "not_in":
65
- condition = { [field]: { $nin: Array.isArray(value) ? value.map((v) => serializeID({
66
- field,
67
- value: v,
68
- model
69
- })) : [serializeID({
70
- field,
71
- value,
72
- model
73
- })] } };
74
- break;
75
- case "gt":
76
- condition = { [field]: { $gt: serializeID({
77
- field,
78
- value,
79
- model
80
- }) } };
81
- break;
82
- case "gte":
83
- condition = { [field]: { $gte: serializeID({
84
- field,
85
- value,
86
- model
87
- }) } };
88
- break;
89
- case "lt":
90
- condition = { [field]: { $lt: serializeID({
91
- field,
92
- value,
93
- model
94
- }) } };
95
- break;
96
- case "lte":
97
- condition = { [field]: { $lte: serializeID({
98
- field,
99
- value,
100
- model
101
- }) } };
102
- break;
103
- case "ne":
104
- condition = { [field]: { $ne: serializeID({
105
- field,
106
- value,
107
- model
108
- }) } };
109
- break;
110
- case "contains":
111
- condition = { [field]: { $regex: `.*${escapeForMongoRegex(value)}.*` } };
112
- break;
113
- case "starts_with":
114
- condition = { [field]: { $regex: `^${escapeForMongoRegex(value)}` } };
115
- break;
116
- case "ends_with":
117
- condition = { [field]: { $regex: `${escapeForMongoRegex(value)}$` } };
118
- break;
119
- default: throw new Error(`Unsupported operator: ${operator}`);
120
- }
121
- return {
122
- condition,
123
- connector
124
- };
125
- });
126
- if (conditions.length === 1) return conditions[0].condition;
127
- const andConditions = conditions.filter((c) => c.connector === "AND").map((c) => c.condition);
128
- const orConditions = conditions.filter((c) => c.connector === "OR").map((c) => c.condition);
129
- let clause = {};
130
- if (andConditions.length) clause = {
131
- ...clause,
132
- $and: andConditions
133
- };
134
- if (orConditions.length) clause = {
135
- ...clause,
136
- $or: orConditions
137
- };
138
- return clause;
139
- }
140
- return {
141
- async create({ model, data: values }) {
142
- return {
143
- _id: (await db$1.collection(model).insertOne(values, { session })).insertedId.toString(),
144
- ...values
145
- };
146
- },
147
- async findOne({ model, where, select }) {
148
- const pipeline = [where ? { $match: convertWhereClause({
149
- where,
150
- model
151
- }) } : { $match: {} }];
152
- if (select) {
153
- const projection = {};
154
- select.forEach((field) => {
155
- projection[getFieldName({
156
- field,
157
- model
158
- })] = 1;
159
- });
160
- pipeline.push({ $project: projection });
161
- }
162
- pipeline.push({ $limit: 1 });
163
- const res = await db$1.collection(model).aggregate(pipeline, { session }).toArray();
164
- if (!res || res.length === 0) return null;
165
- return res[0];
166
- },
167
- async findMany({ model, where, limit, offset, sortBy }) {
168
- const pipeline = [where ? { $match: convertWhereClause({
169
- where,
170
- model
171
- }) } : { $match: {} }];
172
- if (sortBy) pipeline.push({ $sort: { [getFieldName({
173
- field: sortBy.field,
174
- model
175
- })]: sortBy.direction === "desc" ? -1 : 1 } });
176
- if (offset) pipeline.push({ $skip: offset });
177
- if (limit) pipeline.push({ $limit: limit });
178
- return await db$1.collection(model).aggregate(pipeline, { session }).toArray();
179
- },
180
- async count({ model, where }) {
181
- const pipeline = [where ? { $match: convertWhereClause({
182
- where,
183
- model
184
- }) } : { $match: {} }, { $count: "total" }];
185
- const res = await db$1.collection(model).aggregate(pipeline, { session }).toArray();
186
- if (!res || res.length === 0) return 0;
187
- return res[0]?.total ?? 0;
188
- },
189
- async update({ model, where, update: values }) {
190
- const clause = convertWhereClause({
191
- where,
192
- model
193
- });
194
- const doc = (await db$1.collection(model).findOneAndUpdate(clause, { $set: values }, {
195
- session,
196
- returnDocument: "after",
197
- includeResultMetadata: true
198
- }))?.value ?? null;
199
- if (!doc) return null;
200
- return doc;
201
- },
202
- async updateMany({ model, where, update: values }) {
203
- const clause = convertWhereClause({
204
- where,
205
- model
206
- });
207
- return (await db$1.collection(model).updateMany(clause, { $set: values }, { session })).modifiedCount;
208
- },
209
- async delete({ model, where }) {
210
- const clause = convertWhereClause({
211
- where,
212
- model
213
- });
214
- await db$1.collection(model).deleteOne(clause, { session });
215
- },
216
- async deleteMany({ model, where }) {
217
- const clause = convertWhereClause({
218
- where,
219
- model
220
- });
221
- return (await db$1.collection(model).deleteMany(clause, { session })).deletedCount;
222
- }
223
- };
224
- };
225
- let lazyAdapter = null;
226
- let adapterOptions = null;
227
- adapterOptions = {
228
- config: {
229
- adapterId: "mongodb-adapter",
230
- adapterName: "MongoDB Adapter",
231
- usePlural: config?.usePlural ?? false,
232
- mapKeysTransformInput: { id: "_id" },
233
- mapKeysTransformOutput: { _id: "id" },
234
- supportsArrays: true,
235
- supportsNumericIds: false,
236
- transaction: config?.client && (config?.transaction ?? true) ? async (cb) => {
237
- if (!config.client) return cb(lazyAdapter(lazyOptions));
238
- const session = config.client.startSession();
239
- try {
240
- session.startTransaction();
241
- const result = await cb(createAdapterFactory({
242
- config: adapterOptions.config,
243
- adapter: createCustomAdapter(db, session)
244
- })(lazyOptions));
245
- await session.commitTransaction();
246
- return result;
247
- } catch (err) {
248
- await session.abortTransaction();
249
- throw err;
250
- } finally {
251
- await session.endSession();
252
- }
253
- } : false,
254
- customTransformInput({ action, data, field, fieldAttributes, options }) {
255
- if (field === "_id" || fieldAttributes.references?.field === "id") {
256
- if (action !== "create") return data;
257
- if (Array.isArray(data)) return data.map((v) => {
258
- if (typeof v === "string") try {
259
- return new import_lib.ObjectId(v);
260
- } catch {
261
- return v;
262
- }
263
- return v;
264
- });
265
- if (typeof data === "string") try {
266
- return new import_lib.ObjectId(data);
267
- } catch {
268
- return data;
269
- }
270
- if (fieldAttributes?.references?.field === "id" && !fieldAttributes?.required && data === null) return null;
271
- return new import_lib.ObjectId();
272
- }
273
- return data;
274
- },
275
- customTransformOutput({ data, field, fieldAttributes }) {
276
- if (field === "id" || fieldAttributes.references?.field === "id") {
277
- if (data instanceof import_lib.ObjectId) return data.toHexString();
278
- if (Array.isArray(data)) return data.map((v) => {
279
- if (v instanceof import_lib.ObjectId) return v.toHexString();
280
- return v;
281
- });
282
- return data;
283
- }
284
- return data;
285
- },
286
- customIdGenerator() {
287
- return new import_lib.ObjectId().toString();
288
- }
289
- },
290
- adapter: createCustomAdapter(db)
291
- };
292
- lazyAdapter = createAdapterFactory(adapterOptions);
293
- return (options) => {
294
- lazyOptions = options;
295
- return lazyAdapter(options);
296
- };
297
- };
298
- /**
299
- * Safely escape user input for use in a MongoDB regex.
300
- * This ensures the resulting pattern is treated as literal text,
301
- * and not as a regex with special syntax.
302
- *
303
- * @param input - The input string to escape. Any type that isn't a string will be converted to an empty string.
304
- * @param maxLength - The maximum length of the input string to escape. Defaults to 256. This is to prevent DOS attacks.
305
- * @returns The escaped string.
306
- */
307
- function escapeForMongoRegex(input, maxLength = 256) {
308
- if (typeof input !== "string") return "";
309
- return input.slice(0, maxLength).replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
310
- }
311
-
312
- //#endregion
313
- export { mongodbAdapter };
314
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":["ObjectId","db"],"sources":["../../../src/adapters/mongodb-adapter/index.ts"],"sourcesContent":["import type { PecuniaOptions } from \"pecunia-core\";\nimport type {\n AdapterFactoryCreator,\n AdapterFactoryOptions,\n DBAdapter,\n DBAdapterDebugLogOption,\n Where,\n} from \"pecunia-core\";\nimport { createAdapterFactory } from \"pecunia-core\";\nimport type { ClientSession, Db, MongoClient } from \"mongodb\";\nimport { ObjectId } from \"mongodb\";\n\nexport interface MongoDBAdapterConfig {\n /**\n * MongoDB client instance\n * If not provided, Database transactions won't be enabled.\n */\n client?: MongoClient | undefined;\n /**\n * Enable debug logs for the adapter\n *\n * @default false\n */\n debugLogs?: DBAdapterDebugLogOption | undefined;\n /**\n * Use plural table names\n *\n * @default false\n */\n usePlural?: boolean | undefined;\n /**\n * Whether to execute multiple operations in a transaction.\n *\n * If the database doesn't support transactions,\n * set this to `false` and operations will be executed sequentially.\n * @default false\n */\n transaction?: boolean | undefined;\n}\n\nexport const mongodbAdapter = (\n db: Db,\n config?: MongoDBAdapterConfig | undefined,\n) => {\n let lazyOptions: PecuniaOptions | null;\n\n const createCustomAdapter =\n (db: Db, session?: ClientSession | undefined): AdapterFactoryCreator =>\n ({ getFieldName, schema, getDefaultModelName, options }) => {\n function serializeID({\n field,\n value,\n model,\n }: {\n field: string;\n value: any;\n model: string;\n }) {\n model = getDefaultModelName(model);\n\n if (\n field === \"id\" ||\n field === \"_id\" ||\n schema[model]!.fields[field]?.references?.field === \"id\"\n ) {\n if (value === null || value === undefined) return value;\n\n if (typeof value !== \"string\") {\n if (value instanceof ObjectId) return value;\n\n if (Array.isArray(value)) {\n return value.map((v) => {\n if (v === null || v === undefined) return v;\n\n if (typeof v === \"string\") {\n try {\n return new ObjectId(v);\n } catch {\n return v;\n }\n }\n\n if (v instanceof ObjectId) return v;\n\n throw new Error(\n \"Invalid id value, received: \" + JSON.stringify(v),\n );\n });\n }\n\n throw new Error(\n \"Invalid id value, received: \" + JSON.stringify(value),\n );\n }\n\n try {\n return new ObjectId(value);\n } catch {\n return value;\n }\n }\n\n return value;\n }\n\n function convertWhereClause({\n where,\n model,\n }: {\n where: Where[];\n model: string;\n }) {\n if (!where.length) return {};\n\n const conditions = where.map((w) => {\n const {\n field: field_,\n value,\n operator = \"eq\",\n connector = \"AND\",\n } = w;\n\n let condition: any;\n let field = getFieldName({ model, field: field_ });\n if (field === \"id\") field = \"_id\";\n\n switch (operator.toLowerCase()) {\n case \"eq\":\n condition = {\n [field]: serializeID({ field, value, model }),\n };\n break;\n\n case \"in\":\n condition = {\n [field]: {\n $in: Array.isArray(value)\n ? value.map((v) => serializeID({ field, value: v, model }))\n : [serializeID({ field, value, model })],\n },\n };\n break;\n\n case \"not_in\":\n condition = {\n [field]: {\n $nin: Array.isArray(value)\n ? value.map((v) => serializeID({ field, value: v, model }))\n : [serializeID({ field, value, model })],\n },\n };\n break;\n\n case \"gt\":\n condition = {\n [field]: { $gt: serializeID({ field, value, model }) },\n };\n break;\n\n case \"gte\":\n condition = {\n [field]: { $gte: serializeID({ field, value, model }) },\n };\n break;\n\n case \"lt\":\n condition = {\n [field]: { $lt: serializeID({ field, value, model }) },\n };\n break;\n\n case \"lte\":\n condition = {\n [field]: { $lte: serializeID({ field, value, model }) },\n };\n break;\n\n case \"ne\":\n condition = {\n [field]: { $ne: serializeID({ field, value, model }) },\n };\n break;\n\n case \"contains\":\n condition = {\n [field]: {\n $regex: `.*${escapeForMongoRegex(value as string)}.*`,\n },\n };\n break;\n\n case \"starts_with\":\n condition = {\n [field]: {\n $regex: `^${escapeForMongoRegex(value as string)}`,\n },\n };\n break;\n\n case \"ends_with\":\n condition = {\n [field]: {\n $regex: `${escapeForMongoRegex(value as string)}$`,\n },\n };\n break;\n\n default:\n throw new Error(`Unsupported operator: ${operator}`);\n }\n\n return { condition, connector };\n });\n\n if (conditions.length === 1) {\n return conditions[0]!.condition;\n }\n\n const andConditions = conditions\n .filter((c) => c.connector === \"AND\")\n .map((c) => c.condition);\n\n const orConditions = conditions\n .filter((c) => c.connector === \"OR\")\n .map((c) => c.condition);\n\n let clause: any = {};\n if (andConditions.length) clause = { ...clause, $and: andConditions };\n if (orConditions.length) clause = { ...clause, $or: orConditions };\n\n return clause;\n }\n\n return {\n async create({ model, data: values }) {\n const res = await db.collection(model).insertOne(values, { session });\n const insertedData = { _id: res.insertedId.toString(), ...values };\n return insertedData as any;\n },\n\n async findOne({ model, where, select }) {\n const matchStage = where\n ? { $match: convertWhereClause({ where, model }) }\n : { $match: {} };\n\n const pipeline: any[] = [matchStage];\n\n if (select) {\n const projection: any = {};\n select.forEach((field) => {\n projection[getFieldName({ field, model })] = 1;\n });\n pipeline.push({ $project: projection });\n }\n\n pipeline.push({ $limit: 1 });\n\n const res = await db\n .collection(model)\n .aggregate(pipeline, { session })\n .toArray();\n\n if (!res || res.length === 0) return null;\n return res[0] as any;\n },\n\n async findMany({ model, where, limit, offset, sortBy }) {\n const matchStage = where\n ? { $match: convertWhereClause({ where, model }) }\n : { $match: {} };\n\n const pipeline: any[] = [matchStage];\n\n if (sortBy) {\n pipeline.push({\n $sort: {\n [getFieldName({ field: sortBy.field, model })]:\n sortBy.direction === \"desc\" ? -1 : 1,\n },\n });\n }\n\n if (offset) {\n pipeline.push({ $skip: offset });\n }\n\n if (limit) {\n pipeline.push({ $limit: limit });\n }\n\n const res = await db\n .collection(model)\n .aggregate(pipeline, { session })\n .toArray();\n\n return res as any;\n },\n\n async count({ model, where }) {\n const matchStage = where\n ? { $match: convertWhereClause({ where, model }) }\n : { $match: {} };\n\n const pipeline: any[] = [matchStage, { $count: \"total\" }];\n\n const res = await db\n .collection(model)\n .aggregate(pipeline, { session })\n .toArray();\n\n if (!res || res.length === 0) return 0;\n return res[0]?.total ?? 0;\n },\n\n async update({ model, where, update: values }) {\n const clause = convertWhereClause({ where, model });\n\n const res = await db.collection(model).findOneAndUpdate(\n clause,\n { $set: values as any },\n {\n session,\n returnDocument: \"after\",\n includeResultMetadata: true,\n },\n );\n\n const doc = (res as any)?.value ?? null;\n if (!doc) return null;\n return doc as any;\n },\n\n async updateMany({ model, where, update: values }) {\n const clause = convertWhereClause({ where, model });\n\n const res = await db\n .collection(model)\n .updateMany(clause, { $set: values as any }, { session });\n\n return res.modifiedCount;\n },\n\n async delete({ model, where }) {\n const clause = convertWhereClause({ where, model });\n await db.collection(model).deleteOne(clause, { session });\n },\n\n async deleteMany({ model, where }) {\n const clause = convertWhereClause({ where, model });\n const res = await db\n .collection(model)\n .deleteMany(clause, { session });\n return res.deletedCount;\n },\n };\n };\n\n let lazyAdapter:\n | ((options: PecuniaOptions) => DBAdapter<PecuniaOptions>)\n | null = null;\n\n let adapterOptions: AdapterFactoryOptions | null = null;\n\n adapterOptions = {\n config: {\n adapterId: \"mongodb-adapter\",\n adapterName: \"MongoDB Adapter\",\n usePlural: config?.usePlural ?? false,\n mapKeysTransformInput: {\n id: \"_id\",\n },\n mapKeysTransformOutput: {\n _id: \"id\",\n },\n supportsArrays: true,\n supportsNumericIds: false,\n transaction:\n config?.client && (config?.transaction ?? true)\n ? async (cb) => {\n if (!config.client) {\n return cb(lazyAdapter!(lazyOptions!));\n }\n\n const session = config.client.startSession();\n\n try {\n session.startTransaction();\n\n const adapter = createAdapterFactory({\n config: adapterOptions!.config,\n adapter: createCustomAdapter(db, session),\n })(lazyOptions!);\n\n const result = await cb(adapter);\n\n await session.commitTransaction();\n return result;\n } catch (err) {\n await session.abortTransaction();\n throw err;\n } finally {\n await session.endSession();\n }\n }\n : false,\n customTransformInput({ action, data, field, fieldAttributes, options }) {\n if (field === \"_id\" || fieldAttributes.references?.field === \"id\") {\n if (action !== \"create\") return data;\n\n if (Array.isArray(data)) {\n return data.map((v) => {\n if (typeof v === \"string\") {\n try {\n return new ObjectId(v);\n } catch {\n return v;\n }\n }\n return v;\n });\n }\n\n if (typeof data === \"string\") {\n try {\n return new ObjectId(data);\n } catch {\n return data;\n }\n }\n\n if (\n fieldAttributes?.references?.field === \"id\" &&\n !fieldAttributes?.required &&\n data === null\n ) {\n return null;\n }\n\n return new ObjectId();\n }\n\n return data;\n },\n customTransformOutput({ data, field, fieldAttributes }) {\n if (field === \"id\" || fieldAttributes.references?.field === \"id\") {\n if (data instanceof ObjectId) return data.toHexString();\n\n if (Array.isArray(data)) {\n return data.map((v) => {\n if (v instanceof ObjectId) return v.toHexString();\n return v;\n });\n }\n\n return data;\n }\n\n return data;\n },\n customIdGenerator() {\n return new ObjectId().toString();\n },\n },\n adapter: createCustomAdapter(db),\n };\n\n lazyAdapter = createAdapterFactory(adapterOptions);\n\n return (options: PecuniaOptions): DBAdapter<PecuniaOptions> => {\n lazyOptions = options;\n return lazyAdapter(options);\n };\n};\n\n/**\n * Safely escape user input for use in a MongoDB regex.\n * This ensures the resulting pattern is treated as literal text,\n * and not as a regex with special syntax.\n *\n * @param input - The input string to escape. Any type that isn't a string will be converted to an empty string.\n * @param maxLength - The maximum length of the input string to escape. Defaults to 256. This is to prevent DOS attacks.\n * @returns The escaped string.\n */\nfunction escapeForMongoRegex(input: string, maxLength = 256): string {\n if (typeof input !== \"string\") return \"\";\n\n // Escape all PCRE special characters\n // Source: PCRE docs — https://www.pcre.org/original/doc/html/pcrepattern.html\n return input.slice(0, maxLength).replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n"],"mappings":";;;;;AAwCA,MAAa,kBACX,IACA,WACG;CACH,IAAI;CAEJ,MAAM,uB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ACF,aAAO,IAAIA,oBAAS,KAAK;aACnB;AACN,aAAO;;AAIX,SACE,iBAAiB,YAAY,UAAU,QACvC,CAAC,iBAAiB,YAClB,SAAS,KAET,QAAO;AAGT,YAAO,IAAIA,qBAAU;;AAGvB,WAAO;;GAET,sBAAsB,EAAE,MAAM,OAAO,mBAAmB;AACtD,QAAI,UAAU,QAAQ,gBAAgB,YAAY,UAAU,MAAM;AAChE,SAAI,gBAAgBA,oBAAU,QAAO,KAAK,aAAa;AAEvD,SAAI,MAAM,QAAQ,KAAK,CACrB,QAAO,KAAK,KAAK,MAAM;AACrB,UAAI,aAAaA,oBAAU,QAAO,EAAE,aAAa;AACjD,aAAO;OACP;AAGJ,YAAO;;AAGT,WAAO;;GAET,oBAAoB;AAClB,WAAO,IAAIA,qBAAU,CAAC,UAAU;;GAEnC;EACD,SAAS,oBAAoB,GAAG;EACjC;AAED,eAAc,qBAAqB,eAAe;AAElD,SAAQ,YAAuD;AAC7D,gBAAc;AACd,SAAO,YAAY,QAAQ;;;;;;;;;;;;AAa/B,SAAS,oBAAoB,OAAe,YAAY,KAAa;AACnE,KAAI,OAAO,UAAU,SAAU,QAAO;AAItC,QAAO,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,uBAAuB,OAAO"}
@@ -1,14 +0,0 @@
1
- import { __commonJSMin, __require } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/@mongodb-js+saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.js
4
- var require_code_points_data = /* @__PURE__ */ __commonJSMin(((exports) => {
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const zlib_1 = __require("zlib");
7
- exports.default = (0, zlib_1.gunzipSync)(Buffer.from("H4sIAAAAAAACA+3dTYgcaRkA4LemO9Mhxm0FITnE9Cwr4jHgwgZ22B6YywqCJ0HQg5CL4sGTuOjCtGSF4CkHEW856MlTQHD3EJnWkU0Owh5VxE3LHlYQdNxd2U6mU59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f0eMTOH4cPlufv9VGgJOzqf8Fjm1APXkd7B7f5dF57GPMaWy/MTvjvNvtXj6h8W2+GXvnzXaseeeHEgAAAAAAAB7aQXeKlcGiadBoEOeLb2dtpGOL2MyOtf391a3P/zD96c3JzIP3t4oV797vrh8+vn+YRL5bBuj/AQAAAABqJvfHXQAAHkX82zfXAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACeAgkAAAAAAAAAqLuRLAAAAAAAAACA2hv9D1iu/VAYaAYA", "base64"));
8
- }));
9
-
10
- //#endregion
11
- export default require_code_points_data();
12
-
13
- export { require_code_points_data };
14
- //# sourceMappingURL=code-points-data.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"code-points-data.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@mongodb-js+saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst zlib_1 = require(\"zlib\");\nexports.default = (0, zlib_1.gunzipSync)(Buffer.from('H4sIAAAAAAACA+3dTYgcaRkA4LemO9Mhxm0FITnE9Cwr4jHgwgZ22B6YywqCJ0HQg5CL4sGTuOjCtGSF4CkHEW856MlTQHD3EJnWkU0Owh5VxE3LHlYQdNxd2U6mU59UV/d09fw4M2EySSXPAzNdP1/9fX/99bzVNZEN4jisRDulVFnQmLxm1aXF9Id/2/xMxNJ4XZlg576yuYlGt9gupV6xoFf8jhu9YvulVrFlp5XSx+lfvYhORGPXvqIRWSxERKtIm8bKFd10WNfKDS5Fo9jJWrq2+M2IlW+8uHgl/+BsROfPF4v5L7148Ur68Sha6dqZpYiVVy8tvLCWXo80Sf/lS89dGX2wHGvpzoXVn75/YWH5wmqe8uika82ViJXTy83Ve2k5Urozm38wm4/ls6t5uT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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACeAgkAAAAAAAAAqLuRLAAAAAAAAACA2hv9D1iu/VAYaAYA', 'base64'));\n//# sourceMappingURL=code-points-data.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;CAC7D,MAAM,mBAAiB,OAAO;AAC9B,SAAQ,WAAW,GAAG,OAAO,YAAY,OAAO,KAAK,onFAAonF,SAAS,CAAC"}