decocms 2.172.0 → 2.172.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-BvnCc6-D.js → AlertCircle-DBHSxle0.js} +1 -1
- package/dist/client/assets/{AlignLeft-Du0NczL1.js → AlignLeft-BZi0b3qg.js} +1 -1
- package/dist/client/assets/{ArrowDown-C_8n0unK.js → ArrowDown-J5qOTRoA.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BQgzcaok.js → ArrowLeft-Cke1NjsZ.js} +1 -1
- package/dist/client/assets/{ArrowUp-o0gFtaSp.js → ArrowUp-aSx0u-5l.js} +1 -1
- package/dist/client/assets/{Check-BxC8tao2.js → Check-B8ndkg7T.js} +1 -1
- package/dist/client/assets/{CheckCircle-D_nIOFVe.js → CheckCircle-DAXfTEK-.js} +1 -1
- package/dist/client/assets/{CheckDone01-CakzFmCS.js → CheckDone01-CKxo2Bt7.js} +1 -1
- package/dist/client/assets/{CheckVerified02-B0-uBz5z.js → CheckVerified02-3DuNYJZt.js} +1 -1
- package/dist/client/assets/{ChevronDown-B6clHAxQ.js → ChevronDown-D9wVK5bH.js} +1 -1
- package/dist/client/assets/{ChevronLeft-ByevmkD8.js → ChevronLeft-DcNKgEQb.js} +1 -1
- package/dist/client/assets/{ChevronRight-BZWqxnWE.js → ChevronRight-BWpUvEdI.js} +1 -1
- package/dist/client/assets/{ChevronUp-DxXRh85A.js → ChevronUp-pA-2UtBp.js} +1 -1
- package/dist/client/assets/{Clock-aoVUv0E3.js → Clock-Bp-LAqbC.js} +1 -1
- package/dist/client/assets/{Code01-BfCMg42R.js → Code01-ChPYGYfB.js} +1 -1
- package/dist/client/assets/{Coins01-CRttGRCL.js → Coins01-CEldpOw2.js} +1 -1
- package/dist/client/assets/{Container-CHE6pZ9r.js → Container-CLsUjxhY.js} +1 -1
- package/dist/client/assets/{Copy01-Wuk9LRR2.js → Copy01-CgG_OJP6.js} +1 -1
- package/dist/client/assets/{Dataflow03-DheawpLZ.js → Dataflow03-DUfN03Mp.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-D5nivPvW.js → DotsHorizontal-COn1MVBJ.js} +1 -1
- package/dist/client/assets/{DotsVertical-CgdYQJ7U.js → DotsVertical-B6C_2FFD.js} +1 -1
- package/dist/client/assets/{Download01-DTYQtrJQ.js → Download01-BgosRgo9.js} +1 -1
- package/dist/client/assets/{Edit01-BKkVXIhK.js → Edit01-BYoLi1wi.js} +1 -1
- package/dist/client/assets/{Edit05-BvgGPrtV.js → Edit05-CXzMSTEE.js} +1 -1
- package/dist/client/assets/{Eye-geJ1dSoO.js → Eye-MtNtMWW5.js} +1 -1
- package/dist/client/assets/{EyeOff-ClRv57XC.js → EyeOff-CY8Gwzvd.js} +1 -1
- package/dist/client/assets/{File02-C3A15tgy.js → File02-CBJOSTF8.js} +1 -1
- package/dist/client/assets/{File06-CJDVZeqU.js → File06-021s902A.js} +1 -1
- package/dist/client/assets/{FilterLines-DABMr8G9.js → FilterLines-zxDuDuuJ.js} +1 -1
- package/dist/client/assets/{Globe01-7vtf7Y1x.js → Globe01-BrfugmTH.js} +1 -1
- package/dist/client/assets/{Globe02-zQio7SJP.js → Globe02-D4GwpBVP.js} +1 -1
- package/dist/client/assets/{Grid01-CgI0fqut.js → Grid01-Cx4wu3Y9.js} +1 -1
- package/dist/client/assets/{Hash02-Bng1Hle8.js → Hash02-hnhH9Jxc.js} +1 -1
- package/dist/client/assets/{Home02-D1KSrO9o.js → Home02-DyHu25ax.js} +1 -1
- package/dist/client/assets/{Image01-BLsRmD6t.js → Image01-T3g4Xdvf.js} +1 -1
- package/dist/client/assets/{Inbox01-DGQRZkXS.js → Inbox01-BXbJXxyv.js} +1 -1
- package/dist/client/assets/{InfoCircle-DvSUioPF.js → InfoCircle-Da_z8Szm.js} +1 -1
- package/dist/client/assets/{Key01-Dib7ammN.js → Key01-4NZitUKS.js} +1 -1
- package/dist/client/assets/{LayersTwo01-BmzCQYk2.js → LayersTwo01-670JTIpk.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CWuWCiNa.js → LayoutLeft-CIpulo-e.js} +1 -1
- package/dist/client/assets/{Link01-DwbGnCZ-.js → Link01-BXmFSJRd.js} +1 -1
- package/dist/client/assets/{LinkExternal01-3ULSi1GW.js → LinkExternal01-Bq8XeN8a.js} +1 -1
- package/dist/client/assets/{List-3zjBAIRS.js → List-B0bmeecJ.js} +1 -1
- package/dist/client/assets/{Loading01-BbnQsfMx.js → Loading01-B87VIClz.js} +1 -1
- package/dist/client/assets/{Lock01-ClyjUTBv.js → Lock01-BdaMZYNr.js} +1 -1
- package/dist/client/assets/{Play-p1Z3ioGY.js → Play-DBH8t0rX.js} +1 -1
- package/dist/client/assets/{Plus-BJUL5Wvq.js → Plus-CDc4R7NF.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Dfcp2VAx.js → RefreshCcw01-CiW1ymIS.js} +1 -1
- package/dist/client/assets/{Save01-BNoezVOP.js → Save01-SGB22t4q.js} +1 -1
- package/dist/client/assets/{SearchMd-BJkDuyJ3.js → SearchMd-DEv7e_hZ.js} +1 -1
- package/dist/client/assets/{Settings01-k8tDFeX4.js → Settings01-ovVBguWq.js} +1 -1
- package/dist/client/assets/{Shield01-XMvdJvy8.js → Shield01-D18ahoYD.js} +1 -1
- package/dist/client/assets/{Terminal-Bq1nd15g.js → Terminal-DNbN4GE7.js} +1 -1
- package/dist/client/assets/{Trash01-BEjbK4f6.js → Trash01-DC96NOta.js} +1 -1
- package/dist/client/assets/{Upload01-r0pGX4kR.js → Upload01-BW9BwfoA.js} +1 -1
- package/dist/client/assets/{Users03-DTCxnqPZ.js → Users03-cvM2Ndk1.js} +1 -1
- package/dist/client/assets/{X-CEnrrbAn.js → X-C5okAsgi.js} +1 -1
- package/dist/client/assets/{XCircle-BKAmr_f6.js → XCircle-CFDOKqbE.js} +1 -1
- package/dist/client/assets/{XClose-CRDqusrl.js → XClose-BHPDEFB2.js} +1 -1
- package/dist/client/assets/{Zap-CNayKvai.js → Zap-CkD-kOX3.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-DWjxgkFC.js → agent-connections-preview-BlJ035nM.js} +1 -1
- package/dist/client/assets/{agent-detail-qPTQbHAB.js → agent-detail-NABTJfFm.js} +1 -1
- package/dist/client/assets/{agents-De8iH2o7.js → agents-CK1zn3pf.js} +1 -1
- package/dist/client/assets/{alert-dialog-B77zp5_9.js → alert-dialog-BQU839b3.js} +1 -1
- package/dist/client/assets/{auth-catchall-ajIqzmLh.js → auth-catchall-CuvA1tS7.js} +1 -1
- package/dist/client/assets/{automation-detail-l1ds4Esy.js → automation-detail-BnVlIGOj.js} +1 -1
- package/dist/client/assets/{automations-D-ICSDP7.js → automations-9UyxTFnE.js} +1 -1
- package/dist/client/assets/{avatar-DUHTdDSS.js → avatar-BzF6Jb9Z.js} +1 -1
- package/dist/client/assets/{badge-B33icYfV.js → badge-DSBNODR5.js} +1 -1
- package/dist/client/assets/{binder-C4RsQP3G.js → binder-Df6Go4wZ.js} +1 -1
- package/dist/client/assets/{breadcrumb-C11JDZLD.js → breadcrumb-C0C7xCxQ.js} +1 -1
- package/dist/client/assets/{card-Bfa3ZJIC.js → card-3wGXs2xF.js} +1 -1
- package/dist/client/assets/{chart-BLla5WT3.js → chart-DpmD8a68.js} +1 -1
- package/dist/client/assets/{checkbox-BuLFRc1C.js → checkbox-B3Rpe7-l.js} +1 -1
- package/dist/client/assets/{collapsible-DDvEBvNF.js → collapsible-Df2r9Beq.js} +1 -1
- package/dist/client/assets/{collection-detail-Bi5TVIvY.js → collection-detail-Bx2S4wNW.js} +1 -1
- package/dist/client/assets/{collection-display-button-CB65ibr7.js → collection-display-button-Dbmpw-3P.js} +1 -1
- package/dist/client/assets/{collection-search-C-DUGZUN.js → collection-search-Bl8CXpst.js} +1 -1
- package/dist/client/assets/{collection-tab-dHFGyC1m.js → collection-tab-Zi-tIaoO.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CNWTcnzH.js → collection-table-wrapper-CWpzycma.js} +1 -1
- package/dist/client/assets/{collection-tabs-hNcG012s.js → collection-tabs-XXmKF6cf.js} +1 -1
- package/dist/client/assets/{command-B_9ik1cM.js → command-DsOv8SIr.js} +1 -1
- package/dist/client/assets/{connect-DfuwjHHd.js → connect-DHGLggyX.js} +1 -1
- package/dist/client/assets/{connection-card-zeX_VYK4.js → connection-card-N3Tx1qhb.js} +1 -1
- package/dist/client/assets/{connection-detail-jw7eh9PA.js → connection-detail-D3Kdf77j.js} +1 -1
- package/dist/client/assets/{connection-status-DFBDMZAF.js → connection-status-BzysCDJU.js} +1 -1
- package/dist/client/assets/{connections-B6AcPhdJ.js → connections-CZhVovQk.js} +1 -1
- package/dist/client/assets/{constants-uVLQN0jY.js → constants-B4i933q7.js} +1 -1
- package/dist/client/assets/constants-BLiDtBGA.js +1 -0
- package/dist/client/assets/{context-ClCBXQoI.js → context-vne_tDFm.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-D_k6cEfv.js → create-organization-dialog-BhY0HdLQ.js} +1 -1
- package/dist/client/assets/{create-project-dialog-F0Ewm4t_.js → create-project-dialog-BLIvPVWr.js} +1 -1
- package/dist/client/assets/{danger-oup6oh4U.js → danger-lReiiLi3.js} +1 -1
- package/dist/client/assets/{danger-zone-vsCYRE0x.js → danger-zone-B5x8MB5G.js} +1 -1
- package/dist/client/assets/{dependencies-CACLYIk-.js → dependencies-6FYvuL0W.js} +1 -1
- package/dist/client/assets/{dialog-CvddUtOS.js → dialog-CflsNx8x.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CNJ1rfC3.js → dropdown-menu-DcNTx9lg.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-Cl4-VlSa.js → dynamic-plugin-layout-t1gg8oRt.js} +1 -1
- package/dist/client/assets/{editable-task-title-BGawVgqA.js → editable-task-title-DD2nEqgz.js} +1 -1
- package/dist/client/assets/{empty-state-CpzrK9g6.js → empty-state-BJQVSVey.js} +1 -1
- package/dist/client/assets/{empty-state-CP4jllwU.js → empty-state-XvkhVm2a.js} +1 -1
- package/dist/client/assets/{env-vars-editor-CchFdE5U.js → env-vars-editor-D0IVO2-N.js} +1 -1
- package/dist/client/assets/{extract-connection-data-_6Kh3We4.js → extract-connection-data-Dcq9_d1D.js} +1 -1
- package/dist/client/assets/{file-browser-DnLypKL_.js → file-browser-B7VwaOBu.js} +2 -2
- package/dist/client/assets/{form-DmTtx5UX.js → form-t-VTqwHW.js} +1 -1
- package/dist/client/assets/{general-W7HUJ0d1.js → general-CHmY6WCR.js} +1 -1
- package/dist/client/assets/{grid-view-DcSLIihL.js → grid-view-CObD1ODK.js} +1 -1
- package/dist/client/assets/{home-CrqfmLIg.js → home-DAdz-q5X.js} +1 -1
- package/dist/client/assets/{icon-picker-DHh5HlMd.js → icon-picker-CXAPe9ug.js} +1 -1
- package/dist/client/assets/{index-MC5fCcRU.js → index-BPNTL7B5.js} +1 -1
- package/dist/client/assets/{index-BJ81Vsww.js → index-BUP2j-VZ.js} +3 -3
- package/dist/client/assets/{index-Cv3zhjFc.js → index-C1_svsm9.js} +1 -1
- package/dist/client/assets/{index-BKYpmcE7.js → index-CRVyuFS0.js} +1 -1
- package/dist/client/assets/{index-RAS9JMxX.js → index-CZ74MLAU.js} +1 -1
- package/dist/client/assets/{index-BvJY4WDC.js → index-CgdCtkSt.js} +1 -1
- package/dist/client/assets/{index-XiB7e0AL.js → index-D-cm4gF6.js} +1 -1
- package/dist/client/assets/{index-BX8jl6GF.js → index-D2ROEW_j.js} +1 -1
- package/dist/client/assets/{index-Bb9MktBE.js → index-D9ujiDbX.js} +1 -1
- package/dist/client/assets/{index-BYvtYdJ1.js → index-iDNDhzRC.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DyqlIjS8.js → infiniteQueryObserver-ueKf4rCa.js} +1 -1
- package/dist/client/assets/{input-95A3RU7n.js → input-OS0sGs_c.js} +1 -1
- package/dist/client/assets/{integration-icon-DKPtAPgu.js → integration-icon-DhNWPq_0.js} +1 -1
- package/dist/client/assets/{label-CKi_xgKG.js → label-Cj5QTzyK.js} +1 -1
- package/dist/client/assets/{layout-KmDEzVfx.js → layout-BjgZH_LK.js} +1 -1
- package/dist/client/assets/{layout-CacZ9vAP.js → layout-CunxSw7b.js} +1 -1
- package/dist/client/assets/login-BF9hcIwR.js +1 -0
- package/dist/client/assets/{logo-upload-aOk9IMA5.js → logo-upload-dZtFly9d.js} +1 -1
- package/dist/client/assets/{markdown-DrAh7zaw.js → markdown-BEHkpiAe.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CeIZPzvW.js → mcp-app-renderer-CqfIV03X.js} +1 -1
- package/dist/client/assets/{mcp-server-card-CZA2yTqZ.js → mcp-server-card-DnXtIYiQ.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-Cjp4DUbD.js → mcp-server-detail-B5_9wNbY.js} +2 -2
- package/dist/client/assets/{members-dxBgS07V.js → members-BeuYhjqH.js} +1 -1
- package/dist/client/assets/{monaco-editor-BmHelGDg.js → monaco-editor-CjYCKOTC.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-C0T1_3ja.js → monitoring-dashboard-edit-DvViNUXq.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-CDX0iyhB.js → monitoring-dashboard-view-CcuLeEOc.js} +1 -1
- package/dist/client/assets/{monitoring-Dygm51vZ.js → monitoring-hEPUjgsC.js} +1 -1
- package/dist/client/assets/{oauth-callback-Cb1hCxgk.js → oauth-callback-BhMmtwfn.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-lIzsTYGK.js → oauth-callback-ai-provider-DdW8Ak96.js} +1 -1
- package/dist/client/assets/{org-ai-providers-CoYprATW.js → org-ai-providers-BRKDGo95.js} +1 -1
- package/dist/client/assets/{page-Cu7gHbt4.js → page-4HZ9ZSA4.js} +1 -1
- package/dist/client/assets/{page-DL6abyDO.js → page-DEXUji1V.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-cFVUXsMw.js → plugin-empty-state-6gk92Qyl.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DwzoJyko.js → plugin-empty-state-CXlis9nm.js} +1 -1
- package/dist/client/assets/{plugin-header-rHEUUeKT.js → plugin-header-Dne9u3jl.js} +1 -1
- package/dist/client/assets/{plugin-header-BhPYkg2t.js → plugin-header-kfwiBpJ4.js} +1 -1
- package/dist/client/assets/plugins-Ca0nbE2z.js +1 -0
- package/dist/client/assets/{popover-DAiH8HrC.js → popover-DFyjfZbz.js} +1 -1
- package/dist/client/assets/{project-app-view-C8IeiPWh.js → project-app-view-D8C1RwhY.js} +1 -1
- package/dist/client/assets/{project-layout-D1sK3RsI.js → project-layout-DoW61RN5.js} +1 -1
- package/dist/client/assets/{project-plugins-CLJvpqWA.js → project-plugins-CoTSSvm2.js} +1 -1
- package/dist/client/assets/{projects-list-D0-piP6V.js → projects-list-CDkYXY0c.js} +1 -1
- package/dist/client/assets/{readme-viewer-Cw2zVTtx.js → readme-viewer-2DAqsNDi.js} +1 -1
- package/dist/client/assets/{registry-layout-CQk4V9Fy.js → registry-layout-OLjzUiGm.js} +1 -1
- package/dist/client/assets/{registry-utils-BQ0EUN1b.js → registry-utils-DQ3Yz0aq.js} +1 -1
- package/dist/client/assets/{reports-layout-V83nUDoJ.js → reports-layout-CATRzkgZ.js} +1 -1
- package/dist/client/assets/{reset-password-DcRv69F2.js → reset-password-CBi8fGal.js} +1 -1
- package/dist/client/assets/{resizable-BRcjlpb9.js → resizable-5ZSV72uv.js} +1 -1
- package/dist/client/assets/{save-actions-Br5EOuh1.js → save-actions-BMwCSEwb.js} +1 -1
- package/dist/client/assets/{scroll-area-B93RC88a.js → scroll-area-D61RAolI.js} +1 -1
- package/dist/client/assets/{select-Iosam4nc.js → select-D2hoe72R.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-B55ZVK2k.js → select-virtual-mcp-DbjwN01X.js} +1 -1
- package/dist/client/assets/{shell-layout-BEtMdNiu.js → shell-layout-C1SmF7Hv.js} +2 -2
- package/dist/client/assets/{sidebar-settings-Zh3CDrTB.js → sidebar-settings-ZGimo8zw.js} +1 -1
- package/dist/client/assets/{skeleton-f9h0kyuC.js → skeleton-DnYWqER_.js} +1 -1
- package/dist/client/assets/{spinner-ClMTbKWw.js → spinner-CABex48W.js} +1 -1
- package/dist/client/assets/{store-invite-DQ0eTfXv.js → store-invite-BFE_gQ55.js} +1 -1
- package/dist/client/assets/{switch-2e_OzSa-.js → switch-CAcWD1sq.js} +1 -1
- package/dist/client/assets/{table-Dr847bjN.js → table-Cxzf-FHD.js} +1 -1
- package/dist/client/assets/{tabs-BlAwR39Z.js → tabs-D57oGoRB.js} +1 -1
- package/dist/client/assets/{task-status-myNxZFI-.js → task-status-D43Cwt6l.js} +1 -1
- package/dist/client/assets/tasks-BCjx4cWT.js +1 -0
- package/dist/client/assets/{tasks-panel-X0AV2-Sn.js → tasks-panel-CG3BQMOl.js} +1 -1
- package/dist/client/assets/{textarea-XcCjv61M.js → textarea-BHHzOaro.js} +1 -1
- package/dist/client/assets/{time-range-picker-_owYVo_t.js → time-range-picker-WMggaRPG.js} +1 -1
- package/dist/client/assets/{toggle-group-C_4VG-JK.js → toggle-group-BIoAHYZJ.js} +1 -1
- package/dist/client/assets/{tools-list-D9ljaQOJ.js → tools-list-x8d6J887.js} +1 -1
- package/dist/client/assets/{tooltip-DjLTvHpz.js → tooltip-CYJcicRO.js} +1 -1
- package/dist/client/assets/{topbar-portal-Bt-7uOLT.js → topbar-portal-f4GfspVt.js} +1 -1
- package/dist/client/assets/{types-B4Gd-u-3.js → types-BvJtOINP.js} +1 -1
- package/dist/client/assets/{use-automations-BeuGbjZ-.js → use-automations-BZqwiEM_.js} +1 -1
- package/dist/client/assets/{use-binding-BEPf7Gie.js → use-binding-DKk5_N9r.js} +1 -1
- package/dist/client/assets/{use-collections-BLzG3bJp.js → use-collections-DMxCeq8b.js} +1 -1
- package/dist/client/assets/{use-connection-D_u6jBgP.js → use-connection-ez0pyFtP.js} +1 -1
- package/dist/client/assets/{use-copy-8HTCCusQ.js → use-copy-CiJz8oao.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CCZ9ZXv4.js → use-create-virtual-mcp-B8asQT4w.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-B5invNZ7.js → use-install-from-registry-CfygxUq4.js} +1 -1
- package/dist/client/assets/{use-list-state-ByEy7Osm.js → use-list-state-CSB_h2rv.js} +1 -1
- package/dist/client/assets/{use-llm-VA4dgcLv.js → use-llm-76KQxHJG.js} +1 -1
- package/dist/client/assets/{use-local-storage-LMzJlC-M.js → use-local-storage-Do7hPFcT.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BQwPUsA-.js → use-mcp-prompts-Dejjnovy.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-e1qXr7bA.js → use-mcp-resources-C2GVZGS8.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CCtN3o9e.js → use-mcp-tools-JJSno6Er.js} +1 -1
- package/dist/client/assets/{use-members-C3PUprae.js → use-members-D4TXNlgc.js} +1 -1
- package/dist/client/assets/{use-mobile-DXK-sBip.js → use-mobile-Dc15vEtL.js} +1 -1
- package/dist/client/assets/{use-project-D1gauJR3.js → use-project-fmhu7bPh.js} +1 -1
- package/dist/client/assets/{use-view-mode-DThyKTt5.js → use-view-mode-DmTBDQfD.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-dbqVkjzK.js → use-virtual-mcp-94OtcwcB.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CATkeJqj.js +1 -0
- package/dist/client/assets/{useMutation-D0WkcqTd.js → useMutation-7d0bWCn1.js} +1 -1
- package/dist/client/assets/useQuery-CN1pzVoX.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BD0TGQFj.js +1 -0
- package/dist/client/assets/{user-LylUdoHD.js → user-CztLlDB5.js} +1 -1
- package/dist/client/assets/{workflow-CA1DIkk0.js → workflow-BdfJ6OoL.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/node_modules/pg-cloudflare/LICENSE +21 -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-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-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-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/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/package.json +1 -1
- package/dist/client/assets/constants-Dxc17JqT.js +0 -1
- package/dist/client/assets/login-jzlEVf-H.js +0 -1
- package/dist/client/assets/plugins-D8nN3ns-.js +0 -1
- package/dist/client/assets/tasks-Cg_ykzKa.js +0 -1
- package/dist/client/assets/useInfiniteQuery-6ok0NRM6.js +0 -1
- package/dist/client/assets/useQuery-DMs04NaY.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-xBbNB0pB.js +0 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export class BufferReader {
|
|
2
|
+
private buffer: Buffer = Buffer.allocUnsafe(0)
|
|
3
|
+
|
|
4
|
+
// TODO(bmc): support non-utf8 encoding?
|
|
5
|
+
private encoding: string = 'utf-8'
|
|
6
|
+
|
|
7
|
+
constructor(private offset: number = 0) {}
|
|
8
|
+
|
|
9
|
+
public setBuffer(offset: number, buffer: Buffer): void {
|
|
10
|
+
this.offset = offset
|
|
11
|
+
this.buffer = buffer
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public int16(): number {
|
|
15
|
+
const result = this.buffer.readInt16BE(this.offset)
|
|
16
|
+
this.offset += 2
|
|
17
|
+
return result
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public byte(): number {
|
|
21
|
+
const result = this.buffer[this.offset]
|
|
22
|
+
this.offset++
|
|
23
|
+
return result
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public int32(): number {
|
|
27
|
+
const result = this.buffer.readInt32BE(this.offset)
|
|
28
|
+
this.offset += 4
|
|
29
|
+
return result
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public uint32(): number {
|
|
33
|
+
const result = this.buffer.readUInt32BE(this.offset)
|
|
34
|
+
this.offset += 4
|
|
35
|
+
return result
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public string(length: number): string {
|
|
39
|
+
const result = this.buffer.toString(this.encoding, this.offset, this.offset + length)
|
|
40
|
+
this.offset += length
|
|
41
|
+
return result
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public cstring(): string {
|
|
45
|
+
const start = this.offset
|
|
46
|
+
let end = start
|
|
47
|
+
// eslint-disable-next-line no-empty
|
|
48
|
+
while (this.buffer[end++] !== 0) {}
|
|
49
|
+
this.offset = end
|
|
50
|
+
return this.buffer.toString(this.encoding, start, end - 1)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public bytes(length: number): Buffer {
|
|
54
|
+
const result = this.buffer.slice(this.offset, this.offset + length)
|
|
55
|
+
this.offset += length
|
|
56
|
+
return result
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
//binary data writer tuned for encoding binary specific to the postgres binary protocol
|
|
2
|
+
|
|
3
|
+
export class Writer {
|
|
4
|
+
private buffer: Buffer
|
|
5
|
+
private offset: number = 5
|
|
6
|
+
private headerPosition: number = 0
|
|
7
|
+
constructor(private size = 256) {
|
|
8
|
+
this.buffer = Buffer.allocUnsafe(size)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
private ensure(size: number): void {
|
|
12
|
+
const remaining = this.buffer.length - this.offset
|
|
13
|
+
if (remaining < size) {
|
|
14
|
+
const oldBuffer = this.buffer
|
|
15
|
+
// exponential growth factor of around ~ 1.5
|
|
16
|
+
// https://stackoverflow.com/questions/2269063/buffer-growth-strategy
|
|
17
|
+
const newSize = oldBuffer.length + (oldBuffer.length >> 1) + size
|
|
18
|
+
this.buffer = Buffer.allocUnsafe(newSize)
|
|
19
|
+
oldBuffer.copy(this.buffer)
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public addInt32(num: number): Writer {
|
|
24
|
+
this.ensure(4)
|
|
25
|
+
this.buffer[this.offset++] = (num >>> 24) & 0xff
|
|
26
|
+
this.buffer[this.offset++] = (num >>> 16) & 0xff
|
|
27
|
+
this.buffer[this.offset++] = (num >>> 8) & 0xff
|
|
28
|
+
this.buffer[this.offset++] = (num >>> 0) & 0xff
|
|
29
|
+
return this
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public addInt16(num: number): Writer {
|
|
33
|
+
this.ensure(2)
|
|
34
|
+
this.buffer[this.offset++] = (num >>> 8) & 0xff
|
|
35
|
+
this.buffer[this.offset++] = (num >>> 0) & 0xff
|
|
36
|
+
return this
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
public addCString(string: string): Writer {
|
|
40
|
+
if (!string) {
|
|
41
|
+
this.ensure(1)
|
|
42
|
+
} else {
|
|
43
|
+
const len = Buffer.byteLength(string)
|
|
44
|
+
this.ensure(len + 1) // +1 for null terminator
|
|
45
|
+
this.buffer.write(string, this.offset, 'utf-8')
|
|
46
|
+
this.offset += len
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
this.buffer[this.offset++] = 0 // null terminator
|
|
50
|
+
return this
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public addString(string: string = ''): Writer {
|
|
54
|
+
const len = Buffer.byteLength(string)
|
|
55
|
+
this.ensure(len)
|
|
56
|
+
this.buffer.write(string, this.offset)
|
|
57
|
+
this.offset += len
|
|
58
|
+
return this
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public add(otherBuffer: Buffer): Writer {
|
|
62
|
+
this.ensure(otherBuffer.length)
|
|
63
|
+
otherBuffer.copy(this.buffer, this.offset)
|
|
64
|
+
this.offset += otherBuffer.length
|
|
65
|
+
return this
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
private join(code?: number): Buffer {
|
|
69
|
+
if (code) {
|
|
70
|
+
this.buffer[this.headerPosition] = code
|
|
71
|
+
//length is everything in this packet minus the code
|
|
72
|
+
const length = this.offset - (this.headerPosition + 1)
|
|
73
|
+
this.buffer.writeInt32BE(length, this.headerPosition + 1)
|
|
74
|
+
}
|
|
75
|
+
return this.buffer.slice(code ? 0 : 5, this.offset)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
public flush(code?: number): Buffer {
|
|
79
|
+
const result = this.join(code)
|
|
80
|
+
this.offset = 5
|
|
81
|
+
this.headerPosition = 0
|
|
82
|
+
this.buffer = Buffer.allocUnsafe(this.size)
|
|
83
|
+
return result
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,575 @@
|
|
|
1
|
+
import buffers from './testing/test-buffers'
|
|
2
|
+
import BufferList from './testing/buffer-list'
|
|
3
|
+
import { parse } from '.'
|
|
4
|
+
import assert from 'assert'
|
|
5
|
+
import { PassThrough } from 'stream'
|
|
6
|
+
import { BackendMessage } from './messages'
|
|
7
|
+
import { Parser } from './parser'
|
|
8
|
+
|
|
9
|
+
const authOkBuffer = buffers.authenticationOk()
|
|
10
|
+
const paramStatusBuffer = buffers.parameterStatus('client_encoding', 'UTF8')
|
|
11
|
+
const readyForQueryBuffer = buffers.readyForQuery()
|
|
12
|
+
const backendKeyDataBuffer = buffers.backendKeyData(1, 2)
|
|
13
|
+
const commandCompleteBuffer = buffers.commandComplete('SELECT 3')
|
|
14
|
+
const parseCompleteBuffer = buffers.parseComplete()
|
|
15
|
+
const bindCompleteBuffer = buffers.bindComplete()
|
|
16
|
+
const portalSuspendedBuffer = buffers.portalSuspended()
|
|
17
|
+
|
|
18
|
+
const row1 = {
|
|
19
|
+
name: 'id',
|
|
20
|
+
tableID: 1,
|
|
21
|
+
attributeNumber: 2,
|
|
22
|
+
dataTypeID: 3,
|
|
23
|
+
dataTypeSize: 4,
|
|
24
|
+
typeModifier: 5,
|
|
25
|
+
formatCode: 0,
|
|
26
|
+
}
|
|
27
|
+
const oneRowDescBuff = buffers.rowDescription([row1])
|
|
28
|
+
row1.name = 'bang'
|
|
29
|
+
|
|
30
|
+
const twoRowBuf = buffers.rowDescription([
|
|
31
|
+
row1,
|
|
32
|
+
{
|
|
33
|
+
name: 'whoah',
|
|
34
|
+
tableID: 10,
|
|
35
|
+
attributeNumber: 11,
|
|
36
|
+
dataTypeID: 12,
|
|
37
|
+
dataTypeSize: 13,
|
|
38
|
+
typeModifier: 14,
|
|
39
|
+
formatCode: 0,
|
|
40
|
+
},
|
|
41
|
+
])
|
|
42
|
+
|
|
43
|
+
const rowWithBigOids = {
|
|
44
|
+
name: 'bigoid',
|
|
45
|
+
tableID: 3000000001,
|
|
46
|
+
attributeNumber: 2,
|
|
47
|
+
dataTypeID: 3000000003,
|
|
48
|
+
dataTypeSize: 4,
|
|
49
|
+
typeModifier: 5,
|
|
50
|
+
formatCode: 0,
|
|
51
|
+
}
|
|
52
|
+
const bigOidDescBuff = buffers.rowDescription([rowWithBigOids])
|
|
53
|
+
|
|
54
|
+
const emptyRowFieldBuf = buffers.dataRow([])
|
|
55
|
+
|
|
56
|
+
const oneFieldBuf = buffers.dataRow(['test'])
|
|
57
|
+
|
|
58
|
+
const expectedAuthenticationOkayMessage = {
|
|
59
|
+
name: 'authenticationOk',
|
|
60
|
+
length: 8,
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const expectedParameterStatusMessage = {
|
|
64
|
+
name: 'parameterStatus',
|
|
65
|
+
parameterName: 'client_encoding',
|
|
66
|
+
parameterValue: 'UTF8',
|
|
67
|
+
length: 25,
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const expectedBackendKeyDataMessage = {
|
|
71
|
+
name: 'backendKeyData',
|
|
72
|
+
processID: 1,
|
|
73
|
+
secretKey: 2,
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const expectedReadyForQueryMessage = {
|
|
77
|
+
name: 'readyForQuery',
|
|
78
|
+
length: 5,
|
|
79
|
+
status: 'I',
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const expectedCommandCompleteMessage = {
|
|
83
|
+
name: 'commandComplete',
|
|
84
|
+
length: 13,
|
|
85
|
+
text: 'SELECT 3',
|
|
86
|
+
}
|
|
87
|
+
const emptyRowDescriptionBuffer = new BufferList()
|
|
88
|
+
.addInt16(0) // number of fields
|
|
89
|
+
.join(true, 'T')
|
|
90
|
+
|
|
91
|
+
const expectedEmptyRowDescriptionMessage = {
|
|
92
|
+
name: 'rowDescription',
|
|
93
|
+
length: 6,
|
|
94
|
+
fieldCount: 0,
|
|
95
|
+
fields: [],
|
|
96
|
+
}
|
|
97
|
+
const expectedOneRowMessage = {
|
|
98
|
+
name: 'rowDescription',
|
|
99
|
+
length: 27,
|
|
100
|
+
fieldCount: 1,
|
|
101
|
+
fields: [
|
|
102
|
+
{
|
|
103
|
+
name: 'id',
|
|
104
|
+
tableID: 1,
|
|
105
|
+
columnID: 2,
|
|
106
|
+
dataTypeID: 3,
|
|
107
|
+
dataTypeSize: 4,
|
|
108
|
+
dataTypeModifier: 5,
|
|
109
|
+
format: 'text',
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const expectedTwoRowMessage = {
|
|
115
|
+
name: 'rowDescription',
|
|
116
|
+
length: 53,
|
|
117
|
+
fieldCount: 2,
|
|
118
|
+
fields: [
|
|
119
|
+
{
|
|
120
|
+
name: 'bang',
|
|
121
|
+
tableID: 1,
|
|
122
|
+
columnID: 2,
|
|
123
|
+
dataTypeID: 3,
|
|
124
|
+
dataTypeSize: 4,
|
|
125
|
+
dataTypeModifier: 5,
|
|
126
|
+
format: 'text',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'whoah',
|
|
130
|
+
tableID: 10,
|
|
131
|
+
columnID: 11,
|
|
132
|
+
dataTypeID: 12,
|
|
133
|
+
dataTypeSize: 13,
|
|
134
|
+
dataTypeModifier: 14,
|
|
135
|
+
format: 'text',
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
}
|
|
139
|
+
const expectedBigOidMessage = {
|
|
140
|
+
name: 'rowDescription',
|
|
141
|
+
length: 31,
|
|
142
|
+
fieldCount: 1,
|
|
143
|
+
fields: [
|
|
144
|
+
{
|
|
145
|
+
name: 'bigoid',
|
|
146
|
+
tableID: 3000000001,
|
|
147
|
+
columnID: 2,
|
|
148
|
+
dataTypeID: 3000000003,
|
|
149
|
+
dataTypeSize: 4,
|
|
150
|
+
dataTypeModifier: 5,
|
|
151
|
+
format: 'text',
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const emptyParameterDescriptionBuffer = new BufferList()
|
|
157
|
+
.addInt16(0) // number of parameters
|
|
158
|
+
.join(true, 't')
|
|
159
|
+
|
|
160
|
+
const oneParameterDescBuf = buffers.parameterDescription([1111])
|
|
161
|
+
|
|
162
|
+
const twoParameterDescBuf = buffers.parameterDescription([2222, 3333])
|
|
163
|
+
|
|
164
|
+
const expectedEmptyParameterDescriptionMessage = {
|
|
165
|
+
name: 'parameterDescription',
|
|
166
|
+
length: 6,
|
|
167
|
+
parameterCount: 0,
|
|
168
|
+
dataTypeIDs: [],
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const expectedOneParameterMessage = {
|
|
172
|
+
name: 'parameterDescription',
|
|
173
|
+
length: 10,
|
|
174
|
+
parameterCount: 1,
|
|
175
|
+
dataTypeIDs: [1111],
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const expectedTwoParameterMessage = {
|
|
179
|
+
name: 'parameterDescription',
|
|
180
|
+
length: 14,
|
|
181
|
+
parameterCount: 2,
|
|
182
|
+
dataTypeIDs: [2222, 3333],
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const testForMessage = function (buffer: Buffer, expectedMessage: any) {
|
|
186
|
+
it('receives and parses ' + expectedMessage.name, async () => {
|
|
187
|
+
const messages = await parseBuffers([buffer])
|
|
188
|
+
const [lastMessage] = messages
|
|
189
|
+
|
|
190
|
+
for (const key in expectedMessage) {
|
|
191
|
+
assert.deepEqual((lastMessage as any)[key], expectedMessage[key])
|
|
192
|
+
}
|
|
193
|
+
})
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
const plainPasswordBuffer = buffers.authenticationCleartextPassword()
|
|
197
|
+
const md5PasswordBuffer = buffers.authenticationMD5Password()
|
|
198
|
+
const SASLBuffer = buffers.authenticationSASL()
|
|
199
|
+
const SASLContinueBuffer = buffers.authenticationSASLContinue()
|
|
200
|
+
const SASLFinalBuffer = buffers.authenticationSASLFinal()
|
|
201
|
+
|
|
202
|
+
const expectedPlainPasswordMessage = {
|
|
203
|
+
name: 'authenticationCleartextPassword',
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const expectedMD5PasswordMessage = {
|
|
207
|
+
name: 'authenticationMD5Password',
|
|
208
|
+
salt: Buffer.from([1, 2, 3, 4]),
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const expectedSASLMessage = {
|
|
212
|
+
name: 'authenticationSASL',
|
|
213
|
+
mechanisms: ['SCRAM-SHA-256'],
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const expectedSASLContinueMessage = {
|
|
217
|
+
name: 'authenticationSASLContinue',
|
|
218
|
+
data: 'data',
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
const expectedSASLFinalMessage = {
|
|
222
|
+
name: 'authenticationSASLFinal',
|
|
223
|
+
data: 'data',
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
const notificationResponseBuffer = buffers.notification(4, 'hi', 'boom')
|
|
227
|
+
const expectedNotificationResponseMessage = {
|
|
228
|
+
name: 'notification',
|
|
229
|
+
processId: 4,
|
|
230
|
+
channel: 'hi',
|
|
231
|
+
payload: 'boom',
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const parseBuffers = async (buffers: Buffer[]): Promise<BackendMessage[]> => {
|
|
235
|
+
const stream = new PassThrough()
|
|
236
|
+
for (const buffer of buffers) {
|
|
237
|
+
stream.write(buffer)
|
|
238
|
+
}
|
|
239
|
+
stream.end()
|
|
240
|
+
const msgs: BackendMessage[] = []
|
|
241
|
+
await parse(stream, (msg) => msgs.push(msg))
|
|
242
|
+
return msgs
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
describe('PgPacketStream', function () {
|
|
246
|
+
testForMessage(authOkBuffer, expectedAuthenticationOkayMessage)
|
|
247
|
+
testForMessage(plainPasswordBuffer, expectedPlainPasswordMessage)
|
|
248
|
+
testForMessage(md5PasswordBuffer, expectedMD5PasswordMessage)
|
|
249
|
+
testForMessage(SASLBuffer, expectedSASLMessage)
|
|
250
|
+
testForMessage(SASLContinueBuffer, expectedSASLContinueMessage)
|
|
251
|
+
|
|
252
|
+
// this exercises a found bug in the parser:
|
|
253
|
+
// https://github.com/brianc/node-postgres/pull/2210#issuecomment-627626084
|
|
254
|
+
// and adds a test which is deterministic, rather than relying on network packet chunking
|
|
255
|
+
const extendedSASLContinueBuffer = Buffer.concat([SASLContinueBuffer, Buffer.from([1, 2, 3, 4])])
|
|
256
|
+
testForMessage(extendedSASLContinueBuffer, expectedSASLContinueMessage)
|
|
257
|
+
|
|
258
|
+
testForMessage(SASLFinalBuffer, expectedSASLFinalMessage)
|
|
259
|
+
|
|
260
|
+
// this exercises a found bug in the parser:
|
|
261
|
+
// https://github.com/brianc/node-postgres/pull/2210#issuecomment-627626084
|
|
262
|
+
// and adds a test which is deterministic, rather than relying on network packet chunking
|
|
263
|
+
const extendedSASLFinalBuffer = Buffer.concat([SASLFinalBuffer, Buffer.from([1, 2, 4, 5])])
|
|
264
|
+
testForMessage(extendedSASLFinalBuffer, expectedSASLFinalMessage)
|
|
265
|
+
|
|
266
|
+
testForMessage(paramStatusBuffer, expectedParameterStatusMessage)
|
|
267
|
+
testForMessage(backendKeyDataBuffer, expectedBackendKeyDataMessage)
|
|
268
|
+
testForMessage(readyForQueryBuffer, expectedReadyForQueryMessage)
|
|
269
|
+
testForMessage(commandCompleteBuffer, expectedCommandCompleteMessage)
|
|
270
|
+
testForMessage(notificationResponseBuffer, expectedNotificationResponseMessage)
|
|
271
|
+
testForMessage(buffers.emptyQuery(), {
|
|
272
|
+
name: 'emptyQuery',
|
|
273
|
+
length: 4,
|
|
274
|
+
})
|
|
275
|
+
|
|
276
|
+
testForMessage(Buffer.from([0x6e, 0, 0, 0, 4]), {
|
|
277
|
+
name: 'noData',
|
|
278
|
+
})
|
|
279
|
+
|
|
280
|
+
describe('rowDescription messages', function () {
|
|
281
|
+
testForMessage(emptyRowDescriptionBuffer, expectedEmptyRowDescriptionMessage)
|
|
282
|
+
testForMessage(oneRowDescBuff, expectedOneRowMessage)
|
|
283
|
+
testForMessage(twoRowBuf, expectedTwoRowMessage)
|
|
284
|
+
testForMessage(bigOidDescBuff, expectedBigOidMessage)
|
|
285
|
+
})
|
|
286
|
+
|
|
287
|
+
describe('parameterDescription messages', function () {
|
|
288
|
+
testForMessage(emptyParameterDescriptionBuffer, expectedEmptyParameterDescriptionMessage)
|
|
289
|
+
testForMessage(oneParameterDescBuf, expectedOneParameterMessage)
|
|
290
|
+
testForMessage(twoParameterDescBuf, expectedTwoParameterMessage)
|
|
291
|
+
})
|
|
292
|
+
|
|
293
|
+
describe('parsing rows', function () {
|
|
294
|
+
describe('parsing empty row', function () {
|
|
295
|
+
testForMessage(emptyRowFieldBuf, {
|
|
296
|
+
name: 'dataRow',
|
|
297
|
+
fieldCount: 0,
|
|
298
|
+
})
|
|
299
|
+
})
|
|
300
|
+
|
|
301
|
+
describe('parsing data row with fields', function () {
|
|
302
|
+
testForMessage(oneFieldBuf, {
|
|
303
|
+
name: 'dataRow',
|
|
304
|
+
fieldCount: 1,
|
|
305
|
+
fields: ['test'],
|
|
306
|
+
})
|
|
307
|
+
})
|
|
308
|
+
})
|
|
309
|
+
|
|
310
|
+
describe('notice message', function () {
|
|
311
|
+
// this uses the same logic as error message
|
|
312
|
+
const buff = buffers.notice([{ type: 'C', value: 'code' }])
|
|
313
|
+
testForMessage(buff, {
|
|
314
|
+
name: 'notice',
|
|
315
|
+
code: 'code',
|
|
316
|
+
})
|
|
317
|
+
})
|
|
318
|
+
|
|
319
|
+
testForMessage(buffers.error([]), {
|
|
320
|
+
name: 'error',
|
|
321
|
+
})
|
|
322
|
+
|
|
323
|
+
describe('with all the fields', function () {
|
|
324
|
+
const buffer = buffers.error([
|
|
325
|
+
{
|
|
326
|
+
type: 'S',
|
|
327
|
+
value: 'ERROR',
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
type: 'C',
|
|
331
|
+
value: 'code',
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
type: 'M',
|
|
335
|
+
value: 'message',
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
type: 'D',
|
|
339
|
+
value: 'details',
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
type: 'H',
|
|
343
|
+
value: 'hint',
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
type: 'P',
|
|
347
|
+
value: '100',
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
type: 'p',
|
|
351
|
+
value: '101',
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
type: 'q',
|
|
355
|
+
value: 'query',
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
type: 'W',
|
|
359
|
+
value: 'where',
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
type: 'F',
|
|
363
|
+
value: 'file',
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
type: 'L',
|
|
367
|
+
value: 'line',
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
type: 'R',
|
|
371
|
+
value: 'routine',
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
type: 'Z', // ignored
|
|
375
|
+
value: 'alsdkf',
|
|
376
|
+
},
|
|
377
|
+
])
|
|
378
|
+
|
|
379
|
+
testForMessage(buffer, {
|
|
380
|
+
name: 'error',
|
|
381
|
+
severity: 'ERROR',
|
|
382
|
+
code: 'code',
|
|
383
|
+
message: 'message',
|
|
384
|
+
detail: 'details',
|
|
385
|
+
hint: 'hint',
|
|
386
|
+
position: '100',
|
|
387
|
+
internalPosition: '101',
|
|
388
|
+
internalQuery: 'query',
|
|
389
|
+
where: 'where',
|
|
390
|
+
file: 'file',
|
|
391
|
+
line: 'line',
|
|
392
|
+
routine: 'routine',
|
|
393
|
+
})
|
|
394
|
+
})
|
|
395
|
+
|
|
396
|
+
testForMessage(parseCompleteBuffer, {
|
|
397
|
+
name: 'parseComplete',
|
|
398
|
+
})
|
|
399
|
+
|
|
400
|
+
testForMessage(bindCompleteBuffer, {
|
|
401
|
+
name: 'bindComplete',
|
|
402
|
+
})
|
|
403
|
+
|
|
404
|
+
testForMessage(bindCompleteBuffer, {
|
|
405
|
+
name: 'bindComplete',
|
|
406
|
+
})
|
|
407
|
+
|
|
408
|
+
testForMessage(buffers.closeComplete(), {
|
|
409
|
+
name: 'closeComplete',
|
|
410
|
+
})
|
|
411
|
+
|
|
412
|
+
describe('parses portal suspended message', function () {
|
|
413
|
+
testForMessage(portalSuspendedBuffer, {
|
|
414
|
+
name: 'portalSuspended',
|
|
415
|
+
})
|
|
416
|
+
})
|
|
417
|
+
|
|
418
|
+
describe('parses replication start message', function () {
|
|
419
|
+
testForMessage(Buffer.from([0x57, 0x00, 0x00, 0x00, 0x04]), {
|
|
420
|
+
name: 'replicationStart',
|
|
421
|
+
length: 4,
|
|
422
|
+
})
|
|
423
|
+
})
|
|
424
|
+
|
|
425
|
+
describe('copy', () => {
|
|
426
|
+
testForMessage(buffers.copyIn(0), {
|
|
427
|
+
name: 'copyInResponse',
|
|
428
|
+
length: 7,
|
|
429
|
+
binary: false,
|
|
430
|
+
columnTypes: [],
|
|
431
|
+
})
|
|
432
|
+
|
|
433
|
+
testForMessage(buffers.copyIn(2), {
|
|
434
|
+
name: 'copyInResponse',
|
|
435
|
+
length: 11,
|
|
436
|
+
binary: false,
|
|
437
|
+
columnTypes: [0, 1],
|
|
438
|
+
})
|
|
439
|
+
|
|
440
|
+
testForMessage(buffers.copyOut(0), {
|
|
441
|
+
name: 'copyOutResponse',
|
|
442
|
+
length: 7,
|
|
443
|
+
binary: false,
|
|
444
|
+
columnTypes: [],
|
|
445
|
+
})
|
|
446
|
+
|
|
447
|
+
testForMessage(buffers.copyOut(3), {
|
|
448
|
+
name: 'copyOutResponse',
|
|
449
|
+
length: 13,
|
|
450
|
+
binary: false,
|
|
451
|
+
columnTypes: [0, 1, 2],
|
|
452
|
+
})
|
|
453
|
+
|
|
454
|
+
testForMessage(buffers.copyDone(), {
|
|
455
|
+
name: 'copyDone',
|
|
456
|
+
length: 4,
|
|
457
|
+
})
|
|
458
|
+
|
|
459
|
+
testForMessage(buffers.copyData(Buffer.from([5, 6, 7])), {
|
|
460
|
+
name: 'copyData',
|
|
461
|
+
length: 7,
|
|
462
|
+
chunk: Buffer.from([5, 6, 7]),
|
|
463
|
+
})
|
|
464
|
+
})
|
|
465
|
+
|
|
466
|
+
// since the data message on a stream can randomly divide the incomming
|
|
467
|
+
// tcp packets anywhere, we need to make sure we can parse every single
|
|
468
|
+
// split on a tcp message
|
|
469
|
+
describe('split buffer, single message parsing', function () {
|
|
470
|
+
const fullBuffer = buffers.dataRow([null, 'bang', 'zug zug', null, '!'])
|
|
471
|
+
|
|
472
|
+
it('parses when full buffer comes in', async function () {
|
|
473
|
+
const messages = await parseBuffers([fullBuffer])
|
|
474
|
+
const message = messages[0] as any
|
|
475
|
+
assert.equal(message.fields.length, 5)
|
|
476
|
+
assert.equal(message.fields[0], null)
|
|
477
|
+
assert.equal(message.fields[1], 'bang')
|
|
478
|
+
assert.equal(message.fields[2], 'zug zug')
|
|
479
|
+
assert.equal(message.fields[3], null)
|
|
480
|
+
assert.equal(message.fields[4], '!')
|
|
481
|
+
})
|
|
482
|
+
|
|
483
|
+
const testMessageReceivedAfterSplitAt = async function (split: number) {
|
|
484
|
+
const firstBuffer = Buffer.alloc(fullBuffer.length - split)
|
|
485
|
+
const secondBuffer = Buffer.alloc(fullBuffer.length - firstBuffer.length)
|
|
486
|
+
fullBuffer.copy(firstBuffer, 0, 0)
|
|
487
|
+
fullBuffer.copy(secondBuffer, 0, firstBuffer.length)
|
|
488
|
+
const messages = await parseBuffers([firstBuffer, secondBuffer])
|
|
489
|
+
const message = messages[0] as any
|
|
490
|
+
assert.equal(message.fields.length, 5)
|
|
491
|
+
assert.equal(message.fields[0], null)
|
|
492
|
+
assert.equal(message.fields[1], 'bang')
|
|
493
|
+
assert.equal(message.fields[2], 'zug zug')
|
|
494
|
+
assert.equal(message.fields[3], null)
|
|
495
|
+
assert.equal(message.fields[4], '!')
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
it('parses when split in the middle', function () {
|
|
499
|
+
return testMessageReceivedAfterSplitAt(6)
|
|
500
|
+
})
|
|
501
|
+
|
|
502
|
+
it('parses when split at end', function () {
|
|
503
|
+
return testMessageReceivedAfterSplitAt(2)
|
|
504
|
+
})
|
|
505
|
+
|
|
506
|
+
it('parses when split at beginning', function () {
|
|
507
|
+
return Promise.all([
|
|
508
|
+
testMessageReceivedAfterSplitAt(fullBuffer.length - 2),
|
|
509
|
+
testMessageReceivedAfterSplitAt(fullBuffer.length - 1),
|
|
510
|
+
testMessageReceivedAfterSplitAt(fullBuffer.length - 5),
|
|
511
|
+
])
|
|
512
|
+
})
|
|
513
|
+
})
|
|
514
|
+
|
|
515
|
+
describe('split buffer, multiple message parsing', function () {
|
|
516
|
+
const dataRowBuffer = buffers.dataRow(['!'])
|
|
517
|
+
const readyForQueryBuffer = buffers.readyForQuery()
|
|
518
|
+
const fullBuffer = Buffer.alloc(dataRowBuffer.length + readyForQueryBuffer.length)
|
|
519
|
+
dataRowBuffer.copy(fullBuffer, 0, 0)
|
|
520
|
+
readyForQueryBuffer.copy(fullBuffer, dataRowBuffer.length, 0)
|
|
521
|
+
|
|
522
|
+
const verifyMessages = function (messages: any[]) {
|
|
523
|
+
assert.strictEqual(messages.length, 2)
|
|
524
|
+
assert.deepEqual(messages[0], {
|
|
525
|
+
name: 'dataRow',
|
|
526
|
+
fieldCount: 1,
|
|
527
|
+
length: 11,
|
|
528
|
+
fields: ['!'],
|
|
529
|
+
})
|
|
530
|
+
assert.equal(messages[0].fields[0], '!')
|
|
531
|
+
assert.deepEqual(messages[1], {
|
|
532
|
+
name: 'readyForQuery',
|
|
533
|
+
length: 5,
|
|
534
|
+
status: 'I',
|
|
535
|
+
})
|
|
536
|
+
}
|
|
537
|
+
// sanity check
|
|
538
|
+
it('receives both messages when packet is not split', async function () {
|
|
539
|
+
const messages = await parseBuffers([fullBuffer])
|
|
540
|
+
verifyMessages(messages)
|
|
541
|
+
})
|
|
542
|
+
|
|
543
|
+
const splitAndVerifyTwoMessages = async function (split: number) {
|
|
544
|
+
const firstBuffer = Buffer.alloc(fullBuffer.length - split)
|
|
545
|
+
const secondBuffer = Buffer.alloc(fullBuffer.length - firstBuffer.length)
|
|
546
|
+
fullBuffer.copy(firstBuffer, 0, 0)
|
|
547
|
+
fullBuffer.copy(secondBuffer, 0, firstBuffer.length)
|
|
548
|
+
const messages = await parseBuffers([firstBuffer, secondBuffer])
|
|
549
|
+
verifyMessages(messages)
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
describe('receives both messages when packet is split', function () {
|
|
553
|
+
it('in the middle', function () {
|
|
554
|
+
return splitAndVerifyTwoMessages(11)
|
|
555
|
+
})
|
|
556
|
+
it('at the front', function () {
|
|
557
|
+
return Promise.all([
|
|
558
|
+
splitAndVerifyTwoMessages(fullBuffer.length - 1),
|
|
559
|
+
splitAndVerifyTwoMessages(fullBuffer.length - 4),
|
|
560
|
+
splitAndVerifyTwoMessages(fullBuffer.length - 6),
|
|
561
|
+
])
|
|
562
|
+
})
|
|
563
|
+
|
|
564
|
+
it('at the end', function () {
|
|
565
|
+
return Promise.all([splitAndVerifyTwoMessages(8), splitAndVerifyTwoMessages(1)])
|
|
566
|
+
})
|
|
567
|
+
})
|
|
568
|
+
})
|
|
569
|
+
|
|
570
|
+
it('cleans up the reader after handling a packet', function () {
|
|
571
|
+
const parser = new Parser()
|
|
572
|
+
parser.parse(oneFieldBuf, () => {})
|
|
573
|
+
assert.strictEqual((parser as any).reader.buffer.byteLength, 0)
|
|
574
|
+
})
|
|
575
|
+
})
|