gsd-pi 2.9.0 → 2.10.0

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 (1016) hide show
  1. package/node_modules/@gsd/native/package.json +59 -0
  2. package/node_modules/@gsd/native/src/__tests__/clipboard.test.mjs +79 -0
  3. package/node_modules/@gsd/native/src/__tests__/fd.test.mjs +164 -0
  4. package/node_modules/@gsd/native/src/__tests__/glob.test.mjs +237 -0
  5. package/node_modules/@gsd/native/src/__tests__/grep.test.mjs +162 -0
  6. package/node_modules/@gsd/native/src/__tests__/highlight.test.mjs +156 -0
  7. package/node_modules/@gsd/native/src/__tests__/html.test.mjs +98 -0
  8. package/node_modules/@gsd/native/src/__tests__/image.test.mjs +137 -0
  9. package/node_modules/@gsd/native/src/__tests__/ps.test.mjs +109 -0
  10. package/node_modules/@gsd/native/src/__tests__/text.test.mjs +262 -0
  11. package/node_modules/@gsd/native/src/ast/index.ts +12 -0
  12. package/node_modules/@gsd/native/src/ast/types.ts +75 -0
  13. package/node_modules/@gsd/native/src/clipboard/index.ts +40 -0
  14. package/node_modules/@gsd/native/src/clipboard/types.ts +7 -0
  15. package/node_modules/@gsd/native/src/fd/index.ts +35 -0
  16. package/node_modules/@gsd/native/src/fd/types.ts +31 -0
  17. package/node_modules/@gsd/native/src/glob/index.ts +44 -0
  18. package/node_modules/@gsd/native/src/glob/types.ts +53 -0
  19. package/node_modules/@gsd/native/src/grep/index.ts +48 -0
  20. package/node_modules/@gsd/native/src/grep/types.ts +105 -0
  21. package/node_modules/@gsd/native/src/highlight/index.ts +44 -0
  22. package/node_modules/@gsd/native/src/highlight/types.ts +25 -0
  23. package/node_modules/@gsd/native/src/html/index.ts +24 -0
  24. package/node_modules/@gsd/native/src/html/types.ts +7 -0
  25. package/node_modules/@gsd/native/src/image/index.ts +28 -0
  26. package/node_modules/@gsd/native/src/image/types.ts +41 -0
  27. package/node_modules/@gsd/native/src/index.ts +88 -0
  28. package/node_modules/@gsd/native/src/native.ts +94 -0
  29. package/node_modules/@gsd/native/src/ps/index.ts +52 -0
  30. package/node_modules/@gsd/native/src/ps/types.ts +5 -0
  31. package/node_modules/@gsd/native/src/text/index.ts +125 -0
  32. package/node_modules/@gsd/native/src/text/types.ts +29 -0
  33. package/node_modules/@gsd/native/src/ttsr/index.ts +39 -0
  34. package/node_modules/@gsd/native/src/ttsr/types.ts +10 -0
  35. package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/defaults.json +456 -0
  36. package/node_modules/@gsd/pi-coding-agent/dist/core/lsp/lsp.md +33 -0
  37. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/find.d.ts +1 -1
  38. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/find.d.ts.map +1 -1
  39. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/find.js +12 -77
  40. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/find.js.map +1 -1
  41. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-edit.d.ts +60 -0
  42. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-edit.d.ts.map +1 -0
  43. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-edit.js +247 -0
  44. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-edit.js.map +1 -0
  45. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-read.d.ts +43 -0
  46. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-read.d.ts.map +1 -0
  47. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-read.js +146 -0
  48. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline-read.js.map +1 -0
  49. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.d.ts +114 -0
  50. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.d.ts.map +1 -0
  51. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.js +522 -0
  52. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.js.map +1 -0
  53. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.test.d.ts +2 -0
  54. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.test.d.ts.map +1 -0
  55. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.test.js +376 -0
  56. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/hashline.test.js.map +1 -0
  57. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/index.d.ts +25 -0
  58. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/index.d.ts.map +1 -1
  59. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/index.js +23 -0
  60. package/node_modules/@gsd/pi-coding-agent/dist/core/tools/index.js.map +1 -1
  61. package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  62. package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +6 -3
  63. package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -1
  64. package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +0 -1
  65. package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  66. package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/interactive-mode.js +8 -9
  67. package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -1
  68. package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  69. package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/theme/theme.js +25 -40
  70. package/node_modules/@gsd/pi-coding-agent/dist/modes/interactive/theme/theme.js.map +1 -1
  71. package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-image.d.ts.map +1 -1
  72. package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-image.js +17 -21
  73. package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-image.js.map +1 -1
  74. package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-native.d.ts +7 -6
  75. package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-native.d.ts.map +1 -1
  76. package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-native.js +7 -13
  77. package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard-native.js.map +1 -1
  78. package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard.d.ts.map +1 -1
  79. package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard.js +3 -56
  80. package/node_modules/@gsd/pi-coding-agent/dist/utils/clipboard.js.map +1 -1
  81. package/node_modules/@gsd/pi-coding-agent/dist/utils/image-convert.d.ts.map +1 -1
  82. package/node_modules/@gsd/pi-coding-agent/dist/utils/image-convert.js +7 -17
  83. package/node_modules/@gsd/pi-coding-agent/dist/utils/image-convert.js.map +1 -1
  84. package/node_modules/@gsd/pi-coding-agent/dist/utils/image-resize.d.ts +1 -2
  85. package/node_modules/@gsd/pi-coding-agent/dist/utils/image-resize.d.ts.map +1 -1
  86. package/node_modules/@gsd/pi-coding-agent/dist/utils/image-resize.js +21 -29
  87. package/node_modules/@gsd/pi-coding-agent/dist/utils/image-resize.js.map +1 -1
  88. package/node_modules/@gsd/pi-coding-agent/package.json +2 -5
  89. package/node_modules/@gsd/pi-coding-agent/src/core/tools/find.ts +13 -88
  90. package/node_modules/@gsd/pi-coding-agent/src/core/tools/hashline-edit.ts +318 -0
  91. package/node_modules/@gsd/pi-coding-agent/src/core/tools/hashline-read.ts +196 -0
  92. package/node_modules/@gsd/pi-coding-agent/src/core/tools/hashline.test.ts +456 -0
  93. package/node_modules/@gsd/pi-coding-agent/src/core/tools/hashline.ts +594 -0
  94. package/node_modules/@gsd/pi-coding-agent/src/core/tools/index.ts +53 -0
  95. package/node_modules/@gsd/pi-coding-agent/src/modes/interactive/components/tool-execution.ts +5 -3
  96. package/node_modules/@gsd/pi-coding-agent/src/modes/interactive/interactive-mode.ts +7 -10
  97. package/node_modules/@gsd/pi-coding-agent/src/modes/interactive/theme/theme.ts +26 -42
  98. package/node_modules/@gsd/pi-coding-agent/src/utils/clipboard-image.ts +17 -24
  99. package/node_modules/@gsd/pi-coding-agent/src/utils/clipboard-native.ts +11 -21
  100. package/node_modules/@gsd/pi-coding-agent/src/utils/clipboard.ts +3 -51
  101. package/node_modules/@gsd/pi-coding-agent/src/utils/image-convert.ts +7 -17
  102. package/node_modules/@gsd/pi-coding-agent/src/utils/image-resize.ts +28 -34
  103. package/node_modules/@gsd/pi-tui/dist/autocomplete.d.ts +1 -3
  104. package/node_modules/@gsd/pi-tui/dist/autocomplete.d.ts.map +1 -1
  105. package/node_modules/@gsd/pi-tui/dist/autocomplete.js +16 -95
  106. package/node_modules/@gsd/pi-tui/dist/autocomplete.js.map +1 -1
  107. package/node_modules/@gsd/pi-tui/dist/components/image.d.ts +7 -0
  108. package/node_modules/@gsd/pi-tui/dist/components/image.d.ts.map +1 -1
  109. package/node_modules/@gsd/pi-tui/dist/components/image.js +20 -1
  110. package/node_modules/@gsd/pi-tui/dist/components/image.js.map +1 -1
  111. package/node_modules/@gsd/pi-tui/dist/index.d.ts +1 -1
  112. package/node_modules/@gsd/pi-tui/dist/index.d.ts.map +1 -1
  113. package/node_modules/@gsd/pi-tui/dist/index.js +1 -1
  114. package/node_modules/@gsd/pi-tui/dist/index.js.map +1 -1
  115. package/node_modules/@gsd/pi-tui/dist/terminal-image.d.ts +5 -5
  116. package/node_modules/@gsd/pi-tui/dist/terminal-image.d.ts.map +1 -1
  117. package/node_modules/@gsd/pi-tui/dist/terminal-image.js +9 -120
  118. package/node_modules/@gsd/pi-tui/dist/terminal-image.js.map +1 -1
  119. package/node_modules/@gsd/pi-tui/dist/utils.d.ts +23 -26
  120. package/node_modules/@gsd/pi-tui/dist/utils.d.ts.map +1 -1
  121. package/node_modules/@gsd/pi-tui/dist/utils.js +47 -716
  122. package/node_modules/@gsd/pi-tui/dist/utils.js.map +1 -1
  123. package/node_modules/@gsd/pi-tui/package.json +1 -0
  124. package/node_modules/@gsd/pi-tui/src/autocomplete.ts +17 -112
  125. package/node_modules/@gsd/pi-tui/src/components/image.ts +23 -1
  126. package/node_modules/@gsd/pi-tui/src/index.ts +0 -4
  127. package/node_modules/@gsd/pi-tui/src/terminal-image.ts +9 -135
  128. package/node_modules/@gsd/pi-tui/src/utils.ts +51 -775
  129. package/package.json +4 -1
  130. package/packages/native/package.json +59 -0
  131. package/packages/native/src/__tests__/clipboard.test.mjs +79 -0
  132. package/packages/native/src/__tests__/fd.test.mjs +164 -0
  133. package/packages/native/src/__tests__/glob.test.mjs +237 -0
  134. package/packages/native/src/__tests__/grep.test.mjs +162 -0
  135. package/packages/native/src/__tests__/highlight.test.mjs +156 -0
  136. package/packages/native/src/__tests__/html.test.mjs +98 -0
  137. package/packages/native/src/__tests__/image.test.mjs +137 -0
  138. package/packages/native/src/__tests__/ps.test.mjs +109 -0
  139. package/packages/native/src/__tests__/text.test.mjs +262 -0
  140. package/packages/native/src/ast/index.ts +12 -0
  141. package/packages/native/src/ast/types.ts +75 -0
  142. package/packages/native/src/clipboard/index.ts +40 -0
  143. package/packages/native/src/clipboard/types.ts +7 -0
  144. package/packages/native/src/fd/index.ts +35 -0
  145. package/packages/native/src/fd/types.ts +31 -0
  146. package/packages/native/src/glob/index.ts +44 -0
  147. package/packages/native/src/glob/types.ts +53 -0
  148. package/packages/native/src/grep/index.ts +48 -0
  149. package/packages/native/src/grep/types.ts +105 -0
  150. package/packages/native/src/highlight/index.ts +44 -0
  151. package/packages/native/src/highlight/types.ts +25 -0
  152. package/packages/native/src/html/index.ts +24 -0
  153. package/packages/native/src/html/types.ts +7 -0
  154. package/packages/native/src/image/index.ts +28 -0
  155. package/packages/native/src/image/types.ts +41 -0
  156. package/packages/native/src/index.ts +88 -0
  157. package/packages/native/src/native.ts +94 -0
  158. package/packages/native/src/ps/index.ts +52 -0
  159. package/packages/native/src/ps/types.ts +5 -0
  160. package/packages/native/src/text/index.ts +125 -0
  161. package/packages/native/src/text/types.ts +29 -0
  162. package/packages/native/src/ttsr/index.ts +39 -0
  163. package/packages/native/src/ttsr/types.ts +10 -0
  164. package/packages/native/tsconfig.json +8 -0
  165. package/packages/pi-coding-agent/dist/core/lsp/defaults.json +456 -0
  166. package/packages/pi-coding-agent/dist/core/lsp/lsp.md +33 -0
  167. package/packages/pi-coding-agent/dist/core/tools/find.d.ts +1 -1
  168. package/packages/pi-coding-agent/dist/core/tools/find.d.ts.map +1 -1
  169. package/packages/pi-coding-agent/dist/core/tools/find.js +12 -77
  170. package/packages/pi-coding-agent/dist/core/tools/find.js.map +1 -1
  171. package/packages/pi-coding-agent/dist/core/tools/hashline-edit.d.ts +60 -0
  172. package/packages/pi-coding-agent/dist/core/tools/hashline-edit.d.ts.map +1 -0
  173. package/packages/pi-coding-agent/dist/core/tools/hashline-edit.js +247 -0
  174. package/packages/pi-coding-agent/dist/core/tools/hashline-edit.js.map +1 -0
  175. package/packages/pi-coding-agent/dist/core/tools/hashline-read.d.ts +43 -0
  176. package/packages/pi-coding-agent/dist/core/tools/hashline-read.d.ts.map +1 -0
  177. package/packages/pi-coding-agent/dist/core/tools/hashline-read.js +146 -0
  178. package/packages/pi-coding-agent/dist/core/tools/hashline-read.js.map +1 -0
  179. package/packages/pi-coding-agent/dist/core/tools/hashline.d.ts +114 -0
  180. package/packages/pi-coding-agent/dist/core/tools/hashline.d.ts.map +1 -0
  181. package/packages/pi-coding-agent/dist/core/tools/hashline.js +522 -0
  182. package/packages/pi-coding-agent/dist/core/tools/hashline.js.map +1 -0
  183. package/packages/pi-coding-agent/dist/core/tools/hashline.test.d.ts +2 -0
  184. package/packages/pi-coding-agent/dist/core/tools/hashline.test.d.ts.map +1 -0
  185. package/packages/pi-coding-agent/dist/core/tools/hashline.test.js +376 -0
  186. package/packages/pi-coding-agent/dist/core/tools/hashline.test.js.map +1 -0
  187. package/packages/pi-coding-agent/dist/core/tools/index.d.ts +25 -0
  188. package/packages/pi-coding-agent/dist/core/tools/index.d.ts.map +1 -1
  189. package/packages/pi-coding-agent/dist/core/tools/index.js +23 -0
  190. package/packages/pi-coding-agent/dist/core/tools/index.js.map +1 -1
  191. package/packages/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  192. package/packages/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +6 -3
  193. package/packages/pi-coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -1
  194. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +0 -1
  195. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  196. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.js +8 -9
  197. package/packages/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -1
  198. package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  199. package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.js +25 -40
  200. package/packages/pi-coding-agent/dist/modes/interactive/theme/theme.js.map +1 -1
  201. package/packages/pi-coding-agent/dist/utils/clipboard-image.d.ts.map +1 -1
  202. package/packages/pi-coding-agent/dist/utils/clipboard-image.js +17 -21
  203. package/packages/pi-coding-agent/dist/utils/clipboard-image.js.map +1 -1
  204. package/packages/pi-coding-agent/dist/utils/clipboard-native.d.ts +7 -6
  205. package/packages/pi-coding-agent/dist/utils/clipboard-native.d.ts.map +1 -1
  206. package/packages/pi-coding-agent/dist/utils/clipboard-native.js +7 -13
  207. package/packages/pi-coding-agent/dist/utils/clipboard-native.js.map +1 -1
  208. package/packages/pi-coding-agent/dist/utils/clipboard.d.ts.map +1 -1
  209. package/packages/pi-coding-agent/dist/utils/clipboard.js +3 -56
  210. package/packages/pi-coding-agent/dist/utils/clipboard.js.map +1 -1
  211. package/packages/pi-coding-agent/dist/utils/image-convert.d.ts.map +1 -1
  212. package/packages/pi-coding-agent/dist/utils/image-convert.js +7 -17
  213. package/packages/pi-coding-agent/dist/utils/image-convert.js.map +1 -1
  214. package/packages/pi-coding-agent/dist/utils/image-resize.d.ts +1 -2
  215. package/packages/pi-coding-agent/dist/utils/image-resize.d.ts.map +1 -1
  216. package/packages/pi-coding-agent/dist/utils/image-resize.js +21 -29
  217. package/packages/pi-coding-agent/dist/utils/image-resize.js.map +1 -1
  218. package/packages/pi-coding-agent/package.json +2 -5
  219. package/packages/pi-coding-agent/src/core/tools/find.ts +13 -88
  220. package/packages/pi-coding-agent/src/core/tools/hashline-edit.ts +318 -0
  221. package/packages/pi-coding-agent/src/core/tools/hashline-read.ts +196 -0
  222. package/packages/pi-coding-agent/src/core/tools/hashline.test.ts +456 -0
  223. package/packages/pi-coding-agent/src/core/tools/hashline.ts +594 -0
  224. package/packages/pi-coding-agent/src/core/tools/index.ts +53 -0
  225. package/packages/pi-coding-agent/src/modes/interactive/components/tool-execution.ts +5 -3
  226. package/packages/pi-coding-agent/src/modes/interactive/interactive-mode.ts +7 -10
  227. package/packages/pi-coding-agent/src/modes/interactive/theme/theme.ts +26 -42
  228. package/packages/pi-coding-agent/src/utils/clipboard-image.ts +17 -24
  229. package/packages/pi-coding-agent/src/utils/clipboard-native.ts +11 -21
  230. package/packages/pi-coding-agent/src/utils/clipboard.ts +3 -51
  231. package/packages/pi-coding-agent/src/utils/image-convert.ts +7 -17
  232. package/packages/pi-coding-agent/src/utils/image-resize.ts +28 -34
  233. package/packages/pi-tui/dist/autocomplete.d.ts +1 -3
  234. package/packages/pi-tui/dist/autocomplete.d.ts.map +1 -1
  235. package/packages/pi-tui/dist/autocomplete.js +16 -95
  236. package/packages/pi-tui/dist/autocomplete.js.map +1 -1
  237. package/packages/pi-tui/dist/components/image.d.ts +7 -0
  238. package/packages/pi-tui/dist/components/image.d.ts.map +1 -1
  239. package/packages/pi-tui/dist/components/image.js +20 -1
  240. package/packages/pi-tui/dist/components/image.js.map +1 -1
  241. package/packages/pi-tui/dist/index.d.ts +1 -1
  242. package/packages/pi-tui/dist/index.d.ts.map +1 -1
  243. package/packages/pi-tui/dist/index.js +1 -1
  244. package/packages/pi-tui/dist/index.js.map +1 -1
  245. package/packages/pi-tui/dist/terminal-image.d.ts +5 -5
  246. package/packages/pi-tui/dist/terminal-image.d.ts.map +1 -1
  247. package/packages/pi-tui/dist/terminal-image.js +9 -120
  248. package/packages/pi-tui/dist/terminal-image.js.map +1 -1
  249. package/packages/pi-tui/dist/utils.d.ts +23 -26
  250. package/packages/pi-tui/dist/utils.d.ts.map +1 -1
  251. package/packages/pi-tui/dist/utils.js +47 -716
  252. package/packages/pi-tui/dist/utils.js.map +1 -1
  253. package/packages/pi-tui/package.json +1 -0
  254. package/packages/pi-tui/src/autocomplete.ts +17 -112
  255. package/packages/pi-tui/src/components/image.ts +23 -1
  256. package/packages/pi-tui/src/index.ts +0 -4
  257. package/packages/pi-tui/src/terminal-image.ts +9 -135
  258. package/packages/pi-tui/src/utils.ts +51 -775
  259. package/pkg/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  260. package/pkg/dist/modes/interactive/theme/theme.js +25 -40
  261. package/pkg/dist/modes/interactive/theme/theme.js.map +1 -1
  262. package/src/resources/extensions/bg-shell/index.ts +343 -14
  263. package/src/resources/extensions/gsd/git-service.ts +13 -1
  264. package/src/resources/extensions/universal-config/discovery.ts +78 -0
  265. package/src/resources/extensions/universal-config/format.ts +160 -0
  266. package/src/resources/extensions/universal-config/index.ts +118 -0
  267. package/src/resources/extensions/universal-config/package.json +11 -0
  268. package/src/resources/extensions/universal-config/scanners.ts +579 -0
  269. package/src/resources/extensions/universal-config/tests/discovery.test.ts +111 -0
  270. package/src/resources/extensions/universal-config/tests/format.test.ts +111 -0
  271. package/src/resources/extensions/universal-config/tests/scanners.test.ts +438 -0
  272. package/src/resources/extensions/universal-config/tools.ts +60 -0
  273. package/src/resources/extensions/universal-config/types.ts +116 -0
  274. package/node_modules/@mariozechner/clipboard/.yarnrc.yml +0 -1
  275. package/node_modules/@mariozechner/clipboard/Cargo.toml +0 -26
  276. package/node_modules/@mariozechner/clipboard/README.md +0 -58
  277. package/node_modules/@mariozechner/clipboard/build.rs +0 -5
  278. package/node_modules/@mariozechner/clipboard/exp.ts +0 -12
  279. package/node_modules/@mariozechner/clipboard/index.d.ts +0 -23
  280. package/node_modules/@mariozechner/clipboard/index.js +0 -317
  281. package/node_modules/@mariozechner/clipboard/package.json +0 -56
  282. package/node_modules/@mariozechner/clipboard/src/lib.rs +0 -191
  283. package/node_modules/@mariozechner/clipboard-darwin-arm64/README.md +0 -3
  284. package/node_modules/@mariozechner/clipboard-darwin-arm64/clipboard.darwin-arm64.node +0 -0
  285. package/node_modules/@mariozechner/clipboard-darwin-arm64/package.json +0 -22
  286. package/node_modules/@mariozechner/clipboard-darwin-universal/README.md +0 -3
  287. package/node_modules/@mariozechner/clipboard-darwin-universal/clipboard.darwin-universal.node +0 -0
  288. package/node_modules/@mariozechner/clipboard-darwin-universal/package.json +0 -19
  289. package/node_modules/ansi-styles/index.d.ts +0 -345
  290. package/node_modules/ansi-styles/index.js +0 -163
  291. package/node_modules/ansi-styles/license +0 -9
  292. package/node_modules/ansi-styles/package.json +0 -56
  293. package/node_modules/ansi-styles/readme.md +0 -152
  294. package/node_modules/any-promise/.jshintrc +0 -4
  295. package/node_modules/any-promise/.npmignore +0 -7
  296. package/node_modules/any-promise/LICENSE +0 -19
  297. package/node_modules/any-promise/README.md +0 -161
  298. package/node_modules/any-promise/implementation.d.ts +0 -3
  299. package/node_modules/any-promise/implementation.js +0 -1
  300. package/node_modules/any-promise/index.d.ts +0 -73
  301. package/node_modules/any-promise/index.js +0 -1
  302. package/node_modules/any-promise/loader.js +0 -78
  303. package/node_modules/any-promise/optional.js +0 -6
  304. package/node_modules/any-promise/package.json +0 -45
  305. package/node_modules/any-promise/register/bluebird.d.ts +0 -1
  306. package/node_modules/any-promise/register/bluebird.js +0 -2
  307. package/node_modules/any-promise/register/es6-promise.d.ts +0 -1
  308. package/node_modules/any-promise/register/es6-promise.js +0 -2
  309. package/node_modules/any-promise/register/lie.d.ts +0 -1
  310. package/node_modules/any-promise/register/lie.js +0 -2
  311. package/node_modules/any-promise/register/native-promise-only.d.ts +0 -1
  312. package/node_modules/any-promise/register/native-promise-only.js +0 -2
  313. package/node_modules/any-promise/register/pinkie.d.ts +0 -1
  314. package/node_modules/any-promise/register/pinkie.js +0 -2
  315. package/node_modules/any-promise/register/promise.d.ts +0 -1
  316. package/node_modules/any-promise/register/promise.js +0 -2
  317. package/node_modules/any-promise/register/q.d.ts +0 -1
  318. package/node_modules/any-promise/register/q.js +0 -2
  319. package/node_modules/any-promise/register/rsvp.d.ts +0 -1
  320. package/node_modules/any-promise/register/rsvp.js +0 -2
  321. package/node_modules/any-promise/register/vow.d.ts +0 -1
  322. package/node_modules/any-promise/register/vow.js +0 -2
  323. package/node_modules/any-promise/register/when.d.ts +0 -1
  324. package/node_modules/any-promise/register/when.js +0 -2
  325. package/node_modules/any-promise/register-shim.js +0 -18
  326. package/node_modules/any-promise/register.d.ts +0 -17
  327. package/node_modules/any-promise/register.js +0 -94
  328. package/node_modules/cli-highlight/LICENSE.txt +0 -15
  329. package/node_modules/cli-highlight/README.md +0 -88
  330. package/node_modules/cli-highlight/bin/highlight +0 -2
  331. package/node_modules/cli-highlight/dist/cli.d.ts +0 -1
  332. package/node_modules/cli-highlight/dist/cli.js +0 -102
  333. package/node_modules/cli-highlight/dist/cli.js.map +0 -1
  334. package/node_modules/cli-highlight/dist/index.d.ts +0 -53
  335. package/node_modules/cli-highlight/dist/index.js +0 -112
  336. package/node_modules/cli-highlight/dist/index.js.map +0 -1
  337. package/node_modules/cli-highlight/dist/test/test.d.ts +0 -1
  338. package/node_modules/cli-highlight/dist/test/test.js +0 -62
  339. package/node_modules/cli-highlight/dist/test/test.js.map +0 -1
  340. package/node_modules/cli-highlight/dist/theme.d.ts +0 -270
  341. package/node_modules/cli-highlight/dist/theme.js +0 -265
  342. package/node_modules/cli-highlight/dist/theme.js.map +0 -1
  343. package/node_modules/cli-highlight/node_modules/chalk/index.d.ts +0 -415
  344. package/node_modules/cli-highlight/node_modules/chalk/license +0 -9
  345. package/node_modules/cli-highlight/node_modules/chalk/package.json +0 -68
  346. package/node_modules/cli-highlight/node_modules/chalk/readme.md +0 -341
  347. package/node_modules/cli-highlight/node_modules/chalk/source/index.js +0 -229
  348. package/node_modules/cli-highlight/node_modules/chalk/source/templates.js +0 -134
  349. package/node_modules/cli-highlight/node_modules/chalk/source/util.js +0 -39
  350. package/node_modules/cli-highlight/package.json +0 -129
  351. package/node_modules/cliui/CHANGELOG.md +0 -121
  352. package/node_modules/cliui/LICENSE.txt +0 -14
  353. package/node_modules/cliui/README.md +0 -141
  354. package/node_modules/cliui/build/index.cjs +0 -302
  355. package/node_modules/cliui/build/lib/index.js +0 -287
  356. package/node_modules/cliui/build/lib/string-utils.js +0 -27
  357. package/node_modules/cliui/index.mjs +0 -13
  358. package/node_modules/cliui/node_modules/ansi-regex/index.d.ts +0 -37
  359. package/node_modules/cliui/node_modules/ansi-regex/index.js +0 -10
  360. package/node_modules/cliui/node_modules/ansi-regex/license +0 -9
  361. package/node_modules/cliui/node_modules/ansi-regex/package.json +0 -55
  362. package/node_modules/cliui/node_modules/ansi-regex/readme.md +0 -78
  363. package/node_modules/cliui/node_modules/strip-ansi/index.d.ts +0 -17
  364. package/node_modules/cliui/node_modules/strip-ansi/index.js +0 -4
  365. package/node_modules/cliui/node_modules/strip-ansi/license +0 -9
  366. package/node_modules/cliui/node_modules/strip-ansi/package.json +0 -54
  367. package/node_modules/cliui/node_modules/strip-ansi/readme.md +0 -46
  368. package/node_modules/cliui/package.json +0 -83
  369. package/node_modules/color-convert/CHANGELOG.md +0 -54
  370. package/node_modules/color-convert/LICENSE +0 -21
  371. package/node_modules/color-convert/README.md +0 -68
  372. package/node_modules/color-convert/conversions.js +0 -839
  373. package/node_modules/color-convert/index.js +0 -81
  374. package/node_modules/color-convert/package.json +0 -48
  375. package/node_modules/color-convert/route.js +0 -97
  376. package/node_modules/color-name/LICENSE +0 -8
  377. package/node_modules/color-name/README.md +0 -11
  378. package/node_modules/color-name/index.js +0 -152
  379. package/node_modules/color-name/package.json +0 -28
  380. package/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  381. package/node_modules/emoji-regex/README.md +0 -73
  382. package/node_modules/emoji-regex/es2015/index.js +0 -6
  383. package/node_modules/emoji-regex/es2015/text.js +0 -6
  384. package/node_modules/emoji-regex/index.d.ts +0 -23
  385. package/node_modules/emoji-regex/index.js +0 -6
  386. package/node_modules/emoji-regex/package.json +0 -50
  387. package/node_modules/emoji-regex/text.js +0 -6
  388. package/node_modules/escalade/dist/index.js +0 -22
  389. package/node_modules/escalade/dist/index.mjs +0 -22
  390. package/node_modules/escalade/index.d.mts +0 -11
  391. package/node_modules/escalade/index.d.ts +0 -15
  392. package/node_modules/escalade/license +0 -9
  393. package/node_modules/escalade/package.json +0 -74
  394. package/node_modules/escalade/readme.md +0 -211
  395. package/node_modules/escalade/sync/index.d.mts +0 -9
  396. package/node_modules/escalade/sync/index.d.ts +0 -13
  397. package/node_modules/escalade/sync/index.js +0 -18
  398. package/node_modules/escalade/sync/index.mjs +0 -18
  399. package/node_modules/esprima/ChangeLog +0 -235
  400. package/node_modules/get-caller-file/LICENSE.md +0 -6
  401. package/node_modules/get-caller-file/README.md +0 -41
  402. package/node_modules/get-caller-file/index.d.ts +0 -2
  403. package/node_modules/get-caller-file/index.js +0 -22
  404. package/node_modules/get-caller-file/index.js.map +0 -1
  405. package/node_modules/get-caller-file/package.json +0 -42
  406. package/node_modules/has-flag/index.d.ts +0 -39
  407. package/node_modules/has-flag/index.js +0 -8
  408. package/node_modules/has-flag/license +0 -9
  409. package/node_modules/has-flag/package.json +0 -46
  410. package/node_modules/has-flag/readme.md +0 -89
  411. package/node_modules/highlight.js/LICENSE +0 -29
  412. package/node_modules/highlight.js/README.md +0 -371
  413. package/node_modules/highlight.js/lib/core.js +0 -2517
  414. package/node_modules/highlight.js/lib/highlight.js +0 -2
  415. package/node_modules/highlight.js/lib/index.js +0 -195
  416. package/node_modules/highlight.js/lib/languages/1c.js +0 -521
  417. package/node_modules/highlight.js/lib/languages/abnf.js +0 -103
  418. package/node_modules/highlight.js/lib/languages/accesslog.js +0 -127
  419. package/node_modules/highlight.js/lib/languages/actionscript.js +0 -113
  420. package/node_modules/highlight.js/lib/languages/ada.js +0 -194
  421. package/node_modules/highlight.js/lib/languages/angelscript.js +0 -123
  422. package/node_modules/highlight.js/lib/languages/apache.js +0 -89
  423. package/node_modules/highlight.js/lib/languages/applescript.js +0 -189
  424. package/node_modules/highlight.js/lib/languages/arcade.js +0 -165
  425. package/node_modules/highlight.js/lib/languages/arduino.js +0 -576
  426. package/node_modules/highlight.js/lib/languages/armasm.js +0 -131
  427. package/node_modules/highlight.js/lib/languages/asciidoc.js +0 -303
  428. package/node_modules/highlight.js/lib/languages/aspectj.js +0 -186
  429. package/node_modules/highlight.js/lib/languages/autohotkey.js +0 -84
  430. package/node_modules/highlight.js/lib/languages/autoit.js +0 -183
  431. package/node_modules/highlight.js/lib/languages/avrasm.js +0 -80
  432. package/node_modules/highlight.js/lib/languages/awk.js +0 -73
  433. package/node_modules/highlight.js/lib/languages/axapta.js +0 -179
  434. package/node_modules/highlight.js/lib/languages/bash.js +0 -169
  435. package/node_modules/highlight.js/lib/languages/basic.js +0 -65
  436. package/node_modules/highlight.js/lib/languages/bnf.js +0 -38
  437. package/node_modules/highlight.js/lib/languages/brainfuck.js +0 -46
  438. package/node_modules/highlight.js/lib/languages/c-like.js +0 -501
  439. package/node_modules/highlight.js/lib/languages/c.js +0 -309
  440. package/node_modules/highlight.js/lib/languages/cal.js +0 -104
  441. package/node_modules/highlight.js/lib/languages/capnproto.js +0 -64
  442. package/node_modules/highlight.js/lib/languages/ceylon.js +0 -82
  443. package/node_modules/highlight.js/lib/languages/clean.js +0 -40
  444. package/node_modules/highlight.js/lib/languages/clojure-repl.js +0 -27
  445. package/node_modules/highlight.js/lib/languages/clojure.js +0 -158
  446. package/node_modules/highlight.js/lib/languages/cmake.js +0 -64
  447. package/node_modules/highlight.js/lib/languages/coffeescript.js +0 -356
  448. package/node_modules/highlight.js/lib/languages/coq.js +0 -79
  449. package/node_modules/highlight.js/lib/languages/cos.js +0 -138
  450. package/node_modules/highlight.js/lib/languages/cpp.js +0 -464
  451. package/node_modules/highlight.js/lib/languages/crmsh.js +0 -102
  452. package/node_modules/highlight.js/lib/languages/crystal.js +0 -326
  453. package/node_modules/highlight.js/lib/languages/csharp.js +0 -441
  454. package/node_modules/highlight.js/lib/languages/csp.js +0 -37
  455. package/node_modules/highlight.js/lib/languages/css.js +0 -608
  456. package/node_modules/highlight.js/lib/languages/d.js +0 -271
  457. package/node_modules/highlight.js/lib/languages/dart.js +0 -199
  458. package/node_modules/highlight.js/lib/languages/delphi.js +0 -126
  459. package/node_modules/highlight.js/lib/languages/diff.js +0 -85
  460. package/node_modules/highlight.js/lib/languages/django.js +0 -77
  461. package/node_modules/highlight.js/lib/languages/dns.js +0 -46
  462. package/node_modules/highlight.js/lib/languages/dockerfile.js +0 -34
  463. package/node_modules/highlight.js/lib/languages/dos.js +0 -70
  464. package/node_modules/highlight.js/lib/languages/dsconfig.js +0 -66
  465. package/node_modules/highlight.js/lib/languages/dts.js +0 -153
  466. package/node_modules/highlight.js/lib/languages/dust.js +0 -45
  467. package/node_modules/highlight.js/lib/languages/ebnf.js +0 -53
  468. package/node_modules/highlight.js/lib/languages/elixir.js +0 -259
  469. package/node_modules/highlight.js/lib/languages/elm.js +0 -129
  470. package/node_modules/highlight.js/lib/languages/erb.js +0 -29
  471. package/node_modules/highlight.js/lib/languages/erlang-repl.js +0 -86
  472. package/node_modules/highlight.js/lib/languages/erlang.js +0 -199
  473. package/node_modules/highlight.js/lib/languages/excel.js +0 -64
  474. package/node_modules/highlight.js/lib/languages/fix.js +0 -37
  475. package/node_modules/highlight.js/lib/languages/flix.js +0 -54
  476. package/node_modules/highlight.js/lib/languages/fortran.js +0 -159
  477. package/node_modules/highlight.js/lib/languages/fsharp.js +0 -86
  478. package/node_modules/highlight.js/lib/languages/gams.js +0 -208
  479. package/node_modules/highlight.js/lib/languages/gauss.js +0 -316
  480. package/node_modules/highlight.js/lib/languages/gcode.js +0 -88
  481. package/node_modules/highlight.js/lib/languages/gherkin.js +0 -49
  482. package/node_modules/highlight.js/lib/languages/glsl.js +0 -128
  483. package/node_modules/highlight.js/lib/languages/gml.js +0 -885
  484. package/node_modules/highlight.js/lib/languages/go.js +0 -74
  485. package/node_modules/highlight.js/lib/languages/golo.js +0 -33
  486. package/node_modules/highlight.js/lib/languages/gradle.js +0 -44
  487. package/node_modules/highlight.js/lib/languages/groovy.js +0 -174
  488. package/node_modules/highlight.js/lib/languages/haml.js +0 -117
  489. package/node_modules/highlight.js/lib/languages/handlebars.js +0 -324
  490. package/node_modules/highlight.js/lib/languages/haskell.js +0 -173
  491. package/node_modules/highlight.js/lib/languages/haxe.js +0 -157
  492. package/node_modules/highlight.js/lib/languages/hsp.js +0 -65
  493. package/node_modules/highlight.js/lib/languages/htmlbars.js +0 -352
  494. package/node_modules/highlight.js/lib/languages/http.js +0 -121
  495. package/node_modules/highlight.js/lib/languages/hy.js +0 -109
  496. package/node_modules/highlight.js/lib/languages/inform7.js +0 -70
  497. package/node_modules/highlight.js/lib/languages/ini.js +0 -173
  498. package/node_modules/highlight.js/lib/languages/irpf90.js +0 -141
  499. package/node_modules/highlight.js/lib/languages/isbl.js +0 -3207
  500. package/node_modules/highlight.js/lib/languages/java.js +0 -181
  501. package/node_modules/highlight.js/lib/languages/javascript.js +0 -604
  502. package/node_modules/highlight.js/lib/languages/jboss-cli.js +0 -63
  503. package/node_modules/highlight.js/lib/languages/json.js +0 -63
  504. package/node_modules/highlight.js/lib/languages/julia-repl.js +0 -50
  505. package/node_modules/highlight.js/lib/languages/julia.js +0 -416
  506. package/node_modules/highlight.js/lib/languages/kotlin.js +0 -284
  507. package/node_modules/highlight.js/lib/languages/lasso.js +0 -187
  508. package/node_modules/highlight.js/lib/languages/latex.js +0 -276
  509. package/node_modules/highlight.js/lib/languages/ldif.js +0 -42
  510. package/node_modules/highlight.js/lib/languages/leaf.js +0 -49
  511. package/node_modules/highlight.js/lib/languages/less.js +0 -666
  512. package/node_modules/highlight.js/lib/languages/lisp.js +0 -111
  513. package/node_modules/highlight.js/lib/languages/livecodeserver.js +0 -189
  514. package/node_modules/highlight.js/lib/languages/livescript.js +0 -374
  515. package/node_modules/highlight.js/lib/languages/llvm.js +0 -154
  516. package/node_modules/highlight.js/lib/languages/lsl.js +0 -95
  517. package/node_modules/highlight.js/lib/languages/lua.js +0 -82
  518. package/node_modules/highlight.js/lib/languages/makefile.js +0 -92
  519. package/node_modules/highlight.js/lib/languages/markdown.js +0 -258
  520. package/node_modules/highlight.js/lib/languages/mathematica.js +0 -6797
  521. package/node_modules/highlight.js/lib/languages/matlab.js +0 -106
  522. package/node_modules/highlight.js/lib/languages/maxima.js +0 -417
  523. package/node_modules/highlight.js/lib/languages/mel.js +0 -236
  524. package/node_modules/highlight.js/lib/languages/mercury.js +0 -121
  525. package/node_modules/highlight.js/lib/languages/mipsasm.js +0 -109
  526. package/node_modules/highlight.js/lib/languages/mizar.js +0 -29
  527. package/node_modules/highlight.js/lib/languages/mojolicious.js +0 -36
  528. package/node_modules/highlight.js/lib/languages/monkey.js +0 -89
  529. package/node_modules/highlight.js/lib/languages/moonscript.js +0 -147
  530. package/node_modules/highlight.js/lib/languages/n1ql.js +0 -77
  531. package/node_modules/highlight.js/lib/languages/nginx.js +0 -140
  532. package/node_modules/highlight.js/lib/languages/nim.js +0 -79
  533. package/node_modules/highlight.js/lib/languages/nix.js +0 -65
  534. package/node_modules/highlight.js/lib/languages/node-repl.js +0 -37
  535. package/node_modules/highlight.js/lib/languages/nsis.js +0 -119
  536. package/node_modules/highlight.js/lib/languages/objectivec.js +0 -121
  537. package/node_modules/highlight.js/lib/languages/ocaml.js +0 -82
  538. package/node_modules/highlight.js/lib/languages/openscad.js +0 -81
  539. package/node_modules/highlight.js/lib/languages/oxygene.js +0 -101
  540. package/node_modules/highlight.js/lib/languages/parser3.js +0 -57
  541. package/node_modules/highlight.js/lib/languages/perl.js +0 -515
  542. package/node_modules/highlight.js/lib/languages/pf.js +0 -59
  543. package/node_modules/highlight.js/lib/languages/pgsql.js +0 -630
  544. package/node_modules/highlight.js/lib/languages/php-template.js +0 -54
  545. package/node_modules/highlight.js/lib/languages/php.js +0 -204
  546. package/node_modules/highlight.js/lib/languages/plaintext.js +0 -19
  547. package/node_modules/highlight.js/lib/languages/pony.js +0 -89
  548. package/node_modules/highlight.js/lib/languages/powershell.js +0 -331
  549. package/node_modules/highlight.js/lib/languages/processing.js +0 -58
  550. package/node_modules/highlight.js/lib/languages/profile.js +0 -43
  551. package/node_modules/highlight.js/lib/languages/prolog.js +0 -102
  552. package/node_modules/highlight.js/lib/languages/properties.js +0 -85
  553. package/node_modules/highlight.js/lib/languages/protobuf.js +0 -47
  554. package/node_modules/highlight.js/lib/languages/puppet.js +0 -147
  555. package/node_modules/highlight.js/lib/languages/purebasic.js +0 -101
  556. package/node_modules/highlight.js/lib/languages/python-repl.js +0 -36
  557. package/node_modules/highlight.js/lib/languages/python.js +0 -446
  558. package/node_modules/highlight.js/lib/languages/q.js +0 -37
  559. package/node_modules/highlight.js/lib/languages/qml.js +0 -225
  560. package/node_modules/highlight.js/lib/languages/r.js +0 -231
  561. package/node_modules/highlight.js/lib/languages/reasonml.js +0 -321
  562. package/node_modules/highlight.js/lib/languages/rib.js +0 -37
  563. package/node_modules/highlight.js/lib/languages/roboconf.js +0 -82
  564. package/node_modules/highlight.js/lib/languages/routeros.js +0 -172
  565. package/node_modules/highlight.js/lib/languages/rsl.js +0 -49
  566. package/node_modules/highlight.js/lib/languages/ruby.js +0 -387
  567. package/node_modules/highlight.js/lib/languages/ruleslanguage.js +0 -78
  568. package/node_modules/highlight.js/lib/languages/rust.js +0 -146
  569. package/node_modules/highlight.js/lib/languages/sas.js +0 -133
  570. package/node_modules/highlight.js/lib/languages/scala.js +0 -140
  571. package/node_modules/highlight.js/lib/languages/scheme.js +0 -207
  572. package/node_modules/highlight.js/lib/languages/scilab.js +0 -73
  573. package/node_modules/highlight.js/lib/languages/scss.js +0 -545
  574. package/node_modules/highlight.js/lib/languages/shell.js +0 -30
  575. package/node_modules/highlight.js/lib/languages/smali.js +0 -135
  576. package/node_modules/highlight.js/lib/languages/smalltalk.js +0 -63
  577. package/node_modules/highlight.js/lib/languages/sml.js +0 -81
  578. package/node_modules/highlight.js/lib/languages/sqf.js +0 -448
  579. package/node_modules/highlight.js/lib/languages/sql.js +0 -699
  580. package/node_modules/highlight.js/lib/languages/sql_more.js +0 -183
  581. package/node_modules/highlight.js/lib/languages/stan.js +0 -548
  582. package/node_modules/highlight.js/lib/languages/stata.js +0 -60
  583. package/node_modules/highlight.js/lib/languages/step21.js +0 -66
  584. package/node_modules/highlight.js/lib/languages/stylus.js +0 -609
  585. package/node_modules/highlight.js/lib/languages/subunit.js +0 -51
  586. package/node_modules/highlight.js/lib/languages/swift.js +0 -873
  587. package/node_modules/highlight.js/lib/languages/taggerscript.js +0 -52
  588. package/node_modules/highlight.js/lib/languages/tap.js +0 -55
  589. package/node_modules/highlight.js/lib/languages/tcl.js +0 -115
  590. package/node_modules/highlight.js/lib/languages/thrift.js +0 -51
  591. package/node_modules/highlight.js/lib/languages/tp.js +0 -95
  592. package/node_modules/highlight.js/lib/languages/twig.js +0 -77
  593. package/node_modules/highlight.js/lib/languages/typescript.js +0 -697
  594. package/node_modules/highlight.js/lib/languages/vala.js +0 -61
  595. package/node_modules/highlight.js/lib/languages/vbnet.js +0 -214
  596. package/node_modules/highlight.js/lib/languages/vbscript-html.js +0 -24
  597. package/node_modules/highlight.js/lib/languages/vbscript.js +0 -109
  598. package/node_modules/highlight.js/lib/languages/verilog.js +0 -131
  599. package/node_modules/highlight.js/lib/languages/vhdl.js +0 -71
  600. package/node_modules/highlight.js/lib/languages/vim.js +0 -123
  601. package/node_modules/highlight.js/lib/languages/x86asm.js +0 -163
  602. package/node_modules/highlight.js/lib/languages/xl.js +0 -92
  603. package/node_modules/highlight.js/lib/languages/xml.js +0 -287
  604. package/node_modules/highlight.js/lib/languages/xquery.js +0 -197
  605. package/node_modules/highlight.js/lib/languages/yaml.js +0 -176
  606. package/node_modules/highlight.js/lib/languages/zephir.js +0 -140
  607. package/node_modules/highlight.js/package.json +0 -86
  608. package/node_modules/highlight.js/scss/a11y-dark.scss +0 -99
  609. package/node_modules/highlight.js/scss/a11y-light.scss +0 -99
  610. package/node_modules/highlight.js/scss/agate.scss +0 -108
  611. package/node_modules/highlight.js/scss/an-old-hope.scss +0 -89
  612. package/node_modules/highlight.js/scss/androidstudio.scss +0 -66
  613. package/node_modules/highlight.js/scss/arduino-light.scss +0 -87
  614. package/node_modules/highlight.js/scss/arta.scss +0 -73
  615. package/node_modules/highlight.js/scss/ascetic.scss +0 -45
  616. package/node_modules/highlight.js/scss/atelier-cave-dark.scss +0 -83
  617. package/node_modules/highlight.js/scss/atelier-cave-light.scss +0 -85
  618. package/node_modules/highlight.js/scss/atelier-dune-dark.scss +0 -69
  619. package/node_modules/highlight.js/scss/atelier-dune-light.scss +0 -69
  620. package/node_modules/highlight.js/scss/atelier-estuary-dark.scss +0 -84
  621. package/node_modules/highlight.js/scss/atelier-estuary-light.scss +0 -84
  622. package/node_modules/highlight.js/scss/atelier-forest-dark.scss +0 -69
  623. package/node_modules/highlight.js/scss/atelier-forest-light.scss +0 -69
  624. package/node_modules/highlight.js/scss/atelier-heath-dark.scss +0 -69
  625. package/node_modules/highlight.js/scss/atelier-heath-light.scss +0 -69
  626. package/node_modules/highlight.js/scss/atelier-lakeside-dark.scss +0 -69
  627. package/node_modules/highlight.js/scss/atelier-lakeside-light.scss +0 -69
  628. package/node_modules/highlight.js/scss/atelier-plateau-dark.scss +0 -84
  629. package/node_modules/highlight.js/scss/atelier-plateau-light.scss +0 -84
  630. package/node_modules/highlight.js/scss/atelier-savanna-dark.scss +0 -84
  631. package/node_modules/highlight.js/scss/atelier-savanna-light.scss +0 -84
  632. package/node_modules/highlight.js/scss/atelier-seaside-dark.scss +0 -69
  633. package/node_modules/highlight.js/scss/atelier-seaside-light.scss +0 -69
  634. package/node_modules/highlight.js/scss/atelier-sulphurpool-dark.scss +0 -69
  635. package/node_modules/highlight.js/scss/atelier-sulphurpool-light.scss +0 -69
  636. package/node_modules/highlight.js/scss/atom-one-dark-reasonable.scss +0 -75
  637. package/node_modules/highlight.js/scss/atom-one-dark.scss +0 -96
  638. package/node_modules/highlight.js/scss/atom-one-light.scss +0 -96
  639. package/node_modules/highlight.js/scss/brown-paper.scss +0 -64
  640. package/node_modules/highlight.js/scss/brown-papersq.png +0 -0
  641. package/node_modules/highlight.js/scss/codepen-embed.scss +0 -60
  642. package/node_modules/highlight.js/scss/color-brewer.scss +0 -71
  643. package/node_modules/highlight.js/scss/darcula.scss +0 -74
  644. package/node_modules/highlight.js/scss/dark.scss +0 -63
  645. package/node_modules/highlight.js/scss/default.scss +0 -99
  646. package/node_modules/highlight.js/scss/docco.scss +0 -97
  647. package/node_modules/highlight.js/scss/dracula.scss +0 -76
  648. package/node_modules/highlight.js/scss/far.scss +0 -71
  649. package/node_modules/highlight.js/scss/foundation.scss +0 -89
  650. package/node_modules/highlight.js/scss/github-gist.scss +0 -79
  651. package/node_modules/highlight.js/scss/github.scss +0 -99
  652. package/node_modules/highlight.js/scss/gml.scss +0 -78
  653. package/node_modules/highlight.js/scss/googlecode.scss +0 -89
  654. package/node_modules/highlight.js/scss/gradient-dark.scss +0 -122
  655. package/node_modules/highlight.js/scss/gradient-light.scss +0 -130
  656. package/node_modules/highlight.js/scss/grayscale.scss +0 -101
  657. package/node_modules/highlight.js/scss/gruvbox-dark.scss +0 -108
  658. package/node_modules/highlight.js/scss/gruvbox-light.scss +0 -108
  659. package/node_modules/highlight.js/scss/hopscotch.scss +0 -84
  660. package/node_modules/highlight.js/scss/hybrid.scss +0 -102
  661. package/node_modules/highlight.js/scss/idea.scss +0 -97
  662. package/node_modules/highlight.js/scss/ir-black.scss +0 -73
  663. package/node_modules/highlight.js/scss/isbl-editor-dark.scss +0 -112
  664. package/node_modules/highlight.js/scss/isbl-editor-light.scss +0 -111
  665. package/node_modules/highlight.js/scss/kimbie.dark.scss +0 -74
  666. package/node_modules/highlight.js/scss/kimbie.light.scss +0 -74
  667. package/node_modules/highlight.js/scss/lightfair.scss +0 -88
  668. package/node_modules/highlight.js/scss/lioshi.scss +0 -88
  669. package/node_modules/highlight.js/scss/magula.scss +0 -70
  670. package/node_modules/highlight.js/scss/mono-blue.scss +0 -56
  671. package/node_modules/highlight.js/scss/monokai-sublime.scss +0 -83
  672. package/node_modules/highlight.js/scss/monokai.scss +0 -71
  673. package/node_modules/highlight.js/scss/night-owl.scss +0 -182
  674. package/node_modules/highlight.js/scss/nnfx-dark.scss +0 -106
  675. package/node_modules/highlight.js/scss/nnfx.scss +0 -106
  676. package/node_modules/highlight.js/scss/nord.scss +0 -309
  677. package/node_modules/highlight.js/scss/obsidian.scss +0 -88
  678. package/node_modules/highlight.js/scss/ocean.scss +0 -74
  679. package/node_modules/highlight.js/scss/paraiso-dark.scss +0 -72
  680. package/node_modules/highlight.js/scss/paraiso-light.scss +0 -72
  681. package/node_modules/highlight.js/scss/pojoaque.jpg +0 -0
  682. package/node_modules/highlight.js/scss/pojoaque.scss +0 -83
  683. package/node_modules/highlight.js/scss/purebasic.scss +0 -96
  684. package/node_modules/highlight.js/scss/qtcreator_dark.scss +0 -83
  685. package/node_modules/highlight.js/scss/qtcreator_light.scss +0 -83
  686. package/node_modules/highlight.js/scss/railscasts.scss +0 -106
  687. package/node_modules/highlight.js/scss/rainbow.scss +0 -85
  688. package/node_modules/highlight.js/scss/routeros.scss +0 -108
  689. package/node_modules/highlight.js/scss/school-book.png +0 -0
  690. package/node_modules/highlight.js/scss/school-book.scss +0 -69
  691. package/node_modules/highlight.js/scss/shades-of-purple.scss +0 -96
  692. package/node_modules/highlight.js/scss/solarized-dark.scss +0 -84
  693. package/node_modules/highlight.js/scss/solarized-light.scss +0 -84
  694. package/node_modules/highlight.js/scss/srcery.scss +0 -78
  695. package/node_modules/highlight.js/scss/stackoverflow-dark.scss +0 -78
  696. package/node_modules/highlight.js/scss/stackoverflow-light.scss +0 -78
  697. package/node_modules/highlight.js/scss/sunburst.scss +0 -102
  698. package/node_modules/highlight.js/scss/tomorrow-night-blue.scss +0 -75
  699. package/node_modules/highlight.js/scss/tomorrow-night-bright.scss +0 -74
  700. package/node_modules/highlight.js/scss/tomorrow-night-eighties.scss +0 -74
  701. package/node_modules/highlight.js/scss/tomorrow-night.scss +0 -75
  702. package/node_modules/highlight.js/scss/tomorrow.scss +0 -72
  703. package/node_modules/highlight.js/scss/vs.scss +0 -68
  704. package/node_modules/highlight.js/scss/vs2015.scss +0 -115
  705. package/node_modules/highlight.js/scss/xcode.scss +0 -104
  706. package/node_modules/highlight.js/scss/xt256.scss +0 -92
  707. package/node_modules/highlight.js/scss/zenburn.scss +0 -80
  708. package/node_modules/highlight.js/styles/a11y-dark.css +0 -99
  709. package/node_modules/highlight.js/styles/a11y-light.css +0 -99
  710. package/node_modules/highlight.js/styles/agate.css +0 -108
  711. package/node_modules/highlight.js/styles/an-old-hope.css +0 -89
  712. package/node_modules/highlight.js/styles/androidstudio.css +0 -66
  713. package/node_modules/highlight.js/styles/arduino-light.css +0 -87
  714. package/node_modules/highlight.js/styles/arta.css +0 -73
  715. package/node_modules/highlight.js/styles/ascetic.css +0 -45
  716. package/node_modules/highlight.js/styles/atelier-cave-dark.css +0 -83
  717. package/node_modules/highlight.js/styles/atelier-cave-light.css +0 -85
  718. package/node_modules/highlight.js/styles/atelier-dune-dark.css +0 -69
  719. package/node_modules/highlight.js/styles/atelier-dune-light.css +0 -69
  720. package/node_modules/highlight.js/styles/atelier-estuary-dark.css +0 -84
  721. package/node_modules/highlight.js/styles/atelier-estuary-light.css +0 -84
  722. package/node_modules/highlight.js/styles/atelier-forest-dark.css +0 -69
  723. package/node_modules/highlight.js/styles/atelier-forest-light.css +0 -69
  724. package/node_modules/highlight.js/styles/atelier-heath-dark.css +0 -69
  725. package/node_modules/highlight.js/styles/atelier-heath-light.css +0 -69
  726. package/node_modules/highlight.js/styles/atelier-lakeside-dark.css +0 -69
  727. package/node_modules/highlight.js/styles/atelier-lakeside-light.css +0 -69
  728. package/node_modules/highlight.js/styles/atelier-plateau-dark.css +0 -84
  729. package/node_modules/highlight.js/styles/atelier-plateau-light.css +0 -84
  730. package/node_modules/highlight.js/styles/atelier-savanna-dark.css +0 -84
  731. package/node_modules/highlight.js/styles/atelier-savanna-light.css +0 -84
  732. package/node_modules/highlight.js/styles/atelier-seaside-dark.css +0 -69
  733. package/node_modules/highlight.js/styles/atelier-seaside-light.css +0 -69
  734. package/node_modules/highlight.js/styles/atelier-sulphurpool-dark.css +0 -69
  735. package/node_modules/highlight.js/styles/atelier-sulphurpool-light.css +0 -69
  736. package/node_modules/highlight.js/styles/atom-one-dark-reasonable.css +0 -75
  737. package/node_modules/highlight.js/styles/atom-one-dark.css +0 -96
  738. package/node_modules/highlight.js/styles/atom-one-light.css +0 -96
  739. package/node_modules/highlight.js/styles/brown-paper.css +0 -64
  740. package/node_modules/highlight.js/styles/brown-papersq.png +0 -0
  741. package/node_modules/highlight.js/styles/codepen-embed.css +0 -60
  742. package/node_modules/highlight.js/styles/color-brewer.css +0 -71
  743. package/node_modules/highlight.js/styles/darcula.css +0 -74
  744. package/node_modules/highlight.js/styles/dark.css +0 -63
  745. package/node_modules/highlight.js/styles/default.css +0 -99
  746. package/node_modules/highlight.js/styles/docco.css +0 -97
  747. package/node_modules/highlight.js/styles/dracula.css +0 -76
  748. package/node_modules/highlight.js/styles/far.css +0 -71
  749. package/node_modules/highlight.js/styles/foundation.css +0 -89
  750. package/node_modules/highlight.js/styles/github-gist.css +0 -79
  751. package/node_modules/highlight.js/styles/github.css +0 -99
  752. package/node_modules/highlight.js/styles/gml.css +0 -78
  753. package/node_modules/highlight.js/styles/googlecode.css +0 -89
  754. package/node_modules/highlight.js/styles/gradient-dark.css +0 -122
  755. package/node_modules/highlight.js/styles/gradient-light.css +0 -130
  756. package/node_modules/highlight.js/styles/grayscale.css +0 -101
  757. package/node_modules/highlight.js/styles/gruvbox-dark.css +0 -108
  758. package/node_modules/highlight.js/styles/gruvbox-light.css +0 -108
  759. package/node_modules/highlight.js/styles/hopscotch.css +0 -84
  760. package/node_modules/highlight.js/styles/hybrid.css +0 -102
  761. package/node_modules/highlight.js/styles/idea.css +0 -97
  762. package/node_modules/highlight.js/styles/ir-black.css +0 -73
  763. package/node_modules/highlight.js/styles/isbl-editor-dark.css +0 -112
  764. package/node_modules/highlight.js/styles/isbl-editor-light.css +0 -111
  765. package/node_modules/highlight.js/styles/kimbie.dark.css +0 -74
  766. package/node_modules/highlight.js/styles/kimbie.light.css +0 -74
  767. package/node_modules/highlight.js/styles/lightfair.css +0 -88
  768. package/node_modules/highlight.js/styles/lioshi.css +0 -88
  769. package/node_modules/highlight.js/styles/magula.css +0 -70
  770. package/node_modules/highlight.js/styles/mono-blue.css +0 -56
  771. package/node_modules/highlight.js/styles/monokai-sublime.css +0 -83
  772. package/node_modules/highlight.js/styles/monokai.css +0 -71
  773. package/node_modules/highlight.js/styles/night-owl.css +0 -182
  774. package/node_modules/highlight.js/styles/nnfx-dark.css +0 -106
  775. package/node_modules/highlight.js/styles/nnfx.css +0 -106
  776. package/node_modules/highlight.js/styles/nord.css +0 -309
  777. package/node_modules/highlight.js/styles/obsidian.css +0 -88
  778. package/node_modules/highlight.js/styles/ocean.css +0 -74
  779. package/node_modules/highlight.js/styles/paraiso-dark.css +0 -72
  780. package/node_modules/highlight.js/styles/paraiso-light.css +0 -72
  781. package/node_modules/highlight.js/styles/pojoaque.css +0 -83
  782. package/node_modules/highlight.js/styles/pojoaque.jpg +0 -0
  783. package/node_modules/highlight.js/styles/purebasic.css +0 -96
  784. package/node_modules/highlight.js/styles/qtcreator_dark.css +0 -83
  785. package/node_modules/highlight.js/styles/qtcreator_light.css +0 -83
  786. package/node_modules/highlight.js/styles/railscasts.css +0 -106
  787. package/node_modules/highlight.js/styles/rainbow.css +0 -85
  788. package/node_modules/highlight.js/styles/routeros.css +0 -108
  789. package/node_modules/highlight.js/styles/school-book.css +0 -69
  790. package/node_modules/highlight.js/styles/school-book.png +0 -0
  791. package/node_modules/highlight.js/styles/shades-of-purple.css +0 -96
  792. package/node_modules/highlight.js/styles/solarized-dark.css +0 -84
  793. package/node_modules/highlight.js/styles/solarized-light.css +0 -84
  794. package/node_modules/highlight.js/styles/srcery.css +0 -78
  795. package/node_modules/highlight.js/styles/stackoverflow-dark.css +0 -78
  796. package/node_modules/highlight.js/styles/stackoverflow-light.css +0 -78
  797. package/node_modules/highlight.js/styles/sunburst.css +0 -102
  798. package/node_modules/highlight.js/styles/tomorrow-night-blue.css +0 -75
  799. package/node_modules/highlight.js/styles/tomorrow-night-bright.css +0 -74
  800. package/node_modules/highlight.js/styles/tomorrow-night-eighties.css +0 -74
  801. package/node_modules/highlight.js/styles/tomorrow-night.css +0 -75
  802. package/node_modules/highlight.js/styles/tomorrow.css +0 -72
  803. package/node_modules/highlight.js/styles/vs.css +0 -68
  804. package/node_modules/highlight.js/styles/vs2015.css +0 -115
  805. package/node_modules/highlight.js/styles/xcode.css +0 -104
  806. package/node_modules/highlight.js/styles/xt256.css +0 -92
  807. package/node_modules/highlight.js/styles/zenburn.css +0 -80
  808. package/node_modules/highlight.js/types/index.d.ts +0 -261
  809. package/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  810. package/node_modules/is-fullwidth-code-point/index.js +0 -50
  811. package/node_modules/is-fullwidth-code-point/license +0 -9
  812. package/node_modules/is-fullwidth-code-point/package.json +0 -42
  813. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  814. package/node_modules/mz/HISTORY.md +0 -66
  815. package/node_modules/mz/LICENSE +0 -22
  816. package/node_modules/mz/README.md +0 -106
  817. package/node_modules/mz/child_process.js +0 -8
  818. package/node_modules/mz/crypto.js +0 -9
  819. package/node_modules/mz/dns.js +0 -16
  820. package/node_modules/mz/fs.js +0 -62
  821. package/node_modules/mz/index.js +0 -8
  822. package/node_modules/mz/package.json +0 -44
  823. package/node_modules/mz/readline.js +0 -64
  824. package/node_modules/mz/zlib.js +0 -13
  825. package/node_modules/object-assign/index.js +0 -90
  826. package/node_modules/object-assign/license +0 -21
  827. package/node_modules/object-assign/package.json +0 -42
  828. package/node_modules/object-assign/readme.md +0 -61
  829. package/node_modules/parse5/LICENSE +0 -19
  830. package/node_modules/parse5/README.md +0 -38
  831. package/node_modules/parse5/lib/common/doctype.js +0 -162
  832. package/node_modules/parse5/lib/common/error-codes.js +0 -65
  833. package/node_modules/parse5/lib/common/foreign-content.js +0 -265
  834. package/node_modules/parse5/lib/common/html.js +0 -272
  835. package/node_modules/parse5/lib/common/unicode.js +0 -109
  836. package/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js +0 -43
  837. package/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js +0 -52
  838. package/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +0 -24
  839. package/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +0 -17
  840. package/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js +0 -35
  841. package/node_modules/parse5/lib/extensions/location-info/parser-mixin.js +0 -222
  842. package/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js +0 -146
  843. package/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +0 -64
  844. package/node_modules/parse5/lib/index.js +0 -29
  845. package/node_modules/parse5/lib/parser/formatting-element-list.js +0 -181
  846. package/node_modules/parse5/lib/parser/index.js +0 -2956
  847. package/node_modules/parse5/lib/parser/open-element-stack.js +0 -482
  848. package/node_modules/parse5/lib/serializer/index.js +0 -176
  849. package/node_modules/parse5/lib/tokenizer/index.js +0 -2196
  850. package/node_modules/parse5/lib/tokenizer/named-entity-data.js +0 -5
  851. package/node_modules/parse5/lib/tokenizer/preprocessor.js +0 -159
  852. package/node_modules/parse5/lib/tree-adapters/default.js +0 -217
  853. package/node_modules/parse5/lib/utils/merge-options.js +0 -13
  854. package/node_modules/parse5/lib/utils/mixin.js +0 -39
  855. package/node_modules/parse5/package.json +0 -35
  856. package/node_modules/parse5-htmlparser2-tree-adapter/LICENSE +0 -19
  857. package/node_modules/parse5-htmlparser2-tree-adapter/README.md +0 -34
  858. package/node_modules/parse5-htmlparser2-tree-adapter/lib/index.js +0 -348
  859. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/LICENSE +0 -19
  860. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/README.md +0 -38
  861. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/doctype.js +0 -162
  862. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/error-codes.js +0 -65
  863. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/foreign-content.js +0 -265
  864. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/html.js +0 -272
  865. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/unicode.js +0 -109
  866. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js +0 -43
  867. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js +0 -52
  868. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +0 -24
  869. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +0 -17
  870. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js +0 -35
  871. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/location-info/parser-mixin.js +0 -223
  872. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js +0 -146
  873. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +0 -64
  874. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/index.js +0 -29
  875. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/parser/formatting-element-list.js +0 -181
  876. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/parser/index.js +0 -2956
  877. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/parser/open-element-stack.js +0 -482
  878. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/serializer/index.js +0 -176
  879. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tokenizer/index.js +0 -2196
  880. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tokenizer/named-entity-data.js +0 -5
  881. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tokenizer/preprocessor.js +0 -159
  882. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tree-adapters/default.js +0 -221
  883. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/utils/merge-options.js +0 -13
  884. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/utils/mixin.js +0 -39
  885. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/package.json +0 -35
  886. package/node_modules/parse5-htmlparser2-tree-adapter/package.json +0 -27
  887. package/node_modules/proper-lockfile/CHANGELOG.md +0 -108
  888. package/node_modules/require-directory/.jshintrc +0 -67
  889. package/node_modules/require-directory/.npmignore +0 -1
  890. package/node_modules/require-directory/.travis.yml +0 -3
  891. package/node_modules/require-directory/LICENSE +0 -22
  892. package/node_modules/require-directory/README.markdown +0 -184
  893. package/node_modules/require-directory/index.js +0 -86
  894. package/node_modules/require-directory/package.json +0 -40
  895. package/node_modules/source-map/CHANGELOG.md +0 -301
  896. package/node_modules/string-width/index.d.ts +0 -29
  897. package/node_modules/string-width/index.js +0 -47
  898. package/node_modules/string-width/license +0 -9
  899. package/node_modules/string-width/node_modules/ansi-regex/index.d.ts +0 -37
  900. package/node_modules/string-width/node_modules/ansi-regex/index.js +0 -10
  901. package/node_modules/string-width/node_modules/ansi-regex/license +0 -9
  902. package/node_modules/string-width/node_modules/ansi-regex/package.json +0 -55
  903. package/node_modules/string-width/node_modules/ansi-regex/readme.md +0 -78
  904. package/node_modules/string-width/node_modules/strip-ansi/index.d.ts +0 -17
  905. package/node_modules/string-width/node_modules/strip-ansi/index.js +0 -4
  906. package/node_modules/string-width/node_modules/strip-ansi/license +0 -9
  907. package/node_modules/string-width/node_modules/strip-ansi/package.json +0 -54
  908. package/node_modules/string-width/node_modules/strip-ansi/readme.md +0 -46
  909. package/node_modules/string-width/package.json +0 -56
  910. package/node_modules/string-width/readme.md +0 -50
  911. package/node_modules/supports-color/browser.js +0 -5
  912. package/node_modules/supports-color/index.js +0 -135
  913. package/node_modules/supports-color/license +0 -9
  914. package/node_modules/supports-color/package.json +0 -53
  915. package/node_modules/supports-color/readme.md +0 -76
  916. package/node_modules/thenify/History.md +0 -11
  917. package/node_modules/thenify/LICENSE +0 -22
  918. package/node_modules/thenify/README.md +0 -120
  919. package/node_modules/thenify/index.js +0 -77
  920. package/node_modules/thenify/package.json +0 -31
  921. package/node_modules/thenify-all/History.md +0 -11
  922. package/node_modules/thenify-all/LICENSE +0 -22
  923. package/node_modules/thenify-all/README.md +0 -66
  924. package/node_modules/thenify-all/index.js +0 -73
  925. package/node_modules/thenify-all/package.json +0 -34
  926. package/node_modules/wrap-ansi/index.js +0 -216
  927. package/node_modules/wrap-ansi/license +0 -9
  928. package/node_modules/wrap-ansi/node_modules/ansi-regex/index.d.ts +0 -37
  929. package/node_modules/wrap-ansi/node_modules/ansi-regex/index.js +0 -10
  930. package/node_modules/wrap-ansi/node_modules/ansi-regex/license +0 -9
  931. package/node_modules/wrap-ansi/node_modules/ansi-regex/package.json +0 -55
  932. package/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +0 -78
  933. package/node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts +0 -17
  934. package/node_modules/wrap-ansi/node_modules/strip-ansi/index.js +0 -4
  935. package/node_modules/wrap-ansi/node_modules/strip-ansi/license +0 -9
  936. package/node_modules/wrap-ansi/node_modules/strip-ansi/package.json +0 -54
  937. package/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +0 -46
  938. package/node_modules/wrap-ansi/package.json +0 -62
  939. package/node_modules/wrap-ansi/readme.md +0 -91
  940. package/node_modules/y18n/CHANGELOG.md +0 -100
  941. package/node_modules/y18n/LICENSE +0 -13
  942. package/node_modules/y18n/README.md +0 -127
  943. package/node_modules/y18n/build/index.cjs +0 -203
  944. package/node_modules/y18n/build/lib/cjs.js +0 -6
  945. package/node_modules/y18n/build/lib/index.js +0 -174
  946. package/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
  947. package/node_modules/y18n/index.mjs +0 -8
  948. package/node_modules/y18n/package.json +0 -70
  949. package/node_modules/yargs/CHANGELOG.md +0 -88
  950. package/node_modules/yargs/LICENSE +0 -21
  951. package/node_modules/yargs/README.md +0 -202
  952. package/node_modules/yargs/browser.mjs +0 -7
  953. package/node_modules/yargs/build/index.cjs +0 -2920
  954. package/node_modules/yargs/build/lib/argsert.js +0 -62
  955. package/node_modules/yargs/build/lib/command.js +0 -382
  956. package/node_modules/yargs/build/lib/completion-templates.js +0 -47
  957. package/node_modules/yargs/build/lib/completion.js +0 -128
  958. package/node_modules/yargs/build/lib/middleware.js +0 -53
  959. package/node_modules/yargs/build/lib/parse-command.js +0 -32
  960. package/node_modules/yargs/build/lib/typings/common-types.js +0 -9
  961. package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +0 -1
  962. package/node_modules/yargs/build/lib/usage.js +0 -548
  963. package/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
  964. package/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
  965. package/node_modules/yargs/build/lib/utils/levenshtein.js +0 -26
  966. package/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
  967. package/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
  968. package/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
  969. package/node_modules/yargs/build/lib/utils/which-module.js +0 -10
  970. package/node_modules/yargs/build/lib/validation.js +0 -308
  971. package/node_modules/yargs/build/lib/yargs-factory.js +0 -1143
  972. package/node_modules/yargs/build/lib/yerror.js +0 -7
  973. package/node_modules/yargs/helpers/helpers.mjs +0 -10
  974. package/node_modules/yargs/helpers/index.js +0 -14
  975. package/node_modules/yargs/helpers/package.json +0 -3
  976. package/node_modules/yargs/index.cjs +0 -39
  977. package/node_modules/yargs/index.mjs +0 -8
  978. package/node_modules/yargs/lib/platform-shims/browser.mjs +0 -92
  979. package/node_modules/yargs/lib/platform-shims/esm.mjs +0 -67
  980. package/node_modules/yargs/locales/be.json +0 -46
  981. package/node_modules/yargs/locales/de.json +0 -46
  982. package/node_modules/yargs/locales/en.json +0 -51
  983. package/node_modules/yargs/locales/es.json +0 -46
  984. package/node_modules/yargs/locales/fi.json +0 -49
  985. package/node_modules/yargs/locales/fr.json +0 -53
  986. package/node_modules/yargs/locales/hi.json +0 -49
  987. package/node_modules/yargs/locales/hu.json +0 -46
  988. package/node_modules/yargs/locales/id.json +0 -50
  989. package/node_modules/yargs/locales/it.json +0 -46
  990. package/node_modules/yargs/locales/ja.json +0 -51
  991. package/node_modules/yargs/locales/ko.json +0 -49
  992. package/node_modules/yargs/locales/nb.json +0 -44
  993. package/node_modules/yargs/locales/nl.json +0 -49
  994. package/node_modules/yargs/locales/nn.json +0 -44
  995. package/node_modules/yargs/locales/pirate.json +0 -13
  996. package/node_modules/yargs/locales/pl.json +0 -49
  997. package/node_modules/yargs/locales/pt.json +0 -45
  998. package/node_modules/yargs/locales/pt_BR.json +0 -48
  999. package/node_modules/yargs/locales/ru.json +0 -46
  1000. package/node_modules/yargs/locales/th.json +0 -46
  1001. package/node_modules/yargs/locales/tr.json +0 -48
  1002. package/node_modules/yargs/locales/zh_CN.json +0 -48
  1003. package/node_modules/yargs/locales/zh_TW.json +0 -47
  1004. package/node_modules/yargs/package.json +0 -122
  1005. package/node_modules/yargs/yargs +0 -9
  1006. package/node_modules/yargs-parser/CHANGELOG.md +0 -263
  1007. package/node_modules/yargs-parser/LICENSE.txt +0 -14
  1008. package/node_modules/yargs-parser/README.md +0 -518
  1009. package/node_modules/yargs-parser/browser.js +0 -29
  1010. package/node_modules/yargs-parser/build/index.cjs +0 -1042
  1011. package/node_modules/yargs-parser/build/lib/index.js +0 -59
  1012. package/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
  1013. package/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
  1014. package/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
  1015. package/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1037
  1016. package/node_modules/yargs-parser/package.json +0 -87
