korext 0.8.0 → 0.8.1

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 (521) hide show
  1. package/package.json +3 -14
  2. package/CHANGELOG.md +0 -72
  3. package/dummy.pdf +0 -0
  4. package/korext.json +0 -11
  5. package/node_modules/ansi-regex/index.d.ts +0 -37
  6. package/node_modules/ansi-regex/index.js +0 -10
  7. package/node_modules/ansi-regex/license +0 -9
  8. package/node_modules/ansi-regex/package.json +0 -55
  9. package/node_modules/ansi-regex/readme.md +0 -78
  10. package/node_modules/ansi-styles/index.d.ts +0 -345
  11. package/node_modules/ansi-styles/index.js +0 -163
  12. package/node_modules/ansi-styles/license +0 -9
  13. package/node_modules/ansi-styles/package.json +0 -56
  14. package/node_modules/ansi-styles/readme.md +0 -152
  15. package/node_modules/balanced-match/LICENSE.md +0 -23
  16. package/node_modules/balanced-match/README.md +0 -57
  17. package/node_modules/balanced-match/dist/commonjs/index.d.ts +0 -9
  18. package/node_modules/balanced-match/dist/commonjs/index.d.ts.map +0 -1
  19. package/node_modules/balanced-match/dist/commonjs/index.js +0 -59
  20. package/node_modules/balanced-match/dist/commonjs/index.js.map +0 -1
  21. package/node_modules/balanced-match/dist/commonjs/package.json +0 -3
  22. package/node_modules/balanced-match/dist/esm/index.d.ts +0 -9
  23. package/node_modules/balanced-match/dist/esm/index.d.ts.map +0 -1
  24. package/node_modules/balanced-match/dist/esm/index.js +0 -54
  25. package/node_modules/balanced-match/dist/esm/index.js.map +0 -1
  26. package/node_modules/balanced-match/dist/esm/package.json +0 -3
  27. package/node_modules/balanced-match/package.json +0 -68
  28. package/node_modules/base64-js/LICENSE +0 -21
  29. package/node_modules/base64-js/README.md +0 -34
  30. package/node_modules/base64-js/base64js.min.js +0 -1
  31. package/node_modules/base64-js/index.d.ts +0 -3
  32. package/node_modules/base64-js/index.js +0 -150
  33. package/node_modules/base64-js/package.json +0 -47
  34. package/node_modules/bl/.travis.yml +0 -17
  35. package/node_modules/bl/BufferList.js +0 -396
  36. package/node_modules/bl/LICENSE.md +0 -13
  37. package/node_modules/bl/README.md +0 -247
  38. package/node_modules/bl/bl.js +0 -84
  39. package/node_modules/bl/package.json +0 -37
  40. package/node_modules/bl/test/convert.js +0 -21
  41. package/node_modules/bl/test/indexOf.js +0 -492
  42. package/node_modules/bl/test/isBufferList.js +0 -32
  43. package/node_modules/bl/test/test.js +0 -869
  44. package/node_modules/brace-expansion/LICENSE +0 -23
  45. package/node_modules/brace-expansion/README.md +0 -94
  46. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +0 -6
  47. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +0 -1
  48. package/node_modules/brace-expansion/dist/commonjs/index.js +0 -199
  49. package/node_modules/brace-expansion/dist/commonjs/index.js.map +0 -1
  50. package/node_modules/brace-expansion/dist/commonjs/package.json +0 -3
  51. package/node_modules/brace-expansion/dist/esm/index.d.ts +0 -6
  52. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +0 -1
  53. package/node_modules/brace-expansion/dist/esm/index.js +0 -195
  54. package/node_modules/brace-expansion/dist/esm/index.js.map +0 -1
  55. package/node_modules/brace-expansion/dist/esm/package.json +0 -3
  56. package/node_modules/brace-expansion/package.json +0 -64
  57. package/node_modules/buffer/AUTHORS.md +0 -70
  58. package/node_modules/buffer/LICENSE +0 -21
  59. package/node_modules/buffer/README.md +0 -410
  60. package/node_modules/buffer/index.d.ts +0 -186
  61. package/node_modules/buffer/index.js +0 -1817
  62. package/node_modules/buffer/package.json +0 -96
  63. package/node_modules/chalk/index.d.ts +0 -415
  64. package/node_modules/chalk/license +0 -9
  65. package/node_modules/chalk/package.json +0 -68
  66. package/node_modules/chalk/readme.md +0 -341
  67. package/node_modules/chalk/source/index.js +0 -229
  68. package/node_modules/chalk/source/templates.js +0 -134
  69. package/node_modules/chalk/source/util.js +0 -39
  70. package/node_modules/cli-cursor/index.d.ts +0 -45
  71. package/node_modules/cli-cursor/index.js +0 -35
  72. package/node_modules/cli-cursor/license +0 -9
  73. package/node_modules/cli-cursor/package.json +0 -46
  74. package/node_modules/cli-cursor/readme.md +0 -55
  75. package/node_modules/cli-spinners/index.d.ts +0 -128
  76. package/node_modules/cli-spinners/index.js +0 -15
  77. package/node_modules/cli-spinners/license +0 -9
  78. package/node_modules/cli-spinners/package.json +0 -50
  79. package/node_modules/cli-spinners/readme.md +0 -54
  80. package/node_modules/cli-spinners/spinners.json +0 -1622
  81. package/node_modules/clone/.npmignore +0 -4
  82. package/node_modules/clone/LICENSE +0 -18
  83. package/node_modules/clone/README.md +0 -126
  84. package/node_modules/clone/clone.iml +0 -10
  85. package/node_modules/clone/clone.js +0 -166
  86. package/node_modules/clone/package.json +0 -51
  87. package/node_modules/color-convert/CHANGELOG.md +0 -54
  88. package/node_modules/color-convert/LICENSE +0 -21
  89. package/node_modules/color-convert/README.md +0 -68
  90. package/node_modules/color-convert/conversions.js +0 -839
  91. package/node_modules/color-convert/index.js +0 -81
  92. package/node_modules/color-convert/package.json +0 -48
  93. package/node_modules/color-convert/route.js +0 -97
  94. package/node_modules/color-name/LICENSE +0 -8
  95. package/node_modules/color-name/README.md +0 -11
  96. package/node_modules/color-name/index.js +0 -152
  97. package/node_modules/color-name/package.json +0 -28
  98. package/node_modules/commander/LICENSE +0 -22
  99. package/node_modules/commander/Readme.md +0 -1176
  100. package/node_modules/commander/esm.mjs +0 -16
  101. package/node_modules/commander/index.js +0 -24
  102. package/node_modules/commander/lib/argument.js +0 -150
  103. package/node_modules/commander/lib/command.js +0 -2777
  104. package/node_modules/commander/lib/error.js +0 -39
  105. package/node_modules/commander/lib/help.js +0 -747
  106. package/node_modules/commander/lib/option.js +0 -380
  107. package/node_modules/commander/lib/suggestSimilar.js +0 -101
  108. package/node_modules/commander/package-support.json +0 -19
  109. package/node_modules/commander/package.json +0 -82
  110. package/node_modules/commander/typings/esm.d.mts +0 -3
  111. package/node_modules/commander/typings/index.d.ts +0 -1113
  112. package/node_modules/data-uri-to-buffer/README.md +0 -88
  113. package/node_modules/data-uri-to-buffer/dist/index.d.ts +0 -15
  114. package/node_modules/data-uri-to-buffer/dist/index.js +0 -53
  115. package/node_modules/data-uri-to-buffer/dist/index.js.map +0 -1
  116. package/node_modules/data-uri-to-buffer/package.json +0 -62
  117. package/node_modules/data-uri-to-buffer/src/index.ts +0 -68
  118. package/node_modules/defaults/LICENSE +0 -22
  119. package/node_modules/defaults/README.md +0 -39
  120. package/node_modules/defaults/index.js +0 -13
  121. package/node_modules/defaults/package.json +0 -33
  122. package/node_modules/defaults/test.js +0 -34
  123. package/node_modules/fetch-blob/LICENSE +0 -21
  124. package/node_modules/fetch-blob/README.md +0 -106
  125. package/node_modules/fetch-blob/file.d.ts +0 -2
  126. package/node_modules/fetch-blob/file.js +0 -49
  127. package/node_modules/fetch-blob/from.d.ts +0 -26
  128. package/node_modules/fetch-blob/from.js +0 -100
  129. package/node_modules/fetch-blob/index.d.ts +0 -3
  130. package/node_modules/fetch-blob/index.js +0 -250
  131. package/node_modules/fetch-blob/package.json +0 -56
  132. package/node_modules/fetch-blob/streams.cjs +0 -51
  133. package/node_modules/formdata-polyfill/FormData.js +0 -441
  134. package/node_modules/formdata-polyfill/LICENSE +0 -21
  135. package/node_modules/formdata-polyfill/README.md +0 -145
  136. package/node_modules/formdata-polyfill/esm.min.d.ts +0 -5
  137. package/node_modules/formdata-polyfill/esm.min.js +0 -40
  138. package/node_modules/formdata-polyfill/formdata-to-blob.js +0 -39
  139. package/node_modules/formdata-polyfill/formdata.min.js +0 -21
  140. package/node_modules/formdata-polyfill/package.json +0 -50
  141. package/node_modules/glob/LICENSE.md +0 -63
  142. package/node_modules/glob/README.md +0 -1203
  143. package/node_modules/glob/dist/commonjs/glob.d.ts +0 -396
  144. package/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
  145. package/node_modules/glob/dist/commonjs/glob.js +0 -248
  146. package/node_modules/glob/dist/commonjs/glob.js.map +0 -1
  147. package/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
  148. package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
  149. package/node_modules/glob/dist/commonjs/has-magic.js +0 -27
  150. package/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
  151. package/node_modules/glob/dist/commonjs/ignore.d.ts +0 -24
  152. package/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
  153. package/node_modules/glob/dist/commonjs/ignore.js +0 -119
  154. package/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
  155. package/node_modules/glob/dist/commonjs/index.d.ts +0 -97
  156. package/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
  157. package/node_modules/glob/dist/commonjs/index.js +0 -68
  158. package/node_modules/glob/dist/commonjs/index.js.map +0 -1
  159. package/node_modules/glob/dist/commonjs/index.min.js +0 -4
  160. package/node_modules/glob/dist/commonjs/index.min.js.map +0 -7
  161. package/node_modules/glob/dist/commonjs/package.json +0 -3
  162. package/node_modules/glob/dist/commonjs/pattern.d.ts +0 -79
  163. package/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
  164. package/node_modules/glob/dist/commonjs/pattern.js +0 -223
  165. package/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
  166. package/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
  167. package/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
  168. package/node_modules/glob/dist/commonjs/processor.js +0 -301
  169. package/node_modules/glob/dist/commonjs/processor.js.map +0 -1
  170. package/node_modules/glob/dist/commonjs/walker.d.ts +0 -97
  171. package/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
  172. package/node_modules/glob/dist/commonjs/walker.js +0 -387
  173. package/node_modules/glob/dist/commonjs/walker.js.map +0 -1
  174. package/node_modules/glob/dist/esm/glob.d.ts +0 -396
  175. package/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
  176. package/node_modules/glob/dist/esm/glob.js +0 -244
  177. package/node_modules/glob/dist/esm/glob.js.map +0 -1
  178. package/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
  179. package/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
  180. package/node_modules/glob/dist/esm/has-magic.js +0 -23
  181. package/node_modules/glob/dist/esm/has-magic.js.map +0 -1
  182. package/node_modules/glob/dist/esm/ignore.d.ts +0 -24
  183. package/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
  184. package/node_modules/glob/dist/esm/ignore.js +0 -115
  185. package/node_modules/glob/dist/esm/ignore.js.map +0 -1
  186. package/node_modules/glob/dist/esm/index.d.ts +0 -97
  187. package/node_modules/glob/dist/esm/index.d.ts.map +0 -1
  188. package/node_modules/glob/dist/esm/index.js +0 -55
  189. package/node_modules/glob/dist/esm/index.js.map +0 -1
  190. package/node_modules/glob/dist/esm/index.min.js +0 -4
  191. package/node_modules/glob/dist/esm/index.min.js.map +0 -7
  192. package/node_modules/glob/dist/esm/package.json +0 -3
  193. package/node_modules/glob/dist/esm/pattern.d.ts +0 -79
  194. package/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
  195. package/node_modules/glob/dist/esm/pattern.js +0 -219
  196. package/node_modules/glob/dist/esm/pattern.js.map +0 -1
  197. package/node_modules/glob/dist/esm/processor.d.ts +0 -59
  198. package/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
  199. package/node_modules/glob/dist/esm/processor.js +0 -294
  200. package/node_modules/glob/dist/esm/processor.js.map +0 -1
  201. package/node_modules/glob/dist/esm/walker.d.ts +0 -97
  202. package/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
  203. package/node_modules/glob/dist/esm/walker.js +0 -381
  204. package/node_modules/glob/dist/esm/walker.js.map +0 -1
  205. package/node_modules/glob/package.json +0 -98
  206. package/node_modules/has-flag/index.d.ts +0 -39
  207. package/node_modules/has-flag/index.js +0 -8
  208. package/node_modules/has-flag/license +0 -9
  209. package/node_modules/has-flag/package.json +0 -46
  210. package/node_modules/has-flag/readme.md +0 -89
  211. package/node_modules/ieee754/LICENSE +0 -11
  212. package/node_modules/ieee754/README.md +0 -51
  213. package/node_modules/ieee754/index.d.ts +0 -10
  214. package/node_modules/ieee754/index.js +0 -85
  215. package/node_modules/ieee754/package.json +0 -52
  216. package/node_modules/inherits/LICENSE +0 -16
  217. package/node_modules/inherits/README.md +0 -42
  218. package/node_modules/inherits/inherits.js +0 -9
  219. package/node_modules/inherits/inherits_browser.js +0 -27
  220. package/node_modules/inherits/package.json +0 -29
  221. package/node_modules/is-interactive/index.d.ts +0 -31
  222. package/node_modules/is-interactive/index.js +0 -9
  223. package/node_modules/is-interactive/license +0 -9
  224. package/node_modules/is-interactive/package.json +0 -38
  225. package/node_modules/is-interactive/readme.md +0 -51
  226. package/node_modules/is-unicode-supported/index.d.ts +0 -14
  227. package/node_modules/is-unicode-supported/index.js +0 -13
  228. package/node_modules/is-unicode-supported/license +0 -9
  229. package/node_modules/is-unicode-supported/package.json +0 -41
  230. package/node_modules/is-unicode-supported/readme.md +0 -35
  231. package/node_modules/log-symbols/browser.js +0 -8
  232. package/node_modules/log-symbols/index.d.ts +0 -25
  233. package/node_modules/log-symbols/index.js +0 -19
  234. package/node_modules/log-symbols/license +0 -9
  235. package/node_modules/log-symbols/package.json +0 -52
  236. package/node_modules/log-symbols/readme.md +0 -51
  237. package/node_modules/lru-cache/LICENSE.md +0 -55
  238. package/node_modules/lru-cache/README.md +0 -383
  239. package/node_modules/lru-cache/dist/commonjs/index.d.ts +0 -1323
  240. package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
  241. package/node_modules/lru-cache/dist/commonjs/index.js +0 -1595
  242. package/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
  243. package/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
  244. package/node_modules/lru-cache/dist/commonjs/index.min.js.map +0 -7
  245. package/node_modules/lru-cache/dist/commonjs/package.json +0 -3
  246. package/node_modules/lru-cache/dist/esm/index.d.ts +0 -1323
  247. package/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
  248. package/node_modules/lru-cache/dist/esm/index.js +0 -1591
  249. package/node_modules/lru-cache/dist/esm/index.js.map +0 -1
  250. package/node_modules/lru-cache/dist/esm/index.min.js +0 -2
  251. package/node_modules/lru-cache/dist/esm/index.min.js.map +0 -7
  252. package/node_modules/lru-cache/dist/esm/package.json +0 -3
  253. package/node_modules/lru-cache/package.json +0 -93
  254. package/node_modules/mimic-fn/index.d.ts +0 -54
  255. package/node_modules/mimic-fn/index.js +0 -13
  256. package/node_modules/mimic-fn/license +0 -9
  257. package/node_modules/mimic-fn/package.json +0 -42
  258. package/node_modules/mimic-fn/readme.md +0 -69
  259. package/node_modules/minimatch/LICENSE.md +0 -55
  260. package/node_modules/minimatch/README.md +0 -528
  261. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +0 -2
  262. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +0 -1
  263. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +0 -14
  264. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +0 -1
  265. package/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -22
  266. package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
  267. package/node_modules/minimatch/dist/commonjs/ast.js +0 -846
  268. package/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
  269. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
  270. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
  271. package/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -150
  272. package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
  273. package/node_modules/minimatch/dist/commonjs/escape.d.ts +0 -15
  274. package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +0 -1
  275. package/node_modules/minimatch/dist/commonjs/escape.js +0 -30
  276. package/node_modules/minimatch/dist/commonjs/escape.js.map +0 -1
  277. package/node_modules/minimatch/dist/commonjs/index.d.ts +0 -174
  278. package/node_modules/minimatch/dist/commonjs/index.d.ts.map +0 -1
  279. package/node_modules/minimatch/dist/commonjs/index.js +0 -1121
  280. package/node_modules/minimatch/dist/commonjs/index.js.map +0 -1
  281. package/node_modules/minimatch/dist/commonjs/package.json +0 -3
  282. package/node_modules/minimatch/dist/commonjs/unescape.d.ts +0 -22
  283. package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +0 -1
  284. package/node_modules/minimatch/dist/commonjs/unescape.js +0 -38
  285. package/node_modules/minimatch/dist/commonjs/unescape.js.map +0 -1
  286. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +0 -2
  287. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +0 -1
  288. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +0 -10
  289. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +0 -1
  290. package/node_modules/minimatch/dist/esm/ast.d.ts +0 -22
  291. package/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
  292. package/node_modules/minimatch/dist/esm/ast.js +0 -842
  293. package/node_modules/minimatch/dist/esm/ast.js.map +0 -1
  294. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
  295. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
  296. package/node_modules/minimatch/dist/esm/brace-expressions.js +0 -146
  297. package/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
  298. package/node_modules/minimatch/dist/esm/escape.d.ts +0 -15
  299. package/node_modules/minimatch/dist/esm/escape.d.ts.map +0 -1
  300. package/node_modules/minimatch/dist/esm/escape.js +0 -26
  301. package/node_modules/minimatch/dist/esm/escape.js.map +0 -1
  302. package/node_modules/minimatch/dist/esm/index.d.ts +0 -174
  303. package/node_modules/minimatch/dist/esm/index.d.ts.map +0 -1
  304. package/node_modules/minimatch/dist/esm/index.js +0 -1108
  305. package/node_modules/minimatch/dist/esm/index.js.map +0 -1
  306. package/node_modules/minimatch/dist/esm/package.json +0 -3
  307. package/node_modules/minimatch/dist/esm/unescape.d.ts +0 -22
  308. package/node_modules/minimatch/dist/esm/unescape.d.ts.map +0 -1
  309. package/node_modules/minimatch/dist/esm/unescape.js +0 -34
  310. package/node_modules/minimatch/dist/esm/unescape.js.map +0 -1
  311. package/node_modules/minimatch/package.json +0 -67
  312. package/node_modules/minipass/LICENSE.md +0 -55
  313. package/node_modules/minipass/README.md +0 -825
  314. package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
  315. package/node_modules/minipass/dist/commonjs/index.d.ts.map +0 -1
  316. package/node_modules/minipass/dist/commonjs/index.js +0 -1038
  317. package/node_modules/minipass/dist/commonjs/index.js.map +0 -1
  318. package/node_modules/minipass/dist/commonjs/package.json +0 -3
  319. package/node_modules/minipass/dist/esm/index.d.ts +0 -545
  320. package/node_modules/minipass/dist/esm/index.d.ts.map +0 -1
  321. package/node_modules/minipass/dist/esm/index.js +0 -1020
  322. package/node_modules/minipass/dist/esm/index.js.map +0 -1
  323. package/node_modules/minipass/dist/esm/package.json +0 -3
  324. package/node_modules/minipass/package.json +0 -77
  325. package/node_modules/node-domexception/.history/README_20210527203617.md +0 -2
  326. package/node_modules/node-domexception/.history/README_20210527212714.md +0 -41
  327. package/node_modules/node-domexception/.history/README_20210527213345.md +0 -36
  328. package/node_modules/node-domexception/.history/README_20210527213411.md +0 -36
  329. package/node_modules/node-domexception/.history/README_20210527213803.md +0 -36
  330. package/node_modules/node-domexception/.history/README_20210527214323.md +0 -38
  331. package/node_modules/node-domexception/.history/README_20210527214408.md +0 -38
  332. package/node_modules/node-domexception/.history/index_20210527203842.js +0 -0
  333. package/node_modules/node-domexception/.history/index_20210527203947.js +0 -8
  334. package/node_modules/node-domexception/.history/index_20210527204259.js +0 -9
  335. package/node_modules/node-domexception/.history/index_20210527204418.js +0 -9
  336. package/node_modules/node-domexception/.history/index_20210527204756.js +0 -11
  337. package/node_modules/node-domexception/.history/index_20210527204833.js +0 -11
  338. package/node_modules/node-domexception/.history/index_20210527211208.js +0 -15
  339. package/node_modules/node-domexception/.history/index_20210527211248.js +0 -15
  340. package/node_modules/node-domexception/.history/index_20210527212722.js +0 -23
  341. package/node_modules/node-domexception/.history/index_20210527212731.js +0 -23
  342. package/node_modules/node-domexception/.history/index_20210527212746.js +0 -15
  343. package/node_modules/node-domexception/.history/index_20210527212900.js +0 -16
  344. package/node_modules/node-domexception/.history/index_20210527213022.js +0 -16
  345. package/node_modules/node-domexception/.history/index_20210527213822.js +0 -16
  346. package/node_modules/node-domexception/.history/index_20210527213843.js +0 -17
  347. package/node_modules/node-domexception/.history/index_20210527213852.js +0 -17
  348. package/node_modules/node-domexception/.history/index_20210527213910.js +0 -16
  349. package/node_modules/node-domexception/.history/index_20210527214034.js +0 -16
  350. package/node_modules/node-domexception/.history/index_20210527214643.js +0 -41
  351. package/node_modules/node-domexception/.history/index_20210527214654.js +0 -41
  352. package/node_modules/node-domexception/.history/index_20210527214700.js +0 -16
  353. package/node_modules/node-domexception/.history/package_20210527203733.json +0 -19
  354. package/node_modules/node-domexception/.history/package_20210527203825.json +0 -16
  355. package/node_modules/node-domexception/.history/package_20210527204621.json +0 -19
  356. package/node_modules/node-domexception/.history/package_20210527204913.json +0 -25
  357. package/node_modules/node-domexception/.history/package_20210527204925.json +0 -25
  358. package/node_modules/node-domexception/.history/package_20210527205145.json +0 -29
  359. package/node_modules/node-domexception/.history/package_20210527205156.json +0 -29
  360. package/node_modules/node-domexception/.history/test_20210527205603.js +0 -0
  361. package/node_modules/node-domexception/.history/test_20210527205957.js +0 -3
  362. package/node_modules/node-domexception/.history/test_20210527210021.js +0 -3
  363. package/node_modules/node-domexception/LICENSE +0 -21
  364. package/node_modules/node-domexception/README.md +0 -46
  365. package/node_modules/node-domexception/index.js +0 -16
  366. package/node_modules/node-domexception/package.json +0 -29
  367. package/node_modules/node-fetch/@types/index.d.ts +0 -219
  368. package/node_modules/node-fetch/LICENSE.md +0 -22
  369. package/node_modules/node-fetch/README.md +0 -872
  370. package/node_modules/node-fetch/package.json +0 -131
  371. package/node_modules/node-fetch/src/body.js +0 -397
  372. package/node_modules/node-fetch/src/errors/abort-error.js +0 -10
  373. package/node_modules/node-fetch/src/errors/base.js +0 -17
  374. package/node_modules/node-fetch/src/errors/fetch-error.js +0 -26
  375. package/node_modules/node-fetch/src/headers.js +0 -267
  376. package/node_modules/node-fetch/src/index.js +0 -417
  377. package/node_modules/node-fetch/src/request.js +0 -313
  378. package/node_modules/node-fetch/src/response.js +0 -160
  379. package/node_modules/node-fetch/src/utils/get-search.js +0 -9
  380. package/node_modules/node-fetch/src/utils/is-redirect.js +0 -11
  381. package/node_modules/node-fetch/src/utils/is.js +0 -87
  382. package/node_modules/node-fetch/src/utils/multipart-parser.js +0 -432
  383. package/node_modules/node-fetch/src/utils/referrer.js +0 -340
  384. package/node_modules/onetime/index.d.ts +0 -64
  385. package/node_modules/onetime/index.js +0 -44
  386. package/node_modules/onetime/license +0 -9
  387. package/node_modules/onetime/package.json +0 -43
  388. package/node_modules/onetime/readme.md +0 -94
  389. package/node_modules/ora/index.d.ts +0 -277
  390. package/node_modules/ora/index.js +0 -407
  391. package/node_modules/ora/license +0 -9
  392. package/node_modules/ora/package.json +0 -57
  393. package/node_modules/ora/readme.md +0 -264
  394. package/node_modules/path-scurry/LICENSE.md +0 -55
  395. package/node_modules/path-scurry/README.md +0 -636
  396. package/node_modules/path-scurry/dist/commonjs/index.d.ts +0 -1115
  397. package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +0 -1
  398. package/node_modules/path-scurry/dist/commonjs/index.js +0 -2018
  399. package/node_modules/path-scurry/dist/commonjs/index.js.map +0 -1
  400. package/node_modules/path-scurry/dist/commonjs/package.json +0 -3
  401. package/node_modules/path-scurry/dist/esm/index.d.ts +0 -1115
  402. package/node_modules/path-scurry/dist/esm/index.d.ts.map +0 -1
  403. package/node_modules/path-scurry/dist/esm/index.js +0 -1983
  404. package/node_modules/path-scurry/dist/esm/index.js.map +0 -1
  405. package/node_modules/path-scurry/dist/esm/package.json +0 -3
  406. package/node_modules/path-scurry/package.json +0 -72
  407. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  408. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  409. package/node_modules/readable-stream/LICENSE +0 -47
  410. package/node_modules/readable-stream/README.md +0 -106
  411. package/node_modules/readable-stream/errors-browser.js +0 -127
  412. package/node_modules/readable-stream/errors.js +0 -116
  413. package/node_modules/readable-stream/experimentalWarning.js +0 -17
  414. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
  415. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
  416. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
  417. package/node_modules/readable-stream/lib/_stream_transform.js +0 -190
  418. package/node_modules/readable-stream/lib/_stream_writable.js +0 -641
  419. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
  420. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
  421. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
  422. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
  423. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  424. package/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
  425. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
  426. package/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
  427. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  428. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  429. package/node_modules/readable-stream/package.json +0 -68
  430. package/node_modules/readable-stream/readable-browser.js +0 -9
  431. package/node_modules/readable-stream/readable.js +0 -16
  432. package/node_modules/restore-cursor/index.d.ts +0 -13
  433. package/node_modules/restore-cursor/index.js +0 -9
  434. package/node_modules/restore-cursor/license +0 -9
  435. package/node_modules/restore-cursor/package.json +0 -52
  436. package/node_modules/restore-cursor/readme.md +0 -26
  437. package/node_modules/safe-buffer/LICENSE +0 -21
  438. package/node_modules/safe-buffer/README.md +0 -584
  439. package/node_modules/safe-buffer/index.d.ts +0 -187
  440. package/node_modules/safe-buffer/index.js +0 -65
  441. package/node_modules/safe-buffer/package.json +0 -51
  442. package/node_modules/signal-exit/LICENSE.txt +0 -16
  443. package/node_modules/signal-exit/README.md +0 -39
  444. package/node_modules/signal-exit/index.js +0 -202
  445. package/node_modules/signal-exit/package.json +0 -38
  446. package/node_modules/signal-exit/signals.js +0 -53
  447. package/node_modules/string_decoder/LICENSE +0 -48
  448. package/node_modules/string_decoder/README.md +0 -47
  449. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  450. package/node_modules/string_decoder/package.json +0 -34
  451. package/node_modules/strip-ansi/index.d.ts +0 -17
  452. package/node_modules/strip-ansi/index.js +0 -4
  453. package/node_modules/strip-ansi/license +0 -9
  454. package/node_modules/strip-ansi/package.json +0 -54
  455. package/node_modules/strip-ansi/readme.md +0 -46
  456. package/node_modules/supports-color/browser.js +0 -5
  457. package/node_modules/supports-color/index.js +0 -135
  458. package/node_modules/supports-color/license +0 -9
  459. package/node_modules/supports-color/package.json +0 -53
  460. package/node_modules/supports-color/readme.md +0 -76
  461. package/node_modules/util-deprecate/History.md +0 -16
  462. package/node_modules/util-deprecate/LICENSE +0 -24
  463. package/node_modules/util-deprecate/README.md +0 -53
  464. package/node_modules/util-deprecate/browser.js +0 -67
  465. package/node_modules/util-deprecate/node.js +0 -6
  466. package/node_modules/util-deprecate/package.json +0 -27
  467. package/node_modules/wcwidth/.npmignore +0 -1
  468. package/node_modules/wcwidth/LICENSE +0 -30
  469. package/node_modules/wcwidth/Readme.md +0 -33
  470. package/node_modules/wcwidth/combining.js +0 -50
  471. package/node_modules/wcwidth/docs/index.md +0 -65
  472. package/node_modules/wcwidth/index.js +0 -99
  473. package/node_modules/wcwidth/package.json +0 -42
  474. package/node_modules/wcwidth/test/index.js +0 -64
  475. package/node_modules/web-streams-polyfill/LICENSE +0 -22
  476. package/node_modules/web-streams-polyfill/README.md +0 -110
  477. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.js +0 -4765
  478. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.js.map +0 -1
  479. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js +0 -9
  480. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js.map +0 -1
  481. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs +0 -4745
  482. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs.map +0 -1
  483. package/node_modules/web-streams-polyfill/dist/polyfill.es6.js +0 -4838
  484. package/node_modules/web-streams-polyfill/dist/polyfill.es6.js.map +0 -1
  485. package/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js +0 -9
  486. package/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js.map +0 -1
  487. package/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs +0 -4818
  488. package/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs.map +0 -1
  489. package/node_modules/web-streams-polyfill/dist/polyfill.js +0 -5011
  490. package/node_modules/web-streams-polyfill/dist/polyfill.js.map +0 -1
  491. package/node_modules/web-streams-polyfill/dist/polyfill.min.js +0 -9
  492. package/node_modules/web-streams-polyfill/dist/polyfill.min.js.map +0 -1
  493. package/node_modules/web-streams-polyfill/dist/polyfill.mjs +0 -4991
  494. package/node_modules/web-streams-polyfill/dist/polyfill.mjs.map +0 -1
  495. package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +0 -4737
  496. package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +0 -1
  497. package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs +0 -4717
  498. package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs.map +0 -1
  499. package/node_modules/web-streams-polyfill/dist/ponyfill.es6.js +0 -4810
  500. package/node_modules/web-streams-polyfill/dist/ponyfill.es6.js.map +0 -1
  501. package/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs +0 -4790
  502. package/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs.map +0 -1
  503. package/node_modules/web-streams-polyfill/dist/ponyfill.js +0 -4983
  504. package/node_modules/web-streams-polyfill/dist/ponyfill.js.map +0 -1
  505. package/node_modules/web-streams-polyfill/dist/ponyfill.mjs +0 -4963
  506. package/node_modules/web-streams-polyfill/dist/ponyfill.mjs.map +0 -1
  507. package/node_modules/web-streams-polyfill/dist/types/polyfill.d.ts +0 -24
  508. package/node_modules/web-streams-polyfill/dist/types/ponyfill.d.ts +0 -780
  509. package/node_modules/web-streams-polyfill/dist/types/ts3.6/polyfill.d.ts +0 -28
  510. package/node_modules/web-streams-polyfill/dist/types/ts3.6/ponyfill.d.ts +0 -821
  511. package/node_modules/web-streams-polyfill/dist/types/tsdoc-metadata.json +0 -11
  512. package/node_modules/web-streams-polyfill/es2018/package.json +0 -14
  513. package/node_modules/web-streams-polyfill/es6/package.json +0 -14
  514. package/node_modules/web-streams-polyfill/package.json +0 -83
  515. package/node_modules/web-streams-polyfill/ponyfill/es2018/package.json +0 -13
  516. package/node_modules/web-streams-polyfill/ponyfill/es6/package.json +0 -13
  517. package/node_modules/web-streams-polyfill/ponyfill/package.json +0 -13
  518. package/src/commands/policy.ts +0 -146
  519. package/test-policy.md +0 -55
  520. package/test_cli.ts +0 -16
  521. package/version.json +0 -18
