immosquare-cleaner 0.1.42 → 0.1.43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (807) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/node_modules/.bin/ncu +1 -1
  4. data/node_modules/.bin/npm-check-updates +1 -1
  5. data/node_modules/.bin/rimraf +1 -1
  6. data/node_modules/@eslint/config-array/dist/cjs/index.cjs +5 -0
  7. data/node_modules/@eslint/config-array/dist/esm/index.js +5 -0
  8. data/node_modules/@eslint/config-array/package.json +1 -1
  9. data/node_modules/@eslint/js/package.json +1 -1
  10. data/node_modules/ansi-regex/index.d.ts +13 -9
  11. data/node_modules/ansi-regex/index.js +5 -3
  12. data/node_modules/ansi-regex/license +1 -1
  13. data/node_modules/ansi-regex/package.json +6 -9
  14. data/node_modules/ansi-regex/readme.md +8 -2
  15. data/node_modules/brace-expansion/README.md +0 -6
  16. data/node_modules/brace-expansion/index.js +84 -86
  17. data/node_modules/brace-expansion/package.json +4 -3
  18. data/node_modules/chalk/license +1 -1
  19. data/node_modules/chalk/package.json +23 -38
  20. data/node_modules/chalk/readme.md +85 -69
  21. data/node_modules/chalk/source/index.js +84 -80
  22. data/node_modules/eslint/lib/cli.js +0 -20
  23. data/node_modules/eslint/lib/languages/js/source-code/source-code.js +19 -0
  24. data/node_modules/eslint/lib/linter/apply-disable-directives.js +24 -12
  25. data/node_modules/eslint/lib/linter/linter.js +44 -20
  26. data/node_modules/eslint/lib/linter/report-translator.js +10 -10
  27. data/node_modules/eslint/lib/linter/rule-fixer.js +38 -15
  28. data/node_modules/eslint/lib/shared/flags.js +2 -2
  29. data/node_modules/eslint/package.json +5 -4
  30. data/node_modules/glob/LICENSE +7 -1
  31. data/node_modules/glob/README.md +284 -1120
  32. data/node_modules/glob/common.js +238 -0
  33. data/node_modules/glob/glob.js +790 -0
  34. data/node_modules/glob/package.json +34 -76
  35. data/node_modules/glob/sync.js +486 -0
  36. data/node_modules/lru-cache/LICENSE +1 -1
  37. data/node_modules/lru-cache/README.md +104 -1055
  38. data/node_modules/lru-cache/index.js +246 -1139
  39. data/node_modules/lru-cache/package.json +11 -75
  40. data/node_modules/minimatch/LICENSE +1 -1
  41. data/node_modules/minimatch/README.md +65 -289
  42. data/node_modules/minimatch/package.json +14 -67
  43. data/node_modules/npm-check-updates/README.md +9 -12
  44. data/node_modules/npm-check-updates/build/cli.js +21 -21
  45. data/node_modules/npm-check-updates/build/cli.js.map +1 -1
  46. data/node_modules/npm-check-updates/build/index-CWktU8PK.js +58 -0
  47. data/node_modules/npm-check-updates/build/index-CWktU8PK.js.map +1 -0
  48. data/node_modules/npm-check-updates/build/index.d.ts +1 -3
  49. data/node_modules/npm-check-updates/build/index.js +207 -223
  50. data/node_modules/npm-check-updates/build/index.js.map +1 -1
  51. data/node_modules/npm-check-updates/package.json +101 -105
  52. data/node_modules/rimraf/LICENSE +1 -1
  53. data/node_modules/rimraf/README.md +70 -188
  54. data/node_modules/rimraf/bin.js +50 -0
  55. data/node_modules/rimraf/package.json +16 -74
  56. data/node_modules/rimraf/rimraf.js +364 -0
  57. data/node_modules/semver/README.md +27 -221
  58. data/node_modules/semver/bin/semver.js +84 -107
  59. data/node_modules/semver/package.json +14 -63
  60. data/node_modules/semver/semver.js +1643 -0
  61. data/node_modules/strip-ansi/index.d.ts +4 -2
  62. data/node_modules/strip-ansi/index.js +3 -13
  63. data/node_modules/strip-ansi/license +1 -1
  64. data/node_modules/strip-ansi/package.json +7 -10
  65. data/node_modules/strip-ansi/readme.md +7 -2
  66. data/node_modules/strip-json-comments/index.d.ts +13 -18
  67. data/node_modules/strip-json-comments/index.js +38 -68
  68. data/node_modules/strip-json-comments/package.json +5 -13
  69. data/node_modules/strip-json-comments/readme.md +18 -15
  70. data/node_modules/yallist/package.json +1 -1
  71. data/node_modules/yallist/yallist.js +3 -3
  72. data/package.json +3 -3
  73. metadata +14 -736
  74. data/node_modules/@eslint/config-array/node_modules/minimatch/LICENSE +0 -15
  75. data/node_modules/@eslint/config-array/node_modules/minimatch/README.md +0 -230
  76. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
  77. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
  78. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
  79. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
  80. data/node_modules/@eslint/config-array/node_modules/minimatch/package.json +0 -33
  81. data/node_modules/chalk/source/index.d.ts +0 -320
  82. data/node_modules/chalk/source/utilities.js +0 -33
  83. data/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  84. data/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  85. data/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  86. data/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  87. data/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  88. data/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  89. data/node_modules/eslint/node_modules/chalk/license +0 -9
  90. data/node_modules/eslint/node_modules/chalk/package.json +0 -68
  91. data/node_modules/eslint/node_modules/chalk/readme.md +0 -341
  92. data/node_modules/eslint/node_modules/chalk/source/index.js +0 -229
  93. data/node_modules/eslint/node_modules/minimatch/LICENSE +0 -15
  94. data/node_modules/eslint/node_modules/minimatch/README.md +0 -230
  95. data/node_modules/eslint/node_modules/minimatch/minimatch.js +0 -947
  96. data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
  97. data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
  98. data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
  99. data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
  100. data/node_modules/eslint/node_modules/minimatch/package.json +0 -33
  101. data/node_modules/eslint/node_modules/strip-ansi/index.d.ts +0 -17
  102. data/node_modules/eslint/node_modules/strip-ansi/index.js +0 -4
  103. data/node_modules/eslint/node_modules/strip-ansi/license +0 -9
  104. data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +0 -37
  105. data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/index.js +0 -10
  106. data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/license +0 -9
  107. data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/package.json +0 -55
  108. data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +0 -78
  109. data/node_modules/eslint/node_modules/strip-ansi/package.json +0 -54
  110. data/node_modules/eslint/node_modules/strip-ansi/readme.md +0 -46
  111. data/node_modules/glob/dist/commonjs/glob.d.ts +0 -344
  112. data/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
  113. data/node_modules/glob/dist/commonjs/glob.js +0 -243
  114. data/node_modules/glob/dist/commonjs/glob.js.map +0 -1
  115. data/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
  116. data/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
  117. data/node_modules/glob/dist/commonjs/has-magic.js +0 -27
  118. data/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
  119. data/node_modules/glob/dist/commonjs/ignore.d.ts +0 -20
  120. data/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
  121. data/node_modules/glob/dist/commonjs/ignore.js +0 -108
  122. data/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
  123. data/node_modules/glob/dist/commonjs/index.d.ts +0 -96
  124. data/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
  125. data/node_modules/glob/dist/commonjs/index.js +0 -68
  126. data/node_modules/glob/dist/commonjs/index.js.map +0 -1
  127. data/node_modules/glob/dist/commonjs/package.json +0 -1
  128. data/node_modules/glob/dist/commonjs/pattern.d.ts +0 -77
  129. data/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
  130. data/node_modules/glob/dist/commonjs/pattern.js +0 -219
  131. data/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
  132. data/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
  133. data/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
  134. data/node_modules/glob/dist/commonjs/processor.js +0 -302
  135. data/node_modules/glob/dist/commonjs/processor.js.map +0 -1
  136. data/node_modules/glob/dist/commonjs/walker.d.ts +0 -96
  137. data/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
  138. data/node_modules/glob/dist/commonjs/walker.js +0 -358
  139. data/node_modules/glob/dist/commonjs/walker.js.map +0 -1
  140. data/node_modules/glob/dist/esm/bin.d.mts +0 -3
  141. data/node_modules/glob/dist/esm/bin.d.mts.map +0 -1
  142. data/node_modules/glob/dist/esm/bin.mjs +0 -275
  143. data/node_modules/glob/dist/esm/bin.mjs.map +0 -1
  144. data/node_modules/glob/dist/esm/glob.d.ts +0 -344
  145. data/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
  146. data/node_modules/glob/dist/esm/glob.js +0 -239
  147. data/node_modules/glob/dist/esm/glob.js.map +0 -1
  148. data/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
  149. data/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
  150. data/node_modules/glob/dist/esm/has-magic.js +0 -23
  151. data/node_modules/glob/dist/esm/has-magic.js.map +0 -1
  152. data/node_modules/glob/dist/esm/ignore.d.ts +0 -20
  153. data/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
  154. data/node_modules/glob/dist/esm/ignore.js +0 -104
  155. data/node_modules/glob/dist/esm/ignore.js.map +0 -1
  156. data/node_modules/glob/dist/esm/index.d.ts +0 -96
  157. data/node_modules/glob/dist/esm/index.d.ts.map +0 -1
  158. data/node_modules/glob/dist/esm/index.js +0 -56
  159. data/node_modules/glob/dist/esm/index.js.map +0 -1
  160. data/node_modules/glob/dist/esm/package.json +0 -1
  161. data/node_modules/glob/dist/esm/pattern.d.ts +0 -77
  162. data/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
  163. data/node_modules/glob/dist/esm/pattern.js +0 -215
  164. data/node_modules/glob/dist/esm/pattern.js.map +0 -1
  165. data/node_modules/glob/dist/esm/processor.d.ts +0 -59
  166. data/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
  167. data/node_modules/glob/dist/esm/processor.js +0 -295
  168. data/node_modules/glob/dist/esm/processor.js.map +0 -1
  169. data/node_modules/glob/dist/esm/walker.d.ts +0 -96
  170. data/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
  171. data/node_modules/glob/dist/esm/walker.js +0 -352
  172. data/node_modules/glob/dist/esm/walker.js.map +0 -1
  173. data/node_modules/glob/node_modules/minimatch/LICENSE +0 -15
  174. data/node_modules/glob/node_modules/minimatch/README.md +0 -454
  175. data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
  176. data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
  177. data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
  178. data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
  179. data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
  180. data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
  181. data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.js +0 -589
  182. data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
  183. data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
  184. data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
  185. data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
  186. data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
  187. data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
  188. data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
  189. data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.js +0 -22
  190. data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
  191. data/node_modules/glob/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
  192. data/node_modules/glob/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
  193. data/node_modules/glob/node_modules/minimatch/dist/cjs/index.js +0 -1011
  194. data/node_modules/glob/node_modules/minimatch/dist/cjs/index.js.map +0 -1
  195. data/node_modules/glob/node_modules/minimatch/dist/cjs/package.json +0 -3
  196. data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
  197. data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
  198. data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.js +0 -24
  199. data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
  200. data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
  201. data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
  202. data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
  203. data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
  204. data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
  205. data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
  206. data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.js +0 -585
  207. data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
  208. data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
  209. data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
  210. data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
  211. data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
  212. data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
  213. data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
  214. data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.js +0 -18
  215. data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
  216. data/node_modules/glob/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
  217. data/node_modules/glob/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
  218. data/node_modules/glob/node_modules/minimatch/dist/mjs/index.js +0 -995
  219. data/node_modules/glob/node_modules/minimatch/dist/mjs/index.js.map +0 -1
  220. data/node_modules/glob/node_modules/minimatch/dist/mjs/package.json +0 -3
  221. data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
  222. data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
  223. data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.js +0 -20
  224. data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
  225. data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
  226. data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -135
  227. data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -203
  228. data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -46
  229. data/node_modules/glob/node_modules/minimatch/package.json +0 -86
  230. data/node_modules/glob/node_modules/minipass/LICENSE +0 -15
  231. data/node_modules/glob/node_modules/minipass/README.md +0 -825
  232. data/node_modules/glob/node_modules/minipass/dist/commonjs/index.d.ts +0 -549
  233. data/node_modules/glob/node_modules/minipass/dist/commonjs/index.d.ts.map +0 -1
  234. data/node_modules/glob/node_modules/minipass/dist/commonjs/index.js +0 -1028
  235. data/node_modules/glob/node_modules/minipass/dist/commonjs/index.js.map +0 -1
  236. data/node_modules/glob/node_modules/minipass/dist/commonjs/package.json +0 -1
  237. data/node_modules/glob/node_modules/minipass/dist/esm/index.d.ts +0 -549
  238. data/node_modules/glob/node_modules/minipass/dist/esm/index.d.ts.map +0 -1
  239. data/node_modules/glob/node_modules/minipass/dist/esm/index.js +0 -1018
  240. data/node_modules/glob/node_modules/minipass/dist/esm/index.js.map +0 -1
  241. data/node_modules/glob/node_modules/minipass/dist/esm/package.json +0 -1
  242. data/node_modules/glob/node_modules/minipass/package.json +0 -82
  243. data/node_modules/lru-cache/index.d.ts +0 -869
  244. data/node_modules/lru-cache/index.mjs +0 -1227
  245. data/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
  246. data/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
  247. data/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
  248. data/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
  249. data/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
  250. data/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
  251. data/node_modules/minimatch/dist/cjs/ast.js +0 -589
  252. data/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
  253. data/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
  254. data/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
  255. data/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
  256. data/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
  257. data/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
  258. data/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
  259. data/node_modules/minimatch/dist/cjs/escape.js +0 -22
  260. data/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
  261. data/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
  262. data/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
  263. data/node_modules/minimatch/dist/cjs/index.js +0 -1011
  264. data/node_modules/minimatch/dist/cjs/index.js.map +0 -1
  265. data/node_modules/minimatch/dist/cjs/package.json +0 -3
  266. data/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
  267. data/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
  268. data/node_modules/minimatch/dist/cjs/unescape.js +0 -24
  269. data/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
  270. data/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
  271. data/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
  272. data/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
  273. data/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
  274. data/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
  275. data/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
  276. data/node_modules/minimatch/dist/mjs/ast.js +0 -585
  277. data/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
  278. data/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
  279. data/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
  280. data/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
  281. data/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
  282. data/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
  283. data/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
  284. data/node_modules/minimatch/dist/mjs/escape.js +0 -18
  285. data/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
  286. data/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
  287. data/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
  288. data/node_modules/minimatch/dist/mjs/index.js +0 -995
  289. data/node_modules/minimatch/dist/mjs/index.js.map +0 -1
  290. data/node_modules/minimatch/dist/mjs/package.json +0 -3
  291. data/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
  292. data/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
  293. data/node_modules/minimatch/dist/mjs/unescape.js +0 -20
  294. data/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
  295. data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js +0 -66
  296. data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js.map +0 -1
  297. data/node_modules/npm-check-updates/build/package.json +0 -183
  298. data/node_modules/npm-check-updates/build/src/bin/cli.d.ts +0 -2
  299. data/node_modules/npm-check-updates/build/src/bin/cli.js +0 -182
  300. data/node_modules/npm-check-updates/build/src/bin/cli.js.map +0 -1
  301. data/node_modules/npm-check-updates/build/src/cli-options.d.ts +0 -9
  302. data/node_modules/npm-check-updates/build/src/cli-options.js +0 -795
  303. data/node_modules/npm-check-updates/build/src/cli-options.js.map +0 -1
  304. data/node_modules/npm-check-updates/build/src/index.d.ts +0 -17
  305. data/node_modules/npm-check-updates/build/src/index.js +0 -316
  306. data/node_modules/npm-check-updates/build/src/index.js.map +0 -1
  307. data/node_modules/npm-check-updates/build/src/lib/cache.d.ts +0 -17
  308. data/node_modules/npm-check-updates/build/src/lib/cache.js +0 -105
  309. data/node_modules/npm-check-updates/build/src/lib/cache.js.map +0 -1
  310. data/node_modules/npm-check-updates/build/src/lib/chalk.d.ts +0 -7
  311. data/node_modules/npm-check-updates/build/src/lib/chalk.js +0 -66
  312. data/node_modules/npm-check-updates/build/src/lib/chalk.js.map +0 -1
  313. data/node_modules/npm-check-updates/build/src/lib/determinePackageManager.d.ts +0 -8
  314. data/node_modules/npm-check-updates/build/src/lib/determinePackageManager.js +0 -32
  315. data/node_modules/npm-check-updates/build/src/lib/determinePackageManager.js.map +0 -1
  316. data/node_modules/npm-check-updates/build/src/lib/doctor.d.ts +0 -8
  317. data/node_modules/npm-check-updates/build/src/lib/doctor.js +0 -290
  318. data/node_modules/npm-check-updates/build/src/lib/doctor.js.map +0 -1
  319. data/node_modules/npm-check-updates/build/src/lib/exists.d.ts +0 -3
  320. data/node_modules/npm-check-updates/build/src/lib/exists.js +0 -10
  321. data/node_modules/npm-check-updates/build/src/lib/exists.js.map +0 -1
  322. data/node_modules/npm-check-updates/build/src/lib/figgy-pudding/index.d.ts +0 -2
  323. data/node_modules/npm-check-updates/build/src/lib/figgy-pudding/index.js +0 -112
  324. data/node_modules/npm-check-updates/build/src/lib/figgy-pudding/index.js.map +0 -1
  325. data/node_modules/npm-check-updates/build/src/lib/filterAndReject.d.ts +0 -12
  326. data/node_modules/npm-check-updates/build/src/lib/filterAndReject.js +0 -80
  327. data/node_modules/npm-check-updates/build/src/lib/filterAndReject.js.map +0 -1
  328. data/node_modules/npm-check-updates/build/src/lib/filterObject.d.ts +0 -4
  329. data/node_modules/npm-check-updates/build/src/lib/filterObject.js +0 -10
  330. data/node_modules/npm-check-updates/build/src/lib/filterObject.js.map +0 -1
  331. data/node_modules/npm-check-updates/build/src/lib/findLockfile.d.ts +0 -12
  332. data/node_modules/npm-check-updates/build/src/lib/findLockfile.js +0 -54
  333. data/node_modules/npm-check-updates/build/src/lib/findLockfile.js.map +0 -1
  334. data/node_modules/npm-check-updates/build/src/lib/findPackage.d.ts +0 -16
  335. data/node_modules/npm-check-updates/build/src/lib/findPackage.js +0 -78
  336. data/node_modules/npm-check-updates/build/src/lib/findPackage.js.map +0 -1
  337. data/node_modules/npm-check-updates/build/src/lib/getAllPackages.d.ts +0 -10
  338. data/node_modules/npm-check-updates/build/src/lib/getAllPackages.js +0 -126
  339. data/node_modules/npm-check-updates/build/src/lib/getAllPackages.js.map +0 -1
  340. data/node_modules/npm-check-updates/build/src/lib/getCurrentDependencies.d.ts +0 -15
  341. data/node_modules/npm-check-updates/build/src/lib/getCurrentDependencies.js +0 -76
  342. data/node_modules/npm-check-updates/build/src/lib/getCurrentDependencies.js.map +0 -1
  343. data/node_modules/npm-check-updates/build/src/lib/getIgnoredUpgrades.d.ts +0 -8
  344. data/node_modules/npm-check-updates/build/src/lib/getIgnoredUpgrades.js +0 -37
  345. data/node_modules/npm-check-updates/build/src/lib/getIgnoredUpgrades.js.map +0 -1
  346. data/node_modules/npm-check-updates/build/src/lib/getInstalledPackages.d.ts +0 -12
  347. data/node_modules/npm-check-updates/build/src/lib/getInstalledPackages.js +0 -35
  348. data/node_modules/npm-check-updates/build/src/lib/getInstalledPackages.js.map +0 -1
  349. data/node_modules/npm-check-updates/build/src/lib/getNcuRc.d.ts +0 -22
  350. data/node_modules/npm-check-updates/build/src/lib/getNcuRc.js +0 -60
  351. data/node_modules/npm-check-updates/build/src/lib/getNcuRc.js.map +0 -1
  352. data/node_modules/npm-check-updates/build/src/lib/getPackageManager.d.ts +0 -13
  353. data/node_modules/npm-check-updates/build/src/lib/getPackageManager.js +0 -30
  354. data/node_modules/npm-check-updates/build/src/lib/getPackageManager.js.map +0 -1
  355. data/node_modules/npm-check-updates/build/src/lib/getPeerDependencies.d.ts +0 -6
  356. data/node_modules/npm-check-updates/build/src/lib/getPeerDependencies.js +0 -31
  357. data/node_modules/npm-check-updates/build/src/lib/getPeerDependencies.js.map +0 -1
  358. data/node_modules/npm-check-updates/build/src/lib/getPeerDependenciesFromRegistry.d.ts +0 -12
  359. data/node_modules/npm-check-updates/build/src/lib/getPeerDependenciesFromRegistry.js +0 -35
  360. data/node_modules/npm-check-updates/build/src/lib/getPeerDependenciesFromRegistry.js.map +0 -1
  361. data/node_modules/npm-check-updates/build/src/lib/getPreferredWildcard.d.ts +0 -10
  362. data/node_modules/npm-check-updates/build/src/lib/getPreferredWildcard.js +0 -30
  363. data/node_modules/npm-check-updates/build/src/lib/getPreferredWildcard.js.map +0 -1
  364. data/node_modules/npm-check-updates/build/src/lib/getRepoUrl.d.ts +0 -11
  365. data/node_modules/npm-check-updates/build/src/lib/getRepoUrl.js +0 -81
  366. data/node_modules/npm-check-updates/build/src/lib/getRepoUrl.js.map +0 -1
  367. data/node_modules/npm-check-updates/build/src/lib/initOptions.d.ts +0 -7
  368. data/node_modules/npm-check-updates/build/src/lib/initOptions.js +0 -207
  369. data/node_modules/npm-check-updates/build/src/lib/initOptions.js.map +0 -1
  370. data/node_modules/npm-check-updates/build/src/lib/isUpgradeable.d.ts +0 -14
  371. data/node_modules/npm-check-updates/build/src/lib/isUpgradeable.js +0 -68
  372. data/node_modules/npm-check-updates/build/src/lib/isUpgradeable.js.map +0 -1
  373. data/node_modules/npm-check-updates/build/src/lib/keyValueBy.d.ts +0 -6
  374. data/node_modules/npm-check-updates/build/src/lib/keyValueBy.js +0 -23
  375. data/node_modules/npm-check-updates/build/src/lib/keyValueBy.js.map +0 -1
  376. data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.d.ts +0 -3
  377. data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js +0 -108
  378. data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js.map +0 -1
  379. data/node_modules/npm-check-updates/build/src/lib/loadPackageInfoFromFile.d.ts +0 -5
  380. data/node_modules/npm-check-updates/build/src/lib/loadPackageInfoFromFile.js +0 -27
  381. data/node_modules/npm-check-updates/build/src/lib/loadPackageInfoFromFile.js.map +0 -1
  382. data/node_modules/npm-check-updates/build/src/lib/logging.d.ts +0 -77
  383. data/node_modules/npm-check-updates/build/src/lib/logging.js +0 -287
  384. data/node_modules/npm-check-updates/build/src/lib/logging.js.map +0 -1
  385. data/node_modules/npm-check-updates/build/src/lib/mergeOptions.d.ts +0 -69
  386. data/node_modules/npm-check-updates/build/src/lib/mergeOptions.js +0 -23
  387. data/node_modules/npm-check-updates/build/src/lib/mergeOptions.js.map +0 -1
  388. data/node_modules/npm-check-updates/build/src/lib/programError.d.ts +0 -6
  389. data/node_modules/npm-check-updates/build/src/lib/programError.js +0 -19
  390. data/node_modules/npm-check-updates/build/src/lib/programError.js.map +0 -1
  391. data/node_modules/npm-check-updates/build/src/lib/queryVersions.d.ts +0 -13
  392. data/node_modules/npm-check-updates/build/src/lib/queryVersions.js +0 -118
  393. data/node_modules/npm-check-updates/build/src/lib/queryVersions.js.map +0 -1
  394. data/node_modules/npm-check-updates/build/src/lib/resolveDepSections.d.ts +0 -4
  395. data/node_modules/npm-check-updates/build/src/lib/resolveDepSections.js +0 -20
  396. data/node_modules/npm-check-updates/build/src/lib/resolveDepSections.js.map +0 -1
  397. data/node_modules/npm-check-updates/build/src/lib/runGlobal.d.ts +0 -5
  398. data/node_modules/npm-check-updates/build/src/lib/runGlobal.js +0 -76
  399. data/node_modules/npm-check-updates/build/src/lib/runGlobal.js.map +0 -1
  400. data/node_modules/npm-check-updates/build/src/lib/runLocal.d.ts +0 -18
  401. data/node_modules/npm-check-updates/build/src/lib/runLocal.js +0 -239
  402. data/node_modules/npm-check-updates/build/src/lib/runLocal.js.map +0 -1
  403. data/node_modules/npm-check-updates/build/src/lib/table.d.ts +0 -7
  404. data/node_modules/npm-check-updates/build/src/lib/table.js +0 -27
  405. data/node_modules/npm-check-updates/build/src/lib/table.js.map +0 -1
  406. data/node_modules/npm-check-updates/build/src/lib/upgradeDependencies.d.ts +0 -14
  407. data/node_modules/npm-check-updates/build/src/lib/upgradeDependencies.js +0 -103
  408. data/node_modules/npm-check-updates/build/src/lib/upgradeDependencies.js.map +0 -1
  409. data/node_modules/npm-check-updates/build/src/lib/upgradePackageData.d.ts +0 -14
  410. data/node_modules/npm-check-updates/build/src/lib/upgradePackageData.js +0 -50
  411. data/node_modules/npm-check-updates/build/src/lib/upgradePackageData.js.map +0 -1
  412. data/node_modules/npm-check-updates/build/src/lib/upgradePackageDefinitions.d.ts +0 -13
  413. data/node_modules/npm-check-updates/build/src/lib/upgradePackageDefinitions.js +0 -58
  414. data/node_modules/npm-check-updates/build/src/lib/upgradePackageDefinitions.js.map +0 -1
  415. data/node_modules/npm-check-updates/build/src/lib/version-util.d.ts +0 -180
  416. data/node_modules/npm-check-updates/build/src/lib/version-util.js +0 -518
  417. data/node_modules/npm-check-updates/build/src/lib/version-util.js.map +0 -1
  418. data/node_modules/npm-check-updates/build/src/lib/wrap.d.ts +0 -3
  419. data/node_modules/npm-check-updates/build/src/lib/wrap.js +0 -45
  420. data/node_modules/npm-check-updates/build/src/lib/wrap.js.map +0 -1
  421. data/node_modules/npm-check-updates/build/src/package-managers/bun.d.ts +0 -18
  422. data/node_modules/npm-check-updates/build/src/package-managers/bun.js +0 -89
  423. data/node_modules/npm-check-updates/build/src/package-managers/bun.js.map +0 -1
  424. data/node_modules/npm-check-updates/build/src/package-managers/filters.d.ts +0 -35
  425. data/node_modules/npm-check-updates/build/src/package-managers/filters.js +0 -96
  426. data/node_modules/npm-check-updates/build/src/package-managers/filters.js.map +0 -1
  427. data/node_modules/npm-check-updates/build/src/package-managers/gitTags.d.ts +0 -16
  428. data/node_modules/npm-check-updates/build/src/package-managers/gitTags.js +0 -112
  429. data/node_modules/npm-check-updates/build/src/package-managers/gitTags.js.map +0 -1
  430. data/node_modules/npm-check-updates/build/src/package-managers/index.d.ts +0 -4
  431. data/node_modules/npm-check-updates/build/src/package-managers/index.js +0 -40
  432. data/node_modules/npm-check-updates/build/src/package-managers/index.js.map +0 -1
  433. data/node_modules/npm-check-updates/build/src/package-managers/npm.d.ts +0 -147
  434. data/node_modules/npm-check-updates/build/src/package-managers/npm.js +0 -688
  435. data/node_modules/npm-check-updates/build/src/package-managers/npm.js.map +0 -1
  436. data/node_modules/npm-check-updates/build/src/package-managers/pnpm.d.ts +0 -25
  437. data/node_modules/npm-check-updates/build/src/package-managers/pnpm.js +0 -103
  438. data/node_modules/npm-check-updates/build/src/package-managers/pnpm.js.map +0 -1
  439. data/node_modules/npm-check-updates/build/src/package-managers/staticRegistry.d.ts +0 -10
  440. data/node_modules/npm-check-updates/build/src/package-managers/staticRegistry.js +0 -52
  441. data/node_modules/npm-check-updates/build/src/package-managers/staticRegistry.js.map +0 -1
  442. data/node_modules/npm-check-updates/build/src/package-managers/yarn.d.ts +0 -60
  443. data/node_modules/npm-check-updates/build/src/package-managers/yarn.js +0 -248
  444. data/node_modules/npm-check-updates/build/src/package-managers/yarn.js.map +0 -1
  445. data/node_modules/npm-check-updates/build/src/scripts/build-options.d.ts +0 -1
  446. data/node_modules/npm-check-updates/build/src/scripts/build-options.js +0 -121
  447. data/node_modules/npm-check-updates/build/src/scripts/build-options.js.map +0 -1
  448. data/node_modules/npm-check-updates/build/src/types/CLIOption.d.ts +0 -16
  449. data/node_modules/npm-check-updates/build/src/types/CLIOption.js +0 -3
  450. data/node_modules/npm-check-updates/build/src/types/CLIOption.js.map +0 -1
  451. data/node_modules/npm-check-updates/build/src/types/Cacher.d.ts +0 -10
  452. data/node_modules/npm-check-updates/build/src/types/Cacher.js +0 -3
  453. data/node_modules/npm-check-updates/build/src/types/Cacher.js.map +0 -1
  454. data/node_modules/npm-check-updates/build/src/types/ExtendedHelp.d.ts +0 -5
  455. data/node_modules/npm-check-updates/build/src/types/ExtendedHelp.js +0 -3
  456. data/node_modules/npm-check-updates/build/src/types/ExtendedHelp.js.map +0 -1
  457. data/node_modules/npm-check-updates/build/src/types/FilterFunction.d.ts +0 -3
  458. data/node_modules/npm-check-updates/build/src/types/FilterFunction.js +0 -3
  459. data/node_modules/npm-check-updates/build/src/types/FilterFunction.js.map +0 -1
  460. data/node_modules/npm-check-updates/build/src/types/FilterPattern.d.ts +0 -3
  461. data/node_modules/npm-check-updates/build/src/types/FilterPattern.js +0 -3
  462. data/node_modules/npm-check-updates/build/src/types/FilterPattern.js.map +0 -1
  463. data/node_modules/npm-check-updates/build/src/types/FilterResultsFunction.d.ts +0 -9
  464. data/node_modules/npm-check-updates/build/src/types/FilterResultsFunction.js +0 -3
  465. data/node_modules/npm-check-updates/build/src/types/FilterResultsFunction.js.map +0 -1
  466. data/node_modules/npm-check-updates/build/src/types/GetVersion.d.ts +0 -6
  467. data/node_modules/npm-check-updates/build/src/types/GetVersion.js +0 -3
  468. data/node_modules/npm-check-updates/build/src/types/GetVersion.js.map +0 -1
  469. data/node_modules/npm-check-updates/build/src/types/GroupFunction.d.ts +0 -4
  470. data/node_modules/npm-check-updates/build/src/types/GroupFunction.js +0 -3
  471. data/node_modules/npm-check-updates/build/src/types/GroupFunction.js.map +0 -1
  472. data/node_modules/npm-check-updates/build/src/types/IgnoredUpgrade.d.ts +0 -8
  473. data/node_modules/npm-check-updates/build/src/types/IgnoredUpgrade.js +0 -3
  474. data/node_modules/npm-check-updates/build/src/types/IgnoredUpgrade.js.map +0 -1
  475. data/node_modules/npm-check-updates/build/src/types/IndexType.d.ts +0 -4
  476. data/node_modules/npm-check-updates/build/src/types/IndexType.js +0 -4
  477. data/node_modules/npm-check-updates/build/src/types/IndexType.js.map +0 -1
  478. data/node_modules/npm-check-updates/build/src/types/Maybe.d.ts +0 -2
  479. data/node_modules/npm-check-updates/build/src/types/Maybe.js +0 -3
  480. data/node_modules/npm-check-updates/build/src/types/Maybe.js.map +0 -1
  481. data/node_modules/npm-check-updates/build/src/types/MockedVersions.d.ts +0 -5
  482. data/node_modules/npm-check-updates/build/src/types/MockedVersions.js +0 -3
  483. data/node_modules/npm-check-updates/build/src/types/MockedVersions.js.map +0 -1
  484. data/node_modules/npm-check-updates/build/src/types/NpmConfig.d.ts +0 -4
  485. data/node_modules/npm-check-updates/build/src/types/NpmConfig.js +0 -3
  486. data/node_modules/npm-check-updates/build/src/types/NpmConfig.js.map +0 -1
  487. data/node_modules/npm-check-updates/build/src/types/NpmOptions.d.ts +0 -6
  488. data/node_modules/npm-check-updates/build/src/types/NpmOptions.js +0 -3
  489. data/node_modules/npm-check-updates/build/src/types/NpmOptions.js.map +0 -1
  490. data/node_modules/npm-check-updates/build/src/types/Options.d.ts +0 -17
  491. data/node_modules/npm-check-updates/build/src/types/Options.js +0 -3
  492. data/node_modules/npm-check-updates/build/src/types/Options.js.map +0 -1
  493. data/node_modules/npm-check-updates/build/src/types/PackageFile.d.ts +0 -24
  494. data/node_modules/npm-check-updates/build/src/types/PackageFile.js +0 -3
  495. data/node_modules/npm-check-updates/build/src/types/PackageFile.js.map +0 -1
  496. data/node_modules/npm-check-updates/build/src/types/PackageFileRepository.d.ts +0 -5
  497. data/node_modules/npm-check-updates/build/src/types/PackageFileRepository.js +0 -3
  498. data/node_modules/npm-check-updates/build/src/types/PackageFileRepository.js.map +0 -1
  499. data/node_modules/npm-check-updates/build/src/types/PackageInfo.d.ts +0 -8
  500. data/node_modules/npm-check-updates/build/src/types/PackageInfo.js +0 -3
  501. data/node_modules/npm-check-updates/build/src/types/PackageInfo.js.map +0 -1
  502. data/node_modules/npm-check-updates/build/src/types/PackageManager.d.ts +0 -18
  503. data/node_modules/npm-check-updates/build/src/types/PackageManager.js +0 -3
  504. data/node_modules/npm-check-updates/build/src/types/PackageManager.js.map +0 -1
  505. data/node_modules/npm-check-updates/build/src/types/PackageManagerName.d.ts +0 -2
  506. data/node_modules/npm-check-updates/build/src/types/PackageManagerName.js +0 -3
  507. data/node_modules/npm-check-updates/build/src/types/PackageManagerName.js.map +0 -1
  508. data/node_modules/npm-check-updates/build/src/types/Packument.d.ts +0 -13
  509. data/node_modules/npm-check-updates/build/src/types/Packument.js +0 -3
  510. data/node_modules/npm-check-updates/build/src/types/Packument.js.map +0 -1
  511. data/node_modules/npm-check-updates/build/src/types/RunOptions.d.ts +0 -137
  512. data/node_modules/npm-check-updates/build/src/types/RunOptions.js +0 -3
  513. data/node_modules/npm-check-updates/build/src/types/RunOptions.js.map +0 -1
  514. data/node_modules/npm-check-updates/build/src/types/SpawnOptions.d.ts +0 -6
  515. data/node_modules/npm-check-updates/build/src/types/SpawnOptions.js +0 -3
  516. data/node_modules/npm-check-updates/build/src/types/SpawnOptions.js.map +0 -1
  517. data/node_modules/npm-check-updates/build/src/types/StaticRegistry.d.ts +0 -4
  518. data/node_modules/npm-check-updates/build/src/types/StaticRegistry.js +0 -3
  519. data/node_modules/npm-check-updates/build/src/types/StaticRegistry.js.map +0 -1
  520. data/node_modules/npm-check-updates/build/src/types/Target.d.ts +0 -9
  521. data/node_modules/npm-check-updates/build/src/types/Target.js +0 -6
  522. data/node_modules/npm-check-updates/build/src/types/Target.js.map +0 -1
  523. data/node_modules/npm-check-updates/build/src/types/TargetFunction.d.ts +0 -3
  524. data/node_modules/npm-check-updates/build/src/types/TargetFunction.js +0 -3
  525. data/node_modules/npm-check-updates/build/src/types/TargetFunction.js.map +0 -1
  526. data/node_modules/npm-check-updates/build/src/types/UpgradeGroup.d.ts +0 -1
  527. data/node_modules/npm-check-updates/build/src/types/UpgradeGroup.js +0 -3
  528. data/node_modules/npm-check-updates/build/src/types/UpgradeGroup.js.map +0 -1
  529. data/node_modules/npm-check-updates/build/src/types/Version.d.ts +0 -2
  530. data/node_modules/npm-check-updates/build/src/types/Version.js +0 -3
  531. data/node_modules/npm-check-updates/build/src/types/Version.js.map +0 -1
  532. data/node_modules/npm-check-updates/build/src/types/VersionLevel.d.ts +0 -2
  533. data/node_modules/npm-check-updates/build/src/types/VersionLevel.js +0 -3
  534. data/node_modules/npm-check-updates/build/src/types/VersionLevel.js.map +0 -1
  535. data/node_modules/npm-check-updates/build/src/types/VersionResult.d.ts +0 -7
  536. data/node_modules/npm-check-updates/build/src/types/VersionResult.js +0 -3
  537. data/node_modules/npm-check-updates/build/src/types/VersionResult.js.map +0 -1
  538. data/node_modules/npm-check-updates/build/src/types/VersionSpec.d.ts +0 -2
  539. data/node_modules/npm-check-updates/build/src/types/VersionSpec.js +0 -3
  540. data/node_modules/npm-check-updates/build/src/types/VersionSpec.js.map +0 -1
  541. data/node_modules/npm-check-updates/node_modules/chalk/license +0 -9
  542. data/node_modules/npm-check-updates/node_modules/chalk/package.json +0 -83
  543. data/node_modules/npm-check-updates/node_modules/chalk/readme.md +0 -325
  544. data/node_modules/npm-check-updates/node_modules/chalk/source/index.d.ts +0 -320
  545. data/node_modules/npm-check-updates/node_modules/chalk/source/index.js +0 -225
  546. data/node_modules/npm-check-updates/node_modules/chalk/source/utilities.js +0 -33
  547. data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  548. data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  549. data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  550. data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  551. data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  552. data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  553. data/node_modules/npm-check-updates/node_modules/minimatch/LICENSE +0 -15
  554. data/node_modules/npm-check-updates/node_modules/minimatch/README.md +0 -454
  555. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
  556. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
  557. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
  558. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
  559. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
  560. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
  561. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.js +0 -589
  562. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
  563. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
  564. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
  565. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
  566. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
  567. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
  568. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
  569. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.js +0 -22
  570. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
  571. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
  572. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
  573. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.js +0 -1011
  574. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.js.map +0 -1
  575. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/package.json +0 -3
  576. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
  577. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
  578. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.js +0 -24
  579. data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
  580. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
  581. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
  582. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
  583. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
  584. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
  585. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
  586. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.js +0 -585
  587. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
  588. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
  589. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
  590. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
  591. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
  592. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
  593. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
  594. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.js +0 -18
  595. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
  596. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
  597. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
  598. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.js +0 -995
  599. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.js.map +0 -1
  600. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/package.json +0 -3
  601. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
  602. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
  603. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.js +0 -20
  604. data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
  605. data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
  606. data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -135
  607. data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -203
  608. data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -46
  609. data/node_modules/npm-check-updates/node_modules/minimatch/package.json +0 -86
  610. data/node_modules/npm-check-updates/node_modules/strip-ansi/index.d.ts +0 -15
  611. data/node_modules/npm-check-updates/node_modules/strip-ansi/index.js +0 -14
  612. data/node_modules/npm-check-updates/node_modules/strip-ansi/license +0 -9
  613. data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +0 -33
  614. data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/index.js +0 -8
  615. data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/license +0 -9
  616. data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/package.json +0 -58
  617. data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +0 -72
  618. data/node_modules/npm-check-updates/node_modules/strip-ansi/package.json +0 -57
  619. data/node_modules/npm-check-updates/node_modules/strip-ansi/readme.md +0 -41
  620. data/node_modules/rimraf/dist/commonjs/default-tmp.d.ts +0 -3
  621. data/node_modules/rimraf/dist/commonjs/default-tmp.d.ts.map +0 -1
  622. data/node_modules/rimraf/dist/commonjs/default-tmp.js +0 -61
  623. data/node_modules/rimraf/dist/commonjs/default-tmp.js.map +0 -1
  624. data/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts +0 -3
  625. data/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts.map +0 -1
  626. data/node_modules/rimraf/dist/commonjs/fix-eperm.js +0 -58
  627. data/node_modules/rimraf/dist/commonjs/fix-eperm.js.map +0 -1
  628. data/node_modules/rimraf/dist/commonjs/fs.d.ts +0 -17
  629. data/node_modules/rimraf/dist/commonjs/fs.d.ts.map +0 -1
  630. data/node_modules/rimraf/dist/commonjs/fs.js +0 -46
  631. data/node_modules/rimraf/dist/commonjs/fs.js.map +0 -1
  632. data/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts +0 -3
  633. data/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts.map +0 -1
  634. data/node_modules/rimraf/dist/commonjs/ignore-enoent.js +0 -21
  635. data/node_modules/rimraf/dist/commonjs/ignore-enoent.js.map +0 -1
  636. data/node_modules/rimraf/dist/commonjs/index.d.ts +0 -50
  637. data/node_modules/rimraf/dist/commonjs/index.d.ts.map +0 -1
  638. data/node_modules/rimraf/dist/commonjs/index.js +0 -76
  639. data/node_modules/rimraf/dist/commonjs/index.js.map +0 -1
  640. data/node_modules/rimraf/dist/commonjs/opt-arg.d.ts +0 -35
  641. data/node_modules/rimraf/dist/commonjs/opt-arg.d.ts.map +0 -1
  642. data/node_modules/rimraf/dist/commonjs/opt-arg.js +0 -53
  643. data/node_modules/rimraf/dist/commonjs/opt-arg.js.map +0 -1
  644. data/node_modules/rimraf/dist/commonjs/package.json +0 -1
  645. data/node_modules/rimraf/dist/commonjs/path-arg.d.ts +0 -4
  646. data/node_modules/rimraf/dist/commonjs/path-arg.d.ts.map +0 -1
  647. data/node_modules/rimraf/dist/commonjs/path-arg.js +0 -54
  648. data/node_modules/rimraf/dist/commonjs/path-arg.js.map +0 -1
  649. data/node_modules/rimraf/dist/commonjs/platform.d.ts +0 -3
  650. data/node_modules/rimraf/dist/commonjs/platform.d.ts.map +0 -1
  651. data/node_modules/rimraf/dist/commonjs/platform.js +0 -4
  652. data/node_modules/rimraf/dist/commonjs/platform.js.map +0 -1
  653. data/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts +0 -5
  654. data/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts.map +0 -1
  655. data/node_modules/rimraf/dist/commonjs/readdir-or-error.js +0 -19
  656. data/node_modules/rimraf/dist/commonjs/readdir-or-error.js.map +0 -1
  657. data/node_modules/rimraf/dist/commonjs/retry-busy.d.ts +0 -8
  658. data/node_modules/rimraf/dist/commonjs/retry-busy.d.ts.map +0 -1
  659. data/node_modules/rimraf/dist/commonjs/retry-busy.js +0 -68
  660. data/node_modules/rimraf/dist/commonjs/retry-busy.js.map +0 -1
  661. data/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts +0 -3
  662. data/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts.map +0 -1
  663. data/node_modules/rimraf/dist/commonjs/rimraf-manual.js +0 -12
  664. data/node_modules/rimraf/dist/commonjs/rimraf-manual.js.map +0 -1
  665. data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts +0 -4
  666. data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts.map +0 -1
  667. data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js +0 -192
  668. data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js.map +0 -1
  669. data/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts +0 -4
  670. data/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts.map +0 -1
  671. data/node_modules/rimraf/dist/commonjs/rimraf-native.js +0 -24
  672. data/node_modules/rimraf/dist/commonjs/rimraf-native.js.map +0 -1
  673. data/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts +0 -4
  674. data/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts.map +0 -1
  675. data/node_modules/rimraf/dist/commonjs/rimraf-posix.js +0 -123
  676. data/node_modules/rimraf/dist/commonjs/rimraf-posix.js.map +0 -1
  677. data/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts +0 -4
  678. data/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts.map +0 -1
  679. data/node_modules/rimraf/dist/commonjs/rimraf-windows.js +0 -182
  680. data/node_modules/rimraf/dist/commonjs/rimraf-windows.js.map +0 -1
  681. data/node_modules/rimraf/dist/commonjs/use-native.d.ts +0 -4
  682. data/node_modules/rimraf/dist/commonjs/use-native.d.ts.map +0 -1
  683. data/node_modules/rimraf/dist/commonjs/use-native.js +0 -22
  684. data/node_modules/rimraf/dist/commonjs/use-native.js.map +0 -1
  685. data/node_modules/rimraf/dist/esm/bin.d.mts +0 -8
  686. data/node_modules/rimraf/dist/esm/bin.d.mts.map +0 -1
  687. data/node_modules/rimraf/dist/esm/bin.mjs +0 -256
  688. data/node_modules/rimraf/dist/esm/bin.mjs.map +0 -1
  689. data/node_modules/rimraf/dist/esm/default-tmp.d.ts +0 -3
  690. data/node_modules/rimraf/dist/esm/default-tmp.d.ts.map +0 -1
  691. data/node_modules/rimraf/dist/esm/default-tmp.js +0 -55
  692. data/node_modules/rimraf/dist/esm/default-tmp.js.map +0 -1
  693. data/node_modules/rimraf/dist/esm/fix-eperm.d.ts +0 -3
  694. data/node_modules/rimraf/dist/esm/fix-eperm.d.ts.map +0 -1
  695. data/node_modules/rimraf/dist/esm/fix-eperm.js +0 -53
  696. data/node_modules/rimraf/dist/esm/fix-eperm.js.map +0 -1
  697. data/node_modules/rimraf/dist/esm/fs.d.ts +0 -17
  698. data/node_modules/rimraf/dist/esm/fs.d.ts.map +0 -1
  699. data/node_modules/rimraf/dist/esm/fs.js +0 -31
  700. data/node_modules/rimraf/dist/esm/fs.js.map +0 -1
  701. data/node_modules/rimraf/dist/esm/ignore-enoent.d.ts +0 -3
  702. data/node_modules/rimraf/dist/esm/ignore-enoent.d.ts.map +0 -1
  703. data/node_modules/rimraf/dist/esm/ignore-enoent.js +0 -16
  704. data/node_modules/rimraf/dist/esm/ignore-enoent.js.map +0 -1
  705. data/node_modules/rimraf/dist/esm/index.d.ts +0 -50
  706. data/node_modules/rimraf/dist/esm/index.d.ts.map +0 -1
  707. data/node_modules/rimraf/dist/esm/index.js +0 -68
  708. data/node_modules/rimraf/dist/esm/index.js.map +0 -1
  709. data/node_modules/rimraf/dist/esm/opt-arg.d.ts +0 -35
  710. data/node_modules/rimraf/dist/esm/opt-arg.d.ts.map +0 -1
  711. data/node_modules/rimraf/dist/esm/opt-arg.js +0 -46
  712. data/node_modules/rimraf/dist/esm/opt-arg.js.map +0 -1
  713. data/node_modules/rimraf/dist/esm/package.json +0 -1
  714. data/node_modules/rimraf/dist/esm/path-arg.d.ts +0 -4
  715. data/node_modules/rimraf/dist/esm/path-arg.d.ts.map +0 -1
  716. data/node_modules/rimraf/dist/esm/path-arg.js +0 -49
  717. data/node_modules/rimraf/dist/esm/path-arg.js.map +0 -1
  718. data/node_modules/rimraf/dist/esm/platform.d.ts +0 -3
  719. data/node_modules/rimraf/dist/esm/platform.d.ts.map +0 -1
  720. data/node_modules/rimraf/dist/esm/platform.js +0 -2
  721. data/node_modules/rimraf/dist/esm/platform.js.map +0 -1
  722. data/node_modules/rimraf/dist/esm/readdir-or-error.d.ts +0 -5
  723. data/node_modules/rimraf/dist/esm/readdir-or-error.d.ts.map +0 -1
  724. data/node_modules/rimraf/dist/esm/readdir-or-error.js +0 -14
  725. data/node_modules/rimraf/dist/esm/readdir-or-error.js.map +0 -1
  726. data/node_modules/rimraf/dist/esm/retry-busy.d.ts +0 -8
  727. data/node_modules/rimraf/dist/esm/retry-busy.d.ts.map +0 -1
  728. data/node_modules/rimraf/dist/esm/retry-busy.js +0 -63
  729. data/node_modules/rimraf/dist/esm/retry-busy.js.map +0 -1
  730. data/node_modules/rimraf/dist/esm/rimraf-manual.d.ts +0 -3
  731. data/node_modules/rimraf/dist/esm/rimraf-manual.d.ts.map +0 -1
  732. data/node_modules/rimraf/dist/esm/rimraf-manual.js +0 -6
  733. data/node_modules/rimraf/dist/esm/rimraf-manual.js.map +0 -1
  734. data/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts +0 -4
  735. data/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts.map +0 -1
  736. data/node_modules/rimraf/dist/esm/rimraf-move-remove.js +0 -187
  737. data/node_modules/rimraf/dist/esm/rimraf-move-remove.js.map +0 -1
  738. data/node_modules/rimraf/dist/esm/rimraf-native.d.ts +0 -4
  739. data/node_modules/rimraf/dist/esm/rimraf-native.d.ts.map +0 -1
  740. data/node_modules/rimraf/dist/esm/rimraf-native.js +0 -19
  741. data/node_modules/rimraf/dist/esm/rimraf-native.js.map +0 -1
  742. data/node_modules/rimraf/dist/esm/rimraf-posix.d.ts +0 -4
  743. data/node_modules/rimraf/dist/esm/rimraf-posix.d.ts.map +0 -1
  744. data/node_modules/rimraf/dist/esm/rimraf-posix.js +0 -118
  745. data/node_modules/rimraf/dist/esm/rimraf-posix.js.map +0 -1
  746. data/node_modules/rimraf/dist/esm/rimraf-windows.d.ts +0 -4
  747. data/node_modules/rimraf/dist/esm/rimraf-windows.d.ts.map +0 -1
  748. data/node_modules/rimraf/dist/esm/rimraf-windows.js +0 -177
  749. data/node_modules/rimraf/dist/esm/rimraf-windows.js.map +0 -1
  750. data/node_modules/rimraf/dist/esm/use-native.d.ts +0 -4
  751. data/node_modules/rimraf/dist/esm/use-native.d.ts.map +0 -1
  752. data/node_modules/rimraf/dist/esm/use-native.js +0 -16
  753. data/node_modules/rimraf/dist/esm/use-native.js.map +0 -1
  754. data/node_modules/semver/classes/comparator.js +0 -141
  755. data/node_modules/semver/classes/index.js +0 -5
  756. data/node_modules/semver/classes/range.js +0 -539
  757. data/node_modules/semver/classes/semver.js +0 -302
  758. data/node_modules/semver/functions/clean.js +0 -6
  759. data/node_modules/semver/functions/cmp.js +0 -52
  760. data/node_modules/semver/functions/coerce.js +0 -52
  761. data/node_modules/semver/functions/compare-build.js +0 -7
  762. data/node_modules/semver/functions/compare-loose.js +0 -3
  763. data/node_modules/semver/functions/compare.js +0 -5
  764. data/node_modules/semver/functions/diff.js +0 -65
  765. data/node_modules/semver/functions/eq.js +0 -3
  766. data/node_modules/semver/functions/gt.js +0 -3
  767. data/node_modules/semver/functions/gte.js +0 -3
  768. data/node_modules/semver/functions/inc.js +0 -19
  769. data/node_modules/semver/functions/lt.js +0 -3
  770. data/node_modules/semver/functions/lte.js +0 -3
  771. data/node_modules/semver/functions/major.js +0 -3
  772. data/node_modules/semver/functions/minor.js +0 -3
  773. data/node_modules/semver/functions/neq.js +0 -3
  774. data/node_modules/semver/functions/parse.js +0 -16
  775. data/node_modules/semver/functions/patch.js +0 -3
  776. data/node_modules/semver/functions/prerelease.js +0 -6
  777. data/node_modules/semver/functions/rcompare.js +0 -3
  778. data/node_modules/semver/functions/rsort.js +0 -3
  779. data/node_modules/semver/functions/satisfies.js +0 -10
  780. data/node_modules/semver/functions/sort.js +0 -3
  781. data/node_modules/semver/functions/valid.js +0 -6
  782. data/node_modules/semver/index.js +0 -89
  783. data/node_modules/semver/internal/constants.js +0 -35
  784. data/node_modules/semver/internal/debug.js +0 -9
  785. data/node_modules/semver/internal/identifiers.js +0 -23
  786. data/node_modules/semver/internal/parse-options.js +0 -15
  787. data/node_modules/semver/internal/re.js +0 -212
  788. data/node_modules/semver/node_modules/lru-cache/LICENSE +0 -15
  789. data/node_modules/semver/node_modules/lru-cache/README.md +0 -166
  790. data/node_modules/semver/node_modules/lru-cache/index.js +0 -334
  791. data/node_modules/semver/node_modules/lru-cache/package.json +0 -34
  792. data/node_modules/semver/preload.js +0 -2
  793. data/node_modules/semver/ranges/gtr.js +0 -4
  794. data/node_modules/semver/ranges/intersects.js +0 -7
  795. data/node_modules/semver/ranges/ltr.js +0 -4
  796. data/node_modules/semver/ranges/max-satisfying.js +0 -25
  797. data/node_modules/semver/ranges/min-satisfying.js +0 -24
  798. data/node_modules/semver/ranges/min-version.js +0 -61
  799. data/node_modules/semver/ranges/outside.js +0 -80
  800. data/node_modules/semver/ranges/simplify.js +0 -47
  801. data/node_modules/semver/ranges/subset.js +0 -247
  802. data/node_modules/semver/ranges/to-comparators.js +0 -8
  803. data/node_modules/semver/ranges/valid.js +0 -11
  804. /data/node_modules/{eslint/node_modules/chalk → chalk}/index.d.ts +0 -0
  805. /data/node_modules/{eslint/node_modules/chalk → chalk}/source/templates.js +0 -0
  806. /data/node_modules/{eslint/node_modules/chalk → chalk}/source/util.js +0 -0
  807. /data/node_modules/{@eslint/config-array/node_modules/minimatch → minimatch}/minimatch.js +0 -0
