pecunia-root 0.1.0 → 0.1.1

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 (358) hide show
  1. package/dist/_virtual/rolldown_runtime.mjs +8 -0
  2. package/dist/adapters/drizzle-adapter/index.mjs +4 -1
  3. package/dist/adapters/drizzle-adapter/index.mjs.map +1 -1
  4. package/dist/adapters/mongodb-adapter/index.mjs +12 -11
  5. package/dist/adapters/mongodb-adapter/index.mjs.map +1 -1
  6. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs +14 -0
  7. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs.map +1 -0
  8. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs +54 -0
  9. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs.map +1 -0
  10. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs +36 -0
  11. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs.map +1 -0
  12. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs +27 -0
  13. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs.map +1 -0
  14. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs +3728 -0
  15. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs.map +1 -0
  16. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/column-builder.mjs +108 -0
  17. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/column-builder.mjs.map +1 -0
  18. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/column.mjs +55 -0
  19. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/column.mjs.map +1 -0
  20. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/entity.mjs +18 -0
  21. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/entity.mjs.map +1 -0
  22. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/columns/common.mjs +183 -0
  23. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/columns/common.mjs.map +1 -0
  24. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/columns/enum.mjs +35 -0
  25. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/columns/enum.mjs.map +1 -0
  26. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/foreign-keys.mjs +68 -0
  27. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/foreign-keys.mjs.map +1 -0
  28. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/unique-constraint.mjs +56 -0
  29. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/unique-constraint.mjs.map +1 -0
  30. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/utils/array.mjs +65 -0
  31. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/pg-core/utils/array.mjs.map +1 -0
  32. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/expressions/conditions.mjs +69 -0
  33. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/expressions/conditions.mjs.map +1 -0
  34. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/expressions/select.mjs +13 -0
  35. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/expressions/select.mjs.map +1 -0
  36. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/functions/aggregate.mjs +10 -0
  37. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/functions/aggregate.mjs.map +1 -0
  38. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/sql.mjs +366 -0
  39. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/sql/sql.mjs.map +1 -0
  40. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/subquery.mjs +22 -0
  41. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/subquery.mjs.map +1 -0
  42. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/table.mjs +62 -0
  43. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/table.mjs.map +1 -0
  44. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/table.utils.mjs +6 -0
  45. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/table.utils.mjs.map +1 -0
  46. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/tracing-utils.mjs +8 -0
  47. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/tracing-utils.mjs.map +1 -0
  48. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/tracing.mjs +8 -0
  49. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/tracing.mjs.map +1 -0
  50. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/view-common.mjs +6 -0
  51. package/dist/node_modules/.pnpm/drizzle-orm@0.41.0_@prisma_client@5.22.0_prisma@5.22.0__@types_better-sqlite3@7.6.13_@t_b8c798d02fdf3681c336f03696200539/node_modules/drizzle-orm/view-common.mjs.map +1 -0
  52. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs +137 -0
  53. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs.map +1 -0
  54. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs +211 -0
  55. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs.map +1 -0
  56. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs +95 -0
  57. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs.map +1 -0
  58. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs +158 -0
  59. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs.map +1 -0
  60. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs +195 -0
  61. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs.map +1 -0
  62. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs +710 -0
  63. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs.map +1 -0
  64. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs +53 -0
  65. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs.map +1 -0
  66. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs +63 -0
  67. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs.map +1 -0
  68. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs +368 -0
  69. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs.map +1 -0
  70. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs +234 -0
  71. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs.map +1 -0
  72. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs +545 -0
  73. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs.map +1 -0
  74. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs +83 -0
  75. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs.map +1 -0
  76. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs +146 -0
  77. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs.map +1 -0
  78. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs +58 -0
  79. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs.map +1 -0
  80. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs +30 -0
  81. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs.map +1 -0
  82. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs +135 -0
  83. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs.map +1 -0
  84. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs +25 -0
  85. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs.map +1 -0
  86. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs +47 -0
  87. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs.map +1 -0
  88. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs +362 -0
  89. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs.map +1 -0
  90. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs +58 -0
  91. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs.map +1 -0
  92. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs +123 -0
  93. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs.map +1 -0
  94. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs +128 -0
  95. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs.map +1 -0
  96. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs +133 -0
  97. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs.map +1 -0
  98. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs +126 -0
  99. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs.map +1 -0
  100. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs +79 -0
  101. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs.map +1 -0
  102. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs +65 -0
  103. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs.map +1 -0
  104. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs +127 -0
  105. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs.map +1 -0
  106. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs +47 -0
  107. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs.map +1 -0
  108. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs +44 -0
  109. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs.map +1 -0
  110. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs +101 -0
  111. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs.map +1 -0
  112. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs +33 -0
  113. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs.map +1 -0
  114. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs +53 -0
  115. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs.map +1 -0
  116. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs +29 -0
  117. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs.map +1 -0
  118. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs +83 -0
  119. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs.map +1 -0
  120. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs +36 -0
  121. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs.map +1 -0
  122. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs +32 -0
  123. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs.map +1 -0
  124. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs +206 -0
  125. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs.map +1 -0
  126. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs +45 -0
  127. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs.map +1 -0
  128. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs +213 -0
  129. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs.map +1 -0
  130. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs +411 -0
  131. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs.map +1 -0
  132. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs +288 -0
  133. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs.map +1 -0
  134. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs +423 -0
  135. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs.map +1 -0
  136. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs +483 -0
  137. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs.map +1 -0
  138. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs +207 -0
  139. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs.map +1 -0
  140. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs +116 -0
  141. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs.map +1 -0
  142. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs +183 -0
  143. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs.map +1 -0
  144. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs +55 -0
  145. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs.map +1 -0
  146. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs +60 -0
  147. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs.map +1 -0
  148. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs +139 -0
  149. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs.map +1 -0
  150. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs +28 -0
  151. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs.map +1 -0
  152. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs +117 -0
  153. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs.map +1 -0
  154. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs +182 -0
  155. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs.map +1 -0
  156. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs +304 -0
  157. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs.map +1 -0
  158. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs +34 -0
  159. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs.map +1 -0
  160. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs +739 -0
  161. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs.map +1 -0
  162. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs +805 -0
  163. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs.map +1 -0
  164. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs +174 -0
  165. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs.map +1 -0
  166. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs +726 -0
  167. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs.map +1 -0
  168. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs +172 -0
  169. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs.map +1 -0
  170. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs +103 -0
  171. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs.map +1 -0
  172. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs +66 -0
  173. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs.map +1 -0
  174. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs +41 -0
  175. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs.map +1 -0
  176. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs +365 -0
  177. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs.map +1 -0
  178. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs +50 -0
  179. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs.map +1 -0
  180. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs +48 -0
  181. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs.map +1 -0
  182. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs +23 -0
  183. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs.map +1 -0
  184. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs +106 -0
  185. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs.map +1 -0
  186. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs +428 -0
  187. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs.map +1 -0
  188. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs +124 -0
  189. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs.map +1 -0
  190. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs +95 -0
  191. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs.map +1 -0
  192. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs +1305 -0
  193. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs.map +1 -0
  194. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs +59 -0
  195. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs.map +1 -0
  196. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs +250 -0
  197. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs.map +1 -0
  198. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs +170 -0
  199. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs.map +1 -0
  200. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs +315 -0
  201. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs.map +1 -0
  202. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs +925 -0
  203. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs.map +1 -0
  204. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs +520 -0
  205. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs.map +1 -0
  206. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs +90 -0
  207. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs.map +1 -0
  208. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs +582 -0
  209. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs.map +1 -0
  210. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs +64 -0
  211. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs.map +1 -0
  212. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs +86 -0
  213. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs.map +1 -0
  214. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs +60 -0
  215. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs.map +1 -0
  216. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs +264 -0
  217. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs.map +1 -0
  218. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs +109 -0
  219. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs.map +1 -0
  220. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs +172 -0
  221. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs.map +1 -0
  222. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs +68 -0
  223. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs.map +1 -0
  224. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs +53 -0
  225. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs.map +1 -0
  226. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs +123 -0
  227. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs.map +1 -0
  228. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs +119 -0
  229. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs.map +1 -0
  230. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs +65 -0
  231. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs.map +1 -0
  232. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs +97 -0
  233. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs.map +1 -0
  234. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs +47 -0
  235. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs.map +1 -0
  236. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs +188 -0
  237. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs.map +1 -0
  238. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs +103 -0
  239. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs.map +1 -0
  240. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs +136 -0
  241. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs.map +1 -0
  242. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs +61 -0
  243. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs.map +1 -0
  244. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs +179 -0
  245. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs.map +1 -0
  246. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs +77 -0
  247. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs.map +1 -0
  248. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs +48 -0
  249. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs.map +1 -0
  250. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs +60 -0
  251. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs.map +1 -0
  252. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs +43 -0
  253. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs.map +1 -0
  254. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs +105 -0
  255. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs.map +1 -0
  256. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs +50 -0
  257. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs.map +1 -0
  258. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs +39 -0
  259. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs.map +1 -0
  260. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs +49 -0
  261. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs.map +1 -0
  262. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs +58 -0
  263. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs.map +1 -0
  264. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs +46 -0
  265. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs.map +1 -0
  266. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs +48 -0
  267. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs.map +1 -0
  268. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs +46 -0
  269. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs.map +1 -0
  270. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs +67 -0
  271. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs.map +1 -0
  272. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs +37 -0
  273. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs.map +1 -0
  274. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs +171 -0
  275. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs.map +1 -0
  276. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs +45 -0
  277. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs.map +1 -0
  278. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs +71 -0
  279. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs.map +1 -0
  280. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs +165 -0
  281. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs.map +1 -0
  282. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs +62 -0
  283. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs.map +1 -0
  284. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs +51 -0
  285. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs.map +1 -0
  286. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs +156 -0
  287. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs.map +1 -0
  288. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs +477 -0
  289. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs.map +1 -0
  290. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs +315 -0
  291. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs.map +1 -0
  292. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs +157 -0
  293. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs.map +1 -0
  294. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs +184 -0
  295. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs.map +1 -0
  296. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs +96 -0
  297. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs.map +1 -0
  298. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs +107 -0
  299. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs.map +1 -0
  300. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs +540 -0
  301. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs.map +1 -0
  302. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs +298 -0
  303. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs.map +1 -0
  304. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs +623 -0
  305. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs.map +1 -0
  306. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs +91 -0
  307. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs.map +1 -0
  308. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs +254 -0
  309. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs.map +1 -0
  310. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs +138 -0
  311. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs.map +1 -0
  312. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs +993 -0
  313. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs.map +1 -0
  314. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs +81 -0
  315. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs.map +1 -0
  316. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs +171 -0
  317. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs.map +1 -0
  318. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs +295 -0
  319. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs.map +1 -0
  320. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs +81 -0
  321. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs.map +1 -0
  322. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs +206 -0
  323. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs.map +1 -0
  324. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs +33590 -0
  325. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs.map +1 -0
  326. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs +37 -0
  327. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs.map +1 -0
  328. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs +18 -0
  329. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs.map +1 -0
  330. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs +252 -0
  331. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs.map +1 -0
  332. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs +41 -0
  333. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs.map +1 -0
  334. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs +41 -0
  335. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs.map +1 -0
  336. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs +173 -0
  337. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs.map +1 -0
  338. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs +334 -0
  339. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs.map +1 -0
  340. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs +90 -0
  341. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs.map +1 -0
  342. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs +356 -0
  343. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs.map +1 -0
  344. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs +23 -0
  345. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs.map +1 -0
  346. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs +29 -0
  347. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs.map +1 -0
  348. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs +140 -0
  349. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs.map +1 -0
  350. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs +831 -0
  351. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs.map +1 -0
  352. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs +77 -0
  353. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs.map +1 -0
  354. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs +147 -0
  355. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs.map +1 -0
  356. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs +17 -0
  357. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs.map +1 -0
  358. package/package.json +1 -39
