decocms 2.282.1 → 2.282.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.
Files changed (162) hide show
  1. package/dist/client/assets/{AlertCircle-CJ_7BsPP.js → AlertCircle-i753hIUr.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-DtS9FYAN.js → ArrowNarrowLeft-DyneV8jh.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-smRbUGaN.js → CheckCircle-BDNIuV_g.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-xWqM1qJV.js → ChevronDown-vRDN8zoj.js} +1 -1
  5. package/dist/client/assets/{ChevronRight-BCgvkwtC.js → ChevronRight-P2x5wJJp.js} +1 -1
  6. package/dist/client/assets/{ChevronUp-CrL9TH1K.js → ChevronUp-Dg737K7F.js} +1 -1
  7. package/dist/client/assets/{Container-B7M87Wz6.js → Container-DsC3rtEa.js} +1 -1
  8. package/dist/client/assets/{LinkExternal01-DLKyZWWz.js → LinkExternal01-Cw9xV77y.js} +1 -1
  9. package/dist/client/assets/{Lock01-bZF1KUvq.js → Lock01-B4C5ICSW.js} +1 -1
  10. package/dist/client/assets/{Palette-Dl7lzquw.js → Palette-CxbsG8jb.js} +1 -1
  11. package/dist/client/assets/{Play-DtJ0cxBf.js → Play-F_qMNNeX.js} +1 -1
  12. package/dist/client/assets/{Plus-IUiAby9e.js → Plus-BM77-3yZ.js} +1 -1
  13. package/dist/client/assets/{SearchMd-A2WzjBhy.js → SearchMd-BQ703EvX.js} +1 -1
  14. package/dist/client/assets/{Settings02-uCCFk89X.js → Settings02-CZ-RzoRL.js} +1 -1
  15. package/dist/client/assets/{Star01-07LmVEi1.js → Star01-D8uixfU7.js} +1 -1
  16. package/dist/client/assets/{Sun-NZLaiUcL.js → Sun-Dzvpwc78.js} +1 -1
  17. package/dist/client/assets/{Tool01-1Tm6sx2D.js → Tool01-DV6LLMyv.js} +1 -1
  18. package/dist/client/assets/{Trash01-2of3D7QX.js → Trash01-DeQUJecj.js} +1 -1
  19. package/dist/client/assets/{Upload01-BPC1olzj.js → Upload01-C7vhn2fS.js} +1 -1
  20. package/dist/client/assets/{User01-Dj2-no-V.js → User01-CFTuPOYw.js} +1 -1
  21. package/dist/client/assets/{Users03-B_ZFhEj7.js → Users03-AWMGi4Xo.js} +1 -1
  22. package/dist/client/assets/{X-BXQFKahF.js → X-B19qdsWt.js} +1 -1
  23. package/dist/client/assets/{XCircle-ByksmUze.js → XCircle-Cu_m9KsD.js} +1 -1
  24. package/dist/client/assets/{Zap-Ct-Bt-7a.js → Zap-kmaaq3eG.js} +1 -1
  25. package/dist/client/assets/{ZapSquare-CLlEU1BK.js → ZapSquare-Bzu6OwXc.js} +1 -1
  26. package/dist/client/assets/{accordion-CBx4kF0A.js → accordion-Bcqp7xWC.js} +1 -1
  27. package/dist/client/assets/{agent-icon-uOxmWZzX.js → agent-icon-FJlZxNBT.js} +1 -1
  28. package/dist/client/assets/{agents-list-c4HvLnHM.js → agents-list-BzpReqDX.js} +1 -1
  29. package/dist/client/assets/ai-providers-BxK1xIaH.js +1 -0
  30. package/dist/client/assets/{alert-dialog-P8pjafE2.js → alert-dialog-BJ0hwa2l.js} +1 -1
  31. package/dist/client/assets/{auth-catchall-8f9iLpUP.js → auth-catchall-CGjZNqai.js} +1 -1
  32. package/dist/client/assets/{automation-list-row-BDBawYyn.js → automation-list-row-GPd6_cjS.js} +1 -1
  33. package/dist/client/assets/{automations-C_zdEQX8.js → automations-CXyF6Wr3.js} +1 -1
  34. package/dist/client/assets/{avatar-F9o71OJ0.js → avatar-BeRTzZHX.js} +1 -1
  35. package/dist/client/assets/{badge-D2Q0fk8p.js → badge-OuHAk68F.js} +1 -1
  36. package/dist/client/assets/{brand-context-CW58R34a.js → brand-context-CAuLcp_u.js} +1 -1
  37. package/dist/client/assets/{card-fcmwdw-g.js → card-64W2yOQo.js} +1 -1
  38. package/dist/client/assets/{chat-context-CXS-qe2G.js → chat-context-BQqGEJhg.js} +1 -1
  39. package/dist/client/assets/{checkbox-CqcJoypg.js → checkbox-Cx3RPx8a.js} +1 -1
  40. package/dist/client/assets/{collection-detail-DhZtELgd.js → collection-detail-ztCad3qg.js} +1 -1
  41. package/dist/client/assets/{collection-display-button-CgNICB5x.js → collection-display-button-CLTxoM3d.js} +1 -1
  42. package/dist/client/assets/{collection-search-BhW0WppR.js → collection-search-CcNzJi6D.js} +1 -1
  43. package/dist/client/assets/{collection-table-wrapper-rCxyye9m.js → collection-table-wrapper-BzqYYOAP.js} +1 -1
  44. package/dist/client/assets/{collection-tabs-CCiykiFm.js → collection-tabs-DD0Qt8TU.js} +1 -1
  45. package/dist/client/assets/{collections-C5k4gitm.js → collections-BpO3SJDN.js} +1 -1
  46. package/dist/client/assets/{command-Bap7RtnO.js → command-rQqgIdbd.js} +1 -1
  47. package/dist/client/assets/{connection-card-CAIl5zuH.js → connection-card-DKlghzN6.js} +1 -1
  48. package/dist/client/assets/{connection-detail-C-murm81.js → connection-detail-nptsFfMw.js} +1 -1
  49. package/dist/client/assets/{connection-form-helpers-Kb2X2zWy.js → connection-form-helpers-ByqGzB7q.js} +1 -1
  50. package/dist/client/assets/{connections-BUYyasfH.js → connections-CAWxy7P8.js} +1 -1
  51. package/dist/client/assets/{constants-Cz3vSCG9.js → constants-CN6Il9QM.js} +1 -1
  52. package/dist/client/assets/{constants-BYqEB04Y.js → constants-DBlKftLg.js} +1 -1
  53. package/dist/client/assets/{dialog-BEtDzaNY.js → dialog-BG20y4ti.js} +1 -1
  54. package/dist/client/assets/{drawer-BXhHhfPv.js → drawer-Gt9dvwHd.js} +1 -1
  55. package/dist/client/assets/{dropdown-menu-CPrJeiSb.js → dropdown-menu-D_gbsFgj.js} +1 -1
  56. package/dist/client/assets/{dynamic-plugin-layout-B3frXkTC.js → dynamic-plugin-layout-DUhVE3zr.js} +1 -1
  57. package/dist/client/assets/{empty-state-D17b8ueP.js → empty-state-B4p5HAyS.js} +1 -1
  58. package/dist/client/assets/{empty-state-QyaCdfZt.js → empty-state-YlXuIlyl.js} +1 -1
  59. package/dist/client/assets/{extract-connection-data-Df_ti4Xy.js → extract-connection-data-BkUkPjk1.js} +1 -1
  60. package/dist/client/assets/{features-DpwKJvfV.js → features-ZB9YPD6T.js} +1 -1
  61. package/dist/client/assets/{form-CyOS6D3q.js → form-DVLM8o8l.js} +1 -1
  62. package/dist/client/assets/{general-BXFZtoDZ.js → general-BSRTvN4z.js} +1 -1
  63. package/dist/client/assets/{index-C6iu8syV.js → index-B3NgIo6R.js} +1 -1
  64. package/dist/client/assets/{index-CpMJ05u5.js → index-B9tg__2J.js} +1 -1
  65. package/dist/client/assets/{index-C27Pbex0.js → index-BR4Tv9I4.js} +2 -2
  66. package/dist/client/assets/{index-DYJpZ_hI.js → index-BZ-_pOxX.js} +1 -1
  67. package/dist/client/assets/{index-FD-g03rr.js → index-B_9MykSP.js} +1 -1
  68. package/dist/client/assets/{index-B6nAXVWE.js → index-BejE17RG.js} +1 -1
  69. package/dist/client/assets/{index-D2u00J0R.js → index-Bpfr1gkL.js} +5 -5
  70. package/dist/client/assets/{index-DsXJm4s8.js → index-BxuUqWWJ.js} +1 -1
  71. package/dist/client/assets/{index-tiUiHjMI.js → index-CvjwIR23.js} +1 -1
  72. package/dist/client/assets/{index-CjRdG1Vp.js → index-DWgdGM2y.js} +1 -1
  73. package/dist/client/assets/{infiniteQueryObserver-Bm_4nXxh.js → infiniteQueryObserver-DjdUCzEf.js} +1 -1
  74. package/dist/client/assets/{input-BMDCCsVs.js → input-C6wlfqbz.js} +1 -1
  75. package/dist/client/assets/{integration-icon-gIhUX9GC.js → integration-icon-EHHTVGeJ.js} +1 -1
  76. package/dist/client/assets/{label-2vBVhIzi.js → label-CMuBjs0l.js} +1 -1
  77. package/dist/client/assets/{layout-BU5OyVXS.js → layout-BvulCiLM.js} +1 -1
  78. package/dist/client/assets/{lean-canvas-recruit-modal-BpJpmMV7.js → lean-canvas-recruit-modal-D54L-ueX.js} +1 -1
  79. package/dist/client/assets/{login-mUATXvn9.js → login-VLvQus3r.js} +1 -1
  80. package/dist/client/assets/{members-CEd1LJk0.js → members-Tmd-6nti.js} +1 -1
  81. package/dist/client/assets/{monaco-editor-BnguFt9B.js → monaco-editor-BIIx6Osu.js} +1 -1
  82. package/dist/client/assets/{monitoring-stats-row-DRhzCagY.js → monitoring-stats-row-DfQoN4dU.js} +1 -1
  83. package/dist/client/assets/{oauth-callback-BeAxhA0O.js → oauth-callback-COaviXzZ.js} +1 -1
  84. package/dist/client/assets/{oauth-callback-ai-provider-BNMpbB2T.js → oauth-callback-ai-provider-CeDoTmGO.js} +1 -1
  85. package/dist/client/assets/{onboarding-DXyWyIV-.js → onboarding-DMIifXKD.js} +1 -1
  86. package/dist/client/assets/{org-layout-DJZ7Z_p1.js → org-layout-CkCSATkV.js} +1 -1
  87. package/dist/client/assets/{org-plugin-layout-nQpaPqCP.js → org-plugin-layout-lYj2r1Ln.js} +1 -1
  88. package/dist/client/assets/{plugin-empty-state-D4pz75Eg.js → plugin-empty-state-BCI2akiJ.js} +1 -1
  89. package/dist/client/assets/{plugin-header-D_Oa6gN8.js → plugin-header--LbVNTsl.js} +1 -1
  90. package/dist/client/assets/{plugin-layout-csD4Blom.js → plugin-layout-Dhbi8qfO.js} +1 -1
  91. package/dist/client/assets/{popover-C6ihUqMx.js → popover-DL7_3A88.js} +1 -1
  92. package/dist/client/assets/{profile-725q4zwE.js → profile-CYehHV8y.js} +1 -1
  93. package/dist/client/assets/{project-app-view-BgI1ObN0.js → project-app-view-B680Vk1Z.js} +1 -1
  94. package/dist/client/assets/registry-D5sX2gio.js +2 -0
  95. package/dist/client/assets/{registry-layout-CZiwWJ4l.js → registry-layout-CEoOd_Wq.js} +1 -1
  96. package/dist/client/assets/{required-auth-layout-DYZPY8fJ.js → required-auth-layout-9J8EILU3.js} +1 -1
  97. package/dist/client/assets/{reset-password-D92BxTuZ.js → reset-password-CzSWUiKA.js} +1 -1
  98. package/dist/client/assets/{scroll-area-BjkPDLjB.js → scroll-area-CrjX3IME.js} +1 -1
  99. package/dist/client/assets/{search-input-BsH-Fhn1.js → search-input-DmblMA4A.js} +1 -1
  100. package/dist/client/assets/{select-ByGBjkSM.js → select-BQ3zutkO.js} +1 -1
  101. package/dist/client/assets/{select-model-ipn8mtVw.js → select-model-Cbrp8hD-.js} +1 -1
  102. package/dist/client/assets/{settings-layout-DaVsMStD.js → settings-layout-BxZT4ePy.js} +1 -1
  103. package/dist/client/assets/{shell-layout-CBHcQlP6.js → shell-layout-DrONQ6vr.js} +1 -1
  104. package/dist/client/assets/{skeleton-CKW2-ArL.js → skeleton-CmnvTWJg.js} +1 -1
  105. package/dist/client/assets/{sso-GNLrvSnU.js → sso-Csn8t5YG.js} +1 -1
  106. package/dist/client/assets/{store-Bv7PRV1N.js → store-B5WMfqFO.js} +1 -1
  107. package/dist/client/assets/store-registry-MW9ZrAsP.js +2 -0
  108. package/dist/client/assets/{switch-D_oyEj-7.js → switch-CM_vPUzz.js} +1 -1
  109. package/dist/client/assets/{table-DmvqYMYA.js → table-S8IBqobR.js} +1 -1
  110. package/dist/client/assets/{tabs-CHeB-_P1.js → tabs-B14EKG0Q.js} +1 -1
  111. package/dist/client/assets/{task-status-CGy28UD5.js → task-status-CoVKDaYE.js} +1 -1
  112. package/dist/client/assets/{textarea-Bo2Nbyc2.js → textarea-Bxm5HSBV.js} +1 -1
  113. package/dist/client/assets/{toggle-group-hicYHCaj.js → toggle-group-xjN2RMip.js} +1 -1
  114. package/dist/client/assets/{tools-list-Bc5L72jI.js → tools-list-DqbhkVqY.js} +1 -1
  115. package/dist/client/assets/{types-Qy_lXSZi.js → types-DA2UHbyR.js} +1 -1
  116. package/dist/client/assets/{use-ai-providers-D5svCGwH.js → use-ai-providers-LqR26vuo.js} +1 -1
  117. package/dist/client/assets/{use-collections-C9mDhhDp.js → use-collections-Bo1B5pfj.js} +1 -1
  118. package/dist/client/assets/{use-connection-labJovV0.js → use-connection-NZXO3HH3.js} +1 -1
  119. package/dist/client/assets/{use-copy-C--xeydh.js → use-copy-BRihc-l2.js} +1 -1
  120. package/dist/client/assets/{use-create-virtual-mcp-Dmy-tzU3.js → use-create-virtual-mcp-DgwS04N8.js} +1 -1
  121. package/dist/client/assets/{use-decopilot-events-BQ6lKiUz.js → use-decopilot-events-cbOJk-u-.js} +1 -1
  122. package/dist/client/assets/{use-delete-connection-Bj5gBc4Q.js → use-delete-connection-_oGK4bpj.js} +1 -1
  123. package/dist/client/assets/{use-infinite-scroll-CSBdO1Tg.js → use-infinite-scroll-BE8Qm8G-.js} +1 -1
  124. package/dist/client/assets/{use-list-state-BjQoZx3U.js → use-list-state-CeUQEO5I.js} +1 -1
  125. package/dist/client/assets/{use-mcp-tools-C0TDyIdf.js → use-mcp-tools-DqNbK4tC.js} +1 -1
  126. package/dist/client/assets/{use-members-BJMZeTol.js → use-members-DH_gyd2k.js} +1 -1
  127. package/dist/client/assets/{use-mobile-49sQdb0b.js → use-mobile-UG3f-VUD.js} +1 -1
  128. package/dist/client/assets/{use-navigate-to-agent-DHv3qU4y.js → use-navigate-to-agent-CDgOtsNz.js} +1 -1
  129. package/dist/client/assets/{use-org-sso-DZn2rTnY.js → use-org-sso-eSfysoE_.js} +1 -1
  130. package/dist/client/assets/{use-organization-settings-BhA6YmfT.js → use-organization-settings-bbuIudaf.js} +1 -1
  131. package/dist/client/assets/{use-registry-connections-Bvn4-1Jy.js → use-registry-connections-DN_uk-6v.js} +1 -1
  132. package/dist/client/assets/{use-status-sounds-hwHn7ByT.js → use-status-sounds-e0qVVZe8.js} +1 -1
  133. package/dist/client/assets/{use-tasks-CEfchIrz.js → use-tasks-DkVJbPPF.js} +1 -1
  134. package/dist/client/assets/{use-view-mode-BZEJDQ3u.js → use-view-mode-BvSJEzBA.js} +1 -1
  135. package/dist/client/assets/{use-virtual-mcp-kjgk684A.js → use-virtual-mcp-Doro-WnT.js} +1 -1
  136. package/dist/client/assets/useInfiniteQuery-C5UYrvtb.js +1 -0
  137. package/dist/client/assets/{user-DxIuCi_O.js → user-DMxAeRCM.js} +1 -1
  138. package/dist/client/assets/{view-mode-toggle-KKeD1zNQ.js → view-mode-toggle-B0na2o09.js} +1 -1
  139. package/dist/client/assets/{workflow-3PvqRa7g.js → workflow-BOEOo5nq.js} +1 -1
  140. package/dist/client/assets/workflow-detail-IfcsUNZf.js +1 -0
  141. package/dist/client/index.html +1 -1
  142. package/dist/server/cli.js +1 -1
  143. package/package.json +1 -1
  144. package/dist/client/assets/ai-providers-DNv3Q1EX.js +0 -1
  145. package/dist/client/assets/registry-DiyPXzzy.js +0 -2
  146. package/dist/client/assets/store-registry-IxsRTF9k.js +0 -2
  147. package/dist/client/assets/useInfiniteQuery-Bices_FL.js +0 -1
  148. package/dist/client/assets/workflow-detail-BLyd9EdB.js +0 -1
  149. package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
  150. package/dist/server/node_modules/ansi-styles/index.js +0 -223
  151. package/dist/server/node_modules/ansi-styles/license +0 -9
  152. package/dist/server/node_modules/ansi-styles/package.json +0 -54
  153. package/dist/server/node_modules/ansi-styles/readme.md +0 -173
  154. package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
  155. package/dist/server/node_modules/postgres-array/index.js +0 -97
  156. package/dist/server/node_modules/postgres-array/license +0 -21
  157. package/dist/server/node_modules/postgres-array/package.json +0 -35
  158. package/dist/server/node_modules/postgres-array/readme.md +0 -43
  159. package/dist/server/node_modules/postgres-bytea/index.js +0 -33
  160. package/dist/server/node_modules/postgres-bytea/license +0 -21
  161. package/dist/server/node_modules/postgres-bytea/package.json +0 -34
  162. package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
