decocms 2.305.1 → 2.305.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/README.md +5 -5
- package/dist/client/assets/{AlertCircle-Br9ewHdT.js → AlertCircle-DMzVypio.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-DfAChrcB.js → ArrowNarrowLeft-BrDi0OP6.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-kwr6Olrh.js → ArrowUpRight-CffRTFwr.js} +1 -1
- package/dist/client/assets/{Check-BDdvLFkb.js → Check-Ce2zaI1y.js} +1 -1
- package/dist/client/assets/{CheckCircle-CvaWFdv1.js → CheckCircle-D17Wk4_q.js} +1 -1
- package/dist/client/assets/{ChevronDown-BPP53zSs.js → ChevronDown-DrATxf_L.js} +1 -1
- package/dist/client/assets/{ChevronRight-BMEO9ter.js → ChevronRight-D_n1A1KD.js} +1 -1
- package/dist/client/assets/{ChevronUp-Blh5YuTb.js → ChevronUp-wzMtW3WF.js} +1 -1
- package/dist/client/assets/{Container-kSvRb_TI.js → Container-B9nOU3uH.js} +1 -1
- package/dist/client/assets/{DotsVertical-DlNY9ok5.js → DotsVertical-CFgJEmVd.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DS2oa6z_.js → LinkExternal01-CJuu5L5n.js} +1 -1
- package/dist/client/assets/{Lock01-e_YusQxH.js → Lock01-C0NTjdQ2.js} +1 -1
- package/dist/client/assets/{Palette-50x6cQyB.js → Palette-BqdFVWdR.js} +1 -1
- package/dist/client/assets/{Play-sOXcr7Am.js → Play-CpVaHTKa.js} +1 -1
- package/dist/client/assets/{Plus-DFCNKucG.js → Plus-rlgpPXdn.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-ROHijjHE.js → RefreshCcw01-CjhD_64F.js} +1 -1
- package/dist/client/assets/{SearchMd-DIDMC0x8.js → SearchMd-DdqkiNaX.js} +1 -1
- package/dist/client/assets/{Settings02-CNGOY5wS.js → Settings02-BVGX612X.js} +1 -1
- package/dist/client/assets/{Shield01-DswPRV6t.js → Shield01-CSGiF6c-.js} +1 -1
- package/dist/client/assets/{Star01-DKwz3L6O.js → Star01-DXwrqMmG.js} +1 -1
- package/dist/client/assets/{Sun-DDtl0tTX.js → Sun-CICDmGiY.js} +1 -1
- package/dist/client/assets/{Tool01-CzKvFqBY.js → Tool01-BhvNB9zc.js} +1 -1
- package/dist/client/assets/{Trash01-D7BNCUuW.js → Trash01-DC-0vlKK.js} +1 -1
- package/dist/client/assets/{User01-C5o7vY8e.js → User01-B-bRCO2n.js} +1 -1
- package/dist/client/assets/{Users03-BHkiN8pv.js → Users03-Bgb4m-rj.js} +1 -1
- package/dist/client/assets/{X-BTgbOlZp.js → X-CA0yXZSK.js} +1 -1
- package/dist/client/assets/{XCircle-GkBI4OoY.js → XCircle-C_-dxsPx.js} +1 -1
- package/dist/client/assets/{XClose-1aeyb_5i.js → XClose-1VJ455H5.js} +1 -1
- package/dist/client/assets/{Zap-BV4QuHX8.js → Zap-CT1x4GyR.js} +1 -1
- package/dist/client/assets/{ZapSquare-CE4Xi6jK.js → ZapSquare-B3dm6KZf.js} +1 -1
- package/dist/client/assets/{accordion-Dc2wrek1.js → accordion-DlRvrND8.js} +1 -1
- package/dist/client/assets/{agent-icon-Cc0OK5HW.js → agent-icon-Aidj_nbT.js} +1 -1
- package/dist/client/assets/{agents-list-Bm5Akk_I.js → agents-list-h-PZw07V.js} +1 -1
- package/dist/client/assets/ai-providers-hlFksDgI.js +1 -0
- package/dist/client/assets/{alert-dialog-BcOhLeAS.js → alert-dialog-DHHb9UES.js} +1 -1
- package/dist/client/assets/{auth-catchall-Bcv_GEN6.js → auth-catchall-CMI0fqEP.js} +1 -1
- package/dist/client/assets/{automation-list-row-pzX08kIl.js → automation-list-row-Dw0awDhm.js} +1 -1
- package/dist/client/assets/{automations-CkpX1bDz.js → automations-DgSOIlaP.js} +1 -1
- package/dist/client/assets/{avatar-Bb_UKexv.js → avatar-C4W3LF9U.js} +1 -1
- package/dist/client/assets/{badge-CtLXPOql.js → badge-CKCe4xFX.js} +1 -1
- package/dist/client/assets/{brand-context-CoQwouQo.js → brand-context-CFjUKEZZ.js} +1 -1
- package/dist/client/assets/{card-9KSBCULz.js → card-DvnenXSp.js} +1 -1
- package/dist/client/assets/{chat-context-DpSSbPpF.js → chat-context-DQ9F_zYD.js} +1 -1
- package/dist/client/assets/{checkbox-BhxVCV69.js → checkbox-CpdjRPxz.js} +1 -1
- package/dist/client/assets/{collection-detail-DrhrluPo.js → collection-detail-D3e0mmMi.js} +1 -1
- package/dist/client/assets/{collection-display-button-iLTcoZ8v.js → collection-display-button-DYp1JCHl.js} +1 -1
- package/dist/client/assets/{collection-search-BjYBs0ij.js → collection-search-C-8aWgKY.js} +1 -1
- package/dist/client/assets/{collection-search-BVAD_8E4.js → collection-search-D3JPMk2G.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BA1NNqwU.js → collection-table-wrapper-hKs78OI7.js} +1 -1
- package/dist/client/assets/{collection-tabs-Xy0nDeMn.js → collection-tabs-DIzWCpJi.js} +1 -1
- package/dist/client/assets/{collections-C2uKELRr.js → collections-mK3tmeo_.js} +1 -1
- package/dist/client/assets/{command-BaoEIiCq.js → command-CqNHzNfW.js} +1 -1
- package/dist/client/assets/{connection-card-DO6bL5Cc.js → connection-card-B9jp4WAJ.js} +1 -1
- package/dist/client/assets/{connection-detail-Bnk5mfLJ.js → connection-detail-O5xxE160.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BuIlPwrP.js → connection-form-helpers-DGIGa0jl.js} +1 -1
- package/dist/client/assets/{connections-CkFp7lWx.js → connections-CPceMglQ.js} +1 -1
- package/dist/client/assets/{constants-BBgzLWSw.js → constants-BJbz7WCF.js} +1 -1
- package/dist/client/assets/{constants-D0hFkWmt.js → constants-DlDcmvhJ.js} +1 -1
- package/dist/client/assets/{dialog-D-8iKYyL.js → dialog-CMvXkbcK.js} +1 -1
- package/dist/client/assets/{domain-settings-BJx1AelS.js → domain-settings-D94uqHZi.js} +1 -1
- package/dist/client/assets/{drawer-iSQ1TA5J.js → drawer-DB3e3BTg.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Cqo8Czah.js → dropdown-menu-BgfQQHCp.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-9QCXXZSv.js → dynamic-plugin-layout-CugRGU7x.js} +1 -1
- package/dist/client/assets/{empty-state-DJhaCN6r.js → empty-state-BloqPoX9.js} +1 -1
- package/dist/client/assets/{empty-state-Bi8xfifP.js → empty-state-Cr_Sv9jS.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BoZTN4ct.js → extract-connection-data-Cp7JciHC.js} +1 -1
- package/dist/client/assets/{features-D4XsJcYn.js → features-DQcaVbot.js} +1 -1
- package/dist/client/assets/{form-CtqIjLmm.js → form-ruyF-qzE.js} +1 -1
- package/dist/client/assets/{general-BmiXpGpO.js → general-k-j41zoM.js} +1 -1
- package/dist/client/assets/{index-mqxitPxm.js → index-2zpbfeao.js} +1 -1
- package/dist/client/assets/{index-COWwoaag.js → index-B6Qwj9ip.js} +1 -1
- package/dist/client/assets/{index-BR5R8reE.js → index-BZG21hYr.js} +1 -1
- package/dist/client/assets/{index-r9M0EnR_.js → index-BrlUjE-e.js} +3 -3
- package/dist/client/assets/index-BwlTBk4D.js +1 -0
- package/dist/client/assets/{index-Cb6Wqswz.js → index-C27CjGg7.js} +1 -1
- package/dist/client/assets/{index-BE78uXnk.js → index-C8PfOV9c.js} +1 -1
- package/dist/client/assets/{index-CpmjPXU0.js → index-CghtC7iY.js} +1 -1
- package/dist/client/assets/{index-BddtkUN5.js → index-CpASz2l8.js} +1 -1
- package/dist/client/assets/{index-DpyzImMn.js → index-CvjZRJAq.js} +1 -1
- package/dist/client/assets/{index-CigwZVFo.js → index-DUvCyy06.js} +1 -1
- package/dist/client/assets/{index-DLznuG2S.js → index-DWar01dh.js} +1 -1
- package/dist/client/assets/{index-BetgZtTA.js → index-DXgWutpH.js} +1 -1
- package/dist/client/assets/{index-CdGladh1.js → index-DbwpM0oT.js} +1 -1
- package/dist/client/assets/{index-CNq3A1fb.js → index-QJkyRpKl.js} +1 -1
- package/dist/client/assets/{index-DRcAHhaZ.js → index-Qc-HM-3V.js} +2 -2
- package/dist/client/assets/{infiniteQueryObserver-BGG1V2SW.js → infiniteQueryObserver-CNdVc6Pq.js} +1 -1
- package/dist/client/assets/{input-DZM-sZUE.js → input-DVKZFl3m.js} +1 -1
- package/dist/client/assets/{integration-icon-kCK5G0hc.js → integration-icon-Dvo8MK78.js} +1 -1
- package/dist/client/assets/{label-tgV3YGrK.js → label-Ddv1lEVo.js} +1 -1
- package/dist/client/assets/{layout-DqQ9Ilsl.js → layout-CfRuPQpD.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-CC2l0iFS.js → lean-canvas-recruit-modal-CZwn_x-Z.js} +1 -1
- package/dist/client/assets/{login-DH2jR76t.js → login-CfKhDhQu.js} +1 -1
- package/dist/client/assets/{members-xakt_nq_.js → members-INSx14IN.js} +1 -1
- package/dist/client/assets/{monaco-editor-D0NlB5-P.js → monaco-editor-DHBFS1Nz.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BCYL3TVR.js → monitoring-stats-row-nN00-ahk.js} +1 -1
- package/dist/client/assets/{oauth-callback-CHbPqwkB.js → oauth-callback-BHNFQm9G.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CplqstnV.js → oauth-callback-ai-provider-kDr85b4j.js} +1 -1
- package/dist/client/assets/{onboarding-DuPaOSsv.js → onboarding-DayeILgQ.js} +1 -1
- package/dist/client/assets/{org-layout-C7TZf2Jg.js → org-layout-B7tDIjls.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-ytui8nvZ.js → org-plugin-layout-DijtR-Yn.js} +1 -1
- package/dist/client/assets/{pair-n9NIJPmt.js → pair-BTg5U2i_.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CfM59nCo.js → plugin-empty-state-9EVNRwqH.js} +1 -1
- package/dist/client/assets/{plugin-header-NjqXhQtY.js → plugin-header-CCLzoupo.js} +1 -1
- package/dist/client/assets/{plugin-layout-CNQvsyPi.js → plugin-layout-COwnJfBo.js} +1 -1
- package/dist/client/assets/{popover-DqtUnTy9.js → popover-FANYiDWd.js} +1 -1
- package/dist/client/assets/{profile-DR5MZQYT.js → profile-BUQJJNtu.js} +1 -1
- package/dist/client/assets/{project-app-view-CxUipFcI.js → project-app-view-CZmIevtW.js} +1 -1
- package/dist/client/assets/registry-Da4K44Xl.js +2 -0
- package/dist/client/assets/{registry-layout-Bgcp4P6K.js → registry-layout-CQHrnVlQ.js} +1 -1
- package/dist/client/assets/{required-auth-layout-D_ctViyf.js → required-auth-layout-BAyE2y-F.js} +1 -1
- package/dist/client/assets/{reset-password-D4lmEYTa.js → reset-password-Dj4RoKKI.js} +1 -1
- package/dist/client/assets/{roles-CWsuEaZG.js → roles-BLdL9t1d.js} +1 -1
- package/dist/client/assets/{scroll-area-By7jyUhV.js → scroll-area-C_N1tWNB.js} +1 -1
- package/dist/client/assets/{search-input-Bc2GlzPf.js → search-input-oOemXj8U.js} +1 -1
- package/dist/client/assets/{select-GU1JgcQ8.js → select-BZ8Wc1K2.js} +1 -1
- package/dist/client/assets/{select-model-Eeva0uff.js → select-model-Dxld4BD0.js} +1 -1
- package/dist/client/assets/{settings-layout-Czl6BZ2k.js → settings-layout-Db_7efbC.js} +1 -1
- package/dist/client/assets/{settings-section-Bm0E9Bam.js → settings-section-ylY0I5Aj.js} +1 -1
- package/dist/client/assets/{shell-layout-5q7_gZ4N.js → shell-layout-BS0iP_zg.js} +1 -1
- package/dist/client/assets/{skeleton-B-naR4Ue.js → skeleton-whDLNRvh.js} +1 -1
- package/dist/client/assets/{sso-CQ_IeGcT.js → sso-yKSnL6cT.js} +1 -1
- package/dist/client/assets/{store-Cx374GVe.js → store-DVfL7GG2.js} +1 -1
- package/dist/client/assets/store-registry-BGm95aFQ.js +2 -0
- package/dist/client/assets/{switch-svOIXPFQ.js → switch-CoU4JLeW.js} +1 -1
- package/dist/client/assets/{table-CiWJpXWr.js → table-CWTAYJ6R.js} +1 -1
- package/dist/client/assets/{tabs-CQDIgfHu.js → tabs-BK4O-4QH.js} +1 -1
- package/dist/client/assets/{task-status-D2H9p4od.js → task-status-CrVRLNAn.js} +1 -1
- package/dist/client/assets/{textarea-CtQZOqL1.js → textarea-DI97iX9T.js} +1 -1
- package/dist/client/assets/{toggle-group-DnRsv6Tz.js → toggle-group-BWfFiqCs.js} +1 -1
- package/dist/client/assets/{tools-list-DZbTEL-t.js → tools-list-C7QpB8eo.js} +1 -1
- package/dist/client/assets/{tooltip-UFl_p-Yt.js → tooltip-CGOE-2qV.js} +1 -1
- package/dist/client/assets/{types-C2HWQgQd.js → types-BELLiI8t.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B-rgDBoR.js → use-ai-providers-6wi_VCIQ.js} +1 -1
- package/dist/client/assets/{use-collections-THE_UO2l.js → use-collections-VMVmbDwC.js} +1 -1
- package/dist/client/assets/{use-connection-DujrbCZx.js → use-connection-Bs0XMRE_.js} +1 -1
- package/dist/client/assets/{use-copy-CxCKKWo7.js → use-copy-EgoJUqWz.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Dj-60SI2.js → use-create-virtual-mcp-A4WarYTW.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CPg8W5oz.js → use-debounced-autosave-Dte_kAEO.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Cjc1o1Nu.js → use-decopilot-events-Bvp1pSkJ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CN1nCcIJ.js → use-delete-connection-D0RH1aQq.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CKzLBp1w.js → use-infinite-scroll-Bg90tKAp.js} +1 -1
- package/dist/client/assets/{use-list-state-WnAz6TY1.js → use-list-state-Dkv7POhH.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BeS0ssuN.js → use-mcp-tools-CDG9yfix.js} +1 -1
- package/dist/client/assets/{use-members-3B2IEyuj.js → use-members-Bf9_euWt.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Dw9ITfQX.js → use-navigate-to-agent-DeYPLoEJ.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DnkEDRTk.js → use-org-auth-client-CpJqPVuH.js} +1 -1
- package/dist/client/assets/{use-org-sso-CN15B3wE.js → use-org-sso-GPJYud0h.js} +1 -1
- package/dist/client/assets/{use-organization-roles-qN1PRVvQ.js → use-organization-roles-D9esIXeR.js} +1 -1
- package/dist/client/assets/{use-organization-settings-RqyZhOuo.js → use-organization-settings-C7zflGqs.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BE0aFTI1.js → use-registry-connections-B1vXrR3c.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DkqBbPSS.js → use-status-sounds-Dlkg0R7f.js} +1 -1
- package/dist/client/assets/{use-tasks-DsH6cZRl.js → use-tasks-CKK53Yi7.js} +1 -1
- package/dist/client/assets/{use-view-mode-DbO7_qIE.js → use-view-mode-WSdAEAZS.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DIBjQz5k.js → use-virtual-mcp-C9_YL7kD.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BthTp29S.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-5Axxf4Tp.js +1 -0
- package/dist/client/assets/{user-D3SI9inq.js → user-BMeM8_Kh.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C1b_D_--.js → view-mode-toggle-C9wA8R9s.js} +1 -1
- package/dist/client/assets/{workflow-bf9m4gQp.js → workflow-CoAUdsHF.js} +1 -1
- package/dist/client/assets/workflow-detail-Dw2RzGR4.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/environment/index.d.ts +74 -0
- package/dist/server/node_modules/environment/index.js +47 -0
- package/dist/server/node_modules/environment/license +9 -0
- package/dist/server/node_modules/environment/package.json +74 -0
- package/dist/server/node_modules/environment/readme.md +94 -0
- package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
- package/dist/server/node_modules/escape-string-regexp/license +9 -0
- package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
- package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
- package/dist/server/node_modules/is-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/is-fullwidth-code-point/license +9 -0
- 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/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
- package/dist/server/node_modules/is-unicode-supported/license +9 -0
- package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
- package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
- package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
- package/dist/server/node_modules/mimic-fn/index.js +13 -0
- package/dist/server/node_modules/mimic-fn/license +9 -0
- package/dist/server/node_modules/mimic-fn/package.json +42 -0
- package/dist/server/node_modules/mimic-fn/readme.md +69 -0
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/postgres-array/license +21 -0
- package/dist/server/node_modules/postgres-array/package.json +35 -0
- package/dist/server/node_modules/postgres-array/readme.md +43 -0
- package/dist/server/node_modules/restore-cursor/index.d.ts +11 -0
- package/dist/server/node_modules/restore-cursor/index.js +11 -0
- package/dist/server/node_modules/restore-cursor/license +9 -0
- package/dist/server/node_modules/restore-cursor/package.json +55 -0
- package/dist/server/node_modules/restore-cursor/readme.md +31 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/dist/server/node_modules/string-width/index.d.ts +39 -0
- package/dist/server/node_modules/string-width/index.js +82 -0
- package/dist/server/node_modules/string-width/license +9 -0
- package/dist/server/node_modules/string-width/package.json +64 -0
- package/dist/server/node_modules/string-width/readme.md +66 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-BTHVSznc.js +0 -1
- package/dist/client/assets/index-DR3jGuDX.js +0 -1
- package/dist/client/assets/registry-D_qBGD1h.js +0 -2
- package/dist/client/assets/store-registry-BxAYDZYi.js +0 -2
- package/dist/client/assets/useInfiniteQuery-B3MVtmJM.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BCYthwLz.js +0 -1
- package/dist/client/assets/workflow-detail-_fTRA7hJ.js +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
_isFullWidth as isFullWidth,
|
|
3
|
+
_isWide as isWide,
|
|
4
|
+
} from 'get-east-asian-width';
|
|
5
|
+
|
|
6
|
+
export default function isFullwidthCodePoint(codePoint) {
|
|
7
|
+
if (!Number.isInteger(codePoint)) {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return isFullWidth(codePoint) || isWide(codePoint);
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "is-fullwidth-code-point",
|
|
3
|
+
"version": "5.1.0",
|
|
4
|
+
"description": "Check if the character represented by a given Unicode code point is fullwidth",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/is-fullwidth-code-point",
|
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Sindre Sorhus",
|
|
10
|
+
"email": "sindresorhus@gmail.com",
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"exports": {
|
|
15
|
+
"types": "./index.d.ts",
|
|
16
|
+
"default": "./index.js"
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"test": "xo && ava && tsd"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"index.js",
|
|
27
|
+
"index.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"keywords": [
|
|
30
|
+
"fullwidth",
|
|
31
|
+
"full-width",
|
|
32
|
+
"full",
|
|
33
|
+
"width",
|
|
34
|
+
"unicode",
|
|
35
|
+
"character",
|
|
36
|
+
"string",
|
|
37
|
+
"codepoint",
|
|
38
|
+
"code",
|
|
39
|
+
"point",
|
|
40
|
+
"is",
|
|
41
|
+
"detect",
|
|
42
|
+
"check",
|
|
43
|
+
"east-asian-width"
|
|
44
|
+
],
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"ava": "^5.3.1",
|
|
47
|
+
"tsd": "^0.29.0",
|
|
48
|
+
"xo": "^0.56.0"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"get-east-asian-width": "^1.3.1"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# is-fullwidth-code-point
|
|
2
|
+
|
|
3
|
+
> Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install is-fullwidth-code-point
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import isFullwidthCodePoint from 'is-fullwidth-code-point';
|
|
15
|
+
|
|
16
|
+
isFullwidthCodePoint('谢'.codePointAt(0));
|
|
17
|
+
//=> true
|
|
18
|
+
|
|
19
|
+
isFullwidthCodePoint('a'.codePointAt(0));
|
|
20
|
+
//=> false
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## API
|
|
24
|
+
|
|
25
|
+
### isFullwidthCodePoint(codePoint)
|
|
26
|
+
|
|
27
|
+
#### codePoint
|
|
28
|
+
|
|
29
|
+
Type: `number`
|
|
30
|
+
|
|
31
|
+
The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import process from 'node:process';
|
|
2
|
+
|
|
3
|
+
export default function isUnicodeSupported() {
|
|
4
|
+
const {env} = process;
|
|
5
|
+
const {TERM, TERM_PROGRAM} = env;
|
|
6
|
+
|
|
7
|
+
if (process.platform !== 'win32') {
|
|
8
|
+
return TERM !== 'linux'; // Linux console (kernel)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return Boolean(env.WT_SESSION) // Windows Terminal
|
|
12
|
+
|| Boolean(env.TERMINUS_SUBLIME) // Terminus (<0.2.27)
|
|
13
|
+
|| env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder
|
|
14
|
+
|| TERM_PROGRAM === 'Terminus-Sublime'
|
|
15
|
+
|| TERM_PROGRAM === 'vscode'
|
|
16
|
+
|| TERM === 'xterm-256color'
|
|
17
|
+
|| TERM === 'alacritty'
|
|
18
|
+
|| TERM === 'rxvt-unicode'
|
|
19
|
+
|| TERM === 'rxvt-unicode-256color'
|
|
20
|
+
|| env.TERMINAL_EMULATOR === 'JetBrains-JediTerm';
|
|
21
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "is-unicode-supported",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "Detect whether the terminal supports Unicode",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/is-unicode-supported",
|
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Sindre Sorhus",
|
|
10
|
+
"email": "sindresorhus@gmail.com",
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"exports": {
|
|
15
|
+
"types": "./index.d.ts",
|
|
16
|
+
"default": "./index.js"
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"test": "xo && ava && tsd"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"index.js",
|
|
27
|
+
"index.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"keywords": [
|
|
30
|
+
"terminal",
|
|
31
|
+
"unicode",
|
|
32
|
+
"detect",
|
|
33
|
+
"utf8",
|
|
34
|
+
"console",
|
|
35
|
+
"shell",
|
|
36
|
+
"support",
|
|
37
|
+
"supports",
|
|
38
|
+
"supported",
|
|
39
|
+
"check",
|
|
40
|
+
"detection"
|
|
41
|
+
],
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"ava": "^6.1.3",
|
|
44
|
+
"tsd": "^0.31.2",
|
|
45
|
+
"xo": "^0.59.3"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# is-unicode-supported
|
|
2
|
+
|
|
3
|
+
> Detect whether the terminal supports Unicode
|
|
4
|
+
|
|
5
|
+
This can be useful to decide whether to use Unicode characters or fallback ASCII characters in command-line output.
|
|
6
|
+
|
|
7
|
+
Note that the check is quite naive. It just assumes all non-Windows terminals support Unicode and hard-codes which Windows terminals that do support Unicode. However, I have been using this logic in some popular packages for years without problems.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install is-unicode-supported
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
import isUnicodeSupported from 'is-unicode-supported';
|
|
19
|
+
|
|
20
|
+
isUnicodeSupported();
|
|
21
|
+
//=> true
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## API
|
|
25
|
+
|
|
26
|
+
### isUnicodeSupported()
|
|
27
|
+
|
|
28
|
+
Returns a `boolean` for whether the terminal supports Unicode.
|
|
29
|
+
|
|
30
|
+
## Related
|
|
31
|
+
|
|
32
|
+
- [is-interactive](https://github.com/sindresorhus/is-interactive) - Check if stdout or stderr is interactive
|
|
33
|
+
- [supports-color](https://github.com/chalk/supports-color) - Detect whether a terminal supports color
|
|
34
|
+
- [figures](https://github.com/sindresorhus/figures) - Unicode symbols with Windows fallbacks
|
|
35
|
+
- [log-symbols](https://github.com/sindresorhus/log-symbols) - Colored symbols for various log levels
|
|
@@ -0,0 +1,54 @@
|
|
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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)
|
|
@@ -0,0 +1,13 @@
|
|
|
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.
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// selected so (BASE - 1) * 0x100000000 + 0xffffffff is a safe integer
|
|
4
|
+
var BASE = 1000000;
|
|
5
|
+
|
|
6
|
+
function readInt8(buffer) {
|
|
7
|
+
var high = buffer.readInt32BE(0);
|
|
8
|
+
var low = buffer.readUInt32BE(4);
|
|
9
|
+
var sign = '';
|
|
10
|
+
|
|
11
|
+
if (high < 0) {
|
|
12
|
+
high = ~high + (low === 0);
|
|
13
|
+
low = (~low + 1) >>> 0;
|
|
14
|
+
sign = '-';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
var result = '';
|
|
18
|
+
var carry;
|
|
19
|
+
var t;
|
|
20
|
+
var digits;
|
|
21
|
+
var pad;
|
|
22
|
+
var l;
|
|
23
|
+
var i;
|
|
24
|
+
|
|
25
|
+
{
|
|
26
|
+
carry = high % BASE;
|
|
27
|
+
high = high / BASE >>> 0;
|
|
28
|
+
|
|
29
|
+
t = 0x100000000 * carry + low;
|
|
30
|
+
low = t / BASE >>> 0;
|
|
31
|
+
digits = '' + (t - BASE * low);
|
|
32
|
+
|
|
33
|
+
if (low === 0 && high === 0) {
|
|
34
|
+
return sign + digits + result;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
pad = '';
|
|
38
|
+
l = 6 - digits.length;
|
|
39
|
+
|
|
40
|
+
for (i = 0; i < l; i++) {
|
|
41
|
+
pad += '0';
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
result = pad + digits + result;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
{
|
|
48
|
+
carry = high % BASE;
|
|
49
|
+
high = high / BASE >>> 0;
|
|
50
|
+
|
|
51
|
+
t = 0x100000000 * carry + low;
|
|
52
|
+
low = t / BASE >>> 0;
|
|
53
|
+
digits = '' + (t - BASE * low);
|
|
54
|
+
|
|
55
|
+
if (low === 0 && high === 0) {
|
|
56
|
+
return sign + digits + result;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
pad = '';
|
|
60
|
+
l = 6 - digits.length;
|
|
61
|
+
|
|
62
|
+
for (i = 0; i < l; i++) {
|
|
63
|
+
pad += '0';
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
result = pad + digits + result;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
{
|
|
70
|
+
carry = high % BASE;
|
|
71
|
+
high = high / BASE >>> 0;
|
|
72
|
+
|
|
73
|
+
t = 0x100000000 * carry + low;
|
|
74
|
+
low = t / BASE >>> 0;
|
|
75
|
+
digits = '' + (t - BASE * low);
|
|
76
|
+
|
|
77
|
+
if (low === 0 && high === 0) {
|
|
78
|
+
return sign + digits + result;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
pad = '';
|
|
82
|
+
l = 6 - digits.length;
|
|
83
|
+
|
|
84
|
+
for (i = 0; i < l; i++) {
|
|
85
|
+
pad += '0';
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
result = pad + digits + result;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
{
|
|
92
|
+
carry = high % BASE;
|
|
93
|
+
t = 0x100000000 * carry + low;
|
|
94
|
+
digits = '' + t % BASE;
|
|
95
|
+
|
|
96
|
+
return sign + digits + result;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
module.exports = readInt8;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pg-int8",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "64-bit big-endian signed integer-to-string conversion",
|
|
5
|
+
"bugs": "https://github.com/charmander/pg-int8/issues",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"files": [
|
|
8
|
+
"index.js"
|
|
9
|
+
],
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/charmander/pg-int8"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "tap test"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@charmander/eslint-config-base": "1.0.2",
|
|
19
|
+
"tap": "10.7.3"
|
|
20
|
+
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=4.0.0"
|
|
23
|
+
}
|
|
24
|
+
}
|