decocms 2.304.0 → 2.304.1
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-BeiDn4Fp.js → AlertCircle-Bmjr0ClA.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-hulNygQd.js → ArrowNarrowLeft-CThwX0q-.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-lTwxwkJA.js → ArrowUpRight-B7vTMj1u.js} +1 -1
- package/dist/client/assets/{CheckCircle-3TB25Bcb.js → CheckCircle-CNaz4scY.js} +1 -1
- package/dist/client/assets/{ChevronDown-_b59faTm.js → ChevronDown-BMpzZvgp.js} +1 -1
- package/dist/client/assets/{ChevronRight-DEybByBs.js → ChevronRight-B0WDiR9g.js} +1 -1
- package/dist/client/assets/{ChevronUp-B_td_jK6.js → ChevronUp-C1KppMC5.js} +1 -1
- package/dist/client/assets/{Container-d8d36LPk.js → Container-DxKKEmNe.js} +1 -1
- package/dist/client/assets/{DotsVertical-9AuPT8gf.js → DotsVertical-CRTfJ6MH.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BMrJcbl6.js → LinkExternal01-DcUPNTey.js} +1 -1
- package/dist/client/assets/{Lock01-C5rgxGgu.js → Lock01-CwYOwvXR.js} +1 -1
- package/dist/client/assets/{Palette-DfnmIo6d.js → Palette-c4ovbTBC.js} +1 -1
- package/dist/client/assets/{Play-BGW505UY.js → Play-BzawbqMW.js} +1 -1
- package/dist/client/assets/{Plus-DlISHBLe.js → Plus-CZq1C4jM.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Dbq2QLAC.js → RefreshCcw01-Dwpnc1qZ.js} +1 -1
- package/dist/client/assets/{SearchMd-C8WDOhfc.js → SearchMd-BYUE-oTe.js} +1 -1
- package/dist/client/assets/{Settings02-BIpL5e3f.js → Settings02-FFAtt7kb.js} +1 -1
- package/dist/client/assets/{Shield01-DCoI7_zY.js → Shield01-CZOC16WM.js} +1 -1
- package/dist/client/assets/{Star01-Chns_B29.js → Star01-GaFk6Xa_.js} +1 -1
- package/dist/client/assets/{Sun-CgSsJ8OX.js → Sun-_nS1eHVw.js} +1 -1
- package/dist/client/assets/{Tool01-B8RjIhe4.js → Tool01-CpBRL57v.js} +1 -1
- package/dist/client/assets/{Trash01-CFncShuD.js → Trash01-CKEJHaXR.js} +1 -1
- package/dist/client/assets/{User01-Bq8r53VC.js → User01-BO3afenP.js} +1 -1
- package/dist/client/assets/{Users03-qD8JWxak.js → Users03-B2dn7j_S.js} +1 -1
- package/dist/client/assets/{X-BNOerUAB.js → X-BY4Cj76l.js} +1 -1
- package/dist/client/assets/{XCircle-B-JS14_e.js → XCircle-H-paIGFm.js} +1 -1
- package/dist/client/assets/{XClose-vOlmnMjZ.js → XClose-ihnqmUfp.js} +1 -1
- package/dist/client/assets/{Zap-BPHOFmqu.js → Zap-BafO525R.js} +1 -1
- package/dist/client/assets/{ZapSquare-CX9zqrxv.js → ZapSquare-BFMe5Mv9.js} +1 -1
- package/dist/client/assets/{accordion-DIyksd99.js → accordion-DJ9g6lbv.js} +1 -1
- package/dist/client/assets/{agent-icon-CLQAOsUE.js → agent-icon-3dvecirS.js} +1 -1
- package/dist/client/assets/{agents-list-D0BQglaf.js → agents-list-C3oLVAtv.js} +1 -1
- package/dist/client/assets/ai-providers-BnFAoUUB.js +1 -0
- package/dist/client/assets/{alert-dialog-BWduFhy-.js → alert-dialog-BaDMThMD.js} +1 -1
- package/dist/client/assets/{auth-catchall-D-v4q1Qx.js → auth-catchall-DyAp9W_K.js} +1 -1
- package/dist/client/assets/{automation-list-row-DPkrb87t.js → automation-list-row-BZ5pc5Hf.js} +1 -1
- package/dist/client/assets/{automations-BCzY9gmM.js → automations-NFa1s-Bh.js} +1 -1
- package/dist/client/assets/{avatar-C6HNjGDg.js → avatar-D8_rUBWz.js} +1 -1
- package/dist/client/assets/{badge-CZCn9Wwi.js → badge-DdmMZRNT.js} +1 -1
- package/dist/client/assets/{brand-context-DcqBJ41j.js → brand-context-Bze-d_ZO.js} +1 -1
- package/dist/client/assets/{card-oNblR0HO.js → card-BsUopeoI.js} +1 -1
- package/dist/client/assets/{chat-context-RcvBJBC7.js → chat-context-DfbXSilM.js} +1 -1
- package/dist/client/assets/{checkbox-JSEUVCMB.js → checkbox-D9P4N8hw.js} +1 -1
- package/dist/client/assets/{collection-detail-C5pV1mWu.js → collection-detail-D-8PAzvK.js} +1 -1
- package/dist/client/assets/{collection-display-button-DQSPcJBz.js → collection-display-button-B0aY08zq.js} +1 -1
- package/dist/client/assets/{collection-search-CLoorkFj.js → collection-search-C4AgxGiz.js} +1 -1
- package/dist/client/assets/{collection-search-DGO6_1o7.js → collection-search-Dlp7iCDd.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-P7sXgSq0.js → collection-table-wrapper-CQMKVKSx.js} +1 -1
- package/dist/client/assets/{collection-tabs-6c5Oz0MD.js → collection-tabs-C9tMEUhv.js} +1 -1
- package/dist/client/assets/{collections-CcBlrCx6.js → collections-BDAFtlmY.js} +1 -1
- package/dist/client/assets/{command-C666DFpg.js → command-CQ2qBZMm.js} +1 -1
- package/dist/client/assets/{connection-card-DbGlMaON.js → connection-card-DwOSEuv8.js} +1 -1
- package/dist/client/assets/{connection-detail-DOFWK_LZ.js → connection-detail-CawEIpU7.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-S9iwzj4v.js → connection-form-helpers-D2ynuhjT.js} +1 -1
- package/dist/client/assets/{connections-DZgnlfnc.js → connections-CpSP7u11.js} +1 -1
- package/dist/client/assets/{constants-B22iOAkD.js → constants-8SUUmfde.js} +1 -1
- package/dist/client/assets/{constants-DRQ2x-Dp.js → constants-dX65r6Zc.js} +1 -1
- package/dist/client/assets/{dialog-ReVTOuxu.js → dialog-C09MDdtC.js} +1 -1
- package/dist/client/assets/{domain-settings-_aY4XST2.js → domain-settings-C8zQRIa5.js} +1 -1
- package/dist/client/assets/{drawer-BYHJ-8Om.js → drawer-CgP97_zn.js} +1 -1
- package/dist/client/assets/{dropdown-menu-y8iKrNsS.js → dropdown-menu-BUQ2j94Z.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BxzD5223.js → dynamic-plugin-layout-D01hx5Sr.js} +1 -1
- package/dist/client/assets/{empty-state-B4rhh1dc.js → empty-state-CDSs8u5J.js} +1 -1
- package/dist/client/assets/{empty-state-ByRM_QUo.js → empty-state-CnWmYGyJ.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CbVt8VgN.js → extract-connection-data-BksUB8IU.js} +1 -1
- package/dist/client/assets/{features-BMKDqpeL.js → features-DbY_j0po.js} +1 -1
- package/dist/client/assets/{form-D8QDPjk9.js → form-D7lwTpan.js} +1 -1
- package/dist/client/assets/{general-WpQ82n-X.js → general-ClAAY_hM.js} +1 -1
- package/dist/client/assets/index-1cERBOeE.js +1 -0
- package/dist/client/assets/{index-BET8kMZe.js → index-8uCGLU1q.js} +1 -1
- package/dist/client/assets/{index-CeC26NPv.js → index-B7KZ-vdQ.js} +1 -1
- package/dist/client/assets/{index-CgURykwj.js → index-BHEM4T0P.js} +1 -1
- package/dist/client/assets/{index-DBj2qw-o.js → index-BT2v6iP4.js} +1 -1
- package/dist/client/assets/{index-Bpod-O0_.js → index-BfFMVpP_.js} +1 -1
- package/dist/client/assets/{index-CTWz6nN8.js → index-BfFwypL5.js} +1 -1
- package/dist/client/assets/{index-U5YmU8lc.js → index-CKVeIfog.js} +1 -1
- package/dist/client/assets/{index-CPmmcxsi.js → index-C_Adeshs.js} +1 -1
- package/dist/client/assets/{index-D4IWA9IU.js → index-Cqw0FyHL.js} +2 -2
- package/dist/client/assets/{index-Cf5saV1q.js → index-DH_JeBfm.js} +1 -1
- package/dist/client/assets/{index-Bi-e-UKp.js → index-DHwV9q9X.js} +1 -1
- package/dist/client/assets/{index-DXXI9MyH.js → index-DRij5nf9.js} +1 -1
- package/dist/client/assets/{index-D8dvMQZl.js → index-Eg0bSiJp.js} +1 -1
- package/dist/client/assets/{index-D9Q6YnJH.js → index-stoVKXMu.js} +1 -1
- package/dist/client/assets/{index-BuLwXk3-.js → index-zf-rleQN.js} +3 -3
- package/dist/client/assets/{infiniteQueryObserver-ClYEJj89.js → infiniteQueryObserver-DdGFkAXb.js} +1 -1
- package/dist/client/assets/{input-DhXllgVP.js → input-Co0HW9uN.js} +1 -1
- package/dist/client/assets/{integration-icon-CNQIPioy.js → integration-icon-DmwSpOA7.js} +1 -1
- package/dist/client/assets/{label-BDcPRk17.js → label-CeKVWPbr.js} +1 -1
- package/dist/client/assets/{layout-DBK70FJ7.js → layout-Tnq2i3zg.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-Cosr7uB6.js → lean-canvas-recruit-modal-BU3z415J.js} +1 -1
- package/dist/client/assets/{login-uRApKgz7.js → login-CWTb0-fH.js} +1 -1
- package/dist/client/assets/{members-CgYS1Zxe.js → members-Bj1Fn746.js} +1 -1
- package/dist/client/assets/{monaco-editor-D34bkcWL.js → monaco-editor-qXNTtuH2.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Rw8mxMr8.js → monitoring-stats-row-yM4e_YZD.js} +1 -1
- package/dist/client/assets/{oauth-callback-DLWU7IjL.js → oauth-callback-CdB6DJDA.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-5FDIcGBj.js → oauth-callback-ai-provider-BgDs3na5.js} +1 -1
- package/dist/client/assets/{onboarding-jyaCV8uq.js → onboarding-DKG_eIr1.js} +1 -1
- package/dist/client/assets/{org-layout-DxW3YApR.js → org-layout-Dl85hYyi.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-B-uqLn5y.js → org-plugin-layout-BjSThyiS.js} +1 -1
- package/dist/client/assets/{pair-CM7Z5dgt.js → pair-1dEJPLek.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-C-o1hhqY.js → plugin-empty-state-Don4CmqW.js} +1 -1
- package/dist/client/assets/{plugin-header-BTFD2Tcj.js → plugin-header-B8c9MPqH.js} +1 -1
- package/dist/client/assets/{plugin-layout-BiJEtvKW.js → plugin-layout-Cl6_YUJ2.js} +1 -1
- package/dist/client/assets/{popover-DQq9bf6V.js → popover-vkIPXKru.js} +1 -1
- package/dist/client/assets/{profile-PICkTEdT.js → profile-Biqh2ggJ.js} +1 -1
- package/dist/client/assets/{project-app-view-B1QcPr4W.js → project-app-view-DSY0SCnx.js} +1 -1
- package/dist/client/assets/registry-B4DkMjbe.js +2 -0
- package/dist/client/assets/{registry-layout-DGmSzwah.js → registry-layout-BHVIlZsW.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CfAoaltR.js → required-auth-layout-1Kf8B8P9.js} +1 -1
- package/dist/client/assets/{reset-password-NMO08kVP.js → reset-password-CZU-BGGi.js} +1 -1
- package/dist/client/assets/{roles-CCaqodZQ.js → roles-V0vn58qZ.js} +1 -1
- package/dist/client/assets/{scroll-area-AhoYMTSF.js → scroll-area-BF4q7Ra2.js} +1 -1
- package/dist/client/assets/{search-input-BSmmjMtR.js → search-input-VyjPISbx.js} +1 -1
- package/dist/client/assets/{select-model-D2H_jWcd.js → select-model-CGzdU4-Q.js} +1 -1
- package/dist/client/assets/{select-dTphD0ES.js → select-rxK-8b1N.js} +1 -1
- package/dist/client/assets/{settings-layout-Bn3d6rRU.js → settings-layout-Bc0g8WOL.js} +1 -1
- package/dist/client/assets/{settings-section-DkPpouMA.js → settings-section-BsEmPevi.js} +1 -1
- package/dist/client/assets/{shell-layout-DLX5f9iI.js → shell-layout-BhC55LLx.js} +1 -1
- package/dist/client/assets/{skeleton-DCMX-VkN.js → skeleton-y3O4xgdS.js} +1 -1
- package/dist/client/assets/{sso-BeQadTWm.js → sso-Di8r0acw.js} +1 -1
- package/dist/client/assets/{store-D-lrayyv.js → store-B9Zqk-bV.js} +1 -1
- package/dist/client/assets/store-registry-RqxELDy6.js +2 -0
- package/dist/client/assets/{switch-D9uEYoPa.js → switch-QErK7wwO.js} +1 -1
- package/dist/client/assets/{table-BIcJswmk.js → table-CdyHz2p3.js} +1 -1
- package/dist/client/assets/{tabs-Bbs5xG17.js → tabs-CMFQWy73.js} +1 -1
- package/dist/client/assets/{task-status-1zFON5T4.js → task-status-D0-O3Mr3.js} +1 -1
- package/dist/client/assets/{textarea-BMU9fnHG.js → textarea-CxEqGfix.js} +1 -1
- package/dist/client/assets/{toggle-group-juphd3c4.js → toggle-group-AZijjpe8.js} +1 -1
- package/dist/client/assets/{tools-list-BP78dRI3.js → tools-list-DjWGeJBp.js} +1 -1
- package/dist/client/assets/{tooltip-B5FrLY14.js → tooltip-D_3qm7UK.js} +1 -1
- package/dist/client/assets/{types-DmM_J5U9.js → types-D1Wl9DNB.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CVAGId9e.js → use-ai-providers-Cah1GZeX.js} +1 -1
- package/dist/client/assets/{use-collections-DKWG5Tun.js → use-collections-DrmuHy93.js} +1 -1
- package/dist/client/assets/{use-connection-Dy5vq_5j.js → use-connection-CyjN1GtI.js} +1 -1
- package/dist/client/assets/{use-copy-BSYEct5q.js → use-copy-SV4GW98D.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-ifW0Pllw.js → use-create-virtual-mcp-Y9XZZ8XI.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DVXCv4R8.js → use-decopilot-events-Drlt36bF.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CRe3MUPe.js → use-delete-connection-B955BI0e.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-4DQHfv5o.js → use-infinite-scroll-BRF66BxZ.js} +1 -1
- package/dist/client/assets/{use-list-state-CihFBhY3.js → use-list-state-C6Di0aCP.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Bog3rGRX.js → use-mcp-tools-DyKI35iZ.js} +1 -1
- package/dist/client/assets/{use-members-eWVl2b1I.js → use-members-mnYCaL5_.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent--7ajKHhy.js → use-navigate-to-agent-DrWD9J71.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C-BGwXKo.js → use-org-auth-client-HeIerkrz.js} +1 -1
- package/dist/client/assets/{use-org-sso-2mlDJ8c4.js → use-org-sso-BuTv1ygf.js} +1 -1
- package/dist/client/assets/{use-organization-roles-PByiiFjp.js → use-organization-roles-ChLRcseg.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DngIHmBy.js → use-organization-settings-EfxM66aZ.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CDM-gpri.js → use-registry-connections-fltIDY82.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BzXaoVC8.js → use-status-sounds-BRxCV6Ea.js} +1 -1
- package/dist/client/assets/{use-tasks-M1RmMNT7.js → use-tasks-DEh_VRON.js} +1 -1
- package/dist/client/assets/{use-view-mode-DRDlksJe.js → use-view-mode-B3nY15Yz.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CDCK02Yj.js → use-virtual-mcp-Bb04Uah7.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CY4tnydB.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BFpIngH9.js +1 -0
- package/dist/client/assets/{user-WYGHhGxH.js → user-ClafvvGL.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CK1VLDTo.js → view-mode-toggle-Im7J4smk.js} +1 -1
- package/dist/client/assets/workflow-detail-Cr5QMF9R.js +1 -0
- package/dist/client/assets/{workflow-DkcKupEW.js → workflow-u6doascD.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +387 -387
- 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/{slice-ansi → ansi-styles}/license +0 -1
- 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/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/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/{postgres-date/license → pg-pool/LICENSE} +6 -6
- package/dist/server/node_modules/pg-pool/README.md +357 -0
- package/dist/server/node_modules/pg-pool/esm/index.mjs +5 -0
- package/dist/server/node_modules/pg-pool/index.js +517 -0
- package/dist/server/node_modules/pg-pool/package.json +51 -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/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-BnclkXxt.js +0 -1
- package/dist/client/assets/index-BB2bR64l.js +0 -1
- package/dist/client/assets/registry-Dr9Q687k.js +0 -2
- package/dist/client/assets/store-registry-dKQp57q_.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DtJBa4_2.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-G-zitmER.js +0 -1
- package/dist/client/assets/workflow-detail-BtHvU2Pd.js +0 -1
- 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/postgres-date/index.js +0 -116
- 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/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/{mimic-fn → escape-string-regexp}/license +0 -0
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# postgres-date [](https://travis-ci.org/bendrucker/postgres-date) [](https://greenkeeper.io/)
|
|
2
|
-
|
|
3
|
-
> Postgres date output parser
|
|
4
|
-
|
|
5
|
-
This package parses [date/time outputs](https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-DATETIME-OUTPUT) from Postgres into Javascript `Date` objects. Its goal is to match Postgres behavior and preserve data accuracy.
|
|
6
|
-
|
|
7
|
-
If you find a case where a valid Postgres output results in incorrect parsing (including loss of precision), please [create a pull request](https://github.com/bendrucker/postgres-date/compare) and provide a failing test.
|
|
8
|
-
|
|
9
|
-
**Supported Postgres Versions:** `>= 9.6`
|
|
10
|
-
|
|
11
|
-
All prior versions of Postgres are likely compatible but not officially supported.
|
|
12
|
-
|
|
13
|
-
## Install
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
$ npm install --save postgres-date
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## Usage
|
|
21
|
-
|
|
22
|
-
```js
|
|
23
|
-
var parse = require('postgres-date')
|
|
24
|
-
parse('2011-01-23 22:15:51Z')
|
|
25
|
-
// => 2011-01-23T22:15:51.000Z
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## API
|
|
29
|
-
|
|
30
|
-
#### `parse(isoDate)` -> `date`
|
|
31
|
-
|
|
32
|
-
##### isoDate
|
|
33
|
-
|
|
34
|
-
*Required*
|
|
35
|
-
Type: `string`
|
|
36
|
-
|
|
37
|
-
A date string from Postgres.
|
|
38
|
-
|
|
39
|
-
## Releases
|
|
40
|
-
|
|
41
|
-
The following semantic versioning increments will be used for changes:
|
|
42
|
-
|
|
43
|
-
* **Major**: Removal of support for Node.js versions or Postgres versions (not expected)
|
|
44
|
-
* **Minor**: Unused, since Postgres returns dates in standard ISO 8601 format
|
|
45
|
-
* **Patch**: Any fix for parsing behavior
|
|
46
|
-
|
|
47
|
-
## License
|
|
48
|
-
|
|
49
|
-
MIT © [Ben Drucker](http://bendrucker.me)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Slice a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
|
|
3
|
-
|
|
4
|
-
@param string - A string with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk).
|
|
5
|
-
@param startSlice - Zero-based visible-column index at which to start the slice. Grapheme clusters are kept intact.
|
|
6
|
-
@param endSlice - Zero-based visible-column index at which to end the slice.
|
|
7
|
-
|
|
8
|
-
@example
|
|
9
|
-
```
|
|
10
|
-
import chalk from 'chalk';
|
|
11
|
-
import sliceAnsi from 'slice-ansi';
|
|
12
|
-
|
|
13
|
-
const string = 'The quick brown ' + chalk.red('fox jumped over ') +
|
|
14
|
-
'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
|
|
15
|
-
|
|
16
|
-
console.log(sliceAnsi(string, 20, 30));
|
|
17
|
-
```
|
|
18
|
-
*/
|
|
19
|
-
export default function sliceAnsi(string: string, startSlice: number, endSlice?: number): string;
|
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
import tokenizeAnsi from './tokenize-ansi.js';
|
|
2
|
-
|
|
3
|
-
function applySgrFragments(activeStyles, fragments) {
|
|
4
|
-
for (const fragment of fragments) {
|
|
5
|
-
switch (fragment.type) {
|
|
6
|
-
case 'reset': {
|
|
7
|
-
activeStyles.clear();
|
|
8
|
-
break;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
case 'end': {
|
|
12
|
-
activeStyles.delete(fragment.endCode);
|
|
13
|
-
break;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
case 'start': {
|
|
17
|
-
activeStyles.delete(fragment.endCode);
|
|
18
|
-
activeStyles.set(fragment.endCode, fragment.code);
|
|
19
|
-
break;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
default: {
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return activeStyles;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function undoAnsiCodes(activeStyles) {
|
|
32
|
-
return [...activeStyles.keys()].reverse().join('');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function closeHyperlink(hyperlinkToken) {
|
|
36
|
-
return `${hyperlinkToken.closePrefix}${hyperlinkToken.terminator}`;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function shouldIncludeSgrAfterEnd(token, activeStyles) {
|
|
40
|
-
let hasStartFragment = false;
|
|
41
|
-
let hasClosingEffect = false;
|
|
42
|
-
|
|
43
|
-
for (const fragment of token.fragments) {
|
|
44
|
-
if (fragment.type === 'start') {
|
|
45
|
-
hasStartFragment = true;
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (fragment.type === 'reset' && activeStyles.size > 0) {
|
|
50
|
-
hasClosingEffect = true;
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (fragment.type === 'end' && activeStyles.has(fragment.endCode)) {
|
|
55
|
-
hasClosingEffect = true;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return hasClosingEffect && !hasStartFragment;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function applySgrToken({token, isPastEnd, activeStyles, returnValue, include, activeHyperlink, position}) {
|
|
63
|
-
if (isPastEnd && !shouldIncludeSgrAfterEnd(token, activeStyles)) {
|
|
64
|
-
return {
|
|
65
|
-
activeStyles,
|
|
66
|
-
activeHyperlink,
|
|
67
|
-
position,
|
|
68
|
-
returnValue,
|
|
69
|
-
include,
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
activeStyles = applySgrFragments(activeStyles, token.fragments);
|
|
74
|
-
if (include) {
|
|
75
|
-
returnValue += token.code;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return {
|
|
79
|
-
activeStyles,
|
|
80
|
-
activeHyperlink,
|
|
81
|
-
position,
|
|
82
|
-
returnValue,
|
|
83
|
-
include,
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function applyHyperlinkToken({token, isPastEnd, activeStyles, activeHyperlink, position, returnValue, include}) {
|
|
88
|
-
if (
|
|
89
|
-
isPastEnd
|
|
90
|
-
&& (
|
|
91
|
-
token.action !== 'close'
|
|
92
|
-
|| !activeHyperlink
|
|
93
|
-
)
|
|
94
|
-
) {
|
|
95
|
-
return {
|
|
96
|
-
activeStyles,
|
|
97
|
-
activeHyperlink,
|
|
98
|
-
position,
|
|
99
|
-
returnValue,
|
|
100
|
-
include,
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (token.action === 'open') {
|
|
105
|
-
activeHyperlink = token;
|
|
106
|
-
} else if (token.action === 'close') {
|
|
107
|
-
activeHyperlink = undefined;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
if (include) {
|
|
111
|
-
returnValue += token.code;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
return {
|
|
115
|
-
activeStyles,
|
|
116
|
-
activeHyperlink,
|
|
117
|
-
position,
|
|
118
|
-
returnValue,
|
|
119
|
-
include,
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
function applyControlToken({token, isPastEnd, activeStyles, activeHyperlink, position, returnValue, include}) {
|
|
124
|
-
if (!isPastEnd && include) {
|
|
125
|
-
returnValue += token.code;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
return {
|
|
129
|
-
activeStyles,
|
|
130
|
-
activeHyperlink,
|
|
131
|
-
position,
|
|
132
|
-
returnValue,
|
|
133
|
-
include,
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
function applyCharacterToken({token, start, activeStyles, activeHyperlink, position, returnValue, include}) {
|
|
138
|
-
if (
|
|
139
|
-
!include
|
|
140
|
-
&& position >= start
|
|
141
|
-
&& !token.isGraphemeContinuation
|
|
142
|
-
) {
|
|
143
|
-
include = true;
|
|
144
|
-
returnValue = [...activeStyles.values()].join('');
|
|
145
|
-
if (activeHyperlink) {
|
|
146
|
-
returnValue += activeHyperlink.code;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
if (include) {
|
|
151
|
-
returnValue += token.value;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
position += token.visibleWidth;
|
|
155
|
-
return {
|
|
156
|
-
activeStyles,
|
|
157
|
-
activeHyperlink,
|
|
158
|
-
position,
|
|
159
|
-
returnValue,
|
|
160
|
-
include,
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
const tokenHandlers = {
|
|
165
|
-
sgr: applySgrToken,
|
|
166
|
-
hyperlink: applyHyperlinkToken,
|
|
167
|
-
control: applyControlToken,
|
|
168
|
-
character: applyCharacterToken,
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
function applyToken(parameters) {
|
|
172
|
-
const tokenHandler = tokenHandlers[parameters.token.type];
|
|
173
|
-
if (!tokenHandler) {
|
|
174
|
-
const {
|
|
175
|
-
activeStyles,
|
|
176
|
-
activeHyperlink,
|
|
177
|
-
position,
|
|
178
|
-
returnValue,
|
|
179
|
-
include,
|
|
180
|
-
} = parameters;
|
|
181
|
-
|
|
182
|
-
return {
|
|
183
|
-
activeStyles,
|
|
184
|
-
activeHyperlink,
|
|
185
|
-
position,
|
|
186
|
-
returnValue,
|
|
187
|
-
include,
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
return tokenHandler(parameters);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
function createHasContinuationAheadMap(tokens) {
|
|
195
|
-
const hasContinuationAhead = Array.from({length: tokens.length}, () => false);
|
|
196
|
-
let nextCharacterIsContinuation = false;
|
|
197
|
-
|
|
198
|
-
for (let tokenIndex = tokens.length - 1; tokenIndex >= 0; tokenIndex--) {
|
|
199
|
-
const token = tokens[tokenIndex];
|
|
200
|
-
hasContinuationAhead[tokenIndex] = nextCharacterIsContinuation;
|
|
201
|
-
if (token.type === 'character') {
|
|
202
|
-
nextCharacterIsContinuation = Boolean(token.isGraphemeContinuation);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
return hasContinuationAhead;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export default function sliceAnsi(string, start, end) {
|
|
210
|
-
const tokens = tokenizeAnsi(string, {endCharacter: end});
|
|
211
|
-
const hasContinuationAhead = createHasContinuationAheadMap(tokens);
|
|
212
|
-
let activeStyles = new Map();
|
|
213
|
-
let activeHyperlink;
|
|
214
|
-
let position = 0;
|
|
215
|
-
let returnValue = '';
|
|
216
|
-
let include = false;
|
|
217
|
-
|
|
218
|
-
for (const [tokenIndex, token] of tokens.entries()) {
|
|
219
|
-
let isPastEnd = end !== undefined && position >= end;
|
|
220
|
-
if (
|
|
221
|
-
isPastEnd
|
|
222
|
-
&& token.type !== 'character'
|
|
223
|
-
&& hasContinuationAhead[tokenIndex]
|
|
224
|
-
) {
|
|
225
|
-
isPastEnd = false;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
if (
|
|
229
|
-
isPastEnd
|
|
230
|
-
&& token.type === 'character'
|
|
231
|
-
&& !token.isGraphemeContinuation
|
|
232
|
-
) {
|
|
233
|
-
break;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
({activeStyles, activeHyperlink, position, returnValue, include} = applyToken({
|
|
237
|
-
token,
|
|
238
|
-
isPastEnd,
|
|
239
|
-
start,
|
|
240
|
-
activeStyles,
|
|
241
|
-
activeHyperlink,
|
|
242
|
-
position,
|
|
243
|
-
returnValue,
|
|
244
|
-
include,
|
|
245
|
-
}));
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
if (!include) {
|
|
249
|
-
return '';
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
if (activeHyperlink) {
|
|
253
|
-
returnValue += closeHyperlink(activeHyperlink);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
// Disable active codes at the end
|
|
257
|
-
returnValue += undoAnsiCodes(activeStyles);
|
|
258
|
-
|
|
259
|
-
return returnValue;
|
|
260
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "slice-ansi",
|
|
3
|
-
"version": "8.0.0",
|
|
4
|
-
"description": "Slice a string with ANSI escape codes",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "chalk/slice-ansi",
|
|
7
|
-
"funding": "https://github.com/chalk/slice-ansi?sponsor=1",
|
|
8
|
-
"type": "module",
|
|
9
|
-
"exports": {
|
|
10
|
-
"types": "./index.d.ts",
|
|
11
|
-
"default": "./index.js"
|
|
12
|
-
},
|
|
13
|
-
"sideEffects": false,
|
|
14
|
-
"engines": {
|
|
15
|
-
"node": ">=20"
|
|
16
|
-
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "xo && ava && tsc --lib esnext index.d.ts"
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"index.js",
|
|
22
|
-
"tokenize-ansi.js",
|
|
23
|
-
"index.d.ts"
|
|
24
|
-
],
|
|
25
|
-
"keywords": [
|
|
26
|
-
"slice",
|
|
27
|
-
"string",
|
|
28
|
-
"ansi",
|
|
29
|
-
"styles",
|
|
30
|
-
"color",
|
|
31
|
-
"colour",
|
|
32
|
-
"colors",
|
|
33
|
-
"terminal",
|
|
34
|
-
"console",
|
|
35
|
-
"cli",
|
|
36
|
-
"tty",
|
|
37
|
-
"escape",
|
|
38
|
-
"formatting",
|
|
39
|
-
"rgb",
|
|
40
|
-
"256",
|
|
41
|
-
"shell",
|
|
42
|
-
"xterm",
|
|
43
|
-
"log",
|
|
44
|
-
"logging",
|
|
45
|
-
"command-line",
|
|
46
|
-
"text"
|
|
47
|
-
],
|
|
48
|
-
"dependencies": {
|
|
49
|
-
"ansi-styles": "^6.2.3",
|
|
50
|
-
"is-fullwidth-code-point": "^5.1.0"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"ava": "^6.4.1",
|
|
54
|
-
"chalk": "^5.6.2",
|
|
55
|
-
"random-item": "^4.0.1",
|
|
56
|
-
"strip-ansi": "^7.1.2",
|
|
57
|
-
"xo": "^1.2.3"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# slice-ansi [](https://github.com/xojs/xo)
|
|
2
|
-
|
|
3
|
-
> Slice a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
npm install slice-ansi
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
import chalk from 'chalk';
|
|
15
|
-
import sliceAnsi from 'slice-ansi';
|
|
16
|
-
|
|
17
|
-
const string = 'The quick brown ' + chalk.red('fox jumped over ') +
|
|
18
|
-
'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
|
|
19
|
-
|
|
20
|
-
console.log(sliceAnsi(string, 20, 30));
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## API
|
|
24
|
-
|
|
25
|
-
### sliceAnsi(string, startSlice, endSlice?)
|
|
26
|
-
|
|
27
|
-
#### string
|
|
28
|
-
|
|
29
|
-
Type: `string`
|
|
30
|
-
|
|
31
|
-
String with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk).
|
|
32
|
-
|
|
33
|
-
#### startSlice
|
|
34
|
-
|
|
35
|
-
Type: `number`
|
|
36
|
-
|
|
37
|
-
Zero-based visible-column index at which to start the slice. Grapheme clusters (for example, emoji sequences and combining marks) are kept intact.
|
|
38
|
-
|
|
39
|
-
#### endSlice
|
|
40
|
-
|
|
41
|
-
Type: `number`
|
|
42
|
-
|
|
43
|
-
Zero-based visible-column index at which to end the slice.
|
|
44
|
-
|
|
45
|
-
## Related
|
|
46
|
-
|
|
47
|
-
- [wrap-ansi](https://github.com/chalk/wrap-ansi) - Wordwrap a string with ANSI escape codes
|
|
48
|
-
- [cli-truncate](https://github.com/sindresorhus/cli-truncate) - Truncate a string to a specific width in the terminal
|
|
49
|
-
- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
|
|
50
|
-
|
|
51
|
-
## Maintainers
|
|
52
|
-
|
|
53
|
-
- [Sindre Sorhus](https://github.com/sindresorhus)
|
|
54
|
-
- [Josh Junon](https://github.com/qix-)
|