orcaq 1.0.32 → 1.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.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/4by6-f6q.js +982 -0
- package/.output/public/_nuxt/8Ppmjv9D.js +1 -0
- package/.output/public/_nuxt/B1qjkRVO.js +1 -0
- package/.output/public/_nuxt/B3KEisfc.js +1 -0
- package/.output/public/_nuxt/B4ebLeWY.js +9 -0
- package/.output/public/_nuxt/{IitECNfD.js → B6hH0qos.js} +1 -1
- package/.output/public/_nuxt/{BUDtG__q.js → B7HEMfgt.js} +1 -1
- package/.output/public/_nuxt/B84SvUzr.js +1 -0
- package/.output/public/_nuxt/BDXvbRNW.js +1 -0
- package/.output/public/_nuxt/BGRcizqy.js +1 -0
- package/.output/public/_nuxt/{ClYziJpO.js → BGVGiigU.js} +1 -1
- package/.output/public/_nuxt/{ZdjmUBoX.js → BJYf67_H.js} +1 -1
- package/.output/public/_nuxt/BOK5ZFNK.js +1 -0
- package/.output/public/_nuxt/BPY2ud8g.js +1 -0
- package/.output/public/_nuxt/BSONoRG4.js +2 -0
- package/.output/public/_nuxt/BT53m-su.js +1 -0
- package/.output/public/_nuxt/BTJSh8in.js +2 -0
- package/.output/public/_nuxt/BVpt8J3a.js +1 -0
- package/.output/public/_nuxt/{BhUkpIlA.js → BdDEVolW.js} +1 -1
- package/.output/public/_nuxt/{C27bL9Es.js → BeNILdbT.js} +1 -1
- package/.output/public/_nuxt/{Dnx67EG9.js → BmU9CNkM.js} +1 -1
- package/.output/public/_nuxt/{DLHYqHwF.js → BnFDcr74.js} +1 -1
- package/.output/public/_nuxt/{sE-55p4e.js → BprXyYdv.js} +1 -1
- package/.output/public/_nuxt/{BCcTASq_.js → Bq7otXBA.js} +1 -1
- package/.output/public/_nuxt/{B_PBOfFN.js → BqyO8OjC.js} +93 -93
- package/.output/public/_nuxt/Bs1og3h1.js +10 -0
- package/.output/public/_nuxt/Bs2DgR_z.js +1 -0
- package/.output/public/_nuxt/{BsoQBloB.js → BvUhrUEH.js} +1 -1
- package/.output/public/_nuxt/{DkggUtNN.js → BxDrCsPf.js} +1 -1
- package/.output/public/_nuxt/BxrwrGYE.js +1 -0
- package/.output/public/_nuxt/By0aUn7N.js +1 -0
- package/.output/public/_nuxt/{C07rlnlv.js → ByOuUnNS.js} +1 -1
- package/.output/public/_nuxt/C177_GoB.js +1 -0
- package/.output/public/_nuxt/{DcfsxCxL.js → C1jMZ4hc.js} +1 -1
- package/.output/public/_nuxt/C5bgdIOp.js +1 -0
- package/.output/public/_nuxt/C69a9jD3.js +67 -0
- package/.output/public/_nuxt/C8AyZ3_X.js +2 -0
- package/.output/public/_nuxt/C8KplD68.js +1 -0
- package/.output/public/_nuxt/CA99KAte.js +3 -0
- package/.output/public/_nuxt/{CvTHaPAO.js → CE8aasoy.js} +1 -1
- package/.output/public/_nuxt/{DkY69STm.js → CEvNlevo.js} +1 -1
- package/.output/public/_nuxt/{B8JnYxjr.js → CKqvNpN3.js} +1 -1
- package/.output/public/_nuxt/CNF1h1lI.js +1 -0
- package/.output/public/_nuxt/COAycMg4.js +1 -0
- package/.output/public/_nuxt/CR6_eO9a.js +6 -0
- package/.output/public/_nuxt/{D4jn2f-6.js → CREZ9f0O.js} +4 -4
- package/.output/public/_nuxt/CS5ItJPR.js +39 -0
- package/.output/public/_nuxt/CcK14gfI.js +1 -0
- package/.output/public/_nuxt/{DnxDSFih.js → Ci43mke5.js} +3 -3
- package/.output/public/_nuxt/CjouDEjz.js +1 -0
- package/.output/public/_nuxt/Cp5lMcfd.js +1 -0
- package/.output/public/_nuxt/CpYiq1Wv.js +1 -0
- package/.output/public/_nuxt/{DVxTxYP4.js → CrLqg4B0.js} +1 -1
- package/.output/public/_nuxt/{BJxYuvXF.js → CvcedJeQ.js} +1 -1
- package/.output/public/_nuxt/{FIJP2AmN.js → Cvq07PgE.js} +1 -1
- package/.output/public/_nuxt/CwmbX4-U.js +1 -0
- package/.output/public/_nuxt/{B27ECqWz.js → Cx6s86aR.js} +1 -1
- package/.output/public/_nuxt/{DDYV6jDr.js → CybtvDjH.js} +1 -1
- package/.output/public/_nuxt/CzB2y8br.js +18 -0
- package/.output/public/_nuxt/{-p9JbKy8.js → D-YUpbah.js} +3 -3
- package/.output/public/_nuxt/D60Pzl_V.js +1 -0
- package/.output/public/_nuxt/D9BYd7AV.js +1 -0
- package/.output/public/_nuxt/D9dEqMyH.js +152 -0
- package/.output/public/_nuxt/DCJ49Fnq.js +1 -0
- package/.output/public/_nuxt/{gO22NLpn.js → DESYlybj.js} +1 -1
- package/.output/public/_nuxt/DFM-aCBX.js +1 -0
- package/.output/public/_nuxt/{DRKnK1N_.js → DHnNoguE.js} +1 -1
- package/.output/public/_nuxt/{ChkFTcxr.js → DJqZzQsX.js} +1 -1
- package/.output/public/_nuxt/DNNdcUH4.js +1 -0
- package/.output/public/_nuxt/{LFK46Fls.js → DNdM2ZyK.js} +1 -1
- package/.output/public/_nuxt/{CVliJ52o.js → DQT4eICL.js} +1 -1
- package/.output/public/_nuxt/{CffFK_qY.js → DWBoXz89.js} +1 -1
- package/.output/public/_nuxt/DXp9fCib.js +20 -0
- package/.output/public/_nuxt/{ACOLmAuq.js → DaKikgWm.js} +1 -1
- package/.output/public/_nuxt/{B9zSkyFO.js → DaMyovpr.js} +1 -1
- package/.output/public/_nuxt/DeBdxlx0.js +1 -0
- package/.output/public/_nuxt/{trZyeId5.js → DhKwXzSk.js} +1 -1
- package/.output/public/_nuxt/{C6Vqzp-9.js → DkadXn5U.js} +1 -1
- package/.output/public/_nuxt/Dkikh2OC.js +22 -0
- package/.output/public/_nuxt/DlOyXrKK.js +1 -0
- package/.output/public/_nuxt/{UqWhjgOc.js → Dpl6-lqE.js} +1 -1
- package/.output/public/_nuxt/DqA_edEU.js +1 -0
- package/.output/public/_nuxt/DqxL2Lpl.js +1 -0
- package/.output/public/_nuxt/Dt3rfvTn.js +1 -0
- package/.output/public/_nuxt/Dt5h0Tys.js +1 -0
- package/.output/public/_nuxt/DwrSZ8Vj.js +1 -0
- package/.output/public/_nuxt/DwyFZZT6.js +1 -0
- package/.output/public/_nuxt/EM8J-XL1.js +7 -0
- package/.output/public/_nuxt/ESKvsKwc.js +1 -0
- package/.output/public/_nuxt/{CWGdTiOD.js → F5lCgNdb.js} +1 -1
- package/.output/public/_nuxt/H5m89x1B.js +1 -0
- package/.output/public/_nuxt/{CwdIiq6J.js → PUe8M07P.js} +2 -2
- package/.output/public/_nuxt/{Cjgqfl1g.js → TEF-nDfP.js} +1 -1
- package/.output/public/_nuxt/{DNZpxuwM.js → TuKV3Ilv.js} +1 -1
- package/.output/public/_nuxt/V5LvXMJl.js +1 -0
- package/.output/public/_nuxt/{c_huf6xz.js → YJvNy3iu.js} +27 -27
- package/.output/public/_nuxt/{C7C8tPlA.js → ZObQcd0X.js} +1 -1
- package/.output/public/_nuxt/{CHOD7i6O.js → b_MfGg1c.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/455d4da4-6357-4478-8703-78a79ccbbc0f.json +1 -0
- package/.output/public/_nuxt/entry.qdzR7QFr.css +1 -0
- package/.output/public/_nuxt/fpuEgQ7C.js +12 -0
- package/.output/public/_nuxt/jU7fkvuR.js +1 -0
- package/.output/public/_nuxt/{CSTzT9hP.js → lHkFwi3L.js} +1 -1
- package/.output/public/_nuxt/{BQOaPJzs.js → minLMBmY.js} +1 -1
- package/.output/public/_nuxt/pQ8l8BR2.js +1 -0
- package/.output/public/_nuxt/xYXqL1eV.js +1 -0
- package/.output/public/_nuxt/xxfb8w7n.js +1 -0
- package/.output/server/chunks/_/create-adapter.mjs +36 -7
- package/.output/server/chunks/_/create-adapter.mjs.map +1 -1
- package/.output/server/chunks/_/database-error.mjs +10 -0
- package/.output/server/chunks/_/database-error.mjs.map +1 -1
- package/.output/server/chunks/_/database-roles.factory.mjs +126 -22
- package/.output/server/chunks/_/database-roles.factory.mjs.map +1 -1
- package/.output/server/chunks/_/db-connection.mjs +721 -81
- package/.output/server/chunks/_/db-connection.mjs.map +1 -1
- package/.output/server/chunks/_/functions.factory.mjs +97 -6
- package/.output/server/chunks/_/functions.factory.mjs.map +1 -1
- package/.output/server/chunks/_/instance-insights.factory.mjs +106 -7
- package/.output/server/chunks/_/instance-insights.factory.mjs.map +1 -1
- package/.output/server/chunks/_/metadata.factory.mjs +912 -43
- package/.output/server/chunks/_/metadata.factory.mjs.map +1 -1
- package/.output/server/chunks/_/native-backup-jobs.mjs +1302 -0
- package/.output/server/chunks/_/native-backup-jobs.mjs.map +1 -0
- package/.output/server/chunks/_/query.factory.mjs +536 -14
- package/.output/server/chunks/_/query.factory.mjs.map +1 -1
- package/.output/server/chunks/_/schemaMeta.type.mjs +13 -0
- package/.output/server/chunks/_/schemaMeta.type.mjs.map +1 -0
- package/.output/server/chunks/_/tables.factory.mjs +905 -37
- package/.output/server/chunks/_/tables.factory.mjs.map +1 -1
- package/.output/server/chunks/_/type-alias.constants.mjs +242 -0
- package/.output/server/chunks/_/type-alias.constants.mjs.map +1 -0
- package/.output/server/chunks/_/views.factory.mjs +106 -8
- package/.output/server/chunks/_/views.factory.mjs.map +1 -1
- package/.output/server/chunks/build/client.manifest.mjs +676 -672
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +1046 -751
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/ai/agent.mjs +30 -79
- package/.output/server/chunks/routes/api/ai/agent.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/export-database.mjs +26 -124
- package/.output/server/chunks/routes/api/database-export/export-database.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs +52 -0
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs +43 -0
- package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-import/import-database.mjs +69 -134
- package/.output/server/chunks/routes/api/database-import/import-database.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs +43 -0
- package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/create-role.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/create-role.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/delete-role.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/delete-role.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-databases.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-databases.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-role.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-role.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-roles.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-roles.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/definition.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/definition.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/delete.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/delete.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/overview.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/rename.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/rename.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/signature.post.mjs +3 -1
- package/.output/server/chunks/routes/api/functions/signature.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/functions/update.post.mjs +24 -6
- package/.output/server/chunks/routes/api/functions/update.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post.mjs +63 -0
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/state.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/state.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs +2 -0
- package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/managment-connection/health-check.mjs +10 -4
- package/.output/server/chunks/routes/api/managment-connection/health-check.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metadata/erd.post.mjs +4 -0
- package/.output/server/chunks/routes/api/metadata/erd.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs +4 -0
- package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs +4 -0
- package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/metrics/monitor.post.mjs +80 -7
- package/.output/server/chunks/routes/api/metrics/monitor.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/query/execute.post.mjs +3 -1
- package/.output/server/chunks/routes/api/query/execute.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs +3 -1
- package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/query/raw-execute.post.mjs +3 -1
- package/.output/server/chunks/routes/api/query/raw-execute.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/ddl.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/ddl.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/export.post.mjs +4 -2
- package/.output/server/chunks/routes/api/tables/export.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/indexes.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/indexes.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/meta.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/meta.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/overview.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/rls.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/rls.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/rules.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/rules.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/size.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/size.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/structure.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/structure.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tables/triggers.post.mjs +3 -1
- package/.output/server/chunks/routes/api/tables/triggers.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/definition.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/definition.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/dependencies.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/dependencies.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/explain.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/explain.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/indexes.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/indexes.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/meta.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/meta.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/views/overview.post.mjs +2 -0
- package/.output/server/chunks/routes/api/views/overview.post.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/node_modules/aws-ssl-profiles/lib/index.js +13 -0
- package/.output/server/node_modules/aws-ssl-profiles/lib/profiles/ca/defaults.js +2888 -0
- package/.output/server/node_modules/aws-ssl-profiles/lib/profiles/ca/proxies.js +111 -0
- package/.output/server/node_modules/aws-ssl-profiles/package.json +52 -0
- package/.output/server/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
- package/.output/server/node_modules/better-sqlite3/lib/database.js +90 -0
- package/.output/server/node_modules/better-sqlite3/lib/index.js +3 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/function.js +31 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/table.js +189 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
- package/.output/server/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
- package/.output/server/node_modules/better-sqlite3/lib/util.js +12 -0
- package/.output/server/node_modules/better-sqlite3/package.json +59 -0
- package/.output/server/node_modules/cpu-features/build/Release/cpufeatures.node +0 -0
- package/.output/server/node_modules/cpu-features/lib/index.js +5 -0
- package/.output/server/node_modules/cpu-features/package.json +40 -0
- package/.output/server/node_modules/denque/index.js +481 -0
- package/.output/server/node_modules/denque/package.json +58 -0
- package/.output/server/node_modules/generate-function/index.js +181 -0
- package/.output/server/node_modules/generate-function/package.json +32 -0
- package/.output/server/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/.output/server/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/.output/server/node_modules/iconv-lite/encodings/index.js +23 -0
- package/.output/server/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/.output/server/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/.output/server/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/.output/server/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/.output/server/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/.output/server/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/.output/server/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/.output/server/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/.output/server/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/.output/server/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/.output/server/node_modules/iconv-lite/lib/index.js +182 -0
- package/.output/server/node_modules/iconv-lite/lib/streams.js +105 -0
- package/.output/server/node_modules/iconv-lite/package.json +70 -0
- package/.output/server/node_modules/is-property/is-property.js +5 -0
- package/.output/server/node_modules/is-property/package.json +36 -0
- package/.output/server/node_modules/long/package.json +58 -0
- package/.output/server/node_modules/long/umd/index.js +1622 -0
- package/.output/server/node_modules/long/umd/package.json +3 -0
- package/.output/server/node_modules/lru.min/lib/index.js +248 -0
- package/.output/server/node_modules/lru.min/package.json +87 -0
- package/.output/server/node_modules/mysql2/index.js +77 -0
- package/.output/server/node_modules/mysql2/lib/auth_41.js +95 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/caching_sha2_password.js +115 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/index.js +8 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/mysql_clear_password.js +17 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/mysql_native_password.js +34 -0
- package/.output/server/node_modules/mysql2/lib/auth_plugins/sha256_password.js +74 -0
- package/.output/server/node_modules/mysql2/lib/base/connection.js +1139 -0
- package/.output/server/node_modules/mysql2/lib/base/pool.js +343 -0
- package/.output/server/node_modules/mysql2/lib/commands/auth_switch.js +151 -0
- package/.output/server/node_modules/mysql2/lib/commands/binlog_dump.js +109 -0
- package/.output/server/node_modules/mysql2/lib/commands/change_user.js +68 -0
- package/.output/server/node_modules/mysql2/lib/commands/client_handshake.js +386 -0
- package/.output/server/node_modules/mysql2/lib/commands/close_statement.js +18 -0
- package/.output/server/node_modules/mysql2/lib/commands/command.js +54 -0
- package/.output/server/node_modules/mysql2/lib/commands/execute.js +116 -0
- package/.output/server/node_modules/mysql2/lib/commands/index.js +29 -0
- package/.output/server/node_modules/mysql2/lib/commands/ping.js +36 -0
- package/.output/server/node_modules/mysql2/lib/commands/prepare.js +143 -0
- package/.output/server/node_modules/mysql2/lib/commands/query.js +365 -0
- package/.output/server/node_modules/mysql2/lib/commands/quit.js +29 -0
- package/.output/server/node_modules/mysql2/lib/commands/register_slave.js +27 -0
- package/.output/server/node_modules/mysql2/lib/commands/reset_connection.js +29 -0
- package/.output/server/node_modules/mysql2/lib/commands/server_handshake.js +205 -0
- package/.output/server/node_modules/mysql2/lib/compressed_protocol.js +153 -0
- package/.output/server/node_modules/mysql2/lib/connection.js +12 -0
- package/.output/server/node_modules/mysql2/lib/connection_config.js +299 -0
- package/.output/server/node_modules/mysql2/lib/constants/charset_encodings.js +317 -0
- package/.output/server/node_modules/mysql2/lib/constants/charsets.js +317 -0
- package/.output/server/node_modules/mysql2/lib/constants/client.js +39 -0
- package/.output/server/node_modules/mysql2/lib/constants/commands.js +37 -0
- package/.output/server/node_modules/mysql2/lib/constants/cursor.js +9 -0
- package/.output/server/node_modules/mysql2/lib/constants/encoding_charset.js +50 -0
- package/.output/server/node_modules/mysql2/lib/constants/errors.js +3973 -0
- package/.output/server/node_modules/mysql2/lib/constants/field_flags.js +20 -0
- package/.output/server/node_modules/mysql2/lib/constants/server_status.js +44 -0
- package/.output/server/node_modules/mysql2/lib/constants/session_track.js +11 -0
- package/.output/server/node_modules/mysql2/lib/constants/ssl_profiles.js +11 -0
- package/.output/server/node_modules/mysql2/lib/constants/types.js +64 -0
- package/.output/server/node_modules/mysql2/lib/create_connection.js +10 -0
- package/.output/server/node_modules/mysql2/lib/create_pool.js +10 -0
- package/.output/server/node_modules/mysql2/lib/create_pool_cluster.js +9 -0
- package/.output/server/node_modules/mysql2/lib/helpers.js +83 -0
- package/.output/server/node_modules/mysql2/lib/packet_parser.js +195 -0
- package/.output/server/node_modules/mysql2/lib/packets/auth_next_factor.js +35 -0
- package/.output/server/node_modules/mysql2/lib/packets/auth_switch_request.js +38 -0
- package/.output/server/node_modules/mysql2/lib/packets/auth_switch_request_more_data.js +33 -0
- package/.output/server/node_modules/mysql2/lib/packets/auth_switch_response.js +30 -0
- package/.output/server/node_modules/mysql2/lib/packets/binary_row.js +95 -0
- package/.output/server/node_modules/mysql2/lib/packets/binlog_dump.js +33 -0
- package/.output/server/node_modules/mysql2/lib/packets/binlog_query_statusvars.js +115 -0
- package/.output/server/node_modules/mysql2/lib/packets/change_user.js +97 -0
- package/.output/server/node_modules/mysql2/lib/packets/close_statement.js +21 -0
- package/.output/server/node_modules/mysql2/lib/packets/column_definition.js +291 -0
- package/.output/server/node_modules/mysql2/lib/packets/encode_parameter.js +69 -0
- package/.output/server/node_modules/mysql2/lib/packets/execute.js +177 -0
- package/.output/server/node_modules/mysql2/lib/packets/handshake.js +112 -0
- package/.output/server/node_modules/mysql2/lib/packets/handshake_response.js +173 -0
- package/.output/server/node_modules/mysql2/lib/packets/index.js +154 -0
- package/.output/server/node_modules/mysql2/lib/packets/packet.js +978 -0
- package/.output/server/node_modules/mysql2/lib/packets/prepare_statement.js +27 -0
- package/.output/server/node_modules/mysql2/lib/packets/prepared_statement_header.js +16 -0
- package/.output/server/node_modules/mysql2/lib/packets/query.js +102 -0
- package/.output/server/node_modules/mysql2/lib/packets/register_slave.js +46 -0
- package/.output/server/node_modules/mysql2/lib/packets/reset_connection.js +17 -0
- package/.output/server/node_modules/mysql2/lib/packets/resultset_header.js +124 -0
- package/.output/server/node_modules/mysql2/lib/packets/ssl_request.js +25 -0
- package/.output/server/node_modules/mysql2/lib/packets/text_row.js +47 -0
- package/.output/server/node_modules/mysql2/lib/parsers/binary_parser.js +235 -0
- package/.output/server/node_modules/mysql2/lib/parsers/parser_cache.js +68 -0
- package/.output/server/node_modules/mysql2/lib/parsers/static_binary_parser.js +213 -0
- package/.output/server/node_modules/mysql2/lib/parsers/static_text_parser.js +152 -0
- package/.output/server/node_modules/mysql2/lib/parsers/string.js +50 -0
- package/.output/server/node_modules/mysql2/lib/parsers/text_parser.js +214 -0
- package/.output/server/node_modules/mysql2/lib/pool.js +12 -0
- package/.output/server/node_modules/mysql2/lib/pool_cluster.js +375 -0
- package/.output/server/node_modules/mysql2/lib/pool_config.js +34 -0
- package/.output/server/node_modules/mysql2/lib/pool_connection.js +81 -0
- package/.output/server/node_modules/mysql2/lib/promise/capture_local_err.js +25 -0
- package/.output/server/node_modules/mysql2/lib/promise/connection.js +237 -0
- package/.output/server/node_modules/mysql2/lib/promise/inherit_events.js +27 -0
- package/.output/server/node_modules/mysql2/lib/promise/make_done_cb.js +16 -0
- package/.output/server/node_modules/mysql2/lib/promise/pool.js +118 -0
- package/.output/server/node_modules/mysql2/lib/promise/pool_cluster.js +59 -0
- package/.output/server/node_modules/mysql2/lib/promise/pool_connection.js +19 -0
- package/.output/server/node_modules/mysql2/lib/promise/prepared_statement_info.js +35 -0
- package/.output/server/node_modules/mysql2/lib/server.js +37 -0
- package/.output/server/node_modules/mysql2/lib/tracing.js +81 -0
- package/.output/server/node_modules/mysql2/package.json +95 -0
- package/.output/server/node_modules/mysql2/promise.js +209 -0
- package/.output/server/node_modules/named-placeholders/index.js +179 -0
- package/.output/server/node_modules/named-placeholders/package.json +36 -0
- package/.output/server/node_modules/oracledb/index.js +27 -0
- package/.output/server/node_modules/oracledb/lib/aqDeqOptions.js +186 -0
- package/.output/server/node_modules/oracledb/lib/aqEnqOptions.js +81 -0
- package/.output/server/node_modules/oracledb/lib/aqMessage.js +149 -0
- package/.output/server/node_modules/oracledb/lib/aqQueue.js +293 -0
- package/.output/server/node_modules/oracledb/lib/connection.js +1842 -0
- package/.output/server/node_modules/oracledb/lib/constants.js +210 -0
- package/.output/server/node_modules/oracledb/lib/dbObject.js +606 -0
- package/.output/server/node_modules/oracledb/lib/errors.js +1046 -0
- package/.output/server/node_modules/oracledb/lib/future.js +53 -0
- package/.output/server/node_modules/oracledb/lib/impl/aqDeqOptions.js +206 -0
- package/.output/server/node_modules/oracledb/lib/impl/aqEnqOptions.js +89 -0
- package/.output/server/node_modules/oracledb/lib/impl/aqMessage.js +134 -0
- package/.output/server/node_modules/oracledb/lib/impl/aqQueue.js +82 -0
- package/.output/server/node_modules/oracledb/lib/impl/base.js +45 -0
- package/.output/server/node_modules/oracledb/lib/impl/connection.js +671 -0
- package/.output/server/node_modules/oracledb/lib/impl/datahandlers/buffer.js +1214 -0
- package/.output/server/node_modules/oracledb/lib/impl/datahandlers/constants.js +110 -0
- package/.output/server/node_modules/oracledb/lib/impl/datahandlers/oson.js +852 -0
- package/.output/server/node_modules/oracledb/lib/impl/datahandlers/vector.js +197 -0
- package/.output/server/node_modules/oracledb/lib/impl/dbObject.js +159 -0
- package/.output/server/node_modules/oracledb/lib/impl/index.js +59 -0
- package/.output/server/node_modules/oracledb/lib/impl/lob.js +113 -0
- package/.output/server/node_modules/oracledb/lib/impl/pool.js +230 -0
- package/.output/server/node_modules/oracledb/lib/impl/resultset.js +307 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaCollection.js +175 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaDatabase.js +82 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaDocCursor.js +64 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaDocument.js +89 -0
- package/.output/server/node_modules/oracledb/lib/impl/sodaOperation.js +110 -0
- package/.output/server/node_modules/oracledb/lib/lob.js +315 -0
- package/.output/server/node_modules/oracledb/lib/oracledb.js +1716 -0
- package/.output/server/node_modules/oracledb/lib/pool.js +873 -0
- package/.output/server/node_modules/oracledb/lib/poolStatistics.js +143 -0
- package/.output/server/node_modules/oracledb/lib/queryStream.js +119 -0
- package/.output/server/node_modules/oracledb/lib/resultset.js +368 -0
- package/.output/server/node_modules/oracledb/lib/settings.js +221 -0
- package/.output/server/node_modules/oracledb/lib/sodaCollection.js +284 -0
- package/.output/server/node_modules/oracledb/lib/sodaDatabase.js +176 -0
- package/.output/server/node_modules/oracledb/lib/sodaDocCursor.js +82 -0
- package/.output/server/node_modules/oracledb/lib/sodaDocument.js +125 -0
- package/.output/server/node_modules/oracledb/lib/sodaOperation.js +236 -0
- package/.output/server/node_modules/oracledb/lib/thin/aq.js +475 -0
- package/.output/server/node_modules/oracledb/lib/thin/connection.js +1504 -0
- package/.output/server/node_modules/oracledb/lib/thin/dbObject.js +737 -0
- package/.output/server/node_modules/oracledb/lib/thin/index.js +40 -0
- package/.output/server/node_modules/oracledb/lib/thin/lob.js +380 -0
- package/.output/server/node_modules/oracledb/lib/thin/pool.js +738 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/capabilities.js +145 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/constants.js +872 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/encryptDecrypt.js +197 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqArray.js +238 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqBase.js +305 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqDeq.js +164 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqEnq.js +135 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/auth.js +376 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/base.js +568 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/commit.js +56 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/dataType.js +401 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/execute.js +358 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/fastAuth.js +83 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/fetch.js +64 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/index.js +59 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/lobOp.js +195 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/logOff.js +52 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/ping.js +56 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/protocol.js +97 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/rollback.js +56 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/sessionRelease.js +60 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/transactionChangeState.js +99 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/transactionSwitch.js +147 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/withData.js +920 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/packet.js +631 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/protocol.js +240 -0
- package/.output/server/node_modules/oracledb/lib/thin/protocol/utils.js +82 -0
- package/.output/server/node_modules/oracledb/lib/thin/resultSet.js +122 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ANO.js +438 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/connStrategy.js +316 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/constants.js +210 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ezConnectResolver.js +466 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/navNodes.js +904 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/networkSession.js +733 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js +609 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/nvStrToNvPair.js +780 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/packet.js +439 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/paramParser.js +239 -0
- package/.output/server/node_modules/oracledb/lib/thin/sqlnet/sessionAtts.js +198 -0
- package/.output/server/node_modules/oracledb/lib/thin/statement.js +573 -0
- package/.output/server/node_modules/oracledb/lib/thin/statementCache.js +195 -0
- package/.output/server/node_modules/oracledb/lib/thin/util.js +254 -0
- package/.output/server/node_modules/oracledb/lib/traceHandler.js +133 -0
- package/.output/server/node_modules/oracledb/lib/transformer.js +279 -0
- package/.output/server/node_modules/oracledb/lib/types.js +592 -0
- package/.output/server/node_modules/oracledb/lib/util.js +648 -0
- package/.output/server/node_modules/oracledb/lib/version.js +36 -0
- package/.output/server/node_modules/oracledb/package.json +48 -0
- package/.output/server/node_modules/sql-escaper/lib/index.js +398 -0
- package/.output/server/node_modules/sql-escaper/package.json +81 -0
- package/.output/server/node_modules/sqlite3/build/Release/node_sqlite3.node +0 -0
- package/.output/server/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
- package/.output/server/package.json +14 -18
- package/package.json +2 -2
- package/.output/public/_nuxt/019vQzZn.js +0 -1
- package/.output/public/_nuxt/0lRW_xjL.js +0 -1
- package/.output/public/_nuxt/B6EI6PpE.js +0 -1
- package/.output/public/_nuxt/B9Mt45db.js +0 -1
- package/.output/public/_nuxt/BKltSiU0.js +0 -1
- package/.output/public/_nuxt/BM4vnZvX.js +0 -732
- package/.output/public/_nuxt/BNYR501z.js +0 -1
- package/.output/public/_nuxt/BVLVn__t.js +0 -9
- package/.output/public/_nuxt/BY1l0S_M.js +0 -1
- package/.output/public/_nuxt/BaseCodeEditor.SAr2eD8R.css +0 -1
- package/.output/public/_nuxt/BcvJQkv0.js +0 -1
- package/.output/public/_nuxt/BdN9B2_l.js +0 -160
- package/.output/public/_nuxt/BflvengI.js +0 -1
- package/.output/public/_nuxt/BgolbRTO.js +0 -1
- package/.output/public/_nuxt/BwISH3M4.js +0 -1
- package/.output/public/_nuxt/C-M4q4KX.js +0 -1
- package/.output/public/_nuxt/C2Ziircr.js +0 -1
- package/.output/public/_nuxt/C3NWXcpd.js +0 -39
- package/.output/public/_nuxt/C5p44jKD.js +0 -1
- package/.output/public/_nuxt/C617vhDd.js +0 -1
- package/.output/public/_nuxt/C8S0o4Gy.js +0 -1
- package/.output/public/_nuxt/CNlsVoWh.js +0 -1
- package/.output/public/_nuxt/CWkPMmwS.js +0 -2
- package/.output/public/_nuxt/Cgy4ijjN.js +0 -67
- package/.output/public/_nuxt/ClBBUcFW.js +0 -1
- package/.output/public/_nuxt/CuRyxljq.js +0 -1
- package/.output/public/_nuxt/Cx4Bnfq1.js +0 -2
- package/.output/public/_nuxt/D-H6_V16.js +0 -1
- package/.output/public/_nuxt/D-SDqguC.js +0 -1
- package/.output/public/_nuxt/D-XwprNU.js +0 -6
- package/.output/public/_nuxt/D3G5Xy_-.js +0 -1
- package/.output/public/_nuxt/D9o5Pdvp.js +0 -1
- package/.output/public/_nuxt/DFArp87o.js +0 -1
- package/.output/public/_nuxt/DFZIXzfU.js +0 -1
- package/.output/public/_nuxt/DHRNt0p9.js +0 -1
- package/.output/public/_nuxt/DLKku6fV.js +0 -1
- package/.output/public/_nuxt/DWgjNKGq.js +0 -152
- package/.output/public/_nuxt/DYm57BZk.js +0 -2
- package/.output/public/_nuxt/DaQw8gVp.js +0 -1
- package/.output/public/_nuxt/DgnsV5Qb.js +0 -1
- package/.output/public/_nuxt/Do5Fyo7J.js +0 -1
- package/.output/public/_nuxt/Dqirx7MF.js +0 -1
- package/.output/public/_nuxt/GoTwJjoS.js +0 -39
- package/.output/public/_nuxt/Hs25HoUO.js +0 -22
- package/.output/public/_nuxt/J2CvNR3L.js +0 -1
- package/.output/public/_nuxt/LK6Q8l0D.js +0 -1
- package/.output/public/_nuxt/Oh9SO2qg.js +0 -1
- package/.output/public/_nuxt/P_8UoGnr.js +0 -72
- package/.output/public/_nuxt/V5yaR3hv.js +0 -2
- package/.output/public/_nuxt/XWTuAj6n.js +0 -1
- package/.output/public/_nuxt/XqwbcqcW.js +0 -1
- package/.output/public/_nuxt/Yzrsuije.js +0 -1
- package/.output/public/_nuxt/_8UrUcVF.js +0 -1
- package/.output/public/_nuxt/builds/meta/27a307c3-bfc5-4ccd-94b8-387eb94981bb.json +0 -1
- package/.output/public/_nuxt/cKBf5-av.js +0 -1
- package/.output/public/_nuxt/entry.DeK5kcSi.css +0 -1
- package/.output/public/_nuxt/kc-op4gz.js +0 -12
- package/.output/public/_nuxt/kehy-5uo.js +0 -1
- package/.output/public/_nuxt/lSaGvORn.js +0 -10
- package/.output/public/_nuxt/lY3EyFEK.js +0 -1
- package/.output/public/_nuxt/tMhdAKU2.js +0 -3
- package/.output/public/_nuxt/uyCIL8xw.js +0 -1
- package/.output/server/node_modules/cross-spawn/index.js +0 -39
- package/.output/server/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/.output/server/node_modules/cross-spawn/lib/parse.js +0 -91
- package/.output/server/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/.output/server/node_modules/cross-spawn/package.json +0 -73
- package/.output/server/node_modules/execa/index.js +0 -268
- package/.output/server/node_modules/execa/lib/command.js +0 -52
- package/.output/server/node_modules/execa/lib/error.js +0 -88
- package/.output/server/node_modules/execa/lib/kill.js +0 -115
- package/.output/server/node_modules/execa/lib/promise.js +0 -46
- package/.output/server/node_modules/execa/lib/stdio.js +0 -52
- package/.output/server/node_modules/execa/lib/stream.js +0 -97
- package/.output/server/node_modules/execa/package.json +0 -74
- package/.output/server/node_modules/get-stream/buffer-stream.js +0 -52
- package/.output/server/node_modules/get-stream/index.js +0 -61
- package/.output/server/node_modules/get-stream/package.json +0 -47
- package/.output/server/node_modules/human-signals/build/src/core.js +0 -273
- package/.output/server/node_modules/human-signals/build/src/main.js +0 -71
- package/.output/server/node_modules/human-signals/build/src/realtime.js +0 -19
- package/.output/server/node_modules/human-signals/build/src/signals.js +0 -35
- package/.output/server/node_modules/human-signals/package.json +0 -64
- package/.output/server/node_modules/is-stream/index.js +0 -28
- package/.output/server/node_modules/is-stream/package.json +0 -42
- package/.output/server/node_modules/isexe/index.js +0 -57
- package/.output/server/node_modules/isexe/mode.js +0 -41
- package/.output/server/node_modules/isexe/package.json +0 -31
- package/.output/server/node_modules/isexe/windows.js +0 -42
- package/.output/server/node_modules/merge-stream/index.js +0 -41
- package/.output/server/node_modules/merge-stream/package.json +0 -19
- package/.output/server/node_modules/mimic-fn/index.js +0 -13
- package/.output/server/node_modules/mimic-fn/package.json +0 -42
- package/.output/server/node_modules/npm-run-path/index.js +0 -47
- package/.output/server/node_modules/npm-run-path/package.json +0 -44
- package/.output/server/node_modules/onetime/index.js +0 -44
- package/.output/server/node_modules/onetime/package.json +0 -43
- package/.output/server/node_modules/path-key/index.js +0 -16
- package/.output/server/node_modules/path-key/package.json +0 -39
- package/.output/server/node_modules/pg-dump-restore/lib/common.js +0 -33
- package/.output/server/node_modules/pg-dump-restore/lib/index.js +0 -9
- package/.output/server/node_modules/pg-dump-restore/lib/pg-dump.js +0 -95
- package/.output/server/node_modules/pg-dump-restore/lib/pg-restore.js +0 -87
- package/.output/server/node_modules/pg-dump-restore/package.json +0 -66
- package/.output/server/node_modules/shebang-command/index.js +0 -19
- package/.output/server/node_modules/shebang-command/package.json +0 -34
- package/.output/server/node_modules/shebang-regex/index.js +0 -2
- package/.output/server/node_modules/shebang-regex/package.json +0 -35
- package/.output/server/node_modules/signal-exit/index.js +0 -202
- package/.output/server/node_modules/signal-exit/package.json +0 -38
- package/.output/server/node_modules/signal-exit/signals.js +0 -53
- package/.output/server/node_modules/strip-final-newline/index.js +0 -16
- package/.output/server/node_modules/strip-final-newline/package.json +0 -40
- package/.output/server/node_modules/which/package.json +0 -43
- package/.output/server/node_modules/which/which.js +0 -125
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createLRU = void 0;
|
|
4
|
+
const createLRU = (options) => {
|
|
5
|
+
let { max } = options;
|
|
6
|
+
if (!(Number.isInteger(max) && max > 0))
|
|
7
|
+
throw new TypeError('`max` must be a positive integer');
|
|
8
|
+
let size = 0;
|
|
9
|
+
let head = 0;
|
|
10
|
+
let tail = 0;
|
|
11
|
+
let free = [];
|
|
12
|
+
const { onEviction } = options;
|
|
13
|
+
const keyMap = new Map();
|
|
14
|
+
const keyList = new Array(max).fill(undefined);
|
|
15
|
+
const valList = new Array(max).fill(undefined);
|
|
16
|
+
const next = new Array(max).fill(0);
|
|
17
|
+
const prev = new Array(max).fill(0);
|
|
18
|
+
const linkTail = (index) => {
|
|
19
|
+
next[tail] = index;
|
|
20
|
+
prev[index] = tail;
|
|
21
|
+
next[index] = 0;
|
|
22
|
+
tail = index;
|
|
23
|
+
};
|
|
24
|
+
const moveToTail = (index) => {
|
|
25
|
+
if (index === tail)
|
|
26
|
+
return;
|
|
27
|
+
const nextIndex = next[index];
|
|
28
|
+
const prevIndex = prev[index];
|
|
29
|
+
if (index === head)
|
|
30
|
+
head = nextIndex;
|
|
31
|
+
else
|
|
32
|
+
next[prevIndex] = nextIndex;
|
|
33
|
+
prev[nextIndex] = prevIndex;
|
|
34
|
+
linkTail(index);
|
|
35
|
+
};
|
|
36
|
+
const _shrink = (newMax) => {
|
|
37
|
+
let current = tail;
|
|
38
|
+
const preserve = Math.min(size, newMax);
|
|
39
|
+
const remove = size - preserve;
|
|
40
|
+
const newKeyList = new Array(preserve);
|
|
41
|
+
const newValList = new Array(preserve);
|
|
42
|
+
for (let i = 0; i < remove; i++) {
|
|
43
|
+
const key = keyList[head];
|
|
44
|
+
onEviction === null || onEviction === void 0 ? void 0 : onEviction(key, valList[head]);
|
|
45
|
+
keyMap.delete(key);
|
|
46
|
+
head = next[head];
|
|
47
|
+
}
|
|
48
|
+
for (let i = preserve - 1; i >= 0; i--) {
|
|
49
|
+
newKeyList[i] = keyList[current];
|
|
50
|
+
newValList[i] = valList[current];
|
|
51
|
+
keyMap.set(keyList[current], i);
|
|
52
|
+
current = prev[current];
|
|
53
|
+
}
|
|
54
|
+
head = 0;
|
|
55
|
+
tail = preserve - 1;
|
|
56
|
+
size = preserve;
|
|
57
|
+
keyList.length = newMax;
|
|
58
|
+
valList.length = newMax;
|
|
59
|
+
next.length = newMax;
|
|
60
|
+
prev.length = newMax;
|
|
61
|
+
for (let i = 0; i < preserve; i++) {
|
|
62
|
+
keyList[i] = newKeyList[i];
|
|
63
|
+
valList[i] = newValList[i];
|
|
64
|
+
next[i] = i + 1;
|
|
65
|
+
prev[i] = i - 1;
|
|
66
|
+
}
|
|
67
|
+
free = [];
|
|
68
|
+
for (let i = preserve; i < newMax; i++)
|
|
69
|
+
free.push(i);
|
|
70
|
+
};
|
|
71
|
+
const _grow = (newMax) => {
|
|
72
|
+
keyList.length = newMax;
|
|
73
|
+
valList.length = newMax;
|
|
74
|
+
next.length = newMax;
|
|
75
|
+
prev.length = newMax;
|
|
76
|
+
keyList.fill(undefined, max);
|
|
77
|
+
valList.fill(undefined, max);
|
|
78
|
+
next.fill(0, max);
|
|
79
|
+
prev.fill(0, max);
|
|
80
|
+
};
|
|
81
|
+
return {
|
|
82
|
+
/** Adds a key-value pair to the cache. Updates the value if the key already exists. */
|
|
83
|
+
set(key, value) {
|
|
84
|
+
if (key === undefined)
|
|
85
|
+
return;
|
|
86
|
+
let index = keyMap.get(key);
|
|
87
|
+
if (index === undefined) {
|
|
88
|
+
if (size === max) {
|
|
89
|
+
index = head;
|
|
90
|
+
const evictKey = keyList[index];
|
|
91
|
+
onEviction === null || onEviction === void 0 ? void 0 : onEviction(evictKey, valList[index]);
|
|
92
|
+
keyMap.delete(evictKey);
|
|
93
|
+
head = next[index];
|
|
94
|
+
prev[head] = 0;
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
index = free.length > 0 ? free.pop() : size;
|
|
98
|
+
size++;
|
|
99
|
+
}
|
|
100
|
+
keyMap.set(key, index);
|
|
101
|
+
keyList[index] = key;
|
|
102
|
+
valList[index] = value;
|
|
103
|
+
if (size === 1)
|
|
104
|
+
head = tail = index;
|
|
105
|
+
else
|
|
106
|
+
linkTail(index);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
onEviction === null || onEviction === void 0 ? void 0 : onEviction(key, valList[index]);
|
|
110
|
+
valList[index] = value;
|
|
111
|
+
moveToTail(index);
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
/** Retrieves the value for a given key and moves the key to the most recent position. */
|
|
115
|
+
get(key) {
|
|
116
|
+
const index = keyMap.get(key);
|
|
117
|
+
if (index === undefined)
|
|
118
|
+
return;
|
|
119
|
+
if (index !== tail)
|
|
120
|
+
moveToTail(index);
|
|
121
|
+
return valList[index];
|
|
122
|
+
},
|
|
123
|
+
/** Retrieves the value for a given key without changing its position. */
|
|
124
|
+
peek: (key) => {
|
|
125
|
+
const index = keyMap.get(key);
|
|
126
|
+
return index !== undefined ? valList[index] : undefined;
|
|
127
|
+
},
|
|
128
|
+
/** Checks if a key exists in the cache. */
|
|
129
|
+
has: (key) => keyMap.has(key),
|
|
130
|
+
/** Iterates over all keys in the cache, from most recent to least recent. */
|
|
131
|
+
*keys() {
|
|
132
|
+
let current = tail;
|
|
133
|
+
for (let i = 0; i < size; i++) {
|
|
134
|
+
yield keyList[current];
|
|
135
|
+
current = prev[current];
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
/** Iterates over all values in the cache, from most recent to least recent. */
|
|
139
|
+
*values() {
|
|
140
|
+
let current = tail;
|
|
141
|
+
for (let i = 0; i < size; i++) {
|
|
142
|
+
yield valList[current];
|
|
143
|
+
current = prev[current];
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
/** Iterates over `[key, value]` pairs in the cache, from most recent to least recent. */
|
|
147
|
+
*entries() {
|
|
148
|
+
let current = tail;
|
|
149
|
+
for (let i = 0; i < size; i++) {
|
|
150
|
+
yield [keyList[current], valList[current]];
|
|
151
|
+
current = prev[current];
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
/** Iterates over each value-key pair in the cache, from most recent to least recent. */
|
|
155
|
+
forEach: (callback) => {
|
|
156
|
+
let current = tail;
|
|
157
|
+
for (let i = 0; i < size; i++) {
|
|
158
|
+
const key = keyList[current];
|
|
159
|
+
const value = valList[current];
|
|
160
|
+
callback(value, key);
|
|
161
|
+
current = prev[current];
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
/** Deletes a key-value pair from the cache. */
|
|
165
|
+
delete(key) {
|
|
166
|
+
const index = keyMap.get(key);
|
|
167
|
+
if (index === undefined)
|
|
168
|
+
return false;
|
|
169
|
+
onEviction === null || onEviction === void 0 ? void 0 : onEviction(key, valList[index]);
|
|
170
|
+
keyMap.delete(key);
|
|
171
|
+
free.push(index);
|
|
172
|
+
keyList[index] = undefined;
|
|
173
|
+
valList[index] = undefined;
|
|
174
|
+
const prevIndex = prev[index];
|
|
175
|
+
const nextIndex = next[index];
|
|
176
|
+
if (index === head)
|
|
177
|
+
head = nextIndex;
|
|
178
|
+
else
|
|
179
|
+
next[prevIndex] = nextIndex;
|
|
180
|
+
if (index === tail)
|
|
181
|
+
tail = prevIndex;
|
|
182
|
+
else
|
|
183
|
+
prev[nextIndex] = prevIndex;
|
|
184
|
+
size--;
|
|
185
|
+
return true;
|
|
186
|
+
},
|
|
187
|
+
/** Evicts the oldest item or the specified number of the oldest items from the cache. */
|
|
188
|
+
evict: (number) => {
|
|
189
|
+
let toPrune = Math.min(number, size);
|
|
190
|
+
while (toPrune > 0) {
|
|
191
|
+
const evictHead = head;
|
|
192
|
+
const key = keyList[evictHead];
|
|
193
|
+
onEviction === null || onEviction === void 0 ? void 0 : onEviction(key, valList[evictHead]);
|
|
194
|
+
keyMap.delete(key);
|
|
195
|
+
keyList[evictHead] = undefined;
|
|
196
|
+
valList[evictHead] = undefined;
|
|
197
|
+
head = next[evictHead];
|
|
198
|
+
prev[head] = 0;
|
|
199
|
+
size--;
|
|
200
|
+
free.push(evictHead);
|
|
201
|
+
toPrune--;
|
|
202
|
+
}
|
|
203
|
+
if (size === 0)
|
|
204
|
+
head = tail = 0;
|
|
205
|
+
},
|
|
206
|
+
/** Clears all key-value pairs from the cache. */
|
|
207
|
+
clear() {
|
|
208
|
+
if (onEviction) {
|
|
209
|
+
let current = head;
|
|
210
|
+
for (let i = 0; i < size; i++) {
|
|
211
|
+
onEviction(keyList[current], valList[current]);
|
|
212
|
+
current = next[current];
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
keyMap.clear();
|
|
216
|
+
keyList.fill(undefined);
|
|
217
|
+
valList.fill(undefined);
|
|
218
|
+
free = [];
|
|
219
|
+
size = 0;
|
|
220
|
+
head = tail = 0;
|
|
221
|
+
},
|
|
222
|
+
/** Resizes the cache to a new maximum size, evicting items if necessary. */
|
|
223
|
+
resize: (newMax) => {
|
|
224
|
+
if (!(Number.isInteger(newMax) && newMax > 0))
|
|
225
|
+
throw new TypeError('`max` must be a positive integer');
|
|
226
|
+
if (newMax === max)
|
|
227
|
+
return;
|
|
228
|
+
if (newMax < max)
|
|
229
|
+
_shrink(newMax);
|
|
230
|
+
else
|
|
231
|
+
_grow(newMax);
|
|
232
|
+
max = newMax;
|
|
233
|
+
},
|
|
234
|
+
/** Returns the maximum number of items that can be stored in the cache. */
|
|
235
|
+
get max() {
|
|
236
|
+
return max;
|
|
237
|
+
},
|
|
238
|
+
/** Returns the number of items currently stored in the cache. */
|
|
239
|
+
get size() {
|
|
240
|
+
return size;
|
|
241
|
+
},
|
|
242
|
+
/** Returns the number of currently available slots in the cache before reaching the maximum size. */
|
|
243
|
+
get available() {
|
|
244
|
+
return max - size;
|
|
245
|
+
},
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
exports.createLRU = createLRU;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lru.min",
|
|
3
|
+
"version": "1.1.4",
|
|
4
|
+
"description": "🔥 An extremely fast and efficient LRU cache for JavaScript with high compatibility (including Browsers).",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"module": "./lib/index.mjs",
|
|
7
|
+
"types": "./lib/index.d.ts",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/wellwelwel/lru.min.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/wellwelwel/lru.min/issues"
|
|
15
|
+
},
|
|
16
|
+
"author": "https://github.com/wellwelwel",
|
|
17
|
+
"funding": {
|
|
18
|
+
"type": "github",
|
|
19
|
+
"url": "https://github.com/sponsors/wellwelwel"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"browser",
|
|
23
|
+
"lib"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=8.0.0",
|
|
27
|
+
"bun": ">=1.0.0",
|
|
28
|
+
"deno": ">=1.30.0"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"benchmark:esm": "cd benchmark && npm ci && node index.mjs",
|
|
32
|
+
"benchmark:cjs": "cd benchmark && npm ci && node index.cjs",
|
|
33
|
+
"build:browser": "tsx tools/browserfy.ts",
|
|
34
|
+
"build:esm": "esbuild src/index.ts --outfile=lib/index.mjs --platform=node --target=node12 --format=esm",
|
|
35
|
+
"build": "rm -rf ./browser ./lib && tsc && npm run build:esm && npm run build:browser",
|
|
36
|
+
"test:node": "poku",
|
|
37
|
+
"test:bun": "bun poku",
|
|
38
|
+
"test:deno": "deno run -A npm:poku",
|
|
39
|
+
"test:coverage": "mcr --import tsx --config mcr.config.ts npm run test:node",
|
|
40
|
+
"lint": "npx @biomejs/biome lint && prettier --check .",
|
|
41
|
+
"lint:fix": "npx @biomejs/biome lint --write && prettier --write .github/workflows/*.yml .",
|
|
42
|
+
"update": "pu minor && npm i && (npm audit fix || true) && npm run lint:fix",
|
|
43
|
+
"size": "ls -lh lib/index.mjs | awk '{print $5}'"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@babel/core": "^7.29.0",
|
|
47
|
+
"@babel/preset-env": "^7.29.0",
|
|
48
|
+
"@biomejs/biome": "^1.9.4",
|
|
49
|
+
"@types/babel__core": "^7.20.5",
|
|
50
|
+
"@types/node": "^24.10.9",
|
|
51
|
+
"esbuild": "^0.27.2",
|
|
52
|
+
"monocart-coverage-reports": "^2.12.9",
|
|
53
|
+
"packages-update": "^2.0.0",
|
|
54
|
+
"poku": "^3.0.3-canary.13a996a9",
|
|
55
|
+
"prettier": "^3.8.1",
|
|
56
|
+
"terser": "^5.46.0",
|
|
57
|
+
"tsx": "^4.21.0",
|
|
58
|
+
"typescript": "^5.9.3"
|
|
59
|
+
},
|
|
60
|
+
"exports": {
|
|
61
|
+
".": {
|
|
62
|
+
"import": {
|
|
63
|
+
"types": "./lib/index.d.ts",
|
|
64
|
+
"default": "./lib/index.mjs"
|
|
65
|
+
},
|
|
66
|
+
"require": {
|
|
67
|
+
"types": "./lib/index.d.ts",
|
|
68
|
+
"default": "./lib/index.js"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"keywords": [
|
|
73
|
+
"lru",
|
|
74
|
+
"cache",
|
|
75
|
+
"caching",
|
|
76
|
+
"hash",
|
|
77
|
+
"node",
|
|
78
|
+
"nodejs",
|
|
79
|
+
"bun",
|
|
80
|
+
"deno",
|
|
81
|
+
"typescript",
|
|
82
|
+
"browser",
|
|
83
|
+
"fast",
|
|
84
|
+
"lru-cache",
|
|
85
|
+
"quick-lru"
|
|
86
|
+
]
|
|
87
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const SqlString = require('sql-escaper');
|
|
4
|
+
|
|
5
|
+
const ConnectionConfig = require('./lib/connection_config.js');
|
|
6
|
+
const parserCache = require('./lib/parsers/parser_cache.js');
|
|
7
|
+
|
|
8
|
+
const Connection = require('./lib/connection.js');
|
|
9
|
+
|
|
10
|
+
exports.createConnection = require('./lib/create_connection.js');
|
|
11
|
+
exports.connect = exports.createConnection;
|
|
12
|
+
exports.Connection = Connection;
|
|
13
|
+
exports.ConnectionConfig = ConnectionConfig;
|
|
14
|
+
|
|
15
|
+
const Pool = require('./lib/pool.js');
|
|
16
|
+
const PoolCluster = require('./lib/pool_cluster.js');
|
|
17
|
+
const createPool = require('./lib/create_pool.js');
|
|
18
|
+
const createPoolCluster = require('./lib/create_pool_cluster.js');
|
|
19
|
+
|
|
20
|
+
exports.createPool = createPool;
|
|
21
|
+
|
|
22
|
+
exports.createPoolCluster = createPoolCluster;
|
|
23
|
+
|
|
24
|
+
exports.createQuery = Connection.createQuery;
|
|
25
|
+
|
|
26
|
+
exports.Pool = Pool;
|
|
27
|
+
|
|
28
|
+
exports.PoolCluster = PoolCluster;
|
|
29
|
+
|
|
30
|
+
exports.createServer = function (handler) {
|
|
31
|
+
const Server = require('./lib/server.js');
|
|
32
|
+
const s = new Server();
|
|
33
|
+
if (handler) {
|
|
34
|
+
s.on('connection', handler);
|
|
35
|
+
}
|
|
36
|
+
return s;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
exports.PoolConnection = require('./lib/pool_connection.js');
|
|
40
|
+
exports.authPlugins = require('./lib/auth_plugins');
|
|
41
|
+
exports.escape = SqlString.escape;
|
|
42
|
+
exports.escapeId = SqlString.escapeId;
|
|
43
|
+
exports.format = SqlString.format;
|
|
44
|
+
exports.raw = SqlString.raw;
|
|
45
|
+
|
|
46
|
+
exports.__defineGetter__(
|
|
47
|
+
'createConnectionPromise',
|
|
48
|
+
() => require('./promise.js').createConnection
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
exports.__defineGetter__(
|
|
52
|
+
'createPoolPromise',
|
|
53
|
+
() => require('./promise.js').createPool
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
exports.__defineGetter__(
|
|
57
|
+
'createPoolClusterPromise',
|
|
58
|
+
() => require('./promise.js').createPoolCluster
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
exports.__defineGetter__('Types', () => require('./lib/constants/types.js'));
|
|
62
|
+
|
|
63
|
+
exports.__defineGetter__('Charsets', () =>
|
|
64
|
+
require('./lib/constants/charsets.js')
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
exports.__defineGetter__('CharsetToEncoding', () =>
|
|
68
|
+
require('./lib/constants/charset_encodings.js')
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
exports.setMaxParserCache = function (max) {
|
|
72
|
+
parserCache.setMaxCache(max);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
exports.clearParserCache = function () {
|
|
76
|
+
parserCache.clearCache();
|
|
77
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
4.1 authentication: (http://bazaar.launchpad.net/~mysql/mysql-server/5.5/view/head:/sql/password.c)
|
|
5
|
+
|
|
6
|
+
SERVER: public_seed=create_random_string()
|
|
7
|
+
send(public_seed)
|
|
8
|
+
|
|
9
|
+
CLIENT: recv(public_seed)
|
|
10
|
+
hash_stage1=sha1("password")
|
|
11
|
+
hash_stage2=sha1(hash_stage1)
|
|
12
|
+
reply=xor(hash_stage1, sha1(public_seed,hash_stage2)
|
|
13
|
+
|
|
14
|
+
// this three steps are done in scramble()
|
|
15
|
+
|
|
16
|
+
send(reply)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
SERVER: recv(reply)
|
|
20
|
+
hash_stage1=xor(reply, sha1(public_seed,hash_stage2))
|
|
21
|
+
candidate_hash2=sha1(hash_stage1)
|
|
22
|
+
check(candidate_hash2==hash_stage2)
|
|
23
|
+
|
|
24
|
+
server stores sha1(sha1(password)) ( hash_stag2)
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
const crypto = require('crypto');
|
|
28
|
+
|
|
29
|
+
function sha1(msg, msg1, msg2) {
|
|
30
|
+
const hash = crypto.createHash('sha1');
|
|
31
|
+
hash.update(msg);
|
|
32
|
+
if (msg1) {
|
|
33
|
+
hash.update(msg1);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (msg2) {
|
|
37
|
+
hash.update(msg2);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return hash.digest();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function xor(a, b) {
|
|
44
|
+
const result = Buffer.allocUnsafe(a.length);
|
|
45
|
+
for (let i = 0; i < a.length; i++) {
|
|
46
|
+
result[i] = a[i] ^ b[i];
|
|
47
|
+
}
|
|
48
|
+
return result;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
exports.xor = xor;
|
|
52
|
+
|
|
53
|
+
function token(password, scramble1, scramble2) {
|
|
54
|
+
if (!password) {
|
|
55
|
+
return Buffer.alloc(0);
|
|
56
|
+
}
|
|
57
|
+
const stage1 = sha1(password);
|
|
58
|
+
return exports.calculateTokenFromPasswordSha(stage1, scramble1, scramble2);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
exports.calculateTokenFromPasswordSha = function (
|
|
62
|
+
passwordSha,
|
|
63
|
+
scramble1,
|
|
64
|
+
scramble2
|
|
65
|
+
) {
|
|
66
|
+
// we use AUTH 41 here, and we need only the bytes we just need.
|
|
67
|
+
const authPluginData1 = scramble1.slice(0, 8);
|
|
68
|
+
const authPluginData2 = scramble2.slice(0, 12);
|
|
69
|
+
const stage2 = sha1(passwordSha);
|
|
70
|
+
const stage3 = sha1(authPluginData1, authPluginData2, stage2);
|
|
71
|
+
return xor(stage3, passwordSha);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
exports.calculateToken = token;
|
|
75
|
+
|
|
76
|
+
exports.verifyToken = function (publicSeed1, publicSeed2, token, doubleSha) {
|
|
77
|
+
const hashStage1 = xor(token, sha1(publicSeed1, publicSeed2, doubleSha));
|
|
78
|
+
const candidateHash2 = sha1(hashStage1);
|
|
79
|
+
return candidateHash2.compare(doubleSha) === 0;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
exports.doubleSha1 = function (password) {
|
|
83
|
+
return sha1(sha1(password));
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
function xorRotating(a, seed) {
|
|
87
|
+
const result = Buffer.allocUnsafe(a.length);
|
|
88
|
+
const seedLen = seed.length;
|
|
89
|
+
|
|
90
|
+
for (let i = 0; i < a.length; i++) {
|
|
91
|
+
result[i] = a[i] ^ seed[i % seedLen];
|
|
92
|
+
}
|
|
93
|
+
return result;
|
|
94
|
+
}
|
|
95
|
+
exports.xorRotating = xorRotating;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// https://mysqlserverteam.com/mysql-8-0-4-new-default-authentication-plugin-caching_sha2_password/
|
|
4
|
+
|
|
5
|
+
const PLUGIN_NAME = 'caching_sha2_password';
|
|
6
|
+
const crypto = require('crypto');
|
|
7
|
+
const { xor, xorRotating } = require('../auth_41');
|
|
8
|
+
|
|
9
|
+
const REQUEST_SERVER_KEY_PACKET = Buffer.from([2]);
|
|
10
|
+
const FAST_AUTH_SUCCESS_PACKET = Buffer.from([3]);
|
|
11
|
+
const PERFORM_FULL_AUTHENTICATION_PACKET = Buffer.from([4]);
|
|
12
|
+
|
|
13
|
+
const STATE_INITIAL = 0;
|
|
14
|
+
const STATE_TOKEN_SENT = 1;
|
|
15
|
+
const STATE_WAIT_SERVER_KEY = 2;
|
|
16
|
+
const STATE_FINAL = -1;
|
|
17
|
+
|
|
18
|
+
function sha256(msg) {
|
|
19
|
+
const hash = crypto.createHash('sha256');
|
|
20
|
+
hash.update(msg);
|
|
21
|
+
return hash.digest();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function calculateToken(password, scramble) {
|
|
25
|
+
if (!password) {
|
|
26
|
+
return Buffer.alloc(0);
|
|
27
|
+
}
|
|
28
|
+
const stage1 = sha256(Buffer.from(password));
|
|
29
|
+
const stage2 = sha256(stage1);
|
|
30
|
+
const stage3 = sha256(Buffer.concat([stage2, scramble]));
|
|
31
|
+
return xor(stage1, stage3);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function encrypt(password, scramble, key) {
|
|
35
|
+
const stage1 = xorRotating(Buffer.from(`${password}\0`, 'utf8'), scramble);
|
|
36
|
+
return crypto.publicEncrypt(
|
|
37
|
+
{
|
|
38
|
+
key,
|
|
39
|
+
oaepHash: 'sha1',
|
|
40
|
+
padding: crypto.constants.RSA_PKCS1_OAEP_PADDING,
|
|
41
|
+
},
|
|
42
|
+
stage1
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const pluginFactory =
|
|
47
|
+
(pluginOptions = {}) =>
|
|
48
|
+
({ connection }) => {
|
|
49
|
+
let state = 0;
|
|
50
|
+
let scramble = null;
|
|
51
|
+
|
|
52
|
+
const password = connection.config.password;
|
|
53
|
+
|
|
54
|
+
const authWithKey = (serverKey) => {
|
|
55
|
+
const _password = encrypt(password, scramble, serverKey);
|
|
56
|
+
state = STATE_FINAL;
|
|
57
|
+
return _password;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
return (data) => {
|
|
61
|
+
switch (state) {
|
|
62
|
+
case STATE_INITIAL:
|
|
63
|
+
scramble = data.slice(0, 20);
|
|
64
|
+
state = STATE_TOKEN_SENT;
|
|
65
|
+
return calculateToken(password, scramble);
|
|
66
|
+
|
|
67
|
+
case STATE_TOKEN_SENT:
|
|
68
|
+
if (FAST_AUTH_SUCCESS_PACKET.equals(data)) {
|
|
69
|
+
state = STATE_FINAL;
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (PERFORM_FULL_AUTHENTICATION_PACKET.equals(data)) {
|
|
74
|
+
const isSecureConnection =
|
|
75
|
+
typeof pluginOptions.overrideIsSecure === 'undefined'
|
|
76
|
+
? connection.config.ssl || connection.config.socketPath
|
|
77
|
+
: pluginOptions.overrideIsSecure;
|
|
78
|
+
if (isSecureConnection) {
|
|
79
|
+
state = STATE_FINAL;
|
|
80
|
+
return Buffer.from(`${password}\0`, 'utf8');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// if client provides key we can save one extra roundrip on first connection
|
|
84
|
+
if (pluginOptions.serverPublicKey) {
|
|
85
|
+
return authWithKey(pluginOptions.serverPublicKey);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
state = STATE_WAIT_SERVER_KEY;
|
|
89
|
+
return REQUEST_SERVER_KEY_PACKET;
|
|
90
|
+
}
|
|
91
|
+
throw new Error(
|
|
92
|
+
`Invalid AuthMoreData packet received by ${PLUGIN_NAME} plugin in STATE_TOKEN_SENT state.`
|
|
93
|
+
);
|
|
94
|
+
case STATE_WAIT_SERVER_KEY:
|
|
95
|
+
if (pluginOptions.onServerPublicKey) {
|
|
96
|
+
pluginOptions.onServerPublicKey(data);
|
|
97
|
+
}
|
|
98
|
+
return authWithKey(data);
|
|
99
|
+
case STATE_FINAL:
|
|
100
|
+
throw new Error(
|
|
101
|
+
`Unexpected data in AuthMoreData packet received by ${PLUGIN_NAME} plugin in STATE_FINAL state.`
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
throw new Error(
|
|
106
|
+
`Unexpected data in AuthMoreData packet received by ${PLUGIN_NAME} plugin in state ${state}`
|
|
107
|
+
);
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
// Export the plugin factory as default
|
|
112
|
+
module.exports = pluginFactory;
|
|
113
|
+
|
|
114
|
+
// Export calculateToken for reuse in initial handshake optimization
|
|
115
|
+
module.exports.calculateToken = calculateToken;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
caching_sha2_password: require('./caching_sha2_password'),
|
|
5
|
+
mysql_clear_password: require('./mysql_clear_password'),
|
|
6
|
+
mysql_native_password: require('./mysql_native_password'),
|
|
7
|
+
sha256_password: require('./sha256_password'),
|
|
8
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function bufferFromStr(str) {
|
|
4
|
+
return Buffer.from(`${str}\0`);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const create_mysql_clear_password_plugin = (pluginOptions) =>
|
|
8
|
+
function mysql_clear_password_plugin({ connection, command }) {
|
|
9
|
+
const password =
|
|
10
|
+
command.password || pluginOptions.password || connection.config.password;
|
|
11
|
+
|
|
12
|
+
return function (/* pluginData */) {
|
|
13
|
+
return bufferFromStr(password);
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
module.exports = create_mysql_clear_password_plugin;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
//const PLUGIN_NAME = 'mysql_native_password';
|
|
4
|
+
const auth41 = require('../auth_41.js');
|
|
5
|
+
|
|
6
|
+
module.exports =
|
|
7
|
+
(pluginOptions) =>
|
|
8
|
+
({ connection, command }) => {
|
|
9
|
+
const password =
|
|
10
|
+
command.password || pluginOptions.password || connection.config.password;
|
|
11
|
+
const passwordSha1 =
|
|
12
|
+
command.passwordSha1 ||
|
|
13
|
+
pluginOptions.passwordSha1 ||
|
|
14
|
+
connection.config.passwordSha1;
|
|
15
|
+
return (data) => {
|
|
16
|
+
const authPluginData1 = data.slice(0, 8);
|
|
17
|
+
const authPluginData2 = data.slice(8, 20);
|
|
18
|
+
let authToken;
|
|
19
|
+
if (passwordSha1) {
|
|
20
|
+
authToken = auth41.calculateTokenFromPasswordSha(
|
|
21
|
+
passwordSha1,
|
|
22
|
+
authPluginData1,
|
|
23
|
+
authPluginData2
|
|
24
|
+
);
|
|
25
|
+
} else {
|
|
26
|
+
authToken = auth41.calculateToken(
|
|
27
|
+
password,
|
|
28
|
+
authPluginData1,
|
|
29
|
+
authPluginData2
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
return authToken;
|
|
33
|
+
};
|
|
34
|
+
};
|