decocms 2.343.5 → 2.343.6
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-DMn4ErF7.js → AlertCircle-B2eHj7e1.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-DRMMU-Rx.js → ArrowNarrowLeft-CxcqihTL.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BG1qVEu5.js → ArrowUpRight-Bmxv_5f2.js} +1 -1
- package/dist/client/assets/{Building02-DXFrqtM4.js → Building02-DhlHp14j.js} +1 -1
- package/dist/client/assets/{Check-CgJkW5mO.js → Check-DKPiDw0v.js} +1 -1
- package/dist/client/assets/{CheckCircle-BhQF3J-G.js → CheckCircle-BS-i9SgB.js} +1 -1
- package/dist/client/assets/{ChevronDown-C6CmTT2m.js → ChevronDown-C2svK15b.js} +1 -1
- package/dist/client/assets/{ChevronRight-9ST8kRHp.js → ChevronRight-D_jXf5Kp.js} +1 -1
- package/dist/client/assets/{ChevronUp-DYBcJQJI.js → ChevronUp-CVfkcqtl.js} +1 -1
- package/dist/client/assets/{Container-DvJcXzPK.js → Container-BkK0DB__.js} +1 -1
- package/dist/client/assets/{DotsVertical-BWVeD_Nu.js → DotsVertical-C0edSuvc.js} +1 -1
- package/dist/client/assets/{Key01-CToqdwOF.js → Key01-CRTO9Eqv.js} +1 -1
- package/dist/client/assets/{LayoutLeft-msnP7LxF.js → LayoutLeft-PSosyh8W.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BYFbxPa2.js → LinkExternal01-8dkTfrKr.js} +1 -1
- package/dist/client/assets/{Lock01-Br965pCK.js → Lock01-D3HzAQHN.js} +1 -1
- package/dist/client/assets/{Monitor01-CeCWg7Jm.js → Monitor01-CE0kuy60.js} +1 -1
- package/dist/client/assets/{Palette-CTxrzTV6.js → Palette-K4YZYTyg.js} +1 -1
- package/dist/client/assets/{Play-Y01bx8MI.js → Play-DfLpvTAf.js} +1 -1
- package/dist/client/assets/{Plus-DZMvWlgN.js → Plus-DUbqF6rK.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-STdDbh6L.js → RefreshCcw01-B-Cq3kpB.js} +1 -1
- package/dist/client/assets/{SearchLg-tmO6QRl-.js → SearchLg-CWYSpRcF.js} +1 -1
- package/dist/client/assets/{SearchMd-i7Gp8R_i.js → SearchMd-Dpur_ahX.js} +1 -1
- package/dist/client/assets/{Settings02-Ca5SX90W.js → Settings02-CJ09Har8.js} +1 -1
- package/dist/client/assets/{Shield01-56gTI-65.js → Shield01-CnFfMzTJ.js} +1 -1
- package/dist/client/assets/{Star01-B7Wf0BA4.js → Star01-f02R5Lt3.js} +1 -1
- package/dist/client/assets/{Sun-JMAHaccL.js → Sun-GgIgazyF.js} +1 -1
- package/dist/client/assets/{Tool01-Ck4wzkil.js → Tool01-CIld76-5.js} +1 -1
- package/dist/client/assets/{Trash01-DZil92Jh.js → Trash01-cTgn14Wa.js} +1 -1
- package/dist/client/assets/{Upload01-B0HbOxqP.js → Upload01-HhDlaYLd.js} +1 -1
- package/dist/client/assets/{User01-Bb_7ado6.js → User01-CUr_vH6R.js} +1 -1
- package/dist/client/assets/{Users01-CCKc6ep2.js → Users01-DfpmcJ6n.js} +1 -1
- package/dist/client/assets/{Users03-9Msw3sAO.js → Users03-DFib9kg8.js} +1 -1
- package/dist/client/assets/{X-DDsITeaO.js → X-KaP-9Zgp.js} +1 -1
- package/dist/client/assets/{XCircle-zMGNHwa8.js → XCircle-CmRYIXoV.js} +1 -1
- package/dist/client/assets/{XClose-BfGe8XlD.js → XClose-BTeq1oZe.js} +1 -1
- package/dist/client/assets/{Zap-D1hcdQQV.js → Zap-BuqS_qna.js} +1 -1
- package/dist/client/assets/{ZapSquare-DbH77Z5v.js → ZapSquare-BNz1wDNr.js} +1 -1
- package/dist/client/assets/{accordion-BJxZ1Mun.js → accordion-f3g-k3lM.js} +1 -1
- package/dist/client/assets/{agent-icon-sU9yNgMj.js → agent-icon-DhO8qmda.js} +1 -1
- package/dist/client/assets/{agent-models-B_Glgacf.js → agent-models-DuOluvdI.js} +1 -1
- package/dist/client/assets/{agents-list-DH1mAh-Z.js → agents-list-CGNMOYSa.js} +1 -1
- package/dist/client/assets/{ai-providers-C-PBt61H.js → ai-providers-Cktx7Vm2.js} +1 -1
- package/dist/client/assets/{alert-dialog-CsOiC1Gz.js → alert-dialog-6PLIDXks.js} +1 -1
- package/dist/client/assets/{auth-catchall-BNUhQHYq.js → auth-catchall-Ccm8W1GX.js} +1 -1
- package/dist/client/assets/{auth-split-layout-i-geOrIj.js → auth-split-layout-CMVWo7nP.js} +1 -1
- package/dist/client/assets/{automation-list-row-Cvf312NN.js → automation-list-row-Brz_krF-.js} +1 -1
- package/dist/client/assets/{automations-iqMyNrX4.js → automations-_NK1-A6q.js} +1 -1
- package/dist/client/assets/{avatar-Ds0wPNKF.js → avatar-B8vNPMYL.js} +1 -1
- package/dist/client/assets/{badge-C2JMvH6Q.js → badge--5VL1-K0.js} +1 -1
- package/dist/client/assets/{brand-context-B-0ozW8j.js → brand-context-CUPYEhfL.js} +1 -1
- package/dist/client/assets/{card-mSB2lAWB.js → card-BAPVTNeM.js} +1 -1
- package/dist/client/assets/{chat-context-DR6dQnLy.js → chat-context-0IKLT4wq.js} +1 -1
- package/dist/client/assets/{checkbox-DPaoVVrP.js → checkbox-BQ4sRBrQ.js} +1 -1
- package/dist/client/assets/{collection-detail-CMmWJSl9.js → collection-detail-BFyVunit.js} +1 -1
- package/dist/client/assets/{collection-display-button-C0IyjKMk.js → collection-display-button-YhJUEiHz.js} +1 -1
- package/dist/client/assets/{collection-search-Dbo118DH.js → collection-search-C_-yILXl.js} +1 -1
- package/dist/client/assets/{collection-search-DcWbN0tR.js → collection-search-DD55_3nh.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-iHZqG4EL.js → collection-table-wrapper-TX9-kk8m.js} +1 -1
- package/dist/client/assets/{collection-tabs-xlUwBk7w.js → collection-tabs-y0cy_oLu.js} +1 -1
- package/dist/client/assets/{collections-D64xxjNO.js → collections-38BsWSzW.js} +1 -1
- package/dist/client/assets/{command-0hO6Is11.js → command-D0zg2xR7.js} +1 -1
- package/dist/client/assets/{connection-card-Dmpozita.js → connection-card-BmgME3nF.js} +1 -1
- package/dist/client/assets/{connection-detail-Be6icjyq.js → connection-detail-CBouLj3k.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DIYVQOJo.js → connection-form-helpers-mYM6wAEh.js} +1 -1
- package/dist/client/assets/{connections-CGtSBpA-.js → connections-DN5RucSd.js} +1 -1
- package/dist/client/assets/{constants-DPVM1Ytu.js → constants-CPVZA0XC.js} +1 -1
- package/dist/client/assets/{constants-DG2sk_0H.js → constants-dLpaUsN8.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BMdviN8X.js → decopilot-sse-pool-XfO9dGEQ.js} +1 -1
- package/dist/client/assets/{dialog-xU6O08Hz.js → dialog-DeF_jmhK.js} +1 -1
- package/dist/client/assets/{domain-settings-CmWnBxMx.js → domain-settings-CuhYxhnp.js} +1 -1
- package/dist/client/assets/{drawer-Bftoew7Y.js → drawer-VlebDb69.js} +1 -1
- package/dist/client/assets/{dropdown-menu-37ioHY85.js → dropdown-menu-roylZYWc.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BdEqqluD.js → dynamic-plugin-layout-B4eJnbCb.js} +1 -1
- package/dist/client/assets/{empty-state-DTkqsJki.js → empty-state-B_coEY2P.js} +1 -1
- package/dist/client/assets/{empty-state-_qOVtH-p.js → empty-state-wVlFUTuL.js} +1 -1
- package/dist/client/assets/{extract-connection-data-_i5LkZhQ.js → extract-connection-data-G78XYV45.js} +1 -1
- package/dist/client/assets/{features-BuQRTHY7.js → features-Dvg6m_Tb.js} +1 -1
- package/dist/client/assets/{file-explorer-pKhIdo3a.js → file-explorer-BV9f-kke.js} +1 -1
- package/dist/client/assets/{form-CgjywpPp.js → form-jI6P-pAp.js} +1 -1
- package/dist/client/assets/{general-DcrhKepf.js → general-DLcUgbha.js} +1 -1
- package/dist/client/assets/{hooks-C0RpcvT-.js → hooks-CKWLlFdn.js} +1 -1
- package/dist/client/assets/{index-DSfns5B0.js → index-BB1deX0d.js} +1 -1
- package/dist/client/assets/{index-C76W7tLb.js → index-BRgCAhHs.js} +1 -1
- package/dist/client/assets/{index-C9UEm0aF.js → index-Bf4UxK2Z.js} +2 -2
- package/dist/client/assets/{index-DKSThpY5.js → index-Bgfr6sPE.js} +1 -1
- package/dist/client/assets/{index-BtcuhRkM.js → index-BiK2ANK0.js} +1 -1
- package/dist/client/assets/{index-C5OHYX2D.js → index-CJ06re6J.js} +1 -1
- package/dist/client/assets/{index-w6-egSGC.js → index-CrCKLCTE.js} +1 -1
- package/dist/client/assets/{index-BwxPkxWQ.js → index-Cti5aHML.js} +1 -1
- package/dist/client/assets/{index-CAWr5v6I.js → index-Cxq_1hW7.js} +1 -1
- package/dist/client/assets/{index-CkNEQt0t.js → index-DSWBpg1D.js} +1 -1
- package/dist/client/assets/{index-ycinRUyU.js → index-Dq89w-TY.js} +1 -1
- package/dist/client/assets/{index-R7WmRLsq.js → index-Dql3mibq.js} +1 -1
- package/dist/client/assets/{index-CuoKNiBk.js → index-SC5A95WZ.js} +1 -1
- package/dist/client/assets/{index-CsN1f6Mf.js → index-gLjKW_GL.js} +4 -4
- package/dist/client/assets/{index-BTF4JQ6R.js → index-jDo3raIY.js} +1 -1
- package/dist/client/assets/{index-guSlXYnQ.js → index-rkrd3EG7.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-D-LVR76l.js → infiniteQueryObserver-D1AxhsFP.js} +1 -1
- package/dist/client/assets/{input-Cdi9gxjc.js → input-D3wLBcw1.js} +1 -1
- package/dist/client/assets/{integration-icon-DcWsEICc.js → integration-icon-CDsyJjsh.js} +1 -1
- package/dist/client/assets/{label-BuSjhBby.js → label-e0eIq6aZ.js} +1 -1
- package/dist/client/assets/{layout-xI0NTaVa.js → layout-B3Vav8lm.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-C1eNHtBl.js → lean-canvas-recruit-modal-DOlgcgzL.js} +1 -1
- package/dist/client/assets/{login-D9UPVEj4.js → login-bAEXzx2H.js} +1 -1
- package/dist/client/assets/{members-Bc3j8vYC.js → members-CrGJoeDh.js} +1 -1
- package/dist/client/assets/{monaco-editor-CatlVtHe.js → monaco-editor-DRSPGhbT.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BIhzNtTb.js → monitoring-stats-row-BDJ_Q-sT.js} +1 -1
- package/dist/client/assets/{oauth-callback-CYlYmz7U.js → oauth-callback-DVRyNcmj.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DeHId1DV.js → oauth-callback-ai-provider-DxdNkPgW.js} +1 -1
- package/dist/client/assets/{onboarding-BVlqY8oG.js → onboarding-D8s2ns87.js} +1 -1
- package/dist/client/assets/{org-layout-B9V1WKRL.js → org-layout-CpcOioMH.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-Dc7_BxQD.js → org-plugin-layout-CYGUkkkR.js} +1 -1
- package/dist/client/assets/{pair-CeEq9T2O.js → pair-BOolv6CG.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CpS42-ME.js → plugin-empty-state-DBV3odzo.js} +1 -1
- package/dist/client/assets/{plugin-header-BJfFFNRP.js → plugin-header-BJPzRt2a.js} +1 -1
- package/dist/client/assets/{plugin-layout-D_Iqj8CD.js → plugin-layout-Dsi7k6R5.js} +1 -1
- package/dist/client/assets/{popover-B8_iKHLU.js → popover-BeXnf11b.js} +1 -1
- package/dist/client/assets/{profile-BJX5q_hw.js → profile-CDV7JIt-.js} +1 -1
- package/dist/client/assets/{project-app-view-D-lV6K7b.js → project-app-view-CjRV_NRv.js} +1 -1
- package/dist/client/assets/registry-CrgBbUgM.js +2 -0
- package/dist/client/assets/{registry-layout-C5yxWOxu.js → registry-layout-CNpEHraq.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BkADLVGr.js → required-auth-layout-CA4fYSwK.js} +1 -1
- package/dist/client/assets/{reset-password-6dG3DUO1.js → reset-password-eDFtZmm0.js} +1 -1
- package/dist/client/assets/{roles-BGdUO_ZL.js → roles-C2lU9lYy.js} +1 -1
- package/dist/client/assets/{search-input-BcTGkVm4.js → search-input-D3FhG3of.js} +1 -1
- package/dist/client/assets/{secrets-DGUwetu-.js → secrets-BS-lOU1C.js} +1 -1
- package/dist/client/assets/{sections-editor-ylnmXhOn.js → sections-editor-x8uPPz4j.js} +1 -1
- package/dist/client/assets/{select-B4d2U3-e.js → select-CuHr5fXM.js} +1 -1
- package/dist/client/assets/{settings-layout-CJaDzYgG.js → settings-layout-Buet0SmG.js} +1 -1
- package/dist/client/assets/{settings-section-Dk6rz76H.js → settings-section-DiHCwxw2.js} +1 -1
- package/dist/client/assets/{shell-layout-C2Sdv8NG.js → shell-layout-JnQ2O1U7.js} +1 -1
- package/dist/client/assets/{sidebar-CGPsmcjg.js → sidebar-B_4prYx4.js} +1 -1
- package/dist/client/assets/{skeleton-COUipQ4Q.js → skeleton-AGBsesGc.js} +1 -1
- package/dist/client/assets/{spinner-CIoX-SxH.js → spinner-DsACT7El.js} +1 -1
- package/dist/client/assets/{sso-B80o0s1k.js → sso-Dhyd6ZiO.js} +1 -1
- package/dist/client/assets/{store-0QX3bjMs.js → store-CcesFZmy.js} +1 -1
- package/dist/client/assets/store-registry-CnUEYKl7.js +2 -0
- package/dist/client/assets/{switch-_JN6WXfk.js → switch-BGE9cJht.js} +1 -1
- package/dist/client/assets/{table-Dcd3qce4.js → table-DgPM3Urg.js} +1 -1
- package/dist/client/assets/{tabs-qbu5aXP5.js → tabs-BOTzf805.js} +1 -1
- package/dist/client/assets/{task-status-7EvHcXhA.js → task-status-DtPctv4c.js} +1 -1
- package/dist/client/assets/{textarea-ezBAh-ci.js → textarea-BF_TKrea.js} +1 -1
- package/dist/client/assets/{toggle-group-fa9ptW_Z.js → toggle-group-DnWWdySD.js} +1 -1
- package/dist/client/assets/{tools-list-8krv5h-3.js → tools-list-BRIP5RmH.js} +1 -1
- package/dist/client/assets/{tooltip-CaQjUma3.js → tooltip-DM9palzE.js} +1 -1
- package/dist/client/assets/{types-C4e-LRxV.js → types-BtPcm-7P.js} +1 -1
- package/dist/client/assets/{use-ai-providers-C3VHCF8p.js → use-ai-providers-OUW6JMOp.js} +1 -1
- package/dist/client/assets/{use-collections-DNvmDnbN.js → use-collections-nufxZlf_.js} +1 -1
- package/dist/client/assets/{use-connection-BGdZGnmu.js → use-connection-BNmoIwQg.js} +1 -1
- package/dist/client/assets/{use-copy-RYe2lXz3.js → use-copy-D6zGnSRk.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-ChO4_kNB.js → use-create-virtual-mcp-Ckr2pYgU.js} +1 -1
- package/dist/client/assets/{use-create-website-agent-3oryguME.js → use-create-website-agent-CKFqK76s.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BY5sGeW6.js → use-debounced-autosave-BBwvvwih.js} +1 -1
- package/dist/client/assets/{use-delete-connection-C6AmsDRy.js → use-delete-connection-CPao9B1A.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BihNiDcY.js → use-infinite-scroll-BDKH-Wtf.js} +1 -1
- package/dist/client/assets/{use-list-state-0oP6RkcN.js → use-list-state-BqW4uQqC.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BDMB9XmW.js → use-mcp-tools-VZ9Hpxff.js} +1 -1
- package/dist/client/assets/{use-members-CkjLUYIV.js → use-members-B7HW_JBz.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Bcv_R7xe.js → use-navigate-to-agent-BEpwKNsB.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-R-on2rxL.js → use-org-auth-client-bVHLT2YP.js} +1 -1
- package/dist/client/assets/{use-org-sso-B8VnAMoS.js → use-org-sso-ZXpwOerI.js} +1 -1
- package/dist/client/assets/{use-organization-roles-v9JQk9hP.js → use-organization-roles-CgtYHR9C.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DKdHITUe.js → use-organization-settings-DsFVMR9y.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BxKGYdQr.js → use-registry-connections-DPX7EH3p.js} +1 -1
- package/dist/client/assets/{use-secrets-3AqFLOQx.js → use-secrets-BqmvCE0c.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Cmw5K0Ch.js → use-status-sounds-DmU4jspw.js} +1 -1
- package/dist/client/assets/{use-view-mode-CBIh242S.js → use-view-mode-BLjEDO9D.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-B0ez_suv.js → use-virtual-mcp-CfSWiyjb.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-1PtmuLfG.js +1 -0
- package/dist/client/assets/{useRouterState-EoWY4nHO.js → useRouterState-zGUMzA-3.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B87PMcER.js +1 -0
- package/dist/client/assets/{user-C3gZLtHM.js → user-BObMSYhv.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-ChtVPtKo.js → view-mode-toggle-BFP9EFGX.js} +1 -1
- package/dist/client/assets/{workflow-gp1Gi9YH.js → workflow-B3swyRIG.js} +1 -1
- package/dist/client/assets/workflow-detail-BzwgoTIj.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
- package/dist/server/node_modules/ansi-styles/index.js +223 -0
- package/dist/server/node_modules/ansi-styles/package.json +54 -0
- package/dist/server/node_modules/ansi-styles/readme.md +173 -0
- package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
- package/dist/server/node_modules/pg-connection-string/README.md +105 -0
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
- package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
- package/dist/server/node_modules/pg-connection-string/index.js +231 -0
- package/dist/server/node_modules/pg-connection-string/package.json +52 -0
- package/dist/server/node_modules/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/xtend/LICENSE +20 -0
- package/dist/server/node_modules/xtend/README.md +32 -0
- package/dist/server/node_modules/xtend/immutable.js +19 -0
- package/dist/server/node_modules/xtend/mutable.js +17 -0
- package/dist/server/node_modules/xtend/package.json +55 -0
- package/dist/server/node_modules/xtend/test.js +103 -0
- package/package.json +2 -2
- package/dist/client/assets/registry-BY1Ukj0z.js +0 -2
- package/dist/client/assets/store-registry-BaAH1vXo.js +0 -2
- package/dist/client/assets/useInfiniteQuery-ghEPKCL5.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DfSMBOfj.js +0 -1
- package/dist/client/assets/workflow-detail-DNKrM4Su.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/{get-east-asian-width → ansi-styles}/license +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
var test = require("tape")
|
|
2
|
+
var extend = require("./")
|
|
3
|
+
var mutableExtend = require("./mutable")
|
|
4
|
+
|
|
5
|
+
test("merge", function(assert) {
|
|
6
|
+
var a = { a: "foo" }
|
|
7
|
+
var b = { b: "bar" }
|
|
8
|
+
|
|
9
|
+
assert.deepEqual(extend(a, b), { a: "foo", b: "bar" })
|
|
10
|
+
assert.end()
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
test("replace", function(assert) {
|
|
14
|
+
var a = { a: "foo" }
|
|
15
|
+
var b = { a: "bar" }
|
|
16
|
+
|
|
17
|
+
assert.deepEqual(extend(a, b), { a: "bar" })
|
|
18
|
+
assert.end()
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
test("undefined", function(assert) {
|
|
22
|
+
var a = { a: undefined }
|
|
23
|
+
var b = { b: "foo" }
|
|
24
|
+
|
|
25
|
+
assert.deepEqual(extend(a, b), { a: undefined, b: "foo" })
|
|
26
|
+
assert.deepEqual(extend(b, a), { a: undefined, b: "foo" })
|
|
27
|
+
assert.end()
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
test("handle 0", function(assert) {
|
|
31
|
+
var a = { a: "default" }
|
|
32
|
+
var b = { a: 0 }
|
|
33
|
+
|
|
34
|
+
assert.deepEqual(extend(a, b), { a: 0 })
|
|
35
|
+
assert.deepEqual(extend(b, a), { a: "default" })
|
|
36
|
+
assert.end()
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
test("is immutable", function (assert) {
|
|
40
|
+
var record = {}
|
|
41
|
+
|
|
42
|
+
extend(record, { foo: "bar" })
|
|
43
|
+
assert.equal(record.foo, undefined)
|
|
44
|
+
assert.end()
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
test("null as argument", function (assert) {
|
|
48
|
+
var a = { foo: "bar" }
|
|
49
|
+
var b = null
|
|
50
|
+
var c = void 0
|
|
51
|
+
|
|
52
|
+
assert.deepEqual(extend(b, a, c), { foo: "bar" })
|
|
53
|
+
assert.end()
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
test("mutable", function (assert) {
|
|
57
|
+
var a = { foo: "bar" }
|
|
58
|
+
|
|
59
|
+
mutableExtend(a, { bar: "baz" })
|
|
60
|
+
|
|
61
|
+
assert.equal(a.bar, "baz")
|
|
62
|
+
assert.end()
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
test("null prototype", function(assert) {
|
|
66
|
+
var a = { a: "foo" }
|
|
67
|
+
var b = Object.create(null)
|
|
68
|
+
b.b = "bar";
|
|
69
|
+
|
|
70
|
+
assert.deepEqual(extend(a, b), { a: "foo", b: "bar" })
|
|
71
|
+
assert.end()
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
test("null prototype mutable", function (assert) {
|
|
75
|
+
var a = { foo: "bar" }
|
|
76
|
+
var b = Object.create(null)
|
|
77
|
+
b.bar = "baz";
|
|
78
|
+
|
|
79
|
+
mutableExtend(a, b)
|
|
80
|
+
|
|
81
|
+
assert.equal(a.bar, "baz")
|
|
82
|
+
assert.end()
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
test("prototype pollution", function (assert) {
|
|
86
|
+
var a = {}
|
|
87
|
+
var maliciousPayload = '{"__proto__":{"oops":"It works!"}}'
|
|
88
|
+
|
|
89
|
+
assert.strictEqual(a.oops, undefined)
|
|
90
|
+
extend({}, maliciousPayload)
|
|
91
|
+
assert.strictEqual(a.oops, undefined)
|
|
92
|
+
assert.end()
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
test("prototype pollution mutable", function (assert) {
|
|
96
|
+
var a = {}
|
|
97
|
+
var maliciousPayload = '{"__proto__":{"oops":"It works!"}}'
|
|
98
|
+
|
|
99
|
+
assert.strictEqual(a.oops, undefined)
|
|
100
|
+
mutableExtend({}, maliciousPayload)
|
|
101
|
+
assert.strictEqual(a.oops, undefined)
|
|
102
|
+
assert.end()
|
|
103
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "decocms",
|
|
3
|
-
"version": "2.343.
|
|
3
|
+
"version": "2.343.6",
|
|
4
4
|
"description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
|
|
5
5
|
"author": "Deco team",
|
|
6
6
|
"repository": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@aws-sdk/s3-request-presigner": "^3.1013.0",
|
|
50
50
|
"@clickhouse/client": "^1.8.1",
|
|
51
51
|
"@dbos-inc/dbos-sdk": "^4.17.6",
|
|
52
|
-
"@deco-cx/warp-node": "^0.3.
|
|
52
|
+
"@deco-cx/warp-node": "^0.3.23",
|
|
53
53
|
"@dnd-kit/core": "^6.3.1",
|
|
54
54
|
"@dnd-kit/sortable": "^10.0.0",
|
|
55
55
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-C5yxWOxu.js","assets/index-C9UEm0aF.js","assets/index-BtSYbEIC.css","assets/ArrowNarrowLeft-DRMMU-Rx.js","assets/CheckCircle-BhQF3J-G.js","assets/Container-DvJcXzPK.js","assets/Settings02-Ca5SX90W.js","assets/XCircle-zMGNHwa8.js","assets/constants-DG2sk_0H.js","assets/useInfiniteQuery-ghEPKCL5.js","assets/infiniteQueryObserver-D-LVR76l.js","assets/badge-C2JMvH6Q.js","assets/input-Cdi9gxjc.js","assets/dropdown-menu-37ioHY85.js","assets/Check-CgJkW5mO.js","assets/ChevronRight-9ST8kRHp.js","assets/DotsVertical-BWVeD_Nu.js","assets/table-Dcd3qce4.js","assets/toggle-group-fa9ptW_Z.js","assets/use-view-mode-CBIh242S.js","assets/tooltip-CaQjUma3.js","assets/SearchMd-i7Gp8R_i.js","assets/dialog-xU6O08Hz.js","assets/X-DDsITeaO.js","assets/AlertCircle-DMn4ErF7.js","assets/Upload01-B0HbOxqP.js","assets/alert-dialog-CsOiC1Gz.js","assets/card-mSB2lAWB.js","assets/Trash01-DZil92Jh.js","assets/label-BuSjhBby.js","assets/select-B4d2U3-e.js","assets/ChevronDown-C6CmTT2m.js","assets/ChevronUp-DYBcJQJI.js","assets/switch-_JN6WXfk.js","assets/textarea-ezBAh-ci.js","assets/RefreshCcw01-STdDbh6L.js","assets/checkbox-DPaoVVrP.js","assets/LinkExternal01-BYFbxPa2.js","assets/use-copy-RYe2lXz3.js","assets/Key01-CToqdwOF.js","assets/Plus-DZMvWlgN.js","assets/Play-Y01bx8MI.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as a,j as t,r,l as i,_ as o}from"./index-C9UEm0aF.js";const n=r.lazy(()=>o(()=>import("./registry-layout-C5yxWOxu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41])));function c(){const s=a.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(r.Suspense,{fallback:t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(i,{size:20,className:"animate-spin text-muted-foreground"})}),children:t.jsx(n,{})}),s[0]=e):e=s[0],e}export{c as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-C5yxWOxu.js","assets/index-C9UEm0aF.js","assets/index-BtSYbEIC.css","assets/ArrowNarrowLeft-DRMMU-Rx.js","assets/CheckCircle-BhQF3J-G.js","assets/Container-DvJcXzPK.js","assets/Settings02-Ca5SX90W.js","assets/XCircle-zMGNHwa8.js","assets/constants-DG2sk_0H.js","assets/useInfiniteQuery-ghEPKCL5.js","assets/infiniteQueryObserver-D-LVR76l.js","assets/badge-C2JMvH6Q.js","assets/input-Cdi9gxjc.js","assets/dropdown-menu-37ioHY85.js","assets/Check-CgJkW5mO.js","assets/ChevronRight-9ST8kRHp.js","assets/DotsVertical-BWVeD_Nu.js","assets/table-Dcd3qce4.js","assets/toggle-group-fa9ptW_Z.js","assets/use-view-mode-CBIh242S.js","assets/tooltip-CaQjUma3.js","assets/SearchMd-i7Gp8R_i.js","assets/dialog-xU6O08Hz.js","assets/X-DDsITeaO.js","assets/AlertCircle-DMn4ErF7.js","assets/Upload01-B0HbOxqP.js","assets/alert-dialog-CsOiC1Gz.js","assets/card-mSB2lAWB.js","assets/Trash01-DZil92Jh.js","assets/label-BuSjhBby.js","assets/select-B4d2U3-e.js","assets/ChevronDown-C6CmTT2m.js","assets/ChevronUp-DYBcJQJI.js","assets/switch-_JN6WXfk.js","assets/textarea-ezBAh-ci.js","assets/RefreshCcw01-STdDbh6L.js","assets/checkbox-DPaoVVrP.js","assets/LinkExternal01-BYFbxPa2.js","assets/use-copy-RYe2lXz3.js","assets/Key01-CToqdwOF.js","assets/Plus-DZMvWlgN.js","assets/Play-Y01bx8MI.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as n,f as c,g as m,j as r,l as f,r as l,_ as u}from"./index-C9UEm0aF.js";const _=l.lazy(()=>u(()=>import("./registry-layout-C5yxWOxu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41])));function x(){const e=n.c(5),o=c();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:i}=m(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx("div",{className:"h-full flex items-center justify-center",children:r.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=s):s=e[1];let a;return e[2]!==o||e[3]!==i?(a=r.jsx(l.Suspense,{fallback:s,children:r.jsx(_,{onBack:()=>o({to:"/$org/settings/store",params:{org:i}})})}),e[2]=o,e[3]=i,e[4]=a):a=e[4],a}export{x as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-D-LVR76l.js";import{c6 as i}from"./index-C9UEm0aF.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-D-LVR76l.js";import{c6 as u,c7 as n}from"./index-C9UEm0aF.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as s,g as l,j as o,l as a,E as n,r as c}from"./index-C9UEm0aF.js";import{a as f}from"./index-CkNEQt0t.js";import"./index-ycinRUyU.js";import"./constants-DG2sk_0H.js";import"./collections-D64xxjNO.js";import"./index-DKSThpY5.js";import"./use-virtual-mcp-B0ez_suv.js";import"./use-collections-DNvmDnbN.js";import"./monaco-editor-CatlVtHe.js";import"./select-B4d2U3-e.js";import"./tooltip-CaQjUma3.js";import"./Check-CgJkW5mO.js";import"./ChevronDown-C6CmTT2m.js";import"./ChevronUp-DYBcJQJI.js";import"./spinner-CIoX-SxH.js";import"./accordion-BJxZ1Mun.js";import"./agent-icon-sU9yNgMj.js";import"./AlertCircle-DMn4ErF7.js";import"./Tool01-Ck4wzkil.js";import"./SearchLg-tmO6QRl-.js";import"./XClose-BfGe8XlD.js";import"./RefreshCcw01-STdDbh6L.js";import"./ArrowNarrowLeft-DRMMU-Rx.js";import"./XCircle-zMGNHwa8.js";import"./ArrowUpRight-BG1qVEu5.js";import"./ZapSquare-DbH77Z5v.js";import"./Building02-DXFrqtM4.js";import"./CheckCircle-BhQF3J-G.js";import"./ChevronRight-9ST8kRHp.js";import"./DotsVertical-BWVeD_Nu.js";import"./Container-DvJcXzPK.js";import"./Star01-B7Wf0BA4.js";import"./Palette-CTxrzTV6.js";import"./Key01-CToqdwOF.js";import"./LayoutLeft-msnP7LxF.js";import"./LinkExternal01-BYFbxPa2.js";import"./Lock01-Br965pCK.js";import"./Monitor01-CeCWg7Jm.js";import"./Sun-JMAHaccL.js";import"./Play-Y01bx8MI.js";import"./Plus-DZMvWlgN.js";import"./SearchMd-i7Gp8R_i.js";import"./Settings02-Ca5SX90W.js";import"./Shield01-56gTI-65.js";import"./Trash01-DZil92Jh.js";import"./Upload01-B0HbOxqP.js";import"./User01-Bb_7ado6.js";import"./Users01-CCKc6ep2.js";import"./Users03-9Msw3sAO.js";import"./X-DDsITeaO.js";import"./Zap-D1hcdQQV.js";import"./index-C5OHYX2D.js";import"./badge-C2JMvH6Q.js";import"./view-mode-toggle-ChtVPtKo.js";import"./layout-xI0NTaVa.js";import"./index-guSlXYnQ.js";import"./sidebar-CGPsmcjg.js";import"./use-connection-BGdZGnmu.js";import"./use-mcp-tools-BDMB9XmW.js";import"./dialog-xU6O08Hz.js";import"./index-BtcuhRkM.js";import"./dropdown-menu-37ioHY85.js";import"./integration-icon-DcWsEICc.js";import"./index-R7WmRLsq.js";import"./empty-state-_qOVtH-p.js";import"./create-sse-subscription-CjI9SUTI.js";import"./input-Cdi9gxjc.js";function Rt(){const t=s.c(4);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/workflows/$itemId"},t[0]=r):r=t[0];const{itemId:e}=l(r);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(a,{size:32,className:"animate-spin text-muted-foreground"})}),t[1]=i):i=t[1];const p=decodeURIComponent(e);let m;return t[2]!==p?(m=o.jsx(n,{children:o.jsx(c.Suspense,{fallback:i,children:o.jsx(f,{itemId:p})})}),t[2]=p,t[3]=m):m=t[3],m}export{Rt as default};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export type WidthType = 'fullwidth' | 'halfwidth' | 'wide' | 'narrow' | 'neutral' | 'ambiguous';
|
|
2
|
-
|
|
3
|
-
export type Options = {
|
|
4
|
-
/**
|
|
5
|
-
Whether to treat an `'ambiguous'` character as wide.
|
|
6
|
-
|
|
7
|
-
@default true
|
|
8
|
-
|
|
9
|
-
@example
|
|
10
|
-
```
|
|
11
|
-
import {eastAsianWidth} from 'get-east-asian-width';
|
|
12
|
-
|
|
13
|
-
const codePoint = '⛣'.codePointAt(0);
|
|
14
|
-
|
|
15
|
-
console.log(eastAsianWidth(codePoint));
|
|
16
|
-
//=> 1
|
|
17
|
-
|
|
18
|
-
console.log(eastAsianWidth(codePoint, {ambiguousAsWide: true}));
|
|
19
|
-
//=> 2
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
> 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.__
|
|
23
|
-
> - http://www.unicode.org/reports/tr11/
|
|
24
|
-
*/
|
|
25
|
-
readonly ambiguousAsWide?: boolean;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
Returns the width as a number for the given code point.
|
|
30
|
-
|
|
31
|
-
@param codePoint - A Unicode code point.
|
|
32
|
-
|
|
33
|
-
@example
|
|
34
|
-
```
|
|
35
|
-
import {eastAsianWidth} from 'get-east-asian-width';
|
|
36
|
-
|
|
37
|
-
const codePoint = '字'.codePointAt(0);
|
|
38
|
-
|
|
39
|
-
console.log(eastAsianWidth(codePoint));
|
|
40
|
-
//=> 2
|
|
41
|
-
```
|
|
42
|
-
*/
|
|
43
|
-
export function eastAsianWidth(codePoint: number, options?: Options): 1 | 2;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
Returns the type of “East Asian Width” for the given code point.
|
|
47
|
-
|
|
48
|
-
@param codePoint - A Unicode code point.
|
|
49
|
-
|
|
50
|
-
@example
|
|
51
|
-
```
|
|
52
|
-
import {eastAsianWidthType} from 'get-east-asian-width';
|
|
53
|
-
|
|
54
|
-
const codePoint = '字'.codePointAt(0);
|
|
55
|
-
|
|
56
|
-
console.log(eastAsianWidthType(codePoint));
|
|
57
|
-
//=> 'wide'
|
|
58
|
-
```
|
|
59
|
-
*/
|
|
60
|
-
export function eastAsianWidthType(codePoint: number): WidthType;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {getCategory, isAmbiguous, isFullWidth, isWide} from './lookup.js';
|
|
2
|
-
|
|
3
|
-
function validate(codePoint) {
|
|
4
|
-
if (!Number.isSafeInteger(codePoint)) {
|
|
5
|
-
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function eastAsianWidthType(codePoint) {
|
|
10
|
-
validate(codePoint);
|
|
11
|
-
|
|
12
|
-
return getCategory(codePoint);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function eastAsianWidth(codePoint, {ambiguousAsWide = false} = {}) {
|
|
16
|
-
validate(codePoint);
|
|
17
|
-
|
|
18
|
-
if (
|
|
19
|
-
isFullWidth(codePoint)
|
|
20
|
-
|| isWide(codePoint)
|
|
21
|
-
|| (ambiguousAsWide && isAmbiguous(codePoint))
|
|
22
|
-
) {
|
|
23
|
-
return 2;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return 1;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// Private exports for https://github.com/sindresorhus/is-fullwidth-code-point
|
|
30
|
-
export {isFullWidth as _isFullWidth, isWide as _isWide} from './lookup.js';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Generated by scripts/build.js
|
|
2
|
-
|
|
3
|
-
// prettier-ignore
|
|
4
|
-
const ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
|
|
5
|
-
|
|
6
|
-
// prettier-ignore
|
|
7
|
-
const fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
8
|
-
|
|
9
|
-
// prettier-ignore
|
|
10
|
-
const halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
|
|
11
|
-
|
|
12
|
-
// prettier-ignore
|
|
13
|
-
const narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
|
|
14
|
-
|
|
15
|
-
// prettier-ignore
|
|
16
|
-
const wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
|
|
17
|
-
|
|
18
|
-
export {ambiguousRanges, fullwidthRanges, halfwidthRanges, narrowRanges, wideRanges};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ambiguousRanges,
|
|
3
|
-
fullwidthRanges,
|
|
4
|
-
halfwidthRanges,
|
|
5
|
-
narrowRanges,
|
|
6
|
-
wideRanges,
|
|
7
|
-
} from './lookup-data.js';
|
|
8
|
-
import {isInRange} from './utilities.js';
|
|
9
|
-
|
|
10
|
-
const minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
11
|
-
const maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
12
|
-
const minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
13
|
-
const maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
14
|
-
const minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
15
|
-
const maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
16
|
-
const minimumNarrowCodePoint = narrowRanges[0];
|
|
17
|
-
const maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
18
|
-
const minimumWideCodePoint = wideRanges[0];
|
|
19
|
-
const maximumWideCodePoint = wideRanges.at(-1);
|
|
20
|
-
|
|
21
|
-
const commonCjkCodePoint = 0x4E_00;
|
|
22
|
-
const [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
23
|
-
|
|
24
|
-
// Use a hot-path range so common `isWide` calls can skip binary search.
|
|
25
|
-
// The range containing U+4E00 covers common CJK ideographs;
|
|
26
|
-
// fallback to the largest range for resilience to Unicode table changes.
|
|
27
|
-
function findWideFastPathRange(ranges) {
|
|
28
|
-
let fastPathStart = ranges[0];
|
|
29
|
-
let fastPathEnd = ranges[1];
|
|
30
|
-
|
|
31
|
-
for (let index = 0; index < ranges.length; index += 2) {
|
|
32
|
-
const start = ranges[index];
|
|
33
|
-
const end = ranges[index + 1];
|
|
34
|
-
|
|
35
|
-
if (
|
|
36
|
-
commonCjkCodePoint >= start
|
|
37
|
-
&& commonCjkCodePoint <= end
|
|
38
|
-
) {
|
|
39
|
-
return [start, end];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
if ((end - start) > (fastPathEnd - fastPathStart)) {
|
|
43
|
-
fastPathStart = start;
|
|
44
|
-
fastPathEnd = end;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return [fastPathStart, fastPathEnd];
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export const isAmbiguous = codePoint => {
|
|
52
|
-
if (
|
|
53
|
-
codePoint < minimumAmbiguousCodePoint
|
|
54
|
-
|| codePoint > maximumAmbiguousCodePoint
|
|
55
|
-
) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return isInRange(ambiguousRanges, codePoint);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export const isFullWidth = codePoint => {
|
|
63
|
-
if (
|
|
64
|
-
codePoint < minimumFullWidthCodePoint
|
|
65
|
-
|| codePoint > maximumFullWidthCodePoint
|
|
66
|
-
) {
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return isInRange(fullwidthRanges, codePoint);
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const isHalfWidth = codePoint => {
|
|
74
|
-
if (
|
|
75
|
-
codePoint < minimumHalfWidthCodePoint
|
|
76
|
-
|| codePoint > maximumHalfWidthCodePoint
|
|
77
|
-
) {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return isInRange(halfwidthRanges, codePoint);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
const isNarrow = codePoint => {
|
|
85
|
-
if (
|
|
86
|
-
codePoint < minimumNarrowCodePoint
|
|
87
|
-
|| codePoint > maximumNarrowCodePoint
|
|
88
|
-
) {
|
|
89
|
-
return false;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return isInRange(narrowRanges, codePoint);
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export const isWide = codePoint => {
|
|
96
|
-
if (
|
|
97
|
-
codePoint >= wideFastPathStart
|
|
98
|
-
&& codePoint <= wideFastPathEnd
|
|
99
|
-
) {
|
|
100
|
-
return true;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
if (
|
|
104
|
-
codePoint < minimumWideCodePoint
|
|
105
|
-
|| codePoint > maximumWideCodePoint
|
|
106
|
-
) {
|
|
107
|
-
return false;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return isInRange(wideRanges, codePoint);
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
export function getCategory(codePoint) {
|
|
114
|
-
if (isAmbiguous(codePoint)) {
|
|
115
|
-
return 'ambiguous';
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (isFullWidth(codePoint)) {
|
|
119
|
-
return 'fullwidth';
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (isHalfWidth(codePoint)) {
|
|
123
|
-
return 'halfwidth';
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if (isNarrow(codePoint)) {
|
|
127
|
-
return 'narrow';
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (isWide(codePoint)) {
|
|
131
|
-
return 'wide';
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
return 'neutral';
|
|
135
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "get-east-asian-width",
|
|
3
|
-
"version": "1.5.0",
|
|
4
|
-
"description": "Determine the East Asian Width of a Unicode character",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/get-east-asian-width",
|
|
7
|
-
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Sindre Sorhus",
|
|
10
|
-
"email": "sindresorhus@gmail.com",
|
|
11
|
-
"url": "https://sindresorhus.com"
|
|
12
|
-
},
|
|
13
|
-
"type": "module",
|
|
14
|
-
"exports": {
|
|
15
|
-
"types": "./index.d.ts",
|
|
16
|
-
"default": "./index.js"
|
|
17
|
-
},
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": ">=18"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"test": "xo && ava && tsc index.d.ts",
|
|
24
|
-
"build": "node scripts/build.js",
|
|
25
|
-
"prepublish": "npm run build"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"index.js",
|
|
29
|
-
"index.d.ts",
|
|
30
|
-
"lookup.js",
|
|
31
|
-
"lookup-data.js",
|
|
32
|
-
"utilities.js"
|
|
33
|
-
],
|
|
34
|
-
"keywords": [
|
|
35
|
-
"unicode",
|
|
36
|
-
"east-asian-width",
|
|
37
|
-
"eastasianwidth",
|
|
38
|
-
"character",
|
|
39
|
-
"string",
|
|
40
|
-
"width",
|
|
41
|
-
"text",
|
|
42
|
-
"layout",
|
|
43
|
-
"alignment",
|
|
44
|
-
"fullwidth",
|
|
45
|
-
"halfwidth",
|
|
46
|
-
"ambiguous",
|
|
47
|
-
"narrow",
|
|
48
|
-
"wide",
|
|
49
|
-
"neutral",
|
|
50
|
-
"typography",
|
|
51
|
-
"japanese",
|
|
52
|
-
"chinese",
|
|
53
|
-
"korean",
|
|
54
|
-
"codepoint",
|
|
55
|
-
"text-processing",
|
|
56
|
-
"i18n",
|
|
57
|
-
"l10n"
|
|
58
|
-
],
|
|
59
|
-
"devDependencies": {
|
|
60
|
-
"ava": "^5.3.1",
|
|
61
|
-
"outdent": "^0.8.0",
|
|
62
|
-
"simplify-ranges": "^0.1.0",
|
|
63
|
-
"typescript": "^5.2.2",
|
|
64
|
-
"xo": "^0.56.0"
|
|
65
|
-
},
|
|
66
|
-
"xo": {
|
|
67
|
-
"ignores": [
|
|
68
|
-
"lookup-data.js"
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# get-east-asian-width
|
|
2
|
-
|
|
3
|
-
> Determine the [East Asian Width](https://unicode.org/reports/tr11/) of a Unicode character
|
|
4
|
-
|
|
5
|
-
> East Asian Width categorizes Unicode characters based on their occupied space in East Asian typography, which helps in text layout and alignment, particularly in languages like Japanese, Chinese, and Korean.
|
|
6
|
-
|
|
7
|
-
Unlike other similar packages, this package uses the latest Unicode data (which changes each year).
|
|
8
|
-
|
|
9
|
-
## Install
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
npm install get-east-asian-width
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
import {eastAsianWidth, eastAsianWidthType} from 'get-east-asian-width';
|
|
19
|
-
|
|
20
|
-
const codePoint = '字'.codePointAt(0);
|
|
21
|
-
|
|
22
|
-
console.log(eastAsianWidth(codePoint));
|
|
23
|
-
//=> 2
|
|
24
|
-
|
|
25
|
-
console.log(eastAsianWidthType(codePoint));
|
|
26
|
-
//=> 'wide'
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## `eastAsianWidth(codePoint: number, options?: object): 1 | 2`
|
|
30
|
-
|
|
31
|
-
Returns the width as a number for the given code point.
|
|
32
|
-
|
|
33
|
-
### options
|
|
34
|
-
|
|
35
|
-
Type: `object`
|
|
36
|
-
|
|
37
|
-
#### ambiguousAsWide
|
|
38
|
-
|
|
39
|
-
Type: `boolean`\
|
|
40
|
-
Default: `false`
|
|
41
|
-
|
|
42
|
-
Whether to treat an `'ambiguous'` character as wide.
|
|
43
|
-
|
|
44
|
-
```js
|
|
45
|
-
import {eastAsianWidth} from 'get-east-asian-width';
|
|
46
|
-
|
|
47
|
-
const codePoint = '⛣'.codePointAt(0);
|
|
48
|
-
|
|
49
|
-
console.log(eastAsianWidth(codePoint));
|
|
50
|
-
//=> 1
|
|
51
|
-
|
|
52
|
-
console.log(eastAsianWidth(codePoint, {ambiguousAsWide: true}));
|
|
53
|
-
//=> 2
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
> Ambiguous characters behave like wide or narrow characters depending on the context (language tag, script identification, associated font, source of data, or explicit markup; all can provide the context). **If the context cannot be established reliably, they should be treated as narrow characters by default.**
|
|
57
|
-
> - http://www.unicode.org/reports/tr11/
|
|
58
|
-
|
|
59
|
-
## `eastAsianWidthType(codePoint: number): 'fullwidth' | 'halfwidth' | 'wide' | 'narrow' | 'neutral' | 'ambiguous'`
|
|
60
|
-
|
|
61
|
-
Returns the type of “East Asian Width” for the given code point.
|
|
62
|
-
|
|
63
|
-
## Related
|
|
64
|
-
|
|
65
|
-
- [string-width](https://github.com/sindresorhus/string-width) - Get the visual width of a string
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Binary search on a sorted flat array of [start, end] pairs.
|
|
3
|
-
|
|
4
|
-
@param {number[]} ranges - Flat array of inclusive [start, end] range pairs, e.g. [0, 5, 10, 20].
|
|
5
|
-
@param {number} codePoint - The value to search for.
|
|
6
|
-
@returns {boolean} Whether the value falls within any of the ranges.
|
|
7
|
-
*/
|
|
8
|
-
export const isInRange = (ranges, codePoint) => {
|
|
9
|
-
let low = 0;
|
|
10
|
-
let high = Math.floor(ranges.length / 2) - 1;
|
|
11
|
-
while (low <= high) {
|
|
12
|
-
const mid = Math.floor((low + high) / 2);
|
|
13
|
-
const i = mid * 2;
|
|
14
|
-
if (codePoint < ranges[i]) {
|
|
15
|
-
high = mid - 1;
|
|
16
|
-
} else if (codePoint > ranges[i + 1]) {
|
|
17
|
-
low = mid + 1;
|
|
18
|
-
} else {
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return false;
|
|
24
|
-
};
|
|
File without changes
|