@@ -1,1018 +0,0 @@
1
- const proc = typeof process === 'object' && process
2
- ? process
3
- : {
4
- stdout: null,
5
- stderr: null,
6
- };
7
- import { EventEmitter } from 'events';
8
- import Stream from 'stream';
9
- import { StringDecoder } from 'string_decoder';
10
- /**
11
- * Return true if the argument is a Minipass stream, Node stream, or something
12
- * else that Minipass can interact with.
13
- */
14
- export const isStream = (s) => !!s &&
15
- typeof s === 'object' &&
16
- (s instanceof Minipass ||
17
- s instanceof Stream ||
18
- isReadable(s) ||
19
- isWritable(s));
20
- /**
21
- * Return true if the argument is a valid {@link Minipass.Readable}
22
- */
23
- export const isReadable = (s) => !!s &&
24
- typeof s === 'object' &&
25
- s instanceof EventEmitter &&
26
- typeof s.pipe === 'function' &&
27
- // node core Writable streams have a pipe() method, but it throws
28
- s.pipe !== Stream.Writable.prototype.pipe;
29
- /**
30
- * Return true if the argument is a valid {@link Minipass.Writable}
31
- */
32
- export const isWritable = (s) => !!s &&
33
- typeof s === 'object' &&
34
- s instanceof EventEmitter &&
35
- typeof s.write === 'function' &&
36
- typeof s.end === 'function';
37
- const EOF = Symbol('EOF');
38
- const MAYBE_EMIT_END = Symbol('maybeEmitEnd');
39
- const EMITTED_END = Symbol('emittedEnd');
40
- const EMITTING_END = Symbol('emittingEnd');
41
- const EMITTED_ERROR = Symbol('emittedError');
42
- const CLOSED = Symbol('closed');
43
- const READ = Symbol('read');
44
- const FLUSH = Symbol('flush');
45
- const FLUSHCHUNK = Symbol('flushChunk');
46
- const ENCODING = Symbol('encoding');
47
- const DECODER = Symbol('decoder');
48
- const FLOWING = Symbol('flowing');
49
- const PAUSED = Symbol('paused');
50
- const RESUME = Symbol('resume');
51
- const BUFFER = Symbol('buffer');
52
- const PIPES = Symbol('pipes');
53
- const BUFFERLENGTH = Symbol('bufferLength');
54
- const BUFFERPUSH = Symbol('bufferPush');
55
- const BUFFERSHIFT = Symbol('bufferShift');
56
- const OBJECTMODE = Symbol('objectMode');
57
- // internal event when stream is destroyed
58
- const DESTROYED = Symbol('destroyed');
59
- // internal event when stream has an error
60
- const ERROR = Symbol('error');
61
- const EMITDATA = Symbol('emitData');
62
- const EMITEND = Symbol('emitEnd');
63
- const EMITEND2 = Symbol('emitEnd2');
64
- const ASYNC = Symbol('async');
65
- const ABORT = Symbol('abort');
66
- const ABORTED = Symbol('aborted');
67
- const SIGNAL = Symbol('signal');
68
- const DATALISTENERS = Symbol('dataListeners');
69
- const DISCARDED = Symbol('discarded');
70
- const defer = (fn) => Promise.resolve().then(fn);
71
- const nodefer = (fn) => fn();
72
- const isEndish = (ev) => ev === 'end' || ev === 'finish' || ev === 'prefinish';
73
- const isArrayBufferLike = (b) => b instanceof ArrayBuffer ||
74
- (!!b &&
75
- typeof b === 'object' &&
76
- b.constructor &&
77
- b.constructor.name === 'ArrayBuffer' &&
78
- b.byteLength >= 0);
79
- const isArrayBufferView = (b) => !Buffer.isBuffer(b) && ArrayBuffer.isView(b);
80
- /**
81
- * Internal class representing a pipe to a destination stream.
82
- *
83
- * @internal
84
- */
85
- class Pipe {
86
- src;
87
- dest;
88
- opts;
89
- ondrain;
90
- constructor(src, dest, opts) {
91
- this.src = src;
92
- this.dest = dest;
93
- this.opts = opts;
94
- this.ondrain = () => src[RESUME]();
95
- this.dest.on('drain', this.ondrain);
96
- }
97
- unpipe() {
98
- this.dest.removeListener('drain', this.ondrain);
99
- }
100
- // only here for the prototype
101
- /* c8 ignore start */
102
- proxyErrors(_er) { }
103
- /* c8 ignore stop */
104
- end() {
105
- this.unpipe();
106
- if (this.opts.end)
107
- this.dest.end();
108
- }
109
- }
110
- /**
111
- * Internal class representing a pipe to a destination stream where
112
- * errors are proxied.
113
- *
114
- * @internal
115
- */
116
- class PipeProxyErrors extends Pipe {
117
- unpipe() {
118
- this.src.removeListener('error', this.proxyErrors);
119
- super.unpipe();
120
- }
121
- constructor(src, dest, opts) {
122
- super(src, dest, opts);
123
- this.proxyErrors = er => dest.emit('error', er);
124
- src.on('error', this.proxyErrors);
125
- }
126
- }
127
- const isObjectModeOptions = (o) => !!o.objectMode;
128
- const isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !== 'buffer';
129
- /**
130
- * Main export, the Minipass class
131
- *
132
- * `RType` is the type of data emitted, defaults to Buffer
133
- *
134
- * `WType` is the type of data to be written, if RType is buffer or string,
135
- * then any {@link Minipass.ContiguousData} is allowed.
136
- *
137
- * `Events` is the set of event handler signatures that this object
138
- * will emit, see {@link Minipass.Events}
139
- */
140
- export class Minipass extends EventEmitter {
141
- [FLOWING] = false;
142
- [PAUSED] = false;
143
- [PIPES] = [];
144
- [BUFFER] = [];
145
- [OBJECTMODE];
146
- [ENCODING];
147
- [ASYNC];
148
- [DECODER];
149
- [EOF] = false;
150
- [EMITTED_END] = false;
151
- [EMITTING_END] = false;
152
- [CLOSED] = false;
153
- [EMITTED_ERROR] = null;
154
- [BUFFERLENGTH] = 0;
155
- [DESTROYED] = false;
156
- [SIGNAL];
157
- [ABORTED] = false;
158
- [DATALISTENERS] = 0;
159
- [DISCARDED] = false;
160
- /**
161
- * true if the stream can be written
162
- */
163
- writable = true;
164
- /**
165
- * true if the stream can be read
166
- */
167
- readable = true;
168
- /**
169
- * If `RType` is Buffer, then options do not need to be provided.
170
- * Otherwise, an options object must be provided to specify either
171
- * {@link Minipass.SharedOptions.objectMode} or
172
- * {@link Minipass.SharedOptions.encoding}, as appropriate.
173
- */
174
- constructor(...args) {
175
- const options = (args[0] ||
176
- {});
177
- super();
178
- if (options.objectMode && typeof options.encoding === 'string') {
179
- throw new TypeError('Encoding and objectMode may not be used together');
180
- }
181
- if (isObjectModeOptions(options)) {
182
- this[OBJECTMODE] = true;
183
- this[ENCODING] = null;
184
- }
185
- else if (isEncodingOptions(options)) {
186
- this[ENCODING] = options.encoding;
187
- this[OBJECTMODE] = false;
188
- }
189
- else {
190
- this[OBJECTMODE] = false;
191
- this[ENCODING] = null;
192
- }
193
- this[ASYNC] = !!options.async;
194
- this[DECODER] = this[ENCODING]
195
- ? new StringDecoder(this[ENCODING])
196
- : null;
197
- //@ts-ignore - private option for debugging and testing
198
- if (options && options.debugExposeBuffer === true) {
199
- Object.defineProperty(this, 'buffer', { get: () => this[BUFFER] });
200
- }
201
- //@ts-ignore - private option for debugging and testing
202
- if (options && options.debugExposePipes === true) {
203
- Object.defineProperty(this, 'pipes', { get: () => this[PIPES] });
204
- }
205
- const { signal } = options;
206
- if (signal) {
207
- this[SIGNAL] = signal;
208
- if (signal.aborted) {
209
- this[ABORT]();
210
- }
211
- else {
212
- signal.addEventListener('abort', () => this[ABORT]());
213
- }
214
- }
215
- }
216
- /**
217
- * The amount of data stored in the buffer waiting to be read.
218
- *
219
- * For Buffer strings, this will be the total byte length.
220
- * For string encoding streams, this will be the string character length,
221
- * according to JavaScript's `string.length` logic.
222
- * For objectMode streams, this is a count of the items waiting to be
223
- * emitted.
224
- */
225
- get bufferLength() {
226
- return this[BUFFERLENGTH];
227
- }
228
- /**
229
- * The `BufferEncoding` currently in use, or `null`
230
- */
231
- get encoding() {
232
- return this[ENCODING];
233
- }
234
- /**
235
- * @deprecated - This is a read only property
236
- */
237
- set encoding(_enc) {
238
- throw new Error('Encoding must be set at instantiation time');
239
- }
240
- /**
241
- * @deprecated - Encoding may only be set at instantiation time
242
- */
243
- setEncoding(_enc) {
244
- throw new Error('Encoding must be set at instantiation time');
245
- }
246
- /**
247
- * True if this is an objectMode stream
248
- */
249
- get objectMode() {
250
- return this[OBJECTMODE];
251
- }
252
- /**
253
- * @deprecated - This is a read-only property
254
- */
255
- set objectMode(_om) {
256
- throw new Error('objectMode must be set at instantiation time');
257
- }
258
- /**
259
- * true if this is an async stream
260
- */
261
- get ['async']() {
262
- return this[ASYNC];
263
- }
264
- /**
265
- * Set to true to make this stream async.
266
- *
267
- * Once set, it cannot be unset, as this would potentially cause incorrect
268
- * behavior. Ie, a sync stream can be made async, but an async stream
269
- * cannot be safely made sync.
270
- */
271
- set ['async'](a) {
272
- this[ASYNC] = this[ASYNC] || !!a;
273
- }
274
- // drop everything and get out of the flow completely
275
- [ABORT]() {
276
- this[ABORTED] = true;
277
- this.emit('abort', this[SIGNAL]?.reason);
278
- this.destroy(this[SIGNAL]?.reason);
279
- }
280
- /**
281
- * True if the stream has been aborted.
282
- */
283
- get aborted() {
284
- return this[ABORTED];
285
- }
286
- /**
287
- * No-op setter. Stream aborted status is set via the AbortSignal provided
288
- * in the constructor options.
289
- */
290
- set aborted(_) { }
291
- write(chunk, encoding, cb) {
292
- if (this[ABORTED])
293
- return false;
294
- if (this[EOF])
295
- throw new Error('write after end');
296
- if (this[DESTROYED]) {
297
- this.emit('error', Object.assign(new Error('Cannot call write after a stream was destroyed'), { code: 'ERR_STREAM_DESTROYED' }));
298
- return true;
299
- }
300
- if (typeof encoding === 'function') {
301
- cb = encoding;
302
- encoding = 'utf8';
303
- }
304
- if (!encoding)
305
- encoding = 'utf8';
306
- const fn = this[ASYNC] ? defer : nodefer;
307
- // convert array buffers and typed array views into buffers
308
- // at some point in the future, we may want to do the opposite!
309
- // leave strings and buffers as-is
310
- // anything is only allowed if in object mode, so throw
311
- if (!this[OBJECTMODE] && !Buffer.isBuffer(chunk)) {
312
- if (isArrayBufferView(chunk)) {
313
- //@ts-ignore - sinful unsafe type changing
314
- chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
315
- }
316
- else if (isArrayBufferLike(chunk)) {
317
- //@ts-ignore - sinful unsafe type changing
318
- chunk = Buffer.from(chunk);
319
- }
320
- else if (typeof chunk !== 'string') {
321
- throw new Error('Non-contiguous data written to non-objectMode stream');
322
- }
323
- }
324
- // handle object mode up front, since it's simpler
325
- // this yields better performance, fewer checks later.
326
- if (this[OBJECTMODE]) {
327
- // maybe impossible?
328
- /* c8 ignore start */
329
- if (this[FLOWING] && this[BUFFERLENGTH] !== 0)
330
- this[FLUSH](true);
331
- /* c8 ignore stop */
332
- if (this[FLOWING])
333
- this.emit('data', chunk);
334
- else
335
- this[BUFFERPUSH](chunk);
336
- if (this[BUFFERLENGTH] !== 0)
337
- this.emit('readable');
338
- if (cb)
339
- fn(cb);
340
- return this[FLOWING];
341
- }
342
- // at this point the chunk is a buffer or string
343
- // don't buffer it up or send it to the decoder
344
- if (!chunk.length) {
345
- if (this[BUFFERLENGTH] !== 0)
346
- this.emit('readable');
347
- if (cb)
348
- fn(cb);
349
- return this[FLOWING];
350
- }
351
- // fast-path writing strings of same encoding to a stream with
352
- // an empty buffer, skipping the buffer/decoder dance
353
- if (typeof chunk === 'string' &&
354
- // unless it is a string already ready for us to use
355
- !(encoding === this[ENCODING] && !this[DECODER]?.lastNeed)) {
356
- //@ts-ignore - sinful unsafe type change
357
- chunk = Buffer.from(chunk, encoding);
358
- }
359
- if (Buffer.isBuffer(chunk) && this[ENCODING]) {
360
- //@ts-ignore - sinful unsafe type change
361
- chunk = this[DECODER].write(chunk);
362
- }
363
- // Note: flushing CAN potentially switch us into not-flowing mode
364
- if (this[FLOWING] && this[BUFFERLENGTH] !== 0)
365
- this[FLUSH](true);
366
- if (this[FLOWING])
367
- this.emit('data', chunk);
368
- else
369
- this[BUFFERPUSH](chunk);
370
- if (this[BUFFERLENGTH] !== 0)
371
- this.emit('readable');
372
- if (cb)
373
- fn(cb);
374
- return this[FLOWING];
375
- }
376
- /**
377
- * Low-level explicit read method.
378
- *
379
- * In objectMode, the argument is ignored, and one item is returned if
380
- * available.
381
- *
382
- * `n` is the number of bytes (or in the case of encoding streams,
383
- * characters) to consume. If `n` is not provided, then the entire buffer
384
- * is returned, or `null` is returned if no data is available.
385
- *
386
- * If `n` is greater that the amount of data in the internal buffer,
387
- * then `null` is returned.
388
- */
389
- read(n) {
390
- if (this[DESTROYED])
391
- return null;
392
- this[DISCARDED] = false;
393
- if (this[BUFFERLENGTH] === 0 ||
394
- n === 0 ||
395
- (n && n > this[BUFFERLENGTH])) {
396
- this[MAYBE_EMIT_END]();
397
- return null;
398
- }
399
- if (this[OBJECTMODE])
400
- n = null;
401
- if (this[BUFFER].length > 1 && !this[OBJECTMODE]) {
402
- // not object mode, so if we have an encoding, then RType is string
403
- // otherwise, must be Buffer
404
- this[BUFFER] = [
405
- (this[ENCODING]
406
- ? this[BUFFER].join('')
407
- : Buffer.concat(this[BUFFER], this[BUFFERLENGTH])),
408
- ];
409
- }
410
- const ret = this[READ](n || null, this[BUFFER][0]);
411
- this[MAYBE_EMIT_END]();
412
- return ret;
413
- }
414
- [READ](n, chunk) {
415
- if (this[OBJECTMODE])
416
- this[BUFFERSHIFT]();
417
- else {
418
- const c = chunk;
419
- if (n === c.length || n === null)
420
- this[BUFFERSHIFT]();
421
- else if (typeof c === 'string') {
422
- this[BUFFER][0] = c.slice(n);
423
- chunk = c.slice(0, n);
424
- this[BUFFERLENGTH] -= n;
425
- }
426
- else {
427
- this[BUFFER][0] = c.subarray(n);
428
- chunk = c.subarray(0, n);
429
- this[BUFFERLENGTH] -= n;
430
- }
431
- }
432
- this.emit('data', chunk);
433
- if (!this[BUFFER].length && !this[EOF])
434
- this.emit('drain');
435
- return chunk;
436
- }
437
- end(chunk, encoding, cb) {
438
- if (typeof chunk === 'function') {
439
- cb = chunk;
440
- chunk = undefined;
441
- }
442
- if (typeof encoding === 'function') {
443
- cb = encoding;
444
- encoding = 'utf8';
445
- }
446
- if (chunk !== undefined)
447
- this.write(chunk, encoding);
448
- if (cb)
449
- this.once('end', cb);
450
- this[EOF] = true;
451
- this.writable = false;
452
- // if we haven't written anything, then go ahead and emit,
453
- // even if we're not reading.
454
- // we'll re-emit if a new 'end' listener is added anyway.
455
- // This makes MP more suitable to write-only use cases.
456
- if (this[FLOWING] || !this[PAUSED])
457
- this[MAYBE_EMIT_END]();
458
- return this;
459
- }
460
- // don't let the internal resume be overwritten
461
- [RESUME]() {
462
- if (this[DESTROYED])
463
- return;
464
- if (!this[DATALISTENERS] && !this[PIPES].length) {
465
- this[DISCARDED] = true;
466
- }
467
- this[PAUSED] = false;
468
- this[FLOWING] = true;
469
- this.emit('resume');
470
- if (this[BUFFER].length)
471
- this[FLUSH]();
472
- else if (this[EOF])
473
- this[MAYBE_EMIT_END]();
474
- else
475
- this.emit('drain');
476
- }
477
- /**
478
- * Resume the stream if it is currently in a paused state
479
- *
480
- * If called when there are no pipe destinations or `data` event listeners,
481
- * this will place the stream in a "discarded" state, where all data will
482
- * be thrown away. The discarded state is removed if a pipe destination or
483
- * data handler is added, if pause() is called, or if any synchronous or
484
- * asynchronous iteration is started.
485
- */
486
- resume() {
487
- return this[RESUME]();
488
- }
489
- /**
490
- * Pause the stream
491
- */
492
- pause() {
493
- this[FLOWING] = false;
494
- this[PAUSED] = true;
495
- this[DISCARDED] = false;
496
- }
497
- /**
498
- * true if the stream has been forcibly destroyed
499
- */
500
- get destroyed() {
501
- return this[DESTROYED];
502
- }
503
- /**
504
- * true if the stream is currently in a flowing state, meaning that
505
- * any writes will be immediately emitted.
506
- */
507
- get flowing() {
508
- return this[FLOWING];
509
- }
510
- /**
511
- * true if the stream is currently in a paused state
512
- */
513
- get paused() {
514
- return this[PAUSED];
515
- }
516
- [BUFFERPUSH](chunk) {
517
- if (this[OBJECTMODE])
518
- this[BUFFERLENGTH] += 1;
519
- else
520
- this[BUFFERLENGTH] += chunk.length;
521
- this[BUFFER].push(chunk);
522
- }
523
- [BUFFERSHIFT]() {
524
- if (this[OBJECTMODE])
525
- this[BUFFERLENGTH] -= 1;
526
- else
527
- this[BUFFERLENGTH] -= this[BUFFER][0].length;
528
- return this[BUFFER].shift();
529
- }
530
- [FLUSH](noDrain = false) {
531
- do { } while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) &&
532
- this[BUFFER].length);
533
- if (!noDrain && !this[BUFFER].length && !this[EOF])
534
- this.emit('drain');
535
- }
536
- [FLUSHCHUNK](chunk) {
537
- this.emit('data', chunk);
538
- return this[FLOWING];
539
- }
540
- /**
541
- * Pipe all data emitted by this stream into the destination provided.
542
- *
543
- * Triggers the flow of data.
544
- */
545
- pipe(dest, opts) {
546
- if (this[DESTROYED])
547
- return dest;
548
- this[DISCARDED] = false;
549
- const ended = this[EMITTED_END];
550
- opts = opts || {};
551
- if (dest === proc.stdout || dest === proc.stderr)
552
- opts.end = false;
553
- else
554
- opts.end = opts.end !== false;
555
- opts.proxyErrors = !!opts.proxyErrors;
556
- // piping an ended stream ends immediately
557
- if (ended) {
558
- if (opts.end)
559
- dest.end();
560
- }
561
- else {
562
- // "as" here just ignores the WType, which pipes don't care about,
563
- // since they're only consuming from us, and writing to the dest
564
- this[PIPES].push(!opts.proxyErrors
565
- ? new Pipe(this, dest, opts)
566
- : new PipeProxyErrors(this, dest, opts));
567
- if (this[ASYNC])
568
- defer(() => this[RESUME]());
569
- else
570
- this[RESUME]();
571
- }
572
- return dest;
573
- }
574
- /**
575
- * Fully unhook a piped destination stream.
576
- *
577
- * If the destination stream was the only consumer of this stream (ie,
578
- * there are no other piped destinations or `'data'` event listeners)
579
- * then the flow of data will stop until there is another consumer or
580
- * {@link Minipass#resume} is explicitly called.
581
- */
582
- unpipe(dest) {
583
- const p = this[PIPES].find(p => p.dest === dest);
584
- if (p) {
585
- if (this[PIPES].length === 1) {
586
- if (this[FLOWING] && this[DATALISTENERS] === 0) {
587
- this[FLOWING] = false;
588
- }
589
- this[PIPES] = [];
590
- }
591
- else
592
- this[PIPES].splice(this[PIPES].indexOf(p), 1);
593
- p.unpipe();
594
- }
595
- }
596
- /**
597
- * Alias for {@link Minipass#on}
598
- */
599
- addListener(ev, handler) {
600
- return this.on(ev, handler);
601
- }
602
- /**
603
- * Mostly identical to `EventEmitter.on`, with the following
604
- * behavior differences to prevent data loss and unnecessary hangs:
605
- *
606
- * - Adding a 'data' event handler will trigger the flow of data
607
- *
608
- * - Adding a 'readable' event handler when there is data waiting to be read
609
- * will cause 'readable' to be emitted immediately.
610
- *
611
- * - Adding an 'endish' event handler ('end', 'finish', etc.) which has
612
- * already passed will cause the event to be emitted immediately and all
613
- * handlers removed.
614
- *
615
- * - Adding an 'error' event handler after an error has been emitted will
616
- * cause the event to be re-emitted immediately with the error previously
617
- * raised.
618
- */
619
- on(ev, handler) {
620
- const ret = super.on(ev, handler);
621
- if (ev === 'data') {
622
- this[DISCARDED] = false;
623
- this[DATALISTENERS]++;
624
- if (!this[PIPES].length && !this[FLOWING]) {
625
- this[RESUME]();
626
- }
627
- }
628
- else if (ev === 'readable' && this[BUFFERLENGTH] !== 0) {
629
- super.emit('readable');
630
- }
631
- else if (isEndish(ev) && this[EMITTED_END]) {
632
- super.emit(ev);
633
- this.removeAllListeners(ev);
634
- }
635
- else if (ev === 'error' && this[EMITTED_ERROR]) {
636
- const h = handler;
637
- if (this[ASYNC])
638
- defer(() => h.call(this, this[EMITTED_ERROR]));
639
- else
640
- h.call(this, this[EMITTED_ERROR]);
641
- }
642
- return ret;
643
- }
644
- /**
645
- * Alias for {@link Minipass#off}
646
- */
647
- removeListener(ev, handler) {
648
- return this.off(ev, handler);
649
- }
650
- /**
651
- * Mostly identical to `EventEmitter.off`
652
- *
653
- * If a 'data' event handler is removed, and it was the last consumer
654
- * (ie, there are no pipe destinations or other 'data' event listeners),
655
- * then the flow of data will stop until there is another consumer or
656
- * {@link Minipass#resume} is explicitly called.
657
- */
658
- off(ev, handler) {
659
- const ret = super.off(ev, handler);
660
- // if we previously had listeners, and now we don't, and we don't
661
- // have any pipes, then stop the flow, unless it's been explicitly
662
- // put in a discarded flowing state via stream.resume().
663
- if (ev === 'data') {
664
- this[DATALISTENERS] = this.listeners('data').length;
665
- if (this[DATALISTENERS] === 0 &&
666
- !this[DISCARDED] &&
667
- !this[PIPES].length) {
668
- this[FLOWING] = false;
669
- }
670
- }
671
- return ret;
672
- }
673
- /**
674
- * Mostly identical to `EventEmitter.removeAllListeners`
675
- *
676
- * If all 'data' event handlers are removed, and they were the last consumer
677
- * (ie, there are no pipe destinations), then the flow of data will stop
678
- * until there is another consumer or {@link Minipass#resume} is explicitly
679
- * called.
680
- */
681
- removeAllListeners(ev) {
682
- const ret = super.removeAllListeners(ev);
683
- if (ev === 'data' || ev === undefined) {
684
- this[DATALISTENERS] = 0;
685
- if (!this[DISCARDED] && !this[PIPES].length) {
686
- this[FLOWING] = false;
687
- }
688
- }
689
- return ret;
690
- }
691
- /**
692
- * true if the 'end' event has been emitted
693
- */
694
- get emittedEnd() {
695
- return this[EMITTED_END];
696
- }
697
- [MAYBE_EMIT_END]() {
698
- if (!this[EMITTING_END] &&
699
- !this[EMITTED_END] &&
700
- !this[DESTROYED] &&
701
- this[BUFFER].length === 0 &&
702
- this[EOF]) {
703
- this[EMITTING_END] = true;
704
- this.emit('end');
705
- this.emit('prefinish');
706
- this.emit('finish');
707
- if (this[CLOSED])
708
- this.emit('close');
709
- this[EMITTING_END] = false;
710
- }
711
- }
712
- /**
713
- * Mostly identical to `EventEmitter.emit`, with the following
714
- * behavior differences to prevent data loss and unnecessary hangs:
715
- *
716
- * If the stream has been destroyed, and the event is something other
717
- * than 'close' or 'error', then `false` is returned and no handlers
718
- * are called.
719
- *
720
- * If the event is 'end', and has already been emitted, then the event
721
- * is ignored. If the stream is in a paused or non-flowing state, then
722
- * the event will be deferred until data flow resumes. If the stream is
723
- * async, then handlers will be called on the next tick rather than
724
- * immediately.
725
- *
726
- * If the event is 'close', and 'end' has not yet been emitted, then
727
- * the event will be deferred until after 'end' is emitted.
728
- *
729
- * If the event is 'error', and an AbortSignal was provided for the stream,
730
- * and there are no listeners, then the event is ignored, matching the
731
- * behavior of node core streams in the presense of an AbortSignal.
732
- *
733
- * If the event is 'finish' or 'prefinish', then all listeners will be
734
- * removed after emitting the event, to prevent double-firing.
735
- */
736
- emit(ev, ...args) {
737
- const data = args[0];
738
- // error and close are only events allowed after calling destroy()
739
- if (ev !== 'error' &&
740
- ev !== 'close' &&
741
- ev !== DESTROYED &&
742
- this[DESTROYED]) {
743
- return false;
744
- }
745
- else if (ev === 'data') {
746
- return !this[OBJECTMODE] && !data
747
- ? false
748
- : this[ASYNC]
749
- ? (defer(() => this[EMITDATA](data)), true)
750
- : this[EMITDATA](data);
751
- }
752
- else if (ev === 'end') {
753
- return this[EMITEND]();
754
- }
755
- else if (ev === 'close') {
756
- this[CLOSED] = true;
757
- // don't emit close before 'end' and 'finish'
758
- if (!this[EMITTED_END] && !this[DESTROYED])
759
- return false;
760
- const ret = super.emit('close');
761
- this.removeAllListeners('close');
762
- return ret;
763
- }
764
- else if (ev === 'error') {
765
- this[EMITTED_ERROR] = data;
766
- super.emit(ERROR, data);
767
- const ret = !this[SIGNAL] || this.listeners('error').length
768
- ? super.emit('error', data)
769
- : false;
770
- this[MAYBE_EMIT_END]();
771
- return ret;
772
- }
773
- else if (ev === 'resume') {
774
- const ret = super.emit('resume');
775
- this[MAYBE_EMIT_END]();
776
- return ret;
777
- }
778
- else if (ev === 'finish' || ev === 'prefinish') {
779
- const ret = super.emit(ev);
780
- this.removeAllListeners(ev);
781
- return ret;
782
- }
783
- // Some other unknown event
784
- const ret = super.emit(ev, ...args);
785
- this[MAYBE_EMIT_END]();
786
- return ret;
787
- }
788
- [EMITDATA](data) {
789
- for (const p of this[PIPES]) {
790
- if (p.dest.write(data) === false)
791
- this.pause();
792
- }
793
- const ret = this[DISCARDED] ? false : super.emit('data', data);
794
- this[MAYBE_EMIT_END]();
795
- return ret;
796
- }
797
- [EMITEND]() {
798
- if (this[EMITTED_END])
799
- return false;
800
- this[EMITTED_END] = true;
801
- this.readable = false;
802
- return this[ASYNC]
803
- ? (defer(() => this[EMITEND2]()), true)
804
- : this[EMITEND2]();
805
- }
806
- [EMITEND2]() {
807
- if (this[DECODER]) {
808
- const data = this[DECODER].end();
809
- if (data) {
810
- for (const p of this[PIPES]) {
811
- p.dest.write(data);
812
- }
813
- if (!this[DISCARDED])
814
- super.emit('data', data);
815
- }
816
- }
817
- for (const p of this[PIPES]) {
818
- p.end();
819
- }
820
- const ret = super.emit('end');
821
- this.removeAllListeners('end');
822
- return ret;
823
- }
824
- /**
825
- * Return a Promise that resolves to an array of all emitted data once
826
- * the stream ends.
827
- */
828
- async collect() {
829
- const buf = Object.assign([], {
830
- dataLength: 0,
831
- });
832
- if (!this[OBJECTMODE])
833
- buf.dataLength = 0;
834
- // set the promise first, in case an error is raised
835
- // by triggering the flow here.
836
- const p = this.promise();
837
- this.on('data', c => {
838
- buf.push(c);
839
- if (!this[OBJECTMODE])
840
- buf.dataLength += c.length;
841
- });
842
- await p;
843
- return buf;
844
- }
845
- /**
846
- * Return a Promise that resolves to the concatenation of all emitted data
847
- * once the stream ends.
848
- *
849
- * Not allowed on objectMode streams.
850
- */
851
- async concat() {
852
- if (this[OBJECTMODE]) {
853
- throw new Error('cannot concat in objectMode');
854
- }
855
- const buf = await this.collect();
856
- return (this[ENCODING]
857
- ? buf.join('')
858
- : Buffer.concat(buf, buf.dataLength));
859
- }
860
- /**
861
- * Return a void Promise that resolves once the stream ends.
862
- */
863
- async promise() {
864
- return new Promise((resolve, reject) => {
865
- this.on(DESTROYED, () => reject(new Error('stream destroyed')));
866
- this.on('error', er => reject(er));
867
- this.on('end', () => resolve());
868
- });
869
- }
870
- /**
871
- * Asynchronous `for await of` iteration.
872
- *
873
- * This will continue emitting all chunks until the stream terminates.
874
- */
875
- [Symbol.asyncIterator]() {
876
- // set this up front, in case the consumer doesn't call next()
877
- // right away.
878
- this[DISCARDED] = false;
879
- let stopped = false;
880
- const stop = async () => {
881
- this.pause();
882
- stopped = true;
883
- return { value: undefined, done: true };
884
- };
885
- const next = () => {
886
- if (stopped)
887
- return stop();
888
- const res = this.read();
889
- if (res !== null)
890
- return Promise.resolve({ done: false, value: res });
891
- if (this[EOF])
892
- return stop();
893
- let resolve;
894
- let reject;
895
- const onerr = (er) => {
896
- this.off('data', ondata);
897
- this.off('end', onend);
898
- this.off(DESTROYED, ondestroy);
899
- stop();
900
- reject(er);
901
- };
902
- const ondata = (value) => {
903
- this.off('error', onerr);
904
- this.off('end', onend);
905
- this.off(DESTROYED, ondestroy);
906
- this.pause();
907
- resolve({ value, done: !!this[EOF] });
908
- };
909
- const onend = () => {
910
- this.off('error', onerr);
911
- this.off('data', ondata);
912
- this.off(DESTROYED, ondestroy);
913
- stop();
914
- resolve({ done: true, value: undefined });
915
- };
916
- const ondestroy = () => onerr(new Error('stream destroyed'));
917
- return new Promise((res, rej) => {
918
- reject = rej;
919
- resolve = res;
920
- this.once(DESTROYED, ondestroy);
921
- this.once('error', onerr);
922
- this.once('end', onend);
923
- this.once('data', ondata);
924
- });
925
- };
926
- return {
927
- next,
928
- throw: stop,
929
- return: stop,
930
- [Symbol.asyncIterator]() {
931
- return this;
932
- },
933
- };
934
- }
935
- /**
936
- * Synchronous `for of` iteration.
937
- *
938
- * The iteration will terminate when the internal buffer runs out, even
939
- * if the stream has not yet terminated.
940
- */
941
- [Symbol.iterator]() {
942
- // set this up front, in case the consumer doesn't call next()
943
- // right away.
944
- this[DISCARDED] = false;
945
- let stopped = false;
946
- const stop = () => {
947
- this.pause();
948
- this.off(ERROR, stop);
949
- this.off(DESTROYED, stop);
950
- this.off('end', stop);
951
- stopped = true;
952
- return { done: true, value: undefined };
953
- };
954
- const next = () => {
955
- if (stopped)
956
- return stop();
957
- const value = this.read();
958
- return value === null ? stop() : { done: false, value };
959
- };
960
- this.once('end', stop);
961
- this.once(ERROR, stop);
962
- this.once(DESTROYED, stop);
963
- return {
964
- next,
965
- throw: stop,
966
- return: stop,
967
- [Symbol.iterator]() {
968
- return this;
969
- },
970
- };
971
- }
972
- /**
973
- * Destroy a stream, preventing it from being used for any further purpose.
974
- *
975
- * If the stream has a `close()` method, then it will be called on
976
- * destruction.
977
- *
978
- * After destruction, any attempt to write data, read data, or emit most
979
- * events will be ignored.
980
- *
981
- * If an error argument is provided, then it will be emitted in an
982
- * 'error' event.
983
- */
984
- destroy(er) {
985
- if (this[DESTROYED]) {
986
- if (er)
987
- this.emit('error', er);
988
- else
989
- this.emit(DESTROYED);
990
- return this;
991
- }
992
- this[DESTROYED] = true;
993
- this[DISCARDED] = true;
994
- // throw away all buffered data, it's never coming out
995
- this[BUFFER].length = 0;
996
- this[BUFFERLENGTH] = 0;
997
- const wc = this;
998
- if (typeof wc.close === 'function' && !this[CLOSED])
999
- wc.close();
1000
- if (er)
1001
- this.emit('error', er);
1002
- // if no error to emit, still reject pending promises
1003
- else
1004
- this.emit(DESTROYED);
1005
- return this;
1006
- }
1007
- /**
1008
- * Alias for {@link isStream}
1009
- *
1010
- * Former export location, maintained for backwards compatibility.
1011
- *
1012
- * @deprecated
1013
- */
1014
- static get isStream() {
1015
- return isStream;
1016
- }
1017
- }
1018
- //# sourceMappingURL=index.js.map