@uides/stepwise 2.0.2 → 2.0.4-platform-162.23-01-26-13-03

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (566) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/index.js +1 -1
  3. package/package.json +1 -1
  4. package/generators/node_modules/@isaacs/cliui/build/lib/index.js +0 -211
  5. package/generators/node_modules/@pkgjs/parseargs/examples/is-default-value.js +0 -31
  6. package/generators/node_modules/@pkgjs/parseargs/examples/limit-long-syntax.js +0 -33
  7. package/generators/node_modules/@pkgjs/parseargs/examples/negate.js +0 -48
  8. package/generators/node_modules/@pkgjs/parseargs/examples/no-repeated-options.js +0 -38
  9. package/generators/node_modules/@pkgjs/parseargs/examples/simple-hard-coded.js +0 -36
  10. package/generators/node_modules/@pkgjs/parseargs/index.js +0 -263
  11. package/generators/node_modules/@pkgjs/parseargs/internal/errors.js +0 -55
  12. package/generators/node_modules/@pkgjs/parseargs/internal/primordials.js +0 -258
  13. package/generators/node_modules/@pkgjs/parseargs/internal/util.js +0 -24
  14. package/generators/node_modules/@pkgjs/parseargs/internal/validators.js +0 -61
  15. package/generators/node_modules/@pkgjs/parseargs/utils.js +0 -86
  16. package/generators/node_modules/ansi-regex/index.js +0 -5
  17. package/generators/node_modules/ansi-styles/index.js +0 -304
  18. package/generators/node_modules/balanced-match/index.js +0 -70
  19. package/generators/node_modules/brace-expansion/index.js +0 -153
  20. package/generators/node_modules/change-case/dist/index.js +0 -135
  21. package/generators/node_modules/change-case/dist/keys.js +0 -28
  22. package/generators/node_modules/color-convert/conversions.js +0 -840
  23. package/generators/node_modules/color-convert/index.js +0 -66
  24. package/generators/node_modules/color-convert/route.js +0 -81
  25. package/generators/node_modules/color-name/index.js +0 -757
  26. package/generators/node_modules/cross-spawn/index.js +0 -47
  27. package/generators/node_modules/cross-spawn/lib/enoent.js +0 -50
  28. package/generators/node_modules/cross-spawn/lib/parse.js +0 -91
  29. package/generators/node_modules/cross-spawn/lib/util/escape.js +0 -31
  30. package/generators/node_modules/cross-spawn/lib/util/readShebang.js +0 -37
  31. package/generators/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -56
  32. package/generators/node_modules/eastasianwidth/eastasianwidth.js +0 -66
  33. package/generators/node_modules/emoji-regex/RGI_Emoji.js +0 -18
  34. package/generators/node_modules/emoji-regex/es2015/RGI_Emoji.js +0 -16
  35. package/generators/node_modules/emoji-regex/es2015/index.js +0 -16
  36. package/generators/node_modules/emoji-regex/es2015/text.js +0 -16
  37. package/generators/node_modules/emoji-regex/index.js +0 -18
  38. package/generators/node_modules/emoji-regex/text.js +0 -18
  39. package/generators/node_modules/flat/cli.js +0 -31
  40. package/generators/node_modules/flat/index.js +0 -83
  41. package/generators/node_modules/foreground-child/dist/cjs/all-signals.js +0 -30
  42. package/generators/node_modules/foreground-child/dist/cjs/index.js +0 -156
  43. package/generators/node_modules/foreground-child/dist/cjs/watchdog.js +0 -63
  44. package/generators/node_modules/foreground-child/dist/mjs/all-signals.js +0 -3
  45. package/generators/node_modules/foreground-child/dist/mjs/index.js +0 -111
  46. package/generators/node_modules/foreground-child/dist/mjs/watchdog.js +0 -39
  47. package/generators/node_modules/glob/dist/commonjs/glob.js +0 -205
  48. package/generators/node_modules/glob/dist/commonjs/has-magic.js +0 -33
  49. package/generators/node_modules/glob/dist/commonjs/ignore.js +0 -87
  50. package/generators/node_modules/glob/dist/commonjs/index.js +0 -114
  51. package/generators/node_modules/glob/dist/commonjs/pattern.js +0 -154
  52. package/generators/node_modules/glob/dist/commonjs/processor.js +0 -214
  53. package/generators/node_modules/glob/dist/commonjs/walker.js +0 -271
  54. package/generators/node_modules/glob/dist/esm/glob.js +0 -165
  55. package/generators/node_modules/glob/dist/esm/has-magic.js +0 -9
  56. package/generators/node_modules/glob/dist/esm/ignore.js +0 -59
  57. package/generators/node_modules/glob/dist/esm/index.js +0 -52
  58. package/generators/node_modules/glob/dist/esm/pattern.js +0 -130
  59. package/generators/node_modules/glob/dist/esm/processor.js +0 -187
  60. package/generators/node_modules/glob/dist/esm/walker.js +0 -237
  61. package/generators/node_modules/is-fullwidth-code-point/index.js +0 -22
  62. package/generators/node_modules/isexe/index.js +0 -64
  63. package/generators/node_modules/isexe/mode.js +0 -46
  64. package/generators/node_modules/isexe/test/basic.js +0 -229
  65. package/generators/node_modules/isexe/windows.js +0 -45
  66. package/generators/node_modules/jackspeak/dist/commonjs/index.js +0 -683
  67. package/generators/node_modules/jackspeak/dist/commonjs/parse-args.js +0 -65
  68. package/generators/node_modules/jackspeak/dist/esm/index.js +0 -640
  69. package/generators/node_modules/jackspeak/dist/esm/parse-args.js +0 -127
  70. package/generators/node_modules/lru-cache/dist/commonjs/index.js +0 -889
  71. package/generators/node_modules/lru-cache/dist/esm/index.js +0 -881
  72. package/generators/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
  73. package/generators/node_modules/minimatch/dist/cjs/ast.js +0 -389
  74. package/generators/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -169
  75. package/generators/node_modules/minimatch/dist/cjs/escape.js +0 -10
  76. package/generators/node_modules/minimatch/dist/cjs/index.js +0 -680
  77. package/generators/node_modules/minimatch/dist/cjs/unescape.js +0 -10
  78. package/generators/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -6
  79. package/generators/node_modules/minimatch/dist/mjs/ast.js +0 -361
  80. package/generators/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -161
  81. package/generators/node_modules/minimatch/dist/mjs/escape.js +0 -2
  82. package/generators/node_modules/minimatch/dist/mjs/index.js +0 -612
  83. package/generators/node_modules/minimatch/dist/mjs/unescape.js +0 -2
  84. package/generators/node_modules/minipass/dist/commonjs/index.js +0 -623
  85. package/generators/node_modules/minipass/dist/esm/index.js +0 -584
  86. package/generators/node_modules/path-key/index.js +0 -23
  87. package/generators/node_modules/path-scurry/dist/cjs/index.js +0 -1161
  88. package/generators/node_modules/path-scurry/dist/mjs/index.js +0 -1078
  89. package/generators/node_modules/shebang-command/index.js +0 -28
  90. package/generators/node_modules/shebang-regex/index.js +0 -16
  91. package/generators/node_modules/signal-exit/dist/cjs/browser.js +0 -14
  92. package/generators/node_modules/signal-exit/dist/cjs/index.js +0 -176
  93. package/generators/node_modules/signal-exit/dist/cjs/signals.js +0 -14
  94. package/generators/node_modules/signal-exit/dist/mjs/browser.js +0 -4
  95. package/generators/node_modules/signal-exit/dist/mjs/index.js +0 -146
  96. package/generators/node_modules/signal-exit/dist/mjs/signals.js +0 -5
  97. package/generators/node_modules/string-width/index.js +0 -34
  98. package/generators/node_modules/string-width-cjs/index.js +0 -49
  99. package/generators/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +0 -19
  100. package/generators/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/index.js +0 -16
  101. package/generators/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/text.js +0 -16
  102. package/generators/node_modules/string-width-cjs/node_modules/emoji-regex/index.js +0 -18
  103. package/generators/node_modules/string-width-cjs/node_modules/emoji-regex/text.js +0 -18
  104. package/generators/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +0 -21
  105. package/generators/node_modules/strip-ansi/index.js +0 -7
  106. package/generators/node_modules/strip-ansi-cjs/index.js +0 -21
  107. package/generators/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +0 -19
  108. package/generators/node_modules/which/which.js +0 -108
  109. package/generators/node_modules/wrap-ansi/index.js +0 -134
  110. package/generators/node_modules/wrap-ansi-cjs/index.js +0 -158
  111. package/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +0 -19
  112. package/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/index.js +0 -281
  113. package/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/index.js +0 -16
  114. package/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/text.js +0 -16
  115. package/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.js +0 -18
  116. package/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/text.js +0 -18
  117. package/generators/node_modules/wrap-ansi-cjs/node_modules/string-width/index.js +0 -49
  118. package/generators/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +0 -21
  119. package/src/generators/node_modules/.package-lock.json +0 -458
  120. package/src/generators/node_modules/@isaacs/cliui/LICENSE.txt +0 -14
  121. package/src/generators/node_modules/@isaacs/cliui/README.md +0 -143
  122. package/src/generators/node_modules/@isaacs/cliui/build/index.cjs +0 -317
  123. package/src/generators/node_modules/@isaacs/cliui/build/index.d.cts +0 -43
  124. package/src/generators/node_modules/@isaacs/cliui/build/lib/index.js +0 -302
  125. package/src/generators/node_modules/@isaacs/cliui/index.mjs +0 -14
  126. package/src/generators/node_modules/@isaacs/cliui/package.json +0 -86
  127. package/src/generators/node_modules/@pkgjs/parseargs/.editorconfig +0 -14
  128. package/src/generators/node_modules/@pkgjs/parseargs/CHANGELOG.md +0 -147
  129. package/src/generators/node_modules/@pkgjs/parseargs/LICENSE +0 -201
  130. package/src/generators/node_modules/@pkgjs/parseargs/README.md +0 -413
  131. package/src/generators/node_modules/@pkgjs/parseargs/examples/is-default-value.js +0 -25
  132. package/src/generators/node_modules/@pkgjs/parseargs/examples/limit-long-syntax.js +0 -35
  133. package/src/generators/node_modules/@pkgjs/parseargs/examples/negate.js +0 -43
  134. package/src/generators/node_modules/@pkgjs/parseargs/examples/no-repeated-options.js +0 -31
  135. package/src/generators/node_modules/@pkgjs/parseargs/examples/ordered-options.mjs +0 -41
  136. package/src/generators/node_modules/@pkgjs/parseargs/examples/simple-hard-coded.js +0 -26
  137. package/src/generators/node_modules/@pkgjs/parseargs/index.js +0 -396
  138. package/src/generators/node_modules/@pkgjs/parseargs/internal/errors.js +0 -47
  139. package/src/generators/node_modules/@pkgjs/parseargs/internal/primordials.js +0 -393
  140. package/src/generators/node_modules/@pkgjs/parseargs/internal/util.js +0 -14
  141. package/src/generators/node_modules/@pkgjs/parseargs/internal/validators.js +0 -89
  142. package/src/generators/node_modules/@pkgjs/parseargs/package.json +0 -36
  143. package/src/generators/node_modules/@pkgjs/parseargs/utils.js +0 -198
  144. package/src/generators/node_modules/ansi-regex/index.d.ts +0 -33
  145. package/src/generators/node_modules/ansi-regex/index.js +0 -8
  146. package/src/generators/node_modules/ansi-regex/license +0 -9
  147. package/src/generators/node_modules/ansi-regex/package.json +0 -58
  148. package/src/generators/node_modules/ansi-regex/readme.md +0 -72
  149. package/src/generators/node_modules/ansi-styles/index.d.ts +0 -236
  150. package/src/generators/node_modules/ansi-styles/index.js +0 -223
  151. package/src/generators/node_modules/ansi-styles/license +0 -9
  152. package/src/generators/node_modules/ansi-styles/package.json +0 -54
  153. package/src/generators/node_modules/ansi-styles/readme.md +0 -173
  154. package/src/generators/node_modules/balanced-match/.github/FUNDING.yml +0 -2
  155. package/src/generators/node_modules/balanced-match/LICENSE.md +0 -21
  156. package/src/generators/node_modules/balanced-match/README.md +0 -97
  157. package/src/generators/node_modules/balanced-match/index.js +0 -62
  158. package/src/generators/node_modules/balanced-match/package.json +0 -48
  159. package/src/generators/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
  160. package/src/generators/node_modules/brace-expansion/LICENSE +0 -21
  161. package/src/generators/node_modules/brace-expansion/README.md +0 -135
  162. package/src/generators/node_modules/brace-expansion/index.js +0 -203
  163. package/src/generators/node_modules/brace-expansion/package.json +0 -46
  164. package/src/generators/node_modules/change-case/README.md +0 -78
  165. package/src/generators/node_modules/change-case/dist/index.d.ts +0 -78
  166. package/src/generators/node_modules/change-case/dist/index.js +0 -206
  167. package/src/generators/node_modules/change-case/dist/index.js.map +0 -1
  168. package/src/generators/node_modules/change-case/dist/keys.d.ts +0 -11
  169. package/src/generators/node_modules/change-case/dist/keys.js +0 -31
  170. package/src/generators/node_modules/change-case/dist/keys.js.map +0 -1
  171. package/src/generators/node_modules/change-case/package.json +0 -56
  172. package/src/generators/node_modules/color-convert/CHANGELOG.md +0 -54
  173. package/src/generators/node_modules/color-convert/LICENSE +0 -21
  174. package/src/generators/node_modules/color-convert/README.md +0 -68
  175. package/src/generators/node_modules/color-convert/conversions.js +0 -839
  176. package/src/generators/node_modules/color-convert/index.js +0 -81
  177. package/src/generators/node_modules/color-convert/package.json +0 -48
  178. package/src/generators/node_modules/color-convert/route.js +0 -97
  179. package/src/generators/node_modules/color-name/LICENSE +0 -8
  180. package/src/generators/node_modules/color-name/README.md +0 -11
  181. package/src/generators/node_modules/color-name/index.js +0 -152
  182. package/src/generators/node_modules/color-name/package.json +0 -28
  183. package/src/generators/node_modules/cross-spawn/CHANGELOG.md +0 -130
  184. package/src/generators/node_modules/cross-spawn/LICENSE +0 -21
  185. package/src/generators/node_modules/cross-spawn/README.md +0 -96
  186. package/src/generators/node_modules/cross-spawn/index.js +0 -39
  187. package/src/generators/node_modules/cross-spawn/lib/enoent.js +0 -59
  188. package/src/generators/node_modules/cross-spawn/lib/parse.js +0 -91
  189. package/src/generators/node_modules/cross-spawn/lib/util/escape.js +0 -45
  190. package/src/generators/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
  191. package/src/generators/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
  192. package/src/generators/node_modules/cross-spawn/package.json +0 -73
  193. package/src/generators/node_modules/eastasianwidth/README.md +0 -32
  194. package/src/generators/node_modules/eastasianwidth/eastasianwidth.js +0 -311
  195. package/src/generators/node_modules/eastasianwidth/package.json +0 -18
  196. package/src/generators/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  197. package/src/generators/node_modules/emoji-regex/README.md +0 -137
  198. package/src/generators/node_modules/emoji-regex/RGI_Emoji.d.ts +0 -5
  199. package/src/generators/node_modules/emoji-regex/RGI_Emoji.js +0 -6
  200. package/src/generators/node_modules/emoji-regex/es2015/RGI_Emoji.d.ts +0 -5
  201. package/src/generators/node_modules/emoji-regex/es2015/RGI_Emoji.js +0 -6
  202. package/src/generators/node_modules/emoji-regex/es2015/index.d.ts +0 -5
  203. package/src/generators/node_modules/emoji-regex/es2015/index.js +0 -6
  204. package/src/generators/node_modules/emoji-regex/es2015/text.d.ts +0 -5
  205. package/src/generators/node_modules/emoji-regex/es2015/text.js +0 -6
  206. package/src/generators/node_modules/emoji-regex/index.d.ts +0 -5
  207. package/src/generators/node_modules/emoji-regex/index.js +0 -6
  208. package/src/generators/node_modules/emoji-regex/package.json +0 -52
  209. package/src/generators/node_modules/emoji-regex/text.d.ts +0 -5
  210. package/src/generators/node_modules/emoji-regex/text.js +0 -6
  211. package/src/generators/node_modules/flat/LICENSE +0 -12
  212. package/src/generators/node_modules/flat/README.md +0 -234
  213. package/src/generators/node_modules/flat/cli.js +0 -40
  214. package/src/generators/node_modules/flat/index.d.ts +0 -17
  215. package/src/generators/node_modules/flat/index.js +0 -157
  216. package/src/generators/node_modules/flat/package.json +0 -49
  217. package/src/generators/node_modules/foreground-child/LICENSE +0 -15
  218. package/src/generators/node_modules/foreground-child/README.md +0 -90
  219. package/src/generators/node_modules/foreground-child/dist/cjs/all-signals.d.ts +0 -3
  220. package/src/generators/node_modules/foreground-child/dist/cjs/all-signals.d.ts.map +0 -1
  221. package/src/generators/node_modules/foreground-child/dist/cjs/all-signals.js +0 -58
  222. package/src/generators/node_modules/foreground-child/dist/cjs/all-signals.js.map +0 -1
  223. package/src/generators/node_modules/foreground-child/dist/cjs/index.d.ts +0 -54
  224. package/src/generators/node_modules/foreground-child/dist/cjs/index.d.ts.map +0 -1
  225. package/src/generators/node_modules/foreground-child/dist/cjs/index.js +0 -154
  226. package/src/generators/node_modules/foreground-child/dist/cjs/index.js.map +0 -1
  227. package/src/generators/node_modules/foreground-child/dist/cjs/package.json +0 -3
  228. package/src/generators/node_modules/foreground-child/dist/cjs/watchdog.d.ts +0 -4
  229. package/src/generators/node_modules/foreground-child/dist/cjs/watchdog.d.ts.map +0 -1
  230. package/src/generators/node_modules/foreground-child/dist/cjs/watchdog.js +0 -43
  231. package/src/generators/node_modules/foreground-child/dist/cjs/watchdog.js.map +0 -1
  232. package/src/generators/node_modules/foreground-child/dist/mjs/all-signals.d.ts +0 -3
  233. package/src/generators/node_modules/foreground-child/dist/mjs/all-signals.d.ts.map +0 -1
  234. package/src/generators/node_modules/foreground-child/dist/mjs/all-signals.js +0 -52
  235. package/src/generators/node_modules/foreground-child/dist/mjs/all-signals.js.map +0 -1
  236. package/src/generators/node_modules/foreground-child/dist/mjs/index.d.ts +0 -54
  237. package/src/generators/node_modules/foreground-child/dist/mjs/index.d.ts.map +0 -1
  238. package/src/generators/node_modules/foreground-child/dist/mjs/index.js +0 -146
  239. package/src/generators/node_modules/foreground-child/dist/mjs/index.js.map +0 -1
  240. package/src/generators/node_modules/foreground-child/dist/mjs/package.json +0 -3
  241. package/src/generators/node_modules/foreground-child/dist/mjs/watchdog.d.ts +0 -4
  242. package/src/generators/node_modules/foreground-child/dist/mjs/watchdog.d.ts.map +0 -1
  243. package/src/generators/node_modules/foreground-child/dist/mjs/watchdog.js +0 -39
  244. package/src/generators/node_modules/foreground-child/dist/mjs/watchdog.js.map +0 -1
  245. package/src/generators/node_modules/foreground-child/package.json +0 -83
  246. package/src/generators/node_modules/glob/LICENSE +0 -15
  247. package/src/generators/node_modules/glob/README.md +0 -1214
  248. package/src/generators/node_modules/glob/dist/commonjs/glob.d.ts +0 -344
  249. package/src/generators/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
  250. package/src/generators/node_modules/glob/dist/commonjs/glob.js +0 -243
  251. package/src/generators/node_modules/glob/dist/commonjs/glob.js.map +0 -1
  252. package/src/generators/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
  253. package/src/generators/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
  254. package/src/generators/node_modules/glob/dist/commonjs/has-magic.js +0 -27
  255. package/src/generators/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
  256. package/src/generators/node_modules/glob/dist/commonjs/ignore.d.ts +0 -20
  257. package/src/generators/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
  258. package/src/generators/node_modules/glob/dist/commonjs/ignore.js +0 -108
  259. package/src/generators/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
  260. package/src/generators/node_modules/glob/dist/commonjs/index.d.ts +0 -96
  261. package/src/generators/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
  262. package/src/generators/node_modules/glob/dist/commonjs/index.js +0 -68
  263. package/src/generators/node_modules/glob/dist/commonjs/index.js.map +0 -1
  264. package/src/generators/node_modules/glob/dist/commonjs/package.json +0 -1
  265. package/src/generators/node_modules/glob/dist/commonjs/pattern.d.ts +0 -77
  266. package/src/generators/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
  267. package/src/generators/node_modules/glob/dist/commonjs/pattern.js +0 -219
  268. package/src/generators/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
  269. package/src/generators/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
  270. package/src/generators/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
  271. package/src/generators/node_modules/glob/dist/commonjs/processor.js +0 -302
  272. package/src/generators/node_modules/glob/dist/commonjs/processor.js.map +0 -1
  273. package/src/generators/node_modules/glob/dist/commonjs/walker.d.ts +0 -96
  274. package/src/generators/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
  275. package/src/generators/node_modules/glob/dist/commonjs/walker.js +0 -358
  276. package/src/generators/node_modules/glob/dist/commonjs/walker.js.map +0 -1
  277. package/src/generators/node_modules/glob/dist/esm/bin.d.mts +0 -3
  278. package/src/generators/node_modules/glob/dist/esm/bin.d.mts.map +0 -1
  279. package/src/generators/node_modules/glob/dist/esm/bin.mjs +0 -275
  280. package/src/generators/node_modules/glob/dist/esm/bin.mjs.map +0 -1
  281. package/src/generators/node_modules/glob/dist/esm/glob.d.ts +0 -344
  282. package/src/generators/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
  283. package/src/generators/node_modules/glob/dist/esm/glob.js +0 -239
  284. package/src/generators/node_modules/glob/dist/esm/glob.js.map +0 -1
  285. package/src/generators/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
  286. package/src/generators/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
  287. package/src/generators/node_modules/glob/dist/esm/has-magic.js +0 -23
  288. package/src/generators/node_modules/glob/dist/esm/has-magic.js.map +0 -1
  289. package/src/generators/node_modules/glob/dist/esm/ignore.d.ts +0 -20
  290. package/src/generators/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
  291. package/src/generators/node_modules/glob/dist/esm/ignore.js +0 -104
  292. package/src/generators/node_modules/glob/dist/esm/ignore.js.map +0 -1
  293. package/src/generators/node_modules/glob/dist/esm/index.d.ts +0 -96
  294. package/src/generators/node_modules/glob/dist/esm/index.d.ts.map +0 -1
  295. package/src/generators/node_modules/glob/dist/esm/index.js +0 -56
  296. package/src/generators/node_modules/glob/dist/esm/index.js.map +0 -1
  297. package/src/generators/node_modules/glob/dist/esm/package.json +0 -1
  298. package/src/generators/node_modules/glob/dist/esm/pattern.d.ts +0 -77
  299. package/src/generators/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
  300. package/src/generators/node_modules/glob/dist/esm/pattern.js +0 -215
  301. package/src/generators/node_modules/glob/dist/esm/pattern.js.map +0 -1
  302. package/src/generators/node_modules/glob/dist/esm/processor.d.ts +0 -59
  303. package/src/generators/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
  304. package/src/generators/node_modules/glob/dist/esm/processor.js +0 -295
  305. package/src/generators/node_modules/glob/dist/esm/processor.js.map +0 -1
  306. package/src/generators/node_modules/glob/dist/esm/walker.d.ts +0 -96
  307. package/src/generators/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
  308. package/src/generators/node_modules/glob/dist/esm/walker.js +0 -352
  309. package/src/generators/node_modules/glob/dist/esm/walker.js.map +0 -1
  310. package/src/generators/node_modules/glob/package.json +0 -97
  311. package/src/generators/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  312. package/src/generators/node_modules/is-fullwidth-code-point/index.js +0 -50
  313. package/src/generators/node_modules/is-fullwidth-code-point/license +0 -9
  314. package/src/generators/node_modules/is-fullwidth-code-point/package.json +0 -42
  315. package/src/generators/node_modules/is-fullwidth-code-point/readme.md +0 -39
  316. package/src/generators/node_modules/isexe/LICENSE +0 -15
  317. package/src/generators/node_modules/isexe/README.md +0 -51
  318. package/src/generators/node_modules/isexe/index.js +0 -57
  319. package/src/generators/node_modules/isexe/mode.js +0 -41
  320. package/src/generators/node_modules/isexe/package.json +0 -31
  321. package/src/generators/node_modules/isexe/test/basic.js +0 -221
  322. package/src/generators/node_modules/isexe/windows.js +0 -42
  323. package/src/generators/node_modules/jackspeak/LICENSE.md +0 -55
  324. package/src/generators/node_modules/jackspeak/README.md +0 -348
  325. package/src/generators/node_modules/jackspeak/dist/commonjs/index.d.ts +0 -292
  326. package/src/generators/node_modules/jackspeak/dist/commonjs/index.d.ts.map +0 -1
  327. package/src/generators/node_modules/jackspeak/dist/commonjs/index.js +0 -850
  328. package/src/generators/node_modules/jackspeak/dist/commonjs/index.js.map +0 -1
  329. package/src/generators/node_modules/jackspeak/dist/commonjs/package.json +0 -1
  330. package/src/generators/node_modules/jackspeak/dist/commonjs/parse-args-cjs.cjs.map +0 -1
  331. package/src/generators/node_modules/jackspeak/dist/commonjs/parse-args-cjs.d.cts.map +0 -1
  332. package/src/generators/node_modules/jackspeak/dist/commonjs/parse-args.d.ts +0 -4
  333. package/src/generators/node_modules/jackspeak/dist/commonjs/parse-args.d.ts.map +0 -1
  334. package/src/generators/node_modules/jackspeak/dist/commonjs/parse-args.js +0 -50
  335. package/src/generators/node_modules/jackspeak/dist/commonjs/parse-args.js.map +0 -1
  336. package/src/generators/node_modules/jackspeak/dist/esm/index.d.ts +0 -292
  337. package/src/generators/node_modules/jackspeak/dist/esm/index.d.ts.map +0 -1
  338. package/src/generators/node_modules/jackspeak/dist/esm/index.js +0 -840
  339. package/src/generators/node_modules/jackspeak/dist/esm/index.js.map +0 -1
  340. package/src/generators/node_modules/jackspeak/dist/esm/package.json +0 -1
  341. package/src/generators/node_modules/jackspeak/dist/esm/parse-args.d.ts +0 -4
  342. package/src/generators/node_modules/jackspeak/dist/esm/parse-args.d.ts.map +0 -1
  343. package/src/generators/node_modules/jackspeak/dist/esm/parse-args.js +0 -26
  344. package/src/generators/node_modules/jackspeak/dist/esm/parse-args.js.map +0 -1
  345. package/src/generators/node_modules/jackspeak/package.json +0 -94
  346. package/src/generators/node_modules/lru-cache/LICENSE +0 -15
  347. package/src/generators/node_modules/lru-cache/README.md +0 -1204
  348. package/src/generators/node_modules/lru-cache/dist/commonjs/index.d.ts +0 -851
  349. package/src/generators/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
  350. package/src/generators/node_modules/lru-cache/dist/commonjs/index.js +0 -1441
  351. package/src/generators/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
  352. package/src/generators/node_modules/lru-cache/dist/commonjs/package.json +0 -3
  353. package/src/generators/node_modules/lru-cache/dist/esm/index.d.ts +0 -851
  354. package/src/generators/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
  355. package/src/generators/node_modules/lru-cache/dist/esm/index.js +0 -1437
  356. package/src/generators/node_modules/lru-cache/dist/esm/index.js.map +0 -1
  357. package/src/generators/node_modules/lru-cache/dist/esm/package.json +0 -3
  358. package/src/generators/node_modules/lru-cache/package.json +0 -118
  359. package/src/generators/node_modules/minimatch/LICENSE +0 -15
  360. package/src/generators/node_modules/minimatch/README.md +0 -454
  361. package/src/generators/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
  362. package/src/generators/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
  363. package/src/generators/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
  364. package/src/generators/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
  365. package/src/generators/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
  366. package/src/generators/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
  367. package/src/generators/node_modules/minimatch/dist/cjs/ast.js +0 -589
  368. package/src/generators/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
  369. package/src/generators/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
  370. package/src/generators/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
  371. package/src/generators/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
  372. package/src/generators/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
  373. package/src/generators/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
  374. package/src/generators/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
  375. package/src/generators/node_modules/minimatch/dist/cjs/escape.js +0 -22
  376. package/src/generators/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
  377. package/src/generators/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
  378. package/src/generators/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
  379. package/src/generators/node_modules/minimatch/dist/cjs/index.js +0 -1011
  380. package/src/generators/node_modules/minimatch/dist/cjs/index.js.map +0 -1
  381. package/src/generators/node_modules/minimatch/dist/cjs/package.json +0 -3
  382. package/src/generators/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
  383. package/src/generators/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
  384. package/src/generators/node_modules/minimatch/dist/cjs/unescape.js +0 -24
  385. package/src/generators/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
  386. package/src/generators/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
  387. package/src/generators/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
  388. package/src/generators/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
  389. package/src/generators/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
  390. package/src/generators/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
  391. package/src/generators/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
  392. package/src/generators/node_modules/minimatch/dist/mjs/ast.js +0 -585
  393. package/src/generators/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
  394. package/src/generators/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
  395. package/src/generators/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
  396. package/src/generators/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
  397. package/src/generators/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
  398. package/src/generators/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
  399. package/src/generators/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
  400. package/src/generators/node_modules/minimatch/dist/mjs/escape.js +0 -18
  401. package/src/generators/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
  402. package/src/generators/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
  403. package/src/generators/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
  404. package/src/generators/node_modules/minimatch/dist/mjs/index.js +0 -995
  405. package/src/generators/node_modules/minimatch/dist/mjs/index.js.map +0 -1
  406. package/src/generators/node_modules/minimatch/dist/mjs/package.json +0 -3
  407. package/src/generators/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
  408. package/src/generators/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
  409. package/src/generators/node_modules/minimatch/dist/mjs/unescape.js +0 -20
  410. package/src/generators/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
  411. package/src/generators/node_modules/minimatch/package.json +0 -86
  412. package/src/generators/node_modules/minipass/LICENSE +0 -15
  413. package/src/generators/node_modules/minipass/README.md +0 -825
  414. package/src/generators/node_modules/minipass/dist/commonjs/index.d.ts +0 -549
  415. package/src/generators/node_modules/minipass/dist/commonjs/index.d.ts.map +0 -1
  416. package/src/generators/node_modules/minipass/dist/commonjs/index.js +0 -1028
  417. package/src/generators/node_modules/minipass/dist/commonjs/index.js.map +0 -1
  418. package/src/generators/node_modules/minipass/dist/commonjs/package.json +0 -1
  419. package/src/generators/node_modules/minipass/dist/esm/index.d.ts +0 -549
  420. package/src/generators/node_modules/minipass/dist/esm/index.d.ts.map +0 -1
  421. package/src/generators/node_modules/minipass/dist/esm/index.js +0 -1018
  422. package/src/generators/node_modules/minipass/dist/esm/index.js.map +0 -1
  423. package/src/generators/node_modules/minipass/dist/esm/package.json +0 -1
  424. package/src/generators/node_modules/minipass/package.json +0 -82
  425. package/src/generators/node_modules/path-key/index.d.ts +0 -40
  426. package/src/generators/node_modules/path-key/index.js +0 -16
  427. package/src/generators/node_modules/path-key/license +0 -9
  428. package/src/generators/node_modules/path-key/package.json +0 -39
  429. package/src/generators/node_modules/path-key/readme.md +0 -61
  430. package/src/generators/node_modules/path-scurry/LICENSE.md +0 -55
  431. package/src/generators/node_modules/path-scurry/README.md +0 -631
  432. package/src/generators/node_modules/path-scurry/dist/cjs/index.d.ts +0 -1107
  433. package/src/generators/node_modules/path-scurry/dist/cjs/index.d.ts.map +0 -1
  434. package/src/generators/node_modules/path-scurry/dist/cjs/index.js +0 -2018
  435. package/src/generators/node_modules/path-scurry/dist/cjs/index.js.map +0 -1
  436. package/src/generators/node_modules/path-scurry/dist/cjs/package.json +0 -3
  437. package/src/generators/node_modules/path-scurry/dist/mjs/index.d.ts +0 -1107
  438. package/src/generators/node_modules/path-scurry/dist/mjs/index.d.ts.map +0 -1
  439. package/src/generators/node_modules/path-scurry/dist/mjs/index.js +0 -1983
  440. package/src/generators/node_modules/path-scurry/dist/mjs/index.js.map +0 -1
  441. package/src/generators/node_modules/path-scurry/dist/mjs/package.json +0 -3
  442. package/src/generators/node_modules/path-scurry/package.json +0 -87
  443. package/src/generators/node_modules/shebang-command/index.js +0 -19
  444. package/src/generators/node_modules/shebang-command/license +0 -9
  445. package/src/generators/node_modules/shebang-command/package.json +0 -34
  446. package/src/generators/node_modules/shebang-command/readme.md +0 -34
  447. package/src/generators/node_modules/shebang-regex/index.d.ts +0 -22
  448. package/src/generators/node_modules/shebang-regex/index.js +0 -2
  449. package/src/generators/node_modules/shebang-regex/license +0 -9
  450. package/src/generators/node_modules/shebang-regex/package.json +0 -35
  451. package/src/generators/node_modules/shebang-regex/readme.md +0 -33
  452. package/src/generators/node_modules/signal-exit/LICENSE.txt +0 -16
  453. package/src/generators/node_modules/signal-exit/README.md +0 -74
  454. package/src/generators/node_modules/signal-exit/dist/cjs/browser.d.ts +0 -12
  455. package/src/generators/node_modules/signal-exit/dist/cjs/browser.d.ts.map +0 -1
  456. package/src/generators/node_modules/signal-exit/dist/cjs/browser.js +0 -10
  457. package/src/generators/node_modules/signal-exit/dist/cjs/browser.js.map +0 -1
  458. package/src/generators/node_modules/signal-exit/dist/cjs/index.d.ts +0 -48
  459. package/src/generators/node_modules/signal-exit/dist/cjs/index.d.ts.map +0 -1
  460. package/src/generators/node_modules/signal-exit/dist/cjs/index.js +0 -279
  461. package/src/generators/node_modules/signal-exit/dist/cjs/index.js.map +0 -1
  462. package/src/generators/node_modules/signal-exit/dist/cjs/package.json +0 -3
  463. package/src/generators/node_modules/signal-exit/dist/cjs/signals.d.ts +0 -29
  464. package/src/generators/node_modules/signal-exit/dist/cjs/signals.d.ts.map +0 -1
  465. package/src/generators/node_modules/signal-exit/dist/cjs/signals.js +0 -42
  466. package/src/generators/node_modules/signal-exit/dist/cjs/signals.js.map +0 -1
  467. package/src/generators/node_modules/signal-exit/dist/mjs/browser.d.ts +0 -12
  468. package/src/generators/node_modules/signal-exit/dist/mjs/browser.d.ts.map +0 -1
  469. package/src/generators/node_modules/signal-exit/dist/mjs/browser.js +0 -4
  470. package/src/generators/node_modules/signal-exit/dist/mjs/browser.js.map +0 -1
  471. package/src/generators/node_modules/signal-exit/dist/mjs/index.d.ts +0 -48
  472. package/src/generators/node_modules/signal-exit/dist/mjs/index.d.ts.map +0 -1
  473. package/src/generators/node_modules/signal-exit/dist/mjs/index.js +0 -275
  474. package/src/generators/node_modules/signal-exit/dist/mjs/index.js.map +0 -1
  475. package/src/generators/node_modules/signal-exit/dist/mjs/package.json +0 -3
  476. package/src/generators/node_modules/signal-exit/dist/mjs/signals.d.ts +0 -29
  477. package/src/generators/node_modules/signal-exit/dist/mjs/signals.d.ts.map +0 -1
  478. package/src/generators/node_modules/signal-exit/dist/mjs/signals.js +0 -39
  479. package/src/generators/node_modules/signal-exit/dist/mjs/signals.js.map +0 -1
  480. package/src/generators/node_modules/signal-exit/package.json +0 -106
  481. package/src/generators/node_modules/string-width/index.d.ts +0 -29
  482. package/src/generators/node_modules/string-width/index.js +0 -54
  483. package/src/generators/node_modules/string-width/license +0 -9
  484. package/src/generators/node_modules/string-width/package.json +0 -59
  485. package/src/generators/node_modules/string-width/readme.md +0 -67
  486. package/src/generators/node_modules/string-width-cjs/index.d.ts +0 -29
  487. package/src/generators/node_modules/string-width-cjs/index.js +0 -47
  488. package/src/generators/node_modules/string-width-cjs/license +0 -9
  489. package/src/generators/node_modules/string-width-cjs/node_modules/ansi-regex/index.d.ts +0 -37
  490. package/src/generators/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +0 -10
  491. package/src/generators/node_modules/string-width-cjs/node_modules/ansi-regex/license +0 -9
  492. package/src/generators/node_modules/string-width-cjs/node_modules/ansi-regex/package.json +0 -55
  493. package/src/generators/node_modules/string-width-cjs/node_modules/ansi-regex/readme.md +0 -78
  494. package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  495. package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/README.md +0 -73
  496. package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/index.js +0 -6
  497. package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/text.js +0 -6
  498. package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/index.d.ts +0 -23
  499. package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/index.js +0 -6
  500. package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/package.json +0 -50
  501. package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/text.js +0 -6
  502. package/src/generators/node_modules/string-width-cjs/node_modules/strip-ansi/index.d.ts +0 -17
  503. package/src/generators/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +0 -4
  504. package/src/generators/node_modules/string-width-cjs/node_modules/strip-ansi/license +0 -9
  505. package/src/generators/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +0 -54
  506. package/src/generators/node_modules/string-width-cjs/node_modules/strip-ansi/readme.md +0 -46
  507. package/src/generators/node_modules/string-width-cjs/package.json +0 -56
  508. package/src/generators/node_modules/string-width-cjs/readme.md +0 -50
  509. package/src/generators/node_modules/strip-ansi/index.d.ts +0 -15
  510. package/src/generators/node_modules/strip-ansi/index.js +0 -14
  511. package/src/generators/node_modules/strip-ansi/license +0 -9
  512. package/src/generators/node_modules/strip-ansi/package.json +0 -57
  513. package/src/generators/node_modules/strip-ansi/readme.md +0 -41
  514. package/src/generators/node_modules/strip-ansi-cjs/index.d.ts +0 -17
  515. package/src/generators/node_modules/strip-ansi-cjs/index.js +0 -4
  516. package/src/generators/node_modules/strip-ansi-cjs/license +0 -9
  517. package/src/generators/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.d.ts +0 -37
  518. package/src/generators/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +0 -10
  519. package/src/generators/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +0 -9
  520. package/src/generators/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +0 -55
  521. package/src/generators/node_modules/strip-ansi-cjs/node_modules/ansi-regex/readme.md +0 -78
  522. package/src/generators/node_modules/strip-ansi-cjs/package.json +0 -54
  523. package/src/generators/node_modules/strip-ansi-cjs/readme.md +0 -46
  524. package/src/generators/node_modules/which/CHANGELOG.md +0 -166
  525. package/src/generators/node_modules/which/LICENSE +0 -15
  526. package/src/generators/node_modules/which/README.md +0 -54
  527. package/src/generators/node_modules/which/bin/node-which +0 -52
  528. package/src/generators/node_modules/which/package.json +0 -43
  529. package/src/generators/node_modules/which/which.js +0 -125
  530. package/src/generators/node_modules/wrap-ansi/index.d.ts +0 -41
  531. package/src/generators/node_modules/wrap-ansi/index.js +0 -214
  532. package/src/generators/node_modules/wrap-ansi/license +0 -9
  533. package/src/generators/node_modules/wrap-ansi/package.json +0 -69
  534. package/src/generators/node_modules/wrap-ansi/readme.md +0 -91
  535. package/src/generators/node_modules/wrap-ansi-cjs/index.js +0 -216
  536. package/src/generators/node_modules/wrap-ansi-cjs/license +0 -9
  537. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.d.ts +0 -37
  538. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +0 -10
  539. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/license +0 -9
  540. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/package.json +0 -55
  541. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/readme.md +0 -78
  542. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/index.d.ts +0 -345
  543. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/index.js +0 -163
  544. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/license +0 -9
  545. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/package.json +0 -56
  546. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/readme.md +0 -152
  547. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  548. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/README.md +0 -73
  549. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/index.js +0 -6
  550. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/text.js +0 -6
  551. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.d.ts +0 -23
  552. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.js +0 -6
  553. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/package.json +0 -50
  554. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/text.js +0 -6
  555. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/string-width/index.d.ts +0 -29
  556. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/string-width/index.js +0 -47
  557. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/string-width/license +0 -9
  558. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/string-width/package.json +0 -56
  559. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/string-width/readme.md +0 -50
  560. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.d.ts +0 -17
  561. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +0 -4
  562. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +0 -9
  563. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +0 -54
  564. package/src/generators/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/readme.md +0 -46
  565. package/src/generators/node_modules/wrap-ansi-cjs/package.json +0 -62
  566. package/src/generators/node_modules/wrap-ansi-cjs/readme.md +0 -91
