decocms 2.276.1 → 2.276.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-DzLXavEa.js → AlertCircle-BBqU1qWS.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-CyEr_HFQ.js → ArrowNarrowLeft-CNekOP3n.js} +1 -1
- package/dist/client/assets/{CheckCircle-CMotQv5X.js → CheckCircle-D1VIcB1v.js} +1 -1
- package/dist/client/assets/{ChevronDown-L-DKp152.js → ChevronDown-D3j8fwsA.js} +1 -1
- package/dist/client/assets/{ChevronRight-BU1ygmWa.js → ChevronRight-iahU_m85.js} +1 -1
- package/dist/client/assets/{ChevronUp-7uxSSWGB.js → ChevronUp-gcRxFSBd.js} +1 -1
- package/dist/client/assets/{Container-DXt1Y9Wv.js → Container-ClismqwZ.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DzF5OZ-B.js → LinkExternal01-Cr5TrBdV.js} +1 -1
- package/dist/client/assets/{Lock01-KkAI4eIi.js → Lock01-BaFHhauP.js} +1 -1
- package/dist/client/assets/{Palette-DjlDo0fl.js → Palette-B56V8p0g.js} +1 -1
- package/dist/client/assets/{Play-mrdTPMT2.js → Play-CJl6p68m.js} +1 -1
- package/dist/client/assets/{Plus-BnKCd83q.js → Plus-uRTzng7P.js} +1 -1
- package/dist/client/assets/{SearchMd-tnuXyfyF.js → SearchMd-w0SZQ38I.js} +1 -1
- package/dist/client/assets/{Settings02-CN6Z9eZa.js → Settings02-JhLe5T4h.js} +1 -1
- package/dist/client/assets/{Star01-DeLN6-0b.js → Star01-izvvU391.js} +1 -1
- package/dist/client/assets/{Sun-LtQGOgdh.js → Sun-B88VGXex.js} +1 -1
- package/dist/client/assets/{Tool01-lLv0JLVY.js → Tool01-DTFWc1H6.js} +1 -1
- package/dist/client/assets/{Trash01-DoOAWIQI.js → Trash01-DpAt8su9.js} +1 -1
- package/dist/client/assets/{Upload01-7P4qiqOJ.js → Upload01-xcbOBsW3.js} +1 -1
- package/dist/client/assets/{User01-C8Udq3pX.js → User01-B4t4xc7U.js} +1 -1
- package/dist/client/assets/{Users03-DbtRtQOU.js → Users03-DlknPznL.js} +1 -1
- package/dist/client/assets/{X-BFlss5X6.js → X-g-dkGEmI.js} +1 -1
- package/dist/client/assets/{XCircle-dq7U4Ag4.js → XCircle-poys0PpN.js} +1 -1
- package/dist/client/assets/{Zap-BAW2hqs8.js → Zap-DKHqYmya.js} +1 -1
- package/dist/client/assets/{ZapSquare-47s5RaJz.js → ZapSquare-CZVrqALN.js} +1 -1
- package/dist/client/assets/{accordion-CJFetHYg.js → accordion-DWL2RSp4.js} +1 -1
- package/dist/client/assets/{agent-icon-BlE73Zsp.js → agent-icon-UJwlsHQH.js} +1 -1
- package/dist/client/assets/{agents-list-8pSgveYv.js → agents-list-BLMcQORq.js} +1 -1
- package/dist/client/assets/ai-providers-lpqEGWpz.js +1 -0
- package/dist/client/assets/{alert-dialog-eE56pYmR.js → alert-dialog-FDHWZ_uw.js} +1 -1
- package/dist/client/assets/{auth-catchall-BwK0uWKA.js → auth-catchall-B0v3A89U.js} +1 -1
- package/dist/client/assets/{automation-list-row-BPrk3J0B.js → automation-list-row-C6mcsBHm.js} +1 -1
- package/dist/client/assets/{automations-DdUI9sAB.js → automations-z7BI_mS7.js} +1 -1
- package/dist/client/assets/{avatar-CtYV06kc.js → avatar-USIFL3XA.js} +1 -1
- package/dist/client/assets/{badge-tpgHtQ7V.js → badge-Dw59WStE.js} +1 -1
- package/dist/client/assets/{brand-context-lj0GAPtO.js → brand-context-BXlYB8LR.js} +1 -1
- package/dist/client/assets/{card-DLDrg93a.js → card-DlmO8yFT.js} +1 -1
- package/dist/client/assets/{chat-context-D07By542.js → chat-context-BzUFrztp.js} +1 -1
- package/dist/client/assets/{checkbox-d841RB1L.js → checkbox-DWN5XcT5.js} +1 -1
- package/dist/client/assets/{collection-detail--VmlTh4t.js → collection-detail-Di2yAOsh.js} +1 -1
- package/dist/client/assets/{collection-display-button-DI9Fama5.js → collection-display-button-B_BTdRYF.js} +1 -1
- package/dist/client/assets/{collection-search-D-I9_t8m.js → collection-search-ClPQOcN2.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-itdO5bAr.js → collection-table-wrapper-BeRe_RwV.js} +1 -1
- package/dist/client/assets/{collection-tabs-pP86sgyd.js → collection-tabs-8zopfSWv.js} +1 -1
- package/dist/client/assets/{collections-BPUbighK.js → collections-Bzlz5pov.js} +1 -1
- package/dist/client/assets/{command-D8O3Gl1-.js → command-DKdp37Eh.js} +1 -1
- package/dist/client/assets/{connection-card-BGPp7cgG.js → connection-card-2gDnhNHg.js} +1 -1
- package/dist/client/assets/{connection-detail-DAn-_duM.js → connection-detail-ItRBP4TJ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Dlhs2WWB.js → connection-form-helpers-8n1o0jn6.js} +1 -1
- package/dist/client/assets/{connections-BRZqo7jJ.js → connections-Eb9MEf-Q.js} +1 -1
- package/dist/client/assets/{constants-DyN4OIf-.js → constants-45iVR-Pa.js} +1 -1
- package/dist/client/assets/{constants-BZ8fIY1P.js → constants-B6Y_WQ-J.js} +1 -1
- package/dist/client/assets/{dialog-DLubr7v0.js → dialog-Cqz8DxyP.js} +1 -1
- package/dist/client/assets/{drawer-CVqexqUr.js → drawer-D1waomcL.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BXJH7fBR.js → dropdown-menu-CqFvWQQD.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-AXXFjwEt.js → dynamic-plugin-layout-CC7bPba5.js} +1 -1
- package/dist/client/assets/{empty-state-hH1NKVzr.js → empty-state-A7wIyI5K.js} +1 -1
- package/dist/client/assets/{empty-state-BL3PU4_L.js → empty-state-VbPFzdDp.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DL9tWRm2.js → extract-connection-data-B9Ysw6Jg.js} +1 -1
- package/dist/client/assets/{features-DJXnzWer.js → features-CbgyfbY9.js} +1 -1
- package/dist/client/assets/{form-BDmSvtuk.js → form-CGj888dU.js} +1 -1
- package/dist/client/assets/{general-BVT3P06A.js → general-B2hBrPb3.js} +1 -1
- package/dist/client/assets/{index-CUWSLjT5.js → index-46g4uSud.js} +1 -1
- package/dist/client/assets/{index-npGPP9fY.js → index-6j1-PJ1E.js} +1 -1
- package/dist/client/assets/{index-C0c2Yov8.js → index-BBSrDR2H.js} +1 -1
- package/dist/client/assets/{index-e1fvgisD.js → index-BH4kwjXY.js} +4 -4
- package/dist/client/assets/{index-C0PreFo1.js → index-BX-c_NH6.js} +1 -1
- package/dist/client/assets/{index-BpYvJ4OX.js → index-BhyPvUQF.js} +1 -1
- package/dist/client/assets/{index-C2OWmxK2.js → index-BoqnJI2v.js} +1 -1
- package/dist/client/assets/{index-WFhI_y7d.js → index-ChD4d8Fy.js} +1 -1
- package/dist/client/assets/{index-D1NUtWck.js → index-DN06f7L5.js} +2 -2
- package/dist/client/assets/{index-BkXWz19f.js → index-Do97zrKf.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DGAc9onj.js → infiniteQueryObserver-DYIxP7Ht.js} +1 -1
- package/dist/client/assets/{input-CEXK-6_7.js → input-BoegRSKK.js} +1 -1
- package/dist/client/assets/{integration-icon-C8gBnSmM.js → integration-icon-TghpaT83.js} +1 -1
- package/dist/client/assets/{label-T5gX1YRQ.js → label-Dx2DK5Dz.js} +1 -1
- package/dist/client/assets/{layout-BzOmqcKp.js → layout-BzY3AXeK.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-C2DCGFQ1.js → lean-canvas-recruit-modal-C13TMEgP.js} +1 -1
- package/dist/client/assets/{login-B6wwzBSU.js → login-1lxLZ3Kr.js} +1 -1
- package/dist/client/assets/{members-Dr1JTJgA.js → members-KfmXClfA.js} +1 -1
- package/dist/client/assets/{monaco-editor-8HO4_Ur2.js → monaco-editor-Bfj-f9tF.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CrqaEYtA.js → monitoring-stats-row-CSTJIouh.js} +1 -1
- package/dist/client/assets/{oauth-callback-CvzMLH2Y.js → oauth-callback-Dx7lhm8n.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DOqxOVP-.js → oauth-callback-ai-provider-DwImkwo0.js} +1 -1
- package/dist/client/assets/{onboarding-BBoB61YC.js → onboarding-DpKoGqp_.js} +1 -1
- package/dist/client/assets/{org-layout-dSdEDy3w.js → org-layout-B07ttmYa.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-B69PHyTA.js → org-plugin-layout-CN8r2uUV.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-B8LUxp43.js → plugin-empty-state-21KJ1EZ0.js} +1 -1
- package/dist/client/assets/{plugin-header-D4iyZL7p.js → plugin-header-CFKYrYBT.js} +1 -1
- package/dist/client/assets/{plugin-layout-6dzgt8Nf.js → plugin-layout-DQ0HFj99.js} +1 -1
- package/dist/client/assets/{popover-4Tx1bf1c.js → popover-BJYX_eUP.js} +1 -1
- package/dist/client/assets/{profile-rlJtNFFu.js → profile-B6iGmBgK.js} +1 -1
- package/dist/client/assets/{project-app-view-DOiFaagj.js → project-app-view-DveHsLbW.js} +1 -1
- package/dist/client/assets/registry-DKg4oxXI.js +2 -0
- package/dist/client/assets/{registry-layout-A3CSCPwV.js → registry-layout-BZ3jOtRw.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CUSrNfcX.js → required-auth-layout-6vnmXRJt.js} +1 -1
- package/dist/client/assets/{reset-password-BTZ0YHYT.js → reset-password-C6Q7kFiS.js} +1 -1
- package/dist/client/assets/{scroll-area-Byxq0szm.js → scroll-area-C7RniLKT.js} +1 -1
- package/dist/client/assets/{search-input-DfsQvBcu.js → search-input-CspVzFsE.js} +1 -1
- package/dist/client/assets/{select-Hz5eqHFW.js → select-CeLGcRm_.js} +1 -1
- package/dist/client/assets/{select-model-CaIQoO4S.js → select-model-CTvOd2v6.js} +2 -2
- package/dist/client/assets/{settings-layout-Gl-7FoEv.js → settings-layout-B5NmiwtZ.js} +1 -1
- package/dist/client/assets/{shell-layout-DzdppxnK.js → shell-layout-D-glHQwJ.js} +1 -1
- package/dist/client/assets/{skeleton-BDzML6PF.js → skeleton-DL22VZPi.js} +1 -1
- package/dist/client/assets/{sso-BkIleXYV.js → sso-Or0eg9-K.js} +1 -1
- package/dist/client/assets/{store-CjYuUqaI.js → store-9Z2sns3t.js} +1 -1
- package/dist/client/assets/store-registry-D53q05D2.js +2 -0
- package/dist/client/assets/{switch-B6g8A-mV.js → switch-Dgj2Qk7i.js} +1 -1
- package/dist/client/assets/{table-DQ3t1bXu.js → table-DD05ZO6T.js} +1 -1
- package/dist/client/assets/{tabs-DOhjGqW5.js → tabs-BX4b83RA.js} +1 -1
- package/dist/client/assets/{task-status-DKL9nwsD.js → task-status-g2-NV9sQ.js} +1 -1
- package/dist/client/assets/{textarea-CVQkfOJk.js → textarea-BhcVKoF_.js} +1 -1
- package/dist/client/assets/{toggle-group-Cfen_q_R.js → toggle-group-Cmi6TIOk.js} +1 -1
- package/dist/client/assets/{tools-list-C4GBCzQF.js → tools-list-CsG9Mnwi.js} +1 -1
- package/dist/client/assets/{types-DRPjvsJK.js → types-CHdbkHyV.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CAFjrKsE.js → use-ai-providers-Sx7HvH7l.js} +1 -1
- package/dist/client/assets/{use-collections-QllonpeS.js → use-collections-jpFK-1KA.js} +1 -1
- package/dist/client/assets/{use-connection-c_kVH9Ba.js → use-connection-DJhKa9wi.js} +1 -1
- package/dist/client/assets/{use-copy-BnJAUU38.js → use-copy-XHJJc9Ag.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CSKx5CUZ.js → use-create-virtual-mcp-C17uvNYd.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-PnZv-Hxt.js → use-decopilot-events-D2SrJLT6.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CZOJYy5I.js → use-delete-connection-Vpt8BqAw.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-FOngU937.js → use-infinite-scroll-bSbQel-x.js} +1 -1
- package/dist/client/assets/{use-list-state-C5ucIHNM.js → use-list-state-CCp8M8Xv.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DXfa1vn-.js → use-mcp-tools-BOQ7XAnx.js} +1 -1
- package/dist/client/assets/{use-members-BaFj-cNr.js → use-members-fPhtXrk4.js} +1 -1
- package/dist/client/assets/{use-mobile-fJpaHrzf.js → use-mobile-DiyZoirm.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-ChDeCHV2.js → use-navigate-to-agent-CNUExhtk.js} +1 -1
- package/dist/client/assets/{use-org-sso-CpH4bty0.js → use-org-sso-B3dpLK1-.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Dw8RIB4J.js → use-organization-settings-PJvdW7d7.js} +1 -1
- package/dist/client/assets/{use-public-config-C1IrfsO5.js → use-public-config-BnjdnqEK.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BQbpOdXR.js → use-registry-connections-DwO9HoC-.js} +1 -1
- package/dist/client/assets/{use-status-sounds-N7o4x9JG.js → use-status-sounds-DEQHOZ-w.js} +1 -1
- package/dist/client/assets/{use-tasks-DExM7Bgy.js → use-tasks-CTpvHrCM.js} +1 -1
- package/dist/client/assets/{use-view-mode-LxYzzwlc.js → use-view-mode-DQzsTtxY.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CF_Xz2vS.js → use-virtual-mcp-DQie-k1B.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D4FFCIqQ.js +1 -0
- package/dist/client/assets/{user-CxWIE8Wy.js → user-CZGUOwnk.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BRUUFACT.js → view-mode-toggle-BueEh3Rt.js} +1 -1
- package/dist/client/assets/{workflow-9q-Zd6nw.js → workflow-CLN31xo6.js} +1 -1
- package/dist/client/assets/workflow-detail-CWECDm-G.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/convert-to-spaces/dist/index.d.ts +2 -0
- package/dist/server/node_modules/convert-to-spaces/dist/index.js +4 -0
- package/dist/server/node_modules/convert-to-spaces/license +21 -0
- package/dist/server/node_modules/convert-to-spaces/package.json +40 -0
- package/dist/server/node_modules/convert-to-spaces/readme.md +39 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
- package/dist/server/node_modules/onetime/index.d.ts +64 -0
- package/dist/server/node_modules/onetime/index.js +44 -0
- package/dist/server/node_modules/onetime/package.json +43 -0
- package/dist/server/node_modules/onetime/readme.md +94 -0
- package/dist/server/node_modules/pg-cloudflare/README.md +112 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +2 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js +6 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +31 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js +152 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +3 -0
- package/dist/server/node_modules/pg-cloudflare/package.json +39 -0
- package/dist/server/node_modules/pg-cloudflare/src/empty.ts +3 -0
- package/dist/server/node_modules/pg-cloudflare/src/index.ts +166 -0
- package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +25 -0
- package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
- package/dist/server/node_modules/pg-connection-string/README.md +105 -0
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
- package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
- package/dist/server/node_modules/pg-connection-string/index.js +231 -0
- package/dist/server/node_modules/pg-connection-string/package.json +52 -0
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/{scheduler → pg-pool}/LICENSE +1 -1
- package/dist/server/node_modules/pg-pool/README.md +357 -0
- package/dist/server/node_modules/pg-pool/esm/index.mjs +5 -0
- package/dist/server/node_modules/pg-pool/index.js +517 -0
- package/dist/server/node_modules/pg-pool/package.json +51 -0
- package/dist/server/node_modules/pg-protocol/LICENSE +21 -0
- package/dist/server/node_modules/pg-protocol/README.md +3 -0
- package/dist/server/node_modules/pg-protocol/dist/b.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js +23 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +15 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +55 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +16 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +81 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +530 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/index.d.ts +6 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js +15 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +162 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js +160 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +252 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +24 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js +324 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +42 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js +189 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/esm/index.js +11 -0
- package/dist/server/node_modules/pg-protocol/package.json +45 -0
- package/dist/server/node_modules/pg-protocol/src/b.ts +25 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +58 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +85 -0
- package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +575 -0
- package/dist/server/node_modules/pg-protocol/src/index.ts +11 -0
- package/dist/server/node_modules/pg-protocol/src/messages.ts +262 -0
- package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +276 -0
- package/dist/server/node_modules/pg-protocol/src/parser.ts +413 -0
- package/dist/server/node_modules/pg-protocol/src/serializer.ts +274 -0
- package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +67 -0
- package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +166 -0
- package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +1 -0
- package/dist/server/node_modules/pg-types/.travis.yml +7 -0
- package/dist/server/node_modules/pg-types/Makefile +14 -0
- package/dist/server/node_modules/pg-types/README.md +75 -0
- package/dist/server/node_modules/pg-types/index.d.ts +137 -0
- package/dist/server/node_modules/pg-types/index.js +47 -0
- package/dist/server/node_modules/pg-types/index.test-d.ts +21 -0
- package/dist/server/node_modules/pg-types/lib/arrayParser.js +11 -0
- package/dist/server/node_modules/pg-types/lib/binaryParsers.js +257 -0
- package/dist/server/node_modules/pg-types/lib/builtins.js +73 -0
- package/dist/server/node_modules/pg-types/lib/textParsers.js +215 -0
- package/dist/server/node_modules/pg-types/package.json +42 -0
- package/dist/server/node_modules/pg-types/test/index.js +24 -0
- package/dist/server/node_modules/pg-types/test/types.js +597 -0
- package/dist/server/node_modules/pgpass/README.md +74 -0
- package/dist/server/node_modules/pgpass/lib/helper.js +233 -0
- package/dist/server/node_modules/pgpass/lib/index.js +23 -0
- package/dist/server/node_modules/pgpass/package.json +41 -0
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/postgres-array/license +21 -0
- package/dist/server/node_modules/postgres-array/package.json +35 -0
- package/dist/server/node_modules/postgres-array/readme.md +43 -0
- package/dist/server/node_modules/postgres-bytea/index.js +33 -0
- package/dist/server/node_modules/postgres-bytea/license +21 -0
- package/dist/server/node_modules/postgres-bytea/package.json +34 -0
- package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/postgres-interval/license +21 -0
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-CnO63wjr.js +0 -1
- package/dist/client/assets/registry-BTomiBS2.js +0 -2
- package/dist/client/assets/store-registry-_EZSKcWm.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DquktRvH.js +0 -1
- package/dist/client/assets/workflow-detail-DWLk3cWV.js +0 -1
- package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
- package/dist/server/node_modules/ansi-styles/index.js +0 -223
- package/dist/server/node_modules/ansi-styles/package.json +0 -54
- package/dist/server/node_modules/ansi-styles/readme.md +0 -173
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +0 -60
- package/dist/server/node_modules/get-east-asian-width/index.js +0 -30
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +0 -18
- package/dist/server/node_modules/get-east-asian-width/lookup.js +0 -135
- package/dist/server/node_modules/get-east-asian-width/package.json +0 -71
- package/dist/server/node_modules/get-east-asian-width/readme.md +0 -65
- package/dist/server/node_modules/get-east-asian-width/utilities.js +0 -24
- package/dist/server/node_modules/pg/README.md +0 -95
- package/dist/server/node_modules/pg/esm/index.mjs +0 -20
- package/dist/server/node_modules/pg/lib/client.js +0 -743
- package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
- package/dist/server/node_modules/pg/lib/connection.js +0 -221
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
- package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
- package/dist/server/node_modules/pg/lib/defaults.js +0 -91
- package/dist/server/node_modules/pg/lib/index.js +0 -73
- package/dist/server/node_modules/pg/lib/native/client.js +0 -323
- package/dist/server/node_modules/pg/lib/native/index.js +0 -2
- package/dist/server/node_modules/pg/lib/native/query.js +0 -165
- package/dist/server/node_modules/pg/lib/query.js +0 -252
- package/dist/server/node_modules/pg/lib/result.js +0 -109
- package/dist/server/node_modules/pg/lib/stream.js +0 -83
- package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
- package/dist/server/node_modules/pg/lib/utils.js +0 -217
- package/dist/server/node_modules/pg/package.json +0 -76
- package/dist/server/node_modules/scheduler/README.md +0 -9
- package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -414
- package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_mock.production.js +0 -406
- package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -150
- package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.js +0 -140
- package/dist/server/node_modules/scheduler/cjs/scheduler.development.js +0 -364
- package/dist/server/node_modules/scheduler/cjs/scheduler.native.development.js +0 -350
- package/dist/server/node_modules/scheduler/cjs/scheduler.native.production.js +0 -330
- package/dist/server/node_modules/scheduler/cjs/scheduler.production.js +0 -340
- package/dist/server/node_modules/scheduler/index.js +0 -7
- package/dist/server/node_modules/scheduler/index.native.js +0 -7
- package/dist/server/node_modules/scheduler/package.json +0 -27
- package/dist/server/node_modules/scheduler/unstable_mock.js +0 -7
- package/dist/server/node_modules/scheduler/unstable_post_task.js +0 -7
- 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/license +0 -10
- 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/strip-ansi/index.d.ts +0 -15
- package/dist/server/node_modules/strip-ansi/index.js +0 -19
- package/dist/server/node_modules/strip-ansi/license +0 -9
- package/dist/server/node_modules/strip-ansi/package.json +0 -59
- package/dist/server/node_modules/strip-ansi/readme.md +0 -37
- /package/dist/server/node_modules/{ansi-styles → is-fullwidth-code-point}/license +0 -0
- /package/dist/server/node_modules/{get-east-asian-width → onetime}/license +0 -0
- /package/dist/server/node_modules/{pg → pg-cloudflare}/LICENSE +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Vadim Demedes <vdemedes@gmail.com> (https://vadimdemedes.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "convert-to-spaces",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "Convert tabs to spaces in a string",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "vadimdemedes/convert-to-spaces",
|
|
7
|
+
"author": "Vadim Demedes <vdemedes@gmail.com>",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"dev": "tsc --watch",
|
|
11
|
+
"prepare": "npm run build",
|
|
12
|
+
"pretest": "npm run build",
|
|
13
|
+
"test": "xo && ava"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"exports": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"keywords": [
|
|
25
|
+
"tabs",
|
|
26
|
+
"spaces"
|
|
27
|
+
],
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@sindresorhus/tsconfig": "^2.0.0",
|
|
30
|
+
"@vdemedes/prettier-config": "^2.0.1",
|
|
31
|
+
"ava": "^4.0.1",
|
|
32
|
+
"prettier": "^2.5.1",
|
|
33
|
+
"typescript": "^4.5.5",
|
|
34
|
+
"xo": "^0.47.0"
|
|
35
|
+
},
|
|
36
|
+
"xo": {
|
|
37
|
+
"prettier": true
|
|
38
|
+
},
|
|
39
|
+
"prettier": "@vdemedes/prettier-config"
|
|
40
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# convert-to-spaces [](https://github.com/vadimdemedes/convert-to-spaces/actions)
|
|
2
|
+
|
|
3
|
+
> Convert tabs to spaces in a string
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
$ npm install --save convert-to-spaces
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import convertToSpaces from 'convert-to-spaces';
|
|
15
|
+
|
|
16
|
+
convertToSpaces('\t\thello!');
|
|
17
|
+
//=> ' hello!'
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## API
|
|
21
|
+
|
|
22
|
+
### convertToSpaces(input, [spaces])
|
|
23
|
+
|
|
24
|
+
#### input
|
|
25
|
+
|
|
26
|
+
Type: `string`
|
|
27
|
+
|
|
28
|
+
String to convert.
|
|
29
|
+
|
|
30
|
+
#### spaces
|
|
31
|
+
|
|
32
|
+
Type: `number`<br>
|
|
33
|
+
Default: `2`
|
|
34
|
+
|
|
35
|
+
Number of spaces instead of each tab.
|
|
36
|
+
|
|
37
|
+
## Related
|
|
38
|
+
|
|
39
|
+
- [convert-to-tabs](https://github.com/vadimdemedes/convert-to-tabs) - Convert spaces to tabs.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms).
|
|
3
|
+
|
|
4
|
+
@param codePoint - The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```
|
|
8
|
+
import isFullwidthCodePoint from 'is-fullwidth-code-point';
|
|
9
|
+
|
|
10
|
+
isFullwidthCodePoint('谢'.codePointAt(0));
|
|
11
|
+
//=> true
|
|
12
|
+
|
|
13
|
+
isFullwidthCodePoint('a'.codePointAt(0));
|
|
14
|
+
//=> false
|
|
15
|
+
```
|
|
16
|
+
*/
|
|
17
|
+
export default function isFullwidthCodePoint(codePoint: number): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
_isFullWidth as isFullWidth,
|
|
3
|
+
_isWide as isWide,
|
|
4
|
+
} from 'get-east-asian-width';
|
|
5
|
+
|
|
6
|
+
export default function isFullwidthCodePoint(codePoint) {
|
|
7
|
+
if (!Number.isInteger(codePoint)) {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return isFullWidth(codePoint) || isWide(codePoint);
|
|
12
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "is-fullwidth-code-point",
|
|
3
|
+
"version": "5.1.0",
|
|
4
|
+
"description": "Check if the character represented by a given Unicode code point is fullwidth",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/is-fullwidth-code-point",
|
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Sindre Sorhus",
|
|
10
|
+
"email": "sindresorhus@gmail.com",
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"exports": {
|
|
15
|
+
"types": "./index.d.ts",
|
|
16
|
+
"default": "./index.js"
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"test": "xo && ava && tsd"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"index.js",
|
|
27
|
+
"index.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"keywords": [
|
|
30
|
+
"fullwidth",
|
|
31
|
+
"full-width",
|
|
32
|
+
"full",
|
|
33
|
+
"width",
|
|
34
|
+
"unicode",
|
|
35
|
+
"character",
|
|
36
|
+
"string",
|
|
37
|
+
"codepoint",
|
|
38
|
+
"code",
|
|
39
|
+
"point",
|
|
40
|
+
"is",
|
|
41
|
+
"detect",
|
|
42
|
+
"check",
|
|
43
|
+
"east-asian-width"
|
|
44
|
+
],
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"ava": "^5.3.1",
|
|
47
|
+
"tsd": "^0.29.0",
|
|
48
|
+
"xo": "^0.56.0"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"get-east-asian-width": "^1.3.1"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# is-fullwidth-code-point
|
|
2
|
+
|
|
3
|
+
> Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install is-fullwidth-code-point
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import isFullwidthCodePoint from 'is-fullwidth-code-point';
|
|
15
|
+
|
|
16
|
+
isFullwidthCodePoint('谢'.codePointAt(0));
|
|
17
|
+
//=> true
|
|
18
|
+
|
|
19
|
+
isFullwidthCodePoint('a'.codePointAt(0));
|
|
20
|
+
//=> false
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## API
|
|
24
|
+
|
|
25
|
+
### isFullwidthCodePoint(codePoint)
|
|
26
|
+
|
|
27
|
+
#### codePoint
|
|
28
|
+
|
|
29
|
+
Type: `number`
|
|
30
|
+
|
|
31
|
+
The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare namespace onetime {
|
|
2
|
+
interface Options {
|
|
3
|
+
/**
|
|
4
|
+
Throw an error when called more than once.
|
|
5
|
+
|
|
6
|
+
@default false
|
|
7
|
+
*/
|
|
8
|
+
throw?: boolean;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const onetime: {
|
|
13
|
+
/**
|
|
14
|
+
Ensure a function is only called once. When called multiple times it will return the return value from the first call.
|
|
15
|
+
|
|
16
|
+
@param fn - Function that should only be called once.
|
|
17
|
+
@returns A function that only calls `fn` once.
|
|
18
|
+
|
|
19
|
+
@example
|
|
20
|
+
```
|
|
21
|
+
import onetime = require('onetime');
|
|
22
|
+
|
|
23
|
+
let i = 0;
|
|
24
|
+
|
|
25
|
+
const foo = onetime(() => ++i);
|
|
26
|
+
|
|
27
|
+
foo(); //=> 1
|
|
28
|
+
foo(); //=> 1
|
|
29
|
+
foo(); //=> 1
|
|
30
|
+
|
|
31
|
+
onetime.callCount(foo); //=> 3
|
|
32
|
+
```
|
|
33
|
+
*/
|
|
34
|
+
<ArgumentsType extends unknown[], ReturnType>(
|
|
35
|
+
fn: (...arguments: ArgumentsType) => ReturnType,
|
|
36
|
+
options?: onetime.Options
|
|
37
|
+
): (...arguments: ArgumentsType) => ReturnType;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
Get the number of times `fn` has been called.
|
|
41
|
+
|
|
42
|
+
@param fn - Function to get call count from.
|
|
43
|
+
@returns A number representing how many times `fn` has been called.
|
|
44
|
+
|
|
45
|
+
@example
|
|
46
|
+
```
|
|
47
|
+
import onetime = require('onetime');
|
|
48
|
+
|
|
49
|
+
const foo = onetime(() => {});
|
|
50
|
+
foo();
|
|
51
|
+
foo();
|
|
52
|
+
foo();
|
|
53
|
+
|
|
54
|
+
console.log(onetime.callCount(foo));
|
|
55
|
+
//=> 3
|
|
56
|
+
```
|
|
57
|
+
*/
|
|
58
|
+
callCount(fn: (...arguments: any[]) => unknown): number;
|
|
59
|
+
|
|
60
|
+
// TODO: Remove this for the next major release
|
|
61
|
+
default: typeof onetime;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export = onetime;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const mimicFn = require('mimic-fn');
|
|
3
|
+
|
|
4
|
+
const calledFunctions = new WeakMap();
|
|
5
|
+
|
|
6
|
+
const onetime = (function_, options = {}) => {
|
|
7
|
+
if (typeof function_ !== 'function') {
|
|
8
|
+
throw new TypeError('Expected a function');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
let returnValue;
|
|
12
|
+
let callCount = 0;
|
|
13
|
+
const functionName = function_.displayName || function_.name || '<anonymous>';
|
|
14
|
+
|
|
15
|
+
const onetime = function (...arguments_) {
|
|
16
|
+
calledFunctions.set(onetime, ++callCount);
|
|
17
|
+
|
|
18
|
+
if (callCount === 1) {
|
|
19
|
+
returnValue = function_.apply(this, arguments_);
|
|
20
|
+
function_ = null;
|
|
21
|
+
} else if (options.throw === true) {
|
|
22
|
+
throw new Error(`Function \`${functionName}\` can only be called once`);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return returnValue;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
mimicFn(onetime, function_);
|
|
29
|
+
calledFunctions.set(onetime, callCount);
|
|
30
|
+
|
|
31
|
+
return onetime;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
module.exports = onetime;
|
|
35
|
+
// TODO: Remove this for the next major release
|
|
36
|
+
module.exports.default = onetime;
|
|
37
|
+
|
|
38
|
+
module.exports.callCount = function_ => {
|
|
39
|
+
if (!calledFunctions.has(function_)) {
|
|
40
|
+
throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return calledFunctions.get(function_);
|
|
44
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "onetime",
|
|
3
|
+
"version": "5.1.2",
|
|
4
|
+
"description": "Ensure a function is only called once",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/onetime",
|
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Sindre Sorhus",
|
|
10
|
+
"email": "sindresorhus@gmail.com",
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=6"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "xo && ava && tsd"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"index.js",
|
|
21
|
+
"index.d.ts"
|
|
22
|
+
],
|
|
23
|
+
"keywords": [
|
|
24
|
+
"once",
|
|
25
|
+
"function",
|
|
26
|
+
"one",
|
|
27
|
+
"onetime",
|
|
28
|
+
"func",
|
|
29
|
+
"fn",
|
|
30
|
+
"single",
|
|
31
|
+
"call",
|
|
32
|
+
"called",
|
|
33
|
+
"prevent"
|
|
34
|
+
],
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"mimic-fn": "^2.1.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"ava": "^1.4.1",
|
|
40
|
+
"tsd": "^0.7.1",
|
|
41
|
+
"xo": "^0.24.0"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# onetime [](https://travis-ci.com/github/sindresorhus/onetime)
|
|
2
|
+
|
|
3
|
+
> Ensure a function is only called once
|
|
4
|
+
|
|
5
|
+
When called multiple times it will return the return value from the first call.
|
|
6
|
+
|
|
7
|
+
*Unlike the module [once](https://github.com/isaacs/once), this one isn't naughty and extending `Function.prototype`.*
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
$ npm install onetime
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
const onetime = require('onetime');
|
|
19
|
+
|
|
20
|
+
let i = 0;
|
|
21
|
+
|
|
22
|
+
const foo = onetime(() => ++i);
|
|
23
|
+
|
|
24
|
+
foo(); //=> 1
|
|
25
|
+
foo(); //=> 1
|
|
26
|
+
foo(); //=> 1
|
|
27
|
+
|
|
28
|
+
onetime.callCount(foo); //=> 3
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```js
|
|
32
|
+
const onetime = require('onetime');
|
|
33
|
+
|
|
34
|
+
const foo = onetime(() => {}, {throw: true});
|
|
35
|
+
|
|
36
|
+
foo();
|
|
37
|
+
|
|
38
|
+
foo();
|
|
39
|
+
//=> Error: Function `foo` can only be called once
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## API
|
|
43
|
+
|
|
44
|
+
### onetime(fn, options?)
|
|
45
|
+
|
|
46
|
+
Returns a function that only calls `fn` once.
|
|
47
|
+
|
|
48
|
+
#### fn
|
|
49
|
+
|
|
50
|
+
Type: `Function`
|
|
51
|
+
|
|
52
|
+
Function that should only be called once.
|
|
53
|
+
|
|
54
|
+
#### options
|
|
55
|
+
|
|
56
|
+
Type: `object`
|
|
57
|
+
|
|
58
|
+
##### throw
|
|
59
|
+
|
|
60
|
+
Type: `boolean`\
|
|
61
|
+
Default: `false`
|
|
62
|
+
|
|
63
|
+
Throw an error when called more than once.
|
|
64
|
+
|
|
65
|
+
### onetime.callCount(fn)
|
|
66
|
+
|
|
67
|
+
Returns a number representing how many times `fn` has been called.
|
|
68
|
+
|
|
69
|
+
Note: It throws an error if you pass in a function that is not wrapped by `onetime`.
|
|
70
|
+
|
|
71
|
+
```js
|
|
72
|
+
const onetime = require('onetime');
|
|
73
|
+
|
|
74
|
+
const foo = onetime(() => {});
|
|
75
|
+
|
|
76
|
+
foo();
|
|
77
|
+
foo();
|
|
78
|
+
foo();
|
|
79
|
+
|
|
80
|
+
console.log(onetime.callCount(foo));
|
|
81
|
+
//=> 3
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
#### fn
|
|
85
|
+
|
|
86
|
+
Type: `Function`
|
|
87
|
+
|
|
88
|
+
Function to get call count from.
|
|
89
|
+
|
|
90
|
+
## onetime for enterprise
|
|
91
|
+
|
|
92
|
+
Available as part of the Tidelift Subscription.
|
|
93
|
+
|
|
94
|
+
The maintainers of onetime and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-onetime?utm_source=npm-onetime&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# pg-cloudflare
|
|
2
|
+
|
|
3
|
+
`pg-cloudflare` makes it easier to take an existing package that relies on `tls` and `net`, and make it work in environments where only `connect()` is supported, such as Cloudflare Workers.
|
|
4
|
+
|
|
5
|
+
`pg-cloudflare` wraps `connect()`, the [TCP Socket API](https://github.com/wintercg/proposal-sockets-api) proposed within WinterCG, and implemented in [Cloudflare Workers](https://developers.cloudflare.com/workers/runtime-apis/tcp-sockets/), and exposes an interface with methods similar to what the `net` and `tls` modules in Node.js expose. (ex: `net.connect(path[, options][, callback])`). This minimizes the number of changes needed in order to make an existing package work across JavaScript runtimes.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
npm i --save-dev pg-cloudflare
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The package uses conditional exports to support bundlers that don't know about
|
|
14
|
+
`cloudflare:sockets`, so the consumer code by default imports an empty file. To
|
|
15
|
+
enable the package, resolve to the `cloudflare` condition in your bundler's
|
|
16
|
+
config. For example:
|
|
17
|
+
|
|
18
|
+
- `webpack.config.js`
|
|
19
|
+
```js
|
|
20
|
+
export default {
|
|
21
|
+
...,
|
|
22
|
+
resolve: { conditionNames: [..., "workerd"] },
|
|
23
|
+
plugins: [
|
|
24
|
+
// ignore cloudflare:sockets imports
|
|
25
|
+
new webpack.IgnorePlugin({
|
|
26
|
+
resourceRegExp: /^cloudflare:sockets$/,
|
|
27
|
+
}),
|
|
28
|
+
],
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
- `vite.config.js`
|
|
32
|
+
|
|
33
|
+
> [!NOTE]
|
|
34
|
+
> If you are using the [Cloudflare Vite plugin](https://www.npmjs.com/package/@cloudflare/vite-plugin) then the following configuration is not necessary.
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
export default defineConfig({
|
|
38
|
+
...,
|
|
39
|
+
resolve: {
|
|
40
|
+
conditions: [..., "workerd"],
|
|
41
|
+
},
|
|
42
|
+
build: {
|
|
43
|
+
...,
|
|
44
|
+
// don't try to bundle cloudflare:sockets
|
|
45
|
+
rollupOptions: {
|
|
46
|
+
external: [..., 'cloudflare:sockets'],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
})
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
- `rollup.config.js`
|
|
53
|
+
```js
|
|
54
|
+
export default defineConfig({
|
|
55
|
+
...,
|
|
56
|
+
plugins: [..., nodeResolve({ exportConditions: [..., 'workerd'] })],
|
|
57
|
+
// don't try to bundle cloudflare:sockets
|
|
58
|
+
external: [..., 'cloudflare:sockets'],
|
|
59
|
+
})
|
|
60
|
+
```
|
|
61
|
+
- `esbuild.config.js`
|
|
62
|
+
```js
|
|
63
|
+
await esbuild.build({
|
|
64
|
+
...,
|
|
65
|
+
conditions: [..., 'workerd'],
|
|
66
|
+
})
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The concrete examples can be found in `packages/pg-bundler-test`.
|
|
70
|
+
|
|
71
|
+
## How to use conditionally, in non-Node.js environments
|
|
72
|
+
|
|
73
|
+
As implemented in `pg` [here](https://github.com/brianc/node-postgres/commit/07553428e9c0eacf761a5d4541a3300ff7859578#diff-34588ad868ebcb232660aba7ee6a99d1e02f4bc93f73497d2688c3f074e60533R5-R13), a typical use case might look as follows, where in a Node.js environment the `net` module is used, while in a non-Node.js environment, where `net` is unavailable, `pg-cloudflare` is used instead, providing an equivalent interface:
|
|
74
|
+
|
|
75
|
+
```js
|
|
76
|
+
module.exports.getStream = function getStream(ssl = false) {
|
|
77
|
+
const net = require('net')
|
|
78
|
+
if (typeof net.Socket === 'function') {
|
|
79
|
+
return net.Socket()
|
|
80
|
+
}
|
|
81
|
+
const { CloudflareSocket } = require('pg-cloudflare')
|
|
82
|
+
return new CloudflareSocket(ssl)
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Node.js implementation of the Socket API proposal
|
|
87
|
+
|
|
88
|
+
If you're looking for a way to rely on `connect()` as the interface you use to interact with raw sockets, but need this interface to be available in a Node.js environment, [`@arrowood.dev/socket`](https://github.com/Ethan-Arrowood/socket) provides a Node.js implementation of the Socket API.
|
|
89
|
+
|
|
90
|
+
### license
|
|
91
|
+
|
|
92
|
+
The MIT License (MIT)
|
|
93
|
+
|
|
94
|
+
Copyright (c) 2023 Brian M. Carlson
|
|
95
|
+
|
|
96
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
97
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
98
|
+
in the Software without restriction, including without limitation the rights
|
|
99
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
100
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
101
|
+
furnished to do so, subject to the following conditions:
|
|
102
|
+
|
|
103
|
+
The above copyright notice and this permission notice shall be included in
|
|
104
|
+
all copies or substantial portions of the Software.
|
|
105
|
+
|
|
106
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
107
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
108
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
109
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
110
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
111
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
112
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty.js","sourceRoot":"","sources":["../src/empty.ts"],"names":[],"mappings":";;AAAA,kFAAkF;AAClF,0CAA0C;AAC1C,kBAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
}
|