korext 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,79 +0,0 @@
1
- import { GLOBSTAR } from 'minimatch';
2
- export type MMPattern = string | RegExp | typeof GLOBSTAR;
3
- export type PatternList = [p: MMPattern, ...rest: MMPattern[]];
4
- export type UNCPatternList = [
5
- p0: '',
6
- p1: '',
7
- p2: string,
8
- p3: string,
9
- ...rest: MMPattern[]
10
- ];
11
- export type DrivePatternList = [p0: string, ...rest: MMPattern[]];
12
- export type AbsolutePatternList = [p0: '', ...rest: MMPattern[]];
13
- export type GlobList = [p: string, ...rest: string[]];
14
- declare const customInspect: unique symbol;
15
- /**
16
- * An immutable-ish view on an array of glob parts and their parsed
17
- * results
18
- */
19
- export declare class Pattern {
20
- #private;
21
- readonly length: number;
22
- constructor(patternList: MMPattern[], globList: string[], index: number, platform: NodeJS.Platform);
23
- [customInspect](): string;
24
- /**
25
- * The first entry in the parsed list of patterns
26
- */
27
- pattern(): MMPattern;
28
- /**
29
- * true of if pattern() returns a string
30
- */
31
- isString(): boolean;
32
- /**
33
- * true of if pattern() returns GLOBSTAR
34
- */
35
- isGlobstar(): boolean;
36
- /**
37
- * true if pattern() returns a regexp
38
- */
39
- isRegExp(): boolean;
40
- /**
41
- * The /-joined set of glob parts that make up this pattern
42
- */
43
- globString(): string;
44
- /**
45
- * true if there are more pattern parts after this one
46
- */
47
- hasMore(): boolean;
48
- /**
49
- * The rest of the pattern after this part, or null if this is the end
50
- */
51
- rest(): Pattern | null;
52
- /**
53
- * true if the pattern represents a //unc/path/ on windows
54
- */
55
- isUNC(): boolean;
56
- /**
57
- * True if the pattern starts with a drive letter on Windows
58
- */
59
- isDrive(): boolean;
60
- /**
61
- * True if the pattern is rooted on an absolute path
62
- */
63
- isAbsolute(): boolean;
64
- /**
65
- * consume the root of the pattern, and return it
66
- */
67
- root(): string;
68
- /**
69
- * Check to see if the current globstar pattern is allowed to follow
70
- * a symbolic link.
71
- */
72
- checkFollowGlobstar(): boolean;
73
- /**
74
- * Mark that the current globstar pattern is following a symbolic link
75
- */
76
- markFollowGlobstar(): boolean;
77
- }
78
- export {};
79
- //# sourceMappingURL=pattern.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pattern.d.ts","sourceRoot":"","sources":["../../src/pattern.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,QAAQ,CAAA;AAGzD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;AAC9D,MAAM,MAAM,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O;CAM9B"}
@@ -1,219 +0,0 @@
1
- // this is just a very light wrapper around 2 arrays with an offset index
2
- import { GLOBSTAR } from 'minimatch';
3
- const isPatternList = (pl) => pl.length >= 1;
4
- const isGlobList = (gl) => gl.length >= 1;
5
- const customInspect = Symbol.for('nodejs.util.inspect.custom');
6
- /**
7
- * An immutable-ish view on an array of glob parts and their parsed
8
- * results
9
- */
10
- export class Pattern {
11
- #patternList;
12
- #globList;
13
- #index;
14
- length;
15
- #platform;
16
- #rest;
17
- #globString;
18
- #isDrive;
19
- #isUNC;
20
- #isAbsolute;
21
- #followGlobstar = true;
22
- constructor(patternList, globList, index, platform) {
23
- if (!isPatternList(patternList)) {
24
- throw new TypeError('empty pattern list');
25
- }
26
- if (!isGlobList(globList)) {
27
- throw new TypeError('empty glob list');
28
- }
29
- if (globList.length !== patternList.length) {
30
- throw new TypeError('mismatched pattern list and glob list lengths');
31
- }
32
- this.length = patternList.length;
33
- if (index < 0 || index >= this.length) {
34
- throw new TypeError('index out of range');
35
- }
36
- this.#patternList = patternList;
37
- this.#globList = globList;
38
- this.#index = index;
39
- this.#platform = platform;
40
- // normalize root entries of absolute patterns on initial creation.
41
- if (this.#index === 0) {
42
- // c: => ['c:/']
43
- // C:/ => ['C:/']
44
- // C:/x => ['C:/', 'x']
45
- // //host/share => ['//host/share/']
46
- // //host/share/ => ['//host/share/']
47
- // //host/share/x => ['//host/share/', 'x']
48
- // /etc => ['/', 'etc']
49
- // / => ['/']
50
- if (this.isUNC()) {
51
- // '' / '' / 'host' / 'share'
52
- const [p0, p1, p2, p3, ...prest] = this.#patternList;
53
- const [g0, g1, g2, g3, ...grest] = this.#globList;
54
- if (prest[0] === '') {
55
- // ends in /
56
- prest.shift();
57
- grest.shift();
58
- }
59
- const p = [p0, p1, p2, p3, ''].join('/');
60
- const g = [g0, g1, g2, g3, ''].join('/');
61
- this.#patternList = [p, ...prest];
62
- this.#globList = [g, ...grest];
63
- this.length = this.#patternList.length;
64
- }
65
- else if (this.isDrive() || this.isAbsolute()) {
66
- const [p1, ...prest] = this.#patternList;
67
- const [g1, ...grest] = this.#globList;
68
- if (prest[0] === '') {
69
- // ends in /
70
- prest.shift();
71
- grest.shift();
72
- }
73
- const p = p1 + '/';
74
- const g = g1 + '/';
75
- this.#patternList = [p, ...prest];
76
- this.#globList = [g, ...grest];
77
- this.length = this.#patternList.length;
78
- }
79
- }
80
- }
81
- [customInspect]() {
82
- return 'Pattern <' + this.#globList.slice(this.#index).join('/') + '>';
83
- }
84
- /**
85
- * The first entry in the parsed list of patterns
86
- */
87
- pattern() {
88
- return this.#patternList[this.#index];
89
- }
90
- /**
91
- * true of if pattern() returns a string
92
- */
93
- isString() {
94
- return typeof this.#patternList[this.#index] === 'string';
95
- }
96
- /**
97
- * true of if pattern() returns GLOBSTAR
98
- */
99
- isGlobstar() {
100
- return this.#patternList[this.#index] === GLOBSTAR;
101
- }
102
- /**
103
- * true if pattern() returns a regexp
104
- */
105
- isRegExp() {
106
- return this.#patternList[this.#index] instanceof RegExp;
107
- }
108
- /**
109
- * The /-joined set of glob parts that make up this pattern
110
- */
111
- globString() {
112
- return (this.#globString =
113
- this.#globString ||
114
- (this.#index === 0 ?
115
- this.isAbsolute() ?
116
- this.#globList[0] + this.#globList.slice(1).join('/')
117
- : this.#globList.join('/')
118
- : this.#globList.slice(this.#index).join('/')));
119
- }
120
- /**
121
- * true if there are more pattern parts after this one
122
- */
123
- hasMore() {
124
- return this.length > this.#index + 1;
125
- }
126
- /**
127
- * The rest of the pattern after this part, or null if this is the end
128
- */
129
- rest() {
130
- if (this.#rest !== undefined)
131
- return this.#rest;
132
- if (!this.hasMore())
133
- return (this.#rest = null);
134
- this.#rest = new Pattern(this.#patternList, this.#globList, this.#index + 1, this.#platform);
135
- this.#rest.#isAbsolute = this.#isAbsolute;
136
- this.#rest.#isUNC = this.#isUNC;
137
- this.#rest.#isDrive = this.#isDrive;
138
- return this.#rest;
139
- }
140
- /**
141
- * true if the pattern represents a //unc/path/ on windows
142
- */
143
- isUNC() {
144
- const pl = this.#patternList;
145
- return this.#isUNC !== undefined ?
146
- this.#isUNC
147
- : (this.#isUNC =
148
- this.#platform === 'win32' &&
149
- this.#index === 0 &&
150
- pl[0] === '' &&
151
- pl[1] === '' &&
152
- typeof pl[2] === 'string' &&
153
- !!pl[2] &&
154
- typeof pl[3] === 'string' &&
155
- !!pl[3]);
156
- }
157
- // pattern like C:/...
158
- // split = ['C:', ...]
159
- // XXX: would be nice to handle patterns like `c:*` to test the cwd
160
- // in c: for *, but I don't know of a way to even figure out what that
161
- // cwd is without actually chdir'ing into it?
162
- /**
163
- * True if the pattern starts with a drive letter on Windows
164
- */
165
- isDrive() {
166
- const pl = this.#patternList;
167
- return this.#isDrive !== undefined ?
168
- this.#isDrive
169
- : (this.#isDrive =
170
- this.#platform === 'win32' &&
171
- this.#index === 0 &&
172
- this.length > 1 &&
173
- typeof pl[0] === 'string' &&
174
- /^[a-z]:$/i.test(pl[0]));
175
- }
176
- // pattern = '/' or '/...' or '/x/...'
177
- // split = ['', ''] or ['', ...] or ['', 'x', ...]
178
- // Drive and UNC both considered absolute on windows
179
- /**
180
- * True if the pattern is rooted on an absolute path
181
- */
182
- isAbsolute() {
183
- const pl = this.#patternList;
184
- return this.#isAbsolute !== undefined ?
185
- this.#isAbsolute
186
- : (this.#isAbsolute =
187
- (pl[0] === '' && pl.length > 1) ||
188
- this.isDrive() ||
189
- this.isUNC());
190
- }
191
- /**
192
- * consume the root of the pattern, and return it
193
- */
194
- root() {
195
- const p = this.#patternList[0];
196
- return (typeof p === 'string' && this.isAbsolute() && this.#index === 0) ?
197
- p
198
- : '';
199
- }
200
- /**
201
- * Check to see if the current globstar pattern is allowed to follow
202
- * a symbolic link.
203
- */
204
- checkFollowGlobstar() {
205
- return !(this.#index === 0 ||
206
- !this.isGlobstar() ||
207
- !this.#followGlobstar);
208
- }
209
- /**
210
- * Mark that the current globstar pattern is following a symbolic link
211
- */
212
- markFollowGlobstar() {
213
- if (this.#index === 0 || !this.isGlobstar() || !this.#followGlobstar)
214
- return false;
215
- this.#followGlobstar = false;
216
- return true;
217
- }
218
- }
219
- //# sourceMappingURL=pattern.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pattern.js","sourceRoot":"","sources":["../../src/pattern.ts"],"names":[],"mappings":"AAAA,yEAAyE;AAEzE,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAgBpC,MAAM,aAAa,GAAG,CAAC,EAAe,EAAqB,EAAE,CAC3D,EAAE,CAAC,MAAM,IAAI,CAAC,CAAA;AAChB,MAAM,UAAU,GAAG,CAAC,EAAY,EAAkB,EAAE,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,CAAA;AAEnE,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAA;AAE9D;;;GAGG;AACH,MAAM,OAAO,OAAO;IACT,YAAY,CAAa;IACzB,SAAS,CAAU;IACnB,MAAM,CAAQ;IACd,MAAM,CAAQ;IACd,SAAS,CAAiB;IACnC,KAAK,CAAiB;IACtB,WAAW,CAAS;IACpB,QAAQ,CAAU;IAClB,MAAM,CAAU;IAChB,WAAW,CAAU;IACrB,eAAe,GAAY,IAAI,CAAA;IAE/B,YACE,WAAwB,EACxB,QAAkB,EAClB,KAAa,EACb,QAAyB;QAEzB,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,CAAC;YAChC,MAAM,IAAI,SAAS,CAAC,oBAAoB,CAAC,CAAA;QAC3C,CAAC;QACD,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,SAAS,CAAC,iBAAiB,CAAC,CAAA;QACxC,CAAC;QACD,IAAI,QAAQ,CAAC,MAAM,KAAK,WAAW,CAAC,MAAM,EAAE,CAAC;YAC3C,MAAM,IAAI,SAAS,CAAC,+CAA+C,CAAC,CAAA;QACtE,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,C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B,OAAO,IAAI,CAAA;IACb,CAAC;CACF","sourcesContent":["// this is just a very light wrapper around 2 arrays with an offset index\n\nimport { GLOBSTAR } from 'minimatch'\nexport type MMPattern = string | RegExp | typeof GLOBSTAR\n\n// an array of length >= 1\nexport type PatternList = [p: MMPattern, ...rest: MMPattern[]]\nexport type UNCPatternList = [\n p0: '',\n p1: '',\n p2: string,\n p3: string,\n ...rest: MMPattern[],\n]\nexport type DrivePatternList = [p0: string, ...rest: MMPattern[]]\nexport type AbsolutePatternList = [p0: '', ...rest: MMPattern[]]\nexport type GlobList = [p: string, ...rest: string[]]\n\nconst isPatternList = (pl: MMPattern[]): pl is PatternList =>\n pl.length >= 1\nconst isGlobList = (gl: string[]): gl is GlobList => gl.length >= 1\n\nconst customInspect = Symbol.for('nodejs.util.inspect.custom')\n\n/**\n * An immutable-ish view on an array of glob parts and their parsed\n * results\n */\nexport class Pattern {\n readonly #patternList: PatternList\n readonly #globList: GlobList\n readonly #index: number\n readonly length: number\n readonly #platform: NodeJS.Platform\n #rest?: Pattern | null\n #globString?: string\n #isDrive?: boolean\n #isUNC?: boolean\n #isAbsolute?: boolean\n #followGlobstar: boolean = true\n\n constructor(\n patternList: MMPattern[],\n globList: string[],\n index: number,\n platform: NodeJS.Platform,\n ) {\n if (!isPatternList(patternList)) {\n throw new TypeError('empty pattern list')\n }\n if (!isGlobList(globList)) {\n throw new TypeError('empty glob list')\n }\n if (globList.length !== patternList.length) {\n throw new TypeError('mismatched pattern list and glob list lengths')\n }\n this.length = patternList.length\n if (index < 0 || index >= this.length) {\n throw new TypeError('index out of range')\n }\n this.#patternList = patternList\n this.#globList = globList\n this.#index = index\n this.#platform = platform\n\n // normalize root entries of absolute patterns on initial creation.\n if (this.#index === 0) {\n // c: => ['c:/']\n // C:/ => ['C:/']\n // C:/x => ['C:/', 'x']\n // //host/share => ['//host/share/']\n // //host/share/ => ['//host/share/']\n // //host/share/x => ['//host/share/', 'x']\n // /etc => ['/', 'etc']\n // / => ['/']\n if (this.isUNC()) {\n // '' / '' / 'host' / 'share'\n const [p0, p1, p2, p3, ...prest] = this.#patternList\n const [g0, g1, g2, g3, ...grest] = this.#globList\n if (prest[0] === '') {\n // ends in /\n prest.shift()\n grest.shift()\n }\n const p = [p0, p1, p2, p3, ''].join('/')\n const g = [g0, g1, g2, g3, ''].join('/')\n this.#patternList = [p, ...prest]\n this.#globList = [g, ...grest]\n this.length = this.#patternList.length\n } else if (this.isDrive() || this.isAbsolute()) {\n const [p1, ...prest] = this.#patternList\n const [g1, ...grest] = this.#globList\n if (prest[0] === '') {\n // ends in /\n prest.shift()\n grest.shift()\n }\n const p = (p1 as string) + '/'\n const g = g1 + '/'\n this.#patternList = [p, ...prest]\n this.#globList = [g, ...grest]\n this.length = this.#patternList.length\n }\n }\n }\n\n [customInspect]() {\n return 'Pattern <' + this.#globList.slice(this.#index).join('/') + '>'\n }\n\n /**\n * The first entry in the parsed list of patterns\n */\n pattern(): MMPattern {\n return this.#patternList[this.#index] as MMPattern\n }\n\n /**\n * true of if pattern() returns a string\n */\n isString(): boolean {\n return typeof this.#patternList[this.#index] === 'string'\n }\n /**\n * true of if pattern() returns GLOBSTAR\n */\n isGlobstar(): boolean {\n return this.#patternList[this.#index] === GLOBSTAR\n }\n /**\n * true if pattern() returns a regexp\n */\n isRegExp(): boolean {\n return this.#patternList[this.#index] instanceof RegExp\n }\n\n /**\n * The /-joined set of glob parts that make up this pattern\n */\n globString(): string {\n return (this.#globString =\n this.#globString ||\n (this.#index === 0 ?\n this.isAbsolute() ?\n this.#globList[0] + this.#globList.slice(1).join('/')\n : this.#globList.join('/')\n : this.#globList.slice(this.#index).join('/')))\n }\n\n /**\n * true if there are more pattern parts after this one\n */\n hasMore(): boolean {\n return this.length > this.#index + 1\n }\n\n /**\n * The rest of the pattern after this part, or null if this is the end\n */\n rest(): Pattern | null {\n if (this.#rest !== undefined) return this.#rest\n if (!this.hasMore()) return (this.#rest = null)\n this.#rest = new Pattern(\n this.#patternList,\n this.#globList,\n this.#index + 1,\n this.#platform,\n )\n this.#rest.#isAbsolute = this.#isAbsolute\n this.#rest.#isUNC = this.#isUNC\n this.#rest.#isDrive = this.#isDrive\n return this.#rest\n }\n\n /**\n * true if the pattern represents a //unc/path/ on windows\n */\n isUNC(): boolean {\n const pl = this.#patternList\n return this.#isUNC !== undefined ?\n this.#isUNC\n : (this.#isUNC =\n this.#platform === 'win32' &&\n this.#index === 0 &&\n pl[0] === '' &&\n pl[1] === '' &&\n typeof pl[2] === 'string' &&\n !!pl[2] &&\n typeof pl[3] === 'string' &&\n !!pl[3])\n }\n\n // pattern like C:/...\n // split = ['C:', ...]\n // XXX: would be nice to handle patterns like `c:*` to test the cwd\n // in c: for *, but I don't know of a way to even figure out what that\n // cwd is without actually chdir'ing into it?\n /**\n * True if the pattern starts with a drive letter on Windows\n */\n isDrive(): boolean {\n const pl = this.#patternList\n return this.#isDrive !== undefined ?\n this.#isDrive\n : (this.#isDrive =\n this.#platform === 'win32' &&\n this.#index === 0 &&\n this.length > 1 &&\n typeof pl[0] === 'string' &&\n /^[a-z]:$/i.test(pl[0]))\n }\n\n // pattern = '/' or '/...' or '/x/...'\n // split = ['', ''] or ['', ...] or ['', 'x', ...]\n // Drive and UNC both considered absolute on windows\n /**\n * True if the pattern is rooted on an absolute path\n */\n isAbsolute(): boolean {\n const pl = this.#patternList\n return this.#isAbsolute !== undefined ?\n this.#isAbsolute\n : (this.#isAbsolute =\n (pl[0] === '' && pl.length > 1) ||\n this.isDrive() ||\n this.isUNC())\n }\n\n /**\n * consume the root of the pattern, and return it\n */\n root(): string {\n const p = this.#patternList[0]\n return (\n typeof p === 'string' && this.isAbsolute() && this.#index === 0\n ) ?\n p\n : ''\n }\n\n /**\n * Check to see if the current globstar pattern is allowed to follow\n * a symbolic link.\n */\n checkFollowGlobstar(): boolean {\n return !(\n this.#index === 0 ||\n !this.isGlobstar() ||\n !this.#followGlobstar\n )\n }\n\n /**\n * Mark that the current globstar pattern is following a symbolic link\n */\n markFollowGlobstar(): boolean {\n if (this.#index === 0 || !this.isGlobstar() || !this.#followGlobstar)\n return false\n this.#followGlobstar = false\n return true\n }\n}\n"]}
@@ -1,59 +0,0 @@
1
- import { MMRegExp } from 'minimatch';
2
- import { Path } from 'path-scurry';
3
- import { Pattern } from './pattern.js';
4
- import { GlobWalkerOpts } from './walker.js';
5
- /**
6
- * A cache of which patterns have been processed for a given Path
7
- */
8
- export declare class HasWalkedCache {
9
- store: Map<string, Set<string>>;
10
- constructor(store?: Map<string, Set<string>>);
11
- copy(): HasWalkedCache;
12
- hasWalked(target: Path, pattern: Pattern): boolean | undefined;
13
- storeWalked(target: Path, pattern: Pattern): void;
14
- }
15
- /**
16
- * A record of which paths have been matched in a given walk step,
17
- * and whether they only are considered a match if they are a directory,
18
- * and whether their absolute or relative path should be returned.
19
- */
20
- export declare class MatchRecord {
21
- store: Map<Path, number>;
22
- add(target: Path, absolute: boolean, ifDir: boolean): void;
23
- entries(): [Path, boolean, boolean][];
24
- }
25
- /**
26
- * A collection of patterns that must be processed in a subsequent step
27
- * for a given path.
28
- */
29
- export declare class SubWalks {
30
- store: Map<Path, Pattern[]>;
31
- add(target: Path, pattern: Pattern): void;
32
- get(target: Path): Pattern[];
33
- entries(): [Path, Pattern[]][];
34
- keys(): Path[];
35
- }
36
- /**
37
- * The class that processes patterns for a given path.
38
- *
39
- * Handles child entry filtering, and determining whether a path's
40
- * directory contents must be read.
41
- */
42
- export declare class Processor {
43
- hasWalkedCache: HasWalkedCache;
44
- matches: MatchRecord;
45
- subwalks: SubWalks;
46
- patterns?: Pattern[];
47
- follow: boolean;
48
- dot: boolean;
49
- opts: GlobWalkerOpts;
50
- constructor(opts: GlobWalkerOpts, hasWalkedCache?: HasWalkedCache);
51
- processPatterns(target: Path, patterns: Pattern[]): this;
52
- subwalkTargets(): Path[];
53
- child(): Processor;
54
- filterEntries(parent: Path, entries: Path[]): Processor;
55
- testGlobstar(e: Path, pattern: Pattern, rest: Pattern | null, absolute: boolean): void;
56
- testRegExp(e: Path, p: MMRegExp, rest: Pattern | null, absolute: boolean): void;
57
- testString(e: Path, p: string, rest: Pattern | null, absolute: boolean): void;
58
- }
59
- //# sourceMappingURL=processor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../src/processor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,QAAQ,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAa,OAAO,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,qBAAa,cAAc;IACzB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAA;gBACnB,KAAK,GAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAa;IAGvD,IAAI;IAGJ,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO;IAGxC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO;CAM3C;AAED;;;;GAIG;AACH,qBAAa,WAAW;IACtB,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAY;IACpC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO;IAMnD,OAAO,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE;CAOtC;AAED;;;GAGG;AACH,qBAAa,QAAQ;IACnB,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAY;IACvC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO;IAWlC,GAAG,CAAC,MAAM,EAAE,IAAI,GAAG,OAAO,EAAE;IAS5B,OAAO,IAAI,CAAC,IA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