decocms 2.186.7 → 2.186.9
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-CE4aMC_6.js → AlertCircle-DoDnREQU.js} +1 -1
- package/dist/client/assets/{ArrowLeft-VzQjF5nf.js → ArrowLeft-1uQ4hoAA.js} +1 -1
- package/dist/client/assets/{ArrowUp-DVMY0e13.js → ArrowUp-CiCCsmLU.js} +1 -1
- package/dist/client/assets/{Check-BgcEZAFd.js → Check-DsqqbwRv.js} +1 -1
- package/dist/client/assets/{ChevronDown-Ca93y5Zg.js → ChevronDown-DMIUCeXF.js} +1 -1
- package/dist/client/assets/{ChevronRight-iThFOnTS.js → ChevronRight-BvErZvXV.js} +1 -1
- package/dist/client/assets/{ChevronUp-Dfrjh0kb.js → ChevronUp-BPTkFtVQ.js} +1 -1
- package/dist/client/assets/{Container-BQWbDEy6.js → Container-D8gJR-V9.js} +1 -1
- package/dist/client/assets/{Dataflow03-DdTzEDv9.js → Dataflow03-D9B0IMv1.js} +1 -1
- package/dist/client/assets/{FolderClosed-jb7WzUeW.js → FolderClosed-DtTyOuV-.js} +1 -1
- package/dist/client/assets/{Loading01-CrI0NwPE.js → Loading01-DTPGNGDe.js} +1 -1
- package/dist/client/assets/{Play-DSddPPya.js → Play-BSN624z4.js} +1 -1
- package/dist/client/assets/{Plus-ltkKoqJz.js → Plus-VNSvGQN9.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-DN-y3At7.js → RefreshCcw01-Dbe0-ztA.js} +1 -1
- package/dist/client/assets/{SearchMd-CS43V34Y.js → SearchMd-BVguqJPF.js} +1 -1
- package/dist/client/assets/{Settings01-ClJz1ULQ.js → Settings01-BKawEeOc.js} +1 -1
- package/dist/client/assets/{Trash01-fCw8HP0s.js → Trash01-p_-P7rrZ.js} +1 -1
- package/dist/client/assets/{Type01-Dp2k0by5.js → Type01-D1knZTdC.js} +1 -1
- package/dist/client/assets/{Upload01-3AVPYkeL.js → Upload01-D-cgBdXK.js} +1 -1
- package/dist/client/assets/{User01-CKoZ8ZDH.js → User01-C1Py8RLi.js} +1 -1
- package/dist/client/assets/{X-BNpME-HX.js → X-AnvD8fGN.js} +1 -1
- package/dist/client/assets/{XCircle-MpsZU5qt.js → XCircle-Of71XlDY.js} +1 -1
- package/dist/client/assets/{XClose-DKDxXEaA.js → XClose-CIHCEBuc.js} +1 -1
- package/dist/client/assets/{Zap-kD49gPEF.js → Zap-Cbf8Gxw3.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-DusvXNLB.js → agent-connections-preview-9beskZXW.js} +1 -1
- package/dist/client/assets/{agent-detail-B-PecVBx.js → agent-detail-CpQCW--v.js} +1 -1
- package/dist/client/assets/{agents-DTWgODy0.js → agents-C4-J6TQS.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-Bp_JBc4Z.js → ai-providers-logos-Du8KzWpH.js} +1 -1
- package/dist/client/assets/{alert-dialog-DPu-w5FH.js → alert-dialog-BIZOEctM.js} +1 -1
- package/dist/client/assets/{auth-catchall-CVoq5acq.js → auth-catchall-BjYN1-n9.js} +1 -1
- package/dist/client/assets/{automation-detail-BtlNzqYH.js → automation-detail-Ca2mfThk.js} +1 -1
- package/dist/client/assets/{automations-B9MMi9MY.js → automations-D_MLQzBu.js} +1 -1
- package/dist/client/assets/{avatar-DJ_eE6FL.js → avatar-BDzYYIB_.js} +1 -1
- package/dist/client/assets/{badge-Dg_rRuRo.js → badge-CintUB2m.js} +1 -1
- package/dist/client/assets/{breadcrumb-B3Pzyfpg.js → breadcrumb-CCT_gYCX.js} +1 -1
- package/dist/client/assets/{card-CQTuw0Xi.js → card-DiqqquYR.js} +1 -1
- package/dist/client/assets/{checkbox-pwwqVDt-.js → checkbox-B5yMaD1U.js} +1 -1
- package/dist/client/assets/{collapsible-BpfdSPbv.js → collapsible-CUnNCwaM.js} +1 -1
- package/dist/client/assets/{collection-detail-7hb0Mplz.js → collection-detail-DYyODume.js} +1 -1
- package/dist/client/assets/{collection-display-button-DgaN6ief.js → collection-display-button-6w4fqzbK.js} +1 -1
- package/dist/client/assets/{collection-search-BxbLLE-D.js → collection-search-R3szwhKc.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DhM52ivn.js → collection-table-wrapper-BYkH4l2b.js} +1 -1
- package/dist/client/assets/{collection-tabs-B87Atjwc.js → collection-tabs-CTpzw-QP.js} +1 -1
- package/dist/client/assets/{collections-pcWRi6G6.js → collections-Md0axhBZ.js} +1 -1
- package/dist/client/assets/{command-CIWQeRGP.js → command-oqXofzFf.js} +1 -1
- package/dist/client/assets/{connection-card-CM5AlZwH.js → connection-card-u3N2FMhV.js} +1 -1
- package/dist/client/assets/{connection-detail-O3fmkpqe.js → connection-detail-DkArP4xi.js} +1 -1
- package/dist/client/assets/{connections-BCkT2NPr.js → connections-DYEJw6-9.js} +1 -1
- package/dist/client/assets/constants-B4UGdbkn.js +1 -0
- package/dist/client/assets/{constants-B7D0VCWO.js → constants-Cf6w8uWj.js} +1 -1
- package/dist/client/assets/{context-IJmL4QO_.js → context-BNN0sjtQ.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-ixA2WoW7.js → create-organization-dialog-Dxw___Aq.js} +1 -1
- package/dist/client/assets/{create-project-dialog-B6n_03Ug.js → create-project-dialog-Db-cXCFP.js} +1 -1
- package/dist/client/assets/{danger-CYvp_RGb.js → danger-D0MixhKB.js} +1 -1
- package/dist/client/assets/{danger-zone-xpmW0-9o.js → danger-zone-DJu8uIZo.js} +1 -1
- package/dist/client/assets/{dependencies-C9e_dQDy.js → dependencies-DKpj5-z2.js} +1 -1
- package/dist/client/assets/{dialog-Ce95gXqs.js → dialog-B_ZBKGcK.js} +1 -1
- package/dist/client/assets/{drawer-ByM8CEL_.js → drawer-DxTGqDKY.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BT7g2ayh.js → dropdown-menu-BGBf4SQr.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-exCUjntN.js → dynamic-plugin-layout-BwaaiDL6.js} +1 -1
- package/dist/client/assets/{editable-task-title-wQy-5KA-.js → editable-task-title-mwJckul7.js} +1 -1
- package/dist/client/assets/{empty-state-8546_PpL.js → empty-state-5hCgVmoA.js} +1 -1
- package/dist/client/assets/{empty-state-CjwgvmoI.js → empty-state-Dt5CC_E7.js} +1 -1
- package/dist/client/assets/{env-vars-editor-Cn7u3DNm.js → env-vars-editor-CSLx760Y.js} +1 -1
- package/dist/client/assets/{extract-connection-data-OUAaU9Od.js → extract-connection-data-BdJfym5q.js} +1 -1
- package/dist/client/assets/{form-BxnLhCD_.js → form-BAfFoDTS.js} +1 -1
- package/dist/client/assets/{general-CnJT7yxb.js → general-ihPcNIOb.js} +1 -1
- package/dist/client/assets/{home-CVvG2Fqq.js → home-BSU9U8m-.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-Chrnp3Cw.js → import-from-deco-dialog-CxiHwpr_.js} +1 -1
- package/dist/client/assets/{index-DrtlaMfG.js → index-ALdwmNA1.js} +1 -1
- package/dist/client/assets/{index-C-wrel8E.js → index-BB9dnQ8g.js} +1 -1
- package/dist/client/assets/{index-CsLoKsqY.js → index-BUla3j6g.js} +1 -1
- package/dist/client/assets/{index-CMA-66KF.js → index-BclDkWx8.js} +1 -1
- package/dist/client/assets/{index-DNarCA5m.js → index-BlVIyhiN.js} +1 -1
- package/dist/client/assets/{index-DehDS4SM.js → index-CGKC8BVy.js} +1 -1
- package/dist/client/assets/{index-BcOdsrKl.js → index-CT7BYuwf.js} +1 -1
- package/dist/client/assets/{index-DXw26Swq.js → index-D2soXfaG.js} +1 -1
- package/dist/client/assets/{index-DAKvcNkQ.js → index-DzY5efun.js} +1 -1
- package/dist/client/assets/{index-3yf2NnlI.js → index-TzbVkru2.js} +1 -1
- package/dist/client/assets/{index-B62MiQAu.js → index-Y_g6-sbQ.js} +2 -2
- package/dist/client/assets/{infiniteQueryObserver-C4rkYsAc.js → infiniteQueryObserver-BvNG1QG_.js} +1 -1
- package/dist/client/assets/{input-BNSWRvAr.js → input-BJjZBSH8.js} +1 -1
- package/dist/client/assets/{integration-icon-BByVvYW2.js → integration-icon-7Bz6GmNv.js} +1 -1
- package/dist/client/assets/{label-C-5U7XF4.js → label-BagqgWUv.js} +1 -1
- package/dist/client/assets/{layout-CxMMzlDg.js → layout-BL6sB2DL.js} +1 -1
- package/dist/client/assets/{layout-DuIBVgOo.js → layout-BPbh2R4B.js} +1 -1
- package/dist/client/assets/{login-ayW5J8kp.js → login-DfPhQ0qS.js} +1 -1
- package/dist/client/assets/{logo-upload-Cnlppzw5.js → logo-upload-BlhGNrgV.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-C5hh7NUh.js → mcp-app-renderer-BSLoo8nT.js} +1 -1
- package/dist/client/assets/{mcp-server-card-3TrMzryK.js → mcp-server-card-DV_BN-gm.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-BHg2jU2j.js → mcp-server-detail-CZ_j8X5E.js} +2 -2
- package/dist/client/assets/{members-DR64AFBa.js → members-2b6Jtq6P.js} +1 -1
- package/dist/client/assets/{monaco-editor-0MGgMe6Z.js → monaco-editor-CzOYJf-q.js} +1 -1
- package/dist/client/assets/{monitoring-zjAHbr2Y.js → monitoring-B3bfHtHG.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-D0wDbirt.js → monitoring-dashboard-edit-BltMP3h3.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-Cye--xow.js → monitoring-dashboard-view-CwHqCHxn.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Br-gOcw_.js → monitoring-stats-row-DdkGoKLi.js} +1 -1
- package/dist/client/assets/{oauth-callback-C5qRKz1E.js → oauth-callback-Csht94Tu.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Belxh9YS.js → oauth-callback-ai-provider-4QVXXmM1.js} +1 -1
- package/dist/client/assets/{org-ai-providers-vLOcM2IN.js → org-ai-providers-Udjn3QRR.js} +1 -1
- package/dist/client/assets/{page-Bk-6gYjF.js → page-Bu3owRsU.js} +1 -1
- package/dist/client/assets/{page-D9taTz3x.js → page-CZ2WRv_I.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DwTx3Irb.js → plugin-empty-state-2Yos5GOU.js} +1 -1
- package/dist/client/assets/{plugin-header-_SJ-AMks.js → plugin-header-CqAMfljl.js} +1 -1
- package/dist/client/assets/plugins-CCu6p4dx.js +1 -0
- package/dist/client/assets/{popover-CW4G5neq.js → popover-lD-HtMf4.js} +1 -1
- package/dist/client/assets/{project-app-view-Cxge46GP.js → project-app-view-BuPOn3s0.js} +1 -1
- package/dist/client/assets/{project-layout-CszLr05H.js → project-layout-u1PVsl6x.js} +1 -1
- package/dist/client/assets/{project-plugins-CB_lBTqe.js → project-plugins-CIRGXDFY.js} +1 -1
- package/dist/client/assets/{projects-list-BAFLJ8Ur.js → projects-list-BcL7c7DQ.js} +1 -1
- package/dist/client/assets/{registry-layout-BFPpF2ab.js → registry-layout-j-JX07UN.js} +1 -1
- package/dist/client/assets/{registry-utils-DWGplsmC.js → registry-utils-DDsRF62n.js} +1 -1
- package/dist/client/assets/{reset-password-D2kT9zWB.js → reset-password-CHFMULJN.js} +1 -1
- package/dist/client/assets/{resizable-DFwU4W6w.js → resizable-CTPIKv4j.js} +1 -1
- package/dist/client/assets/{save-actions-CmbT6lbz.js → save-actions-xo9lGU3J.js} +1 -1
- package/dist/client/assets/{scroll-area-DEb4D9kS.js → scroll-area-Dvs0ghbP.js} +1 -1
- package/dist/client/assets/{select-BY6esNmT.js → select-9VPJVrM5.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-C6Eik732.js → select-virtual-mcp-B6M52JVi.js} +1 -1
- package/dist/client/assets/{shell-layout-BPQbdNig.js → shell-layout-DO1T7Kx6.js} +2 -2
- package/dist/client/assets/{sidebar-settings-LoxM-jfH.js → sidebar-settings-CZn76McG.js} +1 -1
- package/dist/client/assets/{skeleton-H6tvOoEj.js → skeleton-DPPFiXsR.js} +1 -1
- package/dist/client/assets/{spinner-X15c9Qjw.js → spinner-DRNxYthF.js} +1 -1
- package/dist/client/assets/{store-invite-CbJMqLqm.js → store-invite-CrG3z_Nw.js} +1 -1
- package/dist/client/assets/{switch-1W8o5vam.js → switch-BHSO5vl3.js} +1 -1
- package/dist/client/assets/{table-oKRuJlES.js → table-CvtSPXA4.js} +1 -1
- package/dist/client/assets/{tabs-wloAa-G_.js → tabs-CdWME6KE.js} +1 -1
- package/dist/client/assets/{task-status-DtA3vCfp.js → task-status-DFJ-29wD.js} +1 -1
- package/dist/client/assets/tasks-BlhTZX1-.js +1 -0
- package/dist/client/assets/{tasks-panel-CfTCpIaN.js → tasks-panel-BRc3ZfGK.js} +1 -1
- package/dist/client/assets/{textarea-Db5eGrte.js → textarea-Dtfhz_OA.js} +1 -1
- package/dist/client/assets/{time-range-picker-kvCom5E0.js → time-range-picker-DcKa3AFf.js} +1 -1
- package/dist/client/assets/{toggle-group-nuX--X8U.js → toggle-group-iephCdnh.js} +1 -1
- package/dist/client/assets/{tools-list-CzNHOfxQ.js → tools-list-CDbT-l23.js} +1 -1
- package/dist/client/assets/{tooltip-Cz2tQy7f.js → tooltip-Cem552VW.js} +1 -1
- package/dist/client/assets/{types-B85FeN8J.js → types-DmDUXWAD.js} +1 -1
- package/dist/client/assets/{use-automations-Bmzs_h6Z.js → use-automations-DSFrBv_6.js} +1 -1
- package/dist/client/assets/{use-collections-Cw-CkhM5.js → use-collections-D0k_QRc1.js} +1 -1
- package/dist/client/assets/{use-connection-u5F7YTDM.js → use-connection-CP_xYk4Q.js} +1 -1
- package/dist/client/assets/{use-copy-DXoYLkGY.js → use-copy-d-3iM6J5.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B6BY4hNy.js → use-create-virtual-mcp-Dl6pqwaW.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BCAoqpbu.js → use-infinite-scroll-DtHbnYey.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-Bh4CcElp.js → use-install-from-registry-DZlZY82P.js} +1 -1
- package/dist/client/assets/{use-list-state-J17yqbOy.js → use-list-state-DlUAsHMe.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-C4rv2YNo.js → use-mcp-prompts-8NM9rwku.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-C2RRZo8d.js → use-mcp-resources-CHuUMbyT.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CS9dH9Hk.js → use-mcp-tools-BhKK8D6X.js} +1 -1
- package/dist/client/assets/{use-members-L6twvwj_.js → use-members-dsS5L-Vf.js} +1 -1
- package/dist/client/assets/{use-project-DmzlV8IR.js → use-project-3rL77wj_.js} +1 -1
- package/dist/client/assets/{use-store-discovery-B_zVCnQi.js → use-store-discovery-CbIFZaKF.js} +1 -1
- package/dist/client/assets/{use-view-mode-DDZQlalb.js → use-view-mode-CUtH8BDh.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BQ1ML2v_.js → use-virtual-mcp-tHRSpblC.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CjAl-HeV.js +1 -0
- package/dist/client/assets/{useMutation-5tF0rOhi.js → useMutation-09-2Qwl6.js} +1 -1
- package/dist/client/assets/useQuery-DKMHT49Q.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DZTp9qX4.js +1 -0
- package/dist/client/assets/{user-Wn7CHNY8.js → user-BOuwXTIR.js} +1 -1
- package/dist/client/assets/{workflow-DGOWYrJv.js → workflow-BXPIrAUA.js} +1 -1
- package/dist/client/assets/{workflow-CehUk0kO.js → workflow-D4GNw4Q9.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +7 -9
- package/dist/server/node_modules/{xtend → pg}/LICENSE +7 -6
- package/dist/server/node_modules/pg/README.md +95 -0
- package/dist/server/node_modules/pg/esm/index.mjs +20 -0
- package/dist/server/node_modules/pg/lib/client.js +743 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
- package/dist/server/node_modules/pg/lib/connection.js +221 -0
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +91 -0
- package/dist/server/node_modules/pg/lib/index.js +73 -0
- package/dist/server/node_modules/pg/lib/native/client.js +323 -0
- package/dist/server/node_modules/pg/lib/native/index.js +2 -0
- package/dist/server/node_modules/pg/lib/native/query.js +165 -0
- package/dist/server/node_modules/pg/lib/query.js +252 -0
- package/dist/server/node_modules/pg/lib/result.js +109 -0
- package/dist/server/node_modules/pg/lib/stream.js +83 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +217 -0
- package/dist/server/node_modules/pg/package.json +76 -0
- package/package.json +1 -1
- package/dist/client/assets/constants-B_S2_Dfe.js +0 -1
- package/dist/client/assets/plugins-_-cF0kV-.js +0 -1
- package/dist/client/assets/tasks-DYQdfmG5.js +0 -1
- package/dist/client/assets/useInfiniteQuery-D_7z7Ekt.js +0 -1
- package/dist/client/assets/useQuery-Cr3Ibn6v.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-UikfpG9C.js +0 -1
- package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
- package/dist/server/node_modules/ansi-styles/index.js +0 -223
- package/dist/server/node_modules/ansi-styles/license +0 -9
- package/dist/server/node_modules/ansi-styles/package.json +0 -54
- package/dist/server/node_modules/ansi-styles/readme.md +0 -173
- 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/license +0 -9
- 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-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/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
# ansi-styles
|
|
2
|
-
|
|
3
|
-
> [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
|
|
4
|
-
|
|
5
|
-
You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
|
|
6
|
-
|
|
7
|
-

|
|
8
|
-
|
|
9
|
-
## Install
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
npm install ansi-styles
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
import styles from 'ansi-styles';
|
|
19
|
-
|
|
20
|
-
console.log(`${styles.green.open}Hello world!${styles.green.close}`);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// Color conversion between 256/truecolor
|
|
24
|
-
// NOTE: When converting from truecolor to 256 colors, the original color
|
|
25
|
-
// may be degraded to fit the new color palette. This means terminals
|
|
26
|
-
// that do not support 16 million colors will best-match the
|
|
27
|
-
// original color.
|
|
28
|
-
console.log(`${styles.color.ansi(styles.rgbToAnsi(199, 20, 250))}Hello World${styles.color.close}`)
|
|
29
|
-
console.log(`${styles.color.ansi256(styles.rgbToAnsi256(199, 20, 250))}Hello World${styles.color.close}`)
|
|
30
|
-
console.log(`${styles.color.ansi16m(...styles.hexToRgb('#abcdef'))}Hello World${styles.color.close}`)
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## API
|
|
34
|
-
|
|
35
|
-
### `open` and `close`
|
|
36
|
-
|
|
37
|
-
Each style has an `open` and `close` property.
|
|
38
|
-
|
|
39
|
-
### `modifierNames`, `foregroundColorNames`, `backgroundColorNames`, and `colorNames`
|
|
40
|
-
|
|
41
|
-
All supported style strings are exposed as an array of strings for convenience. `colorNames` is the combination of `foregroundColorNames` and `backgroundColorNames`.
|
|
42
|
-
|
|
43
|
-
This can be useful if you need to validate input:
|
|
44
|
-
|
|
45
|
-
```js
|
|
46
|
-
import {modifierNames, foregroundColorNames} from 'ansi-styles';
|
|
47
|
-
|
|
48
|
-
console.log(modifierNames.includes('bold'));
|
|
49
|
-
//=> true
|
|
50
|
-
|
|
51
|
-
console.log(foregroundColorNames.includes('pink'));
|
|
52
|
-
//=> false
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Styles
|
|
56
|
-
|
|
57
|
-
### Modifiers
|
|
58
|
-
|
|
59
|
-
- `reset`
|
|
60
|
-
- `bold`
|
|
61
|
-
- `dim`
|
|
62
|
-
- `italic` *(Not widely supported)*
|
|
63
|
-
- `underline`
|
|
64
|
-
- `overline` *Supported on VTE-based terminals, the GNOME terminal, mintty, and Git Bash.*
|
|
65
|
-
- `inverse`
|
|
66
|
-
- `hidden`
|
|
67
|
-
- `strikethrough` *(Not widely supported)*
|
|
68
|
-
|
|
69
|
-
### Colors
|
|
70
|
-
|
|
71
|
-
- `black`
|
|
72
|
-
- `red`
|
|
73
|
-
- `green`
|
|
74
|
-
- `yellow`
|
|
75
|
-
- `blue`
|
|
76
|
-
- `magenta`
|
|
77
|
-
- `cyan`
|
|
78
|
-
- `white`
|
|
79
|
-
- `blackBright` (alias: `gray`, `grey`)
|
|
80
|
-
- `redBright`
|
|
81
|
-
- `greenBright`
|
|
82
|
-
- `yellowBright`
|
|
83
|
-
- `blueBright`
|
|
84
|
-
- `magentaBright`
|
|
85
|
-
- `cyanBright`
|
|
86
|
-
- `whiteBright`
|
|
87
|
-
|
|
88
|
-
### Background colors
|
|
89
|
-
|
|
90
|
-
- `bgBlack`
|
|
91
|
-
- `bgRed`
|
|
92
|
-
- `bgGreen`
|
|
93
|
-
- `bgYellow`
|
|
94
|
-
- `bgBlue`
|
|
95
|
-
- `bgMagenta`
|
|
96
|
-
- `bgCyan`
|
|
97
|
-
- `bgWhite`
|
|
98
|
-
- `bgBlackBright` (alias: `bgGray`, `bgGrey`)
|
|
99
|
-
- `bgRedBright`
|
|
100
|
-
- `bgGreenBright`
|
|
101
|
-
- `bgYellowBright`
|
|
102
|
-
- `bgBlueBright`
|
|
103
|
-
- `bgMagentaBright`
|
|
104
|
-
- `bgCyanBright`
|
|
105
|
-
- `bgWhiteBright`
|
|
106
|
-
|
|
107
|
-
## Advanced usage
|
|
108
|
-
|
|
109
|
-
By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
|
|
110
|
-
|
|
111
|
-
- `styles.modifier`
|
|
112
|
-
- `styles.color`
|
|
113
|
-
- `styles.bgColor`
|
|
114
|
-
|
|
115
|
-
###### Example
|
|
116
|
-
|
|
117
|
-
```js
|
|
118
|
-
import styles from 'ansi-styles';
|
|
119
|
-
|
|
120
|
-
console.log(styles.color.green.open);
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `styles.codes`, which returns a `Map` with the open codes as keys and close codes as values.
|
|
124
|
-
|
|
125
|
-
###### Example
|
|
126
|
-
|
|
127
|
-
```js
|
|
128
|
-
import styles from 'ansi-styles';
|
|
129
|
-
|
|
130
|
-
console.log(styles.codes.get(36));
|
|
131
|
-
//=> 39
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
## 16 / 256 / 16 million (TrueColor) support
|
|
135
|
-
|
|
136
|
-
`ansi-styles` allows converting between various color formats and ANSI escapes, with support for 16, 256 and [16 million colors](https://gist.github.com/XVilka/8346728).
|
|
137
|
-
|
|
138
|
-
The following color spaces are supported:
|
|
139
|
-
|
|
140
|
-
- `rgb`
|
|
141
|
-
- `hex`
|
|
142
|
-
- `ansi256`
|
|
143
|
-
- `ansi`
|
|
144
|
-
|
|
145
|
-
To use these, call the associated conversion function with the intended output, for example:
|
|
146
|
-
|
|
147
|
-
```js
|
|
148
|
-
import styles from 'ansi-styles';
|
|
149
|
-
|
|
150
|
-
styles.color.ansi(styles.rgbToAnsi(100, 200, 15)); // RGB to 16 color ansi foreground code
|
|
151
|
-
styles.bgColor.ansi(styles.hexToAnsi('#C0FFEE')); // HEX to 16 color ansi foreground code
|
|
152
|
-
|
|
153
|
-
styles.color.ansi256(styles.rgbToAnsi256(100, 200, 15)); // RGB to 256 color ansi foreground code
|
|
154
|
-
styles.bgColor.ansi256(styles.hexToAnsi256('#C0FFEE')); // HEX to 256 color ansi foreground code
|
|
155
|
-
|
|
156
|
-
styles.color.ansi16m(100, 200, 15); // RGB to 16 million color foreground code
|
|
157
|
-
styles.bgColor.ansi16m(...styles.hexToRgb('#C0FFEE')); // Hex (RGB) to 16 million color foreground code
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
## Related
|
|
161
|
-
|
|
162
|
-
- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal
|
|
163
|
-
|
|
164
|
-
## Maintainers
|
|
165
|
-
|
|
166
|
-
- [Sindre Sorhus](https://github.com/sindresorhus)
|
|
167
|
-
- [Josh Junon](https://github.com/qix-)
|
|
168
|
-
|
|
169
|
-
## For enterprise
|
|
170
|
-
|
|
171
|
-
Available as part of the Tidelift Subscription.
|
|
172
|
-
|
|
173
|
-
The maintainers of `ansi-styles` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-ansi-styles?utm_source=npm-ansi-styles&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
|
@@ -1,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,9 +0,0 @@
|
|
|
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.
|
|
@@ -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,20 +0,0 @@
|
|
|
1
|
-
declare namespace PostgresInterval {
|
|
2
|
-
export interface IPostgresInterval {
|
|
3
|
-
years?: number;
|
|
4
|
-
months?: number;
|
|
5
|
-
days?: number;
|
|
6
|
-
hours?: number;
|
|
7
|
-
minutes?: number;
|
|
8
|
-
seconds?: number;
|
|
9
|
-
milliseconds?: number;
|
|
10
|
-
|
|
11
|
-
toPostgres(): string;
|
|
12
|
-
|
|
13
|
-
toISO(): string;
|
|
14
|
-
toISOString(): string;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
declare function PostgresInterval(raw: string): PostgresInterval.IPostgresInterval;
|
|
19
|
-
|
|
20
|
-
export = PostgresInterval;
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
var extend = require('xtend/mutable')
|
|
4
|
-
|
|
5
|
-
module.exports = PostgresInterval
|
|
6
|
-
|
|
7
|
-
function PostgresInterval (raw) {
|
|
8
|
-
if (!(this instanceof PostgresInterval)) {
|
|
9
|
-
return new PostgresInterval(raw)
|
|
10
|
-
}
|
|
11
|
-
extend(this, parse(raw))
|
|
12
|
-
}
|
|
13
|
-
var properties = ['seconds', 'minutes', 'hours', 'days', 'months', 'years']
|
|
14
|
-
PostgresInterval.prototype.toPostgres = function () {
|
|
15
|
-
var filtered = properties.filter(this.hasOwnProperty, this)
|
|
16
|
-
|
|
17
|
-
// In addition to `properties`, we need to account for fractions of seconds.
|
|
18
|
-
if (this.milliseconds && filtered.indexOf('seconds') < 0) {
|
|
19
|
-
filtered.push('seconds')
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (filtered.length === 0) return '0'
|
|
23
|
-
return filtered
|
|
24
|
-
.map(function (property) {
|
|
25
|
-
var value = this[property] || 0
|
|
26
|
-
|
|
27
|
-
// Account for fractional part of seconds,
|
|
28
|
-
// remove trailing zeroes.
|
|
29
|
-
if (property === 'seconds' && this.milliseconds) {
|
|
30
|
-
value = (value + this.milliseconds / 1000).toFixed(6).replace(/\.?0+$/, '')
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return value + ' ' + property
|
|
34
|
-
}, this)
|
|
35
|
-
.join(' ')
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
var propertiesISOEquivalent = {
|
|
39
|
-
years: 'Y',
|
|
40
|
-
months: 'M',
|
|
41
|
-
days: 'D',
|
|
42
|
-
hours: 'H',
|
|
43
|
-
minutes: 'M',
|
|
44
|
-
seconds: 'S'
|
|
45
|
-
}
|
|
46
|
-
var dateProperties = ['years', 'months', 'days']
|
|
47
|
-
var timeProperties = ['hours', 'minutes', 'seconds']
|
|
48
|
-
// according to ISO 8601
|
|
49
|
-
PostgresInterval.prototype.toISOString = PostgresInterval.prototype.toISO = function () {
|
|
50
|
-
var datePart = dateProperties
|
|
51
|
-
.map(buildProperty, this)
|
|
52
|
-
.join('')
|
|
53
|
-
|
|
54
|
-
var timePart = timeProperties
|
|
55
|
-
.map(buildProperty, this)
|
|
56
|
-
.join('')
|
|
57
|
-
|
|
58
|
-
return 'P' + datePart + 'T' + timePart
|
|
59
|
-
|
|
60
|
-
function buildProperty (property) {
|
|
61
|
-
var value = this[property] || 0
|
|
62
|
-
|
|
63
|
-
// Account for fractional part of seconds,
|
|
64
|
-
// remove trailing zeroes.
|
|
65
|
-
if (property === 'seconds' && this.milliseconds) {
|
|
66
|
-
value = (value + this.milliseconds / 1000).toFixed(6).replace(/0+$/, '')
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return value + propertiesISOEquivalent[property]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
var NUMBER = '([+-]?\\d+)'
|
|
74
|
-
var YEAR = NUMBER + '\\s+years?'
|
|
75
|
-
var MONTH = NUMBER + '\\s+mons?'
|
|
76
|
-
var DAY = NUMBER + '\\s+days?'
|
|
77
|
-
var TIME = '([+-])?([\\d]*):(\\d\\d):(\\d\\d)\\.?(\\d{1,6})?'
|
|
78
|
-
var INTERVAL = new RegExp([YEAR, MONTH, DAY, TIME].map(function (regexString) {
|
|
79
|
-
return '(' + regexString + ')?'
|
|
80
|
-
})
|
|
81
|
-
.join('\\s*'))
|
|
82
|
-
|
|
83
|
-
// Positions of values in regex match
|
|
84
|
-
var positions = {
|
|
85
|
-
years: 2,
|
|
86
|
-
months: 4,
|
|
87
|
-
days: 6,
|
|
88
|
-
hours: 9,
|
|
89
|
-
minutes: 10,
|
|
90
|
-
seconds: 11,
|
|
91
|
-
milliseconds: 12
|
|
92
|
-
}
|
|
93
|
-
// We can use negative time
|
|
94
|
-
var negatives = ['hours', 'minutes', 'seconds', 'milliseconds']
|
|
95
|
-
|
|
96
|
-
function parseMilliseconds (fraction) {
|
|
97
|
-
// add omitted zeroes
|
|
98
|
-
var microseconds = fraction + '000000'.slice(fraction.length)
|
|
99
|
-
return parseInt(microseconds, 10) / 1000
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function parse (interval) {
|
|
103
|
-
if (!interval) return {}
|
|
104
|
-
var matches = INTERVAL.exec(interval)
|
|
105
|
-
var isNegative = matches[8] === '-'
|
|
106
|
-
return Object.keys(positions)
|
|
107
|
-
.reduce(function (parsed, property) {
|
|
108
|
-
var position = positions[property]
|
|
109
|
-
var value = matches[position]
|
|
110
|
-
// no empty string
|
|
111
|
-
if (!value) return parsed
|
|
112
|
-
// milliseconds are actually microseconds (up to 6 digits)
|
|
113
|
-
// with omitted trailing zeroes.
|
|
114
|
-
value = property === 'milliseconds'
|
|
115
|
-
? parseMilliseconds(value)
|
|
116
|
-
: parseInt(value, 10)
|
|
117
|
-
// no zeros
|
|
118
|
-
if (!value) return parsed
|
|
119
|
-
if (isNegative && ~negatives.indexOf(property)) {
|
|
120
|
-
value *= -1
|
|
121
|
-
}
|
|
122
|
-
parsed[property] = value
|
|
123
|
-
return parsed
|
|
124
|
-
}, {})
|
|
125
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "postgres-interval",
|
|
3
|
-
"main": "index.js",
|
|
4
|
-
"version": "1.2.0",
|
|
5
|
-
"description": "Parse Postgres interval columns",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "bendrucker/postgres-interval",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Ben Drucker",
|
|
10
|
-
"email": "bvdrucker@gmail.com",
|
|
11
|
-
"url": "bendrucker.me"
|
|
12
|
-
},
|
|
13
|
-
"engines": {
|
|
14
|
-
"node": ">=0.10.0"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "standard && tape test.js"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [
|
|
20
|
-
"postgres",
|
|
21
|
-
"interval",
|
|
22
|
-
"parser"
|
|
23
|
-
],
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"xtend": "^4.0.0"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"tape": "^4.0.0",
|
|
29
|
-
"standard": "^12.0.1"
|
|
30
|
-
},
|
|
31
|
-
"files": [
|
|
32
|
-
"index.js",
|
|
33
|
-
"index.d.ts",
|
|
34
|
-
"readme.md"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# postgres-interval [](https://travis-ci.org/bendrucker/postgres-interval) [](https://greenkeeper.io/)
|
|
2
|
-
|
|
3
|
-
> Parse Postgres interval columns
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
$ npm install --save postgres-interval
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
var parse = require('postgres-interval')
|
|
17
|
-
var interval = parse('01:02:03')
|
|
18
|
-
//=> {hours: 1, minutes: 2, seconds: 3}
|
|
19
|
-
interval.toPostgres()
|
|
20
|
-
// 3 seconds 2 minutes 1 hours
|
|
21
|
-
interval.toISO()
|
|
22
|
-
// P0Y0M0DT1H2M3S
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## API
|
|
26
|
-
|
|
27
|
-
#### `parse(pgInterval)` -> `interval`
|
|
28
|
-
|
|
29
|
-
##### pgInterval
|
|
30
|
-
|
|
31
|
-
*Required*
|
|
32
|
-
Type: `string`
|
|
33
|
-
|
|
34
|
-
A Postgres interval string.
|
|
35
|
-
|
|
36
|
-
#### `interval.toPostgres()` -> `string`
|
|
37
|
-
|
|
38
|
-
Returns an interval string. This allows the interval object to be passed into prepared statements.
|
|
39
|
-
|
|
40
|
-
#### `interval.toISOString()` -> `string`
|
|
41
|
-
|
|
42
|
-
Returns an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) compliant string.
|
|
43
|
-
|
|
44
|
-
Also available as `interval.toISO()` for backwards compatibility.
|
|
45
|
-
|
|
46
|
-
## License
|
|
47
|
-
|
|
48
|
-
MIT © [Ben Drucker](http://bendrucker.me)
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"maxdepth": 4,
|
|
3
|
-
"maxstatements": 200,
|
|
4
|
-
"maxcomplexity": 12,
|
|
5
|
-
"maxlen": 80,
|
|
6
|
-
"maxparams": 5,
|
|
7
|
-
|
|
8
|
-
"curly": true,
|
|
9
|
-
"eqeqeq": true,
|
|
10
|
-
"immed": true,
|
|
11
|
-
"latedef": false,
|
|
12
|
-
"noarg": true,
|
|
13
|
-
"noempty": true,
|
|
14
|
-
"nonew": true,
|
|
15
|
-
"undef": true,
|
|
16
|
-
"unused": "vars",
|
|
17
|
-
"trailing": true,
|
|
18
|
-
|
|
19
|
-
"quotmark": true,
|
|
20
|
-
"expr": true,
|
|
21
|
-
"asi": true,
|
|
22
|
-
|
|
23
|
-
"browser": false,
|
|
24
|
-
"esnext": true,
|
|
25
|
-
"devel": false,
|
|
26
|
-
"node": false,
|
|
27
|
-
"nonstandard": false,
|
|
28
|
-
|
|
29
|
-
"predef": ["require", "module", "__dirname", "__filename"]
|
|
30
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# xtend
|
|
2
|
-
|
|
3
|
-
[![browser support][3]][4]
|
|
4
|
-
|
|
5
|
-
[](http://github.com/badges/stability-badges)
|
|
6
|
-
|
|
7
|
-
Extend like a boss
|
|
8
|
-
|
|
9
|
-
xtend is a basic utility library which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.
|
|
10
|
-
|
|
11
|
-
## Examples
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
var extend = require("xtend")
|
|
15
|
-
|
|
16
|
-
// extend returns a new object. Does not mutate arguments
|
|
17
|
-
var combination = extend({
|
|
18
|
-
a: "a",
|
|
19
|
-
b: "c"
|
|
20
|
-
}, {
|
|
21
|
-
b: "b"
|
|
22
|
-
})
|
|
23
|
-
// { a: "a", b: "b" }
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Stability status: Locked
|
|
27
|
-
|
|
28
|
-
## MIT Licensed
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[3]: http://ci.testling.com/Raynos/xtend.png
|
|
32
|
-
[4]: http://ci.testling.com/Raynos/xtend
|