decocms 2.311.4 → 2.311.5
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-B9oH_g_L.js → AlertCircle-CjTfXQMH.js} +1 -1
- package/dist/client/assets/{Archive-B6MeBG3s.js → Archive-CaJ5kGW4.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-CJ5Cy82h.js → ArrowNarrowLeft-SJEHnXyc.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-4ydKVyle.js → ArrowUpRight-07AMyW3q.js} +1 -1
- package/dist/client/assets/{Check-DebVUXra.js → Check-CmnOcISu.js} +1 -1
- package/dist/client/assets/{CheckCircle-C5WDXsf1.js → CheckCircle-Lywb4tzc.js} +1 -1
- package/dist/client/assets/{ChevronDown-Bl51JpFo.js → ChevronDown-B7nkAKvX.js} +1 -1
- package/dist/client/assets/{ChevronRight-Ck_bv26F.js → ChevronRight-CFgoiwVv.js} +1 -1
- package/dist/client/assets/{ChevronUp-Bu2I5DDr.js → ChevronUp-COT1DfaR.js} +1 -1
- package/dist/client/assets/{Container-D8jgCHNW.js → Container-D1pwjZQv.js} +1 -1
- package/dist/client/assets/{DotsVertical-eQbx9TgA.js → DotsVertical-CiKG-O-v.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Ch92Bial.js → LinkExternal01-B5ftsff4.js} +1 -1
- package/dist/client/assets/{Lock01-DDf0kI9V.js → Lock01-BRRKEYOm.js} +1 -1
- package/dist/client/assets/{Palette-BWOLbRUF.js → Palette-VwQOwYSo.js} +1 -1
- package/dist/client/assets/{Play-Cv_x6vtS.js → Play-DP3It0wz.js} +1 -1
- package/dist/client/assets/{Plus-COJSk5ON.js → Plus-BB2q_olj.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Cb__yjXX.js → RefreshCcw01-cS3DHDDp.js} +1 -1
- package/dist/client/assets/{SearchMd-zvmkQIO3.js → SearchMd-CrQCxOMr.js} +1 -1
- package/dist/client/assets/{Settings02-VjCaU3Ay.js → Settings02-DVf2OlMW.js} +1 -1
- package/dist/client/assets/{Shield01-CX5hyOhU.js → Shield01-B3ECj0f_.js} +1 -1
- package/dist/client/assets/{Star01-1obeY95S.js → Star01-4_ptKeQ0.js} +1 -1
- package/dist/client/assets/{Sun-BZWbKYzS.js → Sun-DmD9Q3PB.js} +1 -1
- package/dist/client/assets/{Tool01-D9Db7wFX.js → Tool01-BMc0DiTH.js} +1 -1
- package/dist/client/assets/{Trash01-D7caLKVm.js → Trash01-6VDjweik.js} +1 -1
- package/dist/client/assets/{User01-D4ngH6fF.js → User01-C8lenn3T.js} +1 -1
- package/dist/client/assets/{Users03-Btxk64Ch.js → Users03-CIbaYGvp.js} +1 -1
- package/dist/client/assets/{X-IKxa8G6O.js → X-DosXDblw.js} +1 -1
- package/dist/client/assets/{XCircle-TpEF01ER.js → XCircle-ClvYl5pR.js} +1 -1
- package/dist/client/assets/{XClose-BcgFe7M6.js → XClose-CzeywUWk.js} +1 -1
- package/dist/client/assets/{Zap-fC-cTn-f.js → Zap-BIo7bCpk.js} +1 -1
- package/dist/client/assets/{ZapSquare-C6-F5DC-.js → ZapSquare-DBCGSeVa.js} +1 -1
- package/dist/client/assets/{accordion-3zIIUTEV.js → accordion-DclhREAs.js} +1 -1
- package/dist/client/assets/{agent-icon-DOKHg6OI.js → agent-icon-CVuf051c.js} +1 -1
- package/dist/client/assets/{agents-list-CbGIict5.js → agents-list-DwVCJjeW.js} +1 -1
- package/dist/client/assets/ai-providers-Dvj--FTM.js +1 -0
- package/dist/client/assets/{alert-dialog-CpqAxo6e.js → alert-dialog-74AkvGEe.js} +1 -1
- package/dist/client/assets/{auth-catchall-DiV4yv3c.js → auth-catchall-bUIqYMGp.js} +1 -1
- package/dist/client/assets/{automation-list-row-3Flzf1RU.js → automation-list-row-BXPs3B4q.js} +1 -1
- package/dist/client/assets/{automations-DqKzdhdP.js → automations-DWwEIlG6.js} +1 -1
- package/dist/client/assets/{avatar-DMMTjE_N.js → avatar-C8DSVjWY.js} +1 -1
- package/dist/client/assets/{badge-Cl43Fd5q.js → badge-DHtX06_M.js} +1 -1
- package/dist/client/assets/{brand-context-BixMF0LI.js → brand-context-tIAqpiX9.js} +1 -1
- package/dist/client/assets/{card-atIaOarg.js → card-2PzQvDZe.js} +1 -1
- package/dist/client/assets/{chat-context-BYGZHjF-.js → chat-context-BC1CXyf7.js} +1 -1
- package/dist/client/assets/{checkbox-BkPQTYVT.js → checkbox-BhLpSvVG.js} +1 -1
- package/dist/client/assets/{collection-detail-B8snyHm9.js → collection-detail-8c2GHEb3.js} +1 -1
- package/dist/client/assets/{collection-display-button-ajqtT7rr.js → collection-display-button-DwDu2s8u.js} +1 -1
- package/dist/client/assets/{collection-search-Bduvdvec.js → collection-search-BEFvuI7B.js} +1 -1
- package/dist/client/assets/{collection-search-1a_Lq6-S.js → collection-search-CmQSMD5X.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Cbj3HcdB.js → collection-table-wrapper-BS8qzlIv.js} +1 -1
- package/dist/client/assets/{collection-tabs-CIbbQj0c.js → collection-tabs-DRcC41aH.js} +1 -1
- package/dist/client/assets/{collections-BxfRNDnH.js → collections-CeyUXk8d.js} +1 -1
- package/dist/client/assets/{command-D1sF-6St.js → command-BakvhlkN.js} +1 -1
- package/dist/client/assets/{connection-card-BOX4BOJb.js → connection-card-DojP2_fI.js} +1 -1
- package/dist/client/assets/{connection-detail-CJuaXZ06.js → connection-detail-CLbkMPqD.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DGcxlO9p.js → connection-form-helpers-DC0Nw-dt.js} +1 -1
- package/dist/client/assets/{connections-B_J5c0zU.js → connections-CH2AWiB-.js} +1 -1
- package/dist/client/assets/{constants-DgVB_OfX.js → constants-BxcPdAxA.js} +1 -1
- package/dist/client/assets/{constants-DFmrEMvr.js → constants-DN0vtCn3.js} +1 -1
- package/dist/client/assets/{dialog-BfbZqj8o.js → dialog-CSDOHRuZ.js} +1 -1
- package/dist/client/assets/{domain-settings-fIoe18gC.js → domain-settings-C7eJxKRE.js} +1 -1
- package/dist/client/assets/{drawer-Cwv18Rfc.js → drawer-i2HsSBna.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BHEIWvjz.js → dropdown-menu-CuTxWawv.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-sAaBNQCu.js → dynamic-plugin-layout-CAFdK5Xc.js} +1 -1
- package/dist/client/assets/{empty-state-D9O0oflk.js → empty-state-Bx9CGRh0.js} +1 -1
- package/dist/client/assets/{empty-state-DpeNwz3z.js → empty-state-Pw6pEnBg.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C70gSVIU.js → extract-connection-data-CTVdkIjk.js} +1 -1
- package/dist/client/assets/{features-DGOboZi2.js → features-Cf1q1FgR.js} +1 -1
- package/dist/client/assets/{form-Dbuv4HM1.js → form-CyoIgyt_.js} +1 -1
- package/dist/client/assets/{general-CmfTFtWQ.js → general-EFmcuMkr.js} +1 -1
- package/dist/client/assets/{index-BBcxDbcV.js → index-2dbmNgG2.js} +1 -1
- package/dist/client/assets/{index-Mphbg3ob.js → index-B4s1crzl.js} +1 -1
- package/dist/client/assets/{index-C9Xe1UOF.js → index-BC8Qj8Ud.js} +1 -1
- package/dist/client/assets/{index-of_f-fkA.js → index-BPbpFSlG.js} +2 -2
- package/dist/client/assets/{index-BWH5XQv6.js → index-BbNr81kL.js} +1 -1
- package/dist/client/assets/{index-Ba2DGUqz.js → index-Bo_Hzl5t.js} +1 -1
- package/dist/client/assets/{index-BzUeZriG.js → index-C4IrsGbo.js} +1 -1
- package/dist/client/assets/{index-BG3dhQkv.js → index-CJpfncMG.js} +3 -3
- package/dist/client/assets/{index-BwsU5zd1.js → index-CRIGn0SA.js} +1 -1
- package/dist/client/assets/{index-Dzp7kOTG.js → index-CVT_xMzU.js} +1 -1
- package/dist/client/assets/{index-D6087nfN.js → index-CxxsJumH.js} +1 -1
- package/dist/client/assets/{index-BKyI0pJu.js → index-DQBpcchF.js} +1 -1
- package/dist/client/assets/{index-03c4U8sF.js → index-DUpS8oet.js} +1 -1
- package/dist/client/assets/{index-BnjXQeRX.js → index-D_WrlK5r.js} +1 -1
- package/dist/client/assets/{index-BNfHdAdM.js → index-nM5EBUdq.js} +1 -1
- package/dist/client/assets/{index-DreCvrWC.js → index-quDf3VhH.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CGlWSDkT.js → infiniteQueryObserver-CXf2zWh1.js} +1 -1
- package/dist/client/assets/{input-C10I6dmB.js → input-DHBDt0A0.js} +1 -1
- package/dist/client/assets/{integration-icon-BZWi9MHu.js → integration-icon-BsCzD6pa.js} +1 -1
- package/dist/client/assets/{label-GQyGD0fg.js → label-D08h5k1R.js} +1 -1
- package/dist/client/assets/{layout-BTCibgOz.js → layout-B1PdCwnm.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-CoTu3DWj.js → lean-canvas-recruit-modal-BnmgWty8.js} +1 -1
- package/dist/client/assets/{login-DX9XHyXZ.js → login-tBteHrh1.js} +1 -1
- package/dist/client/assets/{members-DsFD5whC.js → members-BTrVRWxW.js} +1 -1
- package/dist/client/assets/{monaco-editor-11wX-J7m.js → monaco-editor-DZ5QI8uz.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BO_PO8WS.js → monitoring-stats-row-B44Z4xAF.js} +1 -1
- package/dist/client/assets/{oauth-callback-CRSSTzOY.js → oauth-callback-DQoc6xwl.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DLg4qRG7.js → oauth-callback-ai-provider-4TlgQtIM.js} +1 -1
- package/dist/client/assets/{onboarding-BtiS6eZp.js → onboarding-focuY_h9.js} +1 -1
- package/dist/client/assets/{org-layout-DBHhGGGW.js → org-layout-CeARFSnY.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-CSwRjJxC.js → org-plugin-layout-B6JCfLhZ.js} +1 -1
- package/dist/client/assets/{pair-DOse3mZI.js → pair-DK8WArXa.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-B7pndCLq.js → plugin-empty-state-BRwCgISr.js} +1 -1
- package/dist/client/assets/{plugin-header-C4skF69-.js → plugin-header-DPn1Avqw.js} +1 -1
- package/dist/client/assets/{plugin-layout-BxQ7HDjt.js → plugin-layout-CXXOhn9o.js} +1 -1
- package/dist/client/assets/{popover-Ctg2lMvr.js → popover-HGsZ47vz.js} +1 -1
- package/dist/client/assets/{profile-CSj05EgE.js → profile-Q4Mq5bka.js} +1 -1
- package/dist/client/assets/{project-app-view-BTaGodnw.js → project-app-view-CfhY_w3a.js} +1 -1
- package/dist/client/assets/registry-DZhiFceQ.js +2 -0
- package/dist/client/assets/{registry-layout-B_kqnBrY.js → registry-layout-DAUnauvK.js} +1 -1
- package/dist/client/assets/{required-auth-layout-D7dIxHCT.js → required-auth-layout-D-wVBMo_.js} +1 -1
- package/dist/client/assets/{reset-password-IMWg3NKJ.js → reset-password-C6Sgyd-m.js} +1 -1
- package/dist/client/assets/{roles-XL5COHYs.js → roles-lMb3kTlV.js} +1 -1
- package/dist/client/assets/{scroll-area-CE1-trGg.js → scroll-area-PHdLgpTR.js} +1 -1
- package/dist/client/assets/{search-input-BeWoJmJs.js → search-input-DzbQ3jIA.js} +1 -1
- package/dist/client/assets/{select-D0WdxrPb.js → select-ThJxxmvQ.js} +1 -1
- package/dist/client/assets/{select-model-v_-wI5SM.js → select-model-DPEgFP5P.js} +1 -1
- package/dist/client/assets/{settings-layout-xcT_03n5.js → settings-layout-DWdCJ7T1.js} +1 -1
- package/dist/client/assets/{settings-section-78g-ho1j.js → settings-section-CE6DXKE_.js} +1 -1
- package/dist/client/assets/{shell-layout-CX-iHmM8.js → shell-layout--0UwjzTK.js} +1 -1
- package/dist/client/assets/{skeleton-T5-xMf1l.js → skeleton-BW69nAou.js} +1 -1
- package/dist/client/assets/{sso-Da0NwOLm.js → sso-CLxH7gN_.js} +1 -1
- package/dist/client/assets/{store-D9a7LueI.js → store-Dvy5qA8V.js} +1 -1
- package/dist/client/assets/store-registry-Ca7gEG02.js +2 -0
- package/dist/client/assets/{switch-DbHbdSl0.js → switch-2kbNkhgy.js} +1 -1
- package/dist/client/assets/{table-D0UBzbYN.js → table-pY_1blbB.js} +1 -1
- package/dist/client/assets/{tabs-CobAJLYQ.js → tabs-BHCoB9-B.js} +1 -1
- package/dist/client/assets/{task-status-BzEwrRsq.js → task-status-CoiJkfnQ.js} +1 -1
- package/dist/client/assets/{textarea-0BVVHXu6.js → textarea-yE-qQiGr.js} +1 -1
- package/dist/client/assets/{toggle-group-DSBZFau0.js → toggle-group-CGlJJKpo.js} +1 -1
- package/dist/client/assets/{tools-list-Dzgh09sA.js → tools-list-kG_ujXbv.js} +1 -1
- package/dist/client/assets/{tooltip-Bql6di6F.js → tooltip-8EMcUk8q.js} +1 -1
- package/dist/client/assets/{types-DKOG-Qrs.js → types-0qNHrw5h.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DzmSRkSr.js → use-ai-providers-CJfgIRCZ.js} +1 -1
- package/dist/client/assets/{use-collections-DXmGvrdg.js → use-collections-bP--NcMC.js} +1 -1
- package/dist/client/assets/{use-connection-DbyjxbsT.js → use-connection-Bszp6a5W.js} +1 -1
- package/dist/client/assets/{use-copy-BpSclt6u.js → use-copy-CbGC0huz.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-EOSscEAE.js → use-create-virtual-mcp-CF9S4n1L.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C1979JBR.js → use-debounced-autosave-0DHMqbbb.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-D03CA9XW.js → use-decopilot-events-CJqb-CIN.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Bz2NA94E.js → use-delete-connection-CFFQ-eJW.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-B911xF4Q.js → use-infinite-scroll-D4oMTPVQ.js} +1 -1
- package/dist/client/assets/{use-list-state-Dnzi0tIM.js → use-list-state-Dxu3SrCJ.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-YlCqlVR9.js → use-mcp-tools-IbqZtDzy.js} +1 -1
- package/dist/client/assets/{use-members-B3QFxxzb.js → use-members-DWszFm6D.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-dH1i29M9.js → use-navigate-to-agent-DQOeSZSb.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BI8SJdip.js → use-org-auth-client-BNkFwsu-.js} +1 -1
- package/dist/client/assets/{use-org-sso-Bu6LaLCR.js → use-org-sso-CqRALwPj.js} +1 -1
- package/dist/client/assets/{use-organization-roles-B0KSYwmX.js → use-organization-roles-CZxWWJmd.js} +1 -1
- package/dist/client/assets/{use-organization-settings-D_uQmc6t.js → use-organization-settings-DF1zVgfV.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CJD7y_Hf.js → use-registry-connections-DDZ2kJae.js} +1 -1
- package/dist/client/assets/{use-status-sounds-wWePNfCB.js → use-status-sounds-BeCVKlHT.js} +1 -1
- package/dist/client/assets/{use-tasks-E4DgLgCC.js → use-tasks-sf9lm6fu.js} +1 -1
- package/dist/client/assets/{use-view-mode-CD84Hr24.js → use-view-mode-D3O388Wv.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-B2HyEifd.js → use-virtual-mcp-CAY4xxsA.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DpFgBC5z.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-B_gLWLYH.js +1 -0
- package/dist/client/assets/{user-DHrkRSOp.js → user-Dt-2ZGGA.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Ca5N_NWs.js → view-mode-toggle-B4e_lOZL.js} +1 -1
- package/dist/client/assets/{workflow-D4cLwRQa.js → workflow-D0V_EvQ3.js} +1 -1
- package/dist/client/assets/workflow-detail-tYYnfOHI.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-D2Zq3NT4.js +0 -1
- package/dist/client/assets/registry-DGfJwk4U.js +0 -2
- package/dist/client/assets/store-registry-B8fwFO9X.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BCtGR5Vr.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BWaQBDcx.js +0 -1
- package/dist/client/assets/workflow-detail-Br_ZpkVl.js +0 -1
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +0 -60
- package/dist/server/node_modules/get-east-asian-width/index.js +0 -30
- package/dist/server/node_modules/get-east-asian-width/license +0 -9
- 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/mimic-fn/index.d.ts +0 -54
- package/dist/server/node_modules/mimic-fn/index.js +0 -13
- package/dist/server/node_modules/mimic-fn/license +0 -9
- package/dist/server/node_modules/mimic-fn/package.json +0 -42
- package/dist/server/node_modules/mimic-fn/readme.md +0 -69
- package/dist/server/node_modules/pg-cloudflare/LICENSE +0 -21
- 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/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/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/string-width/index.d.ts +0 -39
- package/dist/server/node_modules/string-width/index.js +0 -82
- package/dist/server/node_modules/string-width/license +0 -9
- package/dist/server/node_modules/string-width/package.json +0 -64
- package/dist/server/node_modules/string-width/readme.md +0 -66
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ambiguousRanges,
|
|
3
|
-
fullwidthRanges,
|
|
4
|
-
halfwidthRanges,
|
|
5
|
-
narrowRanges,
|
|
6
|
-
wideRanges,
|
|
7
|
-
} from './lookup-data.js';
|
|
8
|
-
import {isInRange} from './utilities.js';
|
|
9
|
-
|
|
10
|
-
const minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
11
|
-
const maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
12
|
-
const minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
13
|
-
const maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
14
|
-
const minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
15
|
-
const maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
16
|
-
const minimumNarrowCodePoint = narrowRanges[0];
|
|
17
|
-
const maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
18
|
-
const minimumWideCodePoint = wideRanges[0];
|
|
19
|
-
const maximumWideCodePoint = wideRanges.at(-1);
|
|
20
|
-
|
|
21
|
-
const commonCjkCodePoint = 0x4E_00;
|
|
22
|
-
const [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
23
|
-
|
|
24
|
-
// Use a hot-path range so common `isWide` calls can skip binary search.
|
|
25
|
-
// The range containing U+4E00 covers common CJK ideographs;
|
|
26
|
-
// fallback to the largest range for resilience to Unicode table changes.
|
|
27
|
-
function findWideFastPathRange(ranges) {
|
|
28
|
-
let fastPathStart = ranges[0];
|
|
29
|
-
let fastPathEnd = ranges[1];
|
|
30
|
-
|
|
31
|
-
for (let index = 0; index < ranges.length; index += 2) {
|
|
32
|
-
const start = ranges[index];
|
|
33
|
-
const end = ranges[index + 1];
|
|
34
|
-
|
|
35
|
-
if (
|
|
36
|
-
commonCjkCodePoint >= start
|
|
37
|
-
&& commonCjkCodePoint <= end
|
|
38
|
-
) {
|
|
39
|
-
return [start, end];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
if ((end - start) > (fastPathEnd - fastPathStart)) {
|
|
43
|
-
fastPathStart = start;
|
|
44
|
-
fastPathEnd = end;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return [fastPathStart, fastPathEnd];
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export const isAmbiguous = codePoint => {
|
|
52
|
-
if (
|
|
53
|
-
codePoint < minimumAmbiguousCodePoint
|
|
54
|
-
|| codePoint > maximumAmbiguousCodePoint
|
|
55
|
-
) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return isInRange(ambiguousRanges, codePoint);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export const isFullWidth = codePoint => {
|
|
63
|
-
if (
|
|
64
|
-
codePoint < minimumFullWidthCodePoint
|
|
65
|
-
|| codePoint > maximumFullWidthCodePoint
|
|
66
|
-
) {
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return isInRange(fullwidthRanges, codePoint);
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const isHalfWidth = codePoint => {
|
|
74
|
-
if (
|
|
75
|
-
codePoint < minimumHalfWidthCodePoint
|
|
76
|
-
|| codePoint > maximumHalfWidthCodePoint
|
|
77
|
-
) {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return isInRange(halfwidthRanges, codePoint);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
const isNarrow = codePoint => {
|
|
85
|
-
if (
|
|
86
|
-
codePoint < minimumNarrowCodePoint
|
|
87
|
-
|| codePoint > maximumNarrowCodePoint
|
|
88
|
-
) {
|
|
89
|
-
return false;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return isInRange(narrowRanges, codePoint);
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export const isWide = codePoint => {
|
|
96
|
-
if (
|
|
97
|
-
codePoint >= wideFastPathStart
|
|
98
|
-
&& codePoint <= wideFastPathEnd
|
|
99
|
-
) {
|
|
100
|
-
return true;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
if (
|
|
104
|
-
codePoint < minimumWideCodePoint
|
|
105
|
-
|| codePoint > maximumWideCodePoint
|
|
106
|
-
) {
|
|
107
|
-
return false;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return isInRange(wideRanges, codePoint);
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
export function getCategory(codePoint) {
|
|
114
|
-
if (isAmbiguous(codePoint)) {
|
|
115
|
-
return 'ambiguous';
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (isFullWidth(codePoint)) {
|
|
119
|
-
return 'fullwidth';
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (isHalfWidth(codePoint)) {
|
|
123
|
-
return 'halfwidth';
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if (isNarrow(codePoint)) {
|
|
127
|
-
return 'narrow';
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (isWide(codePoint)) {
|
|
131
|
-
return 'wide';
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
return 'neutral';
|
|
135
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "get-east-asian-width",
|
|
3
|
-
"version": "1.5.0",
|
|
4
|
-
"description": "Determine the East Asian Width of a Unicode character",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/get-east-asian-width",
|
|
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 && tsc index.d.ts",
|
|
24
|
-
"build": "node scripts/build.js",
|
|
25
|
-
"prepublish": "npm run build"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"index.js",
|
|
29
|
-
"index.d.ts",
|
|
30
|
-
"lookup.js",
|
|
31
|
-
"lookup-data.js",
|
|
32
|
-
"utilities.js"
|
|
33
|
-
],
|
|
34
|
-
"keywords": [
|
|
35
|
-
"unicode",
|
|
36
|
-
"east-asian-width",
|
|
37
|
-
"eastasianwidth",
|
|
38
|
-
"character",
|
|
39
|
-
"string",
|
|
40
|
-
"width",
|
|
41
|
-
"text",
|
|
42
|
-
"layout",
|
|
43
|
-
"alignment",
|
|
44
|
-
"fullwidth",
|
|
45
|
-
"halfwidth",
|
|
46
|
-
"ambiguous",
|
|
47
|
-
"narrow",
|
|
48
|
-
"wide",
|
|
49
|
-
"neutral",
|
|
50
|
-
"typography",
|
|
51
|
-
"japanese",
|
|
52
|
-
"chinese",
|
|
53
|
-
"korean",
|
|
54
|
-
"codepoint",
|
|
55
|
-
"text-processing",
|
|
56
|
-
"i18n",
|
|
57
|
-
"l10n"
|
|
58
|
-
],
|
|
59
|
-
"devDependencies": {
|
|
60
|
-
"ava": "^5.3.1",
|
|
61
|
-
"outdent": "^0.8.0",
|
|
62
|
-
"simplify-ranges": "^0.1.0",
|
|
63
|
-
"typescript": "^5.2.2",
|
|
64
|
-
"xo": "^0.56.0"
|
|
65
|
-
},
|
|
66
|
-
"xo": {
|
|
67
|
-
"ignores": [
|
|
68
|
-
"lookup-data.js"
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# get-east-asian-width
|
|
2
|
-
|
|
3
|
-
> Determine the [East Asian Width](https://unicode.org/reports/tr11/) of a Unicode character
|
|
4
|
-
|
|
5
|
-
> East Asian Width categorizes Unicode characters based on their occupied space in East Asian typography, which helps in text layout and alignment, particularly in languages like Japanese, Chinese, and Korean.
|
|
6
|
-
|
|
7
|
-
Unlike other similar packages, this package uses the latest Unicode data (which changes each year).
|
|
8
|
-
|
|
9
|
-
## Install
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
npm install get-east-asian-width
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
import {eastAsianWidth, eastAsianWidthType} from 'get-east-asian-width';
|
|
19
|
-
|
|
20
|
-
const codePoint = '字'.codePointAt(0);
|
|
21
|
-
|
|
22
|
-
console.log(eastAsianWidth(codePoint));
|
|
23
|
-
//=> 2
|
|
24
|
-
|
|
25
|
-
console.log(eastAsianWidthType(codePoint));
|
|
26
|
-
//=> 'wide'
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## `eastAsianWidth(codePoint: number, options?: object): 1 | 2`
|
|
30
|
-
|
|
31
|
-
Returns the width as a number for the given code point.
|
|
32
|
-
|
|
33
|
-
### options
|
|
34
|
-
|
|
35
|
-
Type: `object`
|
|
36
|
-
|
|
37
|
-
#### ambiguousAsWide
|
|
38
|
-
|
|
39
|
-
Type: `boolean`\
|
|
40
|
-
Default: `false`
|
|
41
|
-
|
|
42
|
-
Whether to treat an `'ambiguous'` character as wide.
|
|
43
|
-
|
|
44
|
-
```js
|
|
45
|
-
import {eastAsianWidth} from 'get-east-asian-width';
|
|
46
|
-
|
|
47
|
-
const codePoint = '⛣'.codePointAt(0);
|
|
48
|
-
|
|
49
|
-
console.log(eastAsianWidth(codePoint));
|
|
50
|
-
//=> 1
|
|
51
|
-
|
|
52
|
-
console.log(eastAsianWidth(codePoint, {ambiguousAsWide: true}));
|
|
53
|
-
//=> 2
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
> Ambiguous characters behave like wide or narrow characters depending on the context (language tag, script identification, associated font, source of data, or explicit markup; all can provide the context). **If the context cannot be established reliably, they should be treated as narrow characters by default.**
|
|
57
|
-
> - http://www.unicode.org/reports/tr11/
|
|
58
|
-
|
|
59
|
-
## `eastAsianWidthType(codePoint: number): 'fullwidth' | 'halfwidth' | 'wide' | 'narrow' | 'neutral' | 'ambiguous'`
|
|
60
|
-
|
|
61
|
-
Returns the type of “East Asian Width” for the given code point.
|
|
62
|
-
|
|
63
|
-
## Related
|
|
64
|
-
|
|
65
|
-
- [string-width](https://github.com/sindresorhus/string-width) - Get the visual width of a string
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Binary search on a sorted flat array of [start, end] pairs.
|
|
3
|
-
|
|
4
|
-
@param {number[]} ranges - Flat array of inclusive [start, end] range pairs, e.g. [0, 5, 10, 20].
|
|
5
|
-
@param {number} codePoint - The value to search for.
|
|
6
|
-
@returns {boolean} Whether the value falls within any of the ranges.
|
|
7
|
-
*/
|
|
8
|
-
export const isInRange = (ranges, codePoint) => {
|
|
9
|
-
let low = 0;
|
|
10
|
-
let high = Math.floor(ranges.length / 2) - 1;
|
|
11
|
-
while (low <= high) {
|
|
12
|
-
const mid = Math.floor((low + high) / 2);
|
|
13
|
-
const i = mid * 2;
|
|
14
|
-
if (codePoint < ranges[i]) {
|
|
15
|
-
high = mid - 1;
|
|
16
|
-
} else if (codePoint > ranges[i + 1]) {
|
|
17
|
-
low = mid + 1;
|
|
18
|
-
} else {
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return false;
|
|
24
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
declare const mimicFn: {
|
|
2
|
-
/**
|
|
3
|
-
Make a function mimic another one. It will copy over the properties `name`, `length`, `displayName`, and any custom properties you may have set.
|
|
4
|
-
|
|
5
|
-
@param to - Mimicking function.
|
|
6
|
-
@param from - Function to mimic.
|
|
7
|
-
@returns The modified `to` function.
|
|
8
|
-
|
|
9
|
-
@example
|
|
10
|
-
```
|
|
11
|
-
import mimicFn = require('mimic-fn');
|
|
12
|
-
|
|
13
|
-
function foo() {}
|
|
14
|
-
foo.unicorn = '🦄';
|
|
15
|
-
|
|
16
|
-
function wrapper() {
|
|
17
|
-
return foo();
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
console.log(wrapper.name);
|
|
21
|
-
//=> 'wrapper'
|
|
22
|
-
|
|
23
|
-
mimicFn(wrapper, foo);
|
|
24
|
-
|
|
25
|
-
console.log(wrapper.name);
|
|
26
|
-
//=> 'foo'
|
|
27
|
-
|
|
28
|
-
console.log(wrapper.unicorn);
|
|
29
|
-
//=> '🦄'
|
|
30
|
-
```
|
|
31
|
-
*/
|
|
32
|
-
<
|
|
33
|
-
ArgumentsType extends unknown[],
|
|
34
|
-
ReturnType,
|
|
35
|
-
FunctionType extends (...arguments: ArgumentsType) => ReturnType
|
|
36
|
-
>(
|
|
37
|
-
to: (...arguments: ArgumentsType) => ReturnType,
|
|
38
|
-
from: FunctionType
|
|
39
|
-
): FunctionType;
|
|
40
|
-
|
|
41
|
-
// TODO: Remove this for the next major release, refactor the whole definition to:
|
|
42
|
-
// declare function mimicFn<
|
|
43
|
-
// ArgumentsType extends unknown[],
|
|
44
|
-
// ReturnType,
|
|
45
|
-
// FunctionType extends (...arguments: ArgumentsType) => ReturnType
|
|
46
|
-
// >(
|
|
47
|
-
// to: (...arguments: ArgumentsType) => ReturnType,
|
|
48
|
-
// from: FunctionType
|
|
49
|
-
// ): FunctionType;
|
|
50
|
-
// export = mimicFn;
|
|
51
|
-
default: typeof mimicFn;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export = mimicFn;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const mimicFn = (to, from) => {
|
|
4
|
-
for (const prop of Reflect.ownKeys(from)) {
|
|
5
|
-
Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
return to;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
module.exports = mimicFn;
|
|
12
|
-
// TODO: Remove this for the next major release
|
|
13
|
-
module.exports.default = mimicFn;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mimic-fn",
|
|
3
|
-
"version": "2.1.0",
|
|
4
|
-
"description": "Make a function mimic another one",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/mimic-fn",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Sindre Sorhus",
|
|
9
|
-
"email": "sindresorhus@gmail.com",
|
|
10
|
-
"url": "sindresorhus.com"
|
|
11
|
-
},
|
|
12
|
-
"engines": {
|
|
13
|
-
"node": ">=6"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"test": "xo && ava && tsd"
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"index.js",
|
|
20
|
-
"index.d.ts"
|
|
21
|
-
],
|
|
22
|
-
"keywords": [
|
|
23
|
-
"function",
|
|
24
|
-
"mimic",
|
|
25
|
-
"imitate",
|
|
26
|
-
"rename",
|
|
27
|
-
"copy",
|
|
28
|
-
"inherit",
|
|
29
|
-
"properties",
|
|
30
|
-
"name",
|
|
31
|
-
"func",
|
|
32
|
-
"fn",
|
|
33
|
-
"set",
|
|
34
|
-
"infer",
|
|
35
|
-
"change"
|
|
36
|
-
],
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"ava": "^1.4.1",
|
|
39
|
-
"tsd": "^0.7.1",
|
|
40
|
-
"xo": "^0.24.0"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# mimic-fn [](https://travis-ci.org/sindresorhus/mimic-fn)
|
|
2
|
-
|
|
3
|
-
> Make a function mimic another one
|
|
4
|
-
|
|
5
|
-
Useful when you wrap a function in another function and like to preserve the original name and other properties.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## Install
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
$ npm install mimic-fn
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
const mimicFn = require('mimic-fn');
|
|
19
|
-
|
|
20
|
-
function foo() {}
|
|
21
|
-
foo.unicorn = '🦄';
|
|
22
|
-
|
|
23
|
-
function wrapper() {
|
|
24
|
-
return foo();
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
console.log(wrapper.name);
|
|
28
|
-
//=> 'wrapper'
|
|
29
|
-
|
|
30
|
-
mimicFn(wrapper, foo);
|
|
31
|
-
|
|
32
|
-
console.log(wrapper.name);
|
|
33
|
-
//=> 'foo'
|
|
34
|
-
|
|
35
|
-
console.log(wrapper.unicorn);
|
|
36
|
-
//=> '🦄'
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
## API
|
|
41
|
-
|
|
42
|
-
It will copy over the properties `name`, `length`, `displayName`, and any custom properties you may have set.
|
|
43
|
-
|
|
44
|
-
### mimicFn(to, from)
|
|
45
|
-
|
|
46
|
-
Modifies the `to` function and returns it.
|
|
47
|
-
|
|
48
|
-
#### to
|
|
49
|
-
|
|
50
|
-
Type: `Function`
|
|
51
|
-
|
|
52
|
-
Mimicking function.
|
|
53
|
-
|
|
54
|
-
#### from
|
|
55
|
-
|
|
56
|
-
Type: `Function`
|
|
57
|
-
|
|
58
|
-
Function to mimic.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
## Related
|
|
62
|
-
|
|
63
|
-
- [rename-fn](https://github.com/sindresorhus/rename-fn) - Rename a function
|
|
64
|
-
- [keep-func-props](https://github.com/ehmicky/keep-func-props) - Wrap a function without changing its name, length and other properties
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
## License
|
|
68
|
-
|
|
69
|
-
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2010 - 2021 Brian Carlson
|
|
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,112 +0,0 @@
|
|
|
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.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"empty.js","sourceRoot":"","sources":["../src/empty.ts"],"names":[],"mappings":";;AAAA,kFAAkF;AAClF,0CAA0C;AAC1C,kBAAe,EAAE,CAAA"}
|
|
@@ -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
|
-
}
|