decocms 2.306.6 → 2.306.7
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-4Fij-rVg.js → AlertCircle-Cb7fTEMa.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-CxNzupMt.js → ArrowNarrowLeft-tcEBzg5K.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-B9s_0HcJ.js → ArrowUpRight-Ds7CgDkL.js} +1 -1
- package/dist/client/assets/{Check-DC_iCN8Z.js → Check-Dgq0jjpz.js} +1 -1
- package/dist/client/assets/{CheckCircle-ROoANe3f.js → CheckCircle-rZ5sDOOP.js} +1 -1
- package/dist/client/assets/{ChevronDown-CnUhTqwX.js → ChevronDown-CH5lQohM.js} +1 -1
- package/dist/client/assets/{ChevronRight-X2lm_E9M.js → ChevronRight-DfFDUpKj.js} +1 -1
- package/dist/client/assets/{ChevronUp-CgOfWCZA.js → ChevronUp-DCsRkih0.js} +1 -1
- package/dist/client/assets/{Container-BrskPoE3.js → Container-zeFPXb1Q.js} +1 -1
- package/dist/client/assets/{DotsVertical-C2-ev8jy.js → DotsVertical-BljfGuhu.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Bhhv-wHj.js → LinkExternal01-MvI2bZbP.js} +1 -1
- package/dist/client/assets/{Lock01-KbqVCyA7.js → Lock01-CidilFiJ.js} +1 -1
- package/dist/client/assets/{Palette-CmZGtCez.js → Palette-CURRsupy.js} +1 -1
- package/dist/client/assets/{Play-EPgISV5B.js → Play-DLW6aJFn.js} +1 -1
- package/dist/client/assets/{Plus-BYimMcAW.js → Plus-28zZOE9T.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-DIY3NFBI.js → RefreshCcw01-CCzpYBs0.js} +1 -1
- package/dist/client/assets/{SearchMd-DzMVdOJP.js → SearchMd-BpRj1P2W.js} +1 -1
- package/dist/client/assets/{Settings02-BxmxMTOA.js → Settings02-CE5ZLw2I.js} +1 -1
- package/dist/client/assets/{Shield01-B9vNkAc4.js → Shield01-Dtb2_AeI.js} +1 -1
- package/dist/client/assets/{Star01-iULH34rV.js → Star01-ChekdAzX.js} +1 -1
- package/dist/client/assets/{Sun-Dc78AQrj.js → Sun-TuktgENq.js} +1 -1
- package/dist/client/assets/{Tool01-DVcjHQGB.js → Tool01-Cu4I31F8.js} +1 -1
- package/dist/client/assets/{Trash01-CaZrP0UV.js → Trash01-4Dq6ympL.js} +1 -1
- package/dist/client/assets/{User01-7U7nAEDg.js → User01-DKnZn118.js} +1 -1
- package/dist/client/assets/{Users03-CIZBy7k3.js → Users03-rbWg-6tV.js} +1 -1
- package/dist/client/assets/{X-QdBx5oCM.js → X-CAquUT--.js} +1 -1
- package/dist/client/assets/{XCircle-DokNvYvs.js → XCircle-B-00qJpY.js} +1 -1
- package/dist/client/assets/{XClose-BdbZPqCd.js → XClose-_Y5VAjW5.js} +1 -1
- package/dist/client/assets/{Zap-DH1KrJ0w.js → Zap-B8xnzkap.js} +1 -1
- package/dist/client/assets/{ZapSquare-CnxL4Bs1.js → ZapSquare-Cpo7Z7gP.js} +1 -1
- package/dist/client/assets/{accordion-81SrnINF.js → accordion-CyIKHcCT.js} +1 -1
- package/dist/client/assets/{agent-icon-C2zAhw3X.js → agent-icon-D9odI-qh.js} +1 -1
- package/dist/client/assets/{agents-list-CH2sTwpj.js → agents-list-CLJAN1rm.js} +1 -1
- package/dist/client/assets/ai-providers-28dSCs53.js +1 -0
- package/dist/client/assets/{alert-dialog-BytOwrWo.js → alert-dialog-DCT4MTMH.js} +1 -1
- package/dist/client/assets/{auth-catchall-BcUDEqD5.js → auth-catchall-DoKHQvfb.js} +1 -1
- package/dist/client/assets/{automation-list-row-etrXhG1_.js → automation-list-row-C0fNHM9j.js} +1 -1
- package/dist/client/assets/{automations-DFRPWAOO.js → automations-CVam3JT8.js} +1 -1
- package/dist/client/assets/{avatar-D0sdobqD.js → avatar-JoKAxyik.js} +1 -1
- package/dist/client/assets/{badge-tvsCFCHP.js → badge-BXVtVPzt.js} +1 -1
- package/dist/client/assets/{brand-context-Cy-kcB0m.js → brand-context-B00HyWuJ.js} +1 -1
- package/dist/client/assets/{card-BGZ5LqAO.js → card-CkFfla-m.js} +1 -1
- package/dist/client/assets/{chat-context-iq-Q-O9L.js → chat-context-C4lTxfjV.js} +1 -1
- package/dist/client/assets/{checkbox-IEnuEqAm.js → checkbox-Baro7Q1f.js} +1 -1
- package/dist/client/assets/{collection-detail-BnoKU_uS.js → collection-detail-CvBw6hsJ.js} +1 -1
- package/dist/client/assets/{collection-display-button-tJsvfx8o.js → collection-display-button-BSv13jEo.js} +1 -1
- package/dist/client/assets/{collection-search-bjPRZI3g.js → collection-search-BHyuqRiT.js} +1 -1
- package/dist/client/assets/{collection-search-O8QAretn.js → collection-search-jhKWbxqo.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CcyIZki9.js → collection-table-wrapper-hR7H16-N.js} +1 -1
- package/dist/client/assets/{collection-tabs-CqINIlN4.js → collection-tabs-BPF8fjT2.js} +1 -1
- package/dist/client/assets/{collections-DKW_jlNs.js → collections-B60eBxX4.js} +1 -1
- package/dist/client/assets/{command-Cbi8R9Tg.js → command-CJRvOxZ7.js} +1 -1
- package/dist/client/assets/{connection-card-Aj-8CWhX.js → connection-card-ugyEg8FF.js} +1 -1
- package/dist/client/assets/{connection-detail-G5l6bgwi.js → connection-detail-EgRvIktM.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-hlnQqQXV.js → connection-form-helpers-CYrNbtwl.js} +1 -1
- package/dist/client/assets/{connections-CrOLesap.js → connections-I35i0t7r.js} +1 -1
- package/dist/client/assets/{constants-Dm1wnwL3.js → constants-CMPjFkrZ.js} +1 -1
- package/dist/client/assets/{constants-CWAA475A.js → constants-XGFAnuHn.js} +1 -1
- package/dist/client/assets/{dialog-0SvGB_9G.js → dialog-sfEBwtz9.js} +1 -1
- package/dist/client/assets/{domain-settings-CckaLtjm.js → domain-settings-BEv8OnaD.js} +1 -1
- package/dist/client/assets/{drawer-CyXE-C5x.js → drawer--MluJNWl.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BkrpBFy3.js → dropdown-menu-BpPFRti7.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DAf8nhzs.js → dynamic-plugin-layout-JwST599m.js} +1 -1
- package/dist/client/assets/{empty-state-Crsog8CF.js → empty-state-Be0FdXg2.js} +1 -1
- package/dist/client/assets/{empty-state-CxZybw5m.js → empty-state-Vlkqr5Ha.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CnUKkwJT.js → extract-connection-data-B9BMTKgA.js} +1 -1
- package/dist/client/assets/{features-Ddtjf7i2.js → features-ymCT4sQe.js} +1 -1
- package/dist/client/assets/{form-BMjsxf1O.js → form-DpB6tHPK.js} +1 -1
- package/dist/client/assets/{general-CVe1Krdt.js → general-Bi8iKo_s.js} +1 -1
- package/dist/client/assets/{index-BV4BlnS9.js → index-0dtUnOR1.js} +2 -2
- package/dist/client/assets/{index-hSAfwkZQ.js → index-B-PMmlqs.js} +1 -1
- package/dist/client/assets/{index-CyJ-TyKU.js → index-BAl-Vlym.js} +1 -1
- package/dist/client/assets/{index-WBXV3t9A.js → index-BG0omYxu.js} +1 -1
- package/dist/client/assets/{index-CPDZUQ3g.js → index-BWMPhdit.js} +1 -1
- package/dist/client/assets/{index-CEyiW6G-.js → index-B_IvwEkx.js} +1 -1
- package/dist/client/assets/index-BkJIlnCh.js +1 -0
- package/dist/client/assets/{index-CYY5hWbm.js → index-Bzh6y1DZ.js} +1 -1
- package/dist/client/assets/{index-AqmdpH5c.js → index-CGKwbcyW.js} +1 -1
- package/dist/client/assets/{index-DYUyKEVO.js → index-Cav3nFoE.js} +1 -1
- package/dist/client/assets/{index-tIIHK8_r.js → index-DE4jOyEe.js} +1 -1
- package/dist/client/assets/{index-DvCRkopi.js → index-DlEDBVDU.js} +1 -1
- package/dist/client/assets/{index-CZ5qFDIg.js → index-DqWmbGe9.js} +1 -1
- package/dist/client/assets/{index-DusASzPG.js → index-JYp8Y8Zk.js} +3 -3
- package/dist/client/assets/{index-B8A_ReFj.js → index-mKsCyZ2c.js} +1 -1
- package/dist/client/assets/{index-D85QLvNR.js → index-uTY5VsaX.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DmPvCV47.js → infiniteQueryObserver-D69C8aZS.js} +1 -1
- package/dist/client/assets/{input-Bs7mkNsF.js → input-Dh3J6cxA.js} +1 -1
- package/dist/client/assets/{integration-icon-DgJZ63kl.js → integration-icon-CDE9CENl.js} +1 -1
- package/dist/client/assets/{label-CB1YxmGr.js → label-BGhcnROH.js} +1 -1
- package/dist/client/assets/{layout-GReGu88m.js → layout-DMQieMve.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-BkH3ZJD2.js → lean-canvas-recruit-modal-DZfH4ZaB.js} +1 -1
- package/dist/client/assets/{login-JiD1cfP5.js → login-HZPNR9xd.js} +1 -1
- package/dist/client/assets/{members-B72381x1.js → members-DXQFXjq8.js} +1 -1
- package/dist/client/assets/{monaco-editor-_r7N6eV-.js → monaco-editor-BaDnBAIf.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-IV0nDqiB.js → monitoring-stats-row-CQqHcgiv.js} +1 -1
- package/dist/client/assets/{oauth-callback-CkFjLbE_.js → oauth-callback-Du4eDSpz.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-By5VSIqz.js → oauth-callback-ai-provider-BhxrV53q.js} +1 -1
- package/dist/client/assets/{onboarding-CCZiORGK.js → onboarding-HMRjmRyP.js} +1 -1
- package/dist/client/assets/{org-layout-DF3EY572.js → org-layout-DoqHSWQn.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-C4CnG2ku.js → org-plugin-layout-DXqded6M.js} +1 -1
- package/dist/client/assets/{pair-Hj9vutgK.js → pair-D1MIu7ah.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DtiwhoNI.js → plugin-empty-state-BSfCLmcP.js} +1 -1
- package/dist/client/assets/{plugin-header-CjcXnInr.js → plugin-header-2Ks_trAw.js} +1 -1
- package/dist/client/assets/{plugin-layout-BJ0qU511.js → plugin-layout-CdtsQwFc.js} +1 -1
- package/dist/client/assets/{popover-9-i1guS1.js → popover-D4Clv1Kb.js} +1 -1
- package/dist/client/assets/{profile-C0pKX75D.js → profile-CjGu4VCE.js} +1 -1
- package/dist/client/assets/{project-app-view-Btui0VFM.js → project-app-view-Cr2YOe9x.js} +1 -1
- package/dist/client/assets/registry-YuZMNy-0.js +2 -0
- package/dist/client/assets/{registry-layout-Cvjuv72f.js → registry-layout-DGUmz1QL.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Cm0GjYeR.js → required-auth-layout-DMKD_TV3.js} +1 -1
- package/dist/client/assets/{reset-password-DHyMDEUg.js → reset-password-Bn__ApCp.js} +1 -1
- package/dist/client/assets/{roles-BRZ0jwUp.js → roles-C4lGMFwb.js} +1 -1
- package/dist/client/assets/{scroll-area-Dal58SLb.js → scroll-area-yWZqBKom.js} +1 -1
- package/dist/client/assets/{search-input-BSfMPrXv.js → search-input-UA1Jjc1m.js} +1 -1
- package/dist/client/assets/{select-DQy3AX-J.js → select-CG0rwGUX.js} +1 -1
- package/dist/client/assets/{select-model-BjvpQUyU.js → select-model-DcRnjECr.js} +1 -1
- package/dist/client/assets/{settings-layout-Hke-qhRP.js → settings-layout-ePFy_Zf4.js} +1 -1
- package/dist/client/assets/{settings-section-DJf4hau9.js → settings-section-HkZRSntL.js} +1 -1
- package/dist/client/assets/{shell-layout-BcsYrOTT.js → shell-layout-CtEV3YzW.js} +1 -1
- package/dist/client/assets/{skeleton-DLT024S3.js → skeleton-BxQRt9FI.js} +1 -1
- package/dist/client/assets/{sso-BuTvljxJ.js → sso-DElvxw59.js} +1 -1
- package/dist/client/assets/{store-Iw0YIysI.js → store-CQloMsrY.js} +1 -1
- package/dist/client/assets/store-registry-h--qJyio.js +2 -0
- package/dist/client/assets/{switch-ChOgiOZl.js → switch-DydlPJmA.js} +1 -1
- package/dist/client/assets/{table-B48Xy50A.js → table-Cg2S62iB.js} +1 -1
- package/dist/client/assets/{tabs-y647ki3a.js → tabs-BArWG_lg.js} +1 -1
- package/dist/client/assets/{task-status-IiU7o7it.js → task-status-Bi6NGRuA.js} +1 -1
- package/dist/client/assets/{textarea-CT4UCcWE.js → textarea-Dkmw6W4u.js} +1 -1
- package/dist/client/assets/{toggle-group-CgDVnjbj.js → toggle-group-BdQafmUc.js} +1 -1
- package/dist/client/assets/{tools-list-Dl1EqLq_.js → tools-list-C0MslVQp.js} +1 -1
- package/dist/client/assets/{tooltip-DZT-1bal.js → tooltip-XW5rFMNu.js} +1 -1
- package/dist/client/assets/{types-DA7k1cs0.js → types-BU1oqgjO.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Bv-kgplO.js → use-ai-providers-ClmB64W8.js} +1 -1
- package/dist/client/assets/{use-collections-ASqcb463.js → use-collections-BLOTVIAP.js} +1 -1
- package/dist/client/assets/{use-connection-Ck4brnCx.js → use-connection-DGPnnQz6.js} +1 -1
- package/dist/client/assets/{use-copy-qtJD_4jj.js → use-copy-BquaY5FR.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CTxthd0a.js → use-create-virtual-mcp-gYa1vYVG.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BliXkuEQ.js → use-debounced-autosave-BFE3ZeG7.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-tgKj5crX.js → use-decopilot-events-nw-lJk37.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DM_4FfQI.js → use-delete-connection-MTPofM5f.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-De_3UNjO.js → use-infinite-scroll-KzNu752x.js} +1 -1
- package/dist/client/assets/{use-list-state-SVk88wog.js → use-list-state-BMUfPc5P.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-rNZ6JWxz.js → use-mcp-tools-DkxVTDC9.js} +1 -1
- package/dist/client/assets/{use-members-Bk-c46d0.js → use-members-DadnCd-C.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CwcBoswU.js → use-navigate-to-agent-zDaGGVEB.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Hwc_S6Fw.js → use-org-auth-client-CPZNMqkZ.js} +1 -1
- package/dist/client/assets/{use-org-sso-Cj1DBVz0.js → use-org-sso-DMUwA_K8.js} +1 -1
- package/dist/client/assets/{use-organization-roles--8BRYJrg.js → use-organization-roles-CJVol15S.js} +1 -1
- package/dist/client/assets/{use-organization-settings-gFwljgrZ.js → use-organization-settings-CoHf1k_t.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Dgb2TDlG.js → use-registry-connections-DWMBdekg.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Cn3fBsPH.js → use-status-sounds-j2IA-viC.js} +1 -1
- package/dist/client/assets/{use-tasks-DqNLNkkM.js → use-tasks-DqkYGNHa.js} +1 -1
- package/dist/client/assets/{use-view-mode-D9kCRFMC.js → use-view-mode-Bc5J1h4b.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BR6mzHHD.js → use-virtual-mcp-Dndzl8Kr.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BzvZ_TDh.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-ZnAzp1qO.js +1 -0
- package/dist/client/assets/{user-BVu9y1Y7.js → user-Df7A58iD.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-ZI-MN1pO.js → view-mode-toggle-DoidsjaP.js} +1 -1
- package/dist/client/assets/{workflow-D5sDlQLV.js → workflow-DgvsxaIb.js} +1 -1
- package/dist/client/assets/workflow-detail-Bebyclsh.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +90 -38
- 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-styles → ansi-regex}/package.json +20 -13
- 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/onetime/index.d.ts +64 -0
- package/dist/server/node_modules/onetime/index.js +44 -0
- package/dist/server/node_modules/onetime/package.json +43 -0
- package/dist/server/node_modules/onetime/readme.md +94 -0
- package/dist/server/server.js +89 -37
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-BxrN55-q.js +0 -1
- package/dist/client/assets/index-Bhv1nOmU.js +0 -1
- package/dist/client/assets/registry-Bhz5Jlkf.js +0 -2
- package/dist/client/assets/store-registry-Df9fj_hE.js +0 -2
- package/dist/client/assets/useInfiniteQuery-C_BkERX4.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DFnwwxGS.js +0 -1
- package/dist/client/assets/workflow-detail-BKMBH1Ij.js +0 -1
- package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
- package/dist/server/node_modules/ansi-styles/index.js +0 -223
- package/dist/server/node_modules/ansi-styles/readme.md +0 -173
- 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/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/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/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/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/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/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/LICENSE +0 -20
- 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-styles → ansi-regex}/license +0 -0
- /package/dist/server/node_modules/{environment → onetime}/license +0 -0
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
const ANSI_BACKGROUND_OFFSET = 10;
|
|
2
|
-
|
|
3
|
-
const wrapAnsi16 = (offset = 0) => code => `\u001B[${code + offset}m`;
|
|
4
|
-
|
|
5
|
-
const wrapAnsi256 = (offset = 0) => code => `\u001B[${38 + offset};5;${code}m`;
|
|
6
|
-
|
|
7
|
-
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
|
|
8
|
-
|
|
9
|
-
const styles = {
|
|
10
|
-
modifier: {
|
|
11
|
-
reset: [0, 0],
|
|
12
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
13
|
-
bold: [1, 22],
|
|
14
|
-
dim: [2, 22],
|
|
15
|
-
italic: [3, 23],
|
|
16
|
-
underline: [4, 24],
|
|
17
|
-
overline: [53, 55],
|
|
18
|
-
inverse: [7, 27],
|
|
19
|
-
hidden: [8, 28],
|
|
20
|
-
strikethrough: [9, 29],
|
|
21
|
-
},
|
|
22
|
-
color: {
|
|
23
|
-
black: [30, 39],
|
|
24
|
-
red: [31, 39],
|
|
25
|
-
green: [32, 39],
|
|
26
|
-
yellow: [33, 39],
|
|
27
|
-
blue: [34, 39],
|
|
28
|
-
magenta: [35, 39],
|
|
29
|
-
cyan: [36, 39],
|
|
30
|
-
white: [37, 39],
|
|
31
|
-
|
|
32
|
-
// Bright color
|
|
33
|
-
blackBright: [90, 39],
|
|
34
|
-
gray: [90, 39], // Alias of `blackBright`
|
|
35
|
-
grey: [90, 39], // Alias of `blackBright`
|
|
36
|
-
redBright: [91, 39],
|
|
37
|
-
greenBright: [92, 39],
|
|
38
|
-
yellowBright: [93, 39],
|
|
39
|
-
blueBright: [94, 39],
|
|
40
|
-
magentaBright: [95, 39],
|
|
41
|
-
cyanBright: [96, 39],
|
|
42
|
-
whiteBright: [97, 39],
|
|
43
|
-
},
|
|
44
|
-
bgColor: {
|
|
45
|
-
bgBlack: [40, 49],
|
|
46
|
-
bgRed: [41, 49],
|
|
47
|
-
bgGreen: [42, 49],
|
|
48
|
-
bgYellow: [43, 49],
|
|
49
|
-
bgBlue: [44, 49],
|
|
50
|
-
bgMagenta: [45, 49],
|
|
51
|
-
bgCyan: [46, 49],
|
|
52
|
-
bgWhite: [47, 49],
|
|
53
|
-
|
|
54
|
-
// Bright color
|
|
55
|
-
bgBlackBright: [100, 49],
|
|
56
|
-
bgGray: [100, 49], // Alias of `bgBlackBright`
|
|
57
|
-
bgGrey: [100, 49], // Alias of `bgBlackBright`
|
|
58
|
-
bgRedBright: [101, 49],
|
|
59
|
-
bgGreenBright: [102, 49],
|
|
60
|
-
bgYellowBright: [103, 49],
|
|
61
|
-
bgBlueBright: [104, 49],
|
|
62
|
-
bgMagentaBright: [105, 49],
|
|
63
|
-
bgCyanBright: [106, 49],
|
|
64
|
-
bgWhiteBright: [107, 49],
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export const modifierNames = Object.keys(styles.modifier);
|
|
69
|
-
export const foregroundColorNames = Object.keys(styles.color);
|
|
70
|
-
export const backgroundColorNames = Object.keys(styles.bgColor);
|
|
71
|
-
export const colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
72
|
-
|
|
73
|
-
function assembleStyles() {
|
|
74
|
-
const codes = new Map();
|
|
75
|
-
|
|
76
|
-
for (const [groupName, group] of Object.entries(styles)) {
|
|
77
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
78
|
-
styles[styleName] = {
|
|
79
|
-
open: `\u001B[${style[0]}m`,
|
|
80
|
-
close: `\u001B[${style[1]}m`,
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
group[styleName] = styles[styleName];
|
|
84
|
-
|
|
85
|
-
codes.set(style[0], style[1]);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
Object.defineProperty(styles, groupName, {
|
|
89
|
-
value: group,
|
|
90
|
-
enumerable: false,
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
Object.defineProperty(styles, 'codes', {
|
|
95
|
-
value: codes,
|
|
96
|
-
enumerable: false,
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
styles.color.close = '\u001B[39m';
|
|
100
|
-
styles.bgColor.close = '\u001B[49m';
|
|
101
|
-
|
|
102
|
-
styles.color.ansi = wrapAnsi16();
|
|
103
|
-
styles.color.ansi256 = wrapAnsi256();
|
|
104
|
-
styles.color.ansi16m = wrapAnsi16m();
|
|
105
|
-
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
106
|
-
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
107
|
-
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
108
|
-
|
|
109
|
-
// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js
|
|
110
|
-
Object.defineProperties(styles, {
|
|
111
|
-
rgbToAnsi256: {
|
|
112
|
-
value(red, green, blue) {
|
|
113
|
-
// We use the extended greyscale palette here, with the exception of
|
|
114
|
-
// black and white. normal palette only has 4 greyscale shades.
|
|
115
|
-
if (red === green && green === blue) {
|
|
116
|
-
if (red < 8) {
|
|
117
|
-
return 16;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
if (red > 248) {
|
|
121
|
-
return 231;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
return Math.round(((red - 8) / 247) * 24) + 232;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return 16
|
|
128
|
-
+ (36 * Math.round(red / 255 * 5))
|
|
129
|
-
+ (6 * Math.round(green / 255 * 5))
|
|
130
|
-
+ Math.round(blue / 255 * 5);
|
|
131
|
-
},
|
|
132
|
-
enumerable: false,
|
|
133
|
-
},
|
|
134
|
-
hexToRgb: {
|
|
135
|
-
value(hex) {
|
|
136
|
-
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
137
|
-
if (!matches) {
|
|
138
|
-
return [0, 0, 0];
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
let [colorString] = matches;
|
|
142
|
-
|
|
143
|
-
if (colorString.length === 3) {
|
|
144
|
-
colorString = [...colorString].map(character => character + character).join('');
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
const integer = Number.parseInt(colorString, 16);
|
|
148
|
-
|
|
149
|
-
return [
|
|
150
|
-
/* eslint-disable no-bitwise */
|
|
151
|
-
(integer >> 16) & 0xFF,
|
|
152
|
-
(integer >> 8) & 0xFF,
|
|
153
|
-
integer & 0xFF,
|
|
154
|
-
/* eslint-enable no-bitwise */
|
|
155
|
-
];
|
|
156
|
-
},
|
|
157
|
-
enumerable: false,
|
|
158
|
-
},
|
|
159
|
-
hexToAnsi256: {
|
|
160
|
-
value: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
161
|
-
enumerable: false,
|
|
162
|
-
},
|
|
163
|
-
ansi256ToAnsi: {
|
|
164
|
-
value(code) {
|
|
165
|
-
if (code < 8) {
|
|
166
|
-
return 30 + code;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
if (code < 16) {
|
|
170
|
-
return 90 + (code - 8);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
let red;
|
|
174
|
-
let green;
|
|
175
|
-
let blue;
|
|
176
|
-
|
|
177
|
-
if (code >= 232) {
|
|
178
|
-
red = (((code - 232) * 10) + 8) / 255;
|
|
179
|
-
green = red;
|
|
180
|
-
blue = red;
|
|
181
|
-
} else {
|
|
182
|
-
code -= 16;
|
|
183
|
-
|
|
184
|
-
const remainder = code % 36;
|
|
185
|
-
|
|
186
|
-
red = Math.floor(code / 36) / 5;
|
|
187
|
-
green = Math.floor(remainder / 6) / 5;
|
|
188
|
-
blue = (remainder % 6) / 5;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
const value = Math.max(red, green, blue) * 2;
|
|
192
|
-
|
|
193
|
-
if (value === 0) {
|
|
194
|
-
return 30;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
// eslint-disable-next-line no-bitwise
|
|
198
|
-
let result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));
|
|
199
|
-
|
|
200
|
-
if (value === 2) {
|
|
201
|
-
result += 60;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
return result;
|
|
205
|
-
},
|
|
206
|
-
enumerable: false,
|
|
207
|
-
},
|
|
208
|
-
rgbToAnsi: {
|
|
209
|
-
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
210
|
-
enumerable: false,
|
|
211
|
-
},
|
|
212
|
-
hexToAnsi: {
|
|
213
|
-
value: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
214
|
-
enumerable: false,
|
|
215
|
-
},
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
return styles;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
const ansiStyles = assembleStyles();
|
|
222
|
-
|
|
223
|
-
export default ansiStyles;
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
# ansi-styles
|
|
2
|
-
|
|
3
|
-
> [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
|
|
4
|
-
|
|
5
|
-
You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
|
|
6
|
-
|
|
7
|
-

|
|
8
|
-
|
|
9
|
-
## Install
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
npm install ansi-styles
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
import styles from 'ansi-styles';
|
|
19
|
-
|
|
20
|
-
console.log(`${styles.green.open}Hello world!${styles.green.close}`);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// Color conversion between 256/truecolor
|
|
24
|
-
// NOTE: When converting from truecolor to 256 colors, the original color
|
|
25
|
-
// may be degraded to fit the new color palette. This means terminals
|
|
26
|
-
// that do not support 16 million colors will best-match the
|
|
27
|
-
// original color.
|
|
28
|
-
console.log(`${styles.color.ansi(styles.rgbToAnsi(199, 20, 250))}Hello World${styles.color.close}`)
|
|
29
|
-
console.log(`${styles.color.ansi256(styles.rgbToAnsi256(199, 20, 250))}Hello World${styles.color.close}`)
|
|
30
|
-
console.log(`${styles.color.ansi16m(...styles.hexToRgb('#abcdef'))}Hello World${styles.color.close}`)
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## API
|
|
34
|
-
|
|
35
|
-
### `open` and `close`
|
|
36
|
-
|
|
37
|
-
Each style has an `open` and `close` property.
|
|
38
|
-
|
|
39
|
-
### `modifierNames`, `foregroundColorNames`, `backgroundColorNames`, and `colorNames`
|
|
40
|
-
|
|
41
|
-
All supported style strings are exposed as an array of strings for convenience. `colorNames` is the combination of `foregroundColorNames` and `backgroundColorNames`.
|
|
42
|
-
|
|
43
|
-
This can be useful if you need to validate input:
|
|
44
|
-
|
|
45
|
-
```js
|
|
46
|
-
import {modifierNames, foregroundColorNames} from 'ansi-styles';
|
|
47
|
-
|
|
48
|
-
console.log(modifierNames.includes('bold'));
|
|
49
|
-
//=> true
|
|
50
|
-
|
|
51
|
-
console.log(foregroundColorNames.includes('pink'));
|
|
52
|
-
//=> false
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Styles
|
|
56
|
-
|
|
57
|
-
### Modifiers
|
|
58
|
-
|
|
59
|
-
- `reset`
|
|
60
|
-
- `bold`
|
|
61
|
-
- `dim`
|
|
62
|
-
- `italic` *(Not widely supported)*
|
|
63
|
-
- `underline`
|
|
64
|
-
- `overline` *Supported on VTE-based terminals, the GNOME terminal, mintty, and Git Bash.*
|
|
65
|
-
- `inverse`
|
|
66
|
-
- `hidden`
|
|
67
|
-
- `strikethrough` *(Not widely supported)*
|
|
68
|
-
|
|
69
|
-
### Colors
|
|
70
|
-
|
|
71
|
-
- `black`
|
|
72
|
-
- `red`
|
|
73
|
-
- `green`
|
|
74
|
-
- `yellow`
|
|
75
|
-
- `blue`
|
|
76
|
-
- `magenta`
|
|
77
|
-
- `cyan`
|
|
78
|
-
- `white`
|
|
79
|
-
- `blackBright` (alias: `gray`, `grey`)
|
|
80
|
-
- `redBright`
|
|
81
|
-
- `greenBright`
|
|
82
|
-
- `yellowBright`
|
|
83
|
-
- `blueBright`
|
|
84
|
-
- `magentaBright`
|
|
85
|
-
- `cyanBright`
|
|
86
|
-
- `whiteBright`
|
|
87
|
-
|
|
88
|
-
### Background colors
|
|
89
|
-
|
|
90
|
-
- `bgBlack`
|
|
91
|
-
- `bgRed`
|
|
92
|
-
- `bgGreen`
|
|
93
|
-
- `bgYellow`
|
|
94
|
-
- `bgBlue`
|
|
95
|
-
- `bgMagenta`
|
|
96
|
-
- `bgCyan`
|
|
97
|
-
- `bgWhite`
|
|
98
|
-
- `bgBlackBright` (alias: `bgGray`, `bgGrey`)
|
|
99
|
-
- `bgRedBright`
|
|
100
|
-
- `bgGreenBright`
|
|
101
|
-
- `bgYellowBright`
|
|
102
|
-
- `bgBlueBright`
|
|
103
|
-
- `bgMagentaBright`
|
|
104
|
-
- `bgCyanBright`
|
|
105
|
-
- `bgWhiteBright`
|
|
106
|
-
|
|
107
|
-
## Advanced usage
|
|
108
|
-
|
|
109
|
-
By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
|
|
110
|
-
|
|
111
|
-
- `styles.modifier`
|
|
112
|
-
- `styles.color`
|
|
113
|
-
- `styles.bgColor`
|
|
114
|
-
|
|
115
|
-
###### Example
|
|
116
|
-
|
|
117
|
-
```js
|
|
118
|
-
import styles from 'ansi-styles';
|
|
119
|
-
|
|
120
|
-
console.log(styles.color.green.open);
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `styles.codes`, which returns a `Map` with the open codes as keys and close codes as values.
|
|
124
|
-
|
|
125
|
-
###### Example
|
|
126
|
-
|
|
127
|
-
```js
|
|
128
|
-
import styles from 'ansi-styles';
|
|
129
|
-
|
|
130
|
-
console.log(styles.codes.get(36));
|
|
131
|
-
//=> 39
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
## 16 / 256 / 16 million (TrueColor) support
|
|
135
|
-
|
|
136
|
-
`ansi-styles` allows converting between various color formats and ANSI escapes, with support for 16, 256 and [16 million colors](https://gist.github.com/XVilka/8346728).
|
|
137
|
-
|
|
138
|
-
The following color spaces are supported:
|
|
139
|
-
|
|
140
|
-
- `rgb`
|
|
141
|
-
- `hex`
|
|
142
|
-
- `ansi256`
|
|
143
|
-
- `ansi`
|
|
144
|
-
|
|
145
|
-
To use these, call the associated conversion function with the intended output, for example:
|
|
146
|
-
|
|
147
|
-
```js
|
|
148
|
-
import styles from 'ansi-styles';
|
|
149
|
-
|
|
150
|
-
styles.color.ansi(styles.rgbToAnsi(100, 200, 15)); // RGB to 16 color ansi foreground code
|
|
151
|
-
styles.bgColor.ansi(styles.hexToAnsi('#C0FFEE')); // HEX to 16 color ansi foreground code
|
|
152
|
-
|
|
153
|
-
styles.color.ansi256(styles.rgbToAnsi256(100, 200, 15)); // RGB to 256 color ansi foreground code
|
|
154
|
-
styles.bgColor.ansi256(styles.hexToAnsi256('#C0FFEE')); // HEX to 256 color ansi foreground code
|
|
155
|
-
|
|
156
|
-
styles.color.ansi16m(100, 200, 15); // RGB to 16 million color foreground code
|
|
157
|
-
styles.bgColor.ansi16m(...styles.hexToRgb('#C0FFEE')); // Hex (RGB) to 16 million color foreground code
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
## Related
|
|
161
|
-
|
|
162
|
-
- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal
|
|
163
|
-
|
|
164
|
-
## Maintainers
|
|
165
|
-
|
|
166
|
-
- [Sindre Sorhus](https://github.com/sindresorhus)
|
|
167
|
-
- [Josh Junon](https://github.com/qix-)
|
|
168
|
-
|
|
169
|
-
## For enterprise
|
|
170
|
-
|
|
171
|
-
Available as part of the Tidelift Subscription.
|
|
172
|
-
|
|
173
|
-
The maintainers of `ansi-styles` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-ansi-styles?utm_source=npm-ansi-styles&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Check if the code is running in a web browser environment.
|
|
3
|
-
*/
|
|
4
|
-
export const isBrowser: boolean;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
Check if the code is running in a [Node.js](https://nodejs.org) environment.
|
|
8
|
-
*/
|
|
9
|
-
export const isNode: boolean;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
Check if the code is running in a [Bun](https://bun.sh) environment.
|
|
13
|
-
*/
|
|
14
|
-
export const isBun: boolean;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
Check if the code is running in a Deno environment.
|
|
18
|
-
*/
|
|
19
|
-
export const isDeno: boolean;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
Check if the code is running in an Electron environment.
|
|
23
|
-
*/
|
|
24
|
-
export const isElectron: boolean;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
Check if the code is running in a [jsdom](https://github.com/jsdom/jsdom) environment.
|
|
28
|
-
*/
|
|
29
|
-
export const isJsDom: boolean;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
Check if the code is running in a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API#worker_global_contexts_and_functions) environment, which could be either a dedicated worker, shared worker, or service worker.
|
|
33
|
-
*/
|
|
34
|
-
export const isWebWorker: boolean;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
Check if the code is running in a [Dedicated Worker](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope) environment.
|
|
38
|
-
*/
|
|
39
|
-
export const isDedicatedWorker: boolean;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
Check if the code is running in a [Shared Worker](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope) environment.
|
|
43
|
-
*/
|
|
44
|
-
export const isSharedWorker: boolean;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
Check if the code is running in a [Service Worker](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope) environment.
|
|
48
|
-
*/
|
|
49
|
-
export const isServiceWorker: boolean;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
Check if the code is running on macOS.
|
|
53
|
-
*/
|
|
54
|
-
export const isMacOs: boolean;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
Check if the code is running on Windows.
|
|
58
|
-
*/
|
|
59
|
-
export const isWindows: boolean;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
Check if the code is running on Linux.
|
|
63
|
-
*/
|
|
64
|
-
export const isLinux: boolean;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
Check if the code is running on iOS.
|
|
68
|
-
*/
|
|
69
|
-
export const isIos: boolean;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
Check if the code is running on Android.
|
|
73
|
-
*/
|
|
74
|
-
export const isAndroid: boolean;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/* globals WorkerGlobalScope, DedicatedWorkerGlobalScope, SharedWorkerGlobalScope, ServiceWorkerGlobalScope */
|
|
2
|
-
|
|
3
|
-
export const isBrowser = globalThis.window?.document !== undefined;
|
|
4
|
-
|
|
5
|
-
export const isNode = globalThis.process?.versions?.node !== undefined;
|
|
6
|
-
|
|
7
|
-
export const isBun = globalThis.process?.versions?.bun !== undefined;
|
|
8
|
-
|
|
9
|
-
export const isDeno = globalThis.Deno?.version?.deno !== undefined;
|
|
10
|
-
|
|
11
|
-
export const isElectron = globalThis.process?.versions?.electron !== undefined;
|
|
12
|
-
|
|
13
|
-
export const isJsDom = globalThis.navigator?.userAgent?.includes('jsdom') === true;
|
|
14
|
-
|
|
15
|
-
export const isWebWorker = typeof WorkerGlobalScope !== 'undefined' && globalThis instanceof WorkerGlobalScope;
|
|
16
|
-
|
|
17
|
-
export const isDedicatedWorker = typeof DedicatedWorkerGlobalScope !== 'undefined' && globalThis instanceof DedicatedWorkerGlobalScope;
|
|
18
|
-
|
|
19
|
-
export const isSharedWorker = typeof SharedWorkerGlobalScope !== 'undefined' && globalThis instanceof SharedWorkerGlobalScope;
|
|
20
|
-
|
|
21
|
-
export const isServiceWorker = typeof ServiceWorkerGlobalScope !== 'undefined' && globalThis instanceof ServiceWorkerGlobalScope;
|
|
22
|
-
|
|
23
|
-
// Note: I'm intentionally not DRYing up the other variables to keep them "lazy".
|
|
24
|
-
const platform = globalThis.navigator?.userAgentData?.platform;
|
|
25
|
-
|
|
26
|
-
export const isMacOs = platform === 'macOS'
|
|
27
|
-
|| globalThis.navigator?.platform === 'MacIntel' // Even on Apple silicon Macs.
|
|
28
|
-
|| globalThis.navigator?.userAgent?.includes(' Mac ') === true
|
|
29
|
-
|| globalThis.process?.platform === 'darwin';
|
|
30
|
-
|
|
31
|
-
export const isWindows = platform === 'Windows'
|
|
32
|
-
|| globalThis.navigator?.platform === 'Win32'
|
|
33
|
-
|| globalThis.process?.platform === 'win32';
|
|
34
|
-
|
|
35
|
-
export const isLinux = platform === 'Linux'
|
|
36
|
-
|| globalThis.navigator?.platform?.startsWith('Linux') === true
|
|
37
|
-
|| globalThis.navigator?.userAgent?.includes(' Linux ') === true
|
|
38
|
-
|| globalThis.process?.platform === 'linux';
|
|
39
|
-
|
|
40
|
-
export const isIos = platform === 'iOS'
|
|
41
|
-
|| (globalThis.navigator?.platform === 'MacIntel' && globalThis.navigator?.maxTouchPoints > 1)
|
|
42
|
-
|| /iPad|iPhone|iPod/.test(globalThis.navigator?.platform);
|
|
43
|
-
|
|
44
|
-
export const isAndroid = platform === 'Android'
|
|
45
|
-
|| globalThis.navigator?.platform === 'Android'
|
|
46
|
-
|| globalThis.navigator?.userAgent?.includes(' Android ') === true
|
|
47
|
-
|| globalThis.process?.platform === 'android';
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "environment",
|
|
3
|
-
"version": "1.1.0",
|
|
4
|
-
"description": "Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/environment",
|
|
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
|
-
},
|
|
25
|
-
"files": [
|
|
26
|
-
"index.js",
|
|
27
|
-
"index.d.ts"
|
|
28
|
-
],
|
|
29
|
-
"keywords": [
|
|
30
|
-
"runtime",
|
|
31
|
-
"environment",
|
|
32
|
-
"env",
|
|
33
|
-
"execution",
|
|
34
|
-
"engine",
|
|
35
|
-
"platform",
|
|
36
|
-
"context",
|
|
37
|
-
"js",
|
|
38
|
-
"javascript",
|
|
39
|
-
"is",
|
|
40
|
-
"check",
|
|
41
|
-
"checking",
|
|
42
|
-
"detect",
|
|
43
|
-
"detection",
|
|
44
|
-
"browser",
|
|
45
|
-
"node",
|
|
46
|
-
"bun",
|
|
47
|
-
"deno",
|
|
48
|
-
"electron",
|
|
49
|
-
"jsdom",
|
|
50
|
-
"webworker",
|
|
51
|
-
"worker",
|
|
52
|
-
"serviceworker",
|
|
53
|
-
"macos",
|
|
54
|
-
"ios",
|
|
55
|
-
"iphone",
|
|
56
|
-
"ipad",
|
|
57
|
-
"windows",
|
|
58
|
-
"linux",
|
|
59
|
-
"android",
|
|
60
|
-
"os",
|
|
61
|
-
"operating",
|
|
62
|
-
"system"
|
|
63
|
-
],
|
|
64
|
-
"devDependencies": {
|
|
65
|
-
"ava": "^6.1.3",
|
|
66
|
-
"typescript": "^5.4.5",
|
|
67
|
-
"xo": "^0.58.0"
|
|
68
|
-
},
|
|
69
|
-
"xo": {
|
|
70
|
-
"rules": {
|
|
71
|
-
"n/prefer-global/process": "off"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
# environment
|
|
2
|
-
|
|
3
|
-
> Check which JavaScript environment your code is running in at runtime
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
npm install environment
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
import {isBrowser, isNode} from 'environment';
|
|
15
|
-
|
|
16
|
-
if (isBrowser) {
|
|
17
|
-
console.log('Running in a browser!');
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
if (isNode) {
|
|
21
|
-
console.log('Running in Node.js!');
|
|
22
|
-
}
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
> [!NOTE]
|
|
26
|
-
> Runtime checks should be used sparingly. Prefer [conditional package exports](https://nodejs.org/api/packages.html#conditional-exports) and [imports](https://nodejs.org/api/packages.html#subpath-imports) whenever possible.
|
|
27
|
-
|
|
28
|
-
## API
|
|
29
|
-
|
|
30
|
-
### `isBrowser`
|
|
31
|
-
|
|
32
|
-
Check if the code is running in a web browser environment.
|
|
33
|
-
|
|
34
|
-
### `isNode`
|
|
35
|
-
|
|
36
|
-
Check if the code is running in a [Node.js](https://nodejs.org) environment.
|
|
37
|
-
|
|
38
|
-
### `isBun`
|
|
39
|
-
|
|
40
|
-
Check if the code is running in a [Bun](https://bun.sh) environment.
|
|
41
|
-
|
|
42
|
-
### `isDeno`
|
|
43
|
-
|
|
44
|
-
Check if the code is running in a [Deno](https://deno.com) environment.
|
|
45
|
-
|
|
46
|
-
### `isElectron`
|
|
47
|
-
|
|
48
|
-
Check if the code is running in an [Electron](https://www.electronjs.org) environment.
|
|
49
|
-
|
|
50
|
-
### `isJsDom`
|
|
51
|
-
|
|
52
|
-
Check if the code is running in a [jsdom](https://github.com/jsdom/jsdom) environment.
|
|
53
|
-
|
|
54
|
-
### `isWebWorker`
|
|
55
|
-
|
|
56
|
-
Check if the code is running in a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API#worker_global_contexts_and_functions) environment, which could be either a dedicated worker, shared worker, or service worker.
|
|
57
|
-
|
|
58
|
-
### `isDedicatedWorker`
|
|
59
|
-
|
|
60
|
-
Check if the code is running in a [Dedicated Worker](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope) environment.
|
|
61
|
-
|
|
62
|
-
### `isSharedWorker`
|
|
63
|
-
|
|
64
|
-
Check if the code is running in a [Shared Worker](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope) environment.
|
|
65
|
-
|
|
66
|
-
### `isServiceWorker`
|
|
67
|
-
|
|
68
|
-
Check if the code is running in a [Service Worker](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope) environment.
|
|
69
|
-
|
|
70
|
-
### `isMacOs`
|
|
71
|
-
|
|
72
|
-
Check if the code is running on macOS.
|
|
73
|
-
|
|
74
|
-
### `isWindows`
|
|
75
|
-
|
|
76
|
-
Check if the code is running on Windows.
|
|
77
|
-
|
|
78
|
-
### `isLinux`
|
|
79
|
-
|
|
80
|
-
Check if the code is running on Linux.
|
|
81
|
-
|
|
82
|
-
### `isIos`
|
|
83
|
-
|
|
84
|
-
Check if the code is running on iOS.
|
|
85
|
-
|
|
86
|
-
### `isAndroid`
|
|
87
|
-
|
|
88
|
-
Check if the code is running on Android.
|
|
89
|
-
|
|
90
|
-
## Related
|
|
91
|
-
|
|
92
|
-
- [is-in-ci](https://github.com/sindresorhus/is-in-ci) - Check if the process is running in a CI environment
|
|
93
|
-
- [is64bit](https://github.com/sindresorhus/is64bit) - Check if the operating system CPU architecture is 64-bit or 32-bit
|
|
94
|
-
- [is](https://github.com/sindresorhus/is) - Type check values
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Escape RegExp special characters.
|
|
3
|
-
|
|
4
|
-
You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.
|
|
5
|
-
|
|
6
|
-
@example
|
|
7
|
-
```
|
|
8
|
-
import escapeStringRegexp = require('escape-string-regexp');
|
|
9
|
-
|
|
10
|
-
const escapedString = escapeStringRegexp('How much $ for a 🦄?');
|
|
11
|
-
//=> 'How much \\$ for a 🦄\\?'
|
|
12
|
-
|
|
13
|
-
new RegExp(escapedString);
|
|
14
|
-
```
|
|
15
|
-
*/
|
|
16
|
-
declare const escapeStringRegexp: (string: string) => string;
|
|
17
|
-
|
|
18
|
-
export = escapeStringRegexp;
|