decocms 2.311.1 → 2.311.3
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-GVxuU95v.js → AlertCircle-Djr0yelP.js} +1 -1
- package/dist/client/assets/Archive-B6lPEYxi.js +1 -0
- package/dist/client/assets/{ArrowNarrowLeft-CZSxj8rY.js → ArrowNarrowLeft-B291p1AJ.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-C9_9n6RS.js → ArrowUpRight-D7KqTERk.js} +1 -1
- package/dist/client/assets/{Check-B7RZVj2P.js → Check-D_Sk8fW_.js} +1 -1
- package/dist/client/assets/{CheckCircle-CpSCTcKF.js → CheckCircle-D__FA05W.js} +1 -1
- package/dist/client/assets/{ChevronDown-PN1FfGGP.js → ChevronDown-BHCo5V9J.js} +1 -1
- package/dist/client/assets/{ChevronRight-B87-4gCD.js → ChevronRight-CRGY6QAO.js} +1 -1
- package/dist/client/assets/{ChevronUp-DXZ6bMcP.js → ChevronUp-Dh2SiOy7.js} +1 -1
- package/dist/client/assets/{Container-Bn1bP0Yi.js → Container-AP8CnyxW.js} +1 -1
- package/dist/client/assets/{DotsVertical-0NEZeBK_.js → DotsVertical-UTS9GjI-.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cl6M9_6y.js → LinkExternal01-Cc9uLqLU.js} +1 -1
- package/dist/client/assets/{Lock01-BNDVtNp3.js → Lock01-BInejH64.js} +1 -1
- package/dist/client/assets/{Palette-BgYWS9GS.js → Palette-Cec1fhMz.js} +1 -1
- package/dist/client/assets/{Play-jAQMD8Zy.js → Play-CD_ssz5Z.js} +1 -1
- package/dist/client/assets/{Plus-Decn041v.js → Plus-B4euBFog.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-2tEGwXNO.js → RefreshCcw01-Si3lBRwB.js} +1 -1
- package/dist/client/assets/{SearchMd-xzJx66s8.js → SearchMd-BTCLJcfn.js} +1 -1
- package/dist/client/assets/{Settings02-I39qsUEU.js → Settings02-sgH7ThhT.js} +1 -1
- package/dist/client/assets/{Shield01-DJsSZNak.js → Shield01-D8ZeQllE.js} +1 -1
- package/dist/client/assets/{Star01-VbAdZ1nM.js → Star01-PFBfwZmt.js} +1 -1
- package/dist/client/assets/{Sun-qACU13Q-.js → Sun-Dmea943O.js} +1 -1
- package/dist/client/assets/{Tool01-BqlBf1k7.js → Tool01-BbF2IYpq.js} +1 -1
- package/dist/client/assets/{Trash01-BqSCZqrj.js → Trash01-BnzFHXhZ.js} +1 -1
- package/dist/client/assets/{User01-w8zyOHhj.js → User01-zskaKHnK.js} +1 -1
- package/dist/client/assets/{Users03-n9zzJAad.js → Users03-CAzWDWnm.js} +1 -1
- package/dist/client/assets/{X-Cwv9W6IH.js → X-BUuYjVOr.js} +1 -1
- package/dist/client/assets/{XCircle-VMAL-xhy.js → XCircle-Cpz3G2Fy.js} +1 -1
- package/dist/client/assets/{XClose-GzEq-HU9.js → XClose-CxVVWp02.js} +1 -1
- package/dist/client/assets/{Zap-D93qKeqm.js → Zap-DFgntoN3.js} +1 -1
- package/dist/client/assets/{ZapSquare-CGJC1mww.js → ZapSquare-Wx3jz5Tc.js} +1 -1
- package/dist/client/assets/{accordion-ZNyW-Q9t.js → accordion-BYb7H8aV.js} +1 -1
- package/dist/client/assets/agent-icon-DaRK55X4.js +1 -0
- package/dist/client/assets/agents-list-Njc6Ihfs.js +1 -0
- package/dist/client/assets/ai-providers-DG6unL_s.js +1 -0
- package/dist/client/assets/{alert-dialog-7vNv5N4P.js → alert-dialog-YgpjeFBi.js} +1 -1
- package/dist/client/assets/{auth-catchall-DnPh1GEo.js → auth-catchall-Baccjd7f.js} +1 -1
- package/dist/client/assets/{automation-list-row-Cu-q04m4.js → automation-list-row-BgjnRst-.js} +1 -1
- package/dist/client/assets/automations-qM7fZ2dj.js +1 -0
- package/dist/client/assets/{avatar-Dda8SxzC.js → avatar-hRilkYOJ.js} +1 -1
- package/dist/client/assets/{badge-C_Ey5yTa.js → badge-iirFQ7GR.js} +1 -1
- package/dist/client/assets/{brand-context-pyqxXmJT.js → brand-context-hd8DfZZU.js} +1 -1
- package/dist/client/assets/{card-BqDVz8rB.js → card-cHMjszpI.js} +1 -1
- package/dist/client/assets/{chat-context-B6Fg09sU.js → chat-context-Cy40hP4t.js} +1 -1
- package/dist/client/assets/{checkbox-CwdZbdGd.js → checkbox-CPHwkQHL.js} +1 -1
- package/dist/client/assets/collection-detail-FxMRS6mC.js +1 -0
- package/dist/client/assets/{collection-display-button-QyBcFXO8.js → collection-display-button-CPoat98b.js} +1 -1
- package/dist/client/assets/{collection-search-FuJrX0DL.js → collection-search-CIGPBaze.js} +1 -1
- package/dist/client/assets/{collection-search-BPpIzKqG.js → collection-search-CR78v4di.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-k2i9yb0q.js → collection-table-wrapper-CL80nO8c.js} +1 -1
- package/dist/client/assets/{collection-tabs-Bbxi3Lhu.js → collection-tabs-C8ox2neK.js} +1 -1
- package/dist/client/assets/{collections-BXMI7Hvf.js → collections-DR6QX0g8.js} +1 -1
- package/dist/client/assets/{command-CcKs3phr.js → command-DYSstTLW.js} +1 -1
- package/dist/client/assets/{connection-card-C9ObrVFa.js → connection-card-DsBbhPLN.js} +1 -1
- package/dist/client/assets/connection-detail-C6Ik3Wf9.js +1 -0
- package/dist/client/assets/{connection-form-helpers-CLWU-iGL.js → connection-form-helpers-DMG8tqrx.js} +1 -1
- package/dist/client/assets/connections-BW8j-u1P.js +1 -0
- package/dist/client/assets/{constants-DNYERMOq.js → constants--Kj7N7Rc.js} +1 -1
- package/dist/client/assets/{constants-Bad0DdgK.js → constants-DLNEkVVr.js} +1 -1
- package/dist/client/assets/{dialog-BcmogFZk.js → dialog-Dp6SjScf.js} +1 -1
- package/dist/client/assets/{domain-settings-QGlFO294.js → domain-settings-B3U_rk2M.js} +1 -1
- package/dist/client/assets/{drawer-CFDUaOVL.js → drawer-Dj1GMxa5.js} +1 -1
- package/dist/client/assets/{dropdown-menu-NvUf9a-j.js → dropdown-menu-BDd-gW8V.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-CNm9aSBE.js → dynamic-plugin-layout-BodVTgJQ.js} +1 -1
- package/dist/client/assets/{empty-state-Dg7DOfxH.js → empty-state-AMhKur12.js} +1 -1
- package/dist/client/assets/{empty-state-CYPi3AWF.js → empty-state-DxvERlOW.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Crk93y-a.js → extract-connection-data-VXHFUQo9.js} +1 -1
- package/dist/client/assets/{features-c-yBM4_h.js → features-DH1UiJjP.js} +1 -1
- package/dist/client/assets/{form-BbDiaTsN.js → form-BRvMkkP1.js} +1 -1
- package/dist/client/assets/general-CycS6aGM.js +1 -0
- package/dist/client/assets/index-B-nub_pG.js +1 -0
- package/dist/client/assets/index-BKx3kD7f.js +1 -0
- package/dist/client/assets/{index--qrsfEvC.js → index-BLv-cdPp.js} +1 -1
- package/dist/client/assets/{index-D-aGIpWM.js → index-BPQPyblE.js} +1 -1
- package/dist/client/assets/{index-D3w8D7D3.js → index-BQnGdGlJ.js} +1 -1
- package/dist/client/assets/{index-CvwiLDhg.js → index-BaDn_qVG.js} +1 -1
- package/dist/client/assets/{index-D5c2Coqp.js → index-BrSAblDg.js} +3 -3
- package/dist/client/assets/{index-C3btaY0r.js → index-BwedVtm-.js} +1 -1
- package/dist/client/assets/index-COdHP6Q3.js +1 -0
- package/dist/client/assets/{index-Bom1zwxj.js → index-Co3saKmd.js} +1 -1
- package/dist/client/assets/{index-CLSBe_a4.js → index-Csxq5TaF.js} +3 -3
- package/dist/client/assets/{index-Dl4CZy6K.js → index-DO-glgQy.js} +1 -1
- package/dist/client/assets/{index-DDUZQ_xH.js → index-DOA4SrfQ.js} +1 -1
- package/dist/client/assets/{index-BEwswwod.js → index-DPJfdHEd.js} +1 -1
- package/dist/client/assets/{index-DmMHdsYF.js → index-DX8mbjh7.js} +1 -1
- package/dist/client/assets/{index-B3GjV7OW.js → index-bRd2N9NF.js} +2 -2
- package/dist/client/assets/{infiniteQueryObserver-RMKX6Nq0.js → infiniteQueryObserver-CnJpGer_.js} +1 -1
- package/dist/client/assets/{input-bkK8ZE7l.js → input-BTQWcFvQ.js} +1 -1
- package/dist/client/assets/{integration-icon-dKiJ5-c6.js → integration-icon-WB0OmEvR.js} +1 -1
- package/dist/client/assets/{label-DTMz5O44.js → label-CPA2JEF_.js} +1 -1
- package/dist/client/assets/{layout-LMk5O_ZK.js → layout-C5KSdgqD.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-BAnvgszw.js → lean-canvas-recruit-modal-ZidRtiZv.js} +1 -1
- package/dist/client/assets/{login-DL4UCCOO.js → login-0DiwXQ07.js} +1 -1
- package/dist/client/assets/{members-xgiddo21.js → members-CGEe_jgB.js} +1 -1
- package/dist/client/assets/{monaco-editor-C2N0lO8-.js → monaco-editor-CUE47pML.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B1WEuAdI.js → monitoring-stats-row-BUjCCtKk.js} +1 -1
- package/dist/client/assets/{oauth-callback-CEDkVwJ-.js → oauth-callback-C-ARMuSr.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Dg9MI2Au.js → oauth-callback-ai-provider-DjFgFE3U.js} +1 -1
- package/dist/client/assets/{onboarding-DkXotH-C.js → onboarding-k_gmP2Yu.js} +1 -1
- package/dist/client/assets/{org-layout-BZIyzExD.js → org-layout-Dvh2ntLI.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-DMO9tynz.js → org-plugin-layout-DzCMBblD.js} +1 -1
- package/dist/client/assets/{pair-Cbmyley2.js → pair-D6rD7fr2.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-9QQH63Km.js → plugin-empty-state-BqXWLtpY.js} +1 -1
- package/dist/client/assets/{plugin-header-Ca6fhiCD.js → plugin-header-BdbZaEVL.js} +1 -1
- package/dist/client/assets/{plugin-layout-CL9tTgtN.js → plugin-layout-Bl3EIv-G.js} +1 -1
- package/dist/client/assets/{popover-a3tMurU4.js → popover-C3FfRLrj.js} +1 -1
- package/dist/client/assets/{profile-D7pjioBj.js → profile-CPBbsaIb.js} +1 -1
- package/dist/client/assets/project-app-view-DTxderr7.js +1 -0
- package/dist/client/assets/registry-BBi9tAZj.js +2 -0
- package/dist/client/assets/{registry-layout-BaWcD2qA.js → registry-layout-DVg-9Eqy.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CnaH9rpW.js → required-auth-layout-C9lzuc8k.js} +1 -1
- package/dist/client/assets/{reset-password-vwj49aZP.js → reset-password-DLrTOlbf.js} +1 -1
- package/dist/client/assets/roles-Bnz4P9Nd.js +1 -0
- package/dist/client/assets/{scroll-area-DqbokeCV.js → scroll-area-O5xhqGH1.js} +1 -1
- package/dist/client/assets/{search-input-DAsaTE5l.js → search-input-DuGXmYx0.js} +1 -1
- package/dist/client/assets/{select-Dli7sWvO.js → select-AY7V13tM.js} +1 -1
- package/dist/client/assets/{select-model-BaOTlcuq.js → select-model-BLwMpS9o.js} +1 -1
- package/dist/client/assets/{settings-layout-CjXYIm0R.js → settings-layout-D1OyozIx.js} +1 -1
- package/dist/client/assets/{settings-section-DBJaYBiY.js → settings-section-DGvq5eIp.js} +1 -1
- package/dist/client/assets/shell-layout-DRaEFGZF.js +1 -0
- package/dist/client/assets/{skeleton-H0I9mnBy.js → skeleton-ChSm4-0Y.js} +1 -1
- package/dist/client/assets/{sso-DYCaqBsm.js → sso-DLh4eigD.js} +1 -1
- package/dist/client/assets/{store-uDsU3GrB.js → store-CD5Y3l5z.js} +1 -1
- package/dist/client/assets/store-registry-Bx4Ds4sC.js +2 -0
- package/dist/client/assets/{switch-BdqZBTdM.js → switch-CX4qY3Ex.js} +1 -1
- package/dist/client/assets/{table-DK414n0F.js → table-Ddn8Rk3D.js} +1 -1
- package/dist/client/assets/{tabs-CeGpUpHP.js → tabs-D_nT4WLa.js} +1 -1
- package/dist/client/assets/{task-status-CqDAnW9H.js → task-status-PH7-Db6I.js} +1 -1
- package/dist/client/assets/{textarea-DYbvm35p.js → textarea-DTqKy4Qo.js} +1 -1
- package/dist/client/assets/{toggle-group-DXYK5Kmg.js → toggle-group-BsH3LUCe.js} +1 -1
- package/dist/client/assets/{tools-list-DQqEXfVG.js → tools-list-D2J7xK-u.js} +1 -1
- package/dist/client/assets/{tooltip-M7OSSLPB.js → tooltip-C4ZEvlyV.js} +1 -1
- package/dist/client/assets/{types-aUaKAv-0.js → types-PLyAutgi.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CmHinIUs.js → use-ai-providers-D3jfy3JG.js} +1 -1
- package/dist/client/assets/{use-collections-Cy_Omosv.js → use-collections-BjgqvYm5.js} +1 -1
- package/dist/client/assets/{use-connection-BTNmhjS_.js → use-connection-CnyB1HmP.js} +1 -1
- package/dist/client/assets/{use-copy-CkkAJAvS.js → use-copy-LWIhILMp.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BuaKZJs7.js → use-create-virtual-mcp-BpvlQZOX.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CO57B6nX.js → use-debounced-autosave-CUv7GNdN.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CQ1IkvCh.js → use-decopilot-events-ChvTdIEw.js} +1 -1
- package/dist/client/assets/{use-delete-connection-6dZbEpz0.js → use-delete-connection-B_f0W-1P.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-ZPBLdFp5.js → use-infinite-scroll-DWQh3C6u.js} +1 -1
- package/dist/client/assets/{use-list-state-C6g9hGA4.js → use-list-state-CMD-drLp.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BxVuuTSL.js → use-mcp-tools-DlRwbAwV.js} +1 -1
- package/dist/client/assets/{use-members-Bi_cxyIQ.js → use-members-CeKeJ90-.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CSPyzm0t.js → use-navigate-to-agent-Bt6KkuQa.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C0e9yR_n.js → use-org-auth-client-CzTb1zcb.js} +1 -1
- package/dist/client/assets/{use-org-sso-BBRAkASE.js → use-org-sso-BMiHKoas.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C1ELHN87.js → use-organization-roles-DlEsf5iu.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DTcFJGZh.js → use-organization-settings-Bf-vFUZQ.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BTwHNugi.js → use-registry-connections-DRem4U8m.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DtamCVeq.js → use-status-sounds-BC1BnHmH.js} +1 -1
- package/dist/client/assets/{use-tasks-B6YSkeM5.js → use-tasks-BjbhO8fX.js} +1 -1
- package/dist/client/assets/{use-view-mode-BT7njn-W.js → use-view-mode-oJ3yWL7K.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CSMhsIFC.js → use-virtual-mcp-Btinsi9b.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C4SiH59h.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-Bt_Lb_HW.js +1 -0
- package/dist/client/assets/{user-D3wZendk.js → user-CNjw2T7L.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DrXoiKTK.js → view-mode-toggle-CXuPC9E_.js} +1 -1
- package/dist/client/assets/workflow-DJA0XTVK.js +1 -0
- package/dist/client/assets/workflow-detail-C4-Dradv.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +8 -4
- 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/convert-to-spaces/dist/index.d.ts +2 -0
- package/dist/server/node_modules/convert-to-spaces/dist/index.js +4 -0
- package/dist/server/node_modules/convert-to-spaces/license +21 -0
- package/dist/server/node_modules/convert-to-spaces/package.json +40 -0
- package/dist/server/node_modules/convert-to-spaces/readme.md +39 -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/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-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/mimic-fn/index.d.ts +54 -0
- package/dist/server/node_modules/mimic-fn/index.js +13 -0
- package/dist/server/node_modules/mimic-fn/license +9 -0
- package/dist/server/node_modules/mimic-fn/package.json +42 -0
- package/dist/server/node_modules/mimic-fn/readme.md +69 -0
- package/dist/server/node_modules/pg-cloudflare/README.md +112 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +2 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js +6 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +31 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js +152 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +3 -0
- package/dist/server/node_modules/pg-cloudflare/package.json +39 -0
- package/dist/server/node_modules/pg-cloudflare/src/empty.ts +3 -0
- package/dist/server/node_modules/pg-cloudflare/src/index.ts +166 -0
- package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +25 -0
- package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
- package/dist/server/node_modules/pg-connection-string/README.md +105 -0
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
- package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
- package/dist/server/node_modules/pg-connection-string/index.js +231 -0
- package/dist/server/node_modules/pg-connection-string/package.json +52 -0
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/pg-pool/LICENSE +21 -0
- package/dist/server/node_modules/pg-pool/README.md +357 -0
- package/dist/server/node_modules/pg-pool/esm/index.mjs +5 -0
- package/dist/server/node_modules/pg-pool/index.js +517 -0
- package/dist/server/node_modules/pg-pool/package.json +51 -0
- package/dist/server/node_modules/pg-protocol/LICENSE +21 -0
- package/dist/server/node_modules/pg-protocol/README.md +3 -0
- package/dist/server/node_modules/pg-protocol/dist/b.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js +23 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +15 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +55 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +16 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +81 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +530 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/index.d.ts +6 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js +15 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +162 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js +160 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +252 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +24 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js +324 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +42 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js +189 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/esm/index.js +11 -0
- package/dist/server/node_modules/pg-protocol/package.json +45 -0
- package/dist/server/node_modules/pg-protocol/src/b.ts +25 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +58 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +85 -0
- package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +575 -0
- package/dist/server/node_modules/pg-protocol/src/index.ts +11 -0
- package/dist/server/node_modules/pg-protocol/src/messages.ts +262 -0
- package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +276 -0
- package/dist/server/node_modules/pg-protocol/src/parser.ts +413 -0
- package/dist/server/node_modules/pg-protocol/src/serializer.ts +274 -0
- package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +67 -0
- package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +166 -0
- package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +1 -0
- package/dist/server/node_modules/pg-types/.travis.yml +7 -0
- package/dist/server/node_modules/pg-types/Makefile +14 -0
- package/dist/server/node_modules/pg-types/README.md +75 -0
- package/dist/server/node_modules/pg-types/index.d.ts +137 -0
- package/dist/server/node_modules/pg-types/index.js +47 -0
- package/dist/server/node_modules/pg-types/index.test-d.ts +21 -0
- package/dist/server/node_modules/pg-types/lib/arrayParser.js +11 -0
- package/dist/server/node_modules/pg-types/lib/binaryParsers.js +257 -0
- package/dist/server/node_modules/pg-types/lib/builtins.js +73 -0
- package/dist/server/node_modules/pg-types/lib/textParsers.js +215 -0
- package/dist/server/node_modules/pg-types/package.json +42 -0
- package/dist/server/node_modules/pg-types/test/index.js +24 -0
- package/dist/server/node_modules/pg-types/test/types.js +597 -0
- package/dist/server/node_modules/pgpass/README.md +74 -0
- package/dist/server/node_modules/pgpass/lib/helper.js +233 -0
- package/dist/server/node_modules/pgpass/lib/index.js +23 -0
- package/dist/server/node_modules/pgpass/package.json +41 -0
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/postgres-array/license +21 -0
- package/dist/server/node_modules/postgres-array/package.json +35 -0
- package/dist/server/node_modules/postgres-array/readme.md +43 -0
- package/dist/server/node_modules/postgres-bytea/index.js +33 -0
- package/dist/server/node_modules/postgres-bytea/license +21 -0
- package/dist/server/node_modules/postgres-bytea/package.json +34 -0
- package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/postgres-interval/license +21 -0
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -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/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/server.js +203 -199
- package/package.json +1 -1
- package/dist/client/assets/agent-icon-zc2fqM1k.js +0 -1
- package/dist/client/assets/agents-list-UtLvJq-k.js +0 -1
- package/dist/client/assets/ai-providers-CfDd4KX1.js +0 -1
- package/dist/client/assets/automations-CU2EtM_4.js +0 -1
- package/dist/client/assets/collection-detail-WOE1iHbK.js +0 -1
- package/dist/client/assets/connection-detail-DXmyznni.js +0 -1
- package/dist/client/assets/connections-EFejJy4T.js +0 -1
- package/dist/client/assets/general-BxBx3E8g.js +0 -1
- package/dist/client/assets/index-BVe-IL8_.js +0 -1
- package/dist/client/assets/index-bUNQ5NEg.js +0 -1
- package/dist/client/assets/index-rnnpRGp3.js +0 -1
- package/dist/client/assets/project-app-view-BhV2wKdY.js +0 -1
- package/dist/client/assets/registry-CWfZJmtj.js +0 -2
- package/dist/client/assets/roles-DphWxHYt.js +0 -1
- package/dist/client/assets/shell-layout-BMRtkmni.js +0 -1
- package/dist/client/assets/store-registry-CBTBvJpl.js +0 -2
- package/dist/client/assets/useInfiniteQuery-96c4mtDU.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-HyWQwfY6.js +0 -1
- package/dist/client/assets/workflow-BfcwUbw-.js +0 -1
- package/dist/client/assets/workflow-detail-C0BgSrtB.js +0 -1
- 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/{pg → pg-cloudflare}/LICENSE +0 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var path = require('path')
|
|
4
|
+
, Stream = require('stream').Stream
|
|
5
|
+
, split = require('split2')
|
|
6
|
+
, util = require('util')
|
|
7
|
+
, defaultPort = 5432
|
|
8
|
+
, isWin = (process.platform === 'win32')
|
|
9
|
+
, warnStream = process.stderr
|
|
10
|
+
;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var S_IRWXG = 56 // 00070(8)
|
|
14
|
+
, S_IRWXO = 7 // 00007(8)
|
|
15
|
+
, S_IFMT = 61440 // 00170000(8)
|
|
16
|
+
, S_IFREG = 32768 // 0100000(8)
|
|
17
|
+
;
|
|
18
|
+
function isRegFile(mode) {
|
|
19
|
+
return ((mode & S_IFMT) == S_IFREG);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var fieldNames = [ 'host', 'port', 'database', 'user', 'password' ];
|
|
23
|
+
var nrOfFields = fieldNames.length;
|
|
24
|
+
var passKey = fieldNames[ nrOfFields -1 ];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
function warn() {
|
|
28
|
+
var isWritable = (
|
|
29
|
+
warnStream instanceof Stream &&
|
|
30
|
+
true === warnStream.writable
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
if (isWritable) {
|
|
34
|
+
var args = Array.prototype.slice.call(arguments).concat("\n");
|
|
35
|
+
warnStream.write( util.format.apply(util, args) );
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
Object.defineProperty(module.exports, 'isWin', {
|
|
41
|
+
get : function() {
|
|
42
|
+
return isWin;
|
|
43
|
+
} ,
|
|
44
|
+
set : function(val) {
|
|
45
|
+
isWin = val;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
module.exports.warnTo = function(stream) {
|
|
51
|
+
var old = warnStream;
|
|
52
|
+
warnStream = stream;
|
|
53
|
+
return old;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
module.exports.getFileName = function(rawEnv){
|
|
57
|
+
var env = rawEnv || process.env;
|
|
58
|
+
var file = env.PGPASSFILE || (
|
|
59
|
+
isWin ?
|
|
60
|
+
path.join( env.APPDATA || './' , 'postgresql', 'pgpass.conf' ) :
|
|
61
|
+
path.join( env.HOME || './', '.pgpass' )
|
|
62
|
+
);
|
|
63
|
+
return file;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
module.exports.usePgPass = function(stats, fname) {
|
|
67
|
+
if (Object.prototype.hasOwnProperty.call(process.env, 'PGPASSWORD')) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (isWin) {
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
fname = fname || '<unkn>';
|
|
76
|
+
|
|
77
|
+
if (! isRegFile(stats.mode)) {
|
|
78
|
+
warn('WARNING: password file "%s" is not a plain file', fname);
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (stats.mode & (S_IRWXG | S_IRWXO)) {
|
|
83
|
+
/* If password file is insecure, alert the user and ignore it. */
|
|
84
|
+
warn('WARNING: password file "%s" has group or world access; permissions should be u=rw (0600) or less', fname);
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return true;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
var matcher = module.exports.match = function(connInfo, entry) {
|
|
93
|
+
return fieldNames.slice(0, -1).reduce(function(prev, field, idx){
|
|
94
|
+
if (idx == 1) {
|
|
95
|
+
// the port
|
|
96
|
+
if ( Number( connInfo[field] || defaultPort ) === Number( entry[field] ) ) {
|
|
97
|
+
return prev && true;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return prev && (
|
|
101
|
+
entry[field] === '*' ||
|
|
102
|
+
entry[field] === connInfo[field]
|
|
103
|
+
);
|
|
104
|
+
}, true);
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
module.exports.getPassword = function(connInfo, stream, cb) {
|
|
109
|
+
var pass;
|
|
110
|
+
var lineStream = stream.pipe(split());
|
|
111
|
+
|
|
112
|
+
function onLine(line) {
|
|
113
|
+
var entry = parseLine(line);
|
|
114
|
+
if (entry && isValidEntry(entry) && matcher(connInfo, entry)) {
|
|
115
|
+
pass = entry[passKey];
|
|
116
|
+
lineStream.end(); // -> calls onEnd(), but pass is set now
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
var onEnd = function() {
|
|
121
|
+
stream.destroy();
|
|
122
|
+
cb(pass);
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
var onErr = function(err) {
|
|
126
|
+
stream.destroy();
|
|
127
|
+
warn('WARNING: error on reading file: %s', err);
|
|
128
|
+
cb(undefined);
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
stream.on('error', onErr);
|
|
132
|
+
lineStream
|
|
133
|
+
.on('data', onLine)
|
|
134
|
+
.on('end', onEnd)
|
|
135
|
+
.on('error', onErr)
|
|
136
|
+
;
|
|
137
|
+
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
var parseLine = module.exports.parseLine = function(line) {
|
|
142
|
+
if (line.length < 11 || line.match(/^\s+#/)) {
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
var curChar = '';
|
|
147
|
+
var prevChar = '';
|
|
148
|
+
var fieldIdx = 0;
|
|
149
|
+
var startIdx = 0;
|
|
150
|
+
var endIdx = 0;
|
|
151
|
+
var obj = {};
|
|
152
|
+
var isLastField = false;
|
|
153
|
+
var addToObj = function(idx, i0, i1) {
|
|
154
|
+
var field = line.substring(i0, i1);
|
|
155
|
+
|
|
156
|
+
if (! Object.hasOwnProperty.call(process.env, 'PGPASS_NO_DEESCAPE')) {
|
|
157
|
+
field = field.replace(/\\([:\\])/g, '$1');
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
obj[ fieldNames[idx] ] = field;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
for (var i = 0 ; i < line.length-1 ; i += 1) {
|
|
164
|
+
curChar = line.charAt(i+1);
|
|
165
|
+
prevChar = line.charAt(i);
|
|
166
|
+
|
|
167
|
+
isLastField = (fieldIdx == nrOfFields-1);
|
|
168
|
+
|
|
169
|
+
if (isLastField) {
|
|
170
|
+
addToObj(fieldIdx, startIdx);
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (i >= 0 && curChar == ':' && prevChar !== '\\') {
|
|
175
|
+
addToObj(fieldIdx, startIdx, i+1);
|
|
176
|
+
|
|
177
|
+
startIdx = i+2;
|
|
178
|
+
fieldIdx += 1;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
obj = ( Object.keys(obj).length === nrOfFields ) ? obj : null;
|
|
183
|
+
|
|
184
|
+
return obj;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
var isValidEntry = module.exports.isValidEntry = function(entry){
|
|
189
|
+
var rules = {
|
|
190
|
+
// host
|
|
191
|
+
0 : function(x){
|
|
192
|
+
return x.length > 0;
|
|
193
|
+
} ,
|
|
194
|
+
// port
|
|
195
|
+
1 : function(x){
|
|
196
|
+
if (x === '*') {
|
|
197
|
+
return true;
|
|
198
|
+
}
|
|
199
|
+
x = Number(x);
|
|
200
|
+
return (
|
|
201
|
+
isFinite(x) &&
|
|
202
|
+
x > 0 &&
|
|
203
|
+
x < 9007199254740992 &&
|
|
204
|
+
Math.floor(x) === x
|
|
205
|
+
);
|
|
206
|
+
} ,
|
|
207
|
+
// database
|
|
208
|
+
2 : function(x){
|
|
209
|
+
return x.length > 0;
|
|
210
|
+
} ,
|
|
211
|
+
// username
|
|
212
|
+
3 : function(x){
|
|
213
|
+
return x.length > 0;
|
|
214
|
+
} ,
|
|
215
|
+
// password
|
|
216
|
+
4 : function(x){
|
|
217
|
+
return x.length > 0;
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
for (var idx = 0 ; idx < fieldNames.length ; idx += 1) {
|
|
222
|
+
var rule = rules[idx];
|
|
223
|
+
var value = entry[ fieldNames[idx] ] || '';
|
|
224
|
+
|
|
225
|
+
var res = rule(value);
|
|
226
|
+
if (!res) {
|
|
227
|
+
return false;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
return true;
|
|
232
|
+
};
|
|
233
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var path = require('path')
|
|
4
|
+
, fs = require('fs')
|
|
5
|
+
, helper = require('./helper.js')
|
|
6
|
+
;
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
module.exports = function(connInfo, cb) {
|
|
10
|
+
var file = helper.getFileName();
|
|
11
|
+
|
|
12
|
+
fs.stat(file, function(err, stat){
|
|
13
|
+
if (err || !helper.usePgPass(stat, file)) {
|
|
14
|
+
return cb(undefined);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
var st = fs.createReadStream(file);
|
|
18
|
+
|
|
19
|
+
helper.getPassword(connInfo, st, cb);
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
module.exports.warnTo = helper.warnTo;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pgpass",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "Module for reading .pgpass",
|
|
5
|
+
"main": "lib/index",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"pretest": "chmod 600 ./test/_pgpass",
|
|
8
|
+
"_hint": "jshint --exclude node_modules --verbose lib test",
|
|
9
|
+
"_test": "mocha --recursive -R list",
|
|
10
|
+
"_covered_test": "nyc --reporter html --reporter text \"$npm_execpath\" run _test",
|
|
11
|
+
"test": "\"$npm_execpath\" run _hint && \"$npm_execpath\" run _covered_test"
|
|
12
|
+
},
|
|
13
|
+
"author": "Hannes Hörl <hannes.hoerl+pgpass@snowreporter.com>",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"split2": "^4.1.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"jshint": "^2.12.0",
|
|
20
|
+
"mocha": "^8.2.0",
|
|
21
|
+
"nyc": "^15.1.0",
|
|
22
|
+
"pg": "^8.4.1",
|
|
23
|
+
"pg-escape": "^0.2.0",
|
|
24
|
+
"pg-native": "3.0.0",
|
|
25
|
+
"resumer": "0.0.0",
|
|
26
|
+
"tmp": "^0.2.1",
|
|
27
|
+
"which": "^2.0.2"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"postgres",
|
|
31
|
+
"pg",
|
|
32
|
+
"pgpass",
|
|
33
|
+
"password",
|
|
34
|
+
"postgresql"
|
|
35
|
+
],
|
|
36
|
+
"bugs": "https://github.com/hoegaarden/pgpass/issues",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/hoegaarden/pgpass.git"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
exports.parse = function (source, transform) {
|
|
4
|
+
return new ArrayParser(source, transform).parse()
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
class ArrayParser {
|
|
8
|
+
constructor (source, transform) {
|
|
9
|
+
this.source = source
|
|
10
|
+
this.transform = transform || identity
|
|
11
|
+
this.position = 0
|
|
12
|
+
this.entries = []
|
|
13
|
+
this.recorded = []
|
|
14
|
+
this.dimension = 0
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
isEof () {
|
|
18
|
+
return this.position >= this.source.length
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
nextCharacter () {
|
|
22
|
+
var character = this.source[this.position++]
|
|
23
|
+
if (character === '\\') {
|
|
24
|
+
return {
|
|
25
|
+
value: this.source[this.position++],
|
|
26
|
+
escaped: true
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
value: character,
|
|
31
|
+
escaped: false
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
record (character) {
|
|
36
|
+
this.recorded.push(character)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
newEntry (includeEmpty) {
|
|
40
|
+
var entry
|
|
41
|
+
if (this.recorded.length > 0 || includeEmpty) {
|
|
42
|
+
entry = this.recorded.join('')
|
|
43
|
+
if (entry === 'NULL' && !includeEmpty) {
|
|
44
|
+
entry = null
|
|
45
|
+
}
|
|
46
|
+
if (entry !== null) entry = this.transform(entry)
|
|
47
|
+
this.entries.push(entry)
|
|
48
|
+
this.recorded = []
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
consumeDimensions () {
|
|
53
|
+
if (this.source[0] === '[') {
|
|
54
|
+
while (!this.isEof()) {
|
|
55
|
+
var char = this.nextCharacter()
|
|
56
|
+
if (char.value === '=') break
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
parse (nested) {
|
|
62
|
+
var character, parser, quote
|
|
63
|
+
this.consumeDimensions()
|
|
64
|
+
while (!this.isEof()) {
|
|
65
|
+
character = this.nextCharacter()
|
|
66
|
+
if (character.value === '{' && !quote) {
|
|
67
|
+
this.dimension++
|
|
68
|
+
if (this.dimension > 1) {
|
|
69
|
+
parser = new ArrayParser(this.source.substr(this.position - 1), this.transform)
|
|
70
|
+
this.entries.push(parser.parse(true))
|
|
71
|
+
this.position += parser.position - 2
|
|
72
|
+
}
|
|
73
|
+
} else if (character.value === '}' && !quote) {
|
|
74
|
+
this.dimension--
|
|
75
|
+
if (!this.dimension) {
|
|
76
|
+
this.newEntry()
|
|
77
|
+
if (nested) return this.entries
|
|
78
|
+
}
|
|
79
|
+
} else if (character.value === '"' && !character.escaped) {
|
|
80
|
+
if (quote) this.newEntry(true)
|
|
81
|
+
quote = !quote
|
|
82
|
+
} else if (character.value === ',' && !quote) {
|
|
83
|
+
this.newEntry()
|
|
84
|
+
} else {
|
|
85
|
+
this.record(character.value)
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
if (this.dimension !== 0) {
|
|
89
|
+
throw new Error('array dimension not balanced')
|
|
90
|
+
}
|
|
91
|
+
return this.entries
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function identity (value) {
|
|
96
|
+
return value
|
|
97
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "postgres-array",
|
|
3
|
+
"main": "index.js",
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"description": "Parse postgres array columns",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "bendrucker/postgres-array",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Ben Drucker",
|
|
10
|
+
"email": "bvdrucker@gmail.com",
|
|
11
|
+
"url": "bendrucker.me"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=4"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "standard && tape test.js"
|
|
18
|
+
},
|
|
19
|
+
"types": "index.d.ts",
|
|
20
|
+
"keywords": [
|
|
21
|
+
"postgres",
|
|
22
|
+
"array",
|
|
23
|
+
"parser"
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"standard": "^12.0.1",
|
|
28
|
+
"tape": "^4.0.0"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"index.js",
|
|
32
|
+
"index.d.ts",
|
|
33
|
+
"readme.md"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# postgres-array [](https://travis-ci.org/bendrucker/postgres-array)
|
|
2
|
+
|
|
3
|
+
> Parse postgres array columns
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install --save postgres-array
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
var postgresArray = require('postgres-array')
|
|
17
|
+
|
|
18
|
+
postgresArray.parse('{1,2,3}', (value) => parseInt(value, 10))
|
|
19
|
+
//=> [1, 2, 3]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## API
|
|
23
|
+
|
|
24
|
+
#### `parse(input, [transform])` -> `array`
|
|
25
|
+
|
|
26
|
+
##### input
|
|
27
|
+
|
|
28
|
+
*Required*
|
|
29
|
+
Type: `string`
|
|
30
|
+
|
|
31
|
+
A Postgres array string.
|
|
32
|
+
|
|
33
|
+
##### transform
|
|
34
|
+
|
|
35
|
+
Type: `function`
|
|
36
|
+
Default: `identity`
|
|
37
|
+
|
|
38
|
+
A function that transforms non-null values inserted into the array.
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## License
|
|
42
|
+
|
|
43
|
+
MIT © [Ben Drucker](http://bendrucker.me)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
var bufferFrom = Buffer.from || Buffer
|
|
4
|
+
|
|
5
|
+
module.exports = function parseBytea (input) {
|
|
6
|
+
if (/^\\x/.test(input)) {
|
|
7
|
+
// new 'hex' style response (pg >9.0)
|
|
8
|
+
return bufferFrom(input.substr(2), 'hex')
|
|
9
|
+
}
|
|
10
|
+
var output = ''
|
|
11
|
+
var i = 0
|
|
12
|
+
while (i < input.length) {
|
|
13
|
+
if (input[i] !== '\\') {
|
|
14
|
+
output += input[i]
|
|
15
|
+
++i
|
|
16
|
+
} else {
|
|
17
|
+
if (/[0-7]{3}/.test(input.substr(i + 1, 3))) {
|
|
18
|
+
output += String.fromCharCode(parseInt(input.substr(i + 1, 3), 8))
|
|
19
|
+
i += 4
|
|
20
|
+
} else {
|
|
21
|
+
var backslashes = 1
|
|
22
|
+
while (i + backslashes < input.length && input[i + backslashes] === '\\') {
|
|
23
|
+
backslashes++
|
|
24
|
+
}
|
|
25
|
+
for (var k = 0; k < Math.floor(backslashes / 2); ++k) {
|
|
26
|
+
output += '\\'
|
|
27
|
+
}
|
|
28
|
+
i += Math.floor(backslashes / 2) * 2
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return bufferFrom(output, 'binary')
|
|
33
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "postgres-bytea",
|
|
3
|
+
"main": "index.js",
|
|
4
|
+
"version": "1.0.1",
|
|
5
|
+
"description": "Postgres bytea parser",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "bendrucker/postgres-bytea",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Ben Drucker",
|
|
10
|
+
"email": "bvdrucker@gmail.com",
|
|
11
|
+
"url": "bendrucker.me"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=0.10.0"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "standard && tape test.js"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"bytea",
|
|
21
|
+
"postgres",
|
|
22
|
+
"binary",
|
|
23
|
+
"parser"
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"tape": "^4.0.0",
|
|
28
|
+
"standard": "^4.0.0"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"index.js",
|
|
32
|
+
"readme.md"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# postgres-bytea [](https://travis-ci.org/bendrucker/postgres-bytea)
|
|
2
|
+
|
|
3
|
+
> Postgres bytea parser
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install --save postgres-bytea
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
var bytea = require('postgres-bytea');
|
|
17
|
+
bytea('\\000\\100\\200')
|
|
18
|
+
//=> buffer
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## API
|
|
22
|
+
|
|
23
|
+
#### `bytea(input)` -> `buffer`
|
|
24
|
+
|
|
25
|
+
##### input
|
|
26
|
+
|
|
27
|
+
*Required*
|
|
28
|
+
Type: `string`
|
|
29
|
+
|
|
30
|
+
A Postgres bytea binary string.
|
|
31
|
+
|
|
32
|
+
## License
|
|
33
|
+
|
|
34
|
+
MIT © [Ben Drucker](http://bendrucker.me)
|