@@ -1,1037 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2016, Contributors
4
- * SPDX-License-Identifier: ISC
5
- */
6
- import { tokenizeArgString } from './tokenize-arg-string.js';
7
- import { DefaultValuesForTypeKey } from './yargs-parser-types.js';
8
- import { camelCase, decamelize, looksLikeNumber } from './string-utils.js';
9
- let mixin;
10
- export class YargsParser {
11
- constructor(_mixin) {
12
- mixin = _mixin;
13
- }
14
- parse(argsInput, options) {
15
- const opts = Object.assign({
16
- alias: undefined,
17
- array: undefined,
18
- boolean: undefined,
19
- config: undefined,
20
- configObjects: undefined,
21
- configuration: undefined,
22
- coerce: undefined,
23
- count: undefined,
24
- default: undefined,
25
- envPrefix: undefined,
26
- narg: undefined,
27
- normalize: undefined,
28
- string: undefined,
29
- number: undefined,
30
- __: undefined,
31
- key: undefined
32
- }, options);
33
- // allow a string argument to be passed in rather
34
- // than an argv array.
35
- const args = tokenizeArgString(argsInput);
36
- // aliases might have transitive relationships, normalize this.
37
- const aliases = combineAliases(Object.assign(Object.create(null), opts.alias));
38
- const configuration = Object.assign({
39
- 'boolean-negation': true,
40
- 'camel-case-expansion': true,
41
- 'combine-arrays': false,
42
- 'dot-notation': true,
43
- 'duplicate-arguments-array': true,
44
- 'flatten-duplicate-arrays': true,
45
- 'greedy-arrays': true,
46
- 'halt-at-non-option': false,
47
- 'nargs-eats-options': false,
48
- 'negation-prefix': 'no-',
49
- 'parse-numbers': true,
50
- 'parse-positional-numbers': true,
51
- 'populate--': false,
52
- 'set-placeholder-key': false,
53
- 'short-option-groups': true,
54
- 'strip-aliased': false,
55
- 'strip-dashed': false,
56
- 'unknown-options-as-args': false
57
- }, opts.configuration);
58
- const defaults = Object.assign(Object.create(null), opts.default);
59
- const configObjects = opts.configObjects || [];
60
- const envPrefix = opts.envPrefix;
61
- const notFlagsOption = configuration['populate--'];
62
- const notFlagsArgv = notFlagsOption ? '--' : '_';
63
- const newAliases = Object.create(null);
64
- const defaulted = Object.create(null);
65
- // allow a i18n handler to be passed in, default to a fake one (util.format).
66
- const __ = opts.__ || mixin.format;
67
- const flags = {
68
- aliases: Object.create(null),
69
- arrays: Object.create(null),
70
- bools: Object.create(null),
71
- strings: Object.create(null),
72
- numbers: Object.create(null),
73
- counts: Object.create(null),
74
- normalize: Object.create(null),
75
- configs: Object.create(null),
76
- nargs: Object.create(null),
77
- coercions: Object.create(null),
78
- keys: []
79
- };
80
- const negative = /^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/;
81
- const negatedBoolean = new RegExp('^--' + configuration['negation-prefix'] + '(.+)');
82
- [].concat(opts.array || []).filter(Boolean).forEach(function (opt) {
83
- const key = typeof opt === 'object' ? opt.key : opt;
84
- // assign to flags[bools|strings|numbers]
85
- const assignment = Object.keys(opt).map(function (key) {
86
- const arrayFlagKeys = {
87
- boolean: 'bools',
88
- string: 'strings',
89
- number: 'numbers'
90
- };
91
- return arrayFlagKeys[key];
92
- }).filter(Boolean).pop();
93
- // assign key to be coerced
94
- if (assignment) {
95
- flags[assignment][key] = true;
96
- }
97
- flags.arrays[key] = true;
98
- flags.keys.push(key);
99
- });
100
- [].concat(opts.boolean || []).filter(Boolean).forEach(function (key) {
101
- flags.bools[key] = true;
102
- flags.keys.push(key);
103
- });
104
- [].concat(opts.string || []).filter(Boolean).forEach(function (key) {
105
- flags.strings[key] = true;
106
- flags.keys.push(key);
107
- });
108
- [].concat(opts.number || []).filter(Boolean).forEach(function (key) {
109
- flags.numbers[key] = true;
110
- flags.keys.push(key);
111
- });
112
- [].concat(opts.count || []).filter(Boolean).forEach(function (key) {
113
- flags.counts[key] = true;
114
- flags.keys.push(key);
115
- });
116
- [].concat(opts.normalize || []).filter(Boolean).forEach(function (key) {
117
- flags.normalize[key] = true;
118
- flags.keys.push(key);
119
- });
120
- if (typeof opts.narg === 'object') {
121
- Object.entries(opts.narg).forEach(([key, value]) => {
122
- if (typeof value === 'number') {
123
- flags.nargs[key] = value;
124
- flags.keys.push(key);
125
- }
126
- });
127
- }
128
- if (typeof opts.coerce === 'object') {
129
- Object.entries(opts.coerce).forEach(([key, value]) => {
130
- if (typeof value === 'function') {
131
- flags.coercions[key] = value;
132
- flags.keys.push(key);
133
- }
134
- });
135
- }
136
- if (typeof opts.config !== 'undefined') {
137
- if (Array.isArray(opts.config) || typeof opts.config === 'string') {
138
- ;
139
- [].concat(opts.config).filter(Boolean).forEach(function (key) {
140
- flags.configs[key] = true;
141
- });
142
- }
143
- else if (typeof opts.config === 'object') {
144
- Object.entries(opts.config).forEach(([key, value]) => {
145
- if (typeof value === 'boolean' || typeof value === 'function') {
146
- flags.configs[key] = value;
147
- }
148
- });
149
- }
150
- }
151
- // create a lookup table that takes into account all
152
- // combinations of aliases: {f: ['foo'], foo: ['f']}
153
- extendAliases(opts.key, aliases, opts.default, flags.arrays);
154
- // apply default values to all aliases.
155
- Object.keys(defaults).forEach(function (key) {
156
- (flags.aliases[key] || []).forEach(function (alias) {
157
- defaults[alias] = defaults[key];
158
- });
159
- });
160
- let error = null;
161
- checkConfiguration();
162
- let notFlags = [];
163
- const argv = Object.assign(Object.create(null), { _: [] });
164
- // TODO(bcoe): for the first pass at removing object prototype we didn't
165
- // remove all prototypes from objects returned by this API, we might want
166
- // to gradually move towards doing so.
167
- const argvReturn = {};
168
- for (let i = 0; i < args.length; i++) {
169
- const arg = args[i];
170
- const truncatedArg = arg.replace(/^-{3,}/, '---');
171
- let broken;
172
- let key;
173
- let letters;
174
- let m;
175
- let next;
176
- let value;
177
- // any unknown option (except for end-of-options, "--")
178
- if (arg !== '--' && isUnknownOptionAsArg(arg)) {
179
- pushPositional(arg);
180
- // ---, ---=, ----, etc,
181
- }
182
- else if (truncatedArg.match(/---+(=|$)/)) {
183
- // options without key name are invalid.
184
- pushPositional(arg);
185
- continue;
186
- // -- separated by =
187
- }
188
- else if (arg.match(/^--.+=/) || (!configuration['short-option-groups'] && arg.match(/^-.+=/))) {
189
- // Using [\s\S] instead of . because js doesn't support the
190
- // 'dotall' regex modifier. See:
191
- // http://stackoverflow.com/a/1068308/13216
192
- m = arg.match(/^--?([^=]+)=([\s\S]*)$/);
193
- // arrays format = '--f=a b c'
194
- if (m !== null && Array.isArray(m) && m.length >= 3) {
195
- if (checkAllAliases(m[1], flags.arrays)) {
196
- i = eatArray(i, m[1], args, m[2]);
197
- }
198
- else if (checkAllAliases(m[1], flags.nargs) !== false) {
199
- // nargs format = '--f=monkey washing cat'
200
- i = eatNargs(i, m[1], args, m[2]);
201
- }
202
- else {
203
- setArg(m[1], m[2]);
204
- }
205
- }
206
- }
207
- else if (arg.match(negatedBoolean) && configuration['boolean-negation']) {
208
- m = arg.match(negatedBoolean);
209
- if (m !== null && Array.isArray(m) && m.length >= 2) {
210
- key = m[1];
211
- setArg(key, checkAllAliases(key, flags.arrays) ? [false] : false);
212
- }
213
- // -- separated by space.
214
- }
215
- else if (arg.match(/^--.+/) || (!configuration['short-option-groups'] && arg.match(/^-[^-]+/))) {
216
- m = arg.match(/^--?(.+)/);
217
- if (m !== null && Array.isArray(m) && m.length >= 2) {
218
- key = m[1];
219
- if (checkAllAliases(key, flags.arrays)) {
220
- // array format = '--foo a b c'
221
- i = eatArray(i, key, args);
222
- }
223
- else if (checkAllAliases(key, flags.nargs) !== false) {
224
- // nargs format = '--foo a b c'
225
- // should be truthy even if: flags.nargs[key] === 0
226
- i = eatNargs(i, key, args);
227
- }
228
- else {
229
- next = args[i + 1];
230
- if (next !== undefined && (!next.match(/^-/) ||
231
- next.match(negative)) &&
232
- !checkAllAliases(key, flags.bools) &&
233
- !checkAllAliases(key, flags.counts)) {
234
- setArg(key, next);
235
- i++;
236
- }
237
- else if (/^(true|false)$/.test(next)) {
238
- setArg(key, next);
239
- i++;
240
- }
241
- else {
242
- setArg(key, defaultValue(key));
243
- }
244
- }
245
- }
246
- // dot-notation flag separated by '='.
247
- }
248
- else if (arg.match(/^-.\..+=/)) {
249
- m = arg.match(/^-([^=]+)=([\s\S]*)$/);
250
- if (m !== null && Array.isArray(m) && m.length >= 3) {
251
- setArg(m[1], m[2]);
252
- }
253
- // dot-notation flag separated by space.
254
- }
255
- else if (arg.match(/^-.\..+/) && !arg.match(negative)) {
256
- next = args[i + 1];
257
- m = arg.match(/^-(.\..+)/);
258
- if (m !== null && Array.isArray(m) && m.length >= 2) {
259
- key = m[1];
260
- if (next !== undefined && !next.match(/^-/) &&
261
- !checkAllAliases(key, flags.bools) &&
262
- !checkAllAliases(key, flags.counts)) {
263
- setArg(key, next);
264
- i++;
265
- }
266
- else {
267
- setArg(key, defaultValue(key));
268
- }
269
- }
270
- }
271
- else if (arg.match(/^-[^-]+/) && !arg.match(negative)) {
272
- letters = arg.slice(1, -1).split('');
273
- broken = false;
274
- for (let j = 0; j < letters.length; j++) {
275
- next = arg.slice(j + 2);
276
- if (letters[j + 1] && letters[j + 1] === '=') {
277
- value = arg.slice(j + 3);
278
- key = letters[j];
279
- if (checkAllAliases(key, flags.arrays)) {
280
- // array format = '-f=a b c'
281
- i = eatArray(i, key, args, value);
282
- }
283
- else if (checkAllAliases(key, flags.nargs) !== false) {
284
- // nargs format = '-f=monkey washing cat'
285
- i = eatNargs(i, key, args, value);
286
- }
287
- else {
288
- setArg(key, value);
289
- }
290
- broken = true;
291
- break;
292
- }
293
- if (next === '-') {
294
- setArg(letters[j], next);
295
- continue;
296
- }
297
- // current letter is an alphabetic character and next value is a number
298
- if (/[A-Za-z]/.test(letters[j]) &&
299
- /^-?\d+(\.\d*)?(e-?\d+)?$/.test(next) &&
300
- checkAllAliases(next, flags.bools) === false) {
301
- setArg(letters[j], next);
302
- broken = true;
303
- break;
304
- }
305
- if (letters[j + 1] && letters[j + 1].match(/\W/)) {
306
- setArg(letters[j], next);
307
- broken = true;
308
- break;
309
- }
310
- else {
311
- setArg(letters[j], defaultValue(letters[j]));
312
- }
313
- }
314
- key = arg.slice(-1)[0];
315
- if (!broken && key !== '-') {
316
- if (checkAllAliases(key, flags.arrays)) {
317
- // array format = '-f a b c'
318
- i = eatArray(i, key, args);
319
- }
320
- else if (checkAllAliases(key, flags.nargs) !== false) {
321
- // nargs format = '-f a b c'
322
- // should be truthy even if: flags.nargs[key] === 0
323
- i = eatNargs(i, key, args);
324
- }
325
- else {
326
- next = args[i + 1];
327
- if (next !== undefined && (!/^(-|--)[^-]/.test(next) ||
328
- next.match(negative)) &&
329
- !checkAllAliases(key, flags.bools) &&
330
- !checkAllAliases(key, flags.counts)) {
331
- setArg(key, next);
332
- i++;
333
- }
334
- else if (/^(true|false)$/.test(next)) {
335
- setArg(key, next);
336
- i++;
337
- }
338
- else {
339
- setArg(key, defaultValue(key));
340
- }
341
- }
342
- }
343
- }
344
- else if (arg.match(/^-[0-9]$/) &&
345
- arg.match(negative) &&
346
- checkAllAliases(arg.slice(1), flags.bools)) {
347
- // single-digit boolean alias, e.g: xargs -0
348
- key = arg.slice(1);
349
- setArg(key, defaultValue(key));
350
- }
351
- else if (arg === '--') {
352
- notFlags = args.slice(i + 1);
353
- break;
354
- }
355
- else if (configuration['halt-at-non-option']) {
356
- notFlags = args.slice(i);
357
- break;
358
- }
359
- else {
360
- pushPositional(arg);
361
- }
362
- }
363
- // order of precedence:
364
- // 1. command line arg
365
- // 2. value from env var
366
- // 3. value from config file
367
- // 4. value from config objects
368
- // 5. configured default value
369
- applyEnvVars(argv, true); // special case: check env vars that point to config file
370
- applyEnvVars(argv, false);
371
- setConfig(argv);
372
- setConfigObjects();
373
- applyDefaultsAndAliases(argv, flags.aliases, defaults, true);
374
- applyCoercions(argv);
375
- if (configuration['set-placeholder-key'])
376
- setPlaceholderKeys(argv);
377
- // for any counts either not in args or without an explicit default, set to 0
378
- Object.keys(flags.counts).forEach(function (key) {
379
- if (!hasKey(argv, key.split('.')))
380
- setArg(key, 0);
381
- });
382
- // '--' defaults to undefined.
383
- if (notFlagsOption && notFlags.length)
384
- argv[notFlagsArgv] = [];
385
- notFlags.forEach(function (key) {
386
- argv[notFlagsArgv].push(key);
387
- });
388
- if (configuration['camel-case-expansion'] && configuration['strip-dashed']) {
389
- Object.keys(argv).filter(key => key !== '--' && key.includes('-')).forEach(key => {
390
- delete argv[key];
391
- });
392
- }
393
- if (configuration['strip-aliased']) {
394
- ;
395
- [].concat(...Object.keys(aliases).map(k => aliases[k])).forEach(alias => {
396
- if (configuration['camel-case-expansion'] && alias.includes('-')) {
397
- delete argv[alias.split('.').map(prop => camelCase(prop)).join('.')];
398
- }
399
- delete argv[alias];
400
- });
401
- }
402
- // Push argument into positional array, applying numeric coercion:
403
- function pushPositional(arg) {
404
- const maybeCoercedNumber = maybeCoerceNumber('_', arg);
405
- if (typeof maybeCoercedNumber === 'string' || typeof maybeCoercedNumber === 'number') {
406
- argv._.push(maybeCoercedNumber);
407
- }
408
- }
409
- // how many arguments should we consume, based
410
- // on the nargs option?
411
- function eatNargs(i, key, args, argAfterEqualSign) {
412
- let ii;
413
- let toEat = checkAllAliases(key, flags.nargs);
414
- // NaN has a special meaning for the array type, indicating that one or
415
- // more values are expected.
416
- toEat = typeof toEat !== 'number' || isNaN(toEat) ? 1 : toEat;
417
- if (toEat === 0) {
418
- if (!isUndefined(argAfterEqualSign)) {
419
- error = Error(__('Argument unexpected for: %s', key));
420
- }
421
- setArg(key, defaultValue(key));
422
- return i;
423
- }
424
- let available = isUndefined(argAfterEqualSign) ? 0 : 1;
425
- if (configuration['nargs-eats-options']) {
426
- // classic behavior, yargs eats positional and dash arguments.
427
- if (args.length - (i + 1) + available < toEat) {
428
- error = Error(__('Not enough arguments following: %s', key));
429
- }
430
- available = toEat;
431
- }
432
- else {
433
- // nargs will not consume flag arguments, e.g., -abc, --foo,
434
- // and terminates when one is observed.
435
- for (ii = i + 1; ii < args.length; ii++) {
436
- if (!args[ii].match(/^-[^0-9]/) || args[ii].match(negative) || isUnknownOptionAsArg(args[ii]))
437
- available++;
438
- else
439
- break;
440
- }
441
- if (available < toEat)
442
- error = Error(__('Not enough arguments following: %s', key));
443
- }
444
- let consumed = Math.min(available, toEat);
445
- if (!isUndefined(argAfterEqualSign) && consumed > 0) {
446
- setArg(key, argAfterEqualSign);
447
- consumed--;
448
- }
449
- for (ii = i + 1; ii < (consumed + i + 1); ii++) {
450
- setArg(key, args[ii]);
451
- }
452
- return (i + consumed);
453
- }
454
- // if an option is an array, eat all non-hyphenated arguments
455
- // following it... YUM!
456
- // e.g., --foo apple banana cat becomes ["apple", "banana", "cat"]
457
- function eatArray(i, key, args, argAfterEqualSign) {
458
- let argsToSet = [];
459
- let next = argAfterEqualSign || args[i + 1];
460
- // If both array and nargs are configured, enforce the nargs count:
461
- const nargsCount = checkAllAliases(key, flags.nargs);
462
- if (checkAllAliases(key, flags.bools) && !(/^(true|false)$/.test(next))) {
463
- argsToSet.push(true);
464
- }
465
- else if (isUndefined(next) ||
466
- (isUndefined(argAfterEqualSign) && /^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next))) {
467
- // for keys without value ==> argsToSet remains an empty []
468
- // set user default value, if available
469
- if (defaults[key] !== undefined) {
470
- const defVal = defaults[key];
471
- argsToSet = Array.isArray(defVal) ? defVal : [defVal];
472
- }
473
- }
474
- else {
475
- // value in --option=value is eaten as is
476
- if (!isUndefined(argAfterEqualSign)) {
477
- argsToSet.push(processValue(key, argAfterEqualSign));
478
- }
479
- for (let ii = i + 1; ii < args.length; ii++) {
480
- if ((!configuration['greedy-arrays'] && argsToSet.length > 0) ||
481
- (nargsCount && typeof nargsCount === 'number' && argsToSet.length >= nargsCount))
482
- break;
483
- next = args[ii];
484
- if (/^-/.test(next) && !negative.test(next) && !isUnknownOptionAsArg(next))
485
- break;
486
- i = ii;
487
- argsToSet.push(processValue(key, next));
488
- }
489
- }
490
- // If both array and nargs are configured, create an error if less than
491
- // nargs positionals were found. NaN has special meaning, indicating
492
- // that at least one value is required (more are okay).
493
- if (typeof nargsCount === 'number' && ((nargsCount && argsToSet.length < nargsCount) ||
494
- (isNaN(nargsCount) && argsToSet.length === 0))) {
495
- error = Error(__('Not enough arguments following: %s', key));
496
- }
497
- setArg(key, argsToSet);
498
- return i;
499
- }
500
- function setArg(key, val) {
501
- if (/-/.test(key) && configuration['camel-case-expansion']) {
502
- const alias = key.split('.').map(function (prop) {
503
- return camelCase(prop);
504
- }).join('.');
505
- addNewAlias(key, alias);
506
- }
507
- const value = processValue(key, val);
508
- const splitKey = key.split('.');
509
- setKey(argv, splitKey, value);
510
- // handle populating aliases of the full key
511
- if (flags.aliases[key]) {
512
- flags.aliases[key].forEach(function (x) {
513
- const keyProperties = x.split('.');
514
- setKey(argv, keyProperties, value);
515
- });
516
- }
517
- // handle populating aliases of the first element of the dot-notation key
518
- if (splitKey.length > 1 && configuration['dot-notation']) {
519
- ;
520
- (flags.aliases[splitKey[0]] || []).forEach(function (x) {
521
- let keyProperties = x.split('.');
522
- // expand alias with nested objects in key
523
- const a = [].concat(splitKey);
524
- a.shift(); // nuke the old key.
525
- keyProperties = keyProperties.concat(a);
526
- // populate alias only if is not already an alias of the full key
527
- // (already populated above)
528
- if (!(flags.aliases[key] || []).includes(keyProperties.join('.'))) {
529
- setKey(argv, keyProperties, value);
530
- }
531
- });
532
- }
533
- // Set normalize getter and setter when key is in 'normalize' but isn't an array
534
- if (checkAllAliases(key, flags.normalize) && !checkAllAliases(key, flags.arrays)) {
535
- const keys = [key].concat(flags.aliases[key] || []);
536
- keys.forEach(function (key) {
537
- Object.defineProperty(argvReturn, key, {
538
- enumerable: true,
539
- get() {
540
- return val;
541
- },
542
- set(value) {
543
- val = typeof value === 'string' ? mixin.normalize(value) : value;
544
- }
545
- });
546
- });
547
- }
548
- }
549
- function addNewAlias(key, alias) {
550
- if (!(flags.aliases[key] && flags.aliases[key].length)) {
551
- flags.aliases[key] = [alias];
552
- newAliases[alias] = true;
553
- }
554
- if (!(flags.aliases[alias] && flags.aliases[alias].length)) {
555
- addNewAlias(alias, key);
556
- }
557
- }
558
- function processValue(key, val) {
559
- // strings may be quoted, clean this up as we assign values.
560
- if (typeof val === 'string' &&
561
- (val[0] === "'" || val[0] === '"') &&
562
- val[val.length - 1] === val[0]) {
563
- val = val.substring(1, val.length - 1);
564
- }
565
- // handle parsing boolean arguments --foo=true --bar false.
566
- if (checkAllAliases(key, flags.bools) || checkAllAliases(key, flags.counts)) {
567
- if (typeof val === 'string')
568
- val = val === 'true';
569
- }
570
- let value = Array.isArray(val)
571
- ? val.map(function (v) { return maybeCoerceNumber(key, v); })
572
- : maybeCoerceNumber(key, val);
573
- // increment a count given as arg (either no value or value parsed as boolean)
574
- if (checkAllAliases(key, flags.counts) && (isUndefined(value) || typeof value === 'boolean')) {
575
- value = increment();
576
- }
577
- // Set normalized value when key is in 'normalize' and in 'arrays'
578
- if (checkAllAliases(key, flags.normalize) && checkAllAliases(key, flags.arrays)) {
579
- if (Array.isArray(val))
580
- value = val.map((val) => { return mixin.normalize(val); });
581
- else
582
- value = mixin.normalize(val);
583
- }
584
- return value;
585
- }
586
- function maybeCoerceNumber(key, value) {
587
- if (!configuration['parse-positional-numbers'] && key === '_')
588
- return value;
589
- if (!checkAllAliases(key, flags.strings) && !checkAllAliases(key, flags.bools) && !Array.isArray(value)) {
590
- const shouldCoerceNumber = looksLikeNumber(value) && configuration['parse-numbers'] && (Number.isSafeInteger(Math.floor(parseFloat(`${value}`))));
591
- if (shouldCoerceNumber || (!isUndefined(value) && checkAllAliases(key, flags.numbers))) {
592
- value = Number(value);
593
- }
594
- }
595
- return value;
596
- }
597
- // set args from config.json file, this should be
598
- // applied last so that defaults can be applied.
599
- function setConfig(argv) {
600
- const configLookup = Object.create(null);
601
- // expand defaults/aliases, in-case any happen to reference
602
- // the config.json file.
603
- applyDefaultsAndAliases(configLookup, flags.aliases, defaults);
604
- Object.keys(flags.configs).forEach(function (configKey) {
605
- const configPath = argv[configKey] || configLookup[configKey];
606
- if (configPath) {
607
- try {
608
- let config = null;
609
- const resolvedConfigPath = mixin.resolve(mixin.cwd(), configPath);
610
- const resolveConfig = flags.configs[configKey];
611
- if (typeof resolveConfig === 'function') {
612
- try {
613
- config = resolveConfig(resolvedConfigPath);
614
- }
615
- catch (e) {
616
- config = e;
617
- }
618
- if (config instanceof Error) {
619
- error = config;
620
- return;
621
- }
622
- }
623
- else {
624
- config = mixin.require(resolvedConfigPath);
625
- }
626
- setConfigObject(config);
627
- }
628
- catch (ex) {
629
- // Deno will receive a PermissionDenied error if an attempt is
630
- // made to load config without the --allow-read flag:
631
- if (ex.name === 'PermissionDenied')
632
- error = ex;
633
- else if (argv[configKey])
634
- error = Error(__('Invalid JSON config file: %s', configPath));
635
- }
636
- }
637
- });
638
- }
639
- // set args from config object.
640
- // it recursively checks nested objects.
641
- function setConfigObject(config, prev) {
642
- Object.keys(config).forEach(function (key) {
643
- const value = config[key];
644
- const fullKey = prev ? prev + '.' + key : key;
645
- // if the value is an inner object and we have dot-notation
646
- // enabled, treat inner objects in config the same as
647
- // heavily nested dot notations (foo.bar.apple).
648
- if (typeof value === 'object' && value !== null && !Array.isArray(value) && configuration['dot-notation']) {
649
- // if the value is an object but not an array, check nested object
650
- setConfigObject(value, fullKey);
651
- }
652
- else {
653
- // setting arguments via CLI takes precedence over
654
- // values within the config file.
655
- if (!hasKey(argv, fullKey.split('.')) || (checkAllAliases(fullKey, flags.arrays) && configuration['combine-arrays'])) {
656
- setArg(fullKey, value);
657
- }
658
- }
659
- });
660
- }
661
- // set all config objects passed in opts
662
- function setConfigObjects() {
663
- if (typeof configObjects !== 'undefined') {
664
- configObjects.forEach(function (configObject) {
665
- setConfigObject(configObject);
666
- });
667
- }
668
- }
669
- function applyEnvVars(argv, configOnly) {
670
- if (typeof envPrefix === 'undefined')
671
- return;
672
- const prefix = typeof envPrefix === 'string' ? envPrefix : '';
673
- const env = mixin.env();
674
- Object.keys(env).forEach(function (envVar) {
675
- if (prefix === '' || envVar.lastIndexOf(prefix, 0) === 0) {
676
- // get array of nested keys and convert them to camel case
677
- const keys = envVar.split('__').map(function (key, i) {
678
- if (i === 0) {
679
- key = key.substring(prefix.length);
680
- }
681
- return camelCase(key);
682
- });
683
- if (((configOnly && flags.configs[keys.join('.')]) || !configOnly) && !hasKey(argv, keys)) {
684
- setArg(keys.join('.'), env[envVar]);
685
- }
686
- }
687
- });
688
- }
689
- function applyCoercions(argv) {
690
- let coerce;
691
- const applied = new Set();
692
- Object.keys(argv).forEach(function (key) {
693
- if (!applied.has(key)) { // If we haven't already coerced this option via one of its aliases
694
- coerce = checkAllAliases(key, flags.coercions);
695
- if (typeof coerce === 'function') {
696
- try {
697
- const value = maybeCoerceNumber(key, coerce(argv[key]));
698
- ([].concat(flags.aliases[key] || [], key)).forEach(ali => {
699
- applied.add(ali);
700
- argv[ali] = value;
701
- });
702
- }
703
- catch (err) {
704
- error = err;
705
- }
706
- }
707
- }
708
- });
709
- }
710
- function setPlaceholderKeys(argv) {
711
- flags.keys.forEach((key) => {
712
- // don't set placeholder keys for dot notation options 'foo.bar'.
713
- if (~key.indexOf('.'))
714
- return;
715
- if (typeof argv[key] === 'undefined')
716
- argv[key] = undefined;
717
- });
718
- return argv;
719
- }
720
- function applyDefaultsAndAliases(obj, aliases, defaults, canLog = false) {
721
- Object.keys(defaults).forEach(function (key) {
722
- if (!hasKey(obj, key.split('.'))) {
723
- setKey(obj, key.split('.'), defaults[key]);
724
- if (canLog)
725
- defaulted[key] = true;
726
- (aliases[key] || []).forEach(function (x) {
727
- if (hasKey(obj, x.split('.')))
728
- return;
729
- setKey(obj, x.split('.'), defaults[key]);
730
- });
731
- }
732
- });
733
- }
734
- function hasKey(obj, keys) {
735
- let o = obj;
736
- if (!configuration['dot-notation'])
737
- keys = [keys.join('.')];
738
- keys.slice(0, -1).forEach(function (key) {
739
- o = (o[key] || {});
740
- });
741
- const key = keys[keys.length - 1];
742
- if (typeof o !== 'object')
743
- return false;
744
- else
745
- return key in o;
746
- }
747
- function setKey(obj, keys, value) {
748
- let o = obj;
749
- if (!configuration['dot-notation'])
750
- keys = [keys.join('.')];
751
- keys.slice(0, -1).forEach(function (key) {
752
- // TODO(bcoe): in the next major version of yargs, switch to
753
- // Object.create(null) for dot notation:
754
- key = sanitizeKey(key);
755
- if (typeof o === 'object' && o[key] === undefined) {
756
- o[key] = {};
757
- }
758
- if (typeof o[key] !== 'object' || Array.isArray(o[key])) {
759
- // ensure that o[key] is an array, and that the last item is an empty object.
760
- if (Array.isArray(o[key])) {
761
- o[key].push({});
762
- }
763
- else {
764
- o[key] = [o[key], {}];
765
- }
766
- // we want to update the empty object at the end of the o[key] array, so set o to that object
767
- o = o[key][o[key].length - 1];
768
- }
769
- else {
770
- o = o[key];
771
- }
772
- });
773
- // TODO(bcoe): in the next major version of yargs, switch to
774
- // Object.create(null) for dot notation:
775
- const key = sanitizeKey(keys[keys.length - 1]);
776
- const isTypeArray = checkAllAliases(keys.join('.'), flags.arrays);
777
- const isValueArray = Array.isArray(value);
778
- let duplicate = configuration['duplicate-arguments-array'];
779
- // nargs has higher priority than duplicate
780
- if (!duplicate && checkAllAliases(key, flags.nargs)) {
781
- duplicate = true;
782
- if ((!isUndefined(o[key]) && flags.nargs[key] === 1) || (Array.isArray(o[key]) && o[key].length === flags.nargs[key])) {
783
- o[key] = undefined;
784
- }
785
- }
786
- if (value === increment()) {
787
- o[key] = increment(o[key]);
788
- }
789
- else if (Array.isArray(o[key])) {
790
- if (duplicate && isTypeArray && isValueArray) {
791
- o[key] = configuration['flatten-duplicate-arrays'] ? o[key].concat(value) : (Array.isArray(o[key][0]) ? o[key] : [o[key]]).concat([value]);
792
- }
793
- else if (!duplicate && Boolean(isTypeArray) === Boolean(isValueArray)) {
794
- o[key] = value;
795
- }
796
- else {
797
- o[key] = o[key].concat([value]);
798
- }
799
- }
800
- else if (o[key] === undefined && isTypeArray) {
801
- o[key] = isValueArray ? value : [value];
802
- }
803
- else if (duplicate && !(o[key] === undefined ||
804
- checkAllAliases(key, flags.counts) ||
805
- checkAllAliases(key, flags.bools))) {
806
- o[key] = [o[key], value];
807
- }
808
- else {
809
- o[key] = value;
810
- }
811
- }
812
- // extend the aliases list with inferred aliases.
813
- function extendAliases(...args) {
814
- args.forEach(function (obj) {
815
- Object.keys(obj || {}).forEach(function (key) {
816
- // short-circuit if we've already added a key
817
- // to the aliases array, for example it might
818
- // exist in both 'opts.default' and 'opts.key'.
819
- if (flags.aliases[key])
820
- return;
821
- flags.aliases[key] = [].concat(aliases[key] || []);
822
- // For "--option-name", also set argv.optionName
823
- flags.aliases[key].concat(key).forEach(function (x) {
824
- if (/-/.test(x) && configuration['camel-case-expansion']) {
825
- const c = camelCase(x);
826
- if (c !== key && flags.aliases[key].indexOf(c) === -1) {
827
- flags.aliases[key].push(c);
828
- newAliases[c] = true;
829
- }
830
- }
831
- });
832
- // For "--optionName", also set argv['option-name']
833
- flags.aliases[key].concat(key).forEach(function (x) {
834
- if (x.length > 1 && /[A-Z]/.test(x) && configuration['camel-case-expansion']) {
835
- const c = decamelize(x, '-');
836
- if (c !== key && flags.aliases[key].indexOf(c) === -1) {
837
- flags.aliases[key].push(c);
838
- newAliases[c] = true;
839
- }
840
- }
841
- });
842
- flags.aliases[key].forEach(function (x) {
843
- flags.aliases[x] = [key].concat(flags.aliases[key].filter(function (y) {
844
- return x !== y;
845
- }));
846
- });
847
- });
848
- });
849
- }
850
- function checkAllAliases(key, flag) {
851
- const toCheck = [].concat(flags.aliases[key] || [], key);
852
- const keys = Object.keys(flag);
853
- const setAlias = toCheck.find(key => keys.includes(key));
854
- return setAlias ? flag[setAlias] : false;
855
- }
856
- function hasAnyFlag(key) {
857
- const flagsKeys = Object.keys(flags);
858
- const toCheck = [].concat(flagsKeys.map(k => flags[k]));
859
- return toCheck.some(function (flag) {
860
- return Array.isArray(flag) ? flag.includes(key) : flag[key];
861
- });
862
- }
863
- function hasFlagsMatching(arg, ...patterns) {
864
- const toCheck = [].concat(...patterns);
865
- return toCheck.some(function (pattern) {
866
- const match = arg.match(pattern);
867
- return match && hasAnyFlag(match[1]);
868
- });
869
- }
870
- // based on a simplified version of the short flag group parsing logic
871
- function hasAllShortFlags(arg) {
872
- // if this is a negative number, or doesn't start with a single hyphen, it's not a short flag group
873
- if (arg.match(negative) || !arg.match(/^-[^-]+/)) {
874
- return false;
875
- }
876
- let hasAllFlags = true;
877
- let next;
878
- const letters = arg.slice(1).split('');
879
- for (let j = 0; j < letters.length; j++) {
880
- next = arg.slice(j + 2);
881
- if (!hasAnyFlag(letters[j])) {
882
- hasAllFlags = false;
883
- break;
884
- }
885
- if ((letters[j + 1] && letters[j + 1] === '=') ||
886
- next === '-' ||
887
- (/[A-Za-z]/.test(letters[j]) && /^-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) ||
888
- (letters[j + 1] && letters[j + 1].match(/\W/))) {
889
- break;
890
- }
891
- }
892
- return hasAllFlags;
893
- }
894
- function isUnknownOptionAsArg(arg) {
895
- return configuration['unknown-options-as-args'] && isUnknownOption(arg);
896
- }
897
- function isUnknownOption(arg) {
898
- arg = arg.replace(/^-{3,}/, '--');
899
- // ignore negative numbers
900
- if (arg.match(negative)) {
901
- return false;
902
- }
903
- // if this is a short option group and all of them are configured, it isn't unknown
904
- if (hasAllShortFlags(arg)) {
905
- return false;
906
- }
907
- // e.g. '--count=2'
908
- const flagWithEquals = /^-+([^=]+?)=[\s\S]*$/;
909
- // e.g. '-a' or '--arg'
910
- const normalFlag = /^-+([^=]+?)$/;
911
- // e.g. '-a-'
912
- const flagEndingInHyphen = /^-+([^=]+?)-$/;
913
- // e.g. '-abc123'
914
- const flagEndingInDigits = /^-+([^=]+?\d+)$/;
915
- // e.g. '-a/usr/local'
916
- const flagEndingInNonWordCharacters = /^-+([^=]+?)\W+.*$/;
917
- // check the different types of flag styles, including negatedBoolean, a pattern defined near the start of the parse method
918
- return !hasFlagsMatching(arg, flagWithEquals, negatedBoolean, normalFlag, flagEndingInHyphen, flagEndingInDigits, flagEndingInNonWordCharacters);
919
- }
920
- // make a best effort to pick a default value
921
- // for an option based on name and type.
922
- function defaultValue(key) {
923
- if (!checkAllAliases(key, flags.bools) &&
924
- !checkAllAliases(key, flags.counts) &&
925
- `${key}` in defaults) {
926
- return defaults[key];
927
- }
928
- else {
929
- return defaultForType(guessType(key));
930
- }
931
- }
932
- // return a default value, given the type of a flag.,
933
- function defaultForType(type) {
934
- const def = {
935
- [DefaultValuesForTypeKey.BOOLEAN]: true,
936
- [DefaultValuesForTypeKey.STRING]: '',
937
- [DefaultValuesForTypeKey.NUMBER]: undefined,
938
- [DefaultValuesForTypeKey.ARRAY]: []
939
- };
940
- return def[type];
941
- }
942
- // given a flag, enforce a default type.
943
- function guessType(key) {
944
- let type = DefaultValuesForTypeKey.BOOLEAN;
945
- if (checkAllAliases(key, flags.strings))
946
- type = DefaultValuesForTypeKey.STRING;
947
- else if (checkAllAliases(key, flags.numbers))
948
- type = DefaultValuesForTypeKey.NUMBER;
949
- else if (checkAllAliases(key, flags.bools))
950
- type = DefaultValuesForTypeKey.BOOLEAN;
951
- else if (checkAllAliases(key, flags.arrays))
952
- type = DefaultValuesForTypeKey.ARRAY;
953
- return type;
954
- }
955
- function isUndefined(num) {
956
- return num === undefined;
957
- }
958
- // check user configuration settings for inconsistencies
959
- function checkConfiguration() {
960
- // count keys should not be set as array/narg
961
- Object.keys(flags.counts).find(key => {
962
- if (checkAllAliases(key, flags.arrays)) {
963
- error = Error(__('Invalid configuration: %s, opts.count excludes opts.array.', key));
964
- return true;
965
- }
966
- else if (checkAllAliases(key, flags.nargs)) {
967
- error = Error(__('Invalid configuration: %s, opts.count excludes opts.narg.', key));
968
- return true;
969
- }
970
- return false;
971
- });
972
- }
973
- return {
974
- aliases: Object.assign({}, flags.aliases),
975
- argv: Object.assign(argvReturn, argv),
976
- configuration: configuration,
977
- defaulted: Object.assign({}, defaulted),
978
- error: error,
979
- newAliases: Object.assign({}, newAliases)
980
- };
981
- }
982
- }
983
- // if any aliases reference each other, we should
984
- // merge them together.
985
- function combineAliases(aliases) {
986
- const aliasArrays = [];
987
- const combined = Object.create(null);
988
- let change = true;
989
- // turn alias lookup hash {key: ['alias1', 'alias2']} into
990
- // a simple array ['key', 'alias1', 'alias2']
991
- Object.keys(aliases).forEach(function (key) {
992
- aliasArrays.push([].concat(aliases[key], key));
993
- });
994
- // combine arrays until zero changes are
995
- // made in an iteration.
996
- while (change) {
997
- change = false;
998
- for (let i = 0; i < aliasArrays.length; i++) {
999
- for (let ii = i + 1; ii < aliasArrays.length; ii++) {
1000
- const intersect = aliasArrays[i].filter(function (v) {
1001
- return aliasArrays[ii].indexOf(v) !== -1;
1002
- });
1003
- if (intersect.length) {
1004
- aliasArrays[i] = aliasArrays[i].concat(aliasArrays[ii]);
1005
- aliasArrays.splice(ii, 1);
1006
- change = true;
1007
- break;
1008
- }
1009
- }
1010
- }
1011
- }
1012
- // map arrays back to the hash-lookup (de-dupe while
1013
- // we're at it).
1014
- aliasArrays.forEach(function (aliasArray) {
1015
- aliasArray = aliasArray.filter(function (v, i, self) {
1016
- return self.indexOf(v) === i;
1017
- });
1018
- const lastAlias = aliasArray.pop();
1019
- if (lastAlias !== undefined && typeof lastAlias === 'string') {
1020
- combined[lastAlias] = aliasArray;
1021
- }
1022
- });
1023
- return combined;
1024
- }
1025
- // this function should only be called when a count is given as an arg
1026
- // it is NOT called to set a default value
1027
- // thus we can start the count at 1 instead of 0
1028
- function increment(orig) {
1029
- return orig !== undefined ? orig + 1 : 1;
1030
- }
1031
- // TODO(bcoe): in the next major version of yargs, switch to
1032
- // Object.create(null) for dot notation:
1033
- function sanitizeKey(key) {
1034
- if (key === '__proto__')
1035
- return '___proto___';
1036
- return key;
1037
- }