decocms 2.290.0 → 2.290.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/dist/client/assets/{AlertCircle-Dy6WQ5ge.js → AlertCircle-BKpPv_ue.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-DyXfpAXl.js → ArrowNarrowLeft-DzI4-MMz.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CnIoXxER.js → ArrowUpRight-CgoB9CSG.js} +1 -1
- package/dist/client/assets/{CheckCircle-BZH7SpHU.js → CheckCircle-_hRmcUCr.js} +1 -1
- package/dist/client/assets/{ChevronDown-BjTzGWO3.js → ChevronDown-DgrWziJW.js} +1 -1
- package/dist/client/assets/{ChevronRight-CYmVBoc2.js → ChevronRight-DJnGkhn4.js} +1 -1
- package/dist/client/assets/{ChevronUp-Cw4IUx4c.js → ChevronUp-CYzPfn3Y.js} +1 -1
- package/dist/client/assets/{Container-9mToJ-Hm.js → Container-CCq3u0Gk.js} +1 -1
- package/dist/client/assets/{DotsVertical-CbfHiscK.js → DotsVertical-om3rzQE9.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Kt8lGWbQ.js → LinkExternal01-DbNOYo2d.js} +1 -1
- package/dist/client/assets/{Lock01-BhhALBsJ.js → Lock01-BsLK0x7P.js} +1 -1
- package/dist/client/assets/{Palette-6WmqQOED.js → Palette-CN1aN7Xh.js} +1 -1
- package/dist/client/assets/{Play-B-Yf_e00.js → Play-CwsBegSF.js} +1 -1
- package/dist/client/assets/{Plus-C4wuRIjK.js → Plus-CnK1SC2T.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-KsYBIYgq.js → RefreshCcw01-DESLbhAD.js} +1 -1
- package/dist/client/assets/{SearchMd-BhWG7TtE.js → SearchMd-DlfhE_5j.js} +1 -1
- package/dist/client/assets/{Settings02-C0B8JYoO.js → Settings02-LVlkEIxI.js} +1 -1
- package/dist/client/assets/{Shield01-vr0RTpPH.js → Shield01-DGTwcXqp.js} +1 -1
- package/dist/client/assets/{Star01-BRTO8Wcg.js → Star01-CWHB1ChF.js} +1 -1
- package/dist/client/assets/{Sun-DD9THIbp.js → Sun-1aZYqU86.js} +1 -1
- package/dist/client/assets/{Tool01-CzK8v2e2.js → Tool01-X8GEQ_TP.js} +1 -1
- package/dist/client/assets/{Trash01-Cqpb-tl4.js → Trash01-CIUqVsqV.js} +1 -1
- package/dist/client/assets/{User01-CHqQvVRk.js → User01-Dds7lT_Z.js} +1 -1
- package/dist/client/assets/{Users03-DQHeHtuJ.js → Users03-BD0tlSQu.js} +1 -1
- package/dist/client/assets/{X-Cz2VwWbK.js → X-BDxrsCdA.js} +1 -1
- package/dist/client/assets/{XCircle-D7CLzAA2.js → XCircle-BJ-0U-0t.js} +1 -1
- package/dist/client/assets/{XClose-xVgTKp3y.js → XClose-Bl-2e8QV.js} +1 -1
- package/dist/client/assets/{Zap-eM4vJ-Od.js → Zap-B3a3OZUG.js} +1 -1
- package/dist/client/assets/{ZapSquare-DAasimGP.js → ZapSquare-Ddm4Ccl_.js} +1 -1
- package/dist/client/assets/{accordion-BM20EgNo.js → accordion-eGw-yxkH.js} +1 -1
- package/dist/client/assets/{agent-icon-CPrrz1CF.js → agent-icon-Dhv8pT4N.js} +1 -1
- package/dist/client/assets/{agents-list-bLyTwxOp.js → agents-list-BoLhMS8b.js} +1 -1
- package/dist/client/assets/ai-providers-5Y8Lye7a.js +1 -0
- package/dist/client/assets/{alert-dialog-D6BTsTie.js → alert-dialog-C5H0at4x.js} +1 -1
- package/dist/client/assets/{auth-catchall-DrwBfvc7.js → auth-catchall-CDaNQLse.js} +1 -1
- package/dist/client/assets/{automation-list-row-BAkKDhdt.js → automation-list-row-i8Q9Zh9Z.js} +1 -1
- package/dist/client/assets/{automations-DsHMII0n.js → automations-ulYqPLWi.js} +1 -1
- package/dist/client/assets/{avatar-B5MfJTPB.js → avatar-BCAMjlDk.js} +1 -1
- package/dist/client/assets/{badge-C3ltiwQz.js → badge-arNIH4S4.js} +1 -1
- package/dist/client/assets/{brand-context-DdXBk5wZ.js → brand-context-doHsqzeN.js} +1 -1
- package/dist/client/assets/{card-DXc1-cjm.js → card-BcKfGMCs.js} +1 -1
- package/dist/client/assets/{chat-context-BM3OkNBp.js → chat-context-BgLXGROj.js} +14 -14
- package/dist/client/assets/{checkbox-CXSt-qCU.js → checkbox-eCIm2Y45.js} +1 -1
- package/dist/client/assets/{collection-detail-PiEvUvyY.js → collection-detail-BIdQmVBg.js} +1 -1
- package/dist/client/assets/{collection-display-button-CbF3FIKJ.js → collection-display-button-31iCSNaH.js} +1 -1
- package/dist/client/assets/{collection-search-BD7TaK50.js → collection-search-CWRKNmnq.js} +1 -1
- package/dist/client/assets/{collection-search-D9OTGkON.js → collection-search-CZEXNAkX.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-C_wGPjYd.js → collection-table-wrapper-iKnV9U-a.js} +1 -1
- package/dist/client/assets/{collection-tabs-B5kXhLnr.js → collection-tabs-BB_C6DLQ.js} +1 -1
- package/dist/client/assets/{collections-uRCOIhF1.js → collections-BmZbVrT4.js} +1 -1
- package/dist/client/assets/{command-_aeZDxv4.js → command-BXuf0gSd.js} +1 -1
- package/dist/client/assets/{connection-card-CG4RgzFA.js → connection-card-CaHQAi2l.js} +1 -1
- package/dist/client/assets/{connection-detail-CPj5tV8W.js → connection-detail-DtFDjt8X.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CF_hDkTW.js → connection-form-helpers-D-VsE2HN.js} +1 -1
- package/dist/client/assets/{connections-BFVESmsw.js → connections-B0CDxzS1.js} +1 -1
- package/dist/client/assets/{constants-BXPLSYK0.js → constants-CBodG1Pl.js} +1 -1
- package/dist/client/assets/{constants-fisX-szF.js → constants-fZUl7A6B.js} +1 -1
- package/dist/client/assets/{dialog-DgIfLmkz.js → dialog-CfIcbBij.js} +1 -1
- package/dist/client/assets/{domain-settings-Da9TCjdO.js → domain-settings-Bz-lXZFn.js} +1 -1
- package/dist/client/assets/{drawer-DcXb-dIX.js → drawer-D0hdbn63.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CpKKd4KR.js → dropdown-menu-Cye9zjaV.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-5YDFJfrE.js → dynamic-plugin-layout-DyEJh8Ah.js} +1 -1
- package/dist/client/assets/{empty-state-7OQh5AG_.js → empty-state-Ce0UFiAd.js} +1 -1
- package/dist/client/assets/{empty-state-BNoYs1pG.js → empty-state-KsHmVPO4.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C1fjt67g.js → extract-connection-data-C_Q81cim.js} +1 -1
- package/dist/client/assets/{features-DlbqWaud.js → features-UEpssbRc.js} +1 -1
- package/dist/client/assets/{form-B9N1Oecs.js → form-Bt1yLlZE.js} +1 -1
- package/dist/client/assets/{general-BRrfSAHw.js → general-CX6SxsSV.js} +1 -1
- package/dist/client/assets/{github-repo-picker-xqXMF4Z2.js → github-repo-picker-4y_CmSBW.js} +1 -1
- package/dist/client/assets/{index-CdcT6o1u.js → index-B5IXTINZ.js} +1 -1
- package/dist/client/assets/{index-nPLW8S1n.js → index-BdMwcoDn.js} +1 -1
- package/dist/client/assets/{index-B1ENCl_P.js → index-BqvsnDAu.js} +1 -1
- package/dist/client/assets/{index-BNDDAuFY.js → index-C1JqC4-z.js} +1 -1
- package/dist/client/assets/{index-PDe7t-Zh.js → index-Cf59DRJ6.js} +1 -1
- package/dist/client/assets/{index-Bjw9mABo.js → index-D7IIXROb.js} +2 -2
- package/dist/client/assets/{index-RUiHYhDy.js → index-DP75UHA3.js} +1 -1
- package/dist/client/assets/{index-D4HJx8LE.js → index-DTSAQq_o.js} +26 -26
- package/dist/client/assets/{index-DFbeaR6v.js → index-DU8sxbAO.js} +1 -1
- package/dist/client/assets/{index-Bdy-Zxd0.js → index-DtTftwEv.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-D6FVOZDT.js → infiniteQueryObserver-CYDDJzdR.js} +1 -1
- package/dist/client/assets/{input-B0Th2JQ1.js → input-C-zd9-6X.js} +1 -1
- package/dist/client/assets/{integration-icon-BlpgeQ99.js → integration-icon-DoWhqWe3.js} +1 -1
- package/dist/client/assets/{label-DuAMprL4.js → label-B9VSuQAr.js} +1 -1
- package/dist/client/assets/{layout-RImR4U5w.js → layout-BJjatDlM.js} +1 -1
- package/dist/client/assets/{login-BfxCAW1K.js → login-DMa1Q2q-.js} +1 -1
- package/dist/client/assets/{members-DUXCSlLM.js → members-BOugcvjA.js} +1 -1
- package/dist/client/assets/{monaco-editor-LE71GrBO.js → monaco-editor-Bo3tZIb0.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Bu8i_dr0.js → monitoring-stats-row-B1bACC1V.js} +1 -1
- package/dist/client/assets/{oauth-callback-CHnueJxo.js → oauth-callback-CIypIDM5.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BqIWE2za.js → oauth-callback-ai-provider-Cx6R_dTa.js} +1 -1
- package/dist/client/assets/{onboarding-Bvfd_deQ.js → onboarding-BqheUOWx.js} +1 -1
- package/dist/client/assets/{org-layout-D8HwQgZC.js → org-layout-CZ-JkZR2.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-Dlrq-WhH.js → org-plugin-layout-BrcX-6Wg.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-FtnIU00p.js → plugin-empty-state-DrfwC6PK.js} +1 -1
- package/dist/client/assets/{plugin-header-CFqdNjHj.js → plugin-header-Dv9_QG9M.js} +1 -1
- package/dist/client/assets/{plugin-layout-BAtMOLNI.js → plugin-layout-BYLLm93H.js} +1 -1
- package/dist/client/assets/{popover-E3qdo7hr.js → popover-BcJ5dkfy.js} +1 -1
- package/dist/client/assets/{profile-D53qb-aC.js → profile-BDIFKyuQ.js} +1 -1
- package/dist/client/assets/{project-app-view-CPYOBF6b.js → project-app-view-Dmfqsj8y.js} +1 -1
- package/dist/client/assets/registry-DWmg34NR.js +2 -0
- package/dist/client/assets/{registry-layout-DDDh6l1Z.js → registry-layout-CcQfrJPf.js} +1 -1
- package/dist/client/assets/{required-auth-layout-0ZrPtRX5.js → required-auth-layout-C8vP14ZM.js} +1 -1
- package/dist/client/assets/{reset-password-CF8xZipJ.js → reset-password-Cx8pIjDB.js} +1 -1
- package/dist/client/assets/{roles-2DmhU_lO.js → roles-V2PuVErH.js} +1 -1
- package/dist/client/assets/{scroll-area-CV58Sm3r.js → scroll-area-BJTd57Y3.js} +1 -1
- package/dist/client/assets/{search-input-CiJD1zmQ.js → search-input-o1N12hd4.js} +1 -1
- package/dist/client/assets/{select-model-CgAdbxOF.js → select-model-i86p2wLu.js} +1 -1
- package/dist/client/assets/{select-C0BTO_VN.js → select-wye91jBR.js} +1 -1
- package/dist/client/assets/{settings-layout-B5g5nOFG.js → settings-layout-Bre58uB_.js} +1 -1
- package/dist/client/assets/{settings-section-BEc6_hxC.js → settings-section-C9gADeUy.js} +1 -1
- package/dist/client/assets/{shell-layout-DhVFCecl.js → shell-layout-BkODIfEq.js} +1 -1
- package/dist/client/assets/{skeleton-CqLjEim6.js → skeleton-DRv0yCtF.js} +1 -1
- package/dist/client/assets/{sso-CLQ0WAZ4.js → sso-DZp-3maq.js} +1 -1
- package/dist/client/assets/{store-DXpPzjGX.js → store-CN0vQifq.js} +1 -1
- package/dist/client/assets/store-registry-BObCKoqP.js +2 -0
- package/dist/client/assets/{switch-r_J-E_R6.js → switch-PbUvXBwc.js} +1 -1
- package/dist/client/assets/{table-BLW1fb71.js → table-Vdrlqd3N.js} +1 -1
- package/dist/client/assets/{tabs-OaMhPT1S.js → tabs-CMVGP6Nm.js} +1 -1
- package/dist/client/assets/{task-status-BYU1JOas.js → task-status-Cc80uZAM.js} +1 -1
- package/dist/client/assets/{textarea-CB4EPwI8.js → textarea-CFCCYt2a.js} +1 -1
- package/dist/client/assets/{toggle-group-BK2Eyxb9.js → toggle-group-C7CndFhA.js} +1 -1
- package/dist/client/assets/{tools-list-D0-t6r7P.js → tools-list-Kw0AITzg.js} +1 -1
- package/dist/client/assets/{types-DV1fT4jg.js → types-CfADcGn6.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DuAykeEv.js → use-ai-providers-BH0Y2Lij.js} +1 -1
- package/dist/client/assets/{use-collections-Cp0FTIw2.js → use-collections-BosUNiJP.js} +1 -1
- package/dist/client/assets/{use-connection-CwwdEwVq.js → use-connection-BHgGmTOA.js} +1 -1
- package/dist/client/assets/{use-copy-I5xIu5vL.js → use-copy-D6qOpdpT.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-D9eK4uEY.js → use-create-virtual-mcp-Cx6IqxLi.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BnOlrQOP.js → use-decopilot-events-Bw4kdPRS.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DgzyKP3C.js → use-delete-connection-BNbEYahP.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DVe1Fk7x.js → use-infinite-scroll-omTMTmB1.js} +1 -1
- package/dist/client/assets/{use-list-state-BK8f1wO4.js → use-list-state-BiBwgFiI.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-B2JuhhY2.js → use-mcp-tools-jeaH_mio.js} +1 -1
- package/dist/client/assets/{use-members-BpPuDkhN.js → use-members-BR83cmtt.js} +1 -1
- package/dist/client/assets/{use-mobile-BY3ZRSKc.js → use-mobile-CrP2KZis.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CL1nPgsu.js → use-navigate-to-agent-C3zfnZck.js} +1 -1
- package/dist/client/assets/{use-org-sso-CNjY_Yrf.js → use-org-sso-Bp80Qjb5.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DjWvKcNS.js → use-organization-roles-BV6xrqqH.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DqQLKHYU.js → use-organization-settings-qZ1AM5bR.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Du2J1Ki6.js → use-registry-connections-4TVYi7-o.js} +1 -1
- package/dist/client/assets/{use-status-sounds-9eY_nA5Y.js → use-status-sounds-DOhvVAtI.js} +1 -1
- package/dist/client/assets/{use-tasks-HeJD0lAu.js → use-tasks-Cd7MvMgt.js} +1 -1
- package/dist/client/assets/{use-view-mode-CimRH_Z1.js → use-view-mode-BtY__6eQ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Dyx_89bN.js → use-virtual-mcp-BUyveTe6.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-c3E-w9DY.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-D705BqvF.js +1 -0
- package/dist/client/assets/{user-DwSGRsb4.js → user-DgdWVRpj.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-B7tN1U0U.js → view-mode-toggle-D2WG_Euq.js} +1 -1
- package/dist/client/assets/{workflow-BSnZsZNr.js → workflow-DRs0QH0L.js} +1 -1
- package/dist/client/assets/workflow-detail-B8_Px7_-.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/ansi-escapes/base.d.ts +307 -0
- package/dist/server/node_modules/ansi-escapes/base.js +202 -0
- package/dist/server/node_modules/ansi-escapes/index.d.ts +2 -0
- package/dist/server/node_modules/ansi-escapes/index.js +2 -0
- package/dist/server/node_modules/ansi-escapes/package.json +70 -0
- package/dist/server/node_modules/ansi-escapes/readme.md +296 -0
- package/dist/server/node_modules/ansi-regex/index.d.ts +33 -0
- package/dist/server/node_modules/ansi-regex/index.js +14 -0
- package/dist/server/node_modules/ansi-regex/license +9 -0
- package/dist/server/node_modules/ansi-regex/package.json +61 -0
- package/dist/server/node_modules/ansi-regex/readme.md +66 -0
- package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
- package/dist/server/node_modules/ansi-styles/index.js +223 -0
- package/dist/server/node_modules/ansi-styles/license +9 -0
- package/dist/server/node_modules/ansi-styles/package.json +54 -0
- package/dist/server/node_modules/ansi-styles/readme.md +173 -0
- package/dist/server/node_modules/auto-bind/index.d.ts +50 -0
- package/dist/server/node_modules/auto-bind/index.js +41 -0
- package/dist/server/node_modules/auto-bind/license +9 -0
- package/dist/server/node_modules/auto-bind/package.json +51 -0
- package/dist/server/node_modules/auto-bind/react.d.ts +26 -0
- package/dist/server/node_modules/auto-bind/react.js +28 -0
- package/dist/server/node_modules/auto-bind/readme.md +92 -0
- package/dist/server/node_modules/chalk/license +9 -0
- package/dist/server/node_modules/chalk/package.json +83 -0
- package/dist/server/node_modules/chalk/readme.md +297 -0
- package/dist/server/node_modules/chalk/source/index.d.ts +325 -0
- package/dist/server/node_modules/chalk/source/index.js +225 -0
- package/dist/server/node_modules/chalk/source/utilities.js +33 -0
- package/dist/server/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/dist/server/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/dist/server/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/dist/server/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/dist/server/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/dist/server/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
- package/dist/server/node_modules/cli-cursor/index.d.ts +47 -0
- package/dist/server/node_modules/cli-cursor/index.js +39 -0
- package/dist/server/node_modules/cli-cursor/license +9 -0
- package/dist/server/node_modules/cli-cursor/package.json +49 -0
- package/dist/server/node_modules/cli-cursor/readme.md +51 -0
- package/dist/server/node_modules/cli-truncate/index.d.ts +118 -0
- package/dist/server/node_modules/cli-truncate/index.js +168 -0
- package/dist/server/node_modules/cli-truncate/license +9 -0
- package/dist/server/node_modules/cli-truncate/package.json +52 -0
- package/dist/server/node_modules/cli-truncate/readme.md +154 -0
- package/dist/server/node_modules/deepmerge/.editorconfig +7 -0
- package/dist/server/node_modules/deepmerge/.eslintcache +1 -0
- package/dist/server/node_modules/deepmerge/changelog.md +167 -0
- package/dist/server/node_modules/deepmerge/dist/cjs.js +133 -0
- package/dist/server/node_modules/deepmerge/dist/umd.js +139 -0
- package/dist/server/node_modules/deepmerge/index.d.ts +20 -0
- package/dist/server/node_modules/deepmerge/index.js +106 -0
- package/dist/server/node_modules/deepmerge/license.txt +21 -0
- package/dist/server/node_modules/deepmerge/package.json +42 -0
- package/dist/server/node_modules/deepmerge/readme.md +264 -0
- package/dist/server/node_modules/deepmerge/rollup.config.js +22 -0
- package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/dist/server/node_modules/emoji-regex/README.md +107 -0
- package/dist/server/node_modules/emoji-regex/index.d.ts +3 -0
- package/dist/server/node_modules/emoji-regex/index.js +4 -0
- package/dist/server/node_modules/emoji-regex/index.mjs +4 -0
- package/dist/server/node_modules/emoji-regex/package.json +45 -0
- package/dist/server/node_modules/environment/index.d.ts +74 -0
- package/dist/server/node_modules/environment/index.js +47 -0
- package/dist/server/node_modules/environment/license +9 -0
- package/dist/server/node_modules/environment/package.json +74 -0
- package/dist/server/node_modules/environment/readme.md +94 -0
- package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
- package/dist/server/node_modules/escape-string-regexp/license +9 -0
- package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
- package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
- package/dist/server/node_modules/indent-string/index.d.ts +38 -0
- package/dist/server/node_modules/indent-string/index.js +38 -0
- package/dist/server/node_modules/indent-string/license +9 -0
- package/dist/server/node_modules/indent-string/package.json +40 -0
- package/dist/server/node_modules/indent-string/readme.md +73 -0
- package/dist/server/node_modules/ink/build/ansi-tokenizer.d.ts +38 -0
- package/dist/server/node_modules/ink/build/ansi-tokenizer.js +316 -0
- package/dist/server/node_modules/ink/build/ansi-tokenizer.js.map +1 -0
- package/dist/server/node_modules/ink/build/apply-styles.js +175 -0
- package/dist/server/node_modules/ink/build/build-layout.js +77 -0
- package/dist/server/node_modules/ink/build/calculate-wrapped-text.js +53 -0
- package/dist/server/node_modules/ink/build/colorize.d.ts +3 -0
- package/dist/server/node_modules/ink/build/colorize.js +48 -0
- package/dist/server/node_modules/ink/build/colorize.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/AccessibilityContext.d.ts +3 -0
- package/dist/server/node_modules/ink/build/components/AccessibilityContext.js +5 -0
- package/dist/server/node_modules/ink/build/components/AccessibilityContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/App.d.ts +18 -0
- package/dist/server/node_modules/ink/build/components/App.js +351 -0
- package/dist/server/node_modules/ink/build/components/App.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/AppContext.d.ts +15 -0
- package/dist/server/node_modules/ink/build/components/AppContext.js +11 -0
- package/dist/server/node_modules/ink/build/components/AppContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/BackgroundContext.d.ts +4 -0
- package/dist/server/node_modules/ink/build/components/BackgroundContext.js +3 -0
- package/dist/server/node_modules/ink/build/components/BackgroundContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Box.d.ts +117 -0
- package/dist/server/node_modules/ink/build/components/Box.js +34 -0
- package/dist/server/node_modules/ink/build/components/Box.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Color.js +62 -0
- package/dist/server/node_modules/ink/build/components/Cursor.d.ts +83 -0
- package/dist/server/node_modules/ink/build/components/Cursor.js +53 -0
- package/dist/server/node_modules/ink/build/components/Cursor.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/CursorContext.d.ts +11 -0
- package/dist/server/node_modules/ink/build/components/CursorContext.js +8 -0
- package/dist/server/node_modules/ink/build/components/CursorContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/ErrorBoundary.d.ts +18 -0
- package/dist/server/node_modules/ink/build/components/ErrorBoundary.js +23 -0
- package/dist/server/node_modules/ink/build/components/ErrorBoundary.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/ErrorOverview.d.ts +6 -0
- package/dist/server/node_modules/ink/build/components/ErrorOverview.js +84 -0
- package/dist/server/node_modules/ink/build/components/ErrorOverview.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/FocusContext.d.ts +16 -0
- package/dist/server/node_modules/ink/build/components/FocusContext.js +17 -0
- package/dist/server/node_modules/ink/build/components/FocusContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Newline.d.ts +13 -0
- package/dist/server/node_modules/ink/build/components/Newline.js +8 -0
- package/dist/server/node_modules/ink/build/components/Newline.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Spacer.d.ts +7 -0
- package/dist/server/node_modules/ink/build/components/Spacer.js +11 -0
- package/dist/server/node_modules/ink/build/components/Spacer.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Static.d.ts +24 -0
- package/dist/server/node_modules/ink/build/components/Static.js +28 -0
- package/dist/server/node_modules/ink/build/components/Static.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/StderrContext.d.ts +15 -0
- package/dist/server/node_modules/ink/build/components/StderrContext.js +13 -0
- package/dist/server/node_modules/ink/build/components/StderrContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/StdinContext.d.ts +22 -0
- package/dist/server/node_modules/ink/build/components/StdinContext.js +19 -0
- package/dist/server/node_modules/ink/build/components/StdinContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/StdoutContext.d.ts +15 -0
- package/dist/server/node_modules/ink/build/components/StdoutContext.js +13 -0
- package/dist/server/node_modules/ink/build/components/StdoutContext.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Text.d.ts +55 -0
- package/dist/server/node_modules/ink/build/components/Text.js +50 -0
- package/dist/server/node_modules/ink/build/components/Text.js.map +1 -0
- package/dist/server/node_modules/ink/build/components/Transform.d.ts +16 -0
- package/dist/server/node_modules/ink/build/components/Transform.js +15 -0
- package/dist/server/node_modules/ink/build/components/Transform.js.map +1 -0
- package/dist/server/node_modules/ink/build/cursor-helpers.d.ts +38 -0
- package/dist/server/node_modules/ink/build/cursor-helpers.js +56 -0
- package/dist/server/node_modules/ink/build/cursor-helpers.js.map +1 -0
- package/dist/server/node_modules/ink/build/devtools-window-polyfill.d.ts +1 -0
- package/dist/server/node_modules/ink/build/devtools-window-polyfill.js +65 -0
- package/dist/server/node_modules/ink/build/devtools-window-polyfill.js.map +1 -0
- package/dist/server/node_modules/ink/build/devtools.d.ts +1 -0
- package/dist/server/node_modules/ink/build/devtools.js +11 -0
- package/dist/server/node_modules/ink/build/devtools.js.map +1 -0
- package/dist/server/node_modules/ink/build/dom.d.ts +56 -0
- package/dist/server/node_modules/ink/build/dom.js +124 -0
- package/dist/server/node_modules/ink/build/dom.js.map +1 -0
- package/dist/server/node_modules/ink/build/experimental/apply-style.js +140 -0
- package/dist/server/node_modules/ink/build/experimental/dom.js +123 -0
- package/dist/server/node_modules/ink/build/experimental/output.js +91 -0
- package/dist/server/node_modules/ink/build/experimental/reconciler.js +141 -0
- package/dist/server/node_modules/ink/build/experimental/renderer.js +81 -0
- package/dist/server/node_modules/ink/build/get-max-width.d.ts +3 -0
- package/dist/server/node_modules/ink/build/get-max-width.js +10 -0
- package/dist/server/node_modules/ink/build/get-max-width.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-app.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-app.js +8 -0
- package/dist/server/node_modules/ink/build/hooks/use-app.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-cursor.d.ts +12 -0
- package/dist/server/node_modules/ink/build/hooks/use-cursor.js +29 -0
- package/dist/server/node_modules/ink/build/hooks/use-cursor.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus-manager.d.ts +28 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js +17 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus.d.ts +29 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus.js +42 -0
- package/dist/server/node_modules/ink/build/hooks/use-focus.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-input.d.ts +131 -0
- package/dist/server/node_modules/ink/build/hooks/use-input.js +124 -0
- package/dist/server/node_modules/ink/build/hooks/use-input.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js +11 -0
- package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-stderr.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-stderr.js +8 -0
- package/dist/server/node_modules/ink/build/hooks/use-stderr.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdin.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdin.js +8 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdin.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdout.d.ts +5 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdout.js +8 -0
- package/dist/server/node_modules/ink/build/hooks/use-stdout.js.map +1 -0
- package/dist/server/node_modules/ink/build/hooks/useInput.js +38 -0
- package/dist/server/node_modules/ink/build/index.d.ts +34 -0
- package/dist/server/node_modules/ink/build/index.js +20 -0
- package/dist/server/node_modules/ink/build/index.js.map +1 -0
- package/dist/server/node_modules/ink/build/ink.d.ts +90 -0
- package/dist/server/node_modules/ink/build/ink.js +637 -0
- package/dist/server/node_modules/ink/build/ink.js.map +1 -0
- package/dist/server/node_modules/ink/build/input-parser.d.ts +7 -0
- package/dist/server/node_modules/ink/build/input-parser.js +154 -0
- package/dist/server/node_modules/ink/build/input-parser.js.map +1 -0
- package/dist/server/node_modules/ink/build/instance.js +205 -0
- package/dist/server/node_modules/ink/build/instances.d.ts +3 -0
- package/dist/server/node_modules/ink/build/instances.js +8 -0
- package/dist/server/node_modules/ink/build/instances.js.map +1 -0
- package/dist/server/node_modules/ink/build/kitty-keyboard.d.ts +23 -0
- package/dist/server/node_modules/ink/build/kitty-keyboard.js +32 -0
- package/dist/server/node_modules/ink/build/kitty-keyboard.js.map +1 -0
- package/dist/server/node_modules/ink/build/layout.d.ts +7 -0
- package/dist/server/node_modules/ink/build/layout.js +33 -0
- package/dist/server/node_modules/ink/build/layout.js.map +1 -0
- package/dist/server/node_modules/ink/build/log-update.d.ts +19 -0
- package/dist/server/node_modules/ink/build/log-update.js +242 -0
- package/dist/server/node_modules/ink/build/log-update.js.map +1 -0
- package/dist/server/node_modules/ink/build/measure-element.d.ts +16 -0
- package/dist/server/node_modules/ink/build/measure-element.js +9 -0
- package/dist/server/node_modules/ink/build/measure-element.js.map +1 -0
- package/dist/server/node_modules/ink/build/measure-text.d.ts +6 -0
- package/dist/server/node_modules/ink/build/measure-text.js +21 -0
- package/dist/server/node_modules/ink/build/measure-text.js.map +1 -0
- package/dist/server/node_modules/ink/build/options.d.ts +52 -0
- package/dist/server/node_modules/ink/build/options.js +2 -0
- package/dist/server/node_modules/ink/build/options.js.map +1 -0
- package/dist/server/node_modules/ink/build/output.d.ts +35 -0
- package/dist/server/node_modules/ink/build/output.js +183 -0
- package/dist/server/node_modules/ink/build/output.js.map +1 -0
- package/dist/server/node_modules/ink/build/parse-keypress.d.ts +22 -0
- package/dist/server/node_modules/ink/build/parse-keypress.js +493 -0
- package/dist/server/node_modules/ink/build/parse-keypress.js.map +1 -0
- package/dist/server/node_modules/ink/build/reconciler.d.ts +4 -0
- package/dist/server/node_modules/ink/build/reconciler.js +274 -0
- package/dist/server/node_modules/ink/build/reconciler.js.map +1 -0
- package/dist/server/node_modules/ink/build/render-background.d.ts +4 -0
- package/dist/server/node_modules/ink/build/render-background.js +25 -0
- package/dist/server/node_modules/ink/build/render-background.js.map +1 -0
- package/dist/server/node_modules/ink/build/render-border.d.ts +4 -0
- package/dist/server/node_modules/ink/build/render-border.js +73 -0
- package/dist/server/node_modules/ink/build/render-border.js.map +1 -0
- package/dist/server/node_modules/ink/build/render-node-to-output.d.ts +14 -0
- package/dist/server/node_modules/ink/build/render-node-to-output.js +147 -0
- package/dist/server/node_modules/ink/build/render-node-to-output.js.map +1 -0
- package/dist/server/node_modules/ink/build/render-to-string.d.ts +38 -0
- package/dist/server/node_modules/ink/build/render-to-string.js +115 -0
- package/dist/server/node_modules/ink/build/render-to-string.js.map +1 -0
- package/dist/server/node_modules/ink/build/render.d.ts +121 -0
- package/dist/server/node_modules/ink/build/render.js +55 -0
- package/dist/server/node_modules/ink/build/render.js.map +1 -0
- package/dist/server/node_modules/ink/build/renderer.d.ts +8 -0
- package/dist/server/node_modules/ink/build/renderer.js +55 -0
- package/dist/server/node_modules/ink/build/renderer.js.map +1 -0
- package/dist/server/node_modules/ink/build/sanitize-ansi.d.ts +2 -0
- package/dist/server/node_modules/ink/build/sanitize-ansi.js +27 -0
- package/dist/server/node_modules/ink/build/sanitize-ansi.js.map +1 -0
- package/dist/server/node_modules/ink/build/screen-reader-update.d.ts +13 -0
- package/dist/server/node_modules/ink/build/screen-reader-update.js +38 -0
- package/dist/server/node_modules/ink/build/screen-reader-update.js.map +1 -0
- package/dist/server/node_modules/ink/build/squash-text-nodes.d.ts +3 -0
- package/dist/server/node_modules/ink/build/squash-text-nodes.js +36 -0
- package/dist/server/node_modules/ink/build/squash-text-nodes.js.map +1 -0
- package/dist/server/node_modules/ink/build/styles.d.ts +240 -0
- package/dist/server/node_modules/ink/build/styles.js +232 -0
- package/dist/server/node_modules/ink/build/styles.js.map +1 -0
- package/dist/server/node_modules/ink/build/utils.d.ts +2 -0
- package/dist/server/node_modules/ink/build/utils.js +4 -0
- package/dist/server/node_modules/ink/build/utils.js.map +1 -0
- package/dist/server/node_modules/ink/build/wrap-text.d.ts +3 -0
- package/dist/server/node_modules/ink/build/wrap-text.js +31 -0
- package/dist/server/node_modules/ink/build/wrap-text.js.map +1 -0
- package/dist/server/node_modules/ink/build/write-synchronized.d.ts +4 -0
- package/dist/server/node_modules/ink/build/write-synchronized.js +7 -0
- package/dist/server/node_modules/ink/build/write-synchronized.js.map +1 -0
- package/dist/server/node_modules/ink/license +10 -0
- package/dist/server/node_modules/ink/package.json +201 -0
- package/dist/server/node_modules/ink/readme.md +2636 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
- package/dist/server/node_modules/is-fullwidth-code-point/license +9 -0
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
- package/dist/server/node_modules/is-in-ci/cli.js +5 -0
- package/dist/server/node_modules/is-in-ci/index.d.ts +15 -0
- package/dist/server/node_modules/is-in-ci/index.js +7 -0
- package/dist/server/node_modules/is-in-ci/license +9 -0
- package/dist/server/node_modules/is-in-ci/package.json +49 -0
- package/dist/server/node_modules/is-in-ci/readme.md +44 -0
- package/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
- package/dist/server/node_modules/is-unicode-supported/license +9 -0
- package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
- package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
- package/dist/server/node_modules/onetime/index.d.ts +64 -0
- package/dist/server/node_modules/onetime/index.js +44 -0
- package/dist/server/node_modules/onetime/license +9 -0
- package/dist/server/node_modules/onetime/package.json +43 -0
- package/dist/server/node_modules/onetime/readme.md +94 -0
- package/dist/server/node_modules/patch-console/dist/index.d.ts +4 -0
- package/dist/server/node_modules/patch-console/dist/index.js +45 -0
- package/dist/server/node_modules/patch-console/dist/index.js.map +1 -0
- package/dist/server/node_modules/patch-console/license +9 -0
- package/dist/server/node_modules/patch-console/package.json +53 -0
- package/dist/server/node_modules/patch-console/readme.md +62 -0
- package/dist/server/node_modules/{pg → react-reconciler}/LICENSE +1 -1
- package/dist/server/node_modules/react-reconciler/README.md +353 -0
- package/dist/server/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js +19 -0
- package/dist/server/node_modules/react-reconciler/cjs/react-reconciler-constants.production.js +18 -0
- package/dist/server/node_modules/react-reconciler/cjs/react-reconciler-reflection.development.js +394 -0
- package/dist/server/node_modules/react-reconciler/cjs/react-reconciler-reflection.production.js +382 -0
- package/dist/server/node_modules/react-reconciler/cjs/react-reconciler.development.js +19736 -0
- package/dist/server/node_modules/react-reconciler/cjs/react-reconciler.production.js +11594 -0
- package/dist/server/node_modules/react-reconciler/cjs/react-reconciler.profiling.js +13427 -0
- package/dist/server/node_modules/react-reconciler/constants.js +7 -0
- package/dist/server/node_modules/react-reconciler/index.js +7 -0
- package/dist/server/node_modules/react-reconciler/package.json +34 -0
- package/dist/server/node_modules/react-reconciler/reflection.js +7 -0
- package/dist/server/node_modules/restore-cursor/index.d.ts +11 -0
- package/dist/server/node_modules/restore-cursor/index.js +11 -0
- package/dist/server/node_modules/restore-cursor/license +9 -0
- package/dist/server/node_modules/restore-cursor/package.json +55 -0
- package/dist/server/node_modules/restore-cursor/readme.md +31 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/dist/server/node_modules/string-width/index.d.ts +39 -0
- package/dist/server/node_modules/string-width/index.js +82 -0
- package/dist/server/node_modules/string-width/license +9 -0
- package/dist/server/node_modules/string-width/package.json +64 -0
- package/dist/server/node_modules/string-width/readme.md +66 -0
- package/dist/server/node_modules/terminal-size/index.d.ts +17 -0
- package/dist/server/node_modules/terminal-size/index.js +139 -0
- package/dist/server/node_modules/terminal-size/license +9 -0
- package/dist/server/node_modules/terminal-size/package.json +49 -0
- package/dist/server/node_modules/terminal-size/readme.md +32 -0
- package/dist/server/node_modules/widest-line/index.d.ts +12 -0
- package/dist/server/node_modules/widest-line/index.js +11 -0
- package/dist/server/node_modules/widest-line/license +9 -0
- package/dist/server/node_modules/widest-line/package.json +60 -0
- package/dist/server/node_modules/widest-line/readme.md +26 -0
- package/dist/server/node_modules/wrap-ansi/index.d.ts +41 -0
- package/dist/server/node_modules/wrap-ansi/index.js +222 -0
- package/dist/server/node_modules/wrap-ansi/license +9 -0
- package/dist/server/node_modules/wrap-ansi/package.json +69 -0
- package/dist/server/node_modules/wrap-ansi/readme.md +75 -0
- package/dist/server/node_modules/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/xtend/LICENSE +20 -0
- package/dist/server/node_modules/xtend/README.md +32 -0
- package/dist/server/node_modules/xtend/immutable.js +19 -0
- package/dist/server/node_modules/xtend/mutable.js +17 -0
- package/dist/server/node_modules/xtend/package.json +55 -0
- package/dist/server/node_modules/xtend/test.js +103 -0
- package/dist/server/node_modules/yoga-layout/README.md +40 -0
- package/dist/server/node_modules/yoga-layout/dist/binaries/yoga-wasm-base64-esm.js +75 -0
- package/dist/server/node_modules/yoga-layout/dist/src/generated/YGEnums.d.ts +189 -0
- package/dist/server/node_modules/yoga-layout/dist/src/generated/YGEnums.js +211 -0
- package/dist/server/node_modules/yoga-layout/dist/src/generated/YGEnums.js.map +1 -0
- package/dist/server/node_modules/yoga-layout/dist/src/index.d.ts +12 -0
- package/dist/server/node_modules/yoga-layout/dist/src/index.js +16 -0
- package/dist/server/node_modules/yoga-layout/dist/src/index.js.map +1 -0
- package/dist/server/node_modules/yoga-layout/dist/src/load.d.ts +11 -0
- package/dist/server/node_modules/yoga-layout/dist/src/load.js +17 -0
- package/dist/server/node_modules/yoga-layout/dist/src/load.js.map +1 -0
- package/dist/server/node_modules/yoga-layout/dist/src/wrapAssembly.d.ts +155 -0
- package/dist/server/node_modules/yoga-layout/dist/src/wrapAssembly.js +125 -0
- package/dist/server/node_modules/yoga-layout/dist/src/wrapAssembly.js.map +1 -0
- package/dist/server/node_modules/yoga-layout/package.json +53 -0
- package/dist/server/node_modules/yoga-layout/src/Config.cpp +54 -0
- package/dist/server/node_modules/yoga-layout/src/Config.h +44 -0
- package/dist/server/node_modules/yoga-layout/src/Layout.h +19 -0
- package/dist/server/node_modules/yoga-layout/src/Node.cpp +507 -0
- package/dist/server/node_modules/yoga-layout/src/Node.h +239 -0
- package/dist/server/node_modules/yoga-layout/src/Size.h +17 -0
- package/dist/server/node_modules/yoga-layout/src/Value.h +23 -0
- package/dist/server/node_modules/yoga-layout/src/embind.cpp +207 -0
- package/dist/server/node_modules/yoga-layout/src/generated/YGEnums.ts +210 -0
- package/dist/server/node_modules/yoga-layout/src/index.ts +23 -0
- package/dist/server/node_modules/yoga-layout/src/load.ts +25 -0
- package/dist/server/node_modules/yoga-layout/src/wrapAssembly.ts +336 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-D-IR9UZj.js +0 -1
- package/dist/client/assets/registry-RhRTyf-3.js +0 -2
- package/dist/client/assets/store-registry-Fp0RwcQv.js +0 -2
- package/dist/client/assets/useInfiniteQuery-ch_R3hWu.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BU66AZeq.js +0 -1
- package/dist/client/assets/workflow-detail-DR2tbuTB.js +0 -1
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +0 -60
- package/dist/server/node_modules/get-east-asian-width/index.js +0 -30
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +0 -18
- package/dist/server/node_modules/get-east-asian-width/lookup.js +0 -135
- package/dist/server/node_modules/get-east-asian-width/package.json +0 -71
- package/dist/server/node_modules/get-east-asian-width/readme.md +0 -65
- package/dist/server/node_modules/get-east-asian-width/utilities.js +0 -24
- package/dist/server/node_modules/pg/README.md +0 -95
- package/dist/server/node_modules/pg/esm/index.mjs +0 -20
- package/dist/server/node_modules/pg/lib/client.js +0 -743
- package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
- package/dist/server/node_modules/pg/lib/connection.js +0 -221
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
- package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
- package/dist/server/node_modules/pg/lib/defaults.js +0 -91
- package/dist/server/node_modules/pg/lib/index.js +0 -73
- package/dist/server/node_modules/pg/lib/native/client.js +0 -323
- package/dist/server/node_modules/pg/lib/native/index.js +0 -2
- package/dist/server/node_modules/pg/lib/native/query.js +0 -165
- package/dist/server/node_modules/pg/lib/query.js +0 -252
- package/dist/server/node_modules/pg/lib/result.js +0 -109
- package/dist/server/node_modules/pg/lib/stream.js +0 -83
- package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
- package/dist/server/node_modules/pg/lib/utils.js +0 -217
- package/dist/server/node_modules/pg/package.json +0 -76
- /package/dist/server/node_modules/{get-east-asian-width → ansi-escapes}/license +0 -0
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const { EventEmitter } = require('events')
|
|
4
|
-
|
|
5
|
-
const Result = require('./result')
|
|
6
|
-
const utils = require('./utils')
|
|
7
|
-
|
|
8
|
-
class Query extends EventEmitter {
|
|
9
|
-
constructor(config, values, callback) {
|
|
10
|
-
super()
|
|
11
|
-
|
|
12
|
-
config = utils.normalizeQueryConfig(config, values, callback)
|
|
13
|
-
|
|
14
|
-
this.text = config.text
|
|
15
|
-
this.values = config.values
|
|
16
|
-
this.rows = config.rows
|
|
17
|
-
this.types = config.types
|
|
18
|
-
this.name = config.name
|
|
19
|
-
this.queryMode = config.queryMode
|
|
20
|
-
this.binary = config.binary
|
|
21
|
-
// use unique portal name each time
|
|
22
|
-
this.portal = config.portal || ''
|
|
23
|
-
this.callback = config.callback
|
|
24
|
-
this._rowMode = config.rowMode
|
|
25
|
-
if (process.domain && config.callback) {
|
|
26
|
-
this.callback = process.domain.bind(config.callback)
|
|
27
|
-
}
|
|
28
|
-
this._result = new Result(this._rowMode, this.types)
|
|
29
|
-
|
|
30
|
-
// potential for multiple results
|
|
31
|
-
this._results = this._result
|
|
32
|
-
this._canceledDueToError = false
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
requiresPreparation() {
|
|
36
|
-
if (this.queryMode === 'extended') {
|
|
37
|
-
return true
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// named queries must always be prepared
|
|
41
|
-
if (this.name) {
|
|
42
|
-
return true
|
|
43
|
-
}
|
|
44
|
-
// always prepare if there are max number of rows expected per
|
|
45
|
-
// portal execution
|
|
46
|
-
if (this.rows) {
|
|
47
|
-
return true
|
|
48
|
-
}
|
|
49
|
-
// don't prepare empty text queries
|
|
50
|
-
if (!this.text) {
|
|
51
|
-
return false
|
|
52
|
-
}
|
|
53
|
-
// prepare if there are values
|
|
54
|
-
if (!this.values) {
|
|
55
|
-
return false
|
|
56
|
-
}
|
|
57
|
-
return this.values.length > 0
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
_checkForMultirow() {
|
|
61
|
-
// if we already have a result with a command property
|
|
62
|
-
// then we've already executed one query in a multi-statement simple query
|
|
63
|
-
// turn our results into an array of results
|
|
64
|
-
if (this._result.command) {
|
|
65
|
-
if (!Array.isArray(this._results)) {
|
|
66
|
-
this._results = [this._result]
|
|
67
|
-
}
|
|
68
|
-
this._result = new Result(this._rowMode, this._result._types)
|
|
69
|
-
this._results.push(this._result)
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// associates row metadata from the supplied
|
|
74
|
-
// message with this query object
|
|
75
|
-
// metadata used when parsing row results
|
|
76
|
-
handleRowDescription(msg) {
|
|
77
|
-
this._checkForMultirow()
|
|
78
|
-
this._result.addFields(msg.fields)
|
|
79
|
-
this._accumulateRows = this.callback || !this.listeners('row').length
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
handleDataRow(msg) {
|
|
83
|
-
let row
|
|
84
|
-
|
|
85
|
-
if (this._canceledDueToError) {
|
|
86
|
-
return
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
try {
|
|
90
|
-
row = this._result.parseRow(msg.fields)
|
|
91
|
-
} catch (err) {
|
|
92
|
-
this._canceledDueToError = err
|
|
93
|
-
return
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
this.emit('row', row, this._result)
|
|
97
|
-
if (this._accumulateRows) {
|
|
98
|
-
this._result.addRow(row)
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
handleCommandComplete(msg, connection) {
|
|
103
|
-
this._checkForMultirow()
|
|
104
|
-
this._result.addCommandComplete(msg)
|
|
105
|
-
// need to sync after each command complete of a prepared statement
|
|
106
|
-
// if we were using a row count which results in multiple calls to _getRows
|
|
107
|
-
if (this.rows) {
|
|
108
|
-
connection.sync()
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// if a named prepared statement is created with empty query text
|
|
113
|
-
// the backend will send an emptyQuery message but *not* a command complete message
|
|
114
|
-
// since we pipeline sync immediately after execute we don't need to do anything here
|
|
115
|
-
// unless we have rows specified, in which case we did not pipeline the initial sync call
|
|
116
|
-
handleEmptyQuery(connection) {
|
|
117
|
-
if (this.rows) {
|
|
118
|
-
connection.sync()
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
handleError(err, connection) {
|
|
123
|
-
// need to sync after error during a prepared statement
|
|
124
|
-
if (this._canceledDueToError) {
|
|
125
|
-
err = this._canceledDueToError
|
|
126
|
-
this._canceledDueToError = false
|
|
127
|
-
}
|
|
128
|
-
// if callback supplied do not emit error event as uncaught error
|
|
129
|
-
// events will bubble up to node process
|
|
130
|
-
if (this.callback) {
|
|
131
|
-
return this.callback(err)
|
|
132
|
-
}
|
|
133
|
-
this.emit('error', err)
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
handleReadyForQuery(con) {
|
|
137
|
-
if (this._canceledDueToError) {
|
|
138
|
-
return this.handleError(this._canceledDueToError, con)
|
|
139
|
-
}
|
|
140
|
-
if (this.callback) {
|
|
141
|
-
try {
|
|
142
|
-
this.callback(null, this._results)
|
|
143
|
-
} catch (err) {
|
|
144
|
-
process.nextTick(() => {
|
|
145
|
-
throw err
|
|
146
|
-
})
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
this.emit('end', this._results)
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
submit(connection) {
|
|
153
|
-
if (typeof this.text !== 'string' && typeof this.name !== 'string') {
|
|
154
|
-
return new Error('A query must have either text or a name. Supplying neither is unsupported.')
|
|
155
|
-
}
|
|
156
|
-
const previous = connection.parsedStatements[this.name]
|
|
157
|
-
if (this.text && previous && this.text !== previous) {
|
|
158
|
-
return new Error(`Prepared statements must be unique - '${this.name}' was used for a different statement`)
|
|
159
|
-
}
|
|
160
|
-
if (this.values && !Array.isArray(this.values)) {
|
|
161
|
-
return new Error('Query values must be an array')
|
|
162
|
-
}
|
|
163
|
-
if (this.requiresPreparation()) {
|
|
164
|
-
// If we're using the extended query protocol we fire off several separate commands
|
|
165
|
-
// to the backend. On some versions of node & some operating system versions
|
|
166
|
-
// the network stack writes each message separately instead of buffering them together
|
|
167
|
-
// causing the client & network to send more slowly. Corking & uncorking the stream
|
|
168
|
-
// allows node to buffer up the messages internally before sending them all off at once.
|
|
169
|
-
// note: we're checking for existence of cork/uncork because some versions of streams
|
|
170
|
-
// might not have this (cloudflare?)
|
|
171
|
-
connection.stream.cork && connection.stream.cork()
|
|
172
|
-
try {
|
|
173
|
-
this.prepare(connection)
|
|
174
|
-
} finally {
|
|
175
|
-
// while unlikely for this.prepare to throw, if it does & we don't uncork this stream
|
|
176
|
-
// this client becomes unresponsive, so put in finally block "just in case"
|
|
177
|
-
connection.stream.uncork && connection.stream.uncork()
|
|
178
|
-
}
|
|
179
|
-
} else {
|
|
180
|
-
connection.query(this.text)
|
|
181
|
-
}
|
|
182
|
-
return null
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
hasBeenParsed(connection) {
|
|
186
|
-
return this.name && connection.parsedStatements[this.name]
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
handlePortalSuspended(connection) {
|
|
190
|
-
this._getRows(connection, this.rows)
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
_getRows(connection, rows) {
|
|
194
|
-
connection.execute({
|
|
195
|
-
portal: this.portal,
|
|
196
|
-
rows: rows,
|
|
197
|
-
})
|
|
198
|
-
// if we're not reading pages of rows send the sync command
|
|
199
|
-
// to indicate the pipeline is finished
|
|
200
|
-
if (!rows) {
|
|
201
|
-
connection.sync()
|
|
202
|
-
} else {
|
|
203
|
-
// otherwise flush the call out to read more rows
|
|
204
|
-
connection.flush()
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
// http://developer.postgresql.org/pgdocs/postgres/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY
|
|
209
|
-
prepare(connection) {
|
|
210
|
-
// TODO refactor this poor encapsulation
|
|
211
|
-
if (!this.hasBeenParsed(connection)) {
|
|
212
|
-
connection.parse({
|
|
213
|
-
text: this.text,
|
|
214
|
-
name: this.name,
|
|
215
|
-
types: this.types,
|
|
216
|
-
})
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// because we're mapping user supplied values to
|
|
220
|
-
// postgres wire protocol compatible values it could
|
|
221
|
-
// throw an exception, so try/catch this section
|
|
222
|
-
try {
|
|
223
|
-
connection.bind({
|
|
224
|
-
portal: this.portal,
|
|
225
|
-
statement: this.name,
|
|
226
|
-
values: this.values,
|
|
227
|
-
binary: this.binary,
|
|
228
|
-
valueMapper: utils.prepareValue,
|
|
229
|
-
})
|
|
230
|
-
} catch (err) {
|
|
231
|
-
this.handleError(err, connection)
|
|
232
|
-
return
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
connection.describe({
|
|
236
|
-
type: 'P',
|
|
237
|
-
name: this.portal || '',
|
|
238
|
-
})
|
|
239
|
-
|
|
240
|
-
this._getRows(connection, this.rows)
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
handleCopyInResponse(connection) {
|
|
244
|
-
connection.sendCopyFail('No source stream defined')
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
handleCopyData(msg, connection) {
|
|
248
|
-
// noop
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
module.exports = Query
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const types = require('pg-types')
|
|
4
|
-
|
|
5
|
-
const matchRegexp = /^([A-Za-z]+)(?: (\d+))?(?: (\d+))?/
|
|
6
|
-
|
|
7
|
-
// result object returned from query
|
|
8
|
-
// in the 'end' event and also
|
|
9
|
-
// passed as second argument to provided callback
|
|
10
|
-
class Result {
|
|
11
|
-
constructor(rowMode, types) {
|
|
12
|
-
this.command = null
|
|
13
|
-
this.rowCount = null
|
|
14
|
-
this.oid = null
|
|
15
|
-
this.rows = []
|
|
16
|
-
this.fields = []
|
|
17
|
-
this._parsers = undefined
|
|
18
|
-
this._types = types
|
|
19
|
-
this.RowCtor = null
|
|
20
|
-
this.rowAsArray = rowMode === 'array'
|
|
21
|
-
if (this.rowAsArray) {
|
|
22
|
-
this.parseRow = this._parseRowAsArray
|
|
23
|
-
}
|
|
24
|
-
this._prebuiltEmptyResultObject = null
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// adds a command complete message
|
|
28
|
-
addCommandComplete(msg) {
|
|
29
|
-
let match
|
|
30
|
-
if (msg.text) {
|
|
31
|
-
// pure javascript
|
|
32
|
-
match = matchRegexp.exec(msg.text)
|
|
33
|
-
} else {
|
|
34
|
-
// native bindings
|
|
35
|
-
match = matchRegexp.exec(msg.command)
|
|
36
|
-
}
|
|
37
|
-
if (match) {
|
|
38
|
-
this.command = match[1]
|
|
39
|
-
if (match[3]) {
|
|
40
|
-
// COMMAND OID ROWS
|
|
41
|
-
this.oid = parseInt(match[2], 10)
|
|
42
|
-
this.rowCount = parseInt(match[3], 10)
|
|
43
|
-
} else if (match[2]) {
|
|
44
|
-
// COMMAND ROWS
|
|
45
|
-
this.rowCount = parseInt(match[2], 10)
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
_parseRowAsArray(rowData) {
|
|
51
|
-
const row = new Array(rowData.length)
|
|
52
|
-
for (let i = 0, len = rowData.length; i < len; i++) {
|
|
53
|
-
const rawValue = rowData[i]
|
|
54
|
-
if (rawValue !== null) {
|
|
55
|
-
row[i] = this._parsers[i](rawValue)
|
|
56
|
-
} else {
|
|
57
|
-
row[i] = null
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
return row
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
parseRow(rowData) {
|
|
64
|
-
const row = { ...this._prebuiltEmptyResultObject }
|
|
65
|
-
for (let i = 0, len = rowData.length; i < len; i++) {
|
|
66
|
-
const rawValue = rowData[i]
|
|
67
|
-
const field = this.fields[i].name
|
|
68
|
-
if (rawValue !== null) {
|
|
69
|
-
const v = this.fields[i].format === 'binary' ? Buffer.from(rawValue) : rawValue
|
|
70
|
-
row[field] = this._parsers[i](v)
|
|
71
|
-
} else {
|
|
72
|
-
row[field] = null
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return row
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
addRow(row) {
|
|
79
|
-
this.rows.push(row)
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
addFields(fieldDescriptions) {
|
|
83
|
-
// clears field definitions
|
|
84
|
-
// multiple query statements in 1 action can result in multiple sets
|
|
85
|
-
// of rowDescriptions...eg: 'select NOW(); select 1::int;'
|
|
86
|
-
// you need to reset the fields
|
|
87
|
-
this.fields = fieldDescriptions
|
|
88
|
-
if (this.fields.length) {
|
|
89
|
-
this._parsers = new Array(fieldDescriptions.length)
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const row = {}
|
|
93
|
-
|
|
94
|
-
for (let i = 0; i < fieldDescriptions.length; i++) {
|
|
95
|
-
const desc = fieldDescriptions[i]
|
|
96
|
-
row[desc.name] = null
|
|
97
|
-
|
|
98
|
-
if (this._types) {
|
|
99
|
-
this._parsers[i] = this._types.getTypeParser(desc.dataTypeID, desc.format || 'text')
|
|
100
|
-
} else {
|
|
101
|
-
this._parsers[i] = types.getTypeParser(desc.dataTypeID, desc.format || 'text')
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
this._prebuiltEmptyResultObject = { ...row }
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
module.exports = Result
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
const { getStream, getSecureStream } = getStreamFuncs()
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
/**
|
|
5
|
-
* Get a socket stream compatible with the current runtime environment.
|
|
6
|
-
* @returns {Duplex}
|
|
7
|
-
*/
|
|
8
|
-
getStream,
|
|
9
|
-
/**
|
|
10
|
-
* Get a TLS secured socket, compatible with the current environment,
|
|
11
|
-
* using the socket and other settings given in `options`.
|
|
12
|
-
* @returns {Duplex}
|
|
13
|
-
*/
|
|
14
|
-
getSecureStream,
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The stream functions that work in Node.js
|
|
19
|
-
*/
|
|
20
|
-
function getNodejsStreamFuncs() {
|
|
21
|
-
function getStream(ssl) {
|
|
22
|
-
const net = require('net')
|
|
23
|
-
return new net.Socket()
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function getSecureStream(options) {
|
|
27
|
-
const tls = require('tls')
|
|
28
|
-
return tls.connect(options)
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
getStream,
|
|
32
|
-
getSecureStream,
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The stream functions that work in Cloudflare Workers
|
|
38
|
-
*/
|
|
39
|
-
function getCloudflareStreamFuncs() {
|
|
40
|
-
function getStream(ssl) {
|
|
41
|
-
const { CloudflareSocket } = require('pg-cloudflare')
|
|
42
|
-
return new CloudflareSocket(ssl)
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function getSecureStream(options) {
|
|
46
|
-
options.socket.startTls(options)
|
|
47
|
-
return options.socket
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
getStream,
|
|
51
|
-
getSecureStream,
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Are we running in a Cloudflare Worker?
|
|
57
|
-
*
|
|
58
|
-
* @returns true if the code is currently running inside a Cloudflare Worker.
|
|
59
|
-
*/
|
|
60
|
-
function isCloudflareRuntime() {
|
|
61
|
-
// Since 2022-03-21 the `global_navigator` compatibility flag is on for Cloudflare Workers
|
|
62
|
-
// which means that `navigator.userAgent` will be defined.
|
|
63
|
-
// eslint-disable-next-line no-undef
|
|
64
|
-
if (typeof navigator === 'object' && navigator !== null && typeof navigator.userAgent === 'string') {
|
|
65
|
-
// eslint-disable-next-line no-undef
|
|
66
|
-
return navigator.userAgent === 'Cloudflare-Workers'
|
|
67
|
-
}
|
|
68
|
-
// In case `navigator` or `navigator.userAgent` is not defined then try a more sneaky approach
|
|
69
|
-
if (typeof Response === 'function') {
|
|
70
|
-
const resp = new Response(null, { cf: { thing: true } })
|
|
71
|
-
if (typeof resp.cf === 'object' && resp.cf !== null && resp.cf.thing) {
|
|
72
|
-
return true
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return false
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function getStreamFuncs() {
|
|
79
|
-
if (isCloudflareRuntime()) {
|
|
80
|
-
return getCloudflareStreamFuncs()
|
|
81
|
-
}
|
|
82
|
-
return getNodejsStreamFuncs()
|
|
83
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const types = require('pg-types')
|
|
4
|
-
|
|
5
|
-
function TypeOverrides(userTypes) {
|
|
6
|
-
this._types = userTypes || types
|
|
7
|
-
this.text = {}
|
|
8
|
-
this.binary = {}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
TypeOverrides.prototype.getOverrides = function (format) {
|
|
12
|
-
switch (format) {
|
|
13
|
-
case 'text':
|
|
14
|
-
return this.text
|
|
15
|
-
case 'binary':
|
|
16
|
-
return this.binary
|
|
17
|
-
default:
|
|
18
|
-
return {}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
TypeOverrides.prototype.setTypeParser = function (oid, format, parseFn) {
|
|
23
|
-
if (typeof format === 'function') {
|
|
24
|
-
parseFn = format
|
|
25
|
-
format = 'text'
|
|
26
|
-
}
|
|
27
|
-
this.getOverrides(format)[oid] = parseFn
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
TypeOverrides.prototype.getTypeParser = function (oid, format) {
|
|
31
|
-
format = format || 'text'
|
|
32
|
-
return this.getOverrides(format)[oid] || this._types.getTypeParser(oid, format)
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
module.exports = TypeOverrides
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const defaults = require('./defaults')
|
|
4
|
-
|
|
5
|
-
const util = require('util')
|
|
6
|
-
const { isDate } = util.types || util // Node 8 doesn't have `util.types`
|
|
7
|
-
|
|
8
|
-
function escapeElement(elementRepresentation) {
|
|
9
|
-
const escaped = elementRepresentation.replace(/\\/g, '\\\\').replace(/"/g, '\\"')
|
|
10
|
-
|
|
11
|
-
return '"' + escaped + '"'
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// convert a JS array to a postgres array literal
|
|
15
|
-
// uses comma separator so won't work for types like box that use
|
|
16
|
-
// a different array separator.
|
|
17
|
-
function arrayString(val) {
|
|
18
|
-
let result = '{'
|
|
19
|
-
for (let i = 0; i < val.length; i++) {
|
|
20
|
-
if (i > 0) {
|
|
21
|
-
result = result + ','
|
|
22
|
-
}
|
|
23
|
-
if (val[i] === null || typeof val[i] === 'undefined') {
|
|
24
|
-
result = result + 'NULL'
|
|
25
|
-
} else if (Array.isArray(val[i])) {
|
|
26
|
-
result = result + arrayString(val[i])
|
|
27
|
-
} else if (ArrayBuffer.isView(val[i])) {
|
|
28
|
-
let item = val[i]
|
|
29
|
-
if (!(item instanceof Buffer)) {
|
|
30
|
-
const buf = Buffer.from(item.buffer, item.byteOffset, item.byteLength)
|
|
31
|
-
if (buf.length === item.byteLength) {
|
|
32
|
-
item = buf
|
|
33
|
-
} else {
|
|
34
|
-
item = buf.slice(item.byteOffset, item.byteOffset + item.byteLength)
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
result += '\\\\x' + item.toString('hex')
|
|
38
|
-
} else {
|
|
39
|
-
result += escapeElement(prepareValue(val[i]))
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
result = result + '}'
|
|
43
|
-
return result
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// converts values from javascript types
|
|
47
|
-
// to their 'raw' counterparts for use as a postgres parameter
|
|
48
|
-
// note: you can override this function to provide your own conversion mechanism
|
|
49
|
-
// for complex types, etc...
|
|
50
|
-
const prepareValue = function (val, seen) {
|
|
51
|
-
// null and undefined are both null for postgres
|
|
52
|
-
if (val == null) {
|
|
53
|
-
return null
|
|
54
|
-
}
|
|
55
|
-
if (typeof val === 'object') {
|
|
56
|
-
if (val instanceof Buffer) {
|
|
57
|
-
return val
|
|
58
|
-
}
|
|
59
|
-
if (ArrayBuffer.isView(val)) {
|
|
60
|
-
const buf = Buffer.from(val.buffer, val.byteOffset, val.byteLength)
|
|
61
|
-
if (buf.length === val.byteLength) {
|
|
62
|
-
return buf
|
|
63
|
-
}
|
|
64
|
-
return buf.slice(val.byteOffset, val.byteOffset + val.byteLength) // Node.js v4 does not support those Buffer.from params
|
|
65
|
-
}
|
|
66
|
-
if (isDate(val)) {
|
|
67
|
-
if (defaults.parseInputDatesAsUTC) {
|
|
68
|
-
return dateToStringUTC(val)
|
|
69
|
-
} else {
|
|
70
|
-
return dateToString(val)
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
if (Array.isArray(val)) {
|
|
74
|
-
return arrayString(val)
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return prepareObject(val, seen)
|
|
78
|
-
}
|
|
79
|
-
return val.toString()
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function prepareObject(val, seen) {
|
|
83
|
-
if (val && typeof val.toPostgres === 'function') {
|
|
84
|
-
seen = seen || []
|
|
85
|
-
if (seen.indexOf(val) !== -1) {
|
|
86
|
-
throw new Error('circular reference detected while preparing "' + val + '" for query')
|
|
87
|
-
}
|
|
88
|
-
seen.push(val)
|
|
89
|
-
|
|
90
|
-
return prepareValue(val.toPostgres(prepareValue), seen)
|
|
91
|
-
}
|
|
92
|
-
return JSON.stringify(val)
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function dateToString(date) {
|
|
96
|
-
let offset = -date.getTimezoneOffset()
|
|
97
|
-
|
|
98
|
-
let year = date.getFullYear()
|
|
99
|
-
const isBCYear = year < 1
|
|
100
|
-
if (isBCYear) year = Math.abs(year) + 1 // negative years are 1 off their BC representation
|
|
101
|
-
|
|
102
|
-
let ret =
|
|
103
|
-
String(year).padStart(4, '0') +
|
|
104
|
-
'-' +
|
|
105
|
-
String(date.getMonth() + 1).padStart(2, '0') +
|
|
106
|
-
'-' +
|
|
107
|
-
String(date.getDate()).padStart(2, '0') +
|
|
108
|
-
'T' +
|
|
109
|
-
String(date.getHours()).padStart(2, '0') +
|
|
110
|
-
':' +
|
|
111
|
-
String(date.getMinutes()).padStart(2, '0') +
|
|
112
|
-
':' +
|
|
113
|
-
String(date.getSeconds()).padStart(2, '0') +
|
|
114
|
-
'.' +
|
|
115
|
-
String(date.getMilliseconds()).padStart(3, '0')
|
|
116
|
-
|
|
117
|
-
if (offset < 0) {
|
|
118
|
-
ret += '-'
|
|
119
|
-
offset *= -1
|
|
120
|
-
} else {
|
|
121
|
-
ret += '+'
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
ret += String(Math.floor(offset / 60)).padStart(2, '0') + ':' + String(offset % 60).padStart(2, '0')
|
|
125
|
-
if (isBCYear) ret += ' BC'
|
|
126
|
-
return ret
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
function dateToStringUTC(date) {
|
|
130
|
-
let year = date.getUTCFullYear()
|
|
131
|
-
const isBCYear = year < 1
|
|
132
|
-
if (isBCYear) year = Math.abs(year) + 1 // negative years are 1 off their BC representation
|
|
133
|
-
|
|
134
|
-
let ret =
|
|
135
|
-
String(year).padStart(4, '0') +
|
|
136
|
-
'-' +
|
|
137
|
-
String(date.getUTCMonth() + 1).padStart(2, '0') +
|
|
138
|
-
'-' +
|
|
139
|
-
String(date.getUTCDate()).padStart(2, '0') +
|
|
140
|
-
'T' +
|
|
141
|
-
String(date.getUTCHours()).padStart(2, '0') +
|
|
142
|
-
':' +
|
|
143
|
-
String(date.getUTCMinutes()).padStart(2, '0') +
|
|
144
|
-
':' +
|
|
145
|
-
String(date.getUTCSeconds()).padStart(2, '0') +
|
|
146
|
-
'.' +
|
|
147
|
-
String(date.getUTCMilliseconds()).padStart(3, '0')
|
|
148
|
-
|
|
149
|
-
ret += '+00:00'
|
|
150
|
-
if (isBCYear) ret += ' BC'
|
|
151
|
-
return ret
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
function normalizeQueryConfig(config, values, callback) {
|
|
155
|
-
// can take in strings or config objects
|
|
156
|
-
config = typeof config === 'string' ? { text: config } : config
|
|
157
|
-
if (values) {
|
|
158
|
-
if (typeof values === 'function') {
|
|
159
|
-
config.callback = values
|
|
160
|
-
} else {
|
|
161
|
-
config.values = values
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
if (callback) {
|
|
165
|
-
config.callback = callback
|
|
166
|
-
}
|
|
167
|
-
return config
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
// Ported from PostgreSQL 9.2.4 source code in src/interfaces/libpq/fe-exec.c
|
|
171
|
-
const escapeIdentifier = function (str) {
|
|
172
|
-
return '"' + str.replace(/"/g, '""') + '"'
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
const escapeLiteral = function (str) {
|
|
176
|
-
let hasBackslash = false
|
|
177
|
-
let escaped = "'"
|
|
178
|
-
|
|
179
|
-
if (str == null) {
|
|
180
|
-
return "''"
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
if (typeof str !== 'string') {
|
|
184
|
-
return "''"
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
for (let i = 0; i < str.length; i++) {
|
|
188
|
-
const c = str[i]
|
|
189
|
-
if (c === "'") {
|
|
190
|
-
escaped += c + c
|
|
191
|
-
} else if (c === '\\') {
|
|
192
|
-
escaped += c + c
|
|
193
|
-
hasBackslash = true
|
|
194
|
-
} else {
|
|
195
|
-
escaped += c
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
escaped += "'"
|
|
200
|
-
|
|
201
|
-
if (hasBackslash === true) {
|
|
202
|
-
escaped = ' E' + escaped
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
return escaped
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
module.exports = {
|
|
209
|
-
prepareValue: function prepareValueWrapper(value) {
|
|
210
|
-
// this ensures that extra arguments do not get passed into prepareValue
|
|
211
|
-
// by accident, eg: from calling values.map(utils.prepareValue)
|
|
212
|
-
return prepareValue(value)
|
|
213
|
-
},
|
|
214
|
-
normalizeQueryConfig,
|
|
215
|
-
escapeIdentifier,
|
|
216
|
-
escapeLiteral,
|
|
217
|
-
}
|