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,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "generate-function",
|
|
3
|
+
"version": "2.3.1",
|
|
4
|
+
"description": "Module that helps you write generated functions in Node",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "tape test.js"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/mafintosh/generate-function"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"generate",
|
|
15
|
+
"code",
|
|
16
|
+
"generation",
|
|
17
|
+
"function",
|
|
18
|
+
"performance"
|
|
19
|
+
],
|
|
20
|
+
"author": "Mathias Buus",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/mafintosh/generate-function/issues"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/mafintosh/generate-function",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"tape": "^4.9.1"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"is-property": "^1.0.2"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
"use strict"
|
|
2
|
+
var Buffer = require("safer-buffer").Buffer
|
|
3
|
+
|
|
4
|
+
// Multibyte codec. In this scheme, a character is represented by 1 or more bytes.
|
|
5
|
+
// Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences.
|
|
6
|
+
// To save memory and loading time, we read table files only when requested.
|
|
7
|
+
|
|
8
|
+
exports._dbcs = DBCSCodec
|
|
9
|
+
|
|
10
|
+
var UNASSIGNED = -1
|
|
11
|
+
var GB18030_CODE = -2
|
|
12
|
+
var SEQ_START = -10
|
|
13
|
+
var NODE_START = -1000
|
|
14
|
+
var UNASSIGNED_NODE = new Array(0x100)
|
|
15
|
+
var DEF_CHAR = -1
|
|
16
|
+
|
|
17
|
+
for (var i = 0; i < 0x100; i++) { UNASSIGNED_NODE[i] = UNASSIGNED }
|
|
18
|
+
|
|
19
|
+
// Class DBCSCodec reads and initializes mapping tables.
|
|
20
|
+
function DBCSCodec (codecOptions, iconv) {
|
|
21
|
+
this.encodingName = codecOptions.encodingName
|
|
22
|
+
if (!codecOptions) { throw new Error("DBCS codec is called without the data.") }
|
|
23
|
+
if (!codecOptions.table) { throw new Error("Encoding '" + this.encodingName + "' has no data.") }
|
|
24
|
+
|
|
25
|
+
// Load tables.
|
|
26
|
+
var mappingTable = codecOptions.table()
|
|
27
|
+
|
|
28
|
+
// Decode tables: MBCS -> Unicode.
|
|
29
|
+
|
|
30
|
+
// decodeTables is a trie, encoded as an array of arrays of integers. Internal arrays are trie nodes and all have len = 256.
|
|
31
|
+
// Trie root is decodeTables[0].
|
|
32
|
+
// Values: >= 0 -> unicode character code. can be > 0xFFFF
|
|
33
|
+
// == UNASSIGNED -> unknown/unassigned sequence.
|
|
34
|
+
// == GB18030_CODE -> this is the end of a GB18030 4-byte sequence.
|
|
35
|
+
// <= NODE_START -> index of the next node in our trie to process next byte.
|
|
36
|
+
// <= SEQ_START -> index of the start of a character code sequence, in decodeTableSeq.
|
|
37
|
+
this.decodeTables = []
|
|
38
|
+
this.decodeTables[0] = UNASSIGNED_NODE.slice(0) // Create root node.
|
|
39
|
+
|
|
40
|
+
// Sometimes a MBCS char corresponds to a sequence of unicode chars. We store them as arrays of integers here.
|
|
41
|
+
this.decodeTableSeq = []
|
|
42
|
+
|
|
43
|
+
// Actual mapping tables consist of chunks. Use them to fill up decode tables.
|
|
44
|
+
for (var i = 0; i < mappingTable.length; i++) { this._addDecodeChunk(mappingTable[i]) }
|
|
45
|
+
|
|
46
|
+
// Load & create GB18030 tables when needed.
|
|
47
|
+
if (typeof codecOptions.gb18030 === "function") {
|
|
48
|
+
this.gb18030 = codecOptions.gb18030() // Load GB18030 ranges.
|
|
49
|
+
|
|
50
|
+
// Add GB18030 common decode nodes.
|
|
51
|
+
var commonThirdByteNodeIdx = this.decodeTables.length
|
|
52
|
+
this.decodeTables.push(UNASSIGNED_NODE.slice(0))
|
|
53
|
+
|
|
54
|
+
var commonFourthByteNodeIdx = this.decodeTables.length
|
|
55
|
+
this.decodeTables.push(UNASSIGNED_NODE.slice(0))
|
|
56
|
+
|
|
57
|
+
// Fill out the tree
|
|
58
|
+
var firstByteNode = this.decodeTables[0]
|
|
59
|
+
for (var i = 0x81; i <= 0xFE; i++) {
|
|
60
|
+
var secondByteNode = this.decodeTables[NODE_START - firstByteNode[i]]
|
|
61
|
+
for (var j = 0x30; j <= 0x39; j++) {
|
|
62
|
+
if (secondByteNode[j] === UNASSIGNED) {
|
|
63
|
+
secondByteNode[j] = NODE_START - commonThirdByteNodeIdx
|
|
64
|
+
} else if (secondByteNode[j] > NODE_START) {
|
|
65
|
+
throw new Error("gb18030 decode tables conflict at byte 2")
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
var thirdByteNode = this.decodeTables[NODE_START - secondByteNode[j]]
|
|
69
|
+
for (var k = 0x81; k <= 0xFE; k++) {
|
|
70
|
+
if (thirdByteNode[k] === UNASSIGNED) {
|
|
71
|
+
thirdByteNode[k] = NODE_START - commonFourthByteNodeIdx
|
|
72
|
+
} else if (thirdByteNode[k] === NODE_START - commonFourthByteNodeIdx) {
|
|
73
|
+
continue
|
|
74
|
+
} else if (thirdByteNode[k] > NODE_START) {
|
|
75
|
+
throw new Error("gb18030 decode tables conflict at byte 3")
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k]]
|
|
79
|
+
for (var l = 0x30; l <= 0x39; l++) {
|
|
80
|
+
if (fourthByteNode[l] === UNASSIGNED) { fourthByteNode[l] = GB18030_CODE }
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
this.defaultCharUnicode = iconv.defaultCharUnicode
|
|
88
|
+
|
|
89
|
+
// Encode tables: Unicode -> DBCS.
|
|
90
|
+
|
|
91
|
+
// `encodeTable` is array mapping from unicode char to encoded char. All its values are integers for performance.
|
|
92
|
+
// Because it can be sparse, it is represented as array of buckets by 256 chars each. Bucket can be null.
|
|
93
|
+
// Values: >= 0 -> it is a normal char. Write the value (if <=256 then 1 byte, if <=65536 then 2 bytes, etc.).
|
|
94
|
+
// == UNASSIGNED -> no conversion found. Output a default char.
|
|
95
|
+
// <= SEQ_START -> it's an index in encodeTableSeq, see below. The character starts a sequence.
|
|
96
|
+
this.encodeTable = []
|
|
97
|
+
|
|
98
|
+
// `encodeTableSeq` is used when a sequence of unicode characters is encoded as a single code. We use a tree of
|
|
99
|
+
// objects where keys correspond to characters in sequence and leafs are the encoded dbcs values. A special DEF_CHAR key
|
|
100
|
+
// means end of sequence (needed when one sequence is a strict subsequence of another).
|
|
101
|
+
// Objects are kept separately from encodeTable to increase performance.
|
|
102
|
+
this.encodeTableSeq = []
|
|
103
|
+
|
|
104
|
+
// Some chars can be decoded, but need not be encoded.
|
|
105
|
+
var skipEncodeChars = {}
|
|
106
|
+
if (codecOptions.encodeSkipVals) {
|
|
107
|
+
for (var i = 0; i < codecOptions.encodeSkipVals.length; i++) {
|
|
108
|
+
var val = codecOptions.encodeSkipVals[i]
|
|
109
|
+
if (typeof val === "number") { skipEncodeChars[val] = true } else {
|
|
110
|
+
for (var j = val.from; j <= val.to; j++) { skipEncodeChars[j] = true }
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Use decode trie to recursively fill out encode tables.
|
|
116
|
+
this._fillEncodeTable(0, 0, skipEncodeChars)
|
|
117
|
+
|
|
118
|
+
// Add more encoding pairs when needed.
|
|
119
|
+
if (codecOptions.encodeAdd) {
|
|
120
|
+
for (var uChar in codecOptions.encodeAdd) {
|
|
121
|
+
if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar)) { this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]) }
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)]
|
|
126
|
+
if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]["?"]
|
|
127
|
+
if (this.defCharSB === UNASSIGNED) this.defCharSB = "?".charCodeAt(0)
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
DBCSCodec.prototype.encoder = DBCSEncoder
|
|
131
|
+
DBCSCodec.prototype.decoder = DBCSDecoder
|
|
132
|
+
|
|
133
|
+
// Decoder helpers
|
|
134
|
+
DBCSCodec.prototype._getDecodeTrieNode = function (addr) {
|
|
135
|
+
var bytes = []
|
|
136
|
+
for (; addr > 0; addr >>>= 8) { bytes.push(addr & 0xFF) }
|
|
137
|
+
if (bytes.length == 0) { bytes.push(0) }
|
|
138
|
+
|
|
139
|
+
var node = this.decodeTables[0]
|
|
140
|
+
for (var i = bytes.length - 1; i > 0; i--) { // Traverse nodes deeper into the trie.
|
|
141
|
+
var val = node[bytes[i]]
|
|
142
|
+
|
|
143
|
+
if (val == UNASSIGNED) { // Create new node.
|
|
144
|
+
node[bytes[i]] = NODE_START - this.decodeTables.length
|
|
145
|
+
this.decodeTables.push(node = UNASSIGNED_NODE.slice(0))
|
|
146
|
+
} else if (val <= NODE_START) { // Existing node.
|
|
147
|
+
node = this.decodeTables[NODE_START - val]
|
|
148
|
+
} else { throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16)) }
|
|
149
|
+
}
|
|
150
|
+
return node
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
DBCSCodec.prototype._addDecodeChunk = function (chunk) {
|
|
154
|
+
// First element of chunk is the hex mbcs code where we start.
|
|
155
|
+
var curAddr = parseInt(chunk[0], 16)
|
|
156
|
+
|
|
157
|
+
// Choose the decoding node where we'll write our chars.
|
|
158
|
+
var writeTable = this._getDecodeTrieNode(curAddr)
|
|
159
|
+
curAddr = curAddr & 0xFF
|
|
160
|
+
|
|
161
|
+
// Write all other elements of the chunk to the table.
|
|
162
|
+
for (var k = 1; k < chunk.length; k++) {
|
|
163
|
+
var part = chunk[k]
|
|
164
|
+
if (typeof part === "string") { // String, write as-is.
|
|
165
|
+
for (var l = 0; l < part.length;) {
|
|
166
|
+
var code = part.charCodeAt(l++)
|
|
167
|
+
if (code >= 0xD800 && code < 0xDC00) { // Decode surrogate
|
|
168
|
+
var codeTrail = part.charCodeAt(l++)
|
|
169
|
+
if (codeTrail >= 0xDC00 && codeTrail < 0xE000) { writeTable[curAddr++] = 0x10000 + (code - 0xD800) * 0x400 + (codeTrail - 0xDC00) } else { throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]) }
|
|
170
|
+
} else if (code > 0x0FF0 && code <= 0x0FFF) { // Character sequence (our own encoding used)
|
|
171
|
+
var len = 0xFFF - code + 2
|
|
172
|
+
var seq = []
|
|
173
|
+
for (var m = 0; m < len; m++) { seq.push(part.charCodeAt(l++)) } // Simple variation: don't support surrogates or subsequences in seq.
|
|
174
|
+
|
|
175
|
+
writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length
|
|
176
|
+
this.decodeTableSeq.push(seq)
|
|
177
|
+
} else { writeTable[curAddr++] = code } // Basic char
|
|
178
|
+
}
|
|
179
|
+
} else if (typeof part === "number") { // Integer, meaning increasing sequence starting with prev character.
|
|
180
|
+
var charCode = writeTable[curAddr - 1] + 1
|
|
181
|
+
for (var l = 0; l < part; l++) { writeTable[curAddr++] = charCode++ }
|
|
182
|
+
} else { throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]) }
|
|
183
|
+
}
|
|
184
|
+
if (curAddr > 0xFF) { throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr) }
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// Encoder helpers
|
|
188
|
+
DBCSCodec.prototype._getEncodeBucket = function (uCode) {
|
|
189
|
+
var high = uCode >> 8 // This could be > 0xFF because of astral characters.
|
|
190
|
+
if (this.encodeTable[high] === undefined) {
|
|
191
|
+
this.encodeTable[high] = UNASSIGNED_NODE.slice(0)
|
|
192
|
+
} // Create bucket on demand.
|
|
193
|
+
return this.encodeTable[high]
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
DBCSCodec.prototype._setEncodeChar = function (uCode, dbcsCode) {
|
|
197
|
+
var bucket = this._getEncodeBucket(uCode)
|
|
198
|
+
var low = uCode & 0xFF
|
|
199
|
+
if (bucket[low] <= SEQ_START) { this.encodeTableSeq[SEQ_START - bucket[low]][DEF_CHAR] = dbcsCode } // There's already a sequence, set a single-char subsequence of it.
|
|
200
|
+
else if (bucket[low] == UNASSIGNED) { bucket[low] = dbcsCode }
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
DBCSCodec.prototype._setEncodeSequence = function (seq, dbcsCode) {
|
|
204
|
+
// Get the root of character tree according to first character of the sequence.
|
|
205
|
+
var uCode = seq[0]
|
|
206
|
+
var bucket = this._getEncodeBucket(uCode)
|
|
207
|
+
var low = uCode & 0xFF
|
|
208
|
+
|
|
209
|
+
var node
|
|
210
|
+
if (bucket[low] <= SEQ_START) {
|
|
211
|
+
// There's already a sequence with - use it.
|
|
212
|
+
node = this.encodeTableSeq[SEQ_START - bucket[low]]
|
|
213
|
+
} else {
|
|
214
|
+
// There was no sequence object - allocate a new one.
|
|
215
|
+
node = {}
|
|
216
|
+
if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low] // If a char was set before - make it a single-char subsequence.
|
|
217
|
+
bucket[low] = SEQ_START - this.encodeTableSeq.length
|
|
218
|
+
this.encodeTableSeq.push(node)
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// Traverse the character tree, allocating new nodes as needed.
|
|
222
|
+
for (var j = 1; j < seq.length - 1; j++) {
|
|
223
|
+
var oldVal = node[uCode]
|
|
224
|
+
if (typeof oldVal === "object") { node = oldVal } else {
|
|
225
|
+
node = node[uCode] = {}
|
|
226
|
+
if (oldVal !== undefined) { node[DEF_CHAR] = oldVal }
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// Set the leaf to given dbcsCode.
|
|
231
|
+
uCode = seq[seq.length - 1]
|
|
232
|
+
node[uCode] = dbcsCode
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
DBCSCodec.prototype._fillEncodeTable = function (nodeIdx, prefix, skipEncodeChars) {
|
|
236
|
+
var node = this.decodeTables[nodeIdx]
|
|
237
|
+
var hasValues = false
|
|
238
|
+
var subNodeEmpty = {}
|
|
239
|
+
for (var i = 0; i < 0x100; i++) {
|
|
240
|
+
var uCode = node[i]
|
|
241
|
+
var mbCode = prefix + i
|
|
242
|
+
if (skipEncodeChars[mbCode]) { continue }
|
|
243
|
+
|
|
244
|
+
if (uCode >= 0) {
|
|
245
|
+
this._setEncodeChar(uCode, mbCode)
|
|
246
|
+
hasValues = true
|
|
247
|
+
} else if (uCode <= NODE_START) {
|
|
248
|
+
var subNodeIdx = NODE_START - uCode
|
|
249
|
+
if (!subNodeEmpty[subNodeIdx]) { // Skip empty subtrees (they are too large in gb18030).
|
|
250
|
+
var newPrefix = (mbCode << 8) >>> 0 // NOTE: '>>> 0' keeps 32-bit num positive.
|
|
251
|
+
if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars)) { hasValues = true } else { subNodeEmpty[subNodeIdx] = true }
|
|
252
|
+
}
|
|
253
|
+
} else if (uCode <= SEQ_START) {
|
|
254
|
+
this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode)
|
|
255
|
+
hasValues = true
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return hasValues
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// == Encoder ==================================================================
|
|
262
|
+
|
|
263
|
+
function DBCSEncoder (options, codec) {
|
|
264
|
+
// Encoder state
|
|
265
|
+
this.leadSurrogate = -1
|
|
266
|
+
this.seqObj = undefined
|
|
267
|
+
|
|
268
|
+
// Static data
|
|
269
|
+
this.encodeTable = codec.encodeTable
|
|
270
|
+
this.encodeTableSeq = codec.encodeTableSeq
|
|
271
|
+
this.defaultCharSingleByte = codec.defCharSB
|
|
272
|
+
this.gb18030 = codec.gb18030
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
DBCSEncoder.prototype.write = function (str) {
|
|
276
|
+
var newBuf = Buffer.alloc(str.length * (this.gb18030 ? 4 : 3))
|
|
277
|
+
var leadSurrogate = this.leadSurrogate
|
|
278
|
+
var seqObj = this.seqObj
|
|
279
|
+
var nextChar = -1
|
|
280
|
+
var i = 0; var j = 0
|
|
281
|
+
|
|
282
|
+
while (true) {
|
|
283
|
+
// 0. Get next character.
|
|
284
|
+
if (nextChar === -1) {
|
|
285
|
+
if (i == str.length) break
|
|
286
|
+
var uCode = str.charCodeAt(i++)
|
|
287
|
+
} else {
|
|
288
|
+
var uCode = nextChar
|
|
289
|
+
nextChar = -1
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// 1. Handle surrogates.
|
|
293
|
+
if (uCode >= 0xD800 && uCode < 0xE000) { // Char is one of surrogates.
|
|
294
|
+
if (uCode < 0xDC00) { // We've got lead surrogate.
|
|
295
|
+
if (leadSurrogate === -1) {
|
|
296
|
+
leadSurrogate = uCode
|
|
297
|
+
continue
|
|
298
|
+
} else {
|
|
299
|
+
leadSurrogate = uCode
|
|
300
|
+
// Double lead surrogate found.
|
|
301
|
+
uCode = UNASSIGNED
|
|
302
|
+
}
|
|
303
|
+
} else { // We've got trail surrogate.
|
|
304
|
+
if (leadSurrogate !== -1) {
|
|
305
|
+
uCode = 0x10000 + (leadSurrogate - 0xD800) * 0x400 + (uCode - 0xDC00)
|
|
306
|
+
leadSurrogate = -1
|
|
307
|
+
} else {
|
|
308
|
+
// Incomplete surrogate pair - only trail surrogate found.
|
|
309
|
+
uCode = UNASSIGNED
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
} else if (leadSurrogate !== -1) {
|
|
313
|
+
// Incomplete surrogate pair - only lead surrogate found.
|
|
314
|
+
nextChar = uCode; uCode = UNASSIGNED // Write an error, then current char.
|
|
315
|
+
leadSurrogate = -1
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
// 2. Convert uCode character.
|
|
319
|
+
var dbcsCode = UNASSIGNED
|
|
320
|
+
if (seqObj !== undefined && uCode != UNASSIGNED) { // We are in the middle of the sequence
|
|
321
|
+
var resCode = seqObj[uCode]
|
|
322
|
+
if (typeof resCode === "object") { // Sequence continues.
|
|
323
|
+
seqObj = resCode
|
|
324
|
+
continue
|
|
325
|
+
} else if (typeof resCode === "number") { // Sequence finished. Write it.
|
|
326
|
+
dbcsCode = resCode
|
|
327
|
+
} else if (resCode == undefined) { // Current character is not part of the sequence.
|
|
328
|
+
// Try default character for this sequence
|
|
329
|
+
resCode = seqObj[DEF_CHAR]
|
|
330
|
+
if (resCode !== undefined) {
|
|
331
|
+
dbcsCode = resCode // Found. Write it.
|
|
332
|
+
nextChar = uCode // Current character will be written too in the next iteration.
|
|
333
|
+
} else {
|
|
334
|
+
// TODO: What if we have no default? (resCode == undefined)
|
|
335
|
+
// Then, we should write first char of the sequence as-is and try the rest recursively.
|
|
336
|
+
// Didn't do it for now because no encoding has this situation yet.
|
|
337
|
+
// Currently, just skip the sequence and write current char.
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
seqObj = undefined
|
|
341
|
+
} else if (uCode >= 0) { // Regular character
|
|
342
|
+
var subtable = this.encodeTable[uCode >> 8]
|
|
343
|
+
if (subtable !== undefined) { dbcsCode = subtable[uCode & 0xFF] }
|
|
344
|
+
|
|
345
|
+
if (dbcsCode <= SEQ_START) { // Sequence start
|
|
346
|
+
seqObj = this.encodeTableSeq[SEQ_START - dbcsCode]
|
|
347
|
+
continue
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
if (dbcsCode == UNASSIGNED && this.gb18030) {
|
|
351
|
+
// Use GB18030 algorithm to find character(s) to write.
|
|
352
|
+
var idx = findIdx(this.gb18030.uChars, uCode)
|
|
353
|
+
if (idx != -1) {
|
|
354
|
+
var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx])
|
|
355
|
+
newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600
|
|
356
|
+
newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260
|
|
357
|
+
newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10
|
|
358
|
+
newBuf[j++] = 0x30 + dbcsCode
|
|
359
|
+
continue
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
// 3. Write dbcsCode character.
|
|
365
|
+
if (dbcsCode === UNASSIGNED) { dbcsCode = this.defaultCharSingleByte }
|
|
366
|
+
|
|
367
|
+
if (dbcsCode < 0x100) {
|
|
368
|
+
newBuf[j++] = dbcsCode
|
|
369
|
+
} else if (dbcsCode < 0x10000) {
|
|
370
|
+
newBuf[j++] = dbcsCode >> 8 // high byte
|
|
371
|
+
newBuf[j++] = dbcsCode & 0xFF // low byte
|
|
372
|
+
} else if (dbcsCode < 0x1000000) {
|
|
373
|
+
newBuf[j++] = dbcsCode >> 16
|
|
374
|
+
newBuf[j++] = (dbcsCode >> 8) & 0xFF
|
|
375
|
+
newBuf[j++] = dbcsCode & 0xFF
|
|
376
|
+
} else {
|
|
377
|
+
newBuf[j++] = dbcsCode >>> 24
|
|
378
|
+
newBuf[j++] = (dbcsCode >>> 16) & 0xFF
|
|
379
|
+
newBuf[j++] = (dbcsCode >>> 8) & 0xFF
|
|
380
|
+
newBuf[j++] = dbcsCode & 0xFF
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
this.seqObj = seqObj
|
|
385
|
+
this.leadSurrogate = leadSurrogate
|
|
386
|
+
return newBuf.slice(0, j)
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
DBCSEncoder.prototype.end = function () {
|
|
390
|
+
if (this.leadSurrogate === -1 && this.seqObj === undefined) { return } // All clean. Most often case.
|
|
391
|
+
|
|
392
|
+
var newBuf = Buffer.alloc(10); var j = 0
|
|
393
|
+
|
|
394
|
+
if (this.seqObj) { // We're in the sequence.
|
|
395
|
+
var dbcsCode = this.seqObj[DEF_CHAR]
|
|
396
|
+
if (dbcsCode !== undefined) { // Write beginning of the sequence.
|
|
397
|
+
if (dbcsCode < 0x100) {
|
|
398
|
+
newBuf[j++] = dbcsCode
|
|
399
|
+
} else {
|
|
400
|
+
newBuf[j++] = dbcsCode >> 8 // high byte
|
|
401
|
+
newBuf[j++] = dbcsCode & 0xFF // low byte
|
|
402
|
+
}
|
|
403
|
+
} else {
|
|
404
|
+
// See todo above.
|
|
405
|
+
}
|
|
406
|
+
this.seqObj = undefined
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
if (this.leadSurrogate !== -1) {
|
|
410
|
+
// Incomplete surrogate pair - only lead surrogate found.
|
|
411
|
+
newBuf[j++] = this.defaultCharSingleByte
|
|
412
|
+
this.leadSurrogate = -1
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
return newBuf.slice(0, j)
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
// Export for testing
|
|
419
|
+
DBCSEncoder.prototype.findIdx = findIdx
|
|
420
|
+
|
|
421
|
+
// == Decoder ==================================================================
|
|
422
|
+
|
|
423
|
+
function DBCSDecoder (options, codec) {
|
|
424
|
+
// Decoder state
|
|
425
|
+
this.nodeIdx = 0
|
|
426
|
+
this.prevBytes = []
|
|
427
|
+
|
|
428
|
+
// Static data
|
|
429
|
+
this.decodeTables = codec.decodeTables
|
|
430
|
+
this.decodeTableSeq = codec.decodeTableSeq
|
|
431
|
+
this.defaultCharUnicode = codec.defaultCharUnicode
|
|
432
|
+
this.gb18030 = codec.gb18030
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
DBCSDecoder.prototype.write = function (buf) {
|
|
436
|
+
var newBuf = Buffer.alloc(buf.length * 2)
|
|
437
|
+
var nodeIdx = this.nodeIdx
|
|
438
|
+
var prevBytes = this.prevBytes; var prevOffset = this.prevBytes.length
|
|
439
|
+
var seqStart = -this.prevBytes.length // idx of the start of current parsed sequence.
|
|
440
|
+
var uCode
|
|
441
|
+
|
|
442
|
+
for (var i = 0, j = 0; i < buf.length; i++) {
|
|
443
|
+
var curByte = (i >= 0) ? buf[i] : prevBytes[i + prevOffset]
|
|
444
|
+
|
|
445
|
+
// Lookup in current trie node.
|
|
446
|
+
var uCode = this.decodeTables[nodeIdx][curByte]
|
|
447
|
+
|
|
448
|
+
if (uCode >= 0) {
|
|
449
|
+
// Normal character, just use it.
|
|
450
|
+
} else if (uCode === UNASSIGNED) { // Unknown char.
|
|
451
|
+
// TODO: Callback with seq.
|
|
452
|
+
uCode = this.defaultCharUnicode.charCodeAt(0)
|
|
453
|
+
i = seqStart // Skip one byte ('i' will be incremented by the for loop) and try to parse again.
|
|
454
|
+
} else if (uCode === GB18030_CODE) {
|
|
455
|
+
if (i >= 3) {
|
|
456
|
+
var ptr = (buf[i - 3] - 0x81) * 12600 + (buf[i - 2] - 0x30) * 1260 + (buf[i - 1] - 0x81) * 10 + (curByte - 0x30)
|
|
457
|
+
} else {
|
|
458
|
+
var ptr = (prevBytes[i - 3 + prevOffset] - 0x81) * 12600 +
|
|
459
|
+
(((i - 2 >= 0) ? buf[i - 2] : prevBytes[i - 2 + prevOffset]) - 0x30) * 1260 +
|
|
460
|
+
(((i - 1 >= 0) ? buf[i - 1] : prevBytes[i - 1 + prevOffset]) - 0x81) * 10 +
|
|
461
|
+
(curByte - 0x30)
|
|
462
|
+
}
|
|
463
|
+
var idx = findIdx(this.gb18030.gbChars, ptr)
|
|
464
|
+
uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx]
|
|
465
|
+
} else if (uCode <= NODE_START) { // Go to next trie node.
|
|
466
|
+
nodeIdx = NODE_START - uCode
|
|
467
|
+
continue
|
|
468
|
+
} else if (uCode <= SEQ_START) { // Output a sequence of chars.
|
|
469
|
+
var seq = this.decodeTableSeq[SEQ_START - uCode]
|
|
470
|
+
for (var k = 0; k < seq.length - 1; k++) {
|
|
471
|
+
uCode = seq[k]
|
|
472
|
+
newBuf[j++] = uCode & 0xFF
|
|
473
|
+
newBuf[j++] = uCode >> 8
|
|
474
|
+
}
|
|
475
|
+
uCode = seq[seq.length - 1]
|
|
476
|
+
} else { throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte) }
|
|
477
|
+
|
|
478
|
+
// Write the character to buffer, handling higher planes using surrogate pair.
|
|
479
|
+
if (uCode >= 0x10000) {
|
|
480
|
+
uCode -= 0x10000
|
|
481
|
+
var uCodeLead = 0xD800 | (uCode >> 10)
|
|
482
|
+
newBuf[j++] = uCodeLead & 0xFF
|
|
483
|
+
newBuf[j++] = uCodeLead >> 8
|
|
484
|
+
|
|
485
|
+
uCode = 0xDC00 | (uCode & 0x3FF)
|
|
486
|
+
}
|
|
487
|
+
newBuf[j++] = uCode & 0xFF
|
|
488
|
+
newBuf[j++] = uCode >> 8
|
|
489
|
+
|
|
490
|
+
// Reset trie node.
|
|
491
|
+
nodeIdx = 0; seqStart = i + 1
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
this.nodeIdx = nodeIdx
|
|
495
|
+
this.prevBytes = (seqStart >= 0)
|
|
496
|
+
? Array.prototype.slice.call(buf, seqStart)
|
|
497
|
+
: prevBytes.slice(seqStart + prevOffset).concat(Array.prototype.slice.call(buf))
|
|
498
|
+
|
|
499
|
+
return newBuf.slice(0, j).toString("ucs2")
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
DBCSDecoder.prototype.end = function () {
|
|
503
|
+
var ret = ""
|
|
504
|
+
|
|
505
|
+
// Try to parse all remaining chars.
|
|
506
|
+
while (this.prevBytes.length > 0) {
|
|
507
|
+
// Skip 1 character in the buffer.
|
|
508
|
+
ret += this.defaultCharUnicode
|
|
509
|
+
var bytesArr = this.prevBytes.slice(1)
|
|
510
|
+
|
|
511
|
+
// Parse remaining as usual.
|
|
512
|
+
this.prevBytes = []
|
|
513
|
+
this.nodeIdx = 0
|
|
514
|
+
if (bytesArr.length > 0) { ret += this.write(bytesArr) }
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
this.prevBytes = []
|
|
518
|
+
this.nodeIdx = 0
|
|
519
|
+
return ret
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
// Binary search for GB18030. Returns largest i such that table[i] <= val.
|
|
523
|
+
function findIdx (table, val) {
|
|
524
|
+
if (table[0] > val) { return -1 }
|
|
525
|
+
|
|
526
|
+
var l = 0; var r = table.length
|
|
527
|
+
while (l < r - 1) { // always table[l] <= val < table[r]
|
|
528
|
+
var mid = l + ((r - l + 1) >> 1)
|
|
529
|
+
if (table[mid] <= val) { l = mid } else { r = mid }
|
|
530
|
+
}
|
|
531
|
+
return l
|
|
532
|
+
}
|