decocms 2.302.0 → 2.302.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-Ckdo-RmI.js → AlertCircle-BkX4HzbS.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-Di3ykEwz.js → ArrowNarrowLeft-BebHkn1X.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DMSP1Bv9.js → ArrowUpRight-uszsF274.js} +1 -1
- package/dist/client/assets/{CheckCircle-C208sPuy.js → CheckCircle-Boq6G01L.js} +1 -1
- package/dist/client/assets/{ChevronDown-BrUt0Alw.js → ChevronDown-ByP-e484.js} +1 -1
- package/dist/client/assets/{ChevronRight-CGM8153k.js → ChevronRight-BUfZMnd9.js} +1 -1
- package/dist/client/assets/{ChevronUp-CaGbgeVw.js → ChevronUp-TwiYbtUW.js} +1 -1
- package/dist/client/assets/{Container-4Wg94L7I.js → Container-DzkLD13G.js} +1 -1
- package/dist/client/assets/{DotsVertical-DvRrSQFB.js → DotsVertical-BrUfBHwt.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Y0gD7h2D.js → LinkExternal01-gfL-Fk4b.js} +1 -1
- package/dist/client/assets/{Lock01-Dch0eKvp.js → Lock01-CI-miN4g.js} +1 -1
- package/dist/client/assets/{Palette-CgqIrvg1.js → Palette-1HvN4NnC.js} +1 -1
- package/dist/client/assets/{Play-CtLPh-DP.js → Play-O7ldNAxa.js} +1 -1
- package/dist/client/assets/{Plus-Bz8pOCrF.js → Plus-Bihyskqy.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-KEgE6miP.js → RefreshCcw01-BzT-xyrO.js} +1 -1
- package/dist/client/assets/{SearchMd-CVG2gI0e.js → SearchMd-vBRV-l3E.js} +1 -1
- package/dist/client/assets/{Settings02-BaHlQiS7.js → Settings02-eiwWD3s7.js} +1 -1
- package/dist/client/assets/{Shield01-CCtHgQuh.js → Shield01-D7ml37xT.js} +1 -1
- package/dist/client/assets/{Star01-C90LkDZI.js → Star01-ByzmPd4J.js} +1 -1
- package/dist/client/assets/{Sun-BxF03d45.js → Sun-xA_CdWAJ.js} +1 -1
- package/dist/client/assets/{Tool01-DA28S3sH.js → Tool01-Dqyo2VjJ.js} +1 -1
- package/dist/client/assets/{Trash01-DR27iFf1.js → Trash01-f4CvhuWB.js} +1 -1
- package/dist/client/assets/{User01-BujZcMbB.js → User01-lDhxACAV.js} +1 -1
- package/dist/client/assets/{Users03-CDTGNBm2.js → Users03-IortA-KV.js} +1 -1
- package/dist/client/assets/{X-DoHhdWpr.js → X-BiphajNJ.js} +1 -1
- package/dist/client/assets/{XCircle-Ds5a6kuE.js → XCircle-Dp1Lqd1t.js} +1 -1
- package/dist/client/assets/{XClose-C9Qfd8kZ.js → XClose-lRlzG-cb.js} +1 -1
- package/dist/client/assets/{Zap-BtQ-TzwR.js → Zap-ebWdIwXf.js} +1 -1
- package/dist/client/assets/{ZapSquare-DKBv2Oh1.js → ZapSquare-_fsDSSOX.js} +1 -1
- package/dist/client/assets/{accordion-isIiC_Tx.js → accordion-D3c87Mh0.js} +1 -1
- package/dist/client/assets/{agent-icon-DyZrsMHV.js → agent-icon-Be_PnRh0.js} +1 -1
- package/dist/client/assets/{agents-list-BsLb9TAC.js → agents-list-45a0yQhW.js} +1 -1
- package/dist/client/assets/ai-providers-BzCSRpkV.js +1 -0
- package/dist/client/assets/{alert-dialog-Cm675fIp.js → alert-dialog-BUApN05b.js} +1 -1
- package/dist/client/assets/{auth-catchall-CS4MwL4l.js → auth-catchall-DH0bWyBT.js} +1 -1
- package/dist/client/assets/{automation-list-row-BZZkY79g.js → automation-list-row-DETQBuFK.js} +1 -1
- package/dist/client/assets/{automations-EJo_cmjx.js → automations-DvIFzGM7.js} +1 -1
- package/dist/client/assets/{avatar-ejiIeuvT.js → avatar-BBnvw18x.js} +1 -1
- package/dist/client/assets/{badge-BCkY0osU.js → badge-CRHmlYav.js} +1 -1
- package/dist/client/assets/{brand-context-B-WDg8W9.js → brand-context-CH2SSDlY.js} +1 -1
- package/dist/client/assets/{card-KrDyjT9B.js → card-DoqftRz7.js} +1 -1
- package/dist/client/assets/{chat-context-D2ImJV4_.js → chat-context-JbYHex_O.js} +1 -1
- package/dist/client/assets/{checkbox-DdEbgSXy.js → checkbox-CHYA_sQZ.js} +1 -1
- package/dist/client/assets/{collection-detail-C1_S4Wby.js → collection-detail-Bb5ojn6D.js} +1 -1
- package/dist/client/assets/{collection-display-button-E32kWSQs.js → collection-display-button-C2ECPv0_.js} +1 -1
- package/dist/client/assets/{collection-search-CZ45K7il.js → collection-search-B8mdZm7u.js} +1 -1
- package/dist/client/assets/{collection-search-CjRFx7RJ.js → collection-search-C-2UZGyD.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D1SV8oPy.js → collection-table-wrapper-pDRU_Alr.js} +1 -1
- package/dist/client/assets/{collection-tabs-Ds23HSH3.js → collection-tabs-Bj7BShdC.js} +1 -1
- package/dist/client/assets/{collections-ClBK8Wc7.js → collections-CjrHbdtT.js} +1 -1
- package/dist/client/assets/{command-s8ocnxUp.js → command-CZWy1buB.js} +1 -1
- package/dist/client/assets/{connection-card-BOvFz0Xe.js → connection-card-HM9ImVMm.js} +1 -1
- package/dist/client/assets/{connection-detail-C9dHwvHg.js → connection-detail-CWdb5LvI.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CaMgKEzX.js → connection-form-helpers-Cr0s3TXQ.js} +1 -1
- package/dist/client/assets/{connections-D4jzt08s.js → connections-CpsKPW6X.js} +1 -1
- package/dist/client/assets/{constants-CVSLlYnf.js → constants-Cj0U39_n.js} +1 -1
- package/dist/client/assets/{constants-Bj37EyXz.js → constants-DE2tzNng.js} +1 -1
- package/dist/client/assets/{dialog-B9mCJ9u4.js → dialog-BdVY7mqq.js} +1 -1
- package/dist/client/assets/{domain-settings-E-eT2C2j.js → domain-settings-DALXcXKA.js} +1 -1
- package/dist/client/assets/{drawer-ChRbi3da.js → drawer-0C4xllAB.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BACFhEWG.js → dropdown-menu-Bq-aRZ_r.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-3-VjJB_9.js → dynamic-plugin-layout-CXa5_dk-.js} +1 -1
- package/dist/client/assets/{empty-state-Cd5nlZi8.js → empty-state-Cw5GxS3i.js} +1 -1
- package/dist/client/assets/{empty-state-CZHe0KuE.js → empty-state-S_EjXlZP.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DWwyWigS.js → extract-connection-data-DN-EBamj.js} +1 -1
- package/dist/client/assets/{features-CeatQ7gW.js → features-CZe-SpPx.js} +1 -1
- package/dist/client/assets/{form-Ouizhyq3.js → form-Stkhqjoi.js} +1 -1
- package/dist/client/assets/{general-DzoGsnH3.js → general-aMP5BKAQ.js} +1 -1
- package/dist/client/assets/{index-Dax7JqXc.js → index-B7sUvMqz.js} +1 -1
- package/dist/client/assets/{index-BSVWgf11.js → index-BP0vNLKa.js} +1 -1
- package/dist/client/assets/{index-CAaoqFy7.js → index-BY8F27EB.js} +1 -1
- package/dist/client/assets/{index-D2mful5a.js → index-BZhxvvXQ.js} +1 -1
- package/dist/client/assets/{index-Da_yXMmn.js → index-C--avMTn.js} +1 -1
- package/dist/client/assets/{index-6mSFDvZg.js → index-CAum6J1D.js} +1 -1
- package/dist/client/assets/{index-By6SCvFJ.js → index-ClNUcJ8s.js} +1 -1
- package/dist/client/assets/{index-2Scfn4rN.js → index-Crkc58Yb.js} +1 -1
- package/dist/client/assets/index-D2fHFr2F.js +1 -0
- package/dist/client/assets/{index-BS2wRqRL.js → index-D58bzP3p.js} +1 -1
- package/dist/client/assets/{index-D_jFKVK5.js → index-DCOURowK.js} +1 -1
- package/dist/client/assets/{index-RbRZk6ng.js → index-DhThG5rF.js} +3 -3
- package/dist/client/assets/{index-af7Ms30x.js → index-ZmvI6xf3.js} +1 -1
- package/dist/client/assets/{index-RBXYZ0o1.js → index-b_n-uXmh.js} +2 -2
- package/dist/client/assets/{index-fNW0SHRb.js → index-pdnGjAa-.js} +1 -1
- package/dist/client/assets/{index-D-Rzrt74.js → index-y9YjpvN-.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver--3YinOmX.js → infiniteQueryObserver-DMFjl81X.js} +1 -1
- package/dist/client/assets/{input-CbOPFA2Y.js → input-C80VzPpQ.js} +1 -1
- package/dist/client/assets/{integration-icon-BUk_AQZb.js → integration-icon-LX1nChXa.js} +1 -1
- package/dist/client/assets/{label-BSzDqn8Z.js → label-2a4WSF52.js} +1 -1
- package/dist/client/assets/{layout-Cbq9XvLR.js → layout-BAy6nHY2.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-C1G1_2au.js → lean-canvas-recruit-modal-C1vNRy0q.js} +1 -1
- package/dist/client/assets/{login-DCSomhku.js → login-BwOZspJc.js} +1 -1
- package/dist/client/assets/{members-DCjU7uUX.js → members-BxmUMFwY.js} +1 -1
- package/dist/client/assets/{monaco-editor-9MzrlDzJ.js → monaco-editor-BY6pRUNM.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DLYFByVX.js → monitoring-stats-row-BPKt_N1O.js} +1 -1
- package/dist/client/assets/{oauth-callback-CRR_q1-_.js → oauth-callback-Dkjb5tCM.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BcbJ_xLj.js → oauth-callback-ai-provider-mujJmFGt.js} +1 -1
- package/dist/client/assets/{onboarding-CSHiENj3.js → onboarding-C1DRaGue.js} +1 -1
- package/dist/client/assets/{org-layout-BQC1siIb.js → org-layout-DioVArtE.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-Cq_aAA1I.js → org-plugin-layout-BZoT2SIg.js} +1 -1
- package/dist/client/assets/{pair-C1Euf0mI.js → pair-CBvrXYZC.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DXXmUyFw.js → plugin-empty-state-DRAuC0gx.js} +1 -1
- package/dist/client/assets/{plugin-header-C-jLY3z-.js → plugin-header-Y35bsPBd.js} +1 -1
- package/dist/client/assets/{plugin-layout-oOgBG5IP.js → plugin-layout-BM2m7Nsv.js} +1 -1
- package/dist/client/assets/{popover-DC-xnLvX.js → popover-CALdcEX7.js} +1 -1
- package/dist/client/assets/{profile-DDufPRp2.js → profile-Cz2Ymv3u.js} +1 -1
- package/dist/client/assets/{project-app-view-CFJH3_Mb.js → project-app-view-BJIaTnR2.js} +1 -1
- package/dist/client/assets/registry-Bm6dPwQv.js +2 -0
- package/dist/client/assets/{registry-layout-Bt8B6WZA.js → registry-layout-Bg8yl9if.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DxzQFSub.js → required-auth-layout-CnSE-XLF.js} +1 -1
- package/dist/client/assets/{reset-password-MIshTkTR.js → reset-password-BEfzUzVH.js} +1 -1
- package/dist/client/assets/{roles-Cvj_YJQC.js → roles-CFSaKkJP.js} +1 -1
- package/dist/client/assets/{scroll-area-DwYUYaC4.js → scroll-area-18YOEnqD.js} +1 -1
- package/dist/client/assets/{search-input-CDHPjad4.js → search-input-6INcGAwd.js} +1 -1
- package/dist/client/assets/{select-8rqyX4yY.js → select-CaDZpVbI.js} +1 -1
- package/dist/client/assets/{select-model-D8dh5nJb.js → select-model-S5cFobu5.js} +1 -1
- package/dist/client/assets/{settings-layout-BgvnZybr.js → settings-layout-jEkhhHU3.js} +1 -1
- package/dist/client/assets/{settings-section-HtqNxJHw.js → settings-section-e84UGEbx.js} +1 -1
- package/dist/client/assets/{shell-layout-A5EcvKv7.js → shell-layout-Cdsgdqci.js} +1 -1
- package/dist/client/assets/{skeleton-DMH6jOOd.js → skeleton-DCXc9Mjl.js} +1 -1
- package/dist/client/assets/{sso-DNkuSn5z.js → sso-DTC2FHjx.js} +1 -1
- package/dist/client/assets/{store-CLctbbGQ.js → store-pc-wftmt.js} +1 -1
- package/dist/client/assets/store-registry-BCuueIrr.js +2 -0
- package/dist/client/assets/{switch-ClAJkK47.js → switch-BUxRExf5.js} +1 -1
- package/dist/client/assets/{table-Cwoyxo1t.js → table-CT5HWSPV.js} +1 -1
- package/dist/client/assets/{tabs-Bw1wvZLY.js → tabs-Cge-9ZTd.js} +1 -1
- package/dist/client/assets/{task-status-BwNSpCPo.js → task-status-tGA8S8H-.js} +1 -1
- package/dist/client/assets/{textarea-grS6dvzw.js → textarea-Dx8hdqfA.js} +1 -1
- package/dist/client/assets/{toggle-group-CrcMNw0M.js → toggle-group-psHBbDPI.js} +1 -1
- package/dist/client/assets/{tools-list-B0HLMLQ4.js → tools-list-tDufGw9O.js} +1 -1
- package/dist/client/assets/{tooltip-l5gvSkP4.js → tooltip-B-nRvfy-.js} +1 -1
- package/dist/client/assets/{types-sSi2ZBaJ.js → types-hw9no7At.js} +1 -1
- package/dist/client/assets/{use-ai-providers-NGnYqkjZ.js → use-ai-providers-Bc_Jl0e6.js} +1 -1
- package/dist/client/assets/{use-collections-XPoz4bQ4.js → use-collections-CqIGWKSp.js} +1 -1
- package/dist/client/assets/{use-connection-KIdOMYYB.js → use-connection-DuXPSqwF.js} +1 -1
- package/dist/client/assets/{use-copy-BEHVkdeL.js → use-copy-CJlR4d5Y.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B7_E4z0n.js → use-create-virtual-mcp-B-gULvH7.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BB7Ade2O.js → use-decopilot-events-CWIgEPKA.js} +1 -1
- package/dist/client/assets/{use-delete-connection-ClDFtLys.js → use-delete-connection-mOKpqJ4Z.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BDQxIw_a.js → use-infinite-scroll-HGu4x7ZU.js} +1 -1
- package/dist/client/assets/{use-list-state-C-KeL9mx.js → use-list-state-Dlljnhsv.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CvCxJUq7.js → use-mcp-tools-BkDSNv3W.js} +1 -1
- package/dist/client/assets/{use-members-CkSy6C1r.js → use-members-8sha4K9R.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-h3H44Uqx.js → use-navigate-to-agent-B5j-9-p3.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C4jj13SA.js → use-org-auth-client-Ev284uyK.js} +1 -1
- package/dist/client/assets/{use-org-sso-CzzIybhJ.js → use-org-sso-CD6laYaL.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BFtXNMrL.js → use-organization-roles-CN53ZUes.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DQaAYRBc.js → use-organization-settings-DFNDQvXK.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Bw9vDyMz.js → use-registry-connections-D1xCWobU.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Cb3X5ULl.js → use-status-sounds-ojr3d2EQ.js} +1 -1
- package/dist/client/assets/{use-tasks-CU4nRSG8.js → use-tasks-DFEEn9nC.js} +1 -1
- package/dist/client/assets/{use-view-mode-dkizD-HG.js → use-view-mode-BjLGHFfJ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-D1lThWcu.js → use-virtual-mcp-Qy5dDA1Q.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B82zG1fE.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-4BiVmPoE.js +1 -0
- package/dist/client/assets/{user-BuZ7YF8y.js → user-ysfLNnXi.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CV8uckCG.js → view-mode-toggle-C5L447if.js} +1 -1
- package/dist/client/assets/{workflow-YqAcYHT8.js → workflow-CWouU_7K.js} +1 -1
- package/dist/client/assets/workflow-detail-rg2LspQv.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +45 -13
- package/dist/server/node_modules/ansi-regex/index.d.ts +33 -0
- package/dist/server/node_modules/ansi-regex/index.js +14 -0
- package/dist/server/node_modules/ansi-regex/package.json +61 -0
- package/dist/server/node_modules/ansi-regex/readme.md +66 -0
- package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/dist/server/node_modules/emoji-regex/README.md +107 -0
- package/dist/server/node_modules/emoji-regex/index.d.ts +3 -0
- package/dist/server/node_modules/emoji-regex/index.js +4 -0
- package/dist/server/node_modules/emoji-regex/index.mjs +4 -0
- package/dist/server/node_modules/emoji-regex/package.json +45 -0
- package/dist/server/node_modules/environment/index.d.ts +74 -0
- package/dist/server/node_modules/environment/index.js +47 -0
- package/dist/server/node_modules/{slice-ansi → environment}/license +0 -1
- package/dist/server/node_modules/environment/package.json +74 -0
- package/dist/server/node_modules/environment/readme.md +94 -0
- package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
- package/dist/server/node_modules/escape-string-regexp/license +9 -0
- package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
- package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
- package/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
- package/dist/server/node_modules/is-unicode-supported/license +9 -0
- package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
- package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
- package/dist/server/node_modules/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/server.js +44 -12
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-kn1jtlDC.js +0 -1
- package/dist/client/assets/index-YEyIkTha.js +0 -1
- package/dist/client/assets/registry-DtbT4EGB.js +0 -2
- package/dist/client/assets/store-registry-9hOokAwZ.js +0 -2
- package/dist/client/assets/useInfiniteQuery-PRD417UA.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-j6nsOPAl.js +0 -1
- package/dist/client/assets/workflow-detail-BNKITpZa.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/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/LICENSE +0 -21
- 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/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/{get-east-asian-width → ansi-regex}/license +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "escape-string-regexp",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Escape RegExp special characters",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/escape-string-regexp",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"maintainers": [
|
|
13
|
+
"Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)",
|
|
14
|
+
"Joshua Boy Nicolai Appelman <joshua@jbna.nl> (jbna.nl)"
|
|
15
|
+
],
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=8"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"test": "xo && ava && tsd"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"index.js",
|
|
24
|
+
"index.d.ts"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"escape",
|
|
28
|
+
"regex",
|
|
29
|
+
"regexp",
|
|
30
|
+
"re",
|
|
31
|
+
"regular",
|
|
32
|
+
"expression",
|
|
33
|
+
"string",
|
|
34
|
+
"str",
|
|
35
|
+
"special",
|
|
36
|
+
"characters"
|
|
37
|
+
],
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"ava": "^1.4.1",
|
|
40
|
+
"tsd": "^0.7.2",
|
|
41
|
+
"xo": "^0.24.0"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# escape-string-regexp [](https://travis-ci.org/sindresorhus/escape-string-regexp)
|
|
2
|
+
|
|
3
|
+
> Escape RegExp special characters
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install escape-string-regexp
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const escapeStringRegexp = require('escape-string-regexp');
|
|
17
|
+
|
|
18
|
+
const escapedString = escapeStringRegexp('How much $ for a 🦄?');
|
|
19
|
+
//=> 'How much \\$ for a 🦄\\?'
|
|
20
|
+
|
|
21
|
+
new RegExp(escapedString);
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import process from 'node:process';
|
|
2
|
+
|
|
3
|
+
export default function isUnicodeSupported() {
|
|
4
|
+
const {env} = process;
|
|
5
|
+
const {TERM, TERM_PROGRAM} = env;
|
|
6
|
+
|
|
7
|
+
if (process.platform !== 'win32') {
|
|
8
|
+
return TERM !== 'linux'; // Linux console (kernel)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return Boolean(env.WT_SESSION) // Windows Terminal
|
|
12
|
+
|| Boolean(env.TERMINUS_SUBLIME) // Terminus (<0.2.27)
|
|
13
|
+
|| env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder
|
|
14
|
+
|| TERM_PROGRAM === 'Terminus-Sublime'
|
|
15
|
+
|| TERM_PROGRAM === 'vscode'
|
|
16
|
+
|| TERM === 'xterm-256color'
|
|
17
|
+
|| TERM === 'alacritty'
|
|
18
|
+
|| TERM === 'rxvt-unicode'
|
|
19
|
+
|| TERM === 'rxvt-unicode-256color'
|
|
20
|
+
|| env.TERMINAL_EMULATOR === 'JetBrains-JediTerm';
|
|
21
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://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.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "is-unicode-supported",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "Detect whether the terminal supports Unicode",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/is-unicode-supported",
|
|
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
|
+
"terminal",
|
|
31
|
+
"unicode",
|
|
32
|
+
"detect",
|
|
33
|
+
"utf8",
|
|
34
|
+
"console",
|
|
35
|
+
"shell",
|
|
36
|
+
"support",
|
|
37
|
+
"supports",
|
|
38
|
+
"supported",
|
|
39
|
+
"check",
|
|
40
|
+
"detection"
|
|
41
|
+
],
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"ava": "^6.1.3",
|
|
44
|
+
"tsd": "^0.31.2",
|
|
45
|
+
"xo": "^0.59.3"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# is-unicode-supported
|
|
2
|
+
|
|
3
|
+
> Detect whether the terminal supports Unicode
|
|
4
|
+
|
|
5
|
+
This can be useful to decide whether to use Unicode characters or fallback ASCII characters in command-line output.
|
|
6
|
+
|
|
7
|
+
Note that the check is quite naive. It just assumes all non-Windows terminals support Unicode and hard-codes which Windows terminals that do support Unicode. However, I have been using this logic in some popular packages for years without problems.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install is-unicode-supported
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
import isUnicodeSupported from 'is-unicode-supported';
|
|
19
|
+
|
|
20
|
+
isUnicodeSupported();
|
|
21
|
+
//=> true
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## API
|
|
25
|
+
|
|
26
|
+
### isUnicodeSupported()
|
|
27
|
+
|
|
28
|
+
Returns a `boolean` for whether the terminal supports Unicode.
|
|
29
|
+
|
|
30
|
+
## Related
|
|
31
|
+
|
|
32
|
+
- [is-interactive](https://github.com/sindresorhus/is-interactive) - Check if stdout or stderr is interactive
|
|
33
|
+
- [supports-color](https://github.com/chalk/supports-color) - Detect whether a terminal supports color
|
|
34
|
+
- [figures](https://github.com/sindresorhus/figures) - Unicode symbols with Windows fallbacks
|
|
35
|
+
- [log-symbols](https://github.com/sindresorhus/log-symbols) - Colored symbols for various log levels
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import process from 'node:process';
|
|
2
|
+
import onetime from 'onetime';
|
|
3
|
+
import signalExit from 'signal-exit';
|
|
4
|
+
|
|
5
|
+
const restoreCursor = onetime(() => {
|
|
6
|
+
signalExit(() => {
|
|
7
|
+
process.stderr.write('\u001B[?25h');
|
|
8
|
+
}, {alwaysLast: true});
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export default restoreCursor;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://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.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "restore-cursor",
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"description": "Gracefully restore the CLI cursor on exit",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/restore-cursor",
|
|
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": "./index.js",
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"test": "xo && tsd"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"index.js",
|
|
23
|
+
"index.d.ts"
|
|
24
|
+
],
|
|
25
|
+
"keywords": [
|
|
26
|
+
"exit",
|
|
27
|
+
"quit",
|
|
28
|
+
"process",
|
|
29
|
+
"graceful",
|
|
30
|
+
"shutdown",
|
|
31
|
+
"sigterm",
|
|
32
|
+
"sigint",
|
|
33
|
+
"terminate",
|
|
34
|
+
"kill",
|
|
35
|
+
"stop",
|
|
36
|
+
"cli",
|
|
37
|
+
"cursor",
|
|
38
|
+
"ansi",
|
|
39
|
+
"show",
|
|
40
|
+
"term",
|
|
41
|
+
"terminal",
|
|
42
|
+
"console",
|
|
43
|
+
"tty",
|
|
44
|
+
"shell",
|
|
45
|
+
"command-line"
|
|
46
|
+
],
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"onetime": "^5.1.0",
|
|
49
|
+
"signal-exit": "^3.0.2"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"tsd": "^0.7.2",
|
|
53
|
+
"xo": "^0.24.0"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# restore-cursor
|
|
2
|
+
|
|
3
|
+
> Gracefully restore the CLI cursor on exit
|
|
4
|
+
|
|
5
|
+
Prevent the cursor you've hidden interactively from remaining hidden if the process crashes.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
$ npm install restore-cursor
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import restoreCursor from 'restore-cursor';
|
|
17
|
+
|
|
18
|
+
restoreCursor();
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
<div align="center">
|
|
24
|
+
<b>
|
|
25
|
+
<a href="https://tidelift.com/subscription/pkg/npm-restore-cursor?utm_source=npm-restore-cursor&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
|
26
|
+
</b>
|
|
27
|
+
<br>
|
|
28
|
+
<sub>
|
|
29
|
+
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
|
30
|
+
</sub>
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type Options = {
|
|
2
|
+
/**
|
|
3
|
+
Count [ambiguous width characters](https://www.unicode.org/reports/tr11/#Ambiguous) as having narrow width (count of 1) instead of wide width (count of 2).
|
|
4
|
+
|
|
5
|
+
@default true
|
|
6
|
+
|
|
7
|
+
> 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.__
|
|
8
|
+
> - http://www.unicode.org/reports/tr11/
|
|
9
|
+
*/
|
|
10
|
+
readonly ambiguousIsNarrow?: boolean;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
Whether [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) should be counted.
|
|
14
|
+
|
|
15
|
+
@default false
|
|
16
|
+
*/
|
|
17
|
+
readonly countAnsiEscapeCodes?: boolean;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
Get the visual width of a string - the number of columns required to display it.
|
|
22
|
+
|
|
23
|
+
Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
|
|
24
|
+
|
|
25
|
+
@example
|
|
26
|
+
```
|
|
27
|
+
import stringWidth from 'string-width';
|
|
28
|
+
|
|
29
|
+
stringWidth('a');
|
|
30
|
+
//=> 1
|
|
31
|
+
|
|
32
|
+
stringWidth('古');
|
|
33
|
+
//=> 2
|
|
34
|
+
|
|
35
|
+
stringWidth('\u001B[1m古\u001B[22m');
|
|
36
|
+
//=> 2
|
|
37
|
+
```
|
|
38
|
+
*/
|
|
39
|
+
export default function stringWidth(string: string, options?: Options): number;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import stripAnsi from 'strip-ansi';
|
|
2
|
+
import {eastAsianWidth} from 'get-east-asian-width';
|
|
3
|
+
import emojiRegex from 'emoji-regex';
|
|
4
|
+
|
|
5
|
+
const segmenter = new Intl.Segmenter();
|
|
6
|
+
|
|
7
|
+
const defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
|
|
8
|
+
|
|
9
|
+
export default function stringWidth(string, options = {}) {
|
|
10
|
+
if (typeof string !== 'string' || string.length === 0) {
|
|
11
|
+
return 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const {
|
|
15
|
+
ambiguousIsNarrow = true,
|
|
16
|
+
countAnsiEscapeCodes = false,
|
|
17
|
+
} = options;
|
|
18
|
+
|
|
19
|
+
if (!countAnsiEscapeCodes) {
|
|
20
|
+
string = stripAnsi(string);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (string.length === 0) {
|
|
24
|
+
return 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
let width = 0;
|
|
28
|
+
const eastAsianWidthOptions = {ambiguousAsWide: !ambiguousIsNarrow};
|
|
29
|
+
|
|
30
|
+
for (const {segment: character} of segmenter.segment(string)) {
|
|
31
|
+
const codePoint = character.codePointAt(0);
|
|
32
|
+
|
|
33
|
+
// Ignore control characters
|
|
34
|
+
if (codePoint <= 0x1F || (codePoint >= 0x7F && codePoint <= 0x9F)) {
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Ignore zero-width characters
|
|
39
|
+
if (
|
|
40
|
+
(codePoint >= 0x20_0B && codePoint <= 0x20_0F) // Zero-width space, non-joiner, joiner, left-to-right mark, right-to-left mark
|
|
41
|
+
|| codePoint === 0xFE_FF // Zero-width no-break space
|
|
42
|
+
) {
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Ignore combining characters
|
|
47
|
+
if (
|
|
48
|
+
(codePoint >= 0x3_00 && codePoint <= 0x3_6F) // Combining diacritical marks
|
|
49
|
+
|| (codePoint >= 0x1A_B0 && codePoint <= 0x1A_FF) // Combining diacritical marks extended
|
|
50
|
+
|| (codePoint >= 0x1D_C0 && codePoint <= 0x1D_FF) // Combining diacritical marks supplement
|
|
51
|
+
|| (codePoint >= 0x20_D0 && codePoint <= 0x20_FF) // Combining diacritical marks for symbols
|
|
52
|
+
|| (codePoint >= 0xFE_20 && codePoint <= 0xFE_2F) // Combining half marks
|
|
53
|
+
) {
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Ignore surrogate pairs
|
|
58
|
+
if (codePoint >= 0xD8_00 && codePoint <= 0xDF_FF) {
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Ignore variation selectors
|
|
63
|
+
if (codePoint >= 0xFE_00 && codePoint <= 0xFE_0F) {
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// This covers some of the above cases, but we still keep them for performance reasons.
|
|
68
|
+
if (defaultIgnorableCodePointRegex.test(character)) {
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// TODO: Use `/\p{RGI_Emoji}/v` when targeting Node.js 20.
|
|
73
|
+
if (emojiRegex().test(character)) {
|
|
74
|
+
width += 2;
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return width;
|
|
82
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://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.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "string-width",
|
|
3
|
+
"version": "7.2.0",
|
|
4
|
+
"description": "Get the visual width of a string - the number of columns required to display it",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/string-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 && tsd"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"index.js",
|
|
27
|
+
"index.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"keywords": [
|
|
30
|
+
"string",
|
|
31
|
+
"character",
|
|
32
|
+
"unicode",
|
|
33
|
+
"width",
|
|
34
|
+
"visual",
|
|
35
|
+
"column",
|
|
36
|
+
"columns",
|
|
37
|
+
"fullwidth",
|
|
38
|
+
"full-width",
|
|
39
|
+
"full",
|
|
40
|
+
"ansi",
|
|
41
|
+
"escape",
|
|
42
|
+
"codes",
|
|
43
|
+
"cli",
|
|
44
|
+
"command-line",
|
|
45
|
+
"terminal",
|
|
46
|
+
"console",
|
|
47
|
+
"cjk",
|
|
48
|
+
"chinese",
|
|
49
|
+
"japanese",
|
|
50
|
+
"korean",
|
|
51
|
+
"fixed-width",
|
|
52
|
+
"east-asian-width"
|
|
53
|
+
],
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"emoji-regex": "^10.3.0",
|
|
56
|
+
"get-east-asian-width": "^1.0.0",
|
|
57
|
+
"strip-ansi": "^7.1.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"ava": "^5.3.1",
|
|
61
|
+
"tsd": "^0.29.0",
|
|
62
|
+
"xo": "^0.56.0"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# string-width
|
|
2
|
+
|
|
3
|
+
> Get the visual width of a string - the number of columns required to display it
|
|
4
|
+
|
|
5
|
+
Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
|
|
6
|
+
|
|
7
|
+
Useful to be able to measure the actual width of command-line output.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install string-width
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
import stringWidth from 'string-width';
|
|
19
|
+
|
|
20
|
+
stringWidth('a');
|
|
21
|
+
//=> 1
|
|
22
|
+
|
|
23
|
+
stringWidth('古');
|
|
24
|
+
//=> 2
|
|
25
|
+
|
|
26
|
+
stringWidth('\u001B[1m古\u001B[22m');
|
|
27
|
+
//=> 2
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## API
|
|
31
|
+
|
|
32
|
+
### stringWidth(string, options?)
|
|
33
|
+
|
|
34
|
+
#### string
|
|
35
|
+
|
|
36
|
+
Type: `string`
|
|
37
|
+
|
|
38
|
+
The string to be counted.
|
|
39
|
+
|
|
40
|
+
#### options
|
|
41
|
+
|
|
42
|
+
Type: `object`
|
|
43
|
+
|
|
44
|
+
##### ambiguousIsNarrow
|
|
45
|
+
|
|
46
|
+
Type: `boolean`\
|
|
47
|
+
Default: `true`
|
|
48
|
+
|
|
49
|
+
Count [ambiguous width characters](https://www.unicode.org/reports/tr11/#Ambiguous) as having narrow width (count of 1) instead of wide width (count of 2).
|
|
50
|
+
|
|
51
|
+
> 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.**
|
|
52
|
+
> - http://www.unicode.org/reports/tr11/
|
|
53
|
+
|
|
54
|
+
##### countAnsiEscapeCodes
|
|
55
|
+
|
|
56
|
+
Type: `boolean`\
|
|
57
|
+
Default: `false`
|
|
58
|
+
|
|
59
|
+
Whether [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) should be counted.
|
|
60
|
+
|
|
61
|
+
## Related
|
|
62
|
+
|
|
63
|
+
- [string-width-cli](https://github.com/sindresorhus/string-width-cli) - CLI for this module
|
|
64
|
+
- [string-length](https://github.com/sindresorhus/string-length) - Get the real length of a string
|
|
65
|
+
- [widest-line](https://github.com/sindresorhus/widest-line) - Get the visual width of the widest line in a string
|
|
66
|
+
- [get-east-asian-width](https://github.com/sindresorhus/get-east-asian-width) - Determine the East Asian Width of a Unicode character
|