@prismer/sdk 2.0.7 → 2.2.55

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 (387) hide show
  1. package/README.md +13 -7
  2. package/dist/chunk-R7POPVJR.mjs +35 -0
  3. package/dist/cli.js +59723 -8280
  4. package/dist/index.d.mts +724 -229
  5. package/dist/index.d.ts +724 -229
  6. package/dist/index.js +325 -23
  7. package/dist/index.mjs +324 -23
  8. package/dist/katex-OIP2Q473.mjs +14515 -0
  9. package/dist/pkf-schema.json +35 -0
  10. package/dist/pkf.d.mts +1 -0
  11. package/dist/pkf.d.ts +1 -0
  12. package/dist/pkf.js +48370 -0
  13. package/dist/pkf.mjs +33683 -0
  14. package/node_modules/@clack/core/CHANGELOG.md +249 -0
  15. package/node_modules/@clack/core/LICENSE +9 -0
  16. package/node_modules/@clack/core/README.md +22 -0
  17. package/node_modules/@clack/core/dist/index.cjs +15 -0
  18. package/node_modules/@clack/core/dist/index.cjs.map +1 -0
  19. package/node_modules/@clack/core/dist/index.d.cts +209 -0
  20. package/node_modules/@clack/core/dist/index.d.mts +209 -0
  21. package/node_modules/@clack/core/dist/index.d.ts +209 -0
  22. package/node_modules/@clack/core/dist/index.mjs +15 -0
  23. package/node_modules/@clack/core/dist/index.mjs.map +1 -0
  24. package/node_modules/@clack/core/package.json +62 -0
  25. package/node_modules/@clack/prompts/CHANGELOG.md +374 -0
  26. package/node_modules/@clack/prompts/LICENSE +9 -0
  27. package/node_modules/@clack/prompts/README.md +191 -0
  28. package/node_modules/@clack/prompts/dist/index.cjs +80 -0
  29. package/node_modules/@clack/prompts/dist/index.cjs.map +1 -0
  30. package/node_modules/@clack/prompts/dist/index.d.cts +151 -0
  31. package/node_modules/@clack/prompts/dist/index.d.mts +151 -0
  32. package/node_modules/@clack/prompts/dist/index.d.ts +151 -0
  33. package/node_modules/@clack/prompts/dist/index.mjs +80 -0
  34. package/node_modules/@clack/prompts/dist/index.mjs.map +1 -0
  35. package/node_modules/@clack/prompts/package.json +61 -0
  36. package/node_modules/@iarna/toml/LICENSE +14 -0
  37. package/node_modules/@iarna/toml/README.md +301 -0
  38. package/node_modules/@iarna/toml/index.d.ts +57 -0
  39. package/node_modules/@iarna/toml/lib/create-date.js +23 -0
  40. package/node_modules/@iarna/toml/lib/create-datetime-float.js +24 -0
  41. package/node_modules/@iarna/toml/lib/create-datetime.js +10 -0
  42. package/node_modules/@iarna/toml/lib/create-time.js +22 -0
  43. package/node_modules/@iarna/toml/lib/format-num.js +6 -0
  44. package/node_modules/@iarna/toml/lib/parser-debug.js +60 -0
  45. package/node_modules/@iarna/toml/lib/parser.js +127 -0
  46. package/node_modules/@iarna/toml/lib/toml-parser.js +1379 -0
  47. package/node_modules/@iarna/toml/package.json +82 -0
  48. package/node_modules/@iarna/toml/parse-async.js +30 -0
  49. package/node_modules/@iarna/toml/parse-pretty-error.js +33 -0
  50. package/node_modules/@iarna/toml/parse-stream.js +80 -0
  51. package/node_modules/@iarna/toml/parse-string.js +18 -0
  52. package/node_modules/@iarna/toml/parse.js +5 -0
  53. package/node_modules/@iarna/toml/stringify.js +296 -0
  54. package/node_modules/@iarna/toml/toml.js +3 -0
  55. package/node_modules/@prismer/aip-sdk/README.md +36 -0
  56. package/node_modules/@prismer/aip-sdk/dist/cli/chunk-LIJDUCHB.js +104 -0
  57. package/node_modules/@prismer/aip-sdk/dist/cli/chunk-QUQXZ2LD.js +99 -0
  58. package/node_modules/@prismer/aip-sdk/dist/cli/credentials-5GGZEJFG.js +56 -0
  59. package/node_modules/@prismer/aip-sdk/dist/cli/delegation-3J35VGBZ.js +64 -0
  60. package/node_modules/@prismer/aip-sdk/dist/cli/identity-LXVWKSVB.js +7 -0
  61. package/node_modules/@prismer/aip-sdk/dist/cli/index.js +259 -0
  62. package/node_modules/@prismer/aip-sdk/dist/cli/resolver-TGOPKW52.js +26 -0
  63. package/node_modules/@prismer/aip-sdk/dist/index.cjs +368 -0
  64. package/node_modules/@prismer/aip-sdk/dist/index.d.cts +174 -0
  65. package/node_modules/@prismer/aip-sdk/dist/index.d.ts +174 -0
  66. package/node_modules/@prismer/aip-sdk/dist/index.js +322 -0
  67. package/node_modules/@prismer/aip-sdk/package.json +53 -0
  68. package/node_modules/ansi-regex/index.d.ts +37 -0
  69. package/node_modules/ansi-regex/index.js +10 -0
  70. package/node_modules/ansi-regex/license +9 -0
  71. package/node_modules/ansi-regex/package.json +55 -0
  72. package/node_modules/ansi-regex/readme.md +78 -0
  73. package/node_modules/camelcase/index.d.ts +63 -0
  74. package/node_modules/camelcase/index.js +76 -0
  75. package/node_modules/camelcase/license +9 -0
  76. package/node_modules/camelcase/package.json +43 -0
  77. package/node_modules/camelcase/readme.md +99 -0
  78. package/node_modules/cliui/LICENSE.txt +14 -0
  79. package/node_modules/cliui/README.md +115 -0
  80. package/node_modules/cliui/index.js +354 -0
  81. package/node_modules/cliui/package.json +65 -0
  82. package/node_modules/color-convert/LICENSE +21 -0
  83. package/node_modules/color-convert/README.md +68 -0
  84. package/node_modules/color-convert/conversions.js +839 -0
  85. package/node_modules/color-convert/index.js +81 -0
  86. package/node_modules/color-convert/package.json +48 -0
  87. package/node_modules/color-convert/route.js +97 -0
  88. package/node_modules/color-name/LICENSE +8 -0
  89. package/node_modules/color-name/README.md +11 -0
  90. package/node_modules/color-name/index.js +152 -0
  91. package/node_modules/color-name/package.json +28 -0
  92. package/node_modules/commander/LICENSE +22 -0
  93. package/node_modules/commander/Readme.md +1157 -0
  94. package/node_modules/commander/esm.mjs +16 -0
  95. package/node_modules/commander/index.js +24 -0
  96. package/node_modules/commander/lib/argument.js +149 -0
  97. package/node_modules/commander/lib/command.js +2509 -0
  98. package/node_modules/commander/lib/error.js +39 -0
  99. package/node_modules/commander/lib/help.js +520 -0
  100. package/node_modules/commander/lib/option.js +330 -0
  101. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  102. package/node_modules/commander/package-support.json +16 -0
  103. package/node_modules/commander/package.json +84 -0
  104. package/node_modules/commander/typings/esm.d.mts +3 -0
  105. package/node_modules/commander/typings/index.d.ts +969 -0
  106. package/node_modules/decamelize/index.js +13 -0
  107. package/node_modules/decamelize/license +21 -0
  108. package/node_modules/decamelize/package.json +38 -0
  109. package/node_modules/decamelize/readme.md +48 -0
  110. package/node_modules/dijkstrajs/.travis.yml +4 -0
  111. package/node_modules/dijkstrajs/CONTRIBUTING.md +8 -0
  112. package/node_modules/dijkstrajs/LICENSE.md +19 -0
  113. package/node_modules/dijkstrajs/README.md +18 -0
  114. package/node_modules/dijkstrajs/dijkstra.js +165 -0
  115. package/node_modules/dijkstrajs/package.json +60 -0
  116. package/node_modules/dijkstrajs/test/dijkstra.test.js +96 -0
  117. package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  118. package/node_modules/emoji-regex/README.md +73 -0
  119. package/node_modules/emoji-regex/es2015/index.js +6 -0
  120. package/node_modules/emoji-regex/es2015/text.js +6 -0
  121. package/node_modules/emoji-regex/index.d.ts +23 -0
  122. package/node_modules/emoji-regex/index.js +6 -0
  123. package/node_modules/emoji-regex/package.json +50 -0
  124. package/node_modules/emoji-regex/text.js +6 -0
  125. package/node_modules/find-up/index.d.ts +137 -0
  126. package/node_modules/find-up/index.js +89 -0
  127. package/node_modules/find-up/license +9 -0
  128. package/node_modules/find-up/package.json +53 -0
  129. package/node_modules/find-up/readme.md +156 -0
  130. package/node_modules/get-caller-file/LICENSE.md +6 -0
  131. package/node_modules/get-caller-file/README.md +41 -0
  132. package/node_modules/get-caller-file/index.d.ts +2 -0
  133. package/node_modules/get-caller-file/index.js +22 -0
  134. package/node_modules/get-caller-file/index.js.map +1 -0
  135. package/node_modules/get-caller-file/package.json +42 -0
  136. package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  137. package/node_modules/is-fullwidth-code-point/index.js +50 -0
  138. package/node_modules/is-fullwidth-code-point/license +9 -0
  139. package/node_modules/is-fullwidth-code-point/package.json +42 -0
  140. package/node_modules/is-fullwidth-code-point/readme.md +39 -0
  141. package/node_modules/locate-path/index.d.ts +83 -0
  142. package/node_modules/locate-path/index.js +65 -0
  143. package/node_modules/locate-path/license +9 -0
  144. package/node_modules/locate-path/package.json +45 -0
  145. package/node_modules/locate-path/readme.md +122 -0
  146. package/node_modules/p-locate/index.d.ts +64 -0
  147. package/node_modules/p-locate/index.js +52 -0
  148. package/node_modules/p-locate/license +9 -0
  149. package/node_modules/p-locate/node_modules/p-limit/index.d.ts +38 -0
  150. package/node_modules/p-locate/node_modules/p-limit/index.js +57 -0
  151. package/node_modules/p-locate/node_modules/p-limit/license +9 -0
  152. package/node_modules/p-locate/node_modules/p-limit/package.json +52 -0
  153. package/node_modules/p-locate/node_modules/p-limit/readme.md +101 -0
  154. package/node_modules/p-locate/package.json +53 -0
  155. package/node_modules/p-locate/readme.md +90 -0
  156. package/node_modules/p-try/index.d.ts +39 -0
  157. package/node_modules/p-try/index.js +9 -0
  158. package/node_modules/p-try/license +9 -0
  159. package/node_modules/p-try/package.json +42 -0
  160. package/node_modules/p-try/readme.md +58 -0
  161. package/node_modules/path-exists/index.d.ts +28 -0
  162. package/node_modules/path-exists/index.js +23 -0
  163. package/node_modules/path-exists/license +9 -0
  164. package/node_modules/path-exists/package.json +39 -0
  165. package/node_modules/path-exists/readme.md +52 -0
  166. package/node_modules/picocolors/LICENSE +15 -0
  167. package/node_modules/picocolors/README.md +21 -0
  168. package/node_modules/picocolors/package.json +25 -0
  169. package/node_modules/picocolors/picocolors.browser.js +4 -0
  170. package/node_modules/picocolors/picocolors.d.ts +5 -0
  171. package/node_modules/picocolors/picocolors.js +75 -0
  172. package/node_modules/picocolors/types.d.ts +51 -0
  173. package/node_modules/pngjs/.eslintignore +2 -0
  174. package/node_modules/pngjs/.eslintrc.json +19 -0
  175. package/node_modules/pngjs/.prettierignore +3 -0
  176. package/node_modules/pngjs/LICENSE +20 -0
  177. package/node_modules/pngjs/README.md +429 -0
  178. package/node_modules/pngjs/browser.js +16096 -0
  179. package/node_modules/pngjs/coverage/lcov-report/base.css +354 -0
  180. package/node_modules/pngjs/coverage/lcov-report/bitmapper.js.html +881 -0
  181. package/node_modules/pngjs/coverage/lcov-report/bitpacker.js.html +554 -0
  182. package/node_modules/pngjs/coverage/lcov-report/block-navigation.js +77 -0
  183. package/node_modules/pngjs/coverage/lcov-report/chunkstream.js.html +647 -0
  184. package/node_modules/pngjs/coverage/lcov-report/constants.js.html +176 -0
  185. package/node_modules/pngjs/coverage/lcov-report/crc.js.html +200 -0
  186. package/node_modules/pngjs/coverage/lcov-report/favicon.png +0 -0
  187. package/node_modules/pngjs/coverage/lcov-report/filter-pack.js.html +593 -0
  188. package/node_modules/pngjs/coverage/lcov-report/filter-parse-async.js.html +152 -0
  189. package/node_modules/pngjs/coverage/lcov-report/filter-parse-sync.js.html +143 -0
  190. package/node_modules/pngjs/coverage/lcov-report/filter-parse.js.html +611 -0
  191. package/node_modules/pngjs/coverage/lcov-report/format-normaliser.js.html +359 -0
  192. package/node_modules/pngjs/coverage/lcov-report/index.html +426 -0
  193. package/node_modules/pngjs/coverage/lcov-report/interlace.js.html +365 -0
  194. package/node_modules/pngjs/coverage/lcov-report/packer-async.js.html +230 -0
  195. package/node_modules/pngjs/coverage/lcov-report/packer-sync.js.html +248 -0
  196. package/node_modules/pngjs/coverage/lcov-report/packer.js.html +467 -0
  197. package/node_modules/pngjs/coverage/lcov-report/paeth-predictor.js.html +128 -0
  198. package/node_modules/pngjs/coverage/lcov-report/parser-async.js.html +575 -0
  199. package/node_modules/pngjs/coverage/lcov-report/parser-sync.js.html +404 -0
  200. package/node_modules/pngjs/coverage/lcov-report/parser.js.html +950 -0
  201. package/node_modules/pngjs/coverage/lcov-report/png-sync.js.html +116 -0
  202. package/node_modules/pngjs/coverage/lcov-report/png.js.html +662 -0
  203. package/node_modules/pngjs/coverage/lcov-report/prettify.css +101 -0
  204. package/node_modules/pngjs/coverage/lcov-report/prettify.js +1007 -0
  205. package/node_modules/pngjs/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  206. package/node_modules/pngjs/coverage/lcov-report/sorter.js +169 -0
  207. package/node_modules/pngjs/coverage/lcov-report/sync-inflate.js.html +584 -0
  208. package/node_modules/pngjs/coverage/lcov-report/sync-reader.js.html +215 -0
  209. package/node_modules/pngjs/coverage/lcov.info +2177 -0
  210. package/node_modules/pngjs/lib/bitmapper.js +267 -0
  211. package/node_modules/pngjs/lib/bitpacker.js +158 -0
  212. package/node_modules/pngjs/lib/chunkstream.js +189 -0
  213. package/node_modules/pngjs/lib/constants.js +32 -0
  214. package/node_modules/pngjs/lib/crc.js +40 -0
  215. package/node_modules/pngjs/lib/filter-pack.js +171 -0
  216. package/node_modules/pngjs/lib/filter-parse-async.js +24 -0
  217. package/node_modules/pngjs/lib/filter-parse-sync.js +21 -0
  218. package/node_modules/pngjs/lib/filter-parse.js +177 -0
  219. package/node_modules/pngjs/lib/format-normaliser.js +93 -0
  220. package/node_modules/pngjs/lib/interlace.js +95 -0
  221. package/node_modules/pngjs/lib/packer-async.js +50 -0
  222. package/node_modules/pngjs/lib/packer-sync.js +56 -0
  223. package/node_modules/pngjs/lib/packer.js +129 -0
  224. package/node_modules/pngjs/lib/paeth-predictor.js +16 -0
  225. package/node_modules/pngjs/lib/parser-async.js +165 -0
  226. package/node_modules/pngjs/lib/parser-sync.js +108 -0
  227. package/node_modules/pngjs/lib/parser.js +290 -0
  228. package/node_modules/pngjs/lib/png-sync.js +12 -0
  229. package/node_modules/pngjs/lib/png.js +194 -0
  230. package/node_modules/pngjs/lib/sync-inflate.js +168 -0
  231. package/node_modules/pngjs/lib/sync-reader.js +45 -0
  232. package/node_modules/pngjs/package.json +73 -0
  233. package/node_modules/qrcode/README.md +770 -0
  234. package/node_modules/qrcode/bin/qrcode +159 -0
  235. package/node_modules/qrcode/helper/to-sjis-browser.js +2 -0
  236. package/node_modules/qrcode/helper/to-sjis.js +105 -0
  237. package/node_modules/qrcode/lib/browser.js +76 -0
  238. package/node_modules/qrcode/lib/can-promise.js +7 -0
  239. package/node_modules/qrcode/lib/core/alignment-pattern.js +83 -0
  240. package/node_modules/qrcode/lib/core/alphanumeric-data.js +59 -0
  241. package/node_modules/qrcode/lib/core/bit-buffer.js +37 -0
  242. package/node_modules/qrcode/lib/core/bit-matrix.js +65 -0
  243. package/node_modules/qrcode/lib/core/byte-data.js +30 -0
  244. package/node_modules/qrcode/lib/core/error-correction-code.js +135 -0
  245. package/node_modules/qrcode/lib/core/error-correction-level.js +50 -0
  246. package/node_modules/qrcode/lib/core/finder-pattern.js +22 -0
  247. package/node_modules/qrcode/lib/core/format-info.js +29 -0
  248. package/node_modules/qrcode/lib/core/galois-field.js +69 -0
  249. package/node_modules/qrcode/lib/core/kanji-data.js +54 -0
  250. package/node_modules/qrcode/lib/core/mask-pattern.js +234 -0
  251. package/node_modules/qrcode/lib/core/mode.js +167 -0
  252. package/node_modules/qrcode/lib/core/numeric-data.js +43 -0
  253. package/node_modules/qrcode/lib/core/polynomial.js +62 -0
  254. package/node_modules/qrcode/lib/core/qrcode.js +495 -0
  255. package/node_modules/qrcode/lib/core/reed-solomon-encoder.js +56 -0
  256. package/node_modules/qrcode/lib/core/regex.js +31 -0
  257. package/node_modules/qrcode/lib/core/segments.js +330 -0
  258. package/node_modules/qrcode/lib/core/utils.js +63 -0
  259. package/node_modules/qrcode/lib/core/version-check.js +9 -0
  260. package/node_modules/qrcode/lib/core/version.js +163 -0
  261. package/node_modules/qrcode/lib/index.js +12 -0
  262. package/node_modules/qrcode/lib/renderer/canvas.js +63 -0
  263. package/node_modules/qrcode/lib/renderer/png.js +78 -0
  264. package/node_modules/qrcode/lib/renderer/svg-tag.js +81 -0
  265. package/node_modules/qrcode/lib/renderer/svg.js +19 -0
  266. package/node_modules/qrcode/lib/renderer/terminal/terminal-small.js +85 -0
  267. package/node_modules/qrcode/lib/renderer/terminal/terminal.js +49 -0
  268. package/node_modules/qrcode/lib/renderer/terminal.js +9 -0
  269. package/node_modules/qrcode/lib/renderer/utf8.js +71 -0
  270. package/node_modules/qrcode/lib/renderer/utils.js +99 -0
  271. package/node_modules/qrcode/lib/server.js +138 -0
  272. package/node_modules/qrcode/license +10 -0
  273. package/node_modules/qrcode/package.json +77 -0
  274. package/node_modules/require-directory/.jshintrc +67 -0
  275. package/node_modules/require-directory/.npmignore +1 -0
  276. package/node_modules/require-directory/.travis.yml +3 -0
  277. package/node_modules/require-directory/LICENSE +22 -0
  278. package/node_modules/require-directory/README.markdown +184 -0
  279. package/node_modules/require-directory/index.js +86 -0
  280. package/node_modules/require-directory/package.json +40 -0
  281. package/node_modules/require-main-filename/LICENSE.txt +14 -0
  282. package/node_modules/require-main-filename/README.md +26 -0
  283. package/node_modules/require-main-filename/index.js +18 -0
  284. package/node_modules/require-main-filename/package.json +35 -0
  285. package/node_modules/set-blocking/LICENSE.txt +14 -0
  286. package/node_modules/set-blocking/README.md +31 -0
  287. package/node_modules/set-blocking/index.js +7 -0
  288. package/node_modules/set-blocking/package.json +42 -0
  289. package/node_modules/sisteransi/license +21 -0
  290. package/node_modules/sisteransi/package.json +34 -0
  291. package/node_modules/sisteransi/readme.md +113 -0
  292. package/node_modules/sisteransi/src/index.js +58 -0
  293. package/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
  294. package/node_modules/string-width/index.d.ts +29 -0
  295. package/node_modules/string-width/index.js +47 -0
  296. package/node_modules/string-width/license +9 -0
  297. package/node_modules/string-width/package.json +56 -0
  298. package/node_modules/string-width/readme.md +50 -0
  299. package/node_modules/strip-ansi/index.d.ts +17 -0
  300. package/node_modules/strip-ansi/index.js +4 -0
  301. package/node_modules/strip-ansi/license +9 -0
  302. package/node_modules/strip-ansi/package.json +54 -0
  303. package/node_modules/strip-ansi/readme.md +46 -0
  304. package/node_modules/which-module/LICENSE +13 -0
  305. package/node_modules/which-module/README.md +58 -0
  306. package/node_modules/which-module/index.js +9 -0
  307. package/node_modules/which-module/package.json +41 -0
  308. package/node_modules/wrap-ansi/index.js +186 -0
  309. package/node_modules/wrap-ansi/license +9 -0
  310. package/node_modules/wrap-ansi/node_modules/ansi-styles/index.d.ts +345 -0
  311. package/node_modules/wrap-ansi/node_modules/ansi-styles/index.js +163 -0
  312. package/node_modules/wrap-ansi/node_modules/ansi-styles/license +9 -0
  313. package/node_modules/wrap-ansi/node_modules/ansi-styles/package.json +56 -0
  314. package/node_modules/wrap-ansi/node_modules/ansi-styles/readme.md +152 -0
  315. package/node_modules/wrap-ansi/package.json +61 -0
  316. package/node_modules/wrap-ansi/readme.md +97 -0
  317. package/node_modules/y18n/LICENSE +13 -0
  318. package/node_modules/y18n/README.md +109 -0
  319. package/node_modules/y18n/index.js +188 -0
  320. package/node_modules/y18n/package.json +39 -0
  321. package/node_modules/yargs/LICENSE +21 -0
  322. package/node_modules/yargs/README.md +140 -0
  323. package/node_modules/yargs/build/lib/apply-extends.d.ts +2 -0
  324. package/node_modules/yargs/build/lib/apply-extends.js +65 -0
  325. package/node_modules/yargs/build/lib/argsert.d.ts +2 -0
  326. package/node_modules/yargs/build/lib/argsert.js +65 -0
  327. package/node_modules/yargs/build/lib/command.d.ts +64 -0
  328. package/node_modules/yargs/build/lib/command.js +416 -0
  329. package/node_modules/yargs/build/lib/common-types.d.ts +36 -0
  330. package/node_modules/yargs/build/lib/common-types.js +25 -0
  331. package/node_modules/yargs/build/lib/completion-templates.d.ts +2 -0
  332. package/node_modules/yargs/build/lib/completion-templates.js +50 -0
  333. package/node_modules/yargs/build/lib/completion.d.ts +21 -0
  334. package/node_modules/yargs/build/lib/completion.js +135 -0
  335. package/node_modules/yargs/build/lib/is-promise.d.ts +1 -0
  336. package/node_modules/yargs/build/lib/is-promise.js +9 -0
  337. package/node_modules/yargs/build/lib/levenshtein.d.ts +1 -0
  338. package/node_modules/yargs/build/lib/levenshtein.js +58 -0
  339. package/node_modules/yargs/build/lib/middleware.d.ts +10 -0
  340. package/node_modules/yargs/build/lib/middleware.js +57 -0
  341. package/node_modules/yargs/build/lib/obj-filter.d.ts +1 -0
  342. package/node_modules/yargs/build/lib/obj-filter.js +14 -0
  343. package/node_modules/yargs/build/lib/parse-command.d.ts +11 -0
  344. package/node_modules/yargs/build/lib/parse-command.js +36 -0
  345. package/node_modules/yargs/build/lib/process-argv.d.ts +2 -0
  346. package/node_modules/yargs/build/lib/process-argv.js +31 -0
  347. package/node_modules/yargs/build/lib/usage.d.ts +49 -0
  348. package/node_modules/yargs/build/lib/usage.js +540 -0
  349. package/node_modules/yargs/build/lib/validation.d.ts +34 -0
  350. package/node_modules/yargs/build/lib/validation.js +330 -0
  351. package/node_modules/yargs/build/lib/yargs.d.ts +274 -0
  352. package/node_modules/yargs/build/lib/yargs.js +1190 -0
  353. package/node_modules/yargs/build/lib/yerror.d.ts +4 -0
  354. package/node_modules/yargs/build/lib/yerror.js +11 -0
  355. package/node_modules/yargs/index.js +40 -0
  356. package/node_modules/yargs/locales/be.json +46 -0
  357. package/node_modules/yargs/locales/de.json +46 -0
  358. package/node_modules/yargs/locales/en.json +51 -0
  359. package/node_modules/yargs/locales/es.json +46 -0
  360. package/node_modules/yargs/locales/fi.json +49 -0
  361. package/node_modules/yargs/locales/fr.json +53 -0
  362. package/node_modules/yargs/locales/hi.json +49 -0
  363. package/node_modules/yargs/locales/hu.json +46 -0
  364. package/node_modules/yargs/locales/id.json +50 -0
  365. package/node_modules/yargs/locales/it.json +46 -0
  366. package/node_modules/yargs/locales/ja.json +51 -0
  367. package/node_modules/yargs/locales/ko.json +49 -0
  368. package/node_modules/yargs/locales/nb.json +44 -0
  369. package/node_modules/yargs/locales/nl.json +49 -0
  370. package/node_modules/yargs/locales/nn.json +44 -0
  371. package/node_modules/yargs/locales/pirate.json +13 -0
  372. package/node_modules/yargs/locales/pl.json +49 -0
  373. package/node_modules/yargs/locales/pt.json +45 -0
  374. package/node_modules/yargs/locales/pt_BR.json +48 -0
  375. package/node_modules/yargs/locales/ru.json +46 -0
  376. package/node_modules/yargs/locales/th.json +46 -0
  377. package/node_modules/yargs/locales/tr.json +48 -0
  378. package/node_modules/yargs/locales/zh_CN.json +48 -0
  379. package/node_modules/yargs/locales/zh_TW.json +47 -0
  380. package/node_modules/yargs/package.json +92 -0
  381. package/node_modules/yargs/yargs.js +14 -0
  382. package/node_modules/yargs-parser/LICENSE.txt +14 -0
  383. package/node_modules/yargs-parser/README.md +449 -0
  384. package/node_modules/yargs-parser/index.js +1032 -0
  385. package/node_modules/yargs-parser/lib/tokenize-arg-string.js +40 -0
  386. package/node_modules/yargs-parser/package.json +46 -0
  387. package/package.json +28 -5
