decocms 2.316.3 → 2.318.0
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-CIhNxTTl.js → AlertCircle-D7In04VZ.js} +1 -1
- package/dist/client/assets/{Archive-DOUYQc8s.js → Archive-DaxWSUle.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-B1LOVgdw.js → ArrowNarrowLeft-I0Rr4fru.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BXCPGKW0.js → ArrowUpRight-Cl4DoJ1w.js} +1 -1
- package/dist/client/assets/{Check-CV-PYcTx.js → Check-nv67ec3-.js} +1 -1
- package/dist/client/assets/{CheckCircle-DSnO-ZRF.js → CheckCircle-ByasFo1p.js} +1 -1
- package/dist/client/assets/{ChevronDown-d1XZuPx_.js → ChevronDown-Brvsr3Fl.js} +1 -1
- package/dist/client/assets/{ChevronRight-OA6RE0bm.js → ChevronRight-PLlU1t0W.js} +1 -1
- package/dist/client/assets/{ChevronUp-BPXArXn4.js → ChevronUp-VDqvRLBN.js} +1 -1
- package/dist/client/assets/{Container-D2TENyxw.js → Container-DTioRpeZ.js} +1 -1
- package/dist/client/assets/{DotsVertical-CkjufnVc.js → DotsVertical-DSgmYETN.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CdHsorDG.js → LayoutLeft-CG8cspKX.js} +1 -1
- package/dist/client/assets/{LinkExternal01-C_Dp-9up.js → LinkExternal01-FKIQuNsM.js} +1 -1
- package/dist/client/assets/{Lock01-DbAsRqsB.js → Lock01-XwPtPsiy.js} +1 -1
- package/dist/client/assets/{Palette-TGj5HRZ0.js → Palette-DGf3gs0h.js} +1 -1
- package/dist/client/assets/{Play-Bqd6KoLL.js → Play-BUgAN2i6.js} +1 -1
- package/dist/client/assets/{Plus-DU1c_qIh.js → Plus-Bk1OvOXE.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-D_ZQRj8n.js → RefreshCcw01-CeTSzQsT.js} +1 -1
- package/dist/client/assets/{SearchMd-D2HCX03E.js → SearchMd-Bo6RzH5Q.js} +1 -1
- package/dist/client/assets/{Settings02-DvgEzqo-.js → Settings02-uL3uu5-7.js} +1 -1
- package/dist/client/assets/{Shield01-Bam4M-YR.js → Shield01-OH6-JWjw.js} +1 -1
- package/dist/client/assets/{Star01-eRHoMpoz.js → Star01-_us4XpQn.js} +1 -1
- package/dist/client/assets/{Sun-CK-d8u_d.js → Sun-Zv-PWUwn.js} +1 -1
- package/dist/client/assets/{Tool01-DXA_DwTO.js → Tool01-DUGZCBMz.js} +1 -1
- package/dist/client/assets/{Trash01-C98MAtHO.js → Trash01-AR9qKMZU.js} +1 -1
- package/dist/client/assets/{User01-Ci3O3rgG.js → User01-3xBsy6wV.js} +1 -1
- package/dist/client/assets/{Users03-BE87UJzh.js → Users03-B0r4bSLn.js} +1 -1
- package/dist/client/assets/{X-C8gNxXPZ.js → X-DDQYEU6o.js} +1 -1
- package/dist/client/assets/{XCircle-DcF4hahE.js → XCircle-B14ynTvz.js} +1 -1
- package/dist/client/assets/{XClose-DM_WC7Hv.js → XClose-DwaprZxL.js} +1 -1
- package/dist/client/assets/{Zap-BtcijgPp.js → Zap-EburzyyI.js} +1 -1
- package/dist/client/assets/{ZapSquare-ugGzur7h.js → ZapSquare-DgAVTy7i.js} +1 -1
- package/dist/client/assets/{accordion-eVPt3AxV.js → accordion-CNGIXlRh.js} +1 -1
- package/dist/client/assets/{agent-icon-BaSFWyhf.js → agent-icon-CDOpQPVP.js} +1 -1
- package/dist/client/assets/{agents-list-Bs-Qg8TC.js → agents-list-Bie-B6KO.js} +1 -1
- package/dist/client/assets/{ai-providers-goX3mYeT.js → ai-providers-sx9fCpX9.js} +1 -1
- package/dist/client/assets/{alert-dialog-B28bzmjR.js → alert-dialog-DzUiFLm5.js} +1 -1
- package/dist/client/assets/{auth-catchall-D8AsZk2D.js → auth-catchall-Db6wnMxY.js} +1 -1
- package/dist/client/assets/{automation-list-row-Cw-nvI9t.js → automation-list-row-DA67TUpG.js} +1 -1
- package/dist/client/assets/{automations-CIogEm_v.js → automations-D5gbOL8y.js} +1 -1
- package/dist/client/assets/{avatar-BccIYZD6.js → avatar-JFkuXk7Y.js} +1 -1
- package/dist/client/assets/{badge-B7UYPtu8.js → badge-D0TDvkU5.js} +1 -1
- package/dist/client/assets/{brand-context-GjgBMUq2.js → brand-context-VXYVmQXI.js} +1 -1
- package/dist/client/assets/{card-e_SApZv-.js → card-NxdWcP2Y.js} +1 -1
- package/dist/client/assets/{chat-context-BGitM-1g.js → chat-context-BpeMEIll.js} +1 -1
- package/dist/client/assets/{checkbox-BwDKjjzH.js → checkbox-q_vRqr9W.js} +1 -1
- package/dist/client/assets/{collection-detail-CWgaM8qe.js → collection-detail-C0n6W9bV.js} +1 -1
- package/dist/client/assets/{collection-display-button-C5UVbYH9.js → collection-display-button-BDkguG0j.js} +1 -1
- package/dist/client/assets/{collection-search-BSC882az.js → collection-search-B_PTLHi8.js} +1 -1
- package/dist/client/assets/{collection-search-CXkehpMy.js → collection-search-CMNBGaQC.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DBwS-ncE.js → collection-table-wrapper-CCajoTAy.js} +1 -1
- package/dist/client/assets/{collection-tabs-BIBHPtug.js → collection-tabs-CAm-q3uz.js} +1 -1
- package/dist/client/assets/{collections-CgxUTBvp.js → collections-CreMYLs8.js} +1 -1
- package/dist/client/assets/{command-DTQGiHmi.js → command-B9OPYg11.js} +1 -1
- package/dist/client/assets/{connection-card-BrngMsBW.js → connection-card-C06IRcu3.js} +1 -1
- package/dist/client/assets/{connection-detail-CCeKFmMl.js → connection-detail-z9x5FbvM.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DlHOUpQU.js → connection-form-helpers-n0-EInK6.js} +1 -1
- package/dist/client/assets/{connections-BZs9OYYi.js → connections-CH6W6L6i.js} +1 -1
- package/dist/client/assets/{constants-aoAzOZlb.js → constants-B0L3jJTH.js} +1 -1
- package/dist/client/assets/{constants-CiNOCN3_.js → constants-fVwC9Czh.js} +1 -1
- package/dist/client/assets/{dialog-D9JDljl1.js → dialog-qtKrSwKA.js} +1 -1
- package/dist/client/assets/{domain-settings-b037kHqN.js → domain-settings-P92TIE-X.js} +1 -1
- package/dist/client/assets/{drawer-CPYyZD60.js → drawer-B0OHUPPF.js} +1 -1
- package/dist/client/assets/{dropdown-menu-v2GBEFa6.js → dropdown-menu-BnaZE7Qd.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DmLmlikq.js → dynamic-plugin-layout-BLT1-t7U.js} +1 -1
- package/dist/client/assets/{empty-state-Qo0QLKm5.js → empty-state-BCr9v4T1.js} +1 -1
- package/dist/client/assets/{empty-state-DzxY5CBA.js → empty-state-Bd4cGUaH.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C2xJ0Fj_.js → extract-connection-data-D7Vkjtul.js} +1 -1
- package/dist/client/assets/{features-_6JkrMwd.js → features-BMjb9wKO.js} +1 -1
- package/dist/client/assets/{form-B4UBGEp5.js → form-dz7U0CZK.js} +1 -1
- package/dist/client/assets/{general-BHYjmLRM.js → general-jiXD2EYY.js} +1 -1
- package/dist/client/assets/index-B1sAFND8.js +1 -0
- package/dist/client/assets/{index-cnKKVRZj.js → index-BK7vZkwz.js} +1 -1
- package/dist/client/assets/index-BMBxMDI7.js +1 -0
- package/dist/client/assets/index-BOaGE1aK.js +1 -0
- package/dist/client/assets/{index-C45moMcG.js → index-BTxYkYBr.js} +1 -1
- package/dist/client/assets/{index-B85sFotX.js → index-CB6J7z90.js} +1 -1
- package/dist/client/assets/{index--m7BENdv.js → index-CHYuwbgr.js} +1 -1
- package/dist/client/assets/{index-DoCu980b.js → index-CtMy8ETw.js} +1 -1
- package/dist/client/assets/{index-CNmK2UE6.js → index-DTLkaJxe.js} +1 -1
- package/dist/client/assets/{index-yZgZglUT.js → index-DrMvBZMW.js} +1 -1
- package/dist/client/assets/index-DtJ8d1aI.css +1 -0
- package/dist/client/assets/{index-DTJ_e6nL.js → index-KBbmKsy_.js} +1 -1
- package/dist/client/assets/{index-Ciepzli1.js → index-OK75u_aS.js} +9 -9
- package/dist/client/assets/{index-CsB6QrBB.js → index-dmkCn37I.js} +2 -2
- package/dist/client/assets/{index-DXRwI8-Q.js → index-jo98Roqy.js} +1 -1
- package/dist/client/assets/index-xstkyz4B.js +547 -0
- package/dist/client/assets/{index-D379-Ra5.js → index-y8RdJ-mt.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-C-liTxtI.js → infiniteQueryObserver-BGrXNOzy.js} +1 -1
- package/dist/client/assets/{input-C-eXOMYP.js → input-C0h7cNmt.js} +1 -1
- package/dist/client/assets/{integration-icon-Ckowj_b4.js → integration-icon-PH7vkQ9v.js} +1 -1
- package/dist/client/assets/{label-C3Wj5fRJ.js → label-C5ENUwLS.js} +1 -1
- package/dist/client/assets/{layout-DyhaKtIo.js → layout-BamLP3Zj.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-B7oEpItL.js → lean-canvas-recruit-modal-CZMvychF.js} +1 -1
- package/dist/client/assets/{login-BfSyXKzY.js → login-uG1nFl44.js} +1 -1
- package/dist/client/assets/{members-2l-bN7R0.js → members-fSWoT1uJ.js} +1 -1
- package/dist/client/assets/{monaco-editor-2DI4BCuN.js → monaco-editor-eJWlN-2G.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-O0i0E0sX.js → monitoring-stats-row-CYIwSwNt.js} +1 -1
- package/dist/client/assets/{oauth-callback-FXnsziuV.js → oauth-callback-DIrOvKws.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B_mMMBGP.js → oauth-callback-ai-provider-CNRYQgK6.js} +1 -1
- package/dist/client/assets/{onboarding-C3R9iT7_.js → onboarding-BBHY-5YM.js} +1 -1
- package/dist/client/assets/{org-layout-C5vsvaCJ.js → org-layout-D7UrUDGp.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-TVmKREDe.js → org-plugin-layout-DqfPxjfL.js} +1 -1
- package/dist/client/assets/{pair-C-p-DbTv.js → pair-BJSIhyuY.js} +2 -2
- package/dist/client/assets/{plugin-empty-state-DsUYr3t-.js → plugin-empty-state-BP62tfBa.js} +1 -1
- package/dist/client/assets/{plugin-header-92zfiruf.js → plugin-header-BPz_4aBZ.js} +1 -1
- package/dist/client/assets/{plugin-layout-Ci2Gezpo.js → plugin-layout-BvUSBgIT.js} +1 -1
- package/dist/client/assets/{popover-DaEdoMLv.js → popover-9waMMdOC.js} +1 -1
- package/dist/client/assets/{profile-C64u-o9k.js → profile-BW02PQou.js} +1 -1
- package/dist/client/assets/{project-app-view-__Y1p7Pu.js → project-app-view-kQIX2VaC.js} +1 -1
- package/dist/client/assets/registry-BohcIySS.js +2 -0
- package/dist/client/assets/{registry-layout-BA3b7Khm.js → registry-layout-C0qSEWQT.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CKWnvSJk.js → required-auth-layout-BVmXc_2r.js} +1 -1
- package/dist/client/assets/{reset-password-BqmAkVAO.js → reset-password-B1_rk5lV.js} +1 -1
- package/dist/client/assets/{roles-99Si_WzF.js → roles-D5G81cT_.js} +1 -1
- package/dist/client/assets/{scroll-area-BMqRsz1X.js → scroll-area-xE7hc-8l.js} +1 -1
- package/dist/client/assets/{search-input-DsCiCzet.js → search-input-C1skYPKA.js} +1 -1
- package/dist/client/assets/{select-B7los4LB.js → select-BjC54T39.js} +1 -1
- package/dist/client/assets/{select-model-CC6Vrb5m.js → select-model-CLZn_-xL.js} +1 -1
- package/dist/client/assets/{settings-layout-nfV08EHo.js → settings-layout-BhnclKCP.js} +1 -1
- package/dist/client/assets/{settings-section-CkhTzM-S.js → settings-section-CijJZPn7.js} +1 -1
- package/dist/client/assets/{shell-layout-kk9CghF9.js → shell-layout-DU81GX4X.js} +1 -1
- package/dist/client/assets/{sidebar-YQQk47mU.js → sidebar-sY4KII-w.js} +1 -1
- package/dist/client/assets/{skeleton-DyIf1f58.js → skeleton-De5l7OL1.js} +1 -1
- package/dist/client/assets/{spinner-Cx3i9jg1.js → spinner-CsMegR0e.js} +1 -1
- package/dist/client/assets/{sso-BdnItz6L.js → sso-CrRO0aCM.js} +1 -1
- package/dist/client/assets/{store-BkZwsjod.js → store-CJkx6fS3.js} +1 -1
- package/dist/client/assets/store-registry-DoOjurxP.js +2 -0
- package/dist/client/assets/{switch-Ba58imnw.js → switch-Dg8MplKB.js} +1 -1
- package/dist/client/assets/{table-BR31N60P.js → table-CcD56_bf.js} +1 -1
- package/dist/client/assets/{tabs-DgJzKZHT.js → tabs-Bun7zdDt.js} +1 -1
- package/dist/client/assets/{task-status-BAiKcdqG.js → task-status-n57TCkuM.js} +1 -1
- package/dist/client/assets/{textarea-CT2Jghcd.js → textarea-Da3AWsK6.js} +1 -1
- package/dist/client/assets/{toggle-group-BwCswIiA.js → toggle-group-DDewxrST.js} +1 -1
- package/dist/client/assets/{tools-list-Dkz550hJ.js → tools-list-ufT0EENN.js} +1 -1
- package/dist/client/assets/{tooltip-v9goNoMa.js → tooltip-DHpEGVi8.js} +1 -1
- package/dist/client/assets/{types-D30V4GBK.js → types-BrFLFb5i.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DuJ557zy.js → use-ai-providers-Cf9shvYI.js} +1 -1
- package/dist/client/assets/{use-collections-CfoSjDkZ.js → use-collections-XDqst4E_.js} +1 -1
- package/dist/client/assets/{use-connection-CL8Sz4aB.js → use-connection-BCPpnVMX.js} +1 -1
- package/dist/client/assets/{use-copy-9B_lKCQP.js → use-copy-BNSIRmV_.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B4YkhF26.js → use-create-virtual-mcp-DdlYO5qT.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CnKA4yL_.js → use-debounced-autosave-BnUZVD_o.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CKsjNSwH.js → use-decopilot-events-DTwuBO8M.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CdrzrkWw.js → use-delete-connection-B1f9N3vg.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BYU0Szfl.js → use-infinite-scroll-ByL07kWP.js} +1 -1
- package/dist/client/assets/{use-list-state-BV6nWWeI.js → use-list-state-D1Op5rZf.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C0h3zeNG.js → use-mcp-tools-a-ZvbrGo.js} +1 -1
- package/dist/client/assets/{use-members-Bc88CE0J.js → use-members-BGu0mh45.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-D3pu_YG_.js → use-navigate-to-agent-DjWaqrlh.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DKocDk2P.js → use-org-auth-client-B7YA_80Y.js} +1 -1
- package/dist/client/assets/{use-org-sso-Cow3Y2YN.js → use-org-sso-CWD9kAdD.js} +1 -1
- package/dist/client/assets/{use-organization-roles-B-MXbHky.js → use-organization-roles-BQMmdy5c.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BtgJutO3.js → use-organization-settings-C2ni1vuh.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CGJfCg9t.js → use-registry-connections-DeY5Qm5r.js} +1 -1
- package/dist/client/assets/{use-status-sounds-IPRVjHSk.js → use-status-sounds-CBWZKYGa.js} +1 -1
- package/dist/client/assets/{use-tasks-LPt7s23P.js → use-tasks-DZibCf5w.js} +1 -1
- package/dist/client/assets/{use-view-mode-NK71s2Nx.js → use-view-mode-C21WimLS.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CcbuH5vn.js → use-virtual-mcp-BVVlTr3L.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B4rOzvqQ.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DVCwsKmm.js +1 -0
- package/dist/client/assets/{user-CHg0uxVs.js → user-B1UpgZbT.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Ck5p4f38.js → view-mode-toggle-CY3mqueQ.js} +1 -1
- package/dist/client/assets/{workflow-DBHhsoUK.js → workflow-D4BXnu1J.js} +1 -1
- package/dist/client/assets/workflow-detail-CCg_qRjv.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/dist/server/node_modules/get-east-asian-width/index.js +30 -0
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +18 -0
- package/dist/server/node_modules/get-east-asian-width/lookup.js +135 -0
- package/dist/server/node_modules/get-east-asian-width/package.json +71 -0
- package/dist/server/node_modules/get-east-asian-width/readme.md +65 -0
- package/dist/server/node_modules/get-east-asian-width/utilities.js +24 -0
- package/dist/server/node_modules/{xtend → pg}/LICENSE +7 -6
- package/dist/server/node_modules/pg/README.md +95 -0
- package/dist/server/node_modules/pg/esm/index.mjs +20 -0
- package/dist/server/node_modules/pg/lib/client.js +743 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
- package/dist/server/node_modules/pg/lib/connection.js +221 -0
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +91 -0
- package/dist/server/node_modules/pg/lib/index.js +73 -0
- package/dist/server/node_modules/pg/lib/native/client.js +323 -0
- package/dist/server/node_modules/pg/lib/native/index.js +2 -0
- package/dist/server/node_modules/pg/lib/native/query.js +165 -0
- package/dist/server/node_modules/pg/lib/query.js +252 -0
- package/dist/server/node_modules/pg/lib/result.js +109 -0
- package/dist/server/node_modules/pg/lib/stream.js +83 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +217 -0
- package/dist/server/node_modules/pg/package.json +76 -0
- package/dist/server/node_modules/slice-ansi/index.d.ts +19 -0
- package/dist/server/node_modules/slice-ansi/index.js +260 -0
- package/dist/server/node_modules/{ansi-styles → slice-ansi}/license +1 -0
- package/dist/server/node_modules/slice-ansi/package.json +59 -0
- package/dist/server/node_modules/slice-ansi/readme.md +54 -0
- package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +752 -0
- package/package.json +1 -1
- package/dist/client/assets/index-9VIcQuRp.js +0 -1
- package/dist/client/assets/index-BJOFaTKm.js +0 -1
- package/dist/client/assets/index-Bo94M6wo.css +0 -1
- package/dist/client/assets/index-D5NG6paH.js +0 -547
- package/dist/client/assets/index-DW1EySXD.js +0 -1
- package/dist/client/assets/registry-LJpFNvAF.js +0 -2
- package/dist/client/assets/store-registry-Dr7mJzaG.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BIRZrmWs.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Bq4CZEUT.js +0 -1
- package/dist/client/assets/workflow-detail-BIpbk5VT.js +0 -1
- package/dist/server/node_modules/ansi-regex/index.d.ts +0 -33
- package/dist/server/node_modules/ansi-regex/index.js +0 -14
- package/dist/server/node_modules/ansi-regex/package.json +0 -61
- package/dist/server/node_modules/ansi-regex/readme.md +0 -66
- 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/emoji-regex/LICENSE-MIT.txt +0 -20
- package/dist/server/node_modules/emoji-regex/README.md +0 -107
- package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
- package/dist/server/node_modules/emoji-regex/index.js +0 -4
- package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
- package/dist/server/node_modules/emoji-regex/package.json +0 -45
- package/dist/server/node_modules/environment/index.d.ts +0 -74
- package/dist/server/node_modules/environment/index.js +0 -47
- package/dist/server/node_modules/environment/license +0 -9
- package/dist/server/node_modules/environment/package.json +0 -74
- package/dist/server/node_modules/environment/readme.md +0 -94
- package/dist/server/node_modules/escape-string-regexp/index.d.ts +0 -18
- package/dist/server/node_modules/escape-string-regexp/index.js +0 -11
- package/dist/server/node_modules/escape-string-regexp/license +0 -9
- package/dist/server/node_modules/escape-string-regexp/package.json +0 -43
- package/dist/server/node_modules/escape-string-regexp/readme.md +0 -29
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
- package/dist/server/node_modules/is-fullwidth-code-point/license +0 -9
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
- package/dist/server/node_modules/is-unicode-supported/index.d.ts +0 -12
- package/dist/server/node_modules/is-unicode-supported/index.js +0 -21
- package/dist/server/node_modules/is-unicode-supported/license +0 -9
- package/dist/server/node_modules/is-unicode-supported/package.json +0 -47
- package/dist/server/node_modules/is-unicode-supported/readme.md +0 -35
- 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/onetime/index.d.ts +0 -64
- package/dist/server/node_modules/onetime/index.js +0 -44
- package/dist/server/node_modules/onetime/license +0 -9
- package/dist/server/node_modules/onetime/package.json +0 -43
- package/dist/server/node_modules/onetime/readme.md +0 -94
- 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/restore-cursor/index.d.ts +0 -11
- package/dist/server/node_modules/restore-cursor/index.js +0 -11
- package/dist/server/node_modules/restore-cursor/license +0 -9
- package/dist/server/node_modules/restore-cursor/package.json +0 -55
- package/dist/server/node_modules/restore-cursor/readme.md +0 -31
- 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
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
- /package/dist/server/node_modules/{ansi-regex → get-east-asian-width}/license +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pg",
|
|
3
|
+
"version": "8.20.0",
|
|
4
|
+
"description": "PostgreSQL client - pure javascript & libpq with the same API",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"database",
|
|
7
|
+
"libpq",
|
|
8
|
+
"pg",
|
|
9
|
+
"postgre",
|
|
10
|
+
"postgres",
|
|
11
|
+
"postgresql",
|
|
12
|
+
"rdbms"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/brianc/node-postgres",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git://github.com/brianc/node-postgres.git",
|
|
18
|
+
"directory": "packages/pg"
|
|
19
|
+
},
|
|
20
|
+
"author": "Brian Carlson <brian.m.carlson@gmail.com>",
|
|
21
|
+
"main": "./lib",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./esm/index.mjs",
|
|
25
|
+
"require": "./lib/index.js",
|
|
26
|
+
"default": "./lib/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./package.json": {
|
|
29
|
+
"default": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"./lib/*": "./lib/*.js",
|
|
32
|
+
"./lib/*.js": "./lib/*.js"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"pg-connection-string": "^2.12.0",
|
|
36
|
+
"pg-pool": "^3.13.0",
|
|
37
|
+
"pg-protocol": "^1.13.0",
|
|
38
|
+
"pg-types": "2.2.0",
|
|
39
|
+
"pgpass": "1.0.5"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@cloudflare/vitest-pool-workers": "0.8.23",
|
|
43
|
+
"@cloudflare/workers-types": "^4.20230404.0",
|
|
44
|
+
"async": "2.6.4",
|
|
45
|
+
"bluebird": "3.7.2",
|
|
46
|
+
"co": "4.6.0",
|
|
47
|
+
"pg-copy-streams": "0.3.0",
|
|
48
|
+
"typescript": "^4.0.3",
|
|
49
|
+
"vitest": "~3.0.9",
|
|
50
|
+
"wrangler": "^3.x"
|
|
51
|
+
},
|
|
52
|
+
"optionalDependencies": {
|
|
53
|
+
"pg-cloudflare": "^1.3.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"pg-native": ">=3.0.1"
|
|
57
|
+
},
|
|
58
|
+
"peerDependenciesMeta": {
|
|
59
|
+
"pg-native": {
|
|
60
|
+
"optional": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"test": "make test-all"
|
|
65
|
+
},
|
|
66
|
+
"files": [
|
|
67
|
+
"lib",
|
|
68
|
+
"esm",
|
|
69
|
+
"SPONSORS.md"
|
|
70
|
+
],
|
|
71
|
+
"license": "MIT",
|
|
72
|
+
"engines": {
|
|
73
|
+
"node": ">= 16.0.0"
|
|
74
|
+
},
|
|
75
|
+
"gitHead": "c9070cc8d526fca65780cedc25c1966b57cf7532"
|
|
76
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Slice a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
|
|
3
|
+
|
|
4
|
+
@param string - A string with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk).
|
|
5
|
+
@param startSlice - Zero-based visible-column index at which to start the slice. Grapheme clusters are kept intact.
|
|
6
|
+
@param endSlice - Zero-based visible-column index at which to end the slice.
|
|
7
|
+
|
|
8
|
+
@example
|
|
9
|
+
```
|
|
10
|
+
import chalk from 'chalk';
|
|
11
|
+
import sliceAnsi from 'slice-ansi';
|
|
12
|
+
|
|
13
|
+
const string = 'The quick brown ' + chalk.red('fox jumped over ') +
|
|
14
|
+
'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
|
|
15
|
+
|
|
16
|
+
console.log(sliceAnsi(string, 20, 30));
|
|
17
|
+
```
|
|
18
|
+
*/
|
|
19
|
+
export default function sliceAnsi(string: string, startSlice: number, endSlice?: number): string;
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import tokenizeAnsi from './tokenize-ansi.js';
|
|
2
|
+
|
|
3
|
+
function applySgrFragments(activeStyles, fragments) {
|
|
4
|
+
for (const fragment of fragments) {
|
|
5
|
+
switch (fragment.type) {
|
|
6
|
+
case 'reset': {
|
|
7
|
+
activeStyles.clear();
|
|
8
|
+
break;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
case 'end': {
|
|
12
|
+
activeStyles.delete(fragment.endCode);
|
|
13
|
+
break;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
case 'start': {
|
|
17
|
+
activeStyles.delete(fragment.endCode);
|
|
18
|
+
activeStyles.set(fragment.endCode, fragment.code);
|
|
19
|
+
break;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
default: {
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return activeStyles;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function undoAnsiCodes(activeStyles) {
|
|
32
|
+
return [...activeStyles.keys()].reverse().join('');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function closeHyperlink(hyperlinkToken) {
|
|
36
|
+
return `${hyperlinkToken.closePrefix}${hyperlinkToken.terminator}`;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function shouldIncludeSgrAfterEnd(token, activeStyles) {
|
|
40
|
+
let hasStartFragment = false;
|
|
41
|
+
let hasClosingEffect = false;
|
|
42
|
+
|
|
43
|
+
for (const fragment of token.fragments) {
|
|
44
|
+
if (fragment.type === 'start') {
|
|
45
|
+
hasStartFragment = true;
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (fragment.type === 'reset' && activeStyles.size > 0) {
|
|
50
|
+
hasClosingEffect = true;
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (fragment.type === 'end' && activeStyles.has(fragment.endCode)) {
|
|
55
|
+
hasClosingEffect = true;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return hasClosingEffect && !hasStartFragment;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function applySgrToken({token, isPastEnd, activeStyles, returnValue, include, activeHyperlink, position}) {
|
|
63
|
+
if (isPastEnd && !shouldIncludeSgrAfterEnd(token, activeStyles)) {
|
|
64
|
+
return {
|
|
65
|
+
activeStyles,
|
|
66
|
+
activeHyperlink,
|
|
67
|
+
position,
|
|
68
|
+
returnValue,
|
|
69
|
+
include,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
activeStyles = applySgrFragments(activeStyles, token.fragments);
|
|
74
|
+
if (include) {
|
|
75
|
+
returnValue += token.code;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
activeStyles,
|
|
80
|
+
activeHyperlink,
|
|
81
|
+
position,
|
|
82
|
+
returnValue,
|
|
83
|
+
include,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function applyHyperlinkToken({token, isPastEnd, activeStyles, activeHyperlink, position, returnValue, include}) {
|
|
88
|
+
if (
|
|
89
|
+
isPastEnd
|
|
90
|
+
&& (
|
|
91
|
+
token.action !== 'close'
|
|
92
|
+
|| !activeHyperlink
|
|
93
|
+
)
|
|
94
|
+
) {
|
|
95
|
+
return {
|
|
96
|
+
activeStyles,
|
|
97
|
+
activeHyperlink,
|
|
98
|
+
position,
|
|
99
|
+
returnValue,
|
|
100
|
+
include,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (token.action === 'open') {
|
|
105
|
+
activeHyperlink = token;
|
|
106
|
+
} else if (token.action === 'close') {
|
|
107
|
+
activeHyperlink = undefined;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (include) {
|
|
111
|
+
returnValue += token.code;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
activeStyles,
|
|
116
|
+
activeHyperlink,
|
|
117
|
+
position,
|
|
118
|
+
returnValue,
|
|
119
|
+
include,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function applyControlToken({token, isPastEnd, activeStyles, activeHyperlink, position, returnValue, include}) {
|
|
124
|
+
if (!isPastEnd && include) {
|
|
125
|
+
returnValue += token.code;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
activeStyles,
|
|
130
|
+
activeHyperlink,
|
|
131
|
+
position,
|
|
132
|
+
returnValue,
|
|
133
|
+
include,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function applyCharacterToken({token, start, activeStyles, activeHyperlink, position, returnValue, include}) {
|
|
138
|
+
if (
|
|
139
|
+
!include
|
|
140
|
+
&& position >= start
|
|
141
|
+
&& !token.isGraphemeContinuation
|
|
142
|
+
) {
|
|
143
|
+
include = true;
|
|
144
|
+
returnValue = [...activeStyles.values()].join('');
|
|
145
|
+
if (activeHyperlink) {
|
|
146
|
+
returnValue += activeHyperlink.code;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (include) {
|
|
151
|
+
returnValue += token.value;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
position += token.visibleWidth;
|
|
155
|
+
return {
|
|
156
|
+
activeStyles,
|
|
157
|
+
activeHyperlink,
|
|
158
|
+
position,
|
|
159
|
+
returnValue,
|
|
160
|
+
include,
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
const tokenHandlers = {
|
|
165
|
+
sgr: applySgrToken,
|
|
166
|
+
hyperlink: applyHyperlinkToken,
|
|
167
|
+
control: applyControlToken,
|
|
168
|
+
character: applyCharacterToken,
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
function applyToken(parameters) {
|
|
172
|
+
const tokenHandler = tokenHandlers[parameters.token.type];
|
|
173
|
+
if (!tokenHandler) {
|
|
174
|
+
const {
|
|
175
|
+
activeStyles,
|
|
176
|
+
activeHyperlink,
|
|
177
|
+
position,
|
|
178
|
+
returnValue,
|
|
179
|
+
include,
|
|
180
|
+
} = parameters;
|
|
181
|
+
|
|
182
|
+
return {
|
|
183
|
+
activeStyles,
|
|
184
|
+
activeHyperlink,
|
|
185
|
+
position,
|
|
186
|
+
returnValue,
|
|
187
|
+
include,
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return tokenHandler(parameters);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function createHasContinuationAheadMap(tokens) {
|
|
195
|
+
const hasContinuationAhead = Array.from({length: tokens.length}, () => false);
|
|
196
|
+
let nextCharacterIsContinuation = false;
|
|
197
|
+
|
|
198
|
+
for (let tokenIndex = tokens.length - 1; tokenIndex >= 0; tokenIndex--) {
|
|
199
|
+
const token = tokens[tokenIndex];
|
|
200
|
+
hasContinuationAhead[tokenIndex] = nextCharacterIsContinuation;
|
|
201
|
+
if (token.type === 'character') {
|
|
202
|
+
nextCharacterIsContinuation = Boolean(token.isGraphemeContinuation);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
return hasContinuationAhead;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export default function sliceAnsi(string, start, end) {
|
|
210
|
+
const tokens = tokenizeAnsi(string, {endCharacter: end});
|
|
211
|
+
const hasContinuationAhead = createHasContinuationAheadMap(tokens);
|
|
212
|
+
let activeStyles = new Map();
|
|
213
|
+
let activeHyperlink;
|
|
214
|
+
let position = 0;
|
|
215
|
+
let returnValue = '';
|
|
216
|
+
let include = false;
|
|
217
|
+
|
|
218
|
+
for (const [tokenIndex, token] of tokens.entries()) {
|
|
219
|
+
let isPastEnd = end !== undefined && position >= end;
|
|
220
|
+
if (
|
|
221
|
+
isPastEnd
|
|
222
|
+
&& token.type !== 'character'
|
|
223
|
+
&& hasContinuationAhead[tokenIndex]
|
|
224
|
+
) {
|
|
225
|
+
isPastEnd = false;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (
|
|
229
|
+
isPastEnd
|
|
230
|
+
&& token.type === 'character'
|
|
231
|
+
&& !token.isGraphemeContinuation
|
|
232
|
+
) {
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
({activeStyles, activeHyperlink, position, returnValue, include} = applyToken({
|
|
237
|
+
token,
|
|
238
|
+
isPastEnd,
|
|
239
|
+
start,
|
|
240
|
+
activeStyles,
|
|
241
|
+
activeHyperlink,
|
|
242
|
+
position,
|
|
243
|
+
returnValue,
|
|
244
|
+
include,
|
|
245
|
+
}));
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
if (!include) {
|
|
249
|
+
return '';
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
if (activeHyperlink) {
|
|
253
|
+
returnValue += closeHyperlink(activeHyperlink);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// Disable active codes at the end
|
|
257
|
+
returnValue += undoAnsiCodes(activeStyles);
|
|
258
|
+
|
|
259
|
+
return returnValue;
|
|
260
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
+
Copyright (c) DC <threedeecee@gmail.com>
|
|
3
4
|
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
5
|
|
|
5
6
|
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:
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "slice-ansi",
|
|
3
|
+
"version": "8.0.0",
|
|
4
|
+
"description": "Slice a string with ANSI escape codes",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "chalk/slice-ansi",
|
|
7
|
+
"funding": "https://github.com/chalk/slice-ansi?sponsor=1",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
"types": "./index.d.ts",
|
|
11
|
+
"default": "./index.js"
|
|
12
|
+
},
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=20"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"test": "xo && ava && tsc --lib esnext index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"index.js",
|
|
22
|
+
"tokenize-ansi.js",
|
|
23
|
+
"index.d.ts"
|
|
24
|
+
],
|
|
25
|
+
"keywords": [
|
|
26
|
+
"slice",
|
|
27
|
+
"string",
|
|
28
|
+
"ansi",
|
|
29
|
+
"styles",
|
|
30
|
+
"color",
|
|
31
|
+
"colour",
|
|
32
|
+
"colors",
|
|
33
|
+
"terminal",
|
|
34
|
+
"console",
|
|
35
|
+
"cli",
|
|
36
|
+
"tty",
|
|
37
|
+
"escape",
|
|
38
|
+
"formatting",
|
|
39
|
+
"rgb",
|
|
40
|
+
"256",
|
|
41
|
+
"shell",
|
|
42
|
+
"xterm",
|
|
43
|
+
"log",
|
|
44
|
+
"logging",
|
|
45
|
+
"command-line",
|
|
46
|
+
"text"
|
|
47
|
+
],
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"ansi-styles": "^6.2.3",
|
|
50
|
+
"is-fullwidth-code-point": "^5.1.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"ava": "^6.4.1",
|
|
54
|
+
"chalk": "^5.6.2",
|
|
55
|
+
"random-item": "^4.0.1",
|
|
56
|
+
"strip-ansi": "^7.1.2",
|
|
57
|
+
"xo": "^1.2.3"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# slice-ansi [](https://github.com/xojs/xo)
|
|
2
|
+
|
|
3
|
+
> Slice a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install slice-ansi
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import chalk from 'chalk';
|
|
15
|
+
import sliceAnsi from 'slice-ansi';
|
|
16
|
+
|
|
17
|
+
const string = 'The quick brown ' + chalk.red('fox jumped over ') +
|
|
18
|
+
'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
|
|
19
|
+
|
|
20
|
+
console.log(sliceAnsi(string, 20, 30));
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## API
|
|
24
|
+
|
|
25
|
+
### sliceAnsi(string, startSlice, endSlice?)
|
|
26
|
+
|
|
27
|
+
#### string
|
|
28
|
+
|
|
29
|
+
Type: `string`
|
|
30
|
+
|
|
31
|
+
String with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk).
|
|
32
|
+
|
|
33
|
+
#### startSlice
|
|
34
|
+
|
|
35
|
+
Type: `number`
|
|
36
|
+
|
|
37
|
+
Zero-based visible-column index at which to start the slice. Grapheme clusters (for example, emoji sequences and combining marks) are kept intact.
|
|
38
|
+
|
|
39
|
+
#### endSlice
|
|
40
|
+
|
|
41
|
+
Type: `number`
|
|
42
|
+
|
|
43
|
+
Zero-based visible-column index at which to end the slice.
|
|
44
|
+
|
|
45
|
+
## Related
|
|
46
|
+
|
|
47
|
+
- [wrap-ansi](https://github.com/chalk/wrap-ansi) - Wordwrap a string with ANSI escape codes
|
|
48
|
+
- [cli-truncate](https://github.com/sindresorhus/cli-truncate) - Truncate a string to a specific width in the terminal
|
|
49
|
+
- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
|
|
50
|
+
|
|
51
|
+
## Maintainers
|
|
52
|
+
|
|
53
|
+
- [Sindre Sorhus](https://github.com/sindresorhus)
|
|
54
|
+
- [Josh Junon](https://github.com/qix-)
|