@@ -1,1204 +0,0 @@
1
- # lru-cache
2
-
3
- A cache object that deletes the least-recently-used items.
4
-
5
- Specify a max number of the most recently used items that you
6
- want to keep, and this cache will keep that many of the most
7
- recently accessed items.
8
-
9
- This is not primarily a TTL cache, and does not make strong TTL
10
- guarantees. There is no preemptive pruning of expired items by
11
- default, but you _may_ set a TTL on the cache or on a single
12
- `set`. If you do so, it will treat expired items as missing, and
13
- delete them when fetched. If you are more interested in TTL
14
- caching than LRU caching, check out
15
- [@isaacs/ttlcache](http://npm.im/@isaacs/ttlcache).
16
-
17
- As of version 7, this is one of the most performant LRU
18
- implementations available in JavaScript, and supports a wide
19
- diversity of use cases. However, note that using some of the
20
- features will necessarily impact performance, by causing the
21
- cache to have to do more work. See the "Performance" section
22
- below.
23
-
24
- ## Installation
25
-
26
- ```bash
27
- npm install lru-cache --save
28
- ```
29
-
30
- ## Usage
31
-
32
- ```js
33
- // hybrid module, either works
34
- import { LRUCache } from 'lru-cache'
35
- // or:
36
- const { LRUCache } = require('lru-cache')
37
- // or in minified form for web browsers:
38
- import { LRUCache } from 'http://unpkg.com/lru-cache@9/dist/mjs/index.min.mjs'
39
-
40
- // At least one of 'max', 'ttl', or 'maxSize' is required, to prevent
41
- // unsafe unbounded storage.
42
- //
43
- // In most cases, it's best to specify a max for performance, so all
44
- // the required memory allocation is done up-front.
45
- //
46
- // All the other options are optional, see the sections below for
47
- // documentation on what each one does. Most of them can be
48
- // overridden for specific items in get()/set()
49
- const options = {
50
- max: 500,
51
-
52
- // for use with tracking overall storage size
53
- maxSize: 5000,
54
- sizeCalculation: (value, key) => {
55
- return 1
56
- },
57
-
58
- // for use when you need to clean up something when objects
59
- // are evicted from the cache
60
- dispose: (value, key) => {
61
- freeFromMemoryOrWhatever(value)
62
- },
63
-
64
- // how long to live in ms
65
- ttl: 1000 * 60 * 5,
66
-
67
- // return stale items before removing from cache?
68
- allowStale: false,
69
-
70
- updateAgeOnGet: false,
71
- updateAgeOnHas: false,
72
-
73
- // async method to use for cache.fetch(), for
74
- // stale-while-revalidate type of behavior
75
- fetchMethod: async (
76
- key,
77
- staleValue,
78
- { options, signal, context }
79
- ) => {},
80
- }
81
-
82
- const cache = new LRUCache(options)
83
-
84
- cache.set('key', 'value')
85
- cache.get('key') // "value"
86
-
87
- // non-string keys ARE fully supported
88
- // but note that it must be THE SAME object, not
89
- // just a JSON-equivalent object.
90
- var someObject = { a: 1 }
91
- cache.set(someObject, 'a value')
92
- // Object keys are not toString()-ed
93
- cache.set('[object Object]', 'a different value')
94
- assert.equal(cache.get(someObject), 'a value')
95
- // A similar object with same keys/values won't work,
96
- // because it's a different object identity
97
- assert.equal(cache.get({ a: 1 }), undefined)
98
-
99
- cache.clear() // empty the cache
100
- ```
101
-
102
- If you put more stuff in the cache, then less recently used items
103
- will fall out. That's what an LRU cache is.
104
-
105
- ## `class LRUCache<K, V, FC = unknown>(options)`
106
-
107
- Create a new `LRUCache` object.
108
-
109
- When using TypeScript, set the `K` and `V` types to the `key` and
110
- `value` types, respectively.
111
-
112
- The `FC` ("fetch context") generic type defaults to `unknown`.
113
- If set to a value other than `void` or `undefined`, then any
114
- calls to `cache.fetch()` _must_ provide a `context` option
115
- matching the `FC` type. If `FC` is set to `void` or `undefined`,
116
- then `cache.fetch()` _must not_ provide a `context` option. See
117
- the documentation on `async fetch()` below.
118
-
119
- ## Options
120
-
121
- All options are available on the LRUCache instance, making it
122
- safe to pass an LRUCache instance as the options argument to make
123
- another empty cache of the same type.
124
-
125
- Some options are marked read-only because changing them after
126
- instantiation is not safe. Changing any of the other options
127
- will of course only have an effect on subsequent method calls.
128
-
129
- ### `max` (read only)
130
-
131
- The maximum number of items that remain in the cache (assuming no
132
- TTL pruning or explicit deletions). Note that fewer items may be
133
- stored if size calculation is used, and `maxSize` is exceeded.
134
- This must be a positive finite intger.
135
-
136
- At least one of `max`, `maxSize`, or `TTL` is required. This
137
- must be a positive integer if set.
138
-
139
- **It is strongly recommended to set a `max` to prevent unbounded
140
- growth of the cache.** See "Storage Bounds Safety" below.
141
-
142
- ### `maxSize` (read only)
143
-
144
- Set to a positive integer to track the sizes of items added to
145
- the cache, and automatically evict items in order to stay below
146
- this size. Note that this may result in fewer than `max` items
147
- being stored.
148
-
149
- Attempting to add an item to the cache whose calculated size is
150
- greater that this amount will be a no-op. The item will not be
151
- cached, and no other items will be evicted.
152
-
153
- Optional, must be a positive integer if provided.
154
-
155
- Sets `maxEntrySize` to the same value, unless a different value
156
- is provided for `maxEntrySize`.
157
-
158
- At least one of `max`, `maxSize`, or `TTL` is required. This
159
- must be a positive integer if set.
160
-
161
- Even if size tracking is enabled, **it is strongly recommended to
162
- set a `max` to prevent unbounded growth of the cache.** See
163
- "Storage Bounds Safety" below.
164
-
165
- ### `maxEntrySize`
166
-
167
- Set to a positive integer to track the sizes of items added to
168
- the cache, and prevent caching any item over a given size.
169
- Attempting to add an item whose calculated size is greater than
170
- this amount will be a no-op. The item will not be cached, and no
171
- other items will be evicted.
172
-
173
- Optional, must be a positive integer if provided. Defaults to
174
- the value of `maxSize` if provided.
175
-
176
- ### `sizeCalculation`
177
-
178
- Function used to calculate the size of stored items. If you're
179
- storing strings or buffers, then you probably want to do
180
- something like `n => n.length`. The item is passed as the first
181
- argument, and the key is passed as the second argument.
182
-
183
- This may be overridden by passing an options object to
184
- `cache.set()`.
185
-
186
- Requires `maxSize` to be set.
187
-
188
- If the `size` (or return value of `sizeCalculation`) for a given
189
- entry is greater than `maxEntrySize`, then the item will not be
190
- added to the cache.
191
-
192
- ### `fetchMethod` (read only)
193
-
194
- Function that is used to make background asynchronous fetches.
195
- Called with `fetchMethod(key, staleValue, { signal, options,
196
- context })`. May return a Promise.
197
-
198
- If `fetchMethod` is not provided, then `cache.fetch(key)` is
199
- equivalent to `Promise.resolve(cache.get(key))`.
200
-
201
- If at any time, `signal.aborted` is set to `true`, or if the
202
- `signal.onabort` method is called, or if it emits an `'abort'`
203
- event which you can listen to with `addEventListener`, then that
204
- means that the fetch should be abandoned. This may be passed
205
- along to async functions aware of AbortController/AbortSignal
206
- behavior.
207
-
208
- The `fetchMethod` should **only** return `undefined` or a Promise
209
- resolving to `undefined` if the AbortController signaled an
210
- `abort` event. In all other cases, it should return or resolve
211
- to a value suitable for adding to the cache.
212
-
213
- The `options` object is a union of the options that may be
214
- provided to `set()` and `get()`. If they are modified, then that
215
- will result in modifying the settings to `cache.set()` when the
216
- value is resolved, and in the case of `noDeleteOnFetchRejection`
217
- and `allowStaleOnFetchRejection`, the handling of `fetchMethod`
218
- failures.
219
-
220
- For example, a DNS cache may update the TTL based on the value
221
- returned from a remote DNS server by changing `options.ttl` in
222
- the `fetchMethod`.
223
-
224
- ### `noDeleteOnFetchRejection`
225
-
226
- If a `fetchMethod` throws an error or returns a rejected promise,
227
- then by default, any existing stale value will be removed from
228
- the cache.
229
-
230
- If `noDeleteOnFetchRejection` is set to `true`, then this
231
- behavior is suppressed, and the stale value remains in the cache
232
- in the case of a rejected `fetchMethod`.
233
-
234
- This is important in cases where a `fetchMethod` is _only_ called
235
- as a background update while the stale value is returned, when
236
- `allowStale` is used.
237
-
238
- This is implicitly in effect when `allowStaleOnFetchRejection` is
239
- set.
240
-
241
- This may be set in calls to `fetch()`, or defaulted on the
242
- constructor, or overridden by modifying the options object in the
243
- `fetchMethod`.
244
-
245
- ### `allowStaleOnFetchRejection`
246
-
247
- Set to true to return a stale value from the cache when a
248
- `fetchMethod` throws an error or returns a rejected Promise.
249
-
250
- If a `fetchMethod` fails, and there is no stale value available,
251
- the `fetch()` will resolve to `undefined`. Ie, all `fetchMethod`
252
- errors are suppressed.
253
-
254
- Implies `noDeleteOnFetchRejection`.
255
-
256
- This may be set in calls to `fetch()`, or defaulted on the
257
- constructor, or overridden by modifying the options object in the
258
- `fetchMethod`.
259
-
260
- ### `allowStaleOnFetchAbort`
261
-
262
- Set to true to return a stale value from the cache when the
263
- `AbortSignal` passed to the `fetchMethod` dispatches an `'abort'`
264
- event, whether user-triggered, or due to internal cache behavior.
265
-
266
- Unless `ignoreFetchAbort` is also set, the underlying
267
- `fetchMethod` will still be considered canceled, and any value
268
- it returns will be ignored and not cached.
269
-
270
- Caveat: since fetches are aborted when a new value is explicitly
271
- set in the cache, this can lead to fetch returning a stale value,
272
- since that was the fallback value _at the moment the `fetch()` was
273
- initiated_, even though the new updated value is now present in
274
- the cache.
275
-
276
- For example:
277
-
278
- ```ts
279
- const cache = new LRUCache<string, any>({
280
- ttl: 100,
281
- fetchMethod: async (url, oldValue, { signal }) => {
282
- const res = await fetch(url, { signal })
283
- return await res.json()
284
- },
285
- })
286
- cache.set('https://example.com/', { some: 'data' })
287
- // 100ms go by...
288
- const result = cache.fetch('https://example.com/')
289
- cache.set('https://example.com/', { other: 'thing' })
290
- console.log(await result) // { some: 'data' }
291
- console.log(cache.get('https://example.com/')) // { other: 'thing' }
292
- ```
293
-
294
- ### `ignoreFetchAbort`
295
-
296
- Set to true to ignore the `abort` event emitted by the
297
- `AbortSignal` object passed to `fetchMethod`, and still cache the
298
- resulting resolution value, as long as it is not `undefined`.
299
-
300
- When used on its own, this means aborted `fetch()` calls are not
301
- immediately resolved or rejected when they are aborted, and
302
- instead take the full time to await.
303
-
304
- When used with `allowStaleOnFetchAbort`, aborted `fetch()` calls
305
- will resolve immediately to their stale cached value or
306
- `undefined`, and will continue to process and eventually update
307
- the cache when they resolve, as long as the resulting value is
308
- not `undefined`, thus supporting a "return stale on timeout while
309
- refreshing" mechanism by passing `AbortSignal.timeout(n)` as the
310
- signal.
311
-
312
- For example:
313
-
314
- ```js
315
- const c = new LRUCache({
316
- ttl: 100,
317
- ignoreFetchAbort: true,
318
- allowStaleOnFetchAbort: true,
319
- fetchMethod: async (key, oldValue, { signal }) => {
320
- // note: do NOT pass the signal to fetch()!
321
- // let's say this fetch can take a long time.
322
- const res = await fetch(`https://slow-backend-server/${key}`)
323
- return await res.json()
324
- },
325
- })
326
-
327
- // this will return the stale value after 100ms, while still
328
- // updating in the background for next time.
329
- const val = await c.fetch('key', { signal: AbortSignal.timeout(100) })
330
- ```
331
-
332
- **Note**: regardless of this setting, an `abort` event _is still
333
- emitted on the `AbortSignal` object_, so may result in invalid
334
- results when passed to other underlying APIs that use
335
- AbortSignals.
336
-
337
- This may be overridden on the `fetch()` call or in the
338
- `fetchMethod` itself.
339
-
340
- ### `dispose` (read only)
341
-
342
- Function that is called on items when they are dropped from the
343
- cache, as `this.dispose(value, key, reason)`.
344
-
345
- This can be handy if you want to close file descriptors or do
346
- other cleanup tasks when items are no longer stored in the cache.
347
-
348
- **NOTE**: It is called _before_ the item has been fully removed
349
- from the cache, so if you want to put it right back in, you need
350
- to wait until the next tick. If you try to add it back in during
351
- the `dispose()` function call, it will break things in subtle and
352
- weird ways.
353
-
354
- Unlike several other options, this may _not_ be overridden by
355
- passing an option to `set()`, for performance reasons.
356
-
357
- The `reason` will be one of the following strings, corresponding
358
- to the reason for the item's deletion:
359
-
360
- - `evict` Item was evicted to make space for a new addition
361
- - `set` Item was overwritten by a new value
362
- - `delete` Item was removed by explicit `cache.delete(key)` or by
363
- calling `cache.clear()`, which deletes everything.
364
-
365
- The `dispose()` method is _not_ called for canceled calls to
366
- `fetchMethod()`. If you wish to handle evictions, overwrites,
367
- and deletes of in-flight asynchronous fetches, you must use the
368
- `AbortSignal` provided.
369
-
370
- Optional, must be a function.
371
-
372
- ### `disposeAfter` (read only)
373
-
374
- The same as `dispose`, but called _after_ the entry is completely
375
- removed and the cache is once again in a clean state.
376
-
377
- It is safe to add an item right back into the cache at this
378
- point. However, note that it is _very_ easy to inadvertently
379
- create infinite recursion in this way.
380
-
381
- The `disposeAfter()` method is _not_ called for canceled calls to
382
- `fetchMethod()`. If you wish to handle evictions, overwrites,
383
- and deletes of in-flight asynchronous fetches, you must use the
384
- `AbortSignal` provided.
385
-
386
- ### `noDisposeOnSet`
387
-
388
- Set to `true` to suppress calling the `dispose()` function if the
389
- entry key is still accessible within the cache.
390
-
391
- This may be overridden by passing an options object to
392
- `cache.set()`.
393
-
394
- Boolean, default `false`. Only relevant if `dispose` or
395
- `disposeAfter` options are set.
396
-
397
- ### `ttl`
398
-
399
- Max time to live for items before they are considered stale.
400
- Note that stale items are NOT preemptively removed by default,
401
- and MAY live in the cache, contributing to its LRU max, long
402
- after they have expired.
403
-
404
- Also, as this cache is optimized for LRU/MRU operations, some of
405
- the staleness/TTL checks will reduce performance.
406
-
407
- This is not primarily a TTL cache, and does not make strong TTL
408
- guarantees. There is no pre-emptive pruning of expired items,
409
- but you _may_ set a TTL on the cache, and it will treat expired
410
- items as missing when they are fetched, and delete them.
411
-
412
- Optional, but must be a positive integer in ms if specified.
413
-
414
- This may be overridden by passing an options object to
415
- `cache.set()`.
416
-
417
- At least one of `max`, `maxSize`, or `TTL` is required. This
418
- must be a positive integer if set.
419
-
420
- Even if ttl tracking is enabled, **it is strongly recommended to
421
- set a `max` to prevent unbounded growth of the cache.** See
422
- "Storage Bounds Safety" below.
423
-
424
- If ttl tracking is enabled, and `max` and `maxSize` are not set,
425
- and `ttlAutopurge` is not set, then a warning will be emitted
426
- cautioning about the potential for unbounded memory consumption.
427
- (The TypeScript definitions will also discourage this.)
428
-
429
- ### `noUpdateTTL`
430
-
431
- Boolean flag to tell the cache to not update the TTL when setting
432
- a new value for an existing key (ie, when updating a value rather
433
- than inserting a new value). Note that the TTL value is _always_
434
- set (if provided) when adding a new entry into the cache.
435
-
436
- This may be passed as an option to `cache.set()`.
437
-
438
- Boolean, default false.
439
-
440
- ### `ttlResolution`
441
-
442
- Minimum amount of time in ms in which to check for staleness.
443
- Defaults to `1`, which means that the current time is checked at
444
- most once per millisecond.
445
-
446
- Set to `0` to check the current time every time staleness is
447
- tested.
448
-
449
- Note that setting this to a higher value _will_ improve
450
- performance somewhat while using ttl tracking, albeit at the
451
- expense of keeping stale items around a bit longer than intended.
452
-
453
- ### `ttlAutopurge`
454
-
455
- Preemptively remove stale items from the cache.
456
-
457
- Note that this may _significantly_ degrade performance,
458
- especially if the cache is storing a large number of items. It
459
- is almost always best to just leave the stale items in the cache,
460
- and let them fall out as new items are added.
461
-
462
- Note that this means that `allowStale` is a bit pointless, as
463
- stale items will be deleted almost as soon as they expire.
464
-
465
- Use with caution!
466
-
467
- Boolean, default `false`
468
-
469
- ### `allowStale`
470
-
471
- By default, if you set `ttl`, it'll only delete stale items from
472
- the cache when you `get(key)`. That is, it's not preemptively
473
- pruning items.
474
-
475
- If you set `allowStale:true`, it'll return the stale value as
476
- well as deleting it. If you don't set this, then it'll return
477
- `undefined` when you try to get a stale entry.
478
-
479
- Note that when a stale entry is fetched, _even if it is returned
480
- due to `allowStale` being set_, it is removed from the cache
481
- immediately. You can immediately put it back in the cache if you
482
- wish, thus resetting the TTL.
483
-
484
- This may be overridden by passing an options object to
485
- `cache.get()`. The `cache.has()` method will always return
486
- `false` for stale items.
487
-
488
- Boolean, default false, only relevant if `ttl` is set.
489
-
490
- ### `noDeleteOnStaleGet`
491
-
492
- When using time-expiring entries with `ttl`, by default stale
493
- items will be removed from the cache when the key is accessed
494
- with `cache.get()`.
495
-
496
- Setting `noDeleteOnStaleGet` to `true` will cause stale items to
497
- remain in the cache, until they are explicitly deleted with
498
- `cache.delete(key)`, or retrieved with `noDeleteOnStaleGet` set
499
- to `false`.
500
-
501
- This may be overridden by passing an options object to
502
- `cache.get()`.
503
-
504
- Boolean, default false, only relevant if `ttl` is set.
505
-
506
- ### `updateAgeOnGet`
507
-
508
- When using time-expiring entries with `ttl`, setting this to
509
- `true` will make each item's age reset to 0 whenever it is
510
- retrieved from cache with `get()`, causing it to not expire. (It
511
- can still fall out of cache based on recency of use, of course.)
512
-
513
- This may be overridden by passing an options object to
514
- `cache.get()`.
515
-
516
- Boolean, default false, only relevant if `ttl` is set.
517
-
518
- ### `updateAgeOnHas`
519
-
520
- When using time-expiring entries with `ttl`, setting this to
521
- `true` will make each item's age reset to 0 whenever its presence
522
- in the cache is checked with `has()`, causing it to not expire.
523
- (It can still fall out of cache based on recency of use, of
524
- course.)
525
-
526
- This may be overridden by passing an options object to
527
- `cache.has()`.
528
-
529
- Boolean, default false, only relevant if `ttl` is set.
530
-
531
- ## API
532
-
533
- ### `new LRUCache<K, V, FC = unknown>(options)`
534
-
535
- Create a new LRUCache. All options are documented above, and are
536
- on the cache as public members.
537
-
538
- The `K` and `V` types define the key and value types,
539
- respectively. The optional `FC` type defines the type of the
540
- `context` object passed to `cache.fetch()`.
541
-
542
- Keys and values **must not** be `null` or `undefined`.
543
-
544
- ### `cache.max`, `cache.maxSize`, `cache.allowStale`,
545
-
546
- `cache.noDisposeOnSet`, `cache.sizeCalculation`, `cache.dispose`,
547
- `cache.maxSize`, `cache.ttl`, `cache.updateAgeOnGet`,
548
- `cache.updateAgeOnHas`
549
-
550
- All option names are exposed as public members on the cache
551
- object.
552
-
553
- These are intended for read access only. Changing them during
554
- program operation can cause undefined behavior.
555
-
556
- ### `cache.size`
557
-
558
- The total number of items held in the cache at the current
559
- moment.
560
-
561
- ### `cache.calculatedSize`
562
-
563
- The total size of items in cache when using size tracking.
564
-
565
- ### `set(key, value, [{ size, sizeCalculation, ttl, noDisposeOnSet, start, status }])`
566
-
567
- Add a value to the cache.
568
-
569
- Optional options object may contain `ttl` and `sizeCalculation`
570
- as described above, which default to the settings on the cache
571
- object.
572
-
573
- If `start` is provided, then that will set the effective start
574
- time for the TTL calculation. Note that this must be a previous
575
- value of `performance.now()` if supported, or a previous value of
576
- `Date.now()` if not.
577
-
578
- Options object may also include `size`, which will prevent
579
- calling the `sizeCalculation` function and just use the specified
580
- number if it is a positive integer, and `noDisposeOnSet` which
581
- will prevent calling a `dispose` function in the case of
582
- overwrites.
583
-
584
- If the `size` (or return value of `sizeCalculation`) for a given
585
- entry is greater than `maxEntrySize`, then the item will not be
586
- added to the cache.
587
-
588
- Will update the recency of the entry.
589
-
590
- Returns the cache object.
591
-
592
- For the usage of the `status` option, see **Status Tracking**
593
- below.
594
-
595
- If the value is `undefined`, then this is an alias for
596
- `cache.delete(key)`. `undefined` is never stored in the cache.
597
- See **Storing Undefined Values** below.
598
-
599
- ### `get(key, { updateAgeOnGet, allowStale, status } = {}) => value`
600
-
601
- Return a value from the cache.
602
-
603
- Will update the recency of the cache entry found.
604
-
605
- If the key is not found, `get()` will return `undefined`.
606
-
607
- For the usage of the `status` option, see **Status Tracking**
608
- below.
609
-
610
- ### `info(key) => Entry | undefined`
611
-
612
- Return an `Entry` object containing the currently cached value,
613
- as well as ttl and size information if available. Returns
614
- undefined if the key is not found in the cache.
615
-
616
- Unlike `dump()` (which is designed to be portable and survive
617
- serialization), the `start` value is always the current
618
- timestamp, and the `ttl` is a calculated remaining time to live
619
- (negative if expired).
620
-
621
- Note that stale values are always returned, rather than being
622
- pruned and treated as if they were not in the cache. If you wish
623
- to exclude stale entries, guard against a negative `ttl` value.
624
-
625
- ### `async fetch(key, options = {}) => Promise`
626
-
627
- The following options are supported:
628
-
629
- - `updateAgeOnGet`
630
- - `allowStale`
631
- - `size`
632
- - `sizeCalculation`
633
- - `ttl`
634
- - `noDisposeOnSet`
635
- - `forceRefresh`
636
- - `status` - See **Status Tracking** below.
637
- - `signal` - AbortSignal can be used to cancel the `fetch()`.
638
- Note that the `signal` option provided to the `fetchMethod` is
639
- a different object, because it must also respond to internal
640
- cache state changes, but aborting this signal will abort the
641
- one passed to `fetchMethod` as well.
642
- - `context` - sets the `context` option passed to the underlying
643
- `fetchMethod`.
644
-
645
- If the value is in the cache and not stale, then the returned
646
- Promise resolves to the value.
647
-
648
- If not in the cache, or beyond its TTL staleness, then
649
- `fetchMethod(key, staleValue, { options, signal, context })` is
650
- called, and the value returned will be added to the cache once
651
- resolved.
652
-
653
- If called with `allowStale`, and an asynchronous fetch is
654
- currently in progress to reload a stale value, then the former
655
- stale value will be returned.
656
-
657
- If called with `forceRefresh`, then the cached item will be
658
- re-fetched, even if it is not stale. However, if `allowStale` is
659
- set, then the old value will still be returned. This is useful
660
- in cases where you want to force a reload of a cached value. If
661
- a background fetch is already in progress, then `forceRefresh`
662
- has no effect.
663
-
664
- Multiple fetches for the same `key` will only call `fetchMethod`
665
- a single time, and all will be resolved when the value is
666
- resolved, even if different options are used.
667
-
668
- If `fetchMethod` is not specified, then this is effectively an
669
- alias for `Promise.resolve(cache.get(key))`.
670
-
671
- When the fetch method resolves to a value, if the fetch has not
672
- been aborted due to deletion, eviction, or being overwritten,
673
- then it is added to the cache using the options provided.
674
-
675
- If the key is evicted or deleted before the `fetchMethod`
676
- resolves, then the AbortSignal passed to the `fetchMethod` will
677
- receive an `abort` event, and the promise returned by `fetch()`
678
- will reject with the reason for the abort.
679
-
680
- If a `signal` is passed to the `fetch()` call, then aborting the
681
- signal will abort the fetch and cause the `fetch()` promise to
682
- reject with the reason provided.
683
-
684
- #### Setting `context`
685
-
686
- If an `FC` type is set to a type other than `unknown`, `void`, or
687
- `undefined` in the LRUCache constructor, then all
688
- calls to `cache.fetch()` _must_ provide a `context` option. If
689
- set to `undefined` or `void`, then calls to fetch _must not_
690
- provide a `context` option.
691
-
692
- The `context` param allows you to provide arbitrary data that
693
- might be relevant in the course of fetching the data. It is only
694
- relevant for the course of a single `fetch()` operation, and
695
- discarded afterwards.
696
-
697
- #### Note: `fetch()` calls are inflight-unique
698
-
699
- If you call `fetch()` multiple times with the same key value,
700
- then every call after the first will resolve on the same
701
- promise<sup>1</sup>,
702
- _even if they have different settings that would otherwise change
703
- the behvavior of the fetch_, such as `noDeleteOnFetchRejection`
704
- or `ignoreFetchAbort`.
705
-
706
- In most cases, this is not a problem (in fact, only fetching
707
- something once is what you probably want, if you're caching in
708
- the first place). If you are changing the fetch() options
709
- dramatically between runs, there's a good chance that you might
710
- be trying to fit divergent semantics into a single object, and
711
- would be better off with multiple cache instances.
712
-
713
- **1**: Ie, they're not the "same Promise", but they resolve at
714
- the same time, because they're both waiting on the same
715
- underlying fetchMethod response.
716
-
717
- ### `peek(key, { allowStale } = {}) => value`
718
-
719
- Like `get()` but doesn't update recency or delete stale items.
720
-
721
- Returns `undefined` if the item is stale, unless `allowStale` is
722
- set either on the cache or in the options object.
723
-
724
- ### `has(key, { updateAgeOnHas, status } = {}) => Boolean`
725
-
726
- Check if a key is in the cache, without updating the recency of
727
- use. Age is updated if `updateAgeOnHas` is set to `true` in
728
- either the options or the constructor.
729
-
730
- Will return `false` if the item is stale, even though it is
731
- technically in the cache. The difference can be determined (if
732
- it matters) by using a `status` argument, and inspecting the
733
- `has` field.
734
-
735
- For the usage of the `status` option, see **Status Tracking**
736
- below.
737
-
738
- ### `delete(key)`
739
-
740
- Deletes a key out of the cache.
741
-
742
- Returns `true` if the key was deleted, `false` otherwise.
743
-
744
- ### `clear()`
745
-
746
- Clear the cache entirely, throwing away all values.
747
-
748
- ### `keys()`
749
-
750
- Return a generator yielding the keys in the cache, in order from
751
- most recently used to least recently used.
752
-
753
- ### `rkeys()`
754
-
755
- Return a generator yielding the keys in the cache, in order from
756
- least recently used to most recently used.
757
-
758
- ### `values()`
759
-
760
- Return a generator yielding the values in the cache, in order
761
- from most recently used to least recently used.
762
-
763
- ### `rvalues()`
764
-
765
- Return a generator yielding the values in the cache, in order
766
- from least recently used to most recently used.
767
-
768
- ### `entries()`
769
-
770
- Return a generator yielding `[key, value]` pairs, in order from
771
- most recently used to least recently used.
772
-
773
- ### `rentries()`
774
-
775
- Return a generator yielding `[key, value]` pairs, in order from
776
- least recently used to most recently used.
777
-
778
- ### `find(fn, [getOptions])`
779
-
780
- Find a value for which the supplied `fn` method returns a truthy
781
- value, similar to `Array.find()`.
782
-
783
- `fn` is called as `fn(value, key, cache)`.
784
-
785
- The optional `getOptions` are applied to the resulting `get()` of
786
- the item found.
787
-
788
- ### `dump()`
789
-
790
- Return an array of `[key, entry]` objects which can be passed to
791
- `cache.load()`
792
-
793
- The `start` fields are calculated relative to a portable
794
- `Date.now()` timestamp, even if `performance.now()` is available.
795
-
796
- Stale entries are always included in the `dump`, even if
797
- `allowStale` is false.
798
-
799
- Note: this returns an actual array, not a generator, so it can be
800
- more easily passed around.
801
-
802
- ### `load(entries)`
803
-
804
- Reset the cache and load in the items in `entries` in the order
805
- listed. Note that the shape of the resulting cache may be
806
- different if the same options are not used in both caches.
807
-
808
- The `start` fields are assumed to be calculated relative to a
809
- portable `Date.now()` timestamp, even if `performance.now()` is
810
- available.
811
-
812
- ### `purgeStale()`
813
-
814
- Delete any stale entries. Returns `true` if anything was
815
- removed, `false` otherwise.
816
-
817
- ### `getRemainingTTL(key)`
818
-
819
- Return the number of ms left in the item's TTL. If item is not
820
- in cache, returns `0`. Returns `Infinity` if item is in cache
821
- without a defined TTL.
822
-
823
- ### `forEach(fn, [thisp])`
824
-
825
- Call the `fn` function with each set of `fn(value, key, cache)`
826
- in the LRU cache, from most recent to least recently used.
827
-
828
- Does not affect recency of use.
829
-
830
- If `thisp` is provided, function will be called in the
831
- `this`-context of the provided object.
832
-
833
- ### `rforEach(fn, [thisp])`
834
-
835
- Same as `cache.forEach(fn, thisp)`, but in order from least
836
- recently used to most recently used.
837
-
838
- ### `pop()`
839
-
840
- Evict the least recently used item, returning its value.
841
-
842
- Returns `undefined` if cache is empty.
843
-
844
- ## Status Tracking
845
-
846
- Occasionally, it may be useful to track the internal behavior of
847
- the cache, particularly for logging, debugging, or for behavior
848
- within the `fetchMethod`. To do this, you can pass a `status`
849
- object to the `get()`, `set()`, `has()`, and `fetch()` methods.
850
-
851
- The `status` option should be a plain JavaScript object.
852
-
853
- The following fields will be set appropriately:
854
-
855
- ```ts
856
- interface Status<V> {
857
- /**
858
- * The status of a set() operation.
859
- *
860
- * - add: the item was not found in the cache, and was added
861
- * - update: the item was in the cache, with the same value provided
862
- * - replace: the item was in the cache, and replaced
863
- * - miss: the item was not added to the cache for some reason
864
- */
865
- set?: 'add' | 'update' | 'replace' | 'miss'
866
-
867
- /**
868
- * the ttl stored for the item, or undefined if ttls are not used.
869
- */
870
- ttl?: LRUMilliseconds
871
-
872
- /**
873
- * the start time for the item, or undefined if ttls are not used.
874
- */
875
- start?: LRUMilliseconds
876
-
877
- /**
878
- * The timestamp used for TTL calculation
879
- */
880
- now?: LRUMilliseconds
881
-
882
- /**
883
- * the remaining ttl for the item, or undefined if ttls are not used.
884
- */
885
- remainingTTL?: LRUMilliseconds
886
-
887
- /**
888
- * The calculated size for the item, if sizes are used.
889
- */
890
- size?: LRUSize
891
-
892
- /**
893
- * A flag indicating that the item was not stored, due to exceeding the
894
- * {@link maxEntrySize}
895
- */
896
- maxEntrySizeExceeded?: true
897
-
898
- /**
899
- * The old value, specified in the case of `set:'update'` or
900
- * `set:'replace'`
901
- */
902
- oldValue?: V
903
-
904
- /**
905
- * The results of a {@link has} operation
906
- *
907
- * - hit: the item was found in the cache
908
- * - stale: the item was found in the cache, but is stale
909
- * - miss: the item was not found in the cache
910
- */
911
- has?: 'hit' | 'stale' | 'miss'
912
-
913
- /**
914
- * The status of a {@link fetch} operation.
915
- * Note that this can change as the underlying fetch() moves through
916
- * various states.
917
- *
918
- * - inflight: there is another fetch() for this key which is in process
919
- * - get: there is no fetchMethod, so {@link get} was called.
920
- * - miss: the item is not in cache, and will be fetched.
921
- * - hit: the item is in the cache, and was resolved immediately.
922
- * - stale: the item is in the cache, but stale.
923
- * - refresh: the item is in the cache, and not stale, but
924
- * {@link forceRefresh} was specified.
925
- */
926
- fetch?: 'get' | 'inflight' | 'miss' | 'hit' | 'stale' | 'refresh'
927
-
928
- /**
929
- * The {@link fetchMethod} was called
930
- */
931
- fetchDispatched?: true
932
-
933
- /**
934
- * The cached value was updated after a successful call to fetchMethod
935
- */
936
- fetchUpdated?: true
937
-
938
- /**
939
- * The reason for a fetch() rejection. Either the error raised by the
940
- * {@link fetchMethod}, or the reason for an AbortSignal.
941
- */
942
- fetchError?: Error
943
-
944
- /**
945
- * The fetch received an abort signal
946
- */
947
- fetchAborted?: true
948
-
949
- /**
950
- * The abort signal received was ignored, and the fetch was allowed to
951
- * continue.
952
- */
953
- fetchAbortIgnored?: true
954
-
955
- /**
956
- * The fetchMethod promise resolved successfully
957
- */
958
- fetchResolved?: true
959
-
960
- /**
961
- * The results of the fetchMethod promise were stored in the cache
962
- */
963
- fetchUpdated?: true
964
-
965
- /**
966
- * The fetchMethod promise was rejected
967
- */
968
- fetchRejected?: true
969
-
970
- /**
971
- * The status of a {@link get} operation.
972
- *
973
- * - fetching: The item is currently being fetched. If a previous value is
974
- * present and allowed, that will be returned.
975
- * - stale: The item is in the cache, and is stale.
976
- * - hit: the item is in the cache
977
- * - miss: the item is not in the cache
978
- */
979
- get?: 'stale' | 'hit' | 'miss'
980
-
981
- /**
982
- * A fetch or get operation returned a stale value.
983
- */
984
- returnedStale?: true
985
- }
986
- ```
987
-
988
- ## Storage Bounds Safety
989
-
990
- This implementation aims to be as flexible as possible, within
991
- the limits of safe memory consumption and optimal performance.
992
-
993
- At initial object creation, storage is allocated for `max` items.
994
- If `max` is set to zero, then some performance is lost, and item
995
- count is unbounded. Either `maxSize` or `ttl` _must_ be set if
996
- `max` is not specified.
997
-
998
- If `maxSize` is set, then this creates a safe limit on the
999
- maximum storage consumed, but without the performance benefits of
1000
- pre-allocation. When `maxSize` is set, every item _must_ provide
1001
- a size, either via the `sizeCalculation` method provided to the
1002
- constructor, or via a `size` or `sizeCalculation` option provided
1003
- to `cache.set()`. The size of every item _must_ be a positive
1004
- integer.
1005
-
1006
- If neither `max` nor `maxSize` are set, then `ttl` tracking must
1007
- be enabled. Note that, even when tracking item `ttl`, items are
1008
- _not_ preemptively deleted when they become stale, unless
1009
- `ttlAutopurge` is enabled. Instead, they are only purged the
1010
- next time the key is requested. Thus, if `ttlAutopurge`, `max`,
1011
- and `maxSize` are all not set, then the cache will potentially
1012
- grow unbounded.
1013
-
1014
- In this case, a warning is printed to standard error. Future
1015
- versions may require the use of `ttlAutopurge` if `max` and
1016
- `maxSize` are not specified.
1017
-
1018
- If you truly wish to use a cache that is bound _only_ by TTL
1019
- expiration, consider using a `Map` object, and calling
1020
- `setTimeout` to delete entries when they expire. It will perform
1021
- much better than an LRU cache.
1022
-
1023
- Here is an implementation you may use, under the same
1024
- [license](./LICENSE) as this package:
1025
-
1026
- ```js
1027
- // a storage-unbounded ttl cache that is not an lru-cache
1028
- const cache = {
1029
- data: new Map(),
1030
- timers: new Map(),
1031
- set: (k, v, ttl) => {
1032
- if (cache.timers.has(k)) {
1033
- clearTimeout(cache.timers.get(k))
1034
- }
1035
- cache.timers.set(
1036
- k,
1037
- setTimeout(() => cache.delete(k), ttl)
1038
- )
1039
- cache.data.set(k, v)
1040
- },
1041
- get: k => cache.data.get(k),
1042
- has: k => cache.data.has(k),
1043
- delete: k => {
1044
- if (cache.timers.has(k)) {
1045
- clearTimeout(cache.timers.get(k))
1046
- }
1047
- cache.timers.delete(k)
1048
- return cache.data.delete(k)
1049
- },
1050
- clear: () => {
1051
- cache.data.clear()
1052
- for (const v of cache.timers.values()) {
1053
- clearTimeout(v)
1054
- }
1055
- cache.timers.clear()
1056
- },
1057
- }
1058
- ```
1059
-
1060
- If that isn't to your liking, check out
1061
- [@isaacs/ttlcache](http://npm.im/@isaacs/ttlcache).
1062
-
1063
- ## Storing Undefined Values
1064
-
1065
- This cache never stores undefined values, as `undefined` is used
1066
- internally in a few places to indicate that a key is not in the
1067
- cache.
1068
-
1069
- You may call `cache.set(key, undefined)`, but this is just an
1070
- an alias for `cache.delete(key)`. Note that this has the effect
1071
- that `cache.has(key)` will return _false_ after setting it to
1072
- undefined.
1073
-
1074
- ```js
1075
- cache.set(myKey, undefined)
1076
- cache.has(myKey) // false!
1077
- ```
1078
-
1079
- If you need to track `undefined` values, and still note that the
1080
- key is in the cache, an easy workaround is to use a sigil object
1081
- of your own.
1082
-
1083
- ```js
1084
- import { LRUCache } from 'lru-cache'
1085
- const undefinedValue = Symbol('undefined')
1086
- const cache = new LRUCache(...)
1087
- const mySet = (key, value) =>
1088
- cache.set(key, value === undefined ? undefinedValue : value)
1089
- const myGet = (key, value) => {
1090
- const v = cache.get(key)
1091
- return v === undefinedValue ? undefined : v
1092
- }
1093
- ```
1094
-
1095
- ## Performance
1096
-
1097
- As of January 2022, version 7 of this library is one of the most
1098
- performant LRU cache implementations in JavaScript.
1099
-
1100
- Benchmarks can be extremely difficult to get right. In
1101
- particular, the performance of set/get/delete operations on
1102
- objects will vary _wildly_ depending on the type of key used. V8
1103
- is highly optimized for objects with keys that are short strings,
1104
- especially integer numeric strings. Thus any benchmark which
1105
- tests _solely_ using numbers as keys will tend to find that an
1106
- object-based approach performs the best.
1107
-
1108
- Note that coercing _anything_ to strings to use as object keys is
1109
- unsafe, unless you can be 100% certain that no other type of
1110
- value will be used. For example:
1111
-
1112
- ```js
1113
- const myCache = {}
1114
- const set = (k, v) => (myCache[k] = v)
1115
- const get = k => myCache[k]
1116
-
1117
- set({}, 'please hang onto this for me')
1118
- set('[object Object]', 'oopsie')
1119
- ```
1120
-
1121
- Also beware of "Just So" stories regarding performance. Garbage
1122
- collection of large (especially: deep) object graphs can be
1123
- incredibly costly, with several "tipping points" where it
1124
- increases exponentially. As a result, putting that off until
1125
- later can make it much worse, and less predictable. If a library
1126
- performs well, but only in a scenario where the object graph is
1127
- kept shallow, then that won't help you if you are using large
1128
- objects as keys.
1129
-
1130
- In general, when attempting to use a library to improve
1131
- performance (such as a cache like this one), it's best to choose
1132
- an option that will perform well in the sorts of scenarios where
1133
- you'll actually use it.
1134
-
1135
- This library is optimized for repeated gets and minimizing
1136
- eviction time, since that is the expected need of a LRU. Set
1137
- operations are somewhat slower on average than a few other
1138
- options, in part because of that optimization. It is assumed
1139
- that you'll be caching some costly operation, ideally as rarely
1140
- as possible, so optimizing set over get would be unwise.
1141
-
1142
- If performance matters to you:
1143
-
1144
- 1. If it's at all possible to use small integer values as keys,
1145
- and you can guarantee that no other types of values will be
1146
- used as keys, then do that, and use a cache such as
1147
- [lru-fast](https://npmjs.com/package/lru-fast), or
1148
- [mnemonist's
1149
- LRUCache](https://yomguithereal.github.io/mnemonist/lru-cache)
1150
- which uses an Object as its data store.
1151
-
1152
- 2. Failing that, if at all possible, use short non-numeric
1153
- strings (ie, less than 256 characters) as your keys, and use
1154
- [mnemonist's
1155
- LRUCache](https://yomguithereal.github.io/mnemonist/lru-cache).
1156
-
1157
- 3. If the types of your keys will be anything else, especially
1158
- long strings, strings that look like floats, objects, or some
1159
- mix of types, or if you aren't sure, then this library will
1160
- work well for you.
1161
-
1162
- If you do not need the features that this library provides
1163
- (like asynchronous fetching, a variety of TTL staleness
1164
- options, and so on), then [mnemonist's
1165
- LRUMap](https://yomguithereal.github.io/mnemonist/lru-map) is
1166
- a very good option, and just slightly faster than this module
1167
- (since it does considerably less).
1168
-
1169
- 4. Do not use a `dispose` function, size tracking, or especially
1170
- ttl behavior, unless absolutely needed. These features are
1171
- convenient, and necessary in some use cases, and every attempt
1172
- has been made to make the performance impact minimal, but it
1173
- isn't nothing.
1174
-
1175
- ## Breaking Changes in Version 7
1176
-
1177
- This library changed to a different algorithm and internal data
1178
- structure in version 7, yielding significantly better
1179
- performance, albeit with some subtle changes as a result.
1180
-
1181
- If you were relying on the internals of LRUCache in version 6 or
1182
- before, it probably will not work in version 7 and above.
1183
-
1184
- ## Breaking Changes in Version 8
1185
-
1186
- - The `fetchContext` option was renamed to `context`, and may no
1187
- longer be set on the cache instance itself.
1188
- - Rewritten in TypeScript, so pretty much all the types moved
1189
- around a lot.
1190
- - The AbortController/AbortSignal polyfill was removed. For this
1191
- reason, **Node version 16.14.0 or higher is now required**.
1192
- - Internal properties were moved to actual private class
1193
- properties.
1194
- - Keys and values must not be `null` or `undefined`.
1195
- - Minified export available at `'lru-cache/min'`, for both CJS
1196
- and MJS builds.
1197
-
1198
- ## Changes in Version 9
1199
-
1200
- - Named export only, no default export.
1201
- - AbortController polyfill returned, albeit with a warning when
1202
- used.
1203
-
1204
- For more info, see the [change log](CHANGELOG.md).