@@ -0,0 +1,14 @@
1
+ Copyright (c) 2016, Contributors
2
+
3
+ Permission to use, copy, modify, and/or distribute this software
4
+ for any purpose with or without fee is hereby granted, provided
5
+ that the above copyright notice and this permission notice
6
+ appear in all copies.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
10
+ OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
11
+ LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
12
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
13
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
14
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,449 @@
1
+ # yargs-parser
2
+
3
+ [![Build Status](https://travis-ci.org/yargs/yargs-parser.svg)](https://travis-ci.org/yargs/yargs-parser)
4
+ [![NPM version](https://img.shields.io/npm/v/yargs-parser.svg)](https://www.npmjs.com/package/yargs-parser)
5
+ [![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
6
+
7
+
8
+ The mighty option parser used by [yargs](https://github.com/yargs/yargs).
9
+
10
+ visit the [yargs website](http://yargs.js.org/) for more examples, and thorough usage instructions.
11
+
12
+ <img width="250" src="https://raw.githubusercontent.com/yargs/yargs-parser/master/yargs-logo.png">
13
+
14
+ ## Example
15
+
16
+ ```sh
17
+ npm i yargs-parser --save
18
+ ```
19
+
20
+ ```js
21
+ var argv = require('yargs-parser')(process.argv.slice(2))
22
+ console.log(argv)
23
+ ```
24
+
25
+ ```sh
26
+ node example.js --foo=33 --bar hello
27
+ { _: [], foo: 33, bar: 'hello' }
28
+ ```
29
+
30
+ _or parse a string!_
31
+
32
+ ```js
33
+ var argv = require('yargs-parser')('--foo=99 --bar=33')
34
+ console.log(argv)
35
+ ```
36
+
37
+ ```sh
38
+ { _: [], foo: 99, bar: 33 }
39
+ ```
40
+
41
+ Convert an array of mixed types before passing to `yargs-parser`:
42
+
43
+ ```js
44
+ var parse = require('yargs-parser')
45
+ parse(['-f', 11, '--zoom', 55].join(' ')) // <-- array to string
46
+ parse(['-f', 11, '--zoom', 55].map(String)) // <-- array of strings
47
+ ```
48
+
49
+ ## API
50
+
51
+ ### require('yargs-parser')(args, opts={})
52
+
53
+ Parses command line arguments returning a simple mapping of keys and values.
54
+
55
+ **expects:**
56
+
57
+ * `args`: a string or array of strings representing the options to parse.
58
+ * `opts`: provide a set of hints indicating how `args` should be parsed:
59
+ * `opts.alias`: an object representing the set of aliases for a key: `{alias: {foo: ['f']}}`.
60
+ * `opts.array`: indicate that keys should be parsed as an array: `{array: ['foo', 'bar']}`.<br>
61
+ Indicate that keys should be parsed as an array and coerced to booleans / numbers:<br>
62
+ `{array: [{ key: 'foo', boolean: true }, {key: 'bar', number: true}]}`.
63
+ * `opts.boolean`: arguments should be parsed as booleans: `{boolean: ['x', 'y']}`.
64
+ * `opts.coerce`: provide a custom synchronous function that returns a coerced value from the argument provided
65
+ (or throws an error). For arrays the function is called only once for the entire array:<br>
66
+ `{coerce: {foo: function (arg) {return modifiedArg}}}`.
67
+ * `opts.config`: indicate a key that represents a path to a configuration file (this file will be loaded and parsed).
68
+ * `opts.configObjects`: configuration objects to parse, their properties will be set as arguments:<br>
69
+ `{configObjects: [{'x': 5, 'y': 33}, {'z': 44}]}`.
70
+ * `opts.configuration`: provide configuration options to the yargs-parser (see: [configuration](#configuration)).
71
+ * `opts.count`: indicate a key that should be used as a counter, e.g., `-vvv` = `{v: 3}`.
72
+ * `opts.default`: provide default values for keys: `{default: {x: 33, y: 'hello world!'}}`.
73
+ * `opts.envPrefix`: environment variables (`process.env`) with the prefix provided should be parsed.
74
+ * `opts.narg`: specify that a key requires `n` arguments: `{narg: {x: 2}}`.
75
+ * `opts.normalize`: `path.normalize()` will be applied to values set to this key.
76
+ * `opts.number`: keys should be treated as numbers.
77
+ * `opts.string`: keys should be treated as strings (even if they resemble a number `-x 33`).
78
+
79
+ **returns:**
80
+
81
+ * `obj`: an object representing the parsed value of `args`
82
+ * `key/value`: key value pairs for each argument and their aliases.
83
+ * `_`: an array representing the positional arguments.
84
+ * [optional] `--`: an array with arguments after the end-of-options flag `--`.
85
+
86
+ ### require('yargs-parser').detailed(args, opts={})
87
+
88
+ Parses a command line string, returning detailed information required by the
89
+ yargs engine.
90
+
91
+ **expects:**
92
+
93
+ * `args`: a string or array of strings representing options to parse.
94
+ * `opts`: provide a set of hints indicating how `args`, inputs are identical to `require('yargs-parser')(args, opts={})`.
95
+
96
+ **returns:**
97
+
98
+ * `argv`: an object representing the parsed value of `args`
99
+ * `key/value`: key value pairs for each argument and their aliases.
100
+ * `_`: an array representing the positional arguments.
101
+ * [optional] `--`: an array with arguments after the end-of-options flag `--`.
102
+ * `error`: populated with an error object if an exception occurred during parsing.
103
+ * `aliases`: the inferred list of aliases built by combining lists in `opts.alias`.
104
+ * `newAliases`: any new aliases added via camel-case expansion:
105
+ * `boolean`: `{ fooBar: true }`
106
+ * `defaulted`: any new argument created by `opts.default`, no aliases included.
107
+ * `boolean`: `{ foo: true }`
108
+ * `configuration`: given by default settings and `opts.configuration`.
109
+
110
+ <a name="configuration"></a>
111
+
112
+ ### Configuration
113
+
114
+ The yargs-parser applies several automated transformations on the keys provided
115
+ in `args`. These features can be turned on and off using the `configuration` field
116
+ of `opts`.
117
+
118
+ ```js
119
+ var parsed = parser(['--no-dice'], {
120
+ configuration: {
121
+ 'boolean-negation': false
122
+ }
123
+ })
124
+ ```
125
+
126
+ ### short option groups
127
+
128
+ * default: `true`.
129
+ * key: `short-option-groups`.
130
+
131
+ Should a group of short-options be treated as boolean flags?
132
+
133
+ ```sh
134
+ node example.js -abc
135
+ { _: [], a: true, b: true, c: true }
136
+ ```
137
+
138
+ _if disabled:_
139
+
140
+ ```sh
141
+ node example.js -abc
142
+ { _: [], abc: true }
143
+ ```
144
+
145
+ ### camel-case expansion
146
+
147
+ * default: `true`.
148
+ * key: `camel-case-expansion`.
149
+
150
+ Should hyphenated arguments be expanded into camel-case aliases?
151
+
152
+ ```sh
153
+ node example.js --foo-bar
154
+ { _: [], 'foo-bar': true, fooBar: true }
155
+ ```
156
+
157
+ _if disabled:_
158
+
159
+ ```sh
160
+ node example.js --foo-bar
161
+ { _: [], 'foo-bar': true }
162
+ ```
163
+
164
+ ### dot-notation
165
+
166
+ * default: `true`
167
+ * key: `dot-notation`
168
+
169
+ Should keys that contain `.` be treated as objects?
170
+
171
+ ```sh
172
+ node example.js --foo.bar
173
+ { _: [], foo: { bar: true } }
174
+ ```
175
+
176
+ _if disabled:_
177
+
178
+ ```sh
179
+ node example.js --foo.bar
180
+ { _: [], "foo.bar": true }
181
+ ```
182
+
183
+ ### parse numbers
184
+
185
+ * default: `true`
186
+ * key: `parse-numbers`
187
+
188
+ Should keys that look like numbers be treated as such?
189
+
190
+ ```sh
191
+ node example.js --foo=99.3
192
+ { _: [], foo: 99.3 }
193
+ ```
194
+
195
+ _if disabled:_
196
+
197
+ ```sh
198
+ node example.js --foo=99.3
199
+ { _: [], foo: "99.3" }
200
+ ```
201
+
202
+ ### boolean negation
203
+
204
+ * default: `true`
205
+ * key: `boolean-negation`
206
+
207
+ Should variables prefixed with `--no` be treated as negations?
208
+
209
+ ```sh
210
+ node example.js --no-foo
211
+ { _: [], foo: false }
212
+ ```
213
+
214
+ _if disabled:_
215
+
216
+ ```sh
217
+ node example.js --no-foo
218
+ { _: [], "no-foo": true }
219
+ ```
220
+
221
+ ### combine arrays
222
+
223
+ * default: `false`
224
+ * key: `combine-arrays`
225
+
226
+ Should arrays be combined when provided by both command line arguments and
227
+ a configuration file.
228
+
229
+ ### duplicate arguments array
230
+
231
+ * default: `true`
232
+ * key: `duplicate-arguments-array`
233
+
234
+ Should arguments be coerced into an array when duplicated:
235
+
236
+ ```sh
237
+ node example.js -x 1 -x 2
238
+ { _: [], x: [1, 2] }
239
+ ```
240
+
241
+ _if disabled:_
242
+
243
+ ```sh
244
+ node example.js -x 1 -x 2
245
+ { _: [], x: 2 }
246
+ ```
247
+
248
+ ### flatten duplicate arrays
249
+
250
+ * default: `true`
251
+ * key: `flatten-duplicate-arrays`
252
+
253
+ Should array arguments be coerced into a single array when duplicated:
254
+
255
+ ```sh
256
+ node example.js -x 1 2 -x 3 4
257
+ { _: [], x: [1, 2, 3, 4] }
258
+ ```
259
+
260
+ _if disabled:_
261
+
262
+ ```sh
263
+ node example.js -x 1 2 -x 3 4
264
+ { _: [], x: [[1, 2], [3, 4]] }
265
+ ```
266
+
267
+ ### greedy arrays
268
+
269
+ * default: `true`
270
+ * key: `greedy-arrays`
271
+
272
+ Should arrays consume more than one positional argument following their flag.
273
+
274
+ ```sh
275
+ node example --arr 1 2
276
+ { _[], arr: [1, 2] }
277
+ ```
278
+
279
+ _if disabled:_
280
+
281
+ ```sh
282
+ node example --arr 1 2
283
+ { _[2], arr: [1] }
284
+ ```
285
+
286
+ **Note: in `v18.0.0` we are considering defaulting greedy arrays to `false`.**
287
+
288
+ ### nargs eats options
289
+
290
+ * default: `false`
291
+ * key: `nargs-eats-options`
292
+
293
+ Should nargs consume dash options as well as positional arguments.
294
+
295
+ ### negation prefix
296
+
297
+ * default: `no-`
298
+ * key: `negation-prefix`
299
+
300
+ The prefix to use for negated boolean variables.
301
+
302
+ ```sh
303
+ node example.js --no-foo
304
+ { _: [], foo: false }
305
+ ```
306
+
307
+ _if set to `quux`:_
308
+
309
+ ```sh
310
+ node example.js --quuxfoo
311
+ { _: [], foo: false }
312
+ ```
313
+
314
+ ### populate --
315
+
316
+ * default: `false`.
317
+ * key: `populate--`
318
+
319
+ Should unparsed flags be stored in `--` or `_`.
320
+
321
+ _If disabled:_
322
+
323
+ ```sh
324
+ node example.js a -b -- x y
325
+ { _: [ 'a', 'x', 'y' ], b: true }
326
+ ```
327
+
328
+ _If enabled:_
329
+
330
+ ```sh
331
+ node example.js a -b -- x y
332
+ { _: [ 'a' ], '--': [ 'x', 'y' ], b: true }
333
+ ```
334
+
335
+ ### set placeholder key
336
+
337
+ * default: `false`.
338
+ * key: `set-placeholder-key`.
339
+
340
+ Should a placeholder be added for keys not set via the corresponding CLI argument?
341
+
342
+ _If disabled:_
343
+
344
+ ```sh
345
+ node example.js -a 1 -c 2
346
+ { _: [], a: 1, c: 2 }
347
+ ```
348
+
349
+ _If enabled:_
350
+
351
+ ```sh
352
+ node example.js -a 1 -c 2
353
+ { _: [], a: 1, b: undefined, c: 2 }
354
+ ```
355
+
356
+ ### halt at non-option
357
+
358
+ * default: `false`.
359
+ * key: `halt-at-non-option`.
360
+
361
+ Should parsing stop at the first positional argument? This is similar to how e.g. `ssh` parses its command line.
362
+
363
+ _If disabled:_
364
+
365
+ ```sh
366
+ node example.js -a run b -x y
367
+ { _: [ 'b' ], a: 'run', x: 'y' }
368
+ ```
369
+
370
+ _If enabled:_
371
+
372
+ ```sh
373
+ node example.js -a run b -x y
374
+ { _: [ 'b', '-x', 'y' ], a: 'run' }
375
+ ```
376
+
377
+ ### strip aliased
378
+
379
+ * default: `false`
380
+ * key: `strip-aliased`
381
+
382
+ Should aliases be removed before returning results?
383
+
384
+ _If disabled:_
385
+
386
+ ```sh
387
+ node example.js --test-field 1
388
+ { _: [], 'test-field': 1, testField: 1, 'test-alias': 1, testAlias: 1 }
389
+ ```
390
+
391
+ _If enabled:_
392
+
393
+ ```sh
394
+ node example.js --test-field 1
395
+ { _: [], 'test-field': 1, testField: 1 }
396
+ ```
397
+
398
+ ### strip dashed
399
+
400
+ * default: `false`
401
+ * key: `strip-dashed`
402
+
403
+ Should dashed keys be removed before returning results? This option has no effect if
404
+ `camel-case-expansion` is disabled.
405
+
406
+ _If disabled:_
407
+
408
+ ```sh
409
+ node example.js --test-field 1
410
+ { _: [], 'test-field': 1, testField: 1 }
411
+ ```
412
+
413
+ _If enabled:_
414
+
415
+ ```sh
416
+ node example.js --test-field 1
417
+ { _: [], testField: 1 }
418
+ ```
419
+
420
+ ### unknown options as args
421
+
422
+ * default: `false`
423
+ * key: `unknown-options-as-args`
424
+
425
+ Should unknown options be treated like regular arguments? An unknown option is one that is not
426
+ configured in `opts`.
427
+
428
+ _If disabled_
429
+
430
+ ```sh
431
+ node example.js --unknown-option --known-option 2 --string-option --unknown-option2
432
+ { _: [], unknownOption: true, knownOption: 2, stringOption: '', unknownOption2: true }
433
+ ```
434
+
435
+ _If enabled_
436
+
437
+ ```sh
438
+ node example.js --unknown-option --known-option 2 --string-option --unknown-option2
439
+ { _: ['--unknown-option'], knownOption: 2, stringOption: '--unknown-option2' }
440
+ ```
441
+
442
+ ## Special Thanks
443
+
444
+ The yargs project evolves from optimist and minimist. It owes its
445
+ existence to a lot of James Halliday's hard work. Thanks [substack](https://github.com/substack) **beep** **boop** \o/
446
+
447
+ ## License
448
+
449
+ ISC