@@ -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
- ![](screenshot.png)
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,4 +0,0 @@
1
-
2
- export function parse(source: string): string[];
3
- export function parse<T>(source: string, transform: (value: string) => T): T[];
4
-
@@ -1,97 +0,0 @@
1
- 'use strict'
2
-
3
- exports.parse = function (source, transform) {
4
- return new ArrayParser(source, transform).parse()
5
- }
6
-
7
- class ArrayParser {
8
- constructor (source, transform) {
9
- this.source = source
10
- this.transform = transform || identity
11
- this.position = 0
12
- this.entries = []
13
- this.recorded = []
14
- this.dimension = 0
15
- }
16
-
17
- isEof () {
18
- return this.position >= this.source.length
19
- }
20
-
21
- nextCharacter () {
22
- var character = this.source[this.position++]
23
- if (character === '\\') {
24
- return {
25
- value: this.source[this.position++],
26
- escaped: true
27
- }
28
- }
29
- return {
30
- value: character,
31
- escaped: false
32
- }
33
- }
34
-
35
- record (character) {
36
- this.recorded.push(character)
37
- }
38
-
39
- newEntry (includeEmpty) {
40
- var entry
41
- if (this.recorded.length > 0 || includeEmpty) {
42
- entry = this.recorded.join('')
43
- if (entry === 'NULL' && !includeEmpty) {
44
- entry = null
45
- }
46
- if (entry !== null) entry = this.transform(entry)
47
- this.entries.push(entry)
48
- this.recorded = []
49
- }
50
- }
51
-
52
- consumeDimensions () {
53
- if (this.source[0] === '[') {
54
- while (!this.isEof()) {
55
- var char = this.nextCharacter()
56
- if (char.value === '=') break
57
- }
58
- }
59
- }
60
-
61
- parse (nested) {
62
- var character, parser, quote
63
- this.consumeDimensions()
64
- while (!this.isEof()) {
65
- character = this.nextCharacter()
66
- if (character.value === '{' && !quote) {
67
- this.dimension++
68
- if (this.dimension > 1) {
69
- parser = new ArrayParser(this.source.substr(this.position - 1), this.transform)
70
- this.entries.push(parser.parse(true))
71
- this.position += parser.position - 2
72
- }
73
- } else if (character.value === '}' && !quote) {
74
- this.dimension--
75
- if (!this.dimension) {
76
- this.newEntry()
77
- if (nested) return this.entries
78
- }
79
- } else if (character.value === '"' && !character.escaped) {
80
- if (quote) this.newEntry(true)
81
- quote = !quote
82
- } else if (character.value === ',' && !quote) {
83
- this.newEntry()
84
- } else {
85
- this.record(character.value)
86
- }
87
- }
88
- if (this.dimension !== 0) {
89
- throw new Error('array dimension not balanced')
90
- }
91
- return this.entries
92
- }
93
- }
94
-
95
- function identity (value) {
96
- return value
97
- }
@@ -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,35 +0,0 @@
1
- {
2
- "name": "postgres-array",
3
- "main": "index.js",
4
- "version": "2.0.0",
5
- "description": "Parse postgres array columns",
6
- "license": "MIT",
7
- "repository": "bendrucker/postgres-array",
8
- "author": {
9
- "name": "Ben Drucker",
10
- "email": "bvdrucker@gmail.com",
11
- "url": "bendrucker.me"
12
- },
13
- "engines": {
14
- "node": ">=4"
15
- },
16
- "scripts": {
17
- "test": "standard && tape test.js"
18
- },
19
- "types": "index.d.ts",
20
- "keywords": [
21
- "postgres",
22
- "array",
23
- "parser"
24
- ],
25
- "dependencies": {},
26
- "devDependencies": {
27
- "standard": "^12.0.1",
28
- "tape": "^4.0.0"
29
- },
30
- "files": [
31
- "index.js",
32
- "index.d.ts",
33
- "readme.md"
34
- ]
35
- }
@@ -1,43 +0,0 @@
1
- # postgres-array [![Build Status](https://travis-ci.org/bendrucker/postgres-array.svg?branch=master)](https://travis-ci.org/bendrucker/postgres-array)
2
-
3
- > Parse postgres array columns
4
-
5
-
6
- ## Install
7
-
8
- ```
9
- $ npm install --save postgres-array
10
- ```
11
-
12
-
13
- ## Usage
14
-
15
- ```js
16
- var postgresArray = require('postgres-array')
17
-
18
- postgresArray.parse('{1,2,3}', (value) => parseInt(value, 10))
19
- //=> [1, 2, 3]
20
- ```
21
-
22
- ## API
23
-
24
- #### `parse(input, [transform])` -> `array`
25
-
26
- ##### input
27
-
28
- *Required*
29
- Type: `string`
30
-
31
- A Postgres array string.
32
-
33
- ##### transform
34
-
35
- Type: `function`
36
- Default: `identity`
37
-
38
- A function that transforms non-null values inserted into the array.
39
-
40
-
41
- ## License
42
-
43
- MIT © [Ben Drucker](http://bendrucker.me)
@@ -1,33 +0,0 @@
1
- 'use strict'
2
-
3
- var bufferFrom = Buffer.from || Buffer
4
-
5
- module.exports = function parseBytea (input) {
6
- if (/^\\x/.test(input)) {
7
- // new 'hex' style response (pg >9.0)
8
- return bufferFrom(input.substr(2), 'hex')
9
- }
10
- var output = ''
11
- var i = 0
12
- while (i < input.length) {
13
- if (input[i] !== '\\') {
14
- output += input[i]
15
- ++i
16
- } else {
17
- if (/[0-7]{3}/.test(input.substr(i + 1, 3))) {
18
- output += String.fromCharCode(parseInt(input.substr(i + 1, 3), 8))
19
- i += 4
20
- } else {
21
- var backslashes = 1
22
- while (i + backslashes < input.length && input[i + backslashes] === '\\') {
23
- backslashes++
24
- }
25
- for (var k = 0; k < Math.floor(backslashes / 2); ++k) {
26
- output += '\\'
27
- }
28
- i += Math.floor(backslashes / 2) * 2
29
- }
30
- }
31
- }
32
- return bufferFrom(output, 'binary')
33
- }
@@ -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,34 +0,0 @@
1
- {
2
- "name": "postgres-bytea",
3
- "main": "index.js",
4
- "version": "1.0.1",
5
- "description": "Postgres bytea parser",
6
- "license": "MIT",
7
- "repository": "bendrucker/postgres-bytea",
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
- "bytea",
21
- "postgres",
22
- "binary",
23
- "parser"
24
- ],
25
- "dependencies": {},
26
- "devDependencies": {
27
- "tape": "^4.0.0",
28
- "standard": "^4.0.0"
29
- },
30
- "files": [
31
- "index.js",
32
- "readme.md"
33
- ]
34
- }
@@ -1,34 +0,0 @@
1
- # postgres-bytea [![Build Status](https://travis-ci.org/bendrucker/postgres-bytea.svg?branch=master)](https://travis-ci.org/bendrucker/postgres-bytea)
2
-
3
- > Postgres bytea parser
4
-
5
-
6
- ## Install
7
-
8
- ```
9
- $ npm install --save postgres-bytea
10
- ```
11
-
12
-
13
- ## Usage
14
-
15
- ```js
16
- var bytea = require('postgres-bytea');
17
- bytea('\\000\\100\\200')
18
- //=> buffer
19
- ```
20
-
21
- ## API
22
-
23
- #### `bytea(input)` -> `buffer`
24
-
25
- ##### input
26
-
27
- *Required*
28
- Type: `string`
29
-
30
- A Postgres bytea binary string.
31
-
32
- ## License
33
-
34
- MIT © [Ben Drucker](http://bendrucker.me)