@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,429 @@
1
+ [![Build Status](https://travis-ci.com/lukeapage/pngjs.svg?branch=master)](https://travis-ci.com/lukeapage/pngjs) [![Build status](https://ci.appveyor.com/api/projects/status/qo5x8ayutr028108/branch/master?svg=true)](https://ci.appveyor.com/project/lukeapage/pngjs/branch/master) [![codecov](https://codecov.io/gh/lukeapage/pngjs/branch/master/graph/badge.svg)](https://codecov.io/gh/lukeapage/pngjs) [![npm version](https://badge.fury.io/js/pngjs.svg)](http://badge.fury.io/js/pngjs)
2
+
3
+ # pngjs
4
+
5
+ Simple PNG encoder/decoder for Node.js with no dependencies.
6
+
7
+ Based on the original [pngjs](https://github.com/niegowski/node-pngjs) with the follow enhancements.
8
+
9
+ - Support for reading 1,2,4 & 16 bit files
10
+ - Support for reading interlace files
11
+ - Support for reading `tTRNS` transparent colours
12
+ - Support for writing colortype 0 (grayscale), colortype 2 (RGB), colortype 4 (grayscale alpha) and colortype 6 (RGBA)
13
+ - Sync interface as well as async
14
+ - API compatible with pngjs and node-pngjs
15
+
16
+ Known lack of support for:
17
+
18
+ - Extended PNG e.g. Animation
19
+ - Writing in colortype 3 (indexed color)
20
+
21
+ # Table of Contents
22
+
23
+ - [Requirements](#requirements)
24
+ - [Comparison Table](#comparison-table)
25
+ - [Tests](#tests)
26
+ - [Installation](#installation)
27
+ - [Browser](#browser)
28
+ - [Example](#example)
29
+ - [Async API](#async-api)
30
+ - [Sync API](#sync-api)
31
+ - [Changelog](#changelog)
32
+
33
+ # Requirements
34
+
35
+ - Node.js v4 (use older v2.3.0 for 0.10/0.12/iojs support)
36
+
37
+ # Comparison Table
38
+
39
+ | Name | Forked From | Sync | Async | 16 Bit | 1/2/4 Bit | Interlace | Gamma | Encodes | Tested |
40
+ | ------------- | ----------- | ---- | ----- | ------ | --------- | --------- | ------ | ------- | ------ |
41
+ | pngjs | | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
42
+ | node-png | pngjs | No | Yes | No | No | No | Hidden | Yes | Manual |
43
+ | png-coder | pngjs | No | Yes | Yes | No | No | Hidden | Yes | Manual |
44
+ | pngparse | | No | Yes | No | Yes | No | No | No | Yes |
45
+ | pngparse-sync | pngparse | Yes | No | No | Yes | No | No | No | Yes |
46
+ | png-async | | No | Yes | No | No | No | No | Yes | Yes |
47
+ | png-js | | No | Yes | No | No | No | No | No | No |
48
+
49
+ Native C++ node decoders:
50
+
51
+ - png
52
+ - png-sync (sync version of above)
53
+ - pixel-png
54
+ - png-img
55
+
56
+ # Tests
57
+
58
+ Tested using [PNG Suite](http://www.schaik.com/pngsuite/). We read every file into pngjs, output it in standard 8bit colour, synchronously and asynchronously, then compare the original with the newly saved images.
59
+
60
+ To run the tests, fetch the repo (tests are not distributed via npm) and install with `npm i`, run `npm test`.
61
+
62
+ The only thing not converted is gamma correction - this is because multiple vendors will do gamma correction differently, so the tests will have different results on different browsers.
63
+
64
+ In addition we use a tolerance of 3 for 16 bit images in PhantomJS because PhantomJS seems to have non-compliant rules for downscaling 16 bit images.
65
+
66
+ # Installation
67
+
68
+ ```
69
+ $ npm install pngjs --save
70
+ ```
71
+
72
+ # Browser
73
+
74
+ The package has been build with a [Browserify](browserify.org) version (`npm run browserify`) and you can use the browser version by including in your code:
75
+
76
+ ```
77
+ import { PNG } from 'pngjs/browser';
78
+ ```
79
+
80
+ # Example
81
+
82
+ ```js
83
+ var fs = require("fs"),
84
+ PNG = require("pngjs").PNG;
85
+
86
+ fs.createReadStream("in.png")
87
+ .pipe(
88
+ new PNG({
89
+ filterType: 4,
90
+ })
91
+ )
92
+ .on("parsed", function () {
93
+ for (var y = 0; y < this.height; y++) {
94
+ for (var x = 0; x < this.width; x++) {
95
+ var idx = (this.width * y + x) << 2;
96
+
97
+ // invert color
98
+ this.data[idx] = 255 - this.data[idx];
99
+ this.data[idx + 1] = 255 - this.data[idx + 1];
100
+ this.data[idx + 2] = 255 - this.data[idx + 2];
101
+
102
+ // and reduce opacity
103
+ this.data[idx + 3] = this.data[idx + 3] >> 1;
104
+ }
105
+ }
106
+
107
+ this.pack().pipe(fs.createWriteStream("out.png"));
108
+ });
109
+ ```
110
+
111
+ For more examples see `examples` folder.
112
+
113
+ # Async API
114
+
115
+ As input any color type is accepted (grayscale, rgb, palette, grayscale with alpha, rgb with alpha) but 8 bit per sample (channel) is the only supported bit depth. Interlaced mode is not supported.
116
+
117
+ ## Class: PNG
118
+
119
+ `PNG` is readable and writable `Stream`.
120
+
121
+ ### Options
122
+
123
+ - `width` - use this with `height` if you want to create png from scratch
124
+ - `height` - as above
125
+ - `checkCRC` - whether parser should be strict about checksums in source stream (default: `true`)
126
+ - `deflateChunkSize` - chunk size used for deflating data chunks, this should be power of 2 and must not be less than 256 and more than 32\*1024 (default: 32 kB)
127
+ - `deflateLevel` - compression level for deflate (default: 9)
128
+ - `deflateStrategy` - compression strategy for deflate (default: 3)
129
+ - `deflateFactory` - deflate stream factory (default: `zlib.createDeflate`)
130
+ - `filterType` - png filtering method for scanlines (default: -1 => auto, accepts array of numbers 0-4)
131
+ - `colorType` - the output colorType - see constants. 0 = grayscale, no alpha, 2 = color, no alpha, 4 = grayscale & alpha, 6 = color & alpha. Default currently 6, but in the future may calculate best mode.
132
+ - `inputColorType` - the input colorType - see constants. Default is 6 (RGBA)
133
+ - `bitDepth` - the bitDepth of the output, 8 or 16 bits. Input data is expected to have this bit depth.
134
+ 16 bit data is expected in the system endianness (Default: 8)
135
+ - `inputHasAlpha` - whether the input bitmap has 4 bytes per pixel (rgb and alpha) or 3 (rgb - no alpha).
136
+ - `bgColor` - an object containing red, green, and blue values between 0 and 255
137
+ that is used when packing a PNG if alpha is not to be included (default: 255,255,255)
138
+
139
+ ### Event "metadata"
140
+
141
+ `function(metadata) { }`
142
+ Image's header has been parsed, metadata contains this information:
143
+
144
+ - `width` image size in pixels
145
+ - `height` image size in pixels
146
+ - `palette` image is paletted
147
+ - `color` image is not grayscale
148
+ - `alpha` image contains alpha channel
149
+ - `interlace` image is interlaced
150
+
151
+ ### Event: "parsed"
152
+
153
+ `function(data) { }`
154
+ Input image has been completely parsed, `data` is complete and ready for modification.
155
+
156
+ ### Event: "error"
157
+
158
+ `function(error) { }`
159
+
160
+ ### png.parse(data, [callback])
161
+
162
+ Parses PNG file data. Can be `String` or `Buffer`. Alternatively you can stream data to instance of PNG.
163
+
164
+ Optional `callback` is once called on `error` or `parsed`. The callback gets
165
+ two arguments `(err, data)`.
166
+
167
+ Returns `this` for method chaining.
168
+
169
+ #### Example
170
+
171
+ ```js
172
+ new PNG({ filterType: 4 }).parse(imageData, function (error, data) {
173
+ console.log(error, data);
174
+ });
175
+ ```
176
+
177
+ ### png.pack()
178
+
179
+ Starts converting data to PNG file Stream.
180
+
181
+ Returns `this` for method chaining.
182
+
183
+ ### png.bitblt(dst, sx, sy, w, h, dx, dy)
184
+
185
+ Helper for image manipulation, copies a rectangle of pixels from current (i.e. the source) image (`sx`, `sy`, `w`, `h`) to `dst` image (at `dx`, `dy`).
186
+
187
+ Returns `this` for method chaining.
188
+
189
+ For example, the following code copies the top-left 100x50 px of `in.png` into dst and writes it to `out.png`:
190
+
191
+ ```js
192
+ var dst = new PNG({ width: 100, height: 50 });
193
+ fs.createReadStream("in.png")
194
+ .pipe(new PNG())
195
+ .on("parsed", function () {
196
+ this.bitblt(dst, 0, 0, 100, 50, 0, 0);
197
+ dst.pack().pipe(fs.createWriteStream("out.png"));
198
+ });
199
+ ```
200
+
201
+ ### Property: adjustGamma()
202
+
203
+ Helper that takes data and adjusts it to be gamma corrected. Note that it is not 100% reliable with transparent colours because that requires knowing the background colour the bitmap is rendered on to.
204
+
205
+ In tests against PNG suite it compared 100% with chrome on all 8 bit and below images. On IE there were some differences.
206
+
207
+ The following example reads a file, adjusts the gamma (which sets the gamma to 0) and writes it out again, effectively removing any gamma correction from the image.
208
+
209
+ ```js
210
+ fs.createReadStream("in.png")
211
+ .pipe(new PNG())
212
+ .on("parsed", function () {
213
+ this.adjustGamma();
214
+ this.pack().pipe(fs.createWriteStream("out.png"));
215
+ });
216
+ ```
217
+
218
+ ### Property: width
219
+
220
+ Width of image in pixels
221
+
222
+ ### Property: height
223
+
224
+ Height of image in pixels
225
+
226
+ ### Property: data
227
+
228
+ Buffer of image pixel data. Every pixel consists 4 bytes: R, G, B, A (opacity).
229
+
230
+ ### Property: gamma
231
+
232
+ Gamma of image (0 if not specified)
233
+
234
+ ## Packing a PNG and removing alpha (RGBA to RGB)
235
+
236
+ When removing the alpha channel from an image, there needs to be a background color to correctly
237
+ convert each pixel's transparency to the appropriate RGB value. By default, pngjs will flatten
238
+ the image against a white background. You can override this in the options:
239
+
240
+ ```js
241
+ var fs = require("fs"),
242
+ PNG = require("pngjs").PNG;
243
+
244
+ fs.createReadStream("in.png")
245
+ .pipe(
246
+ new PNG({
247
+ colorType: 2,
248
+ bgColor: {
249
+ red: 0,
250
+ green: 255,
251
+ blue: 0,
252
+ },
253
+ })
254
+ )
255
+ .on("parsed", function () {
256
+ this.pack().pipe(fs.createWriteStream("out.png"));
257
+ });
258
+ ```
259
+
260
+ # Sync API
261
+
262
+ ## PNG.sync
263
+
264
+ ### PNG.sync.read(buffer)
265
+
266
+ Take a buffer and returns a PNG image. The properties on the image include the meta data and `data` as per the async API above.
267
+
268
+ ```
269
+ var data = fs.readFileSync('in.png');
270
+ var png = PNG.sync.read(data);
271
+ ```
272
+
273
+ ### PNG.sync.write(png)
274
+
275
+ Take a PNG image and returns a buffer. The properties on the image include the meta data and `data` as per the async API above.
276
+
277
+ ```
278
+ var data = fs.readFileSync('in.png');
279
+ var png = PNG.sync.read(data);
280
+ var options = { colorType: 6 };
281
+ var buffer = PNG.sync.write(png, options);
282
+ fs.writeFileSync('out.png', buffer);
283
+ ```
284
+
285
+ ### PNG.adjustGamma(src)
286
+
287
+ Adjusts the gamma of a sync image. See the async adjustGamma.
288
+
289
+ ```
290
+ var data = fs.readFileSync('in.png');
291
+ var png = PNG.sync.read(data);
292
+ PNG.adjustGamma(png);
293
+ ```
294
+
295
+ # Changelog
296
+
297
+ ### 5.0.0 - 15/04/2020
298
+
299
+ - Drop support for Node 8
300
+ - Browserified bundle may now contain ES20(15-20) code if the supported node version supports it. Please run the browserified version through babel if you need to support older browsers.
301
+
302
+ ### 4.0.1 - 15/04/2020
303
+
304
+ - Fix to possible null reference in nextTick of async method
305
+
306
+ ### 4.0.0 - 09/04/2020
307
+
308
+ - Fix issue in newer nodes with using Buffer
309
+ - Fix async issue with some png files
310
+ - Drop support for Node 4 & 6
311
+
312
+ ### 3.4.0 - 09/03/2019
313
+
314
+ - Include whether the png has alpha in the meta data
315
+ - emit an error if the image is truncated instead of hanging
316
+ - Add a browserified version
317
+ - speed up some mapping functions
318
+
319
+ ### 3.3.3 - 19/04/2018
320
+
321
+ - Real fix for node 9
322
+
323
+ ### 3.3.2 - 16/02/2018
324
+
325
+ - Fix for node 9
326
+
327
+ ### 3.3.1 - 15/11/2017
328
+
329
+ - Bugfixes and removal of es6
330
+
331
+ ### 3.3.0
332
+
333
+ - Add writing 16 bit channels and support for grayscale input
334
+
335
+ ### 3.2.0 - 30/04/2017
336
+
337
+ - Support for encoding 8-bit grayscale images
338
+
339
+ ### 3.1.0 - 30/04/2017
340
+
341
+ - Support for pngs with zlib chunks that are malformed after valid data
342
+
343
+ ### 3.0.1 - 16/02/2017
344
+
345
+ - Fix single pixel pngs
346
+
347
+ ### 3.0.0 - 03/08/2016
348
+
349
+ - Drop support for node below v4 and iojs. Pin to 2.3.0 to use with old, unsupported or patched node versions.
350
+
351
+ ### 2.3.0 - 22/04/2016
352
+
353
+ - Support for sync in node 0.10
354
+
355
+ ### 2.2.0 - 04/12/2015
356
+
357
+ - Add sync write api
358
+ - Fix newfile example
359
+ - Correct comparison table
360
+
361
+ ### 2.1.0 - 28/10/2015
362
+
363
+ - rename package to pngjs
364
+ - added 'bgColor' option
365
+
366
+ ### 2.0.0 - 08/10/2015
367
+
368
+ - fixes to readme
369
+ - _breaking change_ - bitblt on the png prototype now doesn't take a unused, unnecessary src first argument
370
+
371
+ ### 1.2.0 - 13/09/2015
372
+
373
+ - support passing colorType to write PNG's and writing bitmaps without alpha information
374
+
375
+ ### 1.1.0 - 07/09/2015
376
+
377
+ - support passing a deflate factory for controlled compression
378
+
379
+ ### 1.0.2 - 22/08/2015
380
+
381
+ - Expose all PNG creation info
382
+
383
+ ### 1.0.1 - 21/08/2015
384
+
385
+ - Fix non square interlaced files
386
+
387
+ ### 1.0.0 - 08/08/2015
388
+
389
+ - More tests
390
+ - source linted
391
+ - maintainability refactorings
392
+ - async API - exceptions in reading now emit warnings
393
+ - documentation improvement - sync api now documented, adjustGamma documented
394
+ - breaking change - gamma chunk is now written. previously a read then write would destroy gamma information, now it is persisted.
395
+
396
+ ### 0.0.3 - 03/08/2015
397
+
398
+ - Error handling fixes
399
+ - ignore files for smaller npm footprint
400
+
401
+ ### 0.0.2 - 02/08/2015
402
+
403
+ - Bugfixes to interlacing, support for transparent colours
404
+
405
+ ### 0.0.1 - 02/08/2015
406
+
407
+ - Initial release, see pngjs for older changelog.
408
+
409
+ # License
410
+
411
+ (The MIT License)
412
+
413
+ Permission is hereby granted, free of charge, to any person obtaining a copy
414
+ of this software and associated documentation files (the "Software"), to deal
415
+ in the Software without restriction, including without limitation the rights
416
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
417
+ copies of the Software, and to permit persons to whom the Software is
418
+ furnished to do so, subject to the following conditions:
419
+
420
+ The above copyright notice and this permission notice shall be included in
421
+ all copies or substantial portions of the Software.
422
+
423
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
424
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
426
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
427
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
428
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
429
+ THE SOFTWARE.