@@ -1,396 +0,0 @@
1
- 'use strict'
2
-
3
- const { Buffer } = require('buffer')
4
- const symbol = Symbol.for('BufferList')
5
-
6
- function BufferList (buf) {
7
- if (!(this instanceof BufferList)) {
8
- return new BufferList(buf)
9
- }
10
-
11
- BufferList._init.call(this, buf)
12
- }
13
-
14
- BufferList._init = function _init (buf) {
15
- Object.defineProperty(this, symbol, { value: true })
16
-
17
- this._bufs = []
18
- this.length = 0
19
-
20
- if (buf) {
21
- this.append(buf)
22
- }
23
- }
24
-
25
- BufferList.prototype._new = function _new (buf) {
26
- return new BufferList(buf)
27
- }
28
-
29
- BufferList.prototype._offset = function _offset (offset) {
30
- if (offset === 0) {
31
- return [0, 0]
32
- }
33
-
34
- let tot = 0
35
-
36
- for (let i = 0; i < this._bufs.length; i++) {
37
- const _t = tot + this._bufs[i].length
38
- if (offset < _t || i === this._bufs.length - 1) {
39
- return [i, offset - tot]
40
- }
41
- tot = _t
42
- }
43
- }
44
-
45
- BufferList.prototype._reverseOffset = function (blOffset) {
46
- const bufferId = blOffset[0]
47
- let offset = blOffset[1]
48
-
49
- for (let i = 0; i < bufferId; i++) {
50
- offset += this._bufs[i].length
51
- }
52
-
53
- return offset
54
- }
55
-
56
- BufferList.prototype.get = function get (index) {
57
- if (index > this.length || index < 0) {
58
- return undefined
59
- }
60
-
61
- const offset = this._offset(index)
62
-
63
- return this._bufs[offset[0]][offset[1]]
64
- }
65
-
66
- BufferList.prototype.slice = function slice (start, end) {
67
- if (typeof start === 'number' && start < 0) {
68
- start += this.length
69
- }
70
-
71
- if (typeof end === 'number' && end < 0) {
72
- end += this.length
73
- }
74
-
75
- return this.copy(null, 0, start, end)
76
- }
77
-
78
- BufferList.prototype.copy = function copy (dst, dstStart, srcStart, srcEnd) {
79
- if (typeof srcStart !== 'number' || srcStart < 0) {
80
- srcStart = 0
81
- }
82
-
83
- if (typeof srcEnd !== 'number' || srcEnd > this.length) {
84
- srcEnd = this.length
85
- }
86
-
87
- if (srcStart >= this.length) {
88
- return dst || Buffer.alloc(0)
89
- }
90
-
91
- if (srcEnd <= 0) {
92
- return dst || Buffer.alloc(0)
93
- }
94
-
95
- const copy = !!dst
96
- const off = this._offset(srcStart)
97
- const len = srcEnd - srcStart
98
- let bytes = len
99
- let bufoff = (copy && dstStart) || 0
100
- let start = off[1]
101
-
102
- // copy/slice everything
103
- if (srcStart === 0 && srcEnd === this.length) {
104
- if (!copy) {
105
- // slice, but full concat if multiple buffers
106
- return this._bufs.length === 1
107
- ? this._bufs[0]
108
- : Buffer.concat(this._bufs, this.length)
109
- }
110
-
111
- // copy, need to copy individual buffers
112
- for (let i = 0; i < this._bufs.length; i++) {
113
- this._bufs[i].copy(dst, bufoff)
114
- bufoff += this._bufs[i].length
115
- }
116
-
117
- return dst
118
- }
119
-
120
- // easy, cheap case where it's a subset of one of the buffers
121
- if (bytes <= this._bufs[off[0]].length - start) {
122
- return copy
123
- ? this._bufs[off[0]].copy(dst, dstStart, start, start + bytes)
124
- : this._bufs[off[0]].slice(start, start + bytes)
125
- }
126
-
127
- if (!copy) {
128
- // a slice, we need something to copy in to
129
- dst = Buffer.allocUnsafe(len)
130
- }
131
-
132
- for (let i = off[0]; i < this._bufs.length; i++) {
133
- const l = this._bufs[i].length - start
134
-
135
- if (bytes > l) {
136
- this._bufs[i].copy(dst, bufoff, start)
137
- bufoff += l
138
- } else {
139
- this._bufs[i].copy(dst, bufoff, start, start + bytes)
140
- bufoff += l
141
- break
142
- }
143
-
144
- bytes -= l
145
-
146
- if (start) {
147
- start = 0
148
- }
149
- }
150
-
151
- // safeguard so that we don't return uninitialized memory
152
- if (dst.length > bufoff) return dst.slice(0, bufoff)
153
-
154
- return dst
155
- }
156
-
157
- BufferList.prototype.shallowSlice = function shallowSlice (start, end) {
158
- start = start || 0
159
- end = typeof end !== 'number' ? this.length : end
160
-
161
- if (start < 0) {
162
- start += this.length
163
- }
164
-
165
- if (end < 0) {
166
- end += this.length
167
- }
168
-
169
- if (start === end) {
170
- return this._new()
171
- }
172
-
173
- const startOffset = this._offset(start)
174
- const endOffset = this._offset(end)
175
- const buffers = this._bufs.slice(startOffset[0], endOffset[0] + 1)
176
-
177
- if (endOffset[1] === 0) {
178
- buffers.pop()
179
- } else {
180
- buffers[buffers.length - 1] = buffers[buffers.length - 1].slice(0, endOffset[1])
181
- }
182
-
183
- if (startOffset[1] !== 0) {
184
- buffers[0] = buffers[0].slice(startOffset[1])
185
- }
186
-
187
- return this._new(buffers)
188
- }
189
-
190
- BufferList.prototype.toString = function toString (encoding, start, end) {
191
- return this.slice(start, end).toString(encoding)
192
- }
193
-
194
- BufferList.prototype.consume = function consume (bytes) {
195
- // first, normalize the argument, in accordance with how Buffer does it
196
- bytes = Math.trunc(bytes)
197
- // do nothing if not a positive number
198
- if (Number.isNaN(bytes) || bytes <= 0) return this
199
-
200
- while (this._bufs.length) {
201
- if (bytes >= this._bufs[0].length) {
202
- bytes -= this._bufs[0].length
203
- this.length -= this._bufs[0].length
204
- this._bufs.shift()
205
- } else {
206
- this._bufs[0] = this._bufs[0].slice(bytes)
207
- this.length -= bytes
208
- break
209
- }
210
- }
211
-
212
- return this
213
- }
214
-
215
- BufferList.prototype.duplicate = function duplicate () {
216
- const copy = this._new()
217
-
218
- for (let i = 0; i < this._bufs.length; i++) {
219
- copy.append(this._bufs[i])
220
- }
221
-
222
- return copy
223
- }
224
-
225
- BufferList.prototype.append = function append (buf) {
226
- if (buf == null) {
227
- return this
228
- }
229
-
230
- if (buf.buffer) {
231
- // append a view of the underlying ArrayBuffer
232
- this._appendBuffer(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength))
233
- } else if (Array.isArray(buf)) {
234
- for (let i = 0; i < buf.length; i++) {
235
- this.append(buf[i])
236
- }
237
- } else if (this._isBufferList(buf)) {
238
- // unwrap argument into individual BufferLists
239
- for (let i = 0; i < buf._bufs.length; i++) {
240
- this.append(buf._bufs[i])
241
- }
242
- } else {
243
- // coerce number arguments to strings, since Buffer(number) does
244
- // uninitialized memory allocation
245
- if (typeof buf === 'number') {
246
- buf = buf.toString()
247
- }
248
-
249
- this._appendBuffer(Buffer.from(buf))
250
- }
251
-
252
- return this
253
- }
254
-
255
- BufferList.prototype._appendBuffer = function appendBuffer (buf) {
256
- this._bufs.push(buf)
257
- this.length += buf.length
258
- }
259
-
260
- BufferList.prototype.indexOf = function (search, offset, encoding) {
261
- if (encoding === undefined && typeof offset === 'string') {
262
- encoding = offset
263
- offset = undefined
264
- }
265
-
266
- if (typeof search === 'function' || Array.isArray(search)) {
267
- throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.')
268
- } else if (typeof search === 'number') {
269
- search = Buffer.from([search])
270
- } else if (typeof search === 'string') {
271
- search = Buffer.from(search, encoding)
272
- } else if (this._isBufferList(search)) {
273
- search = search.slice()
274
- } else if (Array.isArray(search.buffer)) {
275
- search = Buffer.from(search.buffer, search.byteOffset, search.byteLength)
276
- } else if (!Buffer.isBuffer(search)) {
277
- search = Buffer.from(search)
278
- }
279
-
280
- offset = Number(offset || 0)
281
-
282
- if (isNaN(offset)) {
283
- offset = 0
284
- }
285
-
286
- if (offset < 0) {
287
- offset = this.length + offset
288
- }
289
-
290
- if (offset < 0) {
291
- offset = 0
292
- }
293
-
294
- if (search.length === 0) {
295
- return offset > this.length ? this.length : offset
296
- }
297
-
298
- const blOffset = this._offset(offset)
299
- let blIndex = blOffset[0] // index of which internal buffer we're working on
300
- let buffOffset = blOffset[1] // offset of the internal buffer we're working on
301
-
302
- // scan over each buffer
303
- for (; blIndex < this._bufs.length; blIndex++) {
304
- const buff = this._bufs[blIndex]
305
-
306
- while (buffOffset < buff.length) {
307
- const availableWindow = buff.length - buffOffset
308
-
309
- if (availableWindow >= search.length) {
310
- const nativeSearchResult = buff.indexOf(search, buffOffset)
311
-
312
- if (nativeSearchResult !== -1) {
313
- return this._reverseOffset([blIndex, nativeSearchResult])
314
- }
315
-
316
- buffOffset = buff.length - search.length + 1 // end of native search window
317
- } else {
318
- const revOffset = this._reverseOffset([blIndex, buffOffset])
319
-
320
- if (this._match(revOffset, search)) {
321
- return revOffset
322
- }
323
-
324
- buffOffset++
325
- }
326
- }
327
-
328
- buffOffset = 0
329
- }
330
-
331
- return -1
332
- }
333
-
334
- BufferList.prototype._match = function (offset, search) {
335
- if (this.length - offset < search.length) {
336
- return false
337
- }
338
-
339
- for (let searchOffset = 0; searchOffset < search.length; searchOffset++) {
340
- if (this.get(offset + searchOffset) !== search[searchOffset]) {
341
- return false
342
- }
343
- }
344
- return true
345
- }
346
-
347
- ;(function () {
348
- const methods = {
349
- readDoubleBE: 8,
350
- readDoubleLE: 8,
351
- readFloatBE: 4,
352
- readFloatLE: 4,
353
- readInt32BE: 4,
354
- readInt32LE: 4,
355
- readUInt32BE: 4,
356
- readUInt32LE: 4,
357
- readInt16BE: 2,
358
- readInt16LE: 2,
359
- readUInt16BE: 2,
360
- readUInt16LE: 2,
361
- readInt8: 1,
362
- readUInt8: 1,
363
- readIntBE: null,
364
- readIntLE: null,
365
- readUIntBE: null,
366
- readUIntLE: null
367
- }
368
-
369
- for (const m in methods) {
370
- (function (m) {
371
- if (methods[m] === null) {
372
- BufferList.prototype[m] = function (offset, byteLength) {
373
- return this.slice(offset, offset + byteLength)[m](0, byteLength)
374
- }
375
- } else {
376
- BufferList.prototype[m] = function (offset = 0) {
377
- return this.slice(offset, offset + methods[m])[m](0)
378
- }
379
- }
380
- }(m))
381
- }
382
- }())
383
-
384
- // Used internally by the class and also as an indicator of this object being
385
- // a `BufferList`. It's not possible to use `instanceof BufferList` in a browser
386
- // environment because there could be multiple different copies of the
387
- // BufferList class and some `BufferList`s might be `BufferList`s.
388
- BufferList.prototype._isBufferList = function _isBufferList (b) {
389
- return b instanceof BufferList || BufferList.isBufferList(b)
390
- }
391
-
392
- BufferList.isBufferList = function isBufferList (b) {
393
- return b != null && b[symbol]
394
- }
395
-
396
- module.exports = BufferList
@@ -1,13 +0,0 @@
1
- The MIT License (MIT)
2
- =====================
3
-
4
- Copyright (c) 2013-2019 bl contributors
5
- ----------------------------------
6
-
7
- *bl contributors listed at <https://github.com/rvagg/bl#contributors>*
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,247 +0,0 @@
1
- # bl *(BufferList)*
2
-
3
- [![Build Status](https://api.travis-ci.com/rvagg/bl.svg?branch=master)](https://travis-ci.com/rvagg/bl/)
4
-
5
- **A Node.js Buffer list collector, reader and streamer thingy.**
6
-
7
- [![NPM](https://nodei.co/npm/bl.svg)](https://nodei.co/npm/bl/)
8
-
9
- **bl** is a storage object for collections of Node Buffers, exposing them with the main Buffer readable API. Also works as a duplex stream so you can collect buffers from a stream that emits them and emit buffers to a stream that consumes them!
10
-
11
- The original buffers are kept intact and copies are only done as necessary. Any reads that require the use of a single original buffer will return a slice of that buffer only (which references the same memory as the original buffer). Reads that span buffers perform concatenation as required and return the results transparently.
12
-
13
- ```js
14
- const { BufferList } = require('bl')
15
-
16
- const bl = new BufferList()
17
- bl.append(Buffer.from('abcd'))
18
- bl.append(Buffer.from('efg'))
19
- bl.append('hi') // bl will also accept & convert Strings
20
- bl.append(Buffer.from('j'))
21
- bl.append(Buffer.from([ 0x3, 0x4 ]))
22
-
23
- console.log(bl.length) // 12
24
-
25
- console.log(bl.slice(0, 10).toString('ascii')) // 'abcdefghij'
26
- console.log(bl.slice(3, 10).toString('ascii')) // 'defghij'
27
- console.log(bl.slice(3, 6).toString('ascii')) // 'def'
28
- console.log(bl.slice(3, 8).toString('ascii')) // 'defgh'
29
- console.log(bl.slice(5, 10).toString('ascii')) // 'fghij'
30
-
31
- console.log(bl.indexOf('def')) // 3
32
- console.log(bl.indexOf('asdf')) // -1
33
-
34
- // or just use toString!
35
- console.log(bl.toString()) // 'abcdefghij\u0003\u0004'
36
- console.log(bl.toString('ascii', 3, 8)) // 'defgh'
37
- console.log(bl.toString('ascii', 5, 10)) // 'fghij'
38
-
39
- // other standard Buffer readables
40
- console.log(bl.readUInt16BE(10)) // 0x0304
41
- console.log(bl.readUInt16LE(10)) // 0x0403
42
- ```
43
-
44
- Give it a callback in the constructor and use it just like **[concat-stream](https://github.com/maxogden/node-concat-stream)**:
45
-
46
- ```js
47
- const { BufferListStream } = require('bl')
48
- const fs = require('fs')
49
-
50
- fs.createReadStream('README.md')
51
- .pipe(BufferListStream((err, data) => { // note 'new' isn't strictly required
52
- // `data` is a complete Buffer object containing the full data
53
- console.log(data.toString())
54
- }))
55
- ```
56
-
57
- Note that when you use the *callback* method like this, the resulting `data` parameter is a concatenation of all `Buffer` objects in the list. If you want to avoid the overhead of this concatenation (in cases of extreme performance consciousness), then avoid the *callback* method and just listen to `'end'` instead, like a standard Stream.
58
-
59
- Or to fetch a URL using [hyperquest](https://github.com/substack/hyperquest) (should work with [request](http://github.com/mikeal/request) and even plain Node http too!):
60
-
61
- ```js
62
- const hyperquest = require('hyperquest')
63
- const { BufferListStream } = require('bl')
64
-
65
- const url = 'https://raw.github.com/rvagg/bl/master/README.md'
66
-
67
- hyperquest(url).pipe(BufferListStream((err, data) => {
68
- console.log(data.toString())
69
- }))
70
- ```
71
-
72
- Or, use it as a readable stream to recompose a list of Buffers to an output source:
73
-
74
- ```js
75
- const { BufferListStream } = require('bl')
76
- const fs = require('fs')
77
-
78
- var bl = new BufferListStream()
79
- bl.append(Buffer.from('abcd'))
80
- bl.append(Buffer.from('efg'))
81
- bl.append(Buffer.from('hi'))
82
- bl.append(Buffer.from('j'))
83
-
84
- bl.pipe(fs.createWriteStream('gibberish.txt'))
85
- ```
86
-
87
- ## API
88
-
89
- * <a href="#ctor"><code><b>new BufferList([ buf ])</b></code></a>
90
- * <a href="#isBufferList"><code><b>BufferList.isBufferList(obj)</b></code></a>
91
- * <a href="#length"><code>bl.<b>length</b></code></a>
92
- * <a href="#append"><code>bl.<b>append(buffer)</b></code></a>
93
- * <a href="#get"><code>bl.<b>get(index)</b></code></a>
94
- * <a href="#indexOf"><code>bl.<b>indexOf(value[, byteOffset][, encoding])</b></code></a>
95
- * <a href="#slice"><code>bl.<b>slice([ start[, end ] ])</b></code></a>
96
- * <a href="#shallowSlice"><code>bl.<b>shallowSlice([ start[, end ] ])</b></code></a>
97
- * <a href="#copy"><code>bl.<b>copy(dest, [ destStart, [ srcStart [, srcEnd ] ] ])</b></code></a>
98
- * <a href="#duplicate"><code>bl.<b>duplicate()</b></code></a>
99
- * <a href="#consume"><code>bl.<b>consume(bytes)</b></code></a>
100
- * <a href="#toString"><code>bl.<b>toString([encoding, [ start, [ end ]]])</b></code></a>
101
- * <a href="#readXX"><code>bl.<b>readDoubleBE()</b></code>, <code>bl.<b>readDoubleLE()</b></code>, <code>bl.<b>readFloatBE()</b></code>, <code>bl.<b>readFloatLE()</b></code>, <code>bl.<b>readInt32BE()</b></code>, <code>bl.<b>readInt32LE()</b></code>, <code>bl.<b>readUInt32BE()</b></code>, <code>bl.<b>readUInt32LE()</b></code>, <code>bl.<b>readInt16BE()</b></code>, <code>bl.<b>readInt16LE()</b></code>, <code>bl.<b>readUInt16BE()</b></code>, <code>bl.<b>readUInt16LE()</b></code>, <code>bl.<b>readInt8()</b></code>, <code>bl.<b>readUInt8()</b></code></a>
102
- * <a href="#ctorStream"><code><b>new BufferListStream([ callback ])</b></code></a>
103
-
104
- --------------------------------------------------------
105
- <a name="ctor"></a>
106
- ### new BufferList([ Buffer | Buffer array | BufferList | BufferList array | String ])
107
- No arguments are _required_ for the constructor, but you can initialise the list by passing in a single `Buffer` object or an array of `Buffer` objects.
108
-
109
- `new` is not strictly required, if you don't instantiate a new object, it will be done automatically for you so you can create a new instance simply with:
110
-
111
- ```js
112
- const { BufferList } = require('bl')
113
- const bl = BufferList()
114
-
115
- // equivalent to:
116
-
117
- const { BufferList } = require('bl')
118
- const bl = new BufferList()
119
- ```
120
-
121
- --------------------------------------------------------
122
- <a name="isBufferList"></a>
123
- ### BufferList.isBufferList(obj)
124
- Determines if the passed object is a `BufferList`. It will return `true` if the passed object is an instance of `BufferList` **or** `BufferListStream` and `false` otherwise.
125
-
126
- N.B. this won't return `true` for `BufferList` or `BufferListStream` instances created by versions of this library before this static method was added.
127
-
128
- --------------------------------------------------------
129
- <a name="length"></a>
130
- ### bl.length
131
- Get the length of the list in bytes. This is the sum of the lengths of all of the buffers contained in the list, minus any initial offset for a semi-consumed buffer at the beginning. Should accurately represent the total number of bytes that can be read from the list.
132
-
133
- --------------------------------------------------------
134
- <a name="append"></a>
135
- ### bl.append(Buffer | Buffer array | BufferList | BufferList array | String)
136
- `append(buffer)` adds an additional buffer or BufferList to the internal list. `this` is returned so it can be chained.
137
-
138
- --------------------------------------------------------
139
- <a name="get"></a>
140
- ### bl.get(index)
141
- `get()` will return the byte at the specified index.
142
-
143
- --------------------------------------------------------
144
- <a name="indexOf"></a>
145
- ### bl.indexOf(value[, byteOffset][, encoding])
146
- `get()` will return the byte at the specified index.
147
- `indexOf()` method returns the first index at which a given element can be found in the BufferList, or -1 if it is not present.
148
-
149
- --------------------------------------------------------
150
- <a name="slice"></a>
151
- ### bl.slice([ start, [ end ] ])
152
- `slice()` returns a new `Buffer` object containing the bytes within the range specified. Both `start` and `end` are optional and will default to the beginning and end of the list respectively.
153
-
154
- If the requested range spans a single internal buffer then a slice of that buffer will be returned which shares the original memory range of that Buffer. If the range spans multiple buffers then copy operations will likely occur to give you a uniform Buffer.
155
-
156
- --------------------------------------------------------
157
- <a name="shallowSlice"></a>
158
- ### bl.shallowSlice([ start, [ end ] ])
159
- `shallowSlice()` returns a new `BufferList` object containing the bytes within the range specified. Both `start` and `end` are optional and will default to the beginning and end of the list respectively.
160
-
161
- No copies will be performed. All buffers in the result share memory with the original list.
162
-
163
- --------------------------------------------------------
164
- <a name="copy"></a>
165
- ### bl.copy(dest, [ destStart, [ srcStart [, srcEnd ] ] ])
166
- `copy()` copies the content of the list in the `dest` buffer, starting from `destStart` and containing the bytes within the range specified with `srcStart` to `srcEnd`. `destStart`, `start` and `end` are optional and will default to the beginning of the `dest` buffer, and the beginning and end of the list respectively.
167
-
168
- --------------------------------------------------------
169
- <a name="duplicate"></a>
170
- ### bl.duplicate()
171
- `duplicate()` performs a **shallow-copy** of the list. The internal Buffers remains the same, so if you change the underlying Buffers, the change will be reflected in both the original and the duplicate. This method is needed if you want to call `consume()` or `pipe()` and still keep the original list.Example:
172
-
173
- ```js
174
- var bl = new BufferListStream()
175
-
176
- bl.append('hello')
177
- bl.append(' world')
178
- bl.append('\n')
179
-
180
- bl.duplicate().pipe(process.stdout, { end: false })
181
-
182
- console.log(bl.toString())
183
- ```
184
-
185
- --------------------------------------------------------
186
- <a name="consume"></a>
187
- ### bl.consume(bytes)
188
- `consume()` will shift bytes *off the start of the list*. The number of bytes consumed don't need to line up with the sizes of the internal Buffers&mdash;initial offsets will be calculated accordingly in order to give you a consistent view of the data.
189
-
190
- --------------------------------------------------------
191
- <a name="toString"></a>
192
- ### bl.toString([encoding, [ start, [ end ]]])
193
- `toString()` will return a string representation of the buffer. The optional `start` and `end` arguments are passed on to `slice()`, while the `encoding` is passed on to `toString()` of the resulting Buffer. See the [Buffer#toString()](http://nodejs.org/docs/latest/api/buffer.html#buffer_buf_tostring_encoding_start_end) documentation for more information.
194
-
195
- --------------------------------------------------------
196
- <a name="readXX"></a>
197
- ### bl.readDoubleBE(), bl.readDoubleLE(), bl.readFloatBE(), bl.readFloatLE(), bl.readInt32BE(), bl.readInt32LE(), bl.readUInt32BE(), bl.readUInt32LE(), bl.readInt16BE(), bl.readInt16LE(), bl.readUInt16BE(), bl.readUInt16LE(), bl.readInt8(), bl.readUInt8()
198
-
199
- All of the standard byte-reading methods of the `Buffer` interface are implemented and will operate across internal Buffer boundaries transparently.
200
-
201
- See the <b><code>[Buffer](http://nodejs.org/docs/latest/api/buffer.html)</code></b> documentation for how these work.
202
-
203
- --------------------------------------------------------
204
- <a name="ctorStream"></a>
205
- ### new BufferListStream([ callback | Buffer | Buffer array | BufferList | BufferList array | String ])
206
- **BufferListStream** is a Node **[Duplex Stream](http://nodejs.org/docs/latest/api/stream.html#stream_class_stream_duplex)**, so it can be read from and written to like a standard Node stream. You can also `pipe()` to and from a **BufferListStream** instance.
207
-
208
- The constructor takes an optional callback, if supplied, the callback will be called with an error argument followed by a reference to the **bl** instance, when `bl.end()` is called (i.e. from a piped stream). This is a convenient method of collecting the entire contents of a stream, particularly when the stream is *chunky*, such as a network stream.
209
-
210
- Normally, no arguments are required for the constructor, but you can initialise the list by passing in a single `Buffer` object or an array of `Buffer` object.
211
-
212
- `new` is not strictly required, if you don't instantiate a new object, it will be done automatically for you so you can create a new instance simply with:
213
-
214
- ```js
215
- const { BufferListStream } = require('bl')
216
- const bl = BufferListStream()
217
-
218
- // equivalent to:
219
-
220
- const { BufferListStream } = require('bl')
221
- const bl = new BufferListStream()
222
- ```
223
-
224
- N.B. For backwards compatibility reasons, `BufferListStream` is the **default** export when you `require('bl')`:
225
-
226
- ```js
227
- const { BufferListStream } = require('bl')
228
- // equivalent to:
229
- const BufferListStream = require('bl')
230
- ```
231
-
232
- --------------------------------------------------------
233
-
234
- ## Contributors
235
-
236
- **bl** is brought to you by the following hackers:
237
-
238
- * [Rod Vagg](https://github.com/rvagg)
239
- * [Matteo Collina](https://github.com/mcollina)
240
- * [Jarett Cruger](https://github.com/jcrugzz)
241
-
242
- <a name="license"></a>
243
- ## License &amp; copyright
244
-
245
- Copyright (c) 2013-2019 bl contributors (listed above).
246
-
247
- bl is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.