decocms 2.304.0 → 2.304.2
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-BeiDn4Fp.js → AlertCircle-9O6VvAfH.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-hulNygQd.js → ArrowNarrowLeft-CG2ODQbf.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-lTwxwkJA.js → ArrowUpRight-C7hCAEbW.js} +1 -1
- package/dist/client/assets/{CheckCircle-3TB25Bcb.js → CheckCircle-BbvAf9Bo.js} +1 -1
- package/dist/client/assets/{ChevronDown-_b59faTm.js → ChevronDown-DTujp_Ze.js} +1 -1
- package/dist/client/assets/{ChevronRight-DEybByBs.js → ChevronRight-DmfKIycz.js} +1 -1
- package/dist/client/assets/{ChevronUp-B_td_jK6.js → ChevronUp-k_xkdO-G.js} +1 -1
- package/dist/client/assets/{Container-d8d36LPk.js → Container-Dwj81gCC.js} +1 -1
- package/dist/client/assets/{DotsVertical-9AuPT8gf.js → DotsVertical-BSgCnoHf.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BMrJcbl6.js → LinkExternal01-DceZ2oEY.js} +1 -1
- package/dist/client/assets/{Lock01-C5rgxGgu.js → Lock01-NMXz4ptn.js} +1 -1
- package/dist/client/assets/{Palette-DfnmIo6d.js → Palette-dLUnn7-k.js} +1 -1
- package/dist/client/assets/{Play-BGW505UY.js → Play-DBJO09gj.js} +1 -1
- package/dist/client/assets/{Plus-DlISHBLe.js → Plus-D5DLeNpq.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Dbq2QLAC.js → RefreshCcw01-B6WkaYVq.js} +1 -1
- package/dist/client/assets/{SearchMd-C8WDOhfc.js → SearchMd-CCDT-gCm.js} +1 -1
- package/dist/client/assets/{Settings02-BIpL5e3f.js → Settings02-CnaVYpiu.js} +1 -1
- package/dist/client/assets/{Shield01-DCoI7_zY.js → Shield01-Bqcf2bTH.js} +1 -1
- package/dist/client/assets/{Star01-Chns_B29.js → Star01-SeWnXAup.js} +1 -1
- package/dist/client/assets/{Sun-CgSsJ8OX.js → Sun-0NoCfqDs.js} +1 -1
- package/dist/client/assets/{Tool01-B8RjIhe4.js → Tool01-CNtQXBy4.js} +1 -1
- package/dist/client/assets/{Trash01-CFncShuD.js → Trash01-UTo49HDl.js} +1 -1
- package/dist/client/assets/{User01-Bq8r53VC.js → User01-CVlz7odd.js} +1 -1
- package/dist/client/assets/{Users03-qD8JWxak.js → Users03-X35A5ADD.js} +1 -1
- package/dist/client/assets/{X-BNOerUAB.js → X-CeTLIvc6.js} +1 -1
- package/dist/client/assets/{XCircle-B-JS14_e.js → XCircle-DtPL7zg0.js} +1 -1
- package/dist/client/assets/{XClose-vOlmnMjZ.js → XClose-C2Cy4nwy.js} +1 -1
- package/dist/client/assets/{Zap-BPHOFmqu.js → Zap-D1n1nJno.js} +1 -1
- package/dist/client/assets/{ZapSquare-CX9zqrxv.js → ZapSquare-Wt7N_ZY-.js} +1 -1
- package/dist/client/assets/{accordion-DIyksd99.js → accordion-DPxobU6V.js} +1 -1
- package/dist/client/assets/{agent-icon-CLQAOsUE.js → agent-icon-rfR6G8ak.js} +1 -1
- package/dist/client/assets/{agents-list-D0BQglaf.js → agents-list-CSAgVNG9.js} +1 -1
- package/dist/client/assets/ai-providers-BWpsfrqy.js +1 -0
- package/dist/client/assets/{alert-dialog-BWduFhy-.js → alert-dialog-FP3uTtqS.js} +1 -1
- package/dist/client/assets/{auth-catchall-D-v4q1Qx.js → auth-catchall-x57v3jqK.js} +1 -1
- package/dist/client/assets/{automation-list-row-DPkrb87t.js → automation-list-row-DG25MDBi.js} +1 -1
- package/dist/client/assets/{automations-BCzY9gmM.js → automations-Dvzmj3cQ.js} +1 -1
- package/dist/client/assets/{avatar-C6HNjGDg.js → avatar-jxKfgW3P.js} +1 -1
- package/dist/client/assets/{badge-CZCn9Wwi.js → badge-DSbZ2xYh.js} +1 -1
- package/dist/client/assets/{brand-context-DcqBJ41j.js → brand-context-BnZBvexH.js} +1 -1
- package/dist/client/assets/{card-oNblR0HO.js → card-DxIIO9TM.js} +1 -1
- package/dist/client/assets/{chat-context-RcvBJBC7.js → chat-context-BFu5v0t2.js} +1 -1
- package/dist/client/assets/{checkbox-JSEUVCMB.js → checkbox-BC2-36Db.js} +1 -1
- package/dist/client/assets/{collection-detail-C5pV1mWu.js → collection-detail-CD-QyUWU.js} +1 -1
- package/dist/client/assets/{collection-display-button-DQSPcJBz.js → collection-display-button-C_CtGElp.js} +1 -1
- package/dist/client/assets/{collection-search-CLoorkFj.js → collection-search-C4byKAjw.js} +1 -1
- package/dist/client/assets/{collection-search-DGO6_1o7.js → collection-search-D4u3PzGA.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-P7sXgSq0.js → collection-table-wrapper-C_-94CeK.js} +1 -1
- package/dist/client/assets/{collection-tabs-6c5Oz0MD.js → collection-tabs-gMfs6Afq.js} +1 -1
- package/dist/client/assets/{collections-CcBlrCx6.js → collections-D7GHHPCg.js} +1 -1
- package/dist/client/assets/{command-C666DFpg.js → command-rz34Ys0W.js} +1 -1
- package/dist/client/assets/{connection-card-DbGlMaON.js → connection-card-B9DKOCXt.js} +1 -1
- package/dist/client/assets/{connection-detail-DOFWK_LZ.js → connection-detail-DsF7Nr0a.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-S9iwzj4v.js → connection-form-helpers-Dr9CZ_1s.js} +1 -1
- package/dist/client/assets/{connections-DZgnlfnc.js → connections-C8H8V7wn.js} +1 -1
- package/dist/client/assets/{constants-B22iOAkD.js → constants-DzBa_pVv.js} +1 -1
- package/dist/client/assets/{constants-DRQ2x-Dp.js → constants-ZacFr8c8.js} +1 -1
- package/dist/client/assets/{dialog-ReVTOuxu.js → dialog-DJXnl186.js} +1 -1
- package/dist/client/assets/{domain-settings-_aY4XST2.js → domain-settings-B6gsJfGm.js} +1 -1
- package/dist/client/assets/{drawer-BYHJ-8Om.js → drawer-CKRLj2vr.js} +1 -1
- package/dist/client/assets/{dropdown-menu-y8iKrNsS.js → dropdown-menu-BxJLGp-F.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BxzD5223.js → dynamic-plugin-layout-EgA1-G6Q.js} +1 -1
- package/dist/client/assets/{empty-state-B4rhh1dc.js → empty-state-DP9kvNKh.js} +1 -1
- package/dist/client/assets/{empty-state-ByRM_QUo.js → empty-state-VyFb4d0_.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CbVt8VgN.js → extract-connection-data-DV87vwuC.js} +1 -1
- package/dist/client/assets/{features-BMKDqpeL.js → features-CKG88lyc.js} +1 -1
- package/dist/client/assets/{form-D8QDPjk9.js → form-Crn7uG02.js} +1 -1
- package/dist/client/assets/{general-WpQ82n-X.js → general-DN5VLZqF.js} +1 -1
- package/dist/client/assets/{index-D4IWA9IU.js → index-B3pJqV9Y.js} +2 -2
- package/dist/client/assets/{index-CgURykwj.js → index-B6JiqoZb.js} +1 -1
- package/dist/client/assets/index-B8vmm8Mh.js +1 -0
- package/dist/client/assets/{index-U5YmU8lc.js → index-BAGdGx2X.js} +1 -1
- package/dist/client/assets/{index-Bpod-O0_.js → index-BQYge0uD.js} +1 -1
- package/dist/client/assets/{index-BuLwXk3-.js → index-BUmhrApd.js} +15 -15
- package/dist/client/assets/{index-CPmmcxsi.js → index-Bw6Vawnl.js} +1 -1
- package/dist/client/assets/{index-BET8kMZe.js → index-C7apxcAd.js} +1 -1
- package/dist/client/assets/{index-CTWz6nN8.js → index-CD0IZENy.js} +1 -1
- package/dist/client/assets/{index-Bi-e-UKp.js → index-Cg6ppcFr.js} +1 -1
- package/dist/client/assets/{index-D9Q6YnJH.js → index-Crppsl-8.js} +1 -1
- package/dist/client/assets/{index-CeC26NPv.js → index-DMLydKBU.js} +1 -1
- package/dist/client/assets/{index-Cf5saV1q.js → index-DPV7Oao4.js} +1 -1
- package/dist/client/assets/{index-DXXI9MyH.js → index-DkUpgHdS.js} +1 -1
- package/dist/client/assets/{index-DBj2qw-o.js → index-Dql_sPLp.js} +1 -1
- package/dist/client/assets/{index-D8dvMQZl.js → index-vUSuyfsm.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-ClYEJj89.js → infiniteQueryObserver-FXpIkCb9.js} +1 -1
- package/dist/client/assets/{input-DhXllgVP.js → input-DylFJb_s.js} +1 -1
- package/dist/client/assets/{integration-icon-CNQIPioy.js → integration-icon-BrsREj94.js} +1 -1
- package/dist/client/assets/{label-BDcPRk17.js → label-BMcf8C3G.js} +1 -1
- package/dist/client/assets/{layout-DBK70FJ7.js → layout-Dp2Exmc7.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-Cosr7uB6.js → lean-canvas-recruit-modal-DrBzPrQ5.js} +1 -1
- package/dist/client/assets/{login-uRApKgz7.js → login-B4OITSYv.js} +1 -1
- package/dist/client/assets/{members-CgYS1Zxe.js → members-CyDwQ7ZL.js} +1 -1
- package/dist/client/assets/{monaco-editor-D34bkcWL.js → monaco-editor-CQLG9APn.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Rw8mxMr8.js → monitoring-stats-row-Mv3iWLF5.js} +1 -1
- package/dist/client/assets/{oauth-callback-DLWU7IjL.js → oauth-callback-D86cP5gF.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-5FDIcGBj.js → oauth-callback-ai-provider-B2xTvzHM.js} +1 -1
- package/dist/client/assets/{onboarding-jyaCV8uq.js → onboarding-BVoZJerk.js} +1 -1
- package/dist/client/assets/{org-layout-DxW3YApR.js → org-layout-DvQadC0N.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-B-uqLn5y.js → org-plugin-layout-CZcCVNv6.js} +1 -1
- package/dist/client/assets/{pair-CM7Z5dgt.js → pair-D0CyaFmX.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-C-o1hhqY.js → plugin-empty-state-BYazHRIg.js} +1 -1
- package/dist/client/assets/{plugin-header-BTFD2Tcj.js → plugin-header-BNYKRXC9.js} +1 -1
- package/dist/client/assets/{plugin-layout-BiJEtvKW.js → plugin-layout-BWoK3Wuc.js} +1 -1
- package/dist/client/assets/{popover-DQq9bf6V.js → popover-CUnDbgJ2.js} +1 -1
- package/dist/client/assets/{profile-PICkTEdT.js → profile-CzybNlff.js} +1 -1
- package/dist/client/assets/{project-app-view-B1QcPr4W.js → project-app-view-CJwFT9Ix.js} +1 -1
- package/dist/client/assets/registry-Dfum406p.js +2 -0
- package/dist/client/assets/{registry-layout-DGmSzwah.js → registry-layout-DRAqgrZS.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CfAoaltR.js → required-auth-layout-BqWuvVf2.js} +1 -1
- package/dist/client/assets/{reset-password-NMO08kVP.js → reset-password-kytluBmt.js} +1 -1
- package/dist/client/assets/{roles-CCaqodZQ.js → roles-Ds1RHbZR.js} +1 -1
- package/dist/client/assets/{scroll-area-AhoYMTSF.js → scroll-area-3cZxZboM.js} +1 -1
- package/dist/client/assets/{search-input-BSmmjMtR.js → search-input-BmVPc4RV.js} +1 -1
- package/dist/client/assets/{select-dTphD0ES.js → select-FyLwzc48.js} +1 -1
- package/dist/client/assets/{select-model-D2H_jWcd.js → select-model-67avCsXE.js} +1 -1
- package/dist/client/assets/{settings-layout-Bn3d6rRU.js → settings-layout-BqPzbZI_.js} +1 -1
- package/dist/client/assets/{settings-section-DkPpouMA.js → settings-section-XEp6UNJA.js} +1 -1
- package/dist/client/assets/{shell-layout-DLX5f9iI.js → shell-layout-BiL6-6W9.js} +1 -1
- package/dist/client/assets/{skeleton-DCMX-VkN.js → skeleton-BWYBZf7m.js} +1 -1
- package/dist/client/assets/{sso-BeQadTWm.js → sso-CuSDTfdG.js} +1 -1
- package/dist/client/assets/{store-D-lrayyv.js → store-CHGpyb-m.js} +1 -1
- package/dist/client/assets/store-registry-BtOOqHJ7.js +2 -0
- package/dist/client/assets/{switch-D9uEYoPa.js → switch-BL_ICveF.js} +1 -1
- package/dist/client/assets/{table-BIcJswmk.js → table-Cri7VAeb.js} +1 -1
- package/dist/client/assets/{tabs-Bbs5xG17.js → tabs-DGNL4gIl.js} +1 -1
- package/dist/client/assets/{task-status-1zFON5T4.js → task-status-BsVHYvla.js} +1 -1
- package/dist/client/assets/{textarea-BMU9fnHG.js → textarea-B1YgZKSW.js} +1 -1
- package/dist/client/assets/{toggle-group-juphd3c4.js → toggle-group-cD20__YI.js} +1 -1
- package/dist/client/assets/{tools-list-BP78dRI3.js → tools-list-B1QLvdRl.js} +1 -1
- package/dist/client/assets/{tooltip-B5FrLY14.js → tooltip-DZIo6YZX.js} +1 -1
- package/dist/client/assets/{types-DmM_J5U9.js → types-PzC3rVhv.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CVAGId9e.js → use-ai-providers-Dsmx4U8L.js} +1 -1
- package/dist/client/assets/{use-collections-DKWG5Tun.js → use-collections-DcamXjGg.js} +1 -1
- package/dist/client/assets/{use-connection-Dy5vq_5j.js → use-connection-CesZaYzK.js} +1 -1
- package/dist/client/assets/{use-copy-BSYEct5q.js → use-copy-Chq89Uhn.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-ifW0Pllw.js → use-create-virtual-mcp-B0T0urBu.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DVXCv4R8.js → use-decopilot-events-BCUB3DhH.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CRe3MUPe.js → use-delete-connection-CqpWV7PJ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-4DQHfv5o.js → use-infinite-scroll-D6FvdXof.js} +1 -1
- package/dist/client/assets/{use-list-state-CihFBhY3.js → use-list-state-D_NiaDpI.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Bog3rGRX.js → use-mcp-tools-oIEGFyCT.js} +1 -1
- package/dist/client/assets/{use-members-eWVl2b1I.js → use-members-C3jq0flu.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent--7ajKHhy.js → use-navigate-to-agent-DNFfIi8H.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C-BGwXKo.js → use-org-auth-client-BniQTMze.js} +1 -1
- package/dist/client/assets/{use-org-sso-2mlDJ8c4.js → use-org-sso-SjyAvOWA.js} +1 -1
- package/dist/client/assets/{use-organization-roles-PByiiFjp.js → use-organization-roles-CLHZHSel.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DngIHmBy.js → use-organization-settings-C8pMgrh-.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CDM-gpri.js → use-registry-connections-CPKTZHrX.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BzXaoVC8.js → use-status-sounds-BYyaVEdO.js} +1 -1
- package/dist/client/assets/{use-tasks-M1RmMNT7.js → use-tasks-D-yLjF43.js} +1 -1
- package/dist/client/assets/{use-view-mode-DRDlksJe.js → use-view-mode-C06qcP9p.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CDCK02Yj.js → use-virtual-mcp-CEUQCho1.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ANrroW8x.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CgFHp-eh.js +1 -0
- package/dist/client/assets/{user-WYGHhGxH.js → user-DlFqYjZ6.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CK1VLDTo.js → view-mode-toggle-CiYPbOW7.js} +1 -1
- package/dist/client/assets/{workflow-DkcKupEW.js → workflow-CYF9ayPN.js} +1 -1
- package/dist/client/assets/workflow-detail-DVsv_zWc.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +387 -387
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/dist/server/node_modules/get-east-asian-width/index.js +30 -0
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +18 -0
- package/dist/server/node_modules/get-east-asian-width/lookup.js +135 -0
- package/dist/server/node_modules/get-east-asian-width/package.json +71 -0
- package/dist/server/node_modules/get-east-asian-width/readme.md +65 -0
- package/dist/server/node_modules/get-east-asian-width/utilities.js +24 -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/{slice-ansi → is-unicode-supported}/license +0 -1
- 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/pg/README.md +95 -0
- package/dist/server/node_modules/pg/esm/index.mjs +20 -0
- package/dist/server/node_modules/pg/lib/client.js +743 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
- package/dist/server/node_modules/pg/lib/connection.js +221 -0
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +91 -0
- package/dist/server/node_modules/pg/lib/index.js +73 -0
- package/dist/server/node_modules/pg/lib/native/client.js +323 -0
- package/dist/server/node_modules/pg/lib/native/index.js +2 -0
- package/dist/server/node_modules/pg/lib/native/query.js +165 -0
- package/dist/server/node_modules/pg/lib/query.js +252 -0
- package/dist/server/node_modules/pg/lib/result.js +109 -0
- package/dist/server/node_modules/pg/lib/stream.js +83 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +217 -0
- package/dist/server/node_modules/pg/package.json +76 -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/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/strip-ansi/index.d.ts +15 -0
- package/dist/server/node_modules/strip-ansi/index.js +19 -0
- package/dist/server/node_modules/strip-ansi/license +9 -0
- package/dist/server/node_modules/{ansi-regex → strip-ansi}/package.json +18 -20
- package/dist/server/node_modules/strip-ansi/readme.md +37 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-BnclkXxt.js +0 -1
- package/dist/client/assets/index-BB2bR64l.js +0 -1
- package/dist/client/assets/registry-Dr9Q687k.js +0 -2
- package/dist/client/assets/store-registry-dKQp57q_.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DtJBa4_2.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-G-zitmER.js +0 -1
- package/dist/client/assets/workflow-detail-BtHvU2Pd.js +0 -1
- package/dist/server/node_modules/ansi-regex/index.d.ts +0 -33
- package/dist/server/node_modules/ansi-regex/index.js +0 -14
- package/dist/server/node_modules/ansi-regex/readme.md +0 -66
- package/dist/server/node_modules/convert-to-spaces/dist/index.d.ts +0 -2
- package/dist/server/node_modules/convert-to-spaces/dist/index.js +0 -4
- package/dist/server/node_modules/convert-to-spaces/license +0 -21
- package/dist/server/node_modules/convert-to-spaces/package.json +0 -40
- package/dist/server/node_modules/convert-to-spaces/readme.md +0 -39
- package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/dist/server/node_modules/emoji-regex/README.md +0 -107
- package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
- package/dist/server/node_modules/emoji-regex/index.js +0 -4
- package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
- package/dist/server/node_modules/emoji-regex/package.json +0 -45
- package/dist/server/node_modules/pg-cloudflare/README.md +0 -112
- package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +0 -2
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js +0 -6
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +0 -1
- package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +0 -31
- package/dist/server/node_modules/pg-cloudflare/dist/index.js +0 -152
- package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +0 -1
- package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +0 -3
- package/dist/server/node_modules/pg-cloudflare/package.json +0 -39
- package/dist/server/node_modules/pg-cloudflare/src/empty.ts +0 -3
- package/dist/server/node_modules/pg-cloudflare/src/index.ts +0 -166
- package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +0 -25
- package/dist/server/node_modules/pg-connection-string/LICENSE +0 -21
- package/dist/server/node_modules/pg-connection-string/README.md +0 -105
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +0 -8
- package/dist/server/node_modules/pg-connection-string/index.d.ts +0 -36
- package/dist/server/node_modules/pg-connection-string/index.js +0 -231
- package/dist/server/node_modules/pg-connection-string/package.json +0 -52
- package/dist/server/node_modules/pg-int8/LICENSE +0 -13
- package/dist/server/node_modules/pg-int8/README.md +0 -16
- package/dist/server/node_modules/pg-int8/index.js +0 -100
- package/dist/server/node_modules/pg-int8/package.json +0 -24
- package/dist/server/node_modules/pg-protocol/LICENSE +0 -21
- package/dist/server/node_modules/pg-protocol/README.md +0 -3
- package/dist/server/node_modules/pg-protocol/dist/b.d.ts +0 -1
- package/dist/server/node_modules/pg-protocol/dist/b.js +0 -23
- package/dist/server/node_modules/pg-protocol/dist/b.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +0 -15
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +0 -55
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +0 -16
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +0 -81
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +0 -1
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +0 -530
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/index.d.ts +0 -6
- package/dist/server/node_modules/pg-protocol/dist/index.js +0 -15
- package/dist/server/node_modules/pg-protocol/dist/index.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +0 -162
- package/dist/server/node_modules/pg-protocol/dist/messages.js +0 -160
- package/dist/server/node_modules/pg-protocol/dist/messages.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +0 -1
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +0 -252
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +0 -24
- package/dist/server/node_modules/pg-protocol/dist/parser.js +0 -324
- package/dist/server/node_modules/pg-protocol/dist/parser.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +0 -42
- package/dist/server/node_modules/pg-protocol/dist/serializer.js +0 -189
- package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/esm/index.js +0 -11
- package/dist/server/node_modules/pg-protocol/package.json +0 -45
- package/dist/server/node_modules/pg-protocol/src/b.ts +0 -25
- package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +0 -58
- package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +0 -85
- package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +0 -575
- package/dist/server/node_modules/pg-protocol/src/index.ts +0 -11
- package/dist/server/node_modules/pg-protocol/src/messages.ts +0 -262
- package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +0 -276
- package/dist/server/node_modules/pg-protocol/src/parser.ts +0 -413
- package/dist/server/node_modules/pg-protocol/src/serializer.ts +0 -274
- package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +0 -67
- package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +0 -166
- package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +0 -1
- package/dist/server/node_modules/pg-types/.travis.yml +0 -7
- package/dist/server/node_modules/pg-types/Makefile +0 -14
- package/dist/server/node_modules/pg-types/README.md +0 -75
- package/dist/server/node_modules/pg-types/index.d.ts +0 -137
- package/dist/server/node_modules/pg-types/index.js +0 -47
- package/dist/server/node_modules/pg-types/index.test-d.ts +0 -21
- package/dist/server/node_modules/pg-types/lib/arrayParser.js +0 -11
- package/dist/server/node_modules/pg-types/lib/binaryParsers.js +0 -257
- package/dist/server/node_modules/pg-types/lib/builtins.js +0 -73
- package/dist/server/node_modules/pg-types/lib/textParsers.js +0 -215
- package/dist/server/node_modules/pg-types/package.json +0 -42
- package/dist/server/node_modules/pg-types/test/index.js +0 -24
- package/dist/server/node_modules/pg-types/test/types.js +0 -597
- package/dist/server/node_modules/pgpass/README.md +0 -74
- package/dist/server/node_modules/pgpass/lib/helper.js +0 -233
- package/dist/server/node_modules/pgpass/lib/index.js +0 -23
- package/dist/server/node_modules/pgpass/package.json +0 -41
- package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
- package/dist/server/node_modules/postgres-array/index.js +0 -97
- package/dist/server/node_modules/postgres-array/license +0 -21
- package/dist/server/node_modules/postgres-array/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/license +0 -21
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/license +0 -21
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/license +0 -21
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- package/dist/server/node_modules/slice-ansi/index.d.ts +0 -19
- package/dist/server/node_modules/slice-ansi/index.js +0 -260
- package/dist/server/node_modules/slice-ansi/package.json +0 -59
- package/dist/server/node_modules/slice-ansi/readme.md +0 -54
- package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +0 -752
- package/dist/server/node_modules/split2/LICENSE +0 -13
- package/dist/server/node_modules/split2/README.md +0 -85
- package/dist/server/node_modules/split2/bench.js +0 -27
- package/dist/server/node_modules/split2/index.js +0 -141
- package/dist/server/node_modules/split2/package.json +0 -39
- package/dist/server/node_modules/split2/test.js +0 -409
- /package/dist/server/node_modules/{ansi-regex → get-east-asian-width}/license +0 -0
- /package/dist/server/node_modules/{pg-cloudflare → pg}/LICENSE +0 -0
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="node" />
|
|
4
|
-
import { TlsOptions } from 'cloudflare:sockets';
|
|
5
|
-
import { EventEmitter } from 'events';
|
|
6
|
-
/**
|
|
7
|
-
* Wrapper around the Cloudflare built-in socket that can be used by the `Connection`.
|
|
8
|
-
*/
|
|
9
|
-
export declare class CloudflareSocket extends EventEmitter {
|
|
10
|
-
readonly ssl: boolean;
|
|
11
|
-
writable: boolean;
|
|
12
|
-
destroyed: boolean;
|
|
13
|
-
private _upgrading;
|
|
14
|
-
private _upgraded;
|
|
15
|
-
private _cfSocket;
|
|
16
|
-
private _cfWriter;
|
|
17
|
-
private _cfReader;
|
|
18
|
-
constructor(ssl: boolean);
|
|
19
|
-
setNoDelay(): this;
|
|
20
|
-
setKeepAlive(): this;
|
|
21
|
-
ref(): this;
|
|
22
|
-
unref(): this;
|
|
23
|
-
connect(port: number, host: string, connectListener?: (...args: unknown[]) => void): Promise<this | undefined>;
|
|
24
|
-
_listen(): Promise<void>;
|
|
25
|
-
_listenOnce(): Promise<void>;
|
|
26
|
-
write(data: Uint8Array | string, encoding?: BufferEncoding, callback?: (...args: unknown[]) => void): true | void;
|
|
27
|
-
end(data?: Buffer, encoding?: BufferEncoding, callback?: (...args: unknown[]) => void): this;
|
|
28
|
-
destroy(reason: string): this;
|
|
29
|
-
startTls(options: TlsOptions): void;
|
|
30
|
-
_addClosedHandler(): void;
|
|
31
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CloudflareSocket = void 0;
|
|
4
|
-
const events_1 = require("events");
|
|
5
|
-
/**
|
|
6
|
-
* Wrapper around the Cloudflare built-in socket that can be used by the `Connection`.
|
|
7
|
-
*/
|
|
8
|
-
class CloudflareSocket extends events_1.EventEmitter {
|
|
9
|
-
constructor(ssl) {
|
|
10
|
-
super();
|
|
11
|
-
this.ssl = ssl;
|
|
12
|
-
this.writable = false;
|
|
13
|
-
this.destroyed = false;
|
|
14
|
-
this._upgrading = false;
|
|
15
|
-
this._upgraded = false;
|
|
16
|
-
this._cfSocket = null;
|
|
17
|
-
this._cfWriter = null;
|
|
18
|
-
this._cfReader = null;
|
|
19
|
-
}
|
|
20
|
-
setNoDelay() {
|
|
21
|
-
return this;
|
|
22
|
-
}
|
|
23
|
-
setKeepAlive() {
|
|
24
|
-
return this;
|
|
25
|
-
}
|
|
26
|
-
ref() {
|
|
27
|
-
return this;
|
|
28
|
-
}
|
|
29
|
-
unref() {
|
|
30
|
-
return this;
|
|
31
|
-
}
|
|
32
|
-
async connect(port, host, connectListener) {
|
|
33
|
-
try {
|
|
34
|
-
log('connecting');
|
|
35
|
-
if (connectListener)
|
|
36
|
-
this.once('connect', connectListener);
|
|
37
|
-
const options = this.ssl ? { secureTransport: 'starttls' } : {};
|
|
38
|
-
const mod = await import('cloudflare:sockets');
|
|
39
|
-
const connect = mod.connect;
|
|
40
|
-
this._cfSocket = connect(`${host}:${port}`, options);
|
|
41
|
-
this._cfWriter = this._cfSocket.writable.getWriter();
|
|
42
|
-
this._addClosedHandler();
|
|
43
|
-
this._cfReader = this._cfSocket.readable.getReader();
|
|
44
|
-
if (this.ssl) {
|
|
45
|
-
this._listenOnce().catch((e) => this.emit('error', e));
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
this._listen().catch((e) => this.emit('error', e));
|
|
49
|
-
}
|
|
50
|
-
await this._cfWriter.ready;
|
|
51
|
-
log('socket ready');
|
|
52
|
-
this.writable = true;
|
|
53
|
-
this.emit('connect');
|
|
54
|
-
return this;
|
|
55
|
-
}
|
|
56
|
-
catch (e) {
|
|
57
|
-
this.emit('error', e);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
async _listen() {
|
|
61
|
-
// eslint-disable-next-line no-constant-condition
|
|
62
|
-
while (true) {
|
|
63
|
-
log('awaiting receive from CF socket');
|
|
64
|
-
const { done, value } = await this._cfReader.read();
|
|
65
|
-
log('CF socket received:', done, value);
|
|
66
|
-
if (done) {
|
|
67
|
-
log('done');
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
this.emit('data', Buffer.from(value));
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
async _listenOnce() {
|
|
74
|
-
log('awaiting first receive from CF socket');
|
|
75
|
-
const { done, value } = await this._cfReader.read();
|
|
76
|
-
log('First CF socket received:', done, value);
|
|
77
|
-
this.emit('data', Buffer.from(value));
|
|
78
|
-
}
|
|
79
|
-
write(data, encoding = 'utf8', callback = () => { }) {
|
|
80
|
-
if (data.length === 0)
|
|
81
|
-
return callback();
|
|
82
|
-
if (typeof data === 'string')
|
|
83
|
-
data = Buffer.from(data, encoding);
|
|
84
|
-
log('sending data direct:', data);
|
|
85
|
-
this._cfWriter.write(data).then(() => {
|
|
86
|
-
log('data sent');
|
|
87
|
-
callback();
|
|
88
|
-
}, (err) => {
|
|
89
|
-
log('send error', err);
|
|
90
|
-
callback(err);
|
|
91
|
-
});
|
|
92
|
-
return true;
|
|
93
|
-
}
|
|
94
|
-
end(data = Buffer.alloc(0), encoding = 'utf8', callback = () => { }) {
|
|
95
|
-
log('ending CF socket');
|
|
96
|
-
this.write(data, encoding, (err) => {
|
|
97
|
-
this._cfSocket.close();
|
|
98
|
-
if (callback)
|
|
99
|
-
callback(err);
|
|
100
|
-
});
|
|
101
|
-
return this;
|
|
102
|
-
}
|
|
103
|
-
destroy(reason) {
|
|
104
|
-
log('destroying CF socket', reason);
|
|
105
|
-
this.destroyed = true;
|
|
106
|
-
return this.end();
|
|
107
|
-
}
|
|
108
|
-
startTls(options) {
|
|
109
|
-
if (this._upgraded) {
|
|
110
|
-
// Don't try to upgrade again.
|
|
111
|
-
this.emit('error', 'Cannot call `startTls()` more than once on a socket');
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
this._cfWriter.releaseLock();
|
|
115
|
-
this._cfReader.releaseLock();
|
|
116
|
-
this._upgrading = true;
|
|
117
|
-
this._cfSocket = this._cfSocket.startTls(options);
|
|
118
|
-
this._cfWriter = this._cfSocket.writable.getWriter();
|
|
119
|
-
this._cfReader = this._cfSocket.readable.getReader();
|
|
120
|
-
this._addClosedHandler();
|
|
121
|
-
this._listen().catch((e) => this.emit('error', e));
|
|
122
|
-
}
|
|
123
|
-
_addClosedHandler() {
|
|
124
|
-
this._cfSocket.closed.then(() => {
|
|
125
|
-
if (!this._upgrading) {
|
|
126
|
-
log('CF socket closed');
|
|
127
|
-
this._cfSocket = null;
|
|
128
|
-
this.emit('close');
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
this._upgrading = false;
|
|
132
|
-
this._upgraded = true;
|
|
133
|
-
}
|
|
134
|
-
}).catch((e) => this.emit('error', e));
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
exports.CloudflareSocket = CloudflareSocket;
|
|
138
|
-
const debug = false;
|
|
139
|
-
function dump(data) {
|
|
140
|
-
if (data instanceof Uint8Array || data instanceof ArrayBuffer) {
|
|
141
|
-
const hex = Buffer.from(data).toString('hex');
|
|
142
|
-
const str = new TextDecoder().decode(data);
|
|
143
|
-
return `\n>>> STR: "${str.replace(/\n/g, '\\n')}"\n>>> HEX: ${hex}\n`;
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
return data;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
function log(...args) {
|
|
150
|
-
debug && console.log(...args.map(dump));
|
|
151
|
-
}
|
|
152
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,mCAAqC;AAErC;;GAEG;AACH,MAAa,gBAAiB,SAAQ,qBAAY;IAUhD,YAAqB,GAAY;QAC/B,KAAK,EAAE,CAAA;QADY,QAAG,GAAH,GAAG,CAAS;QATjC,aAAQ,GAAG,KAAK,CAAA;QAChB,cAAS,GAAG,KAAK,CAAA;QAET,eAAU,GAAG,KAAK,CAAA;QAClB,cAAS,GAAG,KAAK,CAAA;QACjB,cAAS,GAAkB,IAAI,CAAA;QAC/B,cAAS,GAAuC,IAAI,CAAA;QACpD,cAAS,GAAuC,IAAI,CAAA;IAI5D,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAA;IACb,CAAC;IACD,YAAY;QACV,OAAO,IAAI,CAAA;IACb,CAAC;IACD,GAAG;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IACD,KAAK;QACH,OAAO,IAAI,CAAA;IACb,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,IAAY,EAAE,IAAY,EAAE,eAA8C;QACtF,IAAI;YACF,GAAG,CAAC,YAAY,CAAC,CAAA;YACjB,IAAI,eAAe;gBAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;YAE1D,MAAM,OAAO,GAAkB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,eAAe,EAA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,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pg-cloudflare",
|
|
3
|
-
"version": "1.3.0",
|
|
4
|
-
"description": "A socket implementation that can run on Cloudflare Workers using native TCP connections.",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"devDependencies": {
|
|
9
|
-
"ts-node": "^8.5.4",
|
|
10
|
-
"typescript": "^4.0.3"
|
|
11
|
-
},
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"workerd": {
|
|
15
|
-
"import": "./esm/index.mjs",
|
|
16
|
-
"require": "./dist/index.js"
|
|
17
|
-
},
|
|
18
|
-
"default": "./dist/empty.js"
|
|
19
|
-
},
|
|
20
|
-
"./package.json": "./package.json"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build": "tsc",
|
|
24
|
-
"build:watch": "tsc --watch",
|
|
25
|
-
"prepublish": "yarn build",
|
|
26
|
-
"test": "echo e2e test in pg package"
|
|
27
|
-
},
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "git://github.com/brianc/node-postgres.git",
|
|
31
|
-
"directory": "packages/pg-cloudflare"
|
|
32
|
-
},
|
|
33
|
-
"files": [
|
|
34
|
-
"/dist/*{js,ts,map}",
|
|
35
|
-
"/src",
|
|
36
|
-
"/esm"
|
|
37
|
-
],
|
|
38
|
-
"gitHead": "d10e09c888f94abf77382aba6f353ca665a1cf09"
|
|
39
|
-
}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { SocketOptions, Socket, TlsOptions } from 'cloudflare:sockets'
|
|
2
|
-
import { EventEmitter } from 'events'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Wrapper around the Cloudflare built-in socket that can be used by the `Connection`.
|
|
6
|
-
*/
|
|
7
|
-
export class CloudflareSocket extends EventEmitter {
|
|
8
|
-
writable = false
|
|
9
|
-
destroyed = false
|
|
10
|
-
|
|
11
|
-
private _upgrading = false
|
|
12
|
-
private _upgraded = false
|
|
13
|
-
private _cfSocket: Socket | null = null
|
|
14
|
-
private _cfWriter: WritableStreamDefaultWriter | null = null
|
|
15
|
-
private _cfReader: ReadableStreamDefaultReader | null = null
|
|
16
|
-
|
|
17
|
-
constructor(readonly ssl: boolean) {
|
|
18
|
-
super()
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
setNoDelay() {
|
|
22
|
-
return this
|
|
23
|
-
}
|
|
24
|
-
setKeepAlive() {
|
|
25
|
-
return this
|
|
26
|
-
}
|
|
27
|
-
ref() {
|
|
28
|
-
return this
|
|
29
|
-
}
|
|
30
|
-
unref() {
|
|
31
|
-
return this
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
async connect(port: number, host: string, connectListener?: (...args: unknown[]) => void) {
|
|
35
|
-
try {
|
|
36
|
-
log('connecting')
|
|
37
|
-
if (connectListener) this.once('connect', connectListener)
|
|
38
|
-
|
|
39
|
-
const options: SocketOptions = this.ssl ? { secureTransport: 'starttls' } : {}
|
|
40
|
-
const mod = await import('cloudflare:sockets')
|
|
41
|
-
const connect = mod.connect
|
|
42
|
-
this._cfSocket = connect(`${host}:${port}`, options)
|
|
43
|
-
this._cfWriter = this._cfSocket.writable.getWriter()
|
|
44
|
-
this._addClosedHandler()
|
|
45
|
-
|
|
46
|
-
this._cfReader = this._cfSocket.readable.getReader()
|
|
47
|
-
if (this.ssl) {
|
|
48
|
-
this._listenOnce().catch((e) => this.emit('error', e))
|
|
49
|
-
} else {
|
|
50
|
-
this._listen().catch((e) => this.emit('error', e))
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
await this._cfWriter!.ready
|
|
54
|
-
log('socket ready')
|
|
55
|
-
this.writable = true
|
|
56
|
-
this.emit('connect')
|
|
57
|
-
|
|
58
|
-
return this
|
|
59
|
-
} catch (e) {
|
|
60
|
-
this.emit('error', e)
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
async _listen() {
|
|
65
|
-
// eslint-disable-next-line no-constant-condition
|
|
66
|
-
while (true) {
|
|
67
|
-
log('awaiting receive from CF socket')
|
|
68
|
-
const { done, value } = await this._cfReader!.read()
|
|
69
|
-
log('CF socket received:', done, value)
|
|
70
|
-
if (done) {
|
|
71
|
-
log('done')
|
|
72
|
-
break
|
|
73
|
-
}
|
|
74
|
-
this.emit('data', Buffer.from(value))
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
async _listenOnce() {
|
|
79
|
-
log('awaiting first receive from CF socket')
|
|
80
|
-
const { done, value } = await this._cfReader!.read()
|
|
81
|
-
log('First CF socket received:', done, value)
|
|
82
|
-
this.emit('data', Buffer.from(value))
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
write(
|
|
86
|
-
data: Uint8Array | string,
|
|
87
|
-
encoding: BufferEncoding = 'utf8',
|
|
88
|
-
callback: (...args: unknown[]) => void = () => {}
|
|
89
|
-
) {
|
|
90
|
-
if (data.length === 0) return callback()
|
|
91
|
-
if (typeof data === 'string') data = Buffer.from(data, encoding)
|
|
92
|
-
|
|
93
|
-
log('sending data direct:', data)
|
|
94
|
-
this._cfWriter!.write(data).then(
|
|
95
|
-
() => {
|
|
96
|
-
log('data sent')
|
|
97
|
-
callback()
|
|
98
|
-
},
|
|
99
|
-
(err) => {
|
|
100
|
-
log('send error', err)
|
|
101
|
-
callback(err)
|
|
102
|
-
}
|
|
103
|
-
)
|
|
104
|
-
return true
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
end(data = Buffer.alloc(0), encoding: BufferEncoding = 'utf8', callback: (...args: unknown[]) => void = () => {}) {
|
|
108
|
-
log('ending CF socket')
|
|
109
|
-
this.write(data, encoding, (err) => {
|
|
110
|
-
this._cfSocket!.close()
|
|
111
|
-
if (callback) callback(err)
|
|
112
|
-
})
|
|
113
|
-
return this
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
destroy(reason: string) {
|
|
117
|
-
log('destroying CF socket', reason)
|
|
118
|
-
this.destroyed = true
|
|
119
|
-
return this.end()
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
startTls(options: TlsOptions) {
|
|
123
|
-
if (this._upgraded) {
|
|
124
|
-
// Don't try to upgrade again.
|
|
125
|
-
this.emit('error', 'Cannot call `startTls()` more than once on a socket')
|
|
126
|
-
return
|
|
127
|
-
}
|
|
128
|
-
this._cfWriter!.releaseLock()
|
|
129
|
-
this._cfReader!.releaseLock()
|
|
130
|
-
this._upgrading = true
|
|
131
|
-
this._cfSocket = this._cfSocket!.startTls(options)
|
|
132
|
-
this._cfWriter = this._cfSocket.writable.getWriter()
|
|
133
|
-
this._cfReader = this._cfSocket.readable.getReader()
|
|
134
|
-
this._addClosedHandler()
|
|
135
|
-
this._listen().catch((e) => this.emit('error', e))
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
_addClosedHandler() {
|
|
139
|
-
this._cfSocket!.closed.then(() => {
|
|
140
|
-
if (!this._upgrading) {
|
|
141
|
-
log('CF socket closed')
|
|
142
|
-
this._cfSocket = null
|
|
143
|
-
this.emit('close')
|
|
144
|
-
} else {
|
|
145
|
-
this._upgrading = false
|
|
146
|
-
this._upgraded = true
|
|
147
|
-
}
|
|
148
|
-
}).catch((e) => this.emit('error', e))
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
const debug = false
|
|
153
|
-
|
|
154
|
-
function dump(data: unknown) {
|
|
155
|
-
if (data instanceof Uint8Array || data instanceof ArrayBuffer) {
|
|
156
|
-
const hex = Buffer.from(data).toString('hex')
|
|
157
|
-
const str = new TextDecoder().decode(data)
|
|
158
|
-
return `\n>>> STR: "${str.replace(/\n/g, '\\n')}"\n>>> HEX: ${hex}\n`
|
|
159
|
-
} else {
|
|
160
|
-
return data
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function log(...args: unknown[]) {
|
|
165
|
-
debug && console.log(...args.map(dump))
|
|
166
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare module 'cloudflare:sockets' {
|
|
2
|
-
export class Socket {
|
|
3
|
-
public readonly readable: any
|
|
4
|
-
public readonly writable: any
|
|
5
|
-
public readonly closed: Promise<void>
|
|
6
|
-
public close(): Promise<void>
|
|
7
|
-
public startTls(options: TlsOptions): Socket
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type TlsOptions = {
|
|
11
|
-
expectedServerHostname?: string
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type SocketAddress = {
|
|
15
|
-
hostname: string
|
|
16
|
-
port: number
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export type SocketOptions = {
|
|
20
|
-
secureTransport?: 'off' | 'on' | 'starttls'
|
|
21
|
-
allowHalfOpen?: boolean
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export function connect(address: string | SocketAddress, options?: SocketOptions): Socket
|
|
25
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2014 Iced Development
|
|
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 all
|
|
13
|
-
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 THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
pg-connection-string
|
|
2
|
-
====================
|
|
3
|
-
|
|
4
|
-
[](https://nodei.co/npm/pg-connection-string/)
|
|
5
|
-
|
|
6
|
-
Functions for dealing with a PostgresSQL connection string
|
|
7
|
-
|
|
8
|
-
`parse` method taken from [node-postgres](https://github.com/brianc/node-postgres.git)
|
|
9
|
-
Copyright (c) 2010-2014 Brian Carlson (brian.m.carlson@gmail.com)
|
|
10
|
-
MIT License
|
|
11
|
-
|
|
12
|
-
## Usage
|
|
13
|
-
|
|
14
|
-
```js
|
|
15
|
-
const parse = require('pg-connection-string').parse;
|
|
16
|
-
|
|
17
|
-
const config = parse('postgres://someuser:somepassword@somehost:381/somedatabase')
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
The resulting config contains a subset of the following properties:
|
|
21
|
-
|
|
22
|
-
* `user` - User with which to authenticate to the server
|
|
23
|
-
* `password` - Corresponding password
|
|
24
|
-
* `host` - Postgres server hostname or, for UNIX domain sockets, the socket filename
|
|
25
|
-
* `port` - port on which to connect
|
|
26
|
-
* `database` - Database name within the server
|
|
27
|
-
* `client_encoding` - string encoding the client will use
|
|
28
|
-
* `ssl`, either a boolean or an object with properties
|
|
29
|
-
* `rejectUnauthorized`
|
|
30
|
-
* `cert`
|
|
31
|
-
* `key`
|
|
32
|
-
* `ca`
|
|
33
|
-
* any other query parameters (for example, `application_name`) are preserved intact.
|
|
34
|
-
|
|
35
|
-
### ClientConfig Compatibility for TypeScript
|
|
36
|
-
|
|
37
|
-
The pg-connection-string `ConnectionOptions` interface is not compatible with the `ClientConfig` interface that [pg.Client](https://node-postgres.com/apis/client) expects. To remedy this, use the `parseIntoClientConfig` function instead of `parse`:
|
|
38
|
-
|
|
39
|
-
```ts
|
|
40
|
-
import { ClientConfig } from 'pg';
|
|
41
|
-
import { parseIntoClientConfig } from 'pg-connection-string';
|
|
42
|
-
|
|
43
|
-
const config: ClientConfig = parseIntoClientConfig('postgres://someuser:somepassword@somehost:381/somedatabase')
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
You can also use `toClientConfig` to convert an existing `ConnectionOptions` interface into a `ClientConfig` interface:
|
|
47
|
-
|
|
48
|
-
```ts
|
|
49
|
-
import { ClientConfig } from 'pg';
|
|
50
|
-
import { parse, toClientConfig } from 'pg-connection-string';
|
|
51
|
-
|
|
52
|
-
const config = parse('postgres://someuser:somepassword@somehost:381/somedatabase')
|
|
53
|
-
const clientConfig: ClientConfig = toClientConfig(config)
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Connection Strings
|
|
57
|
-
|
|
58
|
-
The short summary of acceptable URLs is:
|
|
59
|
-
|
|
60
|
-
* `socket:<path>?<query>` - UNIX domain socket
|
|
61
|
-
* `postgres://<user>:<password>@<host>:<port>/<database>?<query>` - TCP connection
|
|
62
|
-
|
|
63
|
-
But see below for more details.
|
|
64
|
-
|
|
65
|
-
### UNIX Domain Sockets
|
|
66
|
-
|
|
67
|
-
When user and password are not given, the socket path follows `socket:`, as in `socket:/var/run/pgsql`.
|
|
68
|
-
This form can be shortened to just a path: `/var/run/pgsql`.
|
|
69
|
-
|
|
70
|
-
When user and password are given, they are included in the typical URL positions, with an empty `host`, as in `socket://user:pass@/var/run/pgsql`.
|
|
71
|
-
|
|
72
|
-
Query parameters follow a `?` character, including the following special query parameters:
|
|
73
|
-
|
|
74
|
-
* `db=<database>` - sets the database name (urlencoded)
|
|
75
|
-
* `encoding=<encoding>` - sets the `client_encoding` property
|
|
76
|
-
|
|
77
|
-
### TCP Connections
|
|
78
|
-
|
|
79
|
-
TCP connections to the Postgres server are indicated with `pg:` or `postgres:` schemes (in fact, any scheme but `socket:` is accepted).
|
|
80
|
-
If username and password are included, they should be urlencoded.
|
|
81
|
-
The database name, however, should *not* be urlencoded.
|
|
82
|
-
|
|
83
|
-
Query parameters follow a `?` character, including the following special query parameters:
|
|
84
|
-
* `host=<host>` - sets `host` property, overriding the URL's host
|
|
85
|
-
* `encoding=<encoding>` - sets the `client_encoding` property
|
|
86
|
-
* `ssl=1`, `ssl=true`, `ssl=0`, `ssl=false` - sets `ssl` to true or false, accordingly
|
|
87
|
-
* `uselibpqcompat=true` - use libpq semantics
|
|
88
|
-
* `sslmode=<sslmode>` when `uselibpqcompat=true` is not set
|
|
89
|
-
* `sslmode=disable` - sets `ssl` to false
|
|
90
|
-
* `sslmode=no-verify` - sets `ssl` to `{ rejectUnauthorized: false }`
|
|
91
|
-
* `sslmode=prefer`, `sslmode=require`, `sslmode=verify-ca`, `sslmode=verify-full` - sets `ssl` to true
|
|
92
|
-
* `sslmode=<sslmode>` when `uselibpqcompat=true`
|
|
93
|
-
* `sslmode=disable` - sets `ssl` to false
|
|
94
|
-
* `sslmode=prefer` - sets `ssl` to `{ rejectUnauthorized: false }`
|
|
95
|
-
* `sslmode=require` - sets `ssl` to `{ rejectUnauthorized: false }` unless `sslrootcert` is specified, in which case it behaves like `verify-ca`
|
|
96
|
-
* `sslmode=verify-ca` - sets `ssl` to `{ checkServerIdentity: no-op }` (verify CA, but not server identity). This verifies the presented certificate against the effective CA specified in sslrootcert.
|
|
97
|
-
* `sslmode=verify-full` - sets `ssl` to `{}` (verify CA and server identity)
|
|
98
|
-
* `sslcert=<filename>` - reads data from the given file and includes the result as `ssl.cert`
|
|
99
|
-
* `sslkey=<filename>` - reads data from the given file and includes the result as `ssl.key`
|
|
100
|
-
* `sslrootcert=<filename>` - reads data from the given file and includes the result as `ssl.ca`
|
|
101
|
-
|
|
102
|
-
A bare relative URL, such as `salesdata`, will indicate a database name while leaving other properties empty.
|
|
103
|
-
|
|
104
|
-
> [!CAUTION]
|
|
105
|
-
> Choosing an sslmode other than verify-full has serious security implications. Please read https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS to understand the trade-offs.
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// ESM wrapper for pg-connection-string
|
|
2
|
-
import connectionString from '../index.js'
|
|
3
|
-
|
|
4
|
-
// Re-export the parse function
|
|
5
|
-
export default connectionString.parse
|
|
6
|
-
export const parse = connectionString.parse
|
|
7
|
-
export const toClientConfig = connectionString.toClientConfig
|
|
8
|
-
export const parseIntoClientConfig = connectionString.parseIntoClientConfig
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ClientConfig } from 'pg'
|
|
2
|
-
|
|
3
|
-
export function parse(connectionString: string, options?: Options): ConnectionOptions
|
|
4
|
-
|
|
5
|
-
export interface Options {
|
|
6
|
-
// Use libpq semantics when interpreting the connection string
|
|
7
|
-
useLibpqCompat?: boolean
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface SSLConfig {
|
|
11
|
-
ca?: string
|
|
12
|
-
cert?: string | null
|
|
13
|
-
key?: string
|
|
14
|
-
rejectUnauthorized?: boolean
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface ConnectionOptions {
|
|
18
|
-
host: string | null
|
|
19
|
-
password?: string
|
|
20
|
-
user?: string
|
|
21
|
-
port?: string | null
|
|
22
|
-
database: string | null | undefined
|
|
23
|
-
client_encoding?: string
|
|
24
|
-
ssl?: boolean | string | SSLConfig
|
|
25
|
-
|
|
26
|
-
application_name?: string
|
|
27
|
-
fallback_application_name?: string
|
|
28
|
-
options?: string
|
|
29
|
-
keepalives?: number
|
|
30
|
-
|
|
31
|
-
// We allow any other options to be passed through
|
|
32
|
-
[key: string]: unknown
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export function toClientConfig(config: ConnectionOptions): ClientConfig
|
|
36
|
-
export function parseIntoClientConfig(connectionString: string): ClientConfig
|