@@ -0,0 +1,582 @@
1
+ import { __commonJSMin, __require } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_bson } from "./bson.mjs";
3
+ import { require_constants } from "./constants.mjs";
4
+ import { require_utils } from "./utils.mjs";
5
+
6
+ //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.js
7
+ var require_mongo_logger = /* @__PURE__ */ __commonJSMin(((exports) => {
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.MongoLogger = exports.MongoLoggableComponent = exports.SEVERITY_LEVEL_MAP = exports.DEFAULT_MAX_DOCUMENT_LENGTH = exports.SeverityLevel = void 0;
10
+ exports.parseSeverityFromString = parseSeverityFromString;
11
+ exports.createStdioLogger = createStdioLogger;
12
+ exports.stringifyWithMaxLen = stringifyWithMaxLen;
13
+ exports.defaultLogTransform = defaultLogTransform;
14
+ const util_1 = __require("util");
15
+ const bson_1 = require_bson();
16
+ const constants_1 = require_constants();
17
+ const utils_1 = require_utils();
18
+ /**
19
+ * @public
20
+ * Severity levels align with unix syslog.
21
+ * Most typical driver functions will log to debug.
22
+ */
23
+ exports.SeverityLevel = Object.freeze({
24
+ EMERGENCY: "emergency",
25
+ ALERT: "alert",
26
+ CRITICAL: "critical",
27
+ ERROR: "error",
28
+ WARNING: "warn",
29
+ NOTICE: "notice",
30
+ INFORMATIONAL: "info",
31
+ DEBUG: "debug",
32
+ TRACE: "trace",
33
+ OFF: "off"
34
+ });
35
+ /** @internal */
36
+ exports.DEFAULT_MAX_DOCUMENT_LENGTH = 1e3;
37
+ /** @internal */
38
+ var SeverityLevelMap = class extends Map {
39
+ constructor(entries) {
40
+ const newEntries = [];
41
+ for (const [level, value] of entries) newEntries.push([value, level]);
42
+ newEntries.push(...entries);
43
+ super(newEntries);
44
+ }
45
+ getNumericSeverityLevel(severity) {
46
+ return this.get(severity);
47
+ }
48
+ getSeverityLevelName(level) {
49
+ return this.get(level);
50
+ }
51
+ };
52
+ /** @internal */
53
+ exports.SEVERITY_LEVEL_MAP = new SeverityLevelMap([
54
+ [exports.SeverityLevel.OFF, -Infinity],
55
+ [exports.SeverityLevel.EMERGENCY, 0],
56
+ [exports.SeverityLevel.ALERT, 1],
57
+ [exports.SeverityLevel.CRITICAL, 2],
58
+ [exports.SeverityLevel.ERROR, 3],
59
+ [exports.SeverityLevel.WARNING, 4],
60
+ [exports.SeverityLevel.NOTICE, 5],
61
+ [exports.SeverityLevel.INFORMATIONAL, 6],
62
+ [exports.SeverityLevel.DEBUG, 7],
63
+ [exports.SeverityLevel.TRACE, 8]
64
+ ]);
65
+ /** @public */
66
+ exports.MongoLoggableComponent = Object.freeze({
67
+ COMMAND: "command",
68
+ TOPOLOGY: "topology",
69
+ SERVER_SELECTION: "serverSelection",
70
+ CONNECTION: "connection",
71
+ CLIENT: "client"
72
+ });
73
+ /**
74
+ * Parses a string as one of SeverityLevel
75
+ * @internal
76
+ *
77
+ * @param s - the value to be parsed
78
+ * @returns one of SeverityLevel if value can be parsed as such, otherwise null
79
+ */
80
+ function parseSeverityFromString(s) {
81
+ const validSeverities = Object.values(exports.SeverityLevel);
82
+ const lowerSeverity = s?.toLowerCase();
83
+ if (lowerSeverity != null && validSeverities.includes(lowerSeverity)) return lowerSeverity;
84
+ return null;
85
+ }
86
+ /** @internal */
87
+ function createStdioLogger(stream) {
88
+ return { write: (0, util_1.promisify)((log, cb) => {
89
+ const logLine = (0, util_1.inspect)(log, {
90
+ compact: true,
91
+ breakLength: Infinity
92
+ });
93
+ stream.write(`${logLine}\n`, "utf-8", cb);
94
+ }) };
95
+ }
96
+ /**
97
+ * resolves the MONGODB_LOG_PATH and mongodbLogPath options from the environment and the
98
+ * mongo client options respectively. The mongodbLogPath can be either 'stdout', 'stderr', a NodeJS
99
+ * Writable or an object which has a `write` method with the signature:
100
+ * ```ts
101
+ * write(log: Log): void
102
+ * ```
103
+ *
104
+ * @returns the MongoDBLogWritable object to write logs to
105
+ */
106
+ function resolveLogPath({ MONGODB_LOG_PATH }, { mongodbLogPath }) {
107
+ if (typeof mongodbLogPath === "string" && /^stderr$/i.test(mongodbLogPath)) return {
108
+ mongodbLogPath: createStdioLogger(process.stderr),
109
+ mongodbLogPathIsStdErr: true
110
+ };
111
+ if (typeof mongodbLogPath === "string" && /^stdout$/i.test(mongodbLogPath)) return {
112
+ mongodbLogPath: createStdioLogger(process.stdout),
113
+ mongodbLogPathIsStdErr: false
114
+ };
115
+ if (typeof mongodbLogPath === "object" && typeof mongodbLogPath?.write === "function") return {
116
+ mongodbLogPath,
117
+ mongodbLogPathIsStdErr: false
118
+ };
119
+ if (MONGODB_LOG_PATH && /^stderr$/i.test(MONGODB_LOG_PATH)) return {
120
+ mongodbLogPath: createStdioLogger(process.stderr),
121
+ mongodbLogPathIsStdErr: true
122
+ };
123
+ if (MONGODB_LOG_PATH && /^stdout$/i.test(MONGODB_LOG_PATH)) return {
124
+ mongodbLogPath: createStdioLogger(process.stdout),
125
+ mongodbLogPathIsStdErr: false
126
+ };
127
+ return {
128
+ mongodbLogPath: createStdioLogger(process.stderr),
129
+ mongodbLogPathIsStdErr: true
130
+ };
131
+ }
132
+ function resolveSeverityConfiguration(clientOption, environmentOption, defaultSeverity) {
133
+ return parseSeverityFromString(clientOption) ?? parseSeverityFromString(environmentOption) ?? defaultSeverity;
134
+ }
135
+ function compareSeverity(s0, s1) {
136
+ const s0Num = exports.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(s0);
137
+ const s1Num = exports.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(s1);
138
+ return s0Num < s1Num ? -1 : s0Num > s1Num ? 1 : 0;
139
+ }
140
+ /** @internal */
141
+ function stringifyWithMaxLen(value, maxDocumentLength, options = {}) {
142
+ let strToTruncate = "";
143
+ let currentLength = 0;
144
+ const maxDocumentLengthEnsurer = function maxDocumentLengthEnsurer$1(key, value$1) {
145
+ if (currentLength >= maxDocumentLength) return;
146
+ if (key === "") {
147
+ currentLength += 1;
148
+ return value$1;
149
+ }
150
+ currentLength += key.length + 4;
151
+ if (value$1 == null) return value$1;
152
+ switch (typeof value$1) {
153
+ case "string":
154
+ currentLength += value$1.length + 2;
155
+ break;
156
+ case "number":
157
+ case "bigint":
158
+ currentLength += String(value$1).length;
159
+ break;
160
+ case "boolean":
161
+ currentLength += value$1 ? 4 : 5;
162
+ break;
163
+ case "object": if ((0, utils_1.isUint8Array)(value$1)) currentLength += 22 + value$1.byteLength + value$1.byteLength * .33 + 18 | 0;
164
+ else if ("_bsontype" in value$1) {
165
+ const v = value$1;
166
+ switch (v._bsontype) {
167
+ case "Int32":
168
+ currentLength += String(v.value).length;
169
+ break;
170
+ case "Double":
171
+ currentLength += (v.value | 0) === v.value ? String(v.value).length + 2 : String(v.value).length;
172
+ break;
173
+ case "Long":
174
+ currentLength += v.toString().length;
175
+ break;
176
+ case "ObjectId":
177
+ currentLength += 35;
178
+ break;
179
+ case "MaxKey":
180
+ case "MinKey":
181
+ currentLength += 13;
182
+ break;
183
+ case "Binary":
184
+ currentLength += 22 + value$1.position + value$1.position * .33 + 18 | 0;
185
+ break;
186
+ case "Timestamp":
187
+ currentLength += 19 + String(v.t).length + 5 + String(v.i).length + 2;
188
+ break;
189
+ case "Code":
190
+ if (v.scope == null) currentLength += v.code.length + 10 + 2;
191
+ else currentLength += v.code.length + 10 + 11;
192
+ break;
193
+ case "BSONRegExp":
194
+ currentLength += 34 + v.pattern.length + 13 + v.options.length + 3;
195
+ break;
196
+ }
197
+ }
198
+ }
199
+ return value$1;
200
+ };
201
+ if (typeof value === "string") strToTruncate = value;
202
+ else if (typeof value === "function") strToTruncate = value.name;
203
+ else try {
204
+ if (maxDocumentLength !== 0) strToTruncate = bson_1.EJSON.stringify(value, maxDocumentLengthEnsurer, 0, options);
205
+ else strToTruncate = bson_1.EJSON.stringify(value, options);
206
+ } catch (e) {
207
+ strToTruncate = `Extended JSON serialization failed with: ${e.message}`;
208
+ }
209
+ if (maxDocumentLength !== 0 && strToTruncate.length > maxDocumentLength && strToTruncate.charCodeAt(maxDocumentLength - 1) !== strToTruncate.codePointAt(maxDocumentLength - 1)) {
210
+ maxDocumentLength--;
211
+ if (maxDocumentLength === 0) return "";
212
+ }
213
+ return maxDocumentLength !== 0 && strToTruncate.length > maxDocumentLength ? `${strToTruncate.slice(0, maxDocumentLength)}...` : strToTruncate;
214
+ }
215
+ function isLogConvertible(obj) {
216
+ const objAsLogConvertible = obj;
217
+ return objAsLogConvertible.toLog !== void 0 && typeof objAsLogConvertible.toLog === "function";
218
+ }
219
+ function attachServerSelectionFields(log, serverSelectionEvent, maxDocumentLength = exports.DEFAULT_MAX_DOCUMENT_LENGTH) {
220
+ const { selector, operation, topologyDescription, message } = serverSelectionEvent;
221
+ log.selector = stringifyWithMaxLen(selector, maxDocumentLength);
222
+ log.operation = operation;
223
+ log.topologyDescription = stringifyWithMaxLen(topologyDescription, maxDocumentLength);
224
+ log.message = message;
225
+ return log;
226
+ }
227
+ function attachCommandFields(log, commandEvent) {
228
+ log.commandName = commandEvent.commandName;
229
+ log.requestId = commandEvent.requestId;
230
+ log.driverConnectionId = commandEvent.connectionId;
231
+ const { host, port } = utils_1.HostAddress.fromString(commandEvent.address).toHostPort();
232
+ log.serverHost = host;
233
+ log.serverPort = port;
234
+ if (commandEvent?.serviceId) log.serviceId = commandEvent.serviceId.toHexString();
235
+ log.databaseName = commandEvent.databaseName;
236
+ log.serverConnectionId = commandEvent.serverConnectionId;
237
+ return log;
238
+ }
239
+ function attachConnectionFields(log, event) {
240
+ const { host, port } = utils_1.HostAddress.fromString(event.address).toHostPort();
241
+ log.serverHost = host;
242
+ log.serverPort = port;
243
+ return log;
244
+ }
245
+ function attachSDAMFields(log, sdamEvent) {
246
+ log.topologyId = sdamEvent.topologyId;
247
+ return log;
248
+ }
249
+ function attachServerHeartbeatFields(log, serverHeartbeatEvent) {
250
+ const { awaited, connectionId } = serverHeartbeatEvent;
251
+ log.awaited = awaited;
252
+ log.driverConnectionId = serverHeartbeatEvent.connectionId;
253
+ const { host, port } = utils_1.HostAddress.fromString(connectionId).toHostPort();
254
+ log.serverHost = host;
255
+ log.serverPort = port;
256
+ return log;
257
+ }
258
+ /** @internal */
259
+ function defaultLogTransform(logObject, maxDocumentLength = exports.DEFAULT_MAX_DOCUMENT_LENGTH) {
260
+ let log = Object.create(null);
261
+ switch (logObject.name) {
262
+ case constants_1.SERVER_SELECTION_STARTED:
263
+ log = attachServerSelectionFields(log, logObject, maxDocumentLength);
264
+ return log;
265
+ case constants_1.SERVER_SELECTION_FAILED:
266
+ log = attachServerSelectionFields(log, logObject, maxDocumentLength);
267
+ log.failure = logObject.failure?.message;
268
+ return log;
269
+ case constants_1.SERVER_SELECTION_SUCCEEDED:
270
+ log = attachServerSelectionFields(log, logObject, maxDocumentLength);
271
+ log.serverHost = logObject.serverHost;
272
+ log.serverPort = logObject.serverPort;
273
+ return log;
274
+ case constants_1.WAITING_FOR_SUITABLE_SERVER:
275
+ log = attachServerSelectionFields(log, logObject, maxDocumentLength);
276
+ log.remainingTimeMS = logObject.remainingTimeMS;
277
+ return log;
278
+ case constants_1.COMMAND_STARTED:
279
+ log = attachCommandFields(log, logObject);
280
+ log.message = "Command started";
281
+ log.command = stringifyWithMaxLen(logObject.command, maxDocumentLength, { relaxed: true });
282
+ log.databaseName = logObject.databaseName;
283
+ return log;
284
+ case constants_1.COMMAND_SUCCEEDED:
285
+ log = attachCommandFields(log, logObject);
286
+ log.message = "Command succeeded";
287
+ log.durationMS = logObject.duration;
288
+ log.reply = stringifyWithMaxLen(logObject.reply, maxDocumentLength, { relaxed: true });
289
+ return log;
290
+ case constants_1.COMMAND_FAILED:
291
+ log = attachCommandFields(log, logObject);
292
+ log.message = "Command failed";
293
+ log.durationMS = logObject.duration;
294
+ log.failure = logObject.failure?.message ?? "(redacted)";
295
+ return log;
296
+ case constants_1.CONNECTION_POOL_CREATED:
297
+ log = attachConnectionFields(log, logObject);
298
+ log.message = "Connection pool created";
299
+ if (logObject.options) {
300
+ const { maxIdleTimeMS, minPoolSize, maxPoolSize, maxConnecting, waitQueueTimeoutMS } = logObject.options;
301
+ log = {
302
+ ...log,
303
+ maxIdleTimeMS,
304
+ minPoolSize,
305
+ maxPoolSize,
306
+ maxConnecting,
307
+ waitQueueTimeoutMS
308
+ };
309
+ }
310
+ return log;
311
+ case constants_1.CONNECTION_POOL_READY:
312
+ log = attachConnectionFields(log, logObject);
313
+ log.message = "Connection pool ready";
314
+ return log;
315
+ case constants_1.CONNECTION_POOL_CLEARED:
316
+ log = attachConnectionFields(log, logObject);
317
+ log.message = "Connection pool cleared";
318
+ if (logObject.serviceId?._bsontype === "ObjectId") log.serviceId = logObject.serviceId?.toHexString();
319
+ return log;
320
+ case constants_1.CONNECTION_POOL_CLOSED:
321
+ log = attachConnectionFields(log, logObject);
322
+ log.message = "Connection pool closed";
323
+ return log;
324
+ case constants_1.CONNECTION_CREATED:
325
+ log = attachConnectionFields(log, logObject);
326
+ log.message = "Connection created";
327
+ log.driverConnectionId = logObject.connectionId;
328
+ return log;
329
+ case constants_1.CONNECTION_READY:
330
+ log = attachConnectionFields(log, logObject);
331
+ log.message = "Connection ready";
332
+ log.driverConnectionId = logObject.connectionId;
333
+ log.durationMS = logObject.durationMS;
334
+ return log;
335
+ case constants_1.CONNECTION_CLOSED:
336
+ log = attachConnectionFields(log, logObject);
337
+ log.message = "Connection closed";
338
+ log.driverConnectionId = logObject.connectionId;
339
+ switch (logObject.reason) {
340
+ case "stale":
341
+ log.reason = "Connection became stale because the pool was cleared";
342
+ break;
343
+ case "idle":
344
+ log.reason = "Connection has been available but unused for longer than the configured max idle time";
345
+ break;
346
+ case "error":
347
+ log.reason = "An error occurred while using the connection";
348
+ if (logObject.error) log.error = logObject.error;
349
+ break;
350
+ case "poolClosed":
351
+ log.reason = "Connection pool was closed";
352
+ break;
353
+ default: log.reason = `Unknown close reason: ${logObject.reason}`;
354
+ }
355
+ return log;
356
+ case constants_1.CONNECTION_CHECK_OUT_STARTED:
357
+ log = attachConnectionFields(log, logObject);
358
+ log.message = "Connection checkout started";
359
+ return log;
360
+ case constants_1.CONNECTION_CHECK_OUT_FAILED:
361
+ log = attachConnectionFields(log, logObject);
362
+ log.message = "Connection checkout failed";
363
+ switch (logObject.reason) {
364
+ case "poolClosed":
365
+ log.reason = "Connection pool was closed";
366
+ break;
367
+ case "timeout":
368
+ log.reason = "Wait queue timeout elapsed without a connection becoming available";
369
+ break;
370
+ case "connectionError":
371
+ log.reason = "An error occurred while trying to establish a new connection";
372
+ if (logObject.error) log.error = logObject.error;
373
+ break;
374
+ default: log.reason = `Unknown close reason: ${logObject.reason}`;
375
+ }
376
+ log.durationMS = logObject.durationMS;
377
+ return log;
378
+ case constants_1.CONNECTION_CHECKED_OUT:
379
+ log = attachConnectionFields(log, logObject);
380
+ log.message = "Connection checked out";
381
+ log.driverConnectionId = logObject.connectionId;
382
+ log.durationMS = logObject.durationMS;
383
+ return log;
384
+ case constants_1.CONNECTION_CHECKED_IN:
385
+ log = attachConnectionFields(log, logObject);
386
+ log.message = "Connection checked in";
387
+ log.driverConnectionId = logObject.connectionId;
388
+ return log;
389
+ case constants_1.SERVER_OPENING:
390
+ log = attachSDAMFields(log, logObject);
391
+ log = attachConnectionFields(log, logObject);
392
+ log.message = "Starting server monitoring";
393
+ return log;
394
+ case constants_1.SERVER_CLOSED:
395
+ log = attachSDAMFields(log, logObject);
396
+ log = attachConnectionFields(log, logObject);
397
+ log.message = "Stopped server monitoring";
398
+ return log;
399
+ case constants_1.SERVER_HEARTBEAT_STARTED:
400
+ log = attachSDAMFields(log, logObject);
401
+ log = attachServerHeartbeatFields(log, logObject);
402
+ log.message = "Server heartbeat started";
403
+ return log;
404
+ case constants_1.SERVER_HEARTBEAT_SUCCEEDED:
405
+ log = attachSDAMFields(log, logObject);
406
+ log = attachServerHeartbeatFields(log, logObject);
407
+ log.message = "Server heartbeat succeeded";
408
+ log.durationMS = logObject.duration;
409
+ log.serverConnectionId = logObject.serverConnectionId;
410
+ log.reply = stringifyWithMaxLen(logObject.reply, maxDocumentLength, { relaxed: true });
411
+ return log;
412
+ case constants_1.SERVER_HEARTBEAT_FAILED:
413
+ log = attachSDAMFields(log, logObject);
414
+ log = attachServerHeartbeatFields(log, logObject);
415
+ log.message = "Server heartbeat failed";
416
+ log.durationMS = logObject.duration;
417
+ log.failure = logObject.failure?.message;
418
+ return log;
419
+ case constants_1.TOPOLOGY_OPENING:
420
+ log = attachSDAMFields(log, logObject);
421
+ log.message = "Starting topology monitoring";
422
+ return log;
423
+ case constants_1.TOPOLOGY_CLOSED:
424
+ log = attachSDAMFields(log, logObject);
425
+ log.message = "Stopped topology monitoring";
426
+ return log;
427
+ case constants_1.TOPOLOGY_DESCRIPTION_CHANGED:
428
+ log = attachSDAMFields(log, logObject);
429
+ log.message = "Topology description changed";
430
+ log.previousDescription = log.reply = stringifyWithMaxLen(logObject.previousDescription, maxDocumentLength);
431
+ log.newDescription = log.reply = stringifyWithMaxLen(logObject.newDescription, maxDocumentLength);
432
+ return log;
433
+ default: for (const [key, value] of Object.entries(logObject)) if (value != null) log[key] = value;
434
+ }
435
+ return log;
436
+ }
437
+ /** @internal */
438
+ var MongoLogger = class {
439
+ constructor(options) {
440
+ this.pendingLog = null;
441
+ /**
442
+ * This method should be used when logging errors that do not have a public driver API for
443
+ * reporting errors.
444
+ */
445
+ this.error = this.log.bind(this, "error");
446
+ /**
447
+ * This method should be used to log situations where undesirable application behaviour might
448
+ * occur. For example, failing to end sessions on `MongoClient.close`.
449
+ */
450
+ this.warn = this.log.bind(this, "warn");
451
+ /**
452
+ * This method should be used to report high-level information about normal driver behaviour.
453
+ * For example, the creation of a `MongoClient`.
454
+ */
455
+ this.info = this.log.bind(this, "info");
456
+ /**
457
+ * This method should be used to report information that would be helpful when debugging an
458
+ * application. For example, a command starting, succeeding or failing.
459
+ */
460
+ this.debug = this.log.bind(this, "debug");
461
+ /**
462
+ * This method should be used to report fine-grained details related to logic flow. For example,
463
+ * entering and exiting a function body.
464
+ */
465
+ this.trace = this.log.bind(this, "trace");
466
+ this.componentSeverities = options.componentSeverities;
467
+ this.maxDocumentLength = options.maxDocumentLength;
468
+ this.logDestination = options.logDestination;
469
+ this.logDestinationIsStdErr = options.logDestinationIsStdErr;
470
+ this.severities = this.createLoggingSeverities();
471
+ }
472
+ createLoggingSeverities() {
473
+ const severities = Object();
474
+ for (const component of Object.values(exports.MongoLoggableComponent)) {
475
+ severities[component] = {};
476
+ for (const severityLevel of Object.values(exports.SeverityLevel)) severities[component][severityLevel] = compareSeverity(severityLevel, this.componentSeverities[component]) <= 0;
477
+ }
478
+ return severities;
479
+ }
480
+ turnOffSeverities() {
481
+ for (const component of Object.values(exports.MongoLoggableComponent)) {
482
+ this.componentSeverities[component] = exports.SeverityLevel.OFF;
483
+ for (const severityLevel of Object.values(exports.SeverityLevel)) this.severities[component][severityLevel] = false;
484
+ }
485
+ }
486
+ logWriteFailureHandler(error) {
487
+ if (this.logDestinationIsStdErr) {
488
+ this.turnOffSeverities();
489
+ this.clearPendingLog();
490
+ return;
491
+ }
492
+ this.logDestination = createStdioLogger(process.stderr);
493
+ this.logDestinationIsStdErr = true;
494
+ this.clearPendingLog();
495
+ this.error(exports.MongoLoggableComponent.CLIENT, { toLog: function() {
496
+ return {
497
+ message: "User input for mongodbLogPath is now invalid. Logging is halted.",
498
+ error: error.message
499
+ };
500
+ } });
501
+ this.turnOffSeverities();
502
+ this.clearPendingLog();
503
+ }
504
+ clearPendingLog() {
505
+ this.pendingLog = null;
506
+ }
507
+ willLog(component, severity) {
508
+ if (severity === exports.SeverityLevel.OFF) return false;
509
+ return this.severities[component][severity];
510
+ }
511
+ log(severity, component, message) {
512
+ if (!this.willLog(component, severity)) return;
513
+ let logMessage = {
514
+ t: /* @__PURE__ */ new Date(),
515
+ c: component,
516
+ s: severity
517
+ };
518
+ if (typeof message === "string") logMessage.message = message;
519
+ else if (typeof message === "object") if (isLogConvertible(message)) logMessage = {
520
+ ...logMessage,
521
+ ...message.toLog()
522
+ };
523
+ else logMessage = {
524
+ ...logMessage,
525
+ ...defaultLogTransform(message, this.maxDocumentLength)
526
+ };
527
+ if ((0, utils_1.isPromiseLike)(this.pendingLog)) {
528
+ this.pendingLog = this.pendingLog.then(() => this.logDestination.write(logMessage)).then(this.clearPendingLog.bind(this), this.logWriteFailureHandler.bind(this));
529
+ return;
530
+ }
531
+ try {
532
+ const logResult = this.logDestination.write(logMessage);
533
+ if ((0, utils_1.isPromiseLike)(logResult)) this.pendingLog = logResult.then(this.clearPendingLog.bind(this), this.logWriteFailureHandler.bind(this));
534
+ } catch (error) {
535
+ this.logWriteFailureHandler(error);
536
+ }
537
+ }
538
+ /**
539
+ * Merges options set through environment variables and the MongoClient, preferring environment
540
+ * variables when both are set, and substituting defaults for values not set. Options set in
541
+ * constructor take precedence over both environment variables and MongoClient options.
542
+ *
543
+ * @remarks
544
+ * When parsing component severity levels, invalid values are treated as unset and replaced with
545
+ * the default severity.
546
+ *
547
+ * @param envOptions - options set for the logger from the environment
548
+ * @param clientOptions - options set for the logger in the MongoClient options
549
+ * @returns a MongoLoggerOptions object to be used when instantiating a new MongoLogger
550
+ */
551
+ static resolveOptions(envOptions, clientOptions) {
552
+ const resolvedLogPath = resolveLogPath(envOptions, clientOptions);
553
+ const combinedOptions = {
554
+ ...envOptions,
555
+ ...clientOptions,
556
+ mongodbLogPath: resolvedLogPath.mongodbLogPath,
557
+ mongodbLogPathIsStdErr: resolvedLogPath.mongodbLogPathIsStdErr
558
+ };
559
+ const defaultSeverity = resolveSeverityConfiguration(combinedOptions.mongodbLogComponentSeverities?.default, combinedOptions.MONGODB_LOG_ALL, exports.SeverityLevel.OFF);
560
+ return {
561
+ componentSeverities: {
562
+ command: resolveSeverityConfiguration(combinedOptions.mongodbLogComponentSeverities?.command, combinedOptions.MONGODB_LOG_COMMAND, defaultSeverity),
563
+ topology: resolveSeverityConfiguration(combinedOptions.mongodbLogComponentSeverities?.topology, combinedOptions.MONGODB_LOG_TOPOLOGY, defaultSeverity),
564
+ serverSelection: resolveSeverityConfiguration(combinedOptions.mongodbLogComponentSeverities?.serverSelection, combinedOptions.MONGODB_LOG_SERVER_SELECTION, defaultSeverity),
565
+ connection: resolveSeverityConfiguration(combinedOptions.mongodbLogComponentSeverities?.connection, combinedOptions.MONGODB_LOG_CONNECTION, defaultSeverity),
566
+ client: resolveSeverityConfiguration(combinedOptions.mongodbLogComponentSeverities?.client, combinedOptions.MONGODB_LOG_CLIENT, defaultSeverity),
567
+ default: defaultSeverity
568
+ },
569
+ maxDocumentLength: combinedOptions.mongodbLogMaxDocumentLength ?? (0, utils_1.parseUnsignedInteger)(combinedOptions.MONGODB_LOG_MAX_DOCUMENT_LENGTH) ?? 1e3,
570
+ logDestination: combinedOptions.mongodbLogPath,
571
+ logDestinationIsStdErr: combinedOptions.mongodbLogPathIsStdErr
572
+ };
573
+ }
574
+ };
575
+ exports.MongoLogger = MongoLogger;
576
+ }));
577
+
578
+ //#endregion
579
+ export default require_mongo_logger();
580
+
581
+ export { require_mongo_logger };
582
+ //# sourceMappingURL=mongo_logger.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mongo_logger.mjs","names":["maxDocumentLengthEnsurer","value"],"sources":["../../../../../../../../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MongoLogger = exports.MongoLoggableComponent = exports.SEVERITY_LEVEL_MAP = exports.DEFAULT_MAX_DOCUMENT_LENGTH = exports.SeverityLevel = void 0;\nexports.parseSeverityFromString = parseSeverityFromString;\nexports.createStdioLogger = createStdioLogger;\nexports.stringifyWithMaxLen = stringifyWithMaxLen;\nexports.defaultLogTransform = defaultLogTransform;\nconst util_1 = require(\"util\");\nconst bson_1 = require(\"./bson\");\nconst constants_1 = require(\"./constants\");\nconst utils_1 = require(\"./utils\");\n/**\n * @public\n * Severity levels align with unix syslog.\n * Most typical driver functions will log to debug.\n */\nexports.SeverityLevel = Object.freeze({\n EMERGENCY: 'emergency',\n ALERT: 'alert',\n CRITICAL: 'critical',\n ERROR: 'error',\n WARNING: 'warn',\n NOTICE: 'notice',\n INFORMATIONAL: 'info',\n DEBUG: 'debug',\n TRACE: 'trace',\n OFF: 'off'\n});\n/** @internal */\nexports.DEFAULT_MAX_DOCUMENT_LENGTH = 1000;\n/** @internal */\nclass SeverityLevelMap extends Map {\n constructor(entries) {\n const newEntries = [];\n for (const [level, value] of entries) {\n newEntries.push([value, level]);\n }\n newEntries.push(...entries);\n super(newEntries);\n }\n getNumericSeverityLevel(severity) {\n return this.get(severity);\n }\n getSeverityLevelName(level) {\n return this.get(level);\n }\n}\n/** @internal */\nexports.SEVERITY_LEVEL_MAP = new SeverityLevelMap([\n [exports.SeverityLevel.OFF, -Infinity],\n [exports.SeverityLevel.EMERGENCY, 0],\n [exports.SeverityLevel.ALERT, 1],\n [exports.SeverityLevel.CRITICAL, 2],\n [exports.SeverityLevel.ERROR, 3],\n [exports.SeverityLevel.WARNING, 4],\n [exports.SeverityLevel.NOTICE, 5],\n [exports.SeverityLevel.INFORMATIONAL, 6],\n [exports.SeverityLevel.DEBUG, 7],\n [exports.SeverityLevel.TRACE, 8]\n]);\n/** @public */\nexports.MongoLoggableComponent = Object.freeze({\n COMMAND: 'command',\n TOPOLOGY: 'topology',\n SERVER_SELECTION: 'serverSelection',\n CONNECTION: 'connection',\n CLIENT: 'client'\n});\n/**\n * Parses a string as one of SeverityLevel\n * @internal\n *\n * @param s - the value to be parsed\n * @returns one of SeverityLevel if value can be parsed as such, otherwise null\n */\nfunction parseSeverityFromString(s) {\n const validSeverities = Object.values(exports.SeverityLevel);\n const lowerSeverity = s?.toLowerCase();\n if (lowerSeverity != null && validSeverities.includes(lowerSeverity)) {\n return lowerSeverity;\n }\n return null;\n}\n/** @internal */\nfunction createStdioLogger(stream) {\n return {\n write: (0, util_1.promisify)((log, cb) => {\n const logLine = (0, util_1.inspect)(log, { compact: true, breakLength: Infinity });\n stream.write(`${logLine}\\n`, 'utf-8', cb);\n return;\n })\n };\n}\n/**\n * resolves the MONGODB_LOG_PATH and mongodbLogPath options from the environment and the\n * mongo client options respectively. The mongodbLogPath can be either 'stdout', 'stderr', a NodeJS\n * Writable or an object which has a `write` method with the signature:\n * ```ts\n * write(log: Log): void\n * ```\n *\n * @returns the MongoDBLogWritable object to write logs to\n */\nfunction resolveLogPath({ MONGODB_LOG_PATH }, { mongodbLogPath }) {\n if (typeof mongodbLogPath === 'string' && /^stderr$/i.test(mongodbLogPath)) {\n return { mongodbLogPath: createStdioLogger(process.stderr), mongodbLogPathIsStdErr: true };\n }\n if (typeof mongodbLogPath === 'string' && /^stdout$/i.test(mongodbLogPath)) {\n return { mongodbLogPath: createStdioLogger(process.stdout), mongodbLogPathIsStdErr: false };\n }\n if (typeof mongodbLogPath === 'object' && typeof mongodbLogPath?.write === 'function') {\n return { mongodbLogPath: mongodbLogPath, mongodbLogPathIsStdErr: false };\n }\n if (MONGODB_LOG_PATH && /^stderr$/i.test(MONGODB_LOG_PATH)) {\n return { mongodbLogPath: createStdioLogger(process.stderr), mongodbLogPathIsStdErr: true };\n }\n if (MONGODB_LOG_PATH && /^stdout$/i.test(MONGODB_LOG_PATH)) {\n return { mongodbLogPath: createStdioLogger(process.stdout), mongodbLogPathIsStdErr: false };\n }\n return { mongodbLogPath: createStdioLogger(process.stderr), mongodbLogPathIsStdErr: true };\n}\nfunction resolveSeverityConfiguration(clientOption, environmentOption, defaultSeverity) {\n return (parseSeverityFromString(clientOption) ??\n parseSeverityFromString(environmentOption) ??\n defaultSeverity);\n}\nfunction compareSeverity(s0, s1) {\n const s0Num = exports.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(s0);\n const s1Num = exports.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(s1);\n return s0Num < s1Num ? -1 : s0Num > s1Num ? 1 : 0;\n}\n/** @internal */\nfunction stringifyWithMaxLen(value, maxDocumentLength, options = {}) {\n let strToTruncate = '';\n let currentLength = 0;\n const maxDocumentLengthEnsurer = function maxDocumentLengthEnsurer(key, value) {\n if (currentLength >= maxDocumentLength) {\n return undefined;\n }\n // Account for root document\n if (key === '') {\n // Account for starting brace\n currentLength += 1;\n return value;\n }\n // +4 accounts for 2 quotation marks, colon and comma after value\n // Note that this potentially undercounts since it does not account for escape sequences which\n // will have an additional backslash added to them once passed through JSON.stringify.\n currentLength += key.length + 4;\n if (value == null)\n return value;\n switch (typeof value) {\n case 'string':\n // +2 accounts for quotes\n // Note that this potentially undercounts similarly to the key length calculation\n currentLength += value.length + 2;\n break;\n case 'number':\n case 'bigint':\n currentLength += String(value).length;\n break;\n case 'boolean':\n currentLength += value ? 4 : 5;\n break;\n case 'object':\n if ((0, utils_1.isUint8Array)(value)) {\n // '{\"$binary\":{\"base64\":\"<base64 string>\",\"subType\":\"XX\"}}'\n // This is an estimate based on the fact that the base64 is approximately 1.33x the length of\n // the actual binary sequence https://en.wikipedia.org/wiki/Base64\n currentLength += (22 + value.byteLength + value.byteLength * 0.33 + 18) | 0;\n }\n else if ('_bsontype' in value) {\n const v = value;\n switch (v._bsontype) {\n case 'Int32':\n currentLength += String(v.value).length;\n break;\n case 'Double':\n // Account for representing integers as <value>.0\n currentLength +=\n (v.value | 0) === v.value ? String(v.value).length + 2 : String(v.value).length;\n break;\n case 'Long':\n currentLength += v.toString().length;\n break;\n case 'ObjectId':\n // '{\"$oid\":\"XXXXXXXXXXXXXXXXXXXXXXXX\"}'\n currentLength += 35;\n break;\n case 'MaxKey':\n case 'MinKey':\n // '{\"$maxKey\":1}' or '{\"$minKey\":1}'\n currentLength += 13;\n break;\n case 'Binary':\n // '{\"$binary\":{\"base64\":\"<base64 string>\",\"subType\":\"XX\"}}'\n // This is an estimate based on the fact that the base64 is approximately 1.33x the length of\n // the actual binary sequence https://en.wikipedia.org/wiki/Base64\n currentLength += (22 + value.position + value.position * 0.33 + 18) | 0;\n break;\n case 'Timestamp':\n // '{\"$timestamp\":{\"t\":<t>,\"i\":<i>}}'\n currentLength += 19 + String(v.t).length + 5 + String(v.i).length + 2;\n break;\n case 'Code':\n // '{\"$code\":\"<code>\"}' or '{\"$code\":\"<code>\",\"$scope\":<scope>}'\n if (v.scope == null) {\n currentLength += v.code.length + 10 + 2;\n }\n else {\n // Ignoring actual scope object, so this undercounts by a significant amount\n currentLength += v.code.length + 10 + 11;\n }\n break;\n case 'BSONRegExp':\n // '{\"$regularExpression\":{\"pattern\":\"<pattern>\",\"options\":\"<options>\"}}'\n currentLength += 34 + v.pattern.length + 13 + v.options.length + 3;\n break;\n }\n }\n }\n return value;\n };\n if (typeof value === 'string') {\n strToTruncate = value;\n }\n else if (typeof value === 'function') {\n strToTruncate = value.name;\n }\n else {\n try {\n if (maxDocumentLength !== 0) {\n strToTruncate = bson_1.EJSON.stringify(value, maxDocumentLengthEnsurer, 0, options);\n }\n else {\n strToTruncate = bson_1.EJSON.stringify(value, options);\n }\n }\n catch (e) {\n strToTruncate = `Extended JSON serialization failed with: ${e.message}`;\n }\n }\n // handle truncation that occurs in the middle of multi-byte codepoints\n if (maxDocumentLength !== 0 &&\n strToTruncate.length > maxDocumentLength &&\n strToTruncate.charCodeAt(maxDocumentLength - 1) !==\n strToTruncate.codePointAt(maxDocumentLength - 1)) {\n maxDocumentLength--;\n if (maxDocumentLength === 0) {\n return '';\n }\n }\n return maxDocumentLength !== 0 && strToTruncate.length > maxDocumentLength\n ? `${strToTruncate.slice(0, maxDocumentLength)}...`\n : strToTruncate;\n}\nfunction isLogConvertible(obj) {\n const objAsLogConvertible = obj;\n // eslint-disable-next-line no-restricted-syntax\n return objAsLogConvertible.toLog !== undefined && typeof objAsLogConvertible.toLog === 'function';\n}\nfunction attachServerSelectionFields(log, serverSelectionEvent, maxDocumentLength = exports.DEFAULT_MAX_DOCUMENT_LENGTH) {\n const { selector, operation, topologyDescription, message } = serverSelectionEvent;\n log.selector = stringifyWithMaxLen(selector, maxDocumentLength);\n log.operation = operation;\n log.topologyDescription = stringifyWithMaxLen(topologyDescription, maxDocumentLength);\n log.message = message;\n return log;\n}\nfunction attachCommandFields(log, commandEvent) {\n log.commandName = commandEvent.commandName;\n log.requestId = commandEvent.requestId;\n log.driverConnectionId = commandEvent.connectionId;\n const { host, port } = utils_1.HostAddress.fromString(commandEvent.address).toHostPort();\n log.serverHost = host;\n log.serverPort = port;\n if (commandEvent?.serviceId) {\n log.serviceId = commandEvent.serviceId.toHexString();\n }\n log.databaseName = commandEvent.databaseName;\n log.serverConnectionId = commandEvent.serverConnectionId;\n return log;\n}\nfunction attachConnectionFields(log, event) {\n const { host, port } = utils_1.HostAddress.fromString(event.address).toHostPort();\n log.serverHost = host;\n log.serverPort = port;\n return log;\n}\nfunction attachSDAMFields(log, sdamEvent) {\n log.topologyId = sdamEvent.topologyId;\n return log;\n}\nfunction attachServerHeartbeatFields(log, serverHeartbeatEvent) {\n const { awaited, connectionId } = serverHeartbeatEvent;\n log.awaited = awaited;\n log.driverConnectionId = serverHeartbeatEvent.connectionId;\n const { host, port } = utils_1.HostAddress.fromString(connectionId).toHostPort();\n log.serverHost = host;\n log.serverPort = port;\n return log;\n}\n/** @internal */\nfunction defaultLogTransform(logObject, maxDocumentLength = exports.DEFAULT_MAX_DOCUMENT_LENGTH) {\n let log = Object.create(null);\n switch (logObject.name) {\n case constants_1.SERVER_SELECTION_STARTED:\n log = attachServerSelectionFields(log, logObject, maxDocumentLength);\n return log;\n case constants_1.SERVER_SELECTION_FAILED:\n log = attachServerSelectionFields(log, logObject, maxDocumentLength);\n log.failure = logObject.failure?.message;\n return log;\n case constants_1.SERVER_SELECTION_SUCCEEDED:\n log = attachServerSelectionFields(log, logObject, maxDocumentLength);\n log.serverHost = logObject.serverHost;\n log.serverPort = logObject.serverPort;\n return log;\n case constants_1.WAITING_FOR_SUITABLE_SERVER:\n log = attachServerSelectionFields(log, logObject, maxDocumentLength);\n log.remainingTimeMS = logObject.remainingTimeMS;\n return log;\n case constants_1.COMMAND_STARTED:\n log = attachCommandFields(log, logObject);\n log.message = 'Command started';\n log.command = stringifyWithMaxLen(logObject.command, maxDocumentLength, { relaxed: true });\n log.databaseName = logObject.databaseName;\n return log;\n case constants_1.COMMAND_SUCCEEDED:\n log = attachCommandFields(log, logObject);\n log.message = 'Command succeeded';\n log.durationMS = logObject.duration;\n log.reply = stringifyWithMaxLen(logObject.reply, maxDocumentLength, { relaxed: true });\n return log;\n case constants_1.COMMAND_FAILED:\n log = attachCommandFields(log, logObject);\n log.message = 'Command failed';\n log.durationMS = logObject.duration;\n log.failure = logObject.failure?.message ?? '(redacted)';\n return log;\n case constants_1.CONNECTION_POOL_CREATED:\n log = attachConnectionFields(log, logObject);\n log.message = 'Connection pool created';\n if (logObject.options) {\n const { maxIdleTimeMS, minPoolSize, maxPoolSize, maxConnecting, waitQueueTimeoutMS } = logObject.options;\n log = {\n ...log,\n maxIdleTimeMS,\n minPoolSize,\n maxPoolSize,\n maxConnecting,\n waitQueueTimeoutMS\n };\n }\n return log;\n case constants_1.CONNECTION_POOL_READY:\n log = attachConnectionFields(log, logObject);\n log.message = 'Connection pool ready';\n return log;\n case constants_1.CONNECTION_POOL_CLEARED:\n log = attachConnectionFields(log, logObject);\n log.message = 'Connection pool cleared';\n if (logObject.serviceId?._bsontype === 'ObjectId') {\n log.serviceId = logObject.serviceId?.toHexString();\n }\n return log;\n case constants_1.CONNECTION_POOL_CLOSED:\n log = attachConnectionFields(log, logObject);\n log.message = 'Connection pool closed';\n return log;\n case constants_1.CONNECTION_CREATED:\n log = attachConnectionFields(log, logObject);\n log.message = 'Connection created';\n log.driverConnectionId = logObject.connectionId;\n return log;\n case constants_1.CONNECTION_READY:\n log = attachConnectionFields(log, logObject);\n log.message = 'Connection ready';\n log.driverConnectionId = logObject.connectionId;\n log.durationMS = logObject.durationMS;\n return log;\n case constants_1.CONNECTION_CLOSED:\n log = attachConnectionFields(log, logObject);\n log.message = 'Connection closed';\n log.driverConnectionId = logObject.connectionId;\n switch (logObject.reason) {\n case 'stale':\n log.reason = 'Connection became stale because the pool was cleared';\n break;\n case 'idle':\n log.reason =\n 'Connection has been available but unused for longer than the configured max idle time';\n break;\n case 'error':\n log.reason = 'An error occurred while using the connection';\n if (logObject.error) {\n log.error = logObject.error;\n }\n break;\n case 'poolClosed':\n log.reason = 'Connection pool was closed';\n break;\n default:\n log.reason = `Unknown close reason: ${logObject.reason}`;\n }\n return log;\n case constants_1.CONNECTION_CHECK_OUT_STARTED:\n log = attachConnectionFields(log, logObject);\n log.message = 'Connection checkout started';\n return log;\n case constants_1.CONNECTION_CHECK_OUT_FAILED:\n log = attachConnectionFields(log, logObject);\n log.message = 'Connection checkout failed';\n switch (logObject.reason) {\n case 'poolClosed':\n log.reason = 'Connection pool was closed';\n break;\n case 'timeout':\n log.reason = 'Wait queue timeout elapsed without a connection becoming available';\n break;\n case 'connectionError':\n log.reason = 'An error occurred while trying to establish a new connection';\n if (logObject.error) {\n log.error = logObject.error;\n }\n break;\n default:\n log.reason = `Unknown close reason: ${logObject.reason}`;\n }\n log.durationMS = logObject.durationMS;\n return log;\n case constants_1.CONNECTION_CHECKED_OUT:\n log = attachConnectionFields(log, logObject);\n log.message = 'Connection checked out';\n log.driverConnectionId = logObject.connectionId;\n log.durationMS = logObject.durationMS;\n return log;\n case constants_1.CONNECTION_CHECKED_IN:\n log = attachConnectionFields(log, logObject);\n log.message = 'Connection checked in';\n log.driverConnectionId = logObject.connectionId;\n return log;\n case constants_1.SERVER_OPENING:\n log = attachSDAMFields(log, logObject);\n log = attachConnectionFields(log, logObject);\n log.message = 'Starting server monitoring';\n return log;\n case constants_1.SERVER_CLOSED:\n log = attachSDAMFields(log, logObject);\n log = attachConnectionFields(log, logObject);\n log.message = 'Stopped server monitoring';\n return log;\n case constants_1.SERVER_HEARTBEAT_STARTED:\n log = attachSDAMFields(log, logObject);\n log = attachServerHeartbeatFields(log, logObject);\n log.message = 'Server heartbeat started';\n return log;\n case constants_1.SERVER_HEARTBEAT_SUCCEEDED:\n log = attachSDAMFields(log, logObject);\n log = attachServerHeartbeatFields(log, logObject);\n log.message = 'Server heartbeat succeeded';\n log.durationMS = logObject.duration;\n log.serverConnectionId = logObject.serverConnectionId;\n log.reply = stringifyWithMaxLen(logObject.reply, maxDocumentLength, { relaxed: true });\n return log;\n case constants_1.SERVER_HEARTBEAT_FAILED:\n log = attachSDAMFields(log, logObject);\n log = attachServerHeartbeatFields(log, logObject);\n log.message = 'Server heartbeat failed';\n log.durationMS = logObject.duration;\n log.failure = logObject.failure?.message;\n return log;\n case constants_1.TOPOLOGY_OPENING:\n log = attachSDAMFields(log, logObject);\n log.message = 'Starting topology monitoring';\n return log;\n case constants_1.TOPOLOGY_CLOSED:\n log = attachSDAMFields(log, logObject);\n log.message = 'Stopped topology monitoring';\n return log;\n case constants_1.TOPOLOGY_DESCRIPTION_CHANGED:\n log = attachSDAMFields(log, logObject);\n log.message = 'Topology description changed';\n log.previousDescription = log.reply = stringifyWithMaxLen(logObject.previousDescription, maxDocumentLength);\n log.newDescription = log.reply = stringifyWithMaxLen(logObject.newDescription, maxDocumentLength);\n return log;\n default:\n for (const [key, value] of Object.entries(logObject)) {\n if (value != null)\n log[key] = value;\n }\n }\n return log;\n}\n/** @internal */\nclass MongoLogger {\n constructor(options) {\n this.pendingLog = null;\n /**\n * This method should be used when logging errors that do not have a public driver API for\n * reporting errors.\n */\n this.error = this.log.bind(this, 'error');\n /**\n * This method should be used to log situations where undesirable application behaviour might\n * occur. For example, failing to end sessions on `MongoClient.close`.\n */\n this.warn = this.log.bind(this, 'warn');\n /**\n * This method should be used to report high-level information about normal driver behaviour.\n * For example, the creation of a `MongoClient`.\n */\n this.info = this.log.bind(this, 'info');\n /**\n * This method should be used to report information that would be helpful when debugging an\n * application. For example, a command starting, succeeding or failing.\n */\n this.debug = this.log.bind(this, 'debug');\n /**\n * This method should be used to report fine-grained details related to logic flow. For example,\n * entering and exiting a function body.\n */\n this.trace = this.log.bind(this, 'trace');\n this.componentSeverities = options.componentSeverities;\n this.maxDocumentLength = options.maxDocumentLength;\n this.logDestination = options.logDestination;\n this.logDestinationIsStdErr = options.logDestinationIsStdErr;\n this.severities = this.createLoggingSeverities();\n }\n createLoggingSeverities() {\n const severities = Object();\n for (const component of Object.values(exports.MongoLoggableComponent)) {\n severities[component] = {};\n for (const severityLevel of Object.values(exports.SeverityLevel)) {\n severities[component][severityLevel] =\n compareSeverity(severityLevel, this.componentSeverities[component]) <= 0;\n }\n }\n return severities;\n }\n turnOffSeverities() {\n for (const component of Object.values(exports.MongoLoggableComponent)) {\n this.componentSeverities[component] = exports.SeverityLevel.OFF;\n for (const severityLevel of Object.values(exports.SeverityLevel)) {\n this.severities[component][severityLevel] = false;\n }\n }\n }\n logWriteFailureHandler(error) {\n if (this.logDestinationIsStdErr) {\n this.turnOffSeverities();\n this.clearPendingLog();\n return;\n }\n this.logDestination = createStdioLogger(process.stderr);\n this.logDestinationIsStdErr = true;\n this.clearPendingLog();\n this.error(exports.MongoLoggableComponent.CLIENT, {\n toLog: function () {\n return {\n message: 'User input for mongodbLogPath is now invalid. Logging is halted.',\n error: error.message\n };\n }\n });\n this.turnOffSeverities();\n this.clearPendingLog();\n }\n clearPendingLog() {\n this.pendingLog = null;\n }\n willLog(component, severity) {\n if (severity === exports.SeverityLevel.OFF)\n return false;\n return this.severities[component][severity];\n }\n log(severity, component, message) {\n if (!this.willLog(component, severity))\n return;\n let logMessage = { t: new Date(), c: component, s: severity };\n if (typeof message === 'string') {\n logMessage.message = message;\n }\n else if (typeof message === 'object') {\n if (isLogConvertible(message)) {\n logMessage = { ...logMessage, ...message.toLog() };\n }\n else {\n logMessage = { ...logMessage, ...defaultLogTransform(message, this.maxDocumentLength) };\n }\n }\n if ((0, utils_1.isPromiseLike)(this.pendingLog)) {\n this.pendingLog = this.pendingLog\n .then(() => this.logDestination.write(logMessage))\n .then(this.clearPendingLog.bind(this), this.logWriteFailureHandler.bind(this));\n return;\n }\n try {\n const logResult = this.logDestination.write(logMessage);\n if ((0, utils_1.isPromiseLike)(logResult)) {\n this.pendingLog = logResult.then(this.clearPendingLog.bind(this), this.logWriteFailureHandler.bind(this));\n }\n }\n catch (error) {\n this.logWriteFailureHandler(error);\n }\n }\n /**\n * Merges options set through environment variables and the MongoClient, preferring environment\n * variables when both are set, and substituting defaults for values not set. Options set in\n * constructor take precedence over both environment variables and MongoClient options.\n *\n * @remarks\n * When parsing component severity levels, invalid values are treated as unset and replaced with\n * the default severity.\n *\n * @param envOptions - options set for the logger from the environment\n * @param clientOptions - options set for the logger in the MongoClient options\n * @returns a MongoLoggerOptions object to be used when instantiating a new MongoLogger\n */\n static resolveOptions(envOptions, clientOptions) {\n // client options take precedence over env options\n const resolvedLogPath = resolveLogPath(envOptions, clientOptions);\n const combinedOptions = {\n ...envOptions,\n ...clientOptions,\n mongodbLogPath: resolvedLogPath.mongodbLogPath,\n mongodbLogPathIsStdErr: resolvedLogPath.mongodbLogPathIsStdErr\n };\n const defaultSeverity = resolveSeverityConfiguration(combinedOptions.mongodbLogComponentSeverities?.default, combinedOptions.MONGODB_LOG_ALL, exports.SeverityLevel.OFF);\n return {\n componentSeverities: {\n command: resolveSeverityConfiguration(combinedOptions.mongodbLogComponentSeverities?.command, combinedOptions.MONGODB_LOG_COMMAND, defaultSeverity),\n topology: resolveSeverityConfiguration(combinedOptions.mongodbLogComponentSeverities?.topology, combinedOptions.MONGODB_LOG_TOPOLOGY, defaultSeverity),\n serverSelection: resolveSeverityConfiguration(combinedOptions.mongodbLogComponentSeverities?.serverSelection, combinedOptions.MONGODB_LOG_SERVER_SELECTION, defaultSeverity),\n connection: resolveSeverityConfiguration(combinedOptions.mongodbLogComponentSeverities?.connection, combinedOptions.MONGODB_LOG_CONNECTION, defaultSeverity),\n client: resolveSeverityConfiguration(combinedOptions.mongodbLogComponentSeverities?.client, combinedOptions.MONGODB_LOG_CLIENT, defaultSeverity),\n default: defaultSeverity\n },\n maxDocumentLength: combinedOptions.mongodbLogMaxDocumentLength ??\n (0, utils_1.parseUnsignedInteger)(combinedOptions.MONGODB_LOG_MAX_DOCUMENT_LENGTH) ??\n 1000,\n logDestination: combinedOptions.mongodbLogPath,\n logDestinationIsStdErr: combinedOptions.mongodbLogPathIsStdErr\n };\n }\n}\nexports.MongoLogger = MongoLogger;\n//# sourceMappingURL=mongo_logger.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,cAAc,QAAQ,yBAAyB,QAAQ,qBAAqB,QAAQ,8BAA8B,QAAQ,gBAAgB,KAAK;AACvJ,SAAQ,0BAA0B;AAClC,SAAQ,oBAAoB;AAC5B,SAAQ,sBAAsB;AAC9B,SAAQ,sBAAsB;CAC9B,MAAM,mBAAiB,OAAO;CAC9B,MAAM;CACN,MAAM;CACN,MAAM;;;;;;AAMN,SAAQ,gBAAgB,OAAO,OAAO;EAClC,WAAW;EACX,OAAO;EACP,UAAU;EACV,OAAO;EACP,SAAS;EACT,QAAQ;EACR,eAAe;EACf,OAAO;EACP,OAAO;EACP,KAAK;EACR,CAAC;;AAEF,SAAQ,8BAA8B;;CAEtC,IAAM,mBAAN,cAA+B,IAAI;EAC/B,YAAY,SAAS;GACjB,MAAM,aAAa,EAAE;AACrB,QAAK,MAAM,CAAC,OAAO,UAAU,QACzB,YAAW,KAAK,CAAC,OAAO,MAAM,CAAC;AAEnC,cAAW,KAAK,GAAG,QAAQ;AAC3B,SAAM,WAAW;;EAErB,wBAAwB,UAAU;AAC9B,UAAO,KAAK,IAAI,SAAS;;EAE7B,qBAAqB,OAAO;AACxB,UAAO,KAAK,IAAI,MAAM;;;;AAI9B,SAAQ,qBAAqB,IAAI,iBAAiB;EAC9C,CAAC,QAAQ,cAAc,KAAK,UAAU;EACtC,CAAC,QAAQ,c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