decocms 2.310.1 → 2.310.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BUuG9jUS.js → AlertCircle-Bjs1DRoe.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-B2WgGuUG.js → ArrowNarrowLeft-4-qtN4yo.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BRxJDyw2.js → ArrowUpRight-TOJd4tk1.js} +1 -1
- package/dist/client/assets/{Check-DNFNSXQB.js → Check-uCeCY94f.js} +1 -1
- package/dist/client/assets/{CheckCircle-fDjMIV_J.js → CheckCircle-BYjzCjZv.js} +1 -1
- package/dist/client/assets/{ChevronDown-plDbvt9_.js → ChevronDown-BCKKMGkp.js} +1 -1
- package/dist/client/assets/{ChevronRight-C6IGuK_L.js → ChevronRight-CBRO8ebn.js} +1 -1
- package/dist/client/assets/{ChevronUp-BQpSShtW.js → ChevronUp-CImlARUB.js} +1 -1
- package/dist/client/assets/{Container-cby1lpQK.js → Container-UmsQv9ox.js} +1 -1
- package/dist/client/assets/{DotsVertical-CrL41KCh.js → DotsVertical-DYz9Xowp.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DDjHJHtD.js → LinkExternal01-MfoA7_8K.js} +1 -1
- package/dist/client/assets/{Lock01-CMc8wMJA.js → Lock01-DY0dR_EF.js} +1 -1
- package/dist/client/assets/{Palette-BsSq52os.js → Palette-CYlPasQS.js} +1 -1
- package/dist/client/assets/{Play-B93BJPTD.js → Play-BOunn_Vy.js} +1 -1
- package/dist/client/assets/{Plus-CsU0klMp.js → Plus-DJQM2qca.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-GcJ7_jjW.js → RefreshCcw01-fb__YhOw.js} +1 -1
- package/dist/client/assets/{SearchMd-CLV2ZHE1.js → SearchMd-Bv6wAjVm.js} +1 -1
- package/dist/client/assets/{Settings02-CMQBJ6AU.js → Settings02-ZxqKPBpN.js} +1 -1
- package/dist/client/assets/{Shield01-Bb8uicnU.js → Shield01-DLP8JywO.js} +1 -1
- package/dist/client/assets/{Star01-DOzaFb6_.js → Star01-DO3o-Tm0.js} +1 -1
- package/dist/client/assets/{Sun-Bp560G7u.js → Sun-CZnXZvsq.js} +1 -1
- package/dist/client/assets/{Tool01-B1WXLPyp.js → Tool01-D8__PXyN.js} +1 -1
- package/dist/client/assets/{Trash01-WbvRG8Rr.js → Trash01-CaQDsaot.js} +1 -1
- package/dist/client/assets/{User01-Dqi_S_yw.js → User01-oR5RStEl.js} +1 -1
- package/dist/client/assets/{Users03-CmMFskSR.js → Users03-BsIZE4Pm.js} +1 -1
- package/dist/client/assets/{X-26aOhFK-.js → X-vjP4Msb7.js} +1 -1
- package/dist/client/assets/{XCircle-DuIm7Kpp.js → XCircle-Bjg8qJ8l.js} +1 -1
- package/dist/client/assets/{XClose-Bet7IpXN.js → XClose-CaKKQVXU.js} +1 -1
- package/dist/client/assets/{Zap-DHkXBm_R.js → Zap-CSBwa9kl.js} +1 -1
- package/dist/client/assets/{ZapSquare-B0Ev1OMS.js → ZapSquare-B2TPVAEq.js} +1 -1
- package/dist/client/assets/{accordion-D1MMgTV5.js → accordion-BtvBKlj9.js} +1 -1
- package/dist/client/assets/{agent-icon-BhSIvnHs.js → agent-icon-BwpnpUbm.js} +1 -1
- package/dist/client/assets/{agents-list-DfRZsmWN.js → agents-list-DO7W3l8_.js} +1 -1
- package/dist/client/assets/ai-providers-CHwiNXP4.js +1 -0
- package/dist/client/assets/{alert-dialog-Booud0bQ.js → alert-dialog-C-BRVgvu.js} +1 -1
- package/dist/client/assets/{auth-catchall-CfLpBYfo.js → auth-catchall-CutI2kmj.js} +1 -1
- package/dist/client/assets/{automation-list-row-3UbFqf20.js → automation-list-row-DAEvSBmb.js} +1 -1
- package/dist/client/assets/{automations-Bpw-Bphr.js → automations-CgXPCVHi.js} +1 -1
- package/dist/client/assets/{avatar-Dr_hgnh5.js → avatar-DMfNBsEa.js} +1 -1
- package/dist/client/assets/{badge-Dc_jqHv8.js → badge-IDvBfH3R.js} +1 -1
- package/dist/client/assets/{brand-context-DDkAkGby.js → brand-context-BJ_Ok-7-.js} +1 -1
- package/dist/client/assets/{card-I8QwhHay.js → card-CvuzGHjO.js} +1 -1
- package/dist/client/assets/{chat-context-DANvJNxJ.js → chat-context-CErwb6k6.js} +1 -1
- package/dist/client/assets/{checkbox-YDqzyyON.js → checkbox-Dl75QnG7.js} +1 -1
- package/dist/client/assets/{collection-detail-CEcX9P1L.js → collection-detail-D1GYoMQ-.js} +1 -1
- package/dist/client/assets/{collection-display-button-CEbXTT1D.js → collection-display-button-DuQih4HO.js} +1 -1
- package/dist/client/assets/{collection-search-54YVIzGK.js → collection-search-BbV_T-EE.js} +1 -1
- package/dist/client/assets/{collection-search-ZtrOS_FO.js → collection-search-FABAZQZ-.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CykRk2i4.js → collection-table-wrapper-BOjY1N-o.js} +1 -1
- package/dist/client/assets/{collection-tabs-BJYdyh2U.js → collection-tabs-D9DYouIo.js} +1 -1
- package/dist/client/assets/{collections-B4Ew0_5W.js → collections-CWT6-czY.js} +1 -1
- package/dist/client/assets/{command-BUdSnxPX.js → command-BcVlajkv.js} +1 -1
- package/dist/client/assets/{connection-card-CPkO4XVy.js → connection-card-5Wnkn35H.js} +1 -1
- package/dist/client/assets/{connection-detail-7MO-vamz.js → connection-detail-9LTY8cEq.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DTw0Qq7p.js → connection-form-helpers-D_o8vWS8.js} +1 -1
- package/dist/client/assets/{connections-Cae6WzSq.js → connections-B0_zSoBW.js} +1 -1
- package/dist/client/assets/{constants-C0Z_UV1B.js → constants-BgsGWL53.js} +1 -1
- package/dist/client/assets/{constants-8vN_wpoM.js → constants-Ccic_WNi.js} +1 -1
- package/dist/client/assets/{dialog-ChC8b-fd.js → dialog-BG4etlBR.js} +1 -1
- package/dist/client/assets/{domain-settings-wSm6QNFe.js → domain-settings-DrdMk60b.js} +1 -1
- package/dist/client/assets/{drawer-C1rmyAh5.js → drawer-Buc4-066.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BYnm4L0S.js → dropdown-menu-C5QgSZ0t.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-C8rDQhFA.js → dynamic-plugin-layout-CaV8IAmp.js} +1 -1
- package/dist/client/assets/{empty-state-CS1xioMM.js → empty-state-CAqrQ-6W.js} +1 -1
- package/dist/client/assets/{empty-state-B5SEGNSf.js → empty-state-CcdlS-eW.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CnZlsGuF.js → extract-connection-data-DbON8nO3.js} +1 -1
- package/dist/client/assets/{features-B16s5Y96.js → features-ByRqjbyV.js} +1 -1
- package/dist/client/assets/{form-DgLK3RL7.js → form-BbDzJOpZ.js} +1 -1
- package/dist/client/assets/{general-f6TAIn-G.js → general-e5vvtodI.js} +1 -1
- package/dist/client/assets/{index-CGzddOPN.js → index-17qzAK95.js} +1 -1
- package/dist/client/assets/index-7mXC8lS4.js +1 -0
- package/dist/client/assets/{index-BrFuw-qb.js → index-B-lZvo-3.js} +1 -1
- package/dist/client/assets/{index-DlX-BDoo.js → index-BBwsyhew.js} +1 -1
- package/dist/client/assets/{index-CgQIf70g.js → index-BYF0TDJs.js} +1 -1
- package/dist/client/assets/{index-C5EaiV0u.js → index-BZSXOPw-.js} +1 -1
- package/dist/client/assets/{index-DsyVbeAM.js → index-BdxUoNpQ.js} +3 -3
- package/dist/client/assets/{index-D3id_i25.js → index-Bo98JLt6.js} +1 -1
- package/dist/client/assets/{index-TdWHe30j.js → index-Bt0njY-h.js} +1 -1
- package/dist/client/assets/{index-CVMf-cdp.js → index-Bu6OchAc.js} +1 -1
- package/dist/client/assets/{index-CbahmBQ1.js → index-C6BloEPE.js} +1 -1
- package/dist/client/assets/{index-fsAFWsFR.js → index-CAEMKqmE.js} +1 -1
- package/dist/client/assets/{index--hcGoWBP.js → index-CsPnm66A.js} +2 -2
- package/dist/client/assets/{index-BtR3GFsv.js → index-DDAuFNoU.js} +1 -1
- package/dist/client/assets/{index-ofAY-Kzj.js → index-DwFLYZMx.js} +1 -1
- package/dist/client/assets/{index-DCa8vMMj.js → index-viV87izi.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Bw_LLK9Y.js → infiniteQueryObserver-BD3sb9pN.js} +1 -1
- package/dist/client/assets/{input-Di5VhXrx.js → input-BOyPyslv.js} +1 -1
- package/dist/client/assets/{integration-icon-BFclX5Vo.js → integration-icon-BXKm0FXI.js} +1 -1
- package/dist/client/assets/{label--CSWWgsb.js → label-C1HjlN95.js} +1 -1
- package/dist/client/assets/{layout-DGzZ7eIZ.js → layout-BoLVBNZl.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-BRNt7FNZ.js → lean-canvas-recruit-modal-BXaOF7Ji.js} +1 -1
- package/dist/client/assets/{login-CWxs7FH8.js → login-BNbNZ57q.js} +1 -1
- package/dist/client/assets/{members-D-RcZScv.js → members-CZREN_th.js} +1 -1
- package/dist/client/assets/{monaco-editor-BRZw2Ss_.js → monaco-editor-3btV5byi.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BELQHcMp.js → monitoring-stats-row-TeqbUQfb.js} +1 -1
- package/dist/client/assets/{oauth-callback-D1mU79r6.js → oauth-callback-CASHqw5B.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BI3N0zYC.js → oauth-callback-ai-provider-DRX_3ZGd.js} +1 -1
- package/dist/client/assets/{onboarding-Corplh-J.js → onboarding-snq0kuQC.js} +1 -1
- package/dist/client/assets/{org-layout-Dw015CRn.js → org-layout-BlsnG8tD.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-BhY_p3Sb.js → org-plugin-layout-CkIHlyUf.js} +1 -1
- package/dist/client/assets/{pair-BkQ-4R0Y.js → pair-DoCidCoS.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Daxzikof.js → plugin-empty-state-BEExeVzS.js} +1 -1
- package/dist/client/assets/{plugin-header-DxSn3bJb.js → plugin-header-DONB160y.js} +1 -1
- package/dist/client/assets/{plugin-layout-CLDR8aeJ.js → plugin-layout-LrDjSSJL.js} +1 -1
- package/dist/client/assets/{popover-BxTvqO7l.js → popover-DJTDvTFH.js} +1 -1
- package/dist/client/assets/{profile-CiaA4yp_.js → profile-DvNhWfFq.js} +1 -1
- package/dist/client/assets/{project-app-view-C9qLbJFL.js → project-app-view-DH36c9up.js} +1 -1
- package/dist/client/assets/registry-BZEongCI.js +2 -0
- package/dist/client/assets/{registry-layout-DUo-P35f.js → registry-layout-cP1e-tCx.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BnqlPeG9.js → required-auth-layout-Aj03mUWl.js} +1 -1
- package/dist/client/assets/{reset-password-DHzLCFSu.js → reset-password-DaTq0ZPl.js} +1 -1
- package/dist/client/assets/{roles-qTMcTl_m.js → roles-BevJu7Hb.js} +1 -1
- package/dist/client/assets/{scroll-area-VgUNFi6v.js → scroll-area-Dlh0OJL1.js} +1 -1
- package/dist/client/assets/{search-input-Fm6Uugnb.js → search-input-BbuJZtoW.js} +1 -1
- package/dist/client/assets/{select-4BiO-1He.js → select-BkJAPRFR.js} +1 -1
- package/dist/client/assets/{select-model-DbFtB1R4.js → select-model-Cx6hCHLC.js} +1 -1
- package/dist/client/assets/{settings-layout-B4AxAY74.js → settings-layout-BBbpwWqq.js} +1 -1
- package/dist/client/assets/{settings-section-BqQHUry6.js → settings-section-OhWt9Ooj.js} +1 -1
- package/dist/client/assets/{shell-layout-CcLP72E6.js → shell-layout-CwAongAC.js} +1 -1
- package/dist/client/assets/{skeleton-D_v3jh_x.js → skeleton-BkdIXnLT.js} +1 -1
- package/dist/client/assets/{sso-BgjWtdcn.js → sso-BpRBatM1.js} +1 -1
- package/dist/client/assets/{store-IULAwEa2.js → store-CE6jKSPr.js} +1 -1
- package/dist/client/assets/store-registry-MTXbjb_8.js +2 -0
- package/dist/client/assets/{switch-Uh77-H9s.js → switch-Bipu3FI7.js} +1 -1
- package/dist/client/assets/{table-BCa0VyBS.js → table-Bk_qf725.js} +1 -1
- package/dist/client/assets/{tabs-CJMCPubd.js → tabs-BZ0uT4sS.js} +1 -1
- package/dist/client/assets/{task-status-QVkFLAWD.js → task-status-DiRItLYw.js} +1 -1
- package/dist/client/assets/{textarea-IkB1PXd2.js → textarea-BrWSFj_2.js} +1 -1
- package/dist/client/assets/{toggle-group-CxTeQVbK.js → toggle-group-CG-UehNQ.js} +1 -1
- package/dist/client/assets/{tools-list-PZv7L79s.js → tools-list-BRI0XzAw.js} +1 -1
- package/dist/client/assets/{tooltip-DwEKoS3m.js → tooltip-DKSC_TlS.js} +1 -1
- package/dist/client/assets/{types-DBa5NWuL.js → types-ClrLgxxx.js} +1 -1
- package/dist/client/assets/{use-ai-providers-hUoQ1QKn.js → use-ai-providers-DeSA23rL.js} +1 -1
- package/dist/client/assets/{use-collections-CbyJ6t6i.js → use-collections-P_xycvTV.js} +1 -1
- package/dist/client/assets/{use-connection-BZIS5d-M.js → use-connection-BPL4_0km.js} +1 -1
- package/dist/client/assets/{use-copy-BhwMe7lW.js → use-copy-CTq_kAqD.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Qup6KxHA.js → use-create-virtual-mcp-D1V6z6nu.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-De7heoii.js → use-debounced-autosave-BN0dAXmt.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BSFPv0OJ.js → use-decopilot-events-FPrAaowc.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CVL2tyXf.js → use-delete-connection-BnyXIIOY.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-B1XpJhs7.js → use-infinite-scroll-CRwUMH1o.js} +1 -1
- package/dist/client/assets/{use-list-state-NYzHNEE3.js → use-list-state-41gWh47f.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DEJYwjVI.js → use-mcp-tools-BItotVJ3.js} +1 -1
- package/dist/client/assets/{use-members-CE8F-6Pl.js → use-members-CI97myG6.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BQCBqC6w.js → use-navigate-to-agent-CVA2Amec.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DWMaaDOW.js → use-org-auth-client-C8ofbFUE.js} +1 -1
- package/dist/client/assets/{use-org-sso-DG73ueOt.js → use-org-sso-BxOse5AC.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C_InafKr.js → use-organization-roles-5CJlDHYt.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DU3tZPVG.js → use-organization-settings-DkdX8Pu1.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BB_6SUlA.js → use-registry-connections-BOLgJOOJ.js} +1 -1
- package/dist/client/assets/{use-status-sounds--S4wlp-c.js → use-status-sounds-C2j9qKjC.js} +1 -1
- package/dist/client/assets/{use-tasks-BXrbnymy.js → use-tasks-B1tiIeuc.js} +1 -1
- package/dist/client/assets/{use-view-mode-30iczyXm.js → use-view-mode-ZXMMFhU_.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DqC7TCRl.js → use-virtual-mcp-BAEgLpb5.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Y9Nb1sum.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CIGmGEj7.js +1 -0
- package/dist/client/assets/{user-CU2SK3qY.js → user-CHucb2Kt.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-ChONnJPm.js → view-mode-toggle-DR7xk3lS.js} +1 -1
- package/dist/client/assets/{workflow-C2A8waKp.js → workflow-BYv_2auF.js} +1 -1
- package/dist/client/assets/workflow-detail-D3A--f-7.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- 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/escape-string-regexp/index.d.ts +18 -0
- package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
- package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
- package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
- package/dist/server/node_modules/{slice-ansi → is-fullwidth-code-point}/license +0 -1
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-C2Z8tM8W.js +0 -1
- package/dist/client/assets/index-Cf1ZbDa8.js +0 -1
- package/dist/client/assets/registry-Ijr9ccjx.js +0 -2
- package/dist/client/assets/store-registry-BRPkAkWY.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Cy6k7dIo.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DvQj0VfO.js +0 -1
- package/dist/client/assets/workflow-detail-DtfIhsSe.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/mimic-fn/index.d.ts +0 -54
- package/dist/server/node_modules/mimic-fn/index.js +0 -13
- package/dist/server/node_modules/mimic-fn/package.json +0 -42
- package/dist/server/node_modules/mimic-fn/readme.md +0 -69
- package/dist/server/node_modules/pg-int8/LICENSE +0 -13
- package/dist/server/node_modules/pg-int8/README.md +0 -16
- package/dist/server/node_modules/pg-int8/index.js +0 -100
- package/dist/server/node_modules/pg-int8/package.json +0 -24
- package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
- package/dist/server/node_modules/postgres-array/index.js +0 -97
- package/dist/server/node_modules/postgres-array/license +0 -21
- package/dist/server/node_modules/postgres-array/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/license +0 -21
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/license +0 -21
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/license +0 -21
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- package/dist/server/node_modules/slice-ansi/index.d.ts +0 -19
- package/dist/server/node_modules/slice-ansi/index.js +0 -260
- package/dist/server/node_modules/slice-ansi/package.json +0 -59
- package/dist/server/node_modules/slice-ansi/readme.md +0 -54
- package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +0 -752
- package/dist/server/node_modules/split2/LICENSE +0 -13
- package/dist/server/node_modules/split2/README.md +0 -85
- package/dist/server/node_modules/split2/bench.js +0 -27
- package/dist/server/node_modules/split2/index.js +0 -141
- package/dist/server/node_modules/split2/package.json +0 -39
- package/dist/server/node_modules/split2/test.js +0 -409
- /package/dist/server/node_modules/{get-east-asian-width → ansi-styles}/license +0 -0
- /package/dist/server/node_modules/{mimic-fn → escape-string-regexp}/license +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as n,j as r,r as d,g as h,O as f,l as u}from"./index--hcGoWBP.js";import{S as j,a as b,b as S}from"./index-DlX-BDoo.js";import{u as _}from"./tooltip-DwEKoS3m.js";import{u as k,T as y,a as T,b as i,S as g}from"./index-ofAY-Kzj.js";import{C as v}from"./chat-context-DANvJNxJ.js";import"./X-26aOhFK-.js";import"./agent-icon-BhSIvnHs.js";import"./AlertCircle-BUuG9jUS.js";import"./Tool01-B1WXLPyp.js";import"./XClose-Bet7IpXN.js";import"./RefreshCcw01-GcJ7_jjW.js";import"./ArrowNarrowLeft-B2WgGuUG.js";import"./XCircle-DuIm7Kpp.js";import"./ArrowUpRight-BRxJDyw2.js";import"./ZapSquare-B0Ev1OMS.js";import"./Users03-CmMFskSR.js";import"./CheckCircle-fDjMIV_J.js";import"./Check-DNFNSXQB.js";import"./ChevronDown-plDbvt9_.js";import"./ChevronRight-C6IGuK_L.js";import"./ChevronUp-BQpSShtW.js";import"./DotsVertical-CrL41KCh.js";import"./Container-cby1lpQK.js";import"./Star01-DOzaFb6_.js";import"./Palette-BsSq52os.js";import"./SearchMd-CLV2ZHE1.js";import"./LinkExternal01-DDjHJHtD.js";import"./Lock01-CMc8wMJA.js";import"./Sun-Bp560G7u.js";import"./Play-B93BJPTD.js";import"./Plus-CsU0klMp.js";import"./Settings02-CMQBJ6AU.js";import"./Shield01-Bb8uicnU.js";import"./Trash01-WbvRG8Rr.js";import"./User01-Dqi_S_yw.js";import"./Zap-DHkXBm_R.js";import"./shell-layout-CcLP72E6.js";import"./dialog-ChC8b-fd.js";import"./required-auth-layout-BnqlPeG9.js";import"./use-tasks-BXrbnymy.js";import"./use-collections-CbyJ6t6i.js";import"./constants-C0Z_UV1B.js";import"./use-organization-settings-DU3tZPVG.js";import"./use-org-sso-DG73ueOt.js";import"./pair-BkQ-4R0Y.js";import"./index-CbahmBQ1.js";import"./use-copy-BhwMe7lW.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./content-blocks-o63cs2vh.js";import"./types-DBa5NWuL.js";import"./integration-icon-BFclX5Vo.js";import"./use-virtual-mcp-DqC7TCRl.js";import"./skeleton-D_v3jh_x.js";import"./popover-BxTvqO7l.js";import"./drawer-C1rmyAh5.js";import"./avatar-Dr_hgnh5.js";import"./alert-dialog-Booud0bQ.js";import"./form-DgLK3RL7.js";import"./label--CSWWgsb.js";import"./input-Di5VhXrx.js";import"./index-DCa8vMMj.js";import"./use-mcp-tools-DEJYwjVI.js";import"./use-ai-providers-hUoQ1QKn.js";import"./index-CGzddOPN.js";import"./switch-Uh77-H9s.js";import"./use-connection-BZIS5d-M.js";import"./lean-canvas-recruit-modal-BRNt7FNZ.js";import"./use-navigate-to-agent-BQCBqC6w.js";import"./collection-search-54YVIzGK.js";import"./checkbox-YDqzyyON.js";import"./extract-connection-data-CnZlsGuF.js";import"./constants-8vN_wpoM.js";import"./collections-B4Ew0_5W.js";import"./tabs-CJMCPubd.js";import"./select-4BiO-1He.js";import"./toggle-group-CxTeQVbK.js";import"./select-model-DbFtB1R4.js";import"./ai-providers-logos-DD3qZ33J.js";import"./use-debounced-autosave-De7heoii.js";import"./settings-section-BqQHUry6.js";import"./card-I8QwhHay.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./dropdown-menu-BYnm4L0S.js";import"./index-D3id_i25.js";import"./question-004-sINsf4GQ.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CPkO4XVy.js";import"./use-registry-connections-BB_6SUlA.js";import"./useInfiniteQuery-Cy6k7dIo.js";import"./infiniteQueryObserver-Bw_LLK9Y.js";import"./collection-tabs-BJYdyh2U.js";import"./badge-Dc_jqHv8.js";import"./textarea-IkB1PXd2.js";import"./connection-form-helpers-DTw0Qq7p.js";import"./use-infinite-scroll-B1XpJhs7.js";import"./useSuspenseInfiniteQuery-DvQj0VfO.js";import"./collection-search-ZtrOS_FO.js";import"./use-create-virtual-mcp-Qup6KxHA.js";import"./empty-state-CS1xioMM.js";import"./use-decopilot-events-BSFPv0OJ.js";import"./create-sse-subscription-CxkOgzKf.js";import"./task-status-QVkFLAWD.js";const N=280;function P(){const t=n.c(2),{tasksOpen:e}=k();if(!e)return null;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={width:`${N}px`},t[0]=o):o=t[0];let m;return t[1]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx("aside",{className:"shrink-0 h-full bg-sidebar pb-1",style:o,children:r.jsx("div",{className:"h-full p-0.5 pt-0.25",children:r.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden card-shadow",children:r.jsx(y,{})})})}),t[1]=m):m=t[1],m}function C(){const t=n.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(d.Suspense,{fallback:null,children:r.jsx(P,{})}),t[0]=e):e=t[0],e}function x(){const t=n.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsx(u,{size:20,className:"animate-spin text-muted-foreground"})}),t[0]=e):e=t[0],e}function gr(){const t=n.c(7),e=_();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},t[0]=o):o=t[0];const c=!!h(o).taskId;let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s={"--sidebar-width-icon":"3.5rem"},t[1]=s):s=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx(g,{}),t[2]=l):l=t[2];let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p={background:"transparent",containerType:"inline-size"},t[3]=p):p=t[3];let a;return t[4]!==c||t[5]!==e?(a=r.jsx(j,{defaultOpen:!1,children:r.jsx("div",{className:"flex flex-col h-dvh overflow-hidden",children:r.jsxs(b,{className:"flex-1 bg-sidebar",style:s,children:[l,r.jsx(S,{className:"flex flex-col",style:p,children:r.jsx(v,{children:r.jsx(T,{children:e?r.jsx(d.Suspense,{fallback:r.jsx(x,{}),children:r.jsx(f,{})}):r.jsxs(i,{children:[r.jsxs(i.Header,{children:[r.jsxs(i.LeftColumn,{children:[r.jsx(i.Nav,{}),r.jsx(i.TogglesSlot,{})]}),r.jsx(i.CenterSlot,{}),r.jsxs(i.RightColumn,{children:[r.jsx(i.TabsSlot,{}),r.jsx(i.RightSlot,{})]})]}),r.jsxs("div",{className:"flex-1 min-h-0 flex flex-row",children:[c&&r.jsx(C,{}),r.jsx(d.Suspense,{fallback:r.jsx(x,{}),children:r.jsx(f,{})})]})]})})})})]})})}),t[4]=c,t[5]=e,t[6]=a):a=t[6],a}export{gr as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DUo-P35f.js","assets/index--hcGoWBP.js","assets/index-CpHJcJk3.css","assets/ArrowNarrowLeft-B2WgGuUG.js","assets/CheckCircle-fDjMIV_J.js","assets/Container-cby1lpQK.js","assets/Settings02-CMQBJ6AU.js","assets/XCircle-DuIm7Kpp.js","assets/constants-C0Z_UV1B.js","assets/useInfiniteQuery-Cy6k7dIo.js","assets/infiniteQueryObserver-Bw_LLK9Y.js","assets/badge-Dc_jqHv8.js","assets/input-Di5VhXrx.js","assets/dropdown-menu-BYnm4L0S.js","assets/Check-DNFNSXQB.js","assets/ChevronRight-C6IGuK_L.js","assets/DotsVertical-CrL41KCh.js","assets/table-BCa0VyBS.js","assets/toggle-group-CxTeQVbK.js","assets/use-view-mode-30iczyXm.js","assets/tooltip-DwEKoS3m.js","assets/SearchMd-CLV2ZHE1.js","assets/dialog-ChC8b-fd.js","assets/X-26aOhFK-.js","assets/AlertCircle-BUuG9jUS.js","assets/alert-dialog-Booud0bQ.js","assets/card-I8QwhHay.js","assets/Trash01-WbvRG8Rr.js","assets/label--CSWWgsb.js","assets/select-4BiO-1He.js","assets/ChevronDown-plDbvt9_.js","assets/ChevronUp-BQpSShtW.js","assets/switch-Uh77-H9s.js","assets/textarea-IkB1PXd2.js","assets/RefreshCcw01-GcJ7_jjW.js","assets/checkbox-YDqzyyON.js","assets/LinkExternal01-DDjHJHtD.js","assets/use-copy-BhwMe7lW.js","assets/Plus-CsU0klMp.js","assets/Play-B93BJPTD.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as a,j as t,r,l as i,_ as o}from"./index--hcGoWBP.js";const n=r.lazy(()=>o(()=>import("./registry-layout-DUo-P35f.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])));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-DUo-P35f.js","assets/index--hcGoWBP.js","assets/index-CpHJcJk3.css","assets/ArrowNarrowLeft-B2WgGuUG.js","assets/CheckCircle-fDjMIV_J.js","assets/Container-cby1lpQK.js","assets/Settings02-CMQBJ6AU.js","assets/XCircle-DuIm7Kpp.js","assets/constants-C0Z_UV1B.js","assets/useInfiniteQuery-Cy6k7dIo.js","assets/infiniteQueryObserver-Bw_LLK9Y.js","assets/badge-Dc_jqHv8.js","assets/input-Di5VhXrx.js","assets/dropdown-menu-BYnm4L0S.js","assets/Check-DNFNSXQB.js","assets/ChevronRight-C6IGuK_L.js","assets/DotsVertical-CrL41KCh.js","assets/table-BCa0VyBS.js","assets/toggle-group-CxTeQVbK.js","assets/use-view-mode-30iczyXm.js","assets/tooltip-DwEKoS3m.js","assets/SearchMd-CLV2ZHE1.js","assets/dialog-ChC8b-fd.js","assets/X-26aOhFK-.js","assets/AlertCircle-BUuG9jUS.js","assets/alert-dialog-Booud0bQ.js","assets/card-I8QwhHay.js","assets/Trash01-WbvRG8Rr.js","assets/label--CSWWgsb.js","assets/select-4BiO-1He.js","assets/ChevronDown-plDbvt9_.js","assets/ChevronUp-BQpSShtW.js","assets/switch-Uh77-H9s.js","assets/textarea-IkB1PXd2.js","assets/RefreshCcw01-GcJ7_jjW.js","assets/checkbox-YDqzyyON.js","assets/LinkExternal01-DDjHJHtD.js","assets/use-copy-BhwMe7lW.js","assets/Plus-CsU0klMp.js","assets/Play-B93BJPTD.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--hcGoWBP.js";const _=l.lazy(()=>u(()=>import("./registry-layout-DUo-P35f.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])));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-Bw_LLK9Y.js";import{c2 as i}from"./index--hcGoWBP.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-Bw_LLK9Y.js";import{c2 as u,c3 as n}from"./index--hcGoWBP.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--hcGoWBP.js";import{a as f}from"./index-fsAFWsFR.js";import"./index-BtR3GFsv.js";import"./constants-C0Z_UV1B.js";import"./collections-B4Ew0_5W.js";import"./index-BrFuw-qb.js";import"./use-virtual-mcp-DqC7TCRl.js";import"./use-collections-CbyJ6t6i.js";import"./monaco-editor-BRZw2Ss_.js";import"./index-CbahmBQ1.js";import"./accordion-D1MMgTV5.js";import"./agent-icon-BhSIvnHs.js";import"./AlertCircle-BUuG9jUS.js";import"./Tool01-B1WXLPyp.js";import"./XClose-Bet7IpXN.js";import"./RefreshCcw01-GcJ7_jjW.js";import"./ArrowNarrowLeft-B2WgGuUG.js";import"./XCircle-DuIm7Kpp.js";import"./ArrowUpRight-BRxJDyw2.js";import"./ZapSquare-B0Ev1OMS.js";import"./Users03-CmMFskSR.js";import"./CheckCircle-fDjMIV_J.js";import"./Check-DNFNSXQB.js";import"./ChevronDown-plDbvt9_.js";import"./ChevronRight-C6IGuK_L.js";import"./ChevronUp-BQpSShtW.js";import"./DotsVertical-CrL41KCh.js";import"./Container-cby1lpQK.js";import"./Star01-DOzaFb6_.js";import"./Palette-BsSq52os.js";import"./SearchMd-CLV2ZHE1.js";import"./index-DlX-BDoo.js";import"./tooltip-DwEKoS3m.js";import"./X-26aOhFK-.js";import"./LinkExternal01-DDjHJHtD.js";import"./Lock01-CMc8wMJA.js";import"./Sun-Bp560G7u.js";import"./Play-B93BJPTD.js";import"./Plus-CsU0klMp.js";import"./Settings02-CMQBJ6AU.js";import"./Shield01-Bb8uicnU.js";import"./Trash01-WbvRG8Rr.js";import"./User01-Dqi_S_yw.js";import"./Zap-DHkXBm_R.js";import"./badge-Dc_jqHv8.js";import"./select-4BiO-1He.js";import"./view-mode-toggle-ChONnJPm.js";import"./layout-DGzZ7eIZ.js";import"./use-connection-BZIS5d-M.js";import"./use-mcp-tools-DEJYwjVI.js";import"./dialog-ChC8b-fd.js";import"./index-D3id_i25.js";import"./dropdown-menu-BYnm4L0S.js";import"./integration-icon-BFclX5Vo.js";import"./scroll-area-VgUNFi6v.js";import"./index-DCa8vMMj.js";import"./empty-state-B5SEGNSf.js";import"./create-sse-subscription-CxkOgzKf.js";import"./input-Di5VhXrx.js";function gt(){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{gt 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
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
declare const mimicFn: {
|
|
2
|
-
/**
|
|
3
|
-
Make a function mimic another one. It will copy over the properties `name`, `length`, `displayName`, and any custom properties you may have set.
|
|
4
|
-
|
|
5
|
-
@param to - Mimicking function.
|
|
6
|
-
@param from - Function to mimic.
|
|
7
|
-
@returns The modified `to` function.
|
|
8
|
-
|
|
9
|
-
@example
|
|
10
|
-
```
|
|
11
|
-
import mimicFn = require('mimic-fn');
|
|
12
|
-
|
|
13
|
-
function foo() {}
|
|
14
|
-
foo.unicorn = '🦄';
|
|
15
|
-
|
|
16
|
-
function wrapper() {
|
|
17
|
-
return foo();
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
console.log(wrapper.name);
|
|
21
|
-
//=> 'wrapper'
|
|
22
|
-
|
|
23
|
-
mimicFn(wrapper, foo);
|
|
24
|
-
|
|
25
|
-
console.log(wrapper.name);
|
|
26
|
-
//=> 'foo'
|
|
27
|
-
|
|
28
|
-
console.log(wrapper.unicorn);
|
|
29
|
-
//=> '🦄'
|
|
30
|
-
```
|
|
31
|
-
*/
|
|
32
|
-
<
|
|
33
|
-
ArgumentsType extends unknown[],
|
|
34
|
-
ReturnType,
|
|
35
|
-
FunctionType extends (...arguments: ArgumentsType) => ReturnType
|
|
36
|
-
>(
|
|
37
|
-
to: (...arguments: ArgumentsType) => ReturnType,
|
|
38
|
-
from: FunctionType
|
|
39
|
-
): FunctionType;
|
|
40
|
-
|
|
41
|
-
// TODO: Remove this for the next major release, refactor the whole definition to:
|
|
42
|
-
// declare function mimicFn<
|
|
43
|
-
// ArgumentsType extends unknown[],
|
|
44
|
-
// ReturnType,
|
|
45
|
-
// FunctionType extends (...arguments: ArgumentsType) => ReturnType
|
|
46
|
-
// >(
|
|
47
|
-
// to: (...arguments: ArgumentsType) => ReturnType,
|
|
48
|
-
// from: FunctionType
|
|
49
|
-
// ): FunctionType;
|
|
50
|
-
// export = mimicFn;
|
|
51
|
-
default: typeof mimicFn;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export = mimicFn;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const mimicFn = (to, from) => {
|
|
4
|
-
for (const prop of Reflect.ownKeys(from)) {
|
|
5
|
-
Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
return to;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
module.exports = mimicFn;
|
|
12
|
-
// TODO: Remove this for the next major release
|
|
13
|
-
module.exports.default = mimicFn;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mimic-fn",
|
|
3
|
-
"version": "2.1.0",
|
|
4
|
-
"description": "Make a function mimic another one",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/mimic-fn",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Sindre Sorhus",
|
|
9
|
-
"email": "sindresorhus@gmail.com",
|
|
10
|
-
"url": "sindresorhus.com"
|
|
11
|
-
},
|
|
12
|
-
"engines": {
|
|
13
|
-
"node": ">=6"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"test": "xo && ava && tsd"
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"index.js",
|
|
20
|
-
"index.d.ts"
|
|
21
|
-
],
|
|
22
|
-
"keywords": [
|
|
23
|
-
"function",
|
|
24
|
-
"mimic",
|
|
25
|
-
"imitate",
|
|
26
|
-
"rename",
|
|
27
|
-
"copy",
|
|
28
|
-
"inherit",
|
|
29
|
-
"properties",
|
|
30
|
-
"name",
|
|
31
|
-
"func",
|
|
32
|
-
"fn",
|
|
33
|
-
"set",
|
|
34
|
-
"infer",
|
|
35
|
-
"change"
|
|
36
|
-
],
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"ava": "^1.4.1",
|
|
39
|
-
"tsd": "^0.7.1",
|
|
40
|
-
"xo": "^0.24.0"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# mimic-fn [](https://travis-ci.org/sindresorhus/mimic-fn)
|
|
2
|
-
|
|
3
|
-
> Make a function mimic another one
|
|
4
|
-
|
|
5
|
-
Useful when you wrap a function in another function and like to preserve the original name and other properties.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## Install
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
$ npm install mimic-fn
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
const mimicFn = require('mimic-fn');
|
|
19
|
-
|
|
20
|
-
function foo() {}
|
|
21
|
-
foo.unicorn = '🦄';
|
|
22
|
-
|
|
23
|
-
function wrapper() {
|
|
24
|
-
return foo();
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
console.log(wrapper.name);
|
|
28
|
-
//=> 'wrapper'
|
|
29
|
-
|
|
30
|
-
mimicFn(wrapper, foo);
|
|
31
|
-
|
|
32
|
-
console.log(wrapper.name);
|
|
33
|
-
//=> 'foo'
|
|
34
|
-
|
|
35
|
-
console.log(wrapper.unicorn);
|
|
36
|
-
//=> '🦄'
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
## API
|
|
41
|
-
|
|
42
|
-
It will copy over the properties `name`, `length`, `displayName`, and any custom properties you may have set.
|
|
43
|
-
|
|
44
|
-
### mimicFn(to, from)
|
|
45
|
-
|
|
46
|
-
Modifies the `to` function and returns it.
|
|
47
|
-
|
|
48
|
-
#### to
|
|
49
|
-
|
|
50
|
-
Type: `Function`
|
|
51
|
-
|
|
52
|
-
Mimicking function.
|
|
53
|
-
|
|
54
|
-
#### from
|
|
55
|
-
|
|
56
|
-
Type: `Function`
|
|
57
|
-
|
|
58
|
-
Function to mimic.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
## Related
|
|
62
|
-
|
|
63
|
-
- [rename-fn](https://github.com/sindresorhus/rename-fn) - Rename a function
|
|
64
|
-
- [keep-func-props](https://github.com/ehmicky/keep-func-props) - Wrap a function without changing its name, length and other properties
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
## License
|
|
68
|
-
|
|
69
|
-
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Copyright © 2017, Charmander <~@charmander.me>
|
|
2
|
-
|
|
3
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
5
|
-
copyright notice and this permission notice appear in all copies.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
9
|
-
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
[![Build status][ci image]][ci]
|
|
2
|
-
|
|
3
|
-
64-bit big-endian signed integer-to-string conversion designed for [pg][].
|
|
4
|
-
|
|
5
|
-
```js
|
|
6
|
-
const readInt8 = require('pg-int8');
|
|
7
|
-
|
|
8
|
-
readInt8(Buffer.from([0, 1, 2, 3, 4, 5, 6, 7]))
|
|
9
|
-
// '283686952306183'
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
[pg]: https://github.com/brianc/node-postgres
|
|
14
|
-
|
|
15
|
-
[ci]: https://travis-ci.org/charmander/pg-int8
|
|
16
|
-
[ci image]: https://api.travis-ci.org/charmander/pg-int8.svg
|