@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.
- package/CHANGELOG.md +6 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/generators/node_modules/@isaacs/cliui/build/lib/index.js +0 -211
- package/generators/node_modules/@pkgjs/parseargs/examples/is-default-value.js +0 -31
- package/generators/node_modules/@pkgjs/parseargs/examples/limit-long-syntax.js +0 -33
- package/generators/node_modules/@pkgjs/parseargs/examples/negate.js +0 -48
- package/generators/node_modules/@pkgjs/parseargs/examples/no-repeated-options.js +0 -38
- package/generators/node_modules/@pkgjs/parseargs/examples/simple-hard-coded.js +0 -36
- package/generators/node_modules/@pkgjs/parseargs/index.js +0 -263
- package/generators/node_modules/@pkgjs/parseargs/internal/errors.js +0 -55
- package/generators/node_modules/@pkgjs/parseargs/internal/primordials.js +0 -258
- package/generators/node_modules/@pkgjs/parseargs/internal/util.js +0 -24
- package/generators/node_modules/@pkgjs/parseargs/internal/validators.js +0 -61
- package/generators/node_modules/@pkgjs/parseargs/utils.js +0 -86
- package/generators/node_modules/ansi-regex/index.js +0 -5
- package/generators/node_modules/ansi-styles/index.js +0 -304
- package/generators/node_modules/balanced-match/index.js +0 -70
- package/generators/node_modules/brace-expansion/index.js +0 -153
- package/generators/node_modules/change-case/dist/index.js +0 -135
- package/generators/node_modules/change-case/dist/keys.js +0 -28
- package/generators/node_modules/color-convert/conversions.js +0 -840
- package/generators/node_modules/color-convert/index.js +0 -66
- package/generators/node_modules/color-convert/route.js +0 -81
- package/generators/node_modules/color-name/index.js +0 -757
- package/generators/node_modules/cross-spawn/index.js +0 -47
- package/generators/node_modules/cross-spawn/lib/enoent.js +0 -50
- package/generators/node_modules/cross-spawn/lib/parse.js +0 -91
- package/generators/node_modules/cross-spawn/lib/util/escape.js +0 -31
- package/generators/node_modules/cross-spawn/lib/util/readShebang.js +0 -37
- package/generators/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -56
- package/generators/node_modules/eastasianwidth/eastasianwidth.js +0 -66
- package/generators/node_modules/emoji-regex/RGI_Emoji.js +0 -18
- package/generators/node_modules/emoji-regex/es2015/RGI_Emoji.js +0 -16
- package/generators/node_modules/emoji-regex/es2015/index.js +0 -16
- package/generators/node_modules/emoji-regex/es2015/text.js +0 -16
- package/generators/node_modules/emoji-regex/index.js +0 -18
- package/generators/node_modules/emoji-regex/text.js +0 -18
- package/generators/node_modules/flat/cli.js +0 -31
- package/generators/node_modules/flat/index.js +0 -83
- package/generators/node_modules/foreground-child/dist/cjs/all-signals.js +0 -30
- package/generators/node_modules/foreground-child/dist/cjs/index.js +0 -156
- package/generators/node_modules/foreground-child/dist/cjs/watchdog.js +0 -63
- package/generators/node_modules/foreground-child/dist/mjs/all-signals.js +0 -3
- package/generators/node_modules/foreground-child/dist/mjs/index.js +0 -111
- package/generators/node_modules/foreground-child/dist/mjs/watchdog.js +0 -39
- package/generators/node_modules/glob/dist/commonjs/glob.js +0 -205
- package/generators/node_modules/glob/dist/commonjs/has-magic.js +0 -33
- package/generators/node_modules/glob/dist/commonjs/ignore.js +0 -87
- package/generators/node_modules/glob/dist/commonjs/index.js +0 -114
- package/generators/node_modules/glob/dist/commonjs/pattern.js +0 -154
- package/generators/node_modules/glob/dist/commonjs/processor.js +0 -214
- package/generators/node_modules/glob/dist/commonjs/walker.js +0 -271
- package/generators/node_modules/glob/dist/esm/glob.js +0 -165
- package/generators/node_modules/glob/dist/esm/has-magic.js +0 -9
- package/generators/node_modules/glob/dist/esm/ignore.js +0 -59
- package/generators/node_modules/glob/dist/esm/index.js +0 -52
- package/generators/node_modules/glob/dist/esm/pattern.js +0 -130
- package/generators/node_modules/glob/dist/esm/processor.js +0 -187
- package/generators/node_modules/glob/dist/esm/walker.js +0 -237
- package/generators/node_modules/is-fullwidth-code-point/index.js +0 -22
- package/generators/node_modules/isexe/index.js +0 -64
- package/generators/node_modules/isexe/mode.js +0 -46
- package/generators/node_modules/isexe/test/basic.js +0 -229
- package/generators/node_modules/isexe/windows.js +0 -45
- package/generators/node_modules/jackspeak/dist/commonjs/index.js +0 -683
- package/generators/node_modules/jackspeak/dist/commonjs/parse-args.js +0 -65
- package/generators/node_modules/jackspeak/dist/esm/index.js +0 -640
- package/generators/node_modules/jackspeak/dist/esm/parse-args.js +0 -127
- package/generators/node_modules/lru-cache/dist/commonjs/index.js +0 -889
- package/generators/node_modules/lru-cache/dist/esm/index.js +0 -881
- package/generators/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
- package/generators/node_modules/minimatch/dist/cjs/ast.js +0 -389
- package/generators/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -169
- package/generators/node_modules/minimatch/dist/cjs/escape.js +0 -10
- package/generators/node_modules/minimatch/dist/cjs/index.js +0 -680
- package/generators/node_modules/minimatch/dist/cjs/unescape.js +0 -10
- package/generators/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -6
- package/generators/node_modules/minimatch/dist/mjs/ast.js +0 -361
- package/generators/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -161
- package/generators/node_modules/minimatch/dist/mjs/escape.js +0 -2
- package/generators/node_modules/minimatch/dist/mjs/index.js +0 -612
- package/generators/node_modules/minimatch/dist/mjs/unescape.js +0 -2
- package/generators/node_modules/minipass/dist/commonjs/index.js +0 -623
- package/generators/node_modules/minipass/dist/esm/index.js +0 -584
- package/generators/node_modules/path-key/index.js +0 -23
- package/generators/node_modules/path-scurry/dist/cjs/index.js +0 -1161
- package/generators/node_modules/path-scurry/dist/mjs/index.js +0 -1078
- package/generators/node_modules/shebang-command/index.js +0 -28
- package/generators/node_modules/shebang-regex/index.js +0 -16
- package/generators/node_modules/signal-exit/dist/cjs/browser.js +0 -14
- package/generators/node_modules/signal-exit/dist/cjs/index.js +0 -176
- package/generators/node_modules/signal-exit/dist/cjs/signals.js +0 -14
- package/generators/node_modules/signal-exit/dist/mjs/browser.js +0 -4
- package/generators/node_modules/signal-exit/dist/mjs/index.js +0 -146
- package/generators/node_modules/signal-exit/dist/mjs/signals.js +0 -5
- package/generators/node_modules/string-width/index.js +0 -34
- package/generators/node_modules/string-width-cjs/index.js +0 -49
- package/generators/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +0 -19
- package/generators/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/index.js +0 -16
- package/generators/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/text.js +0 -16
- package/generators/node_modules/string-width-cjs/node_modules/emoji-regex/index.js +0 -18
- package/generators/node_modules/string-width-cjs/node_modules/emoji-regex/text.js +0 -18
- package/generators/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +0 -21
- package/generators/node_modules/strip-ansi/index.js +0 -7
- package/generators/node_modules/strip-ansi-cjs/index.js +0 -21
- package/generators/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +0 -19
- package/generators/node_modules/which/which.js +0 -108
- package/generators/node_modules/wrap-ansi/index.js +0 -134
- package/generators/node_modules/wrap-ansi-cjs/index.js +0 -158
- package/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +0 -19
- package/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/index.js +0 -281
- package/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/index.js +0 -16
- package/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/text.js +0 -16
- package/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.js +0 -18
- package/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/text.js +0 -18
- package/generators/node_modules/wrap-ansi-cjs/node_modules/string-width/index.js +0 -49
- package/generators/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +0 -21
- package/src/generators/node_modules/.package-lock.json +0 -458
- package/src/generators/node_modules/@isaacs/cliui/LICENSE.txt +0 -14
- package/src/generators/node_modules/@isaacs/cliui/README.md +0 -143
- package/src/generators/node_modules/@isaacs/cliui/build/index.cjs +0 -317
- package/src/generators/node_modules/@isaacs/cliui/build/index.d.cts +0 -43
- package/src/generators/node_modules/@isaacs/cliui/build/lib/index.js +0 -302
- package/src/generators/node_modules/@isaacs/cliui/index.mjs +0 -14
- package/src/generators/node_modules/@isaacs/cliui/package.json +0 -86
- package/src/generators/node_modules/@pkgjs/parseargs/.editorconfig +0 -14
- package/src/generators/node_modules/@pkgjs/parseargs/CHANGELOG.md +0 -147
- package/src/generators/node_modules/@pkgjs/parseargs/LICENSE +0 -201
- package/src/generators/node_modules/@pkgjs/parseargs/README.md +0 -413
- package/src/generators/node_modules/@pkgjs/parseargs/examples/is-default-value.js +0 -25
- package/src/generators/node_modules/@pkgjs/parseargs/examples/limit-long-syntax.js +0 -35
- package/src/generators/node_modules/@pkgjs/parseargs/examples/negate.js +0 -43
- package/src/generators/node_modules/@pkgjs/parseargs/examples/no-repeated-options.js +0 -31
- package/src/generators/node_modules/@pkgjs/parseargs/examples/ordered-options.mjs +0 -41
- package/src/generators/node_modules/@pkgjs/parseargs/examples/simple-hard-coded.js +0 -26
- package/src/generators/node_modules/@pkgjs/parseargs/index.js +0 -396
- package/src/generators/node_modules/@pkgjs/parseargs/internal/errors.js +0 -47
- package/src/generators/node_modules/@pkgjs/parseargs/internal/primordials.js +0 -393
- package/src/generators/node_modules/@pkgjs/parseargs/internal/util.js +0 -14
- package/src/generators/node_modules/@pkgjs/parseargs/internal/validators.js +0 -89
- package/src/generators/node_modules/@pkgjs/parseargs/package.json +0 -36
- package/src/generators/node_modules/@pkgjs/parseargs/utils.js +0 -198
- package/src/generators/node_modules/ansi-regex/index.d.ts +0 -33
- package/src/generators/node_modules/ansi-regex/index.js +0 -8
- package/src/generators/node_modules/ansi-regex/license +0 -9
- package/src/generators/node_modules/ansi-regex/package.json +0 -58
- package/src/generators/node_modules/ansi-regex/readme.md +0 -72
- package/src/generators/node_modules/ansi-styles/index.d.ts +0 -236
- package/src/generators/node_modules/ansi-styles/index.js +0 -223
- package/src/generators/node_modules/ansi-styles/license +0 -9
- package/src/generators/node_modules/ansi-styles/package.json +0 -54
- package/src/generators/node_modules/ansi-styles/readme.md +0 -173
- package/src/generators/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/src/generators/node_modules/balanced-match/LICENSE.md +0 -21
- package/src/generators/node_modules/balanced-match/README.md +0 -97
- package/src/generators/node_modules/balanced-match/index.js +0 -62
- package/src/generators/node_modules/balanced-match/package.json +0 -48
- package/src/generators/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
- package/src/generators/node_modules/brace-expansion/LICENSE +0 -21
- package/src/generators/node_modules/brace-expansion/README.md +0 -135
- package/src/generators/node_modules/brace-expansion/index.js +0 -203
- package/src/generators/node_modules/brace-expansion/package.json +0 -46
- package/src/generators/node_modules/change-case/README.md +0 -78
- package/src/generators/node_modules/change-case/dist/index.d.ts +0 -78
- package/src/generators/node_modules/change-case/dist/index.js +0 -206
- package/src/generators/node_modules/change-case/dist/index.js.map +0 -1
- package/src/generators/node_modules/change-case/dist/keys.d.ts +0 -11
- package/src/generators/node_modules/change-case/dist/keys.js +0 -31
- package/src/generators/node_modules/change-case/dist/keys.js.map +0 -1
- package/src/generators/node_modules/change-case/package.json +0 -56
- package/src/generators/node_modules/color-convert/CHANGELOG.md +0 -54
- package/src/generators/node_modules/color-convert/LICENSE +0 -21
- package/src/generators/node_modules/color-convert/README.md +0 -68
- package/src/generators/node_modules/color-convert/conversions.js +0 -839
- package/src/generators/node_modules/color-convert/index.js +0 -81
- package/src/generators/node_modules/color-convert/package.json +0 -48
- package/src/generators/node_modules/color-convert/route.js +0 -97
- package/src/generators/node_modules/color-name/LICENSE +0 -8
- package/src/generators/node_modules/color-name/README.md +0 -11
- package/src/generators/node_modules/color-name/index.js +0 -152
- package/src/generators/node_modules/color-name/package.json +0 -28
- package/src/generators/node_modules/cross-spawn/CHANGELOG.md +0 -130
- package/src/generators/node_modules/cross-spawn/LICENSE +0 -21
- package/src/generators/node_modules/cross-spawn/README.md +0 -96
- package/src/generators/node_modules/cross-spawn/index.js +0 -39
- package/src/generators/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/src/generators/node_modules/cross-spawn/lib/parse.js +0 -91
- package/src/generators/node_modules/cross-spawn/lib/util/escape.js +0 -45
- package/src/generators/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/src/generators/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/src/generators/node_modules/cross-spawn/package.json +0 -73
- package/src/generators/node_modules/eastasianwidth/README.md +0 -32
- package/src/generators/node_modules/eastasianwidth/eastasianwidth.js +0 -311
- package/src/generators/node_modules/eastasianwidth/package.json +0 -18
- package/src/generators/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/src/generators/node_modules/emoji-regex/README.md +0 -137
- package/src/generators/node_modules/emoji-regex/RGI_Emoji.d.ts +0 -5
- package/src/generators/node_modules/emoji-regex/RGI_Emoji.js +0 -6
- package/src/generators/node_modules/emoji-regex/es2015/RGI_Emoji.d.ts +0 -5
- package/src/generators/node_modules/emoji-regex/es2015/RGI_Emoji.js +0 -6
- package/src/generators/node_modules/emoji-regex/es2015/index.d.ts +0 -5
- package/src/generators/node_modules/emoji-regex/es2015/index.js +0 -6
- package/src/generators/node_modules/emoji-regex/es2015/text.d.ts +0 -5
- package/src/generators/node_modules/emoji-regex/es2015/text.js +0 -6
- package/src/generators/node_modules/emoji-regex/index.d.ts +0 -5
- package/src/generators/node_modules/emoji-regex/index.js +0 -6
- package/src/generators/node_modules/emoji-regex/package.json +0 -52
- package/src/generators/node_modules/emoji-regex/text.d.ts +0 -5
- package/src/generators/node_modules/emoji-regex/text.js +0 -6
- package/src/generators/node_modules/flat/LICENSE +0 -12
- package/src/generators/node_modules/flat/README.md +0 -234
- package/src/generators/node_modules/flat/cli.js +0 -40
- package/src/generators/node_modules/flat/index.d.ts +0 -17
- package/src/generators/node_modules/flat/index.js +0 -157
- package/src/generators/node_modules/flat/package.json +0 -49
- package/src/generators/node_modules/foreground-child/LICENSE +0 -15
- package/src/generators/node_modules/foreground-child/README.md +0 -90
- package/src/generators/node_modules/foreground-child/dist/cjs/all-signals.d.ts +0 -3
- package/src/generators/node_modules/foreground-child/dist/cjs/all-signals.d.ts.map +0 -1
- package/src/generators/node_modules/foreground-child/dist/cjs/all-signals.js +0 -58
- package/src/generators/node_modules/foreground-child/dist/cjs/all-signals.js.map +0 -1
- package/src/generators/node_modules/foreground-child/dist/cjs/index.d.ts +0 -54
- package/src/generators/node_modules/foreground-child/dist/cjs/index.d.ts.map +0 -1
- package/src/generators/node_modules/foreground-child/dist/cjs/index.js +0 -154
- package/src/generators/node_modules/foreground-child/dist/cjs/index.js.map +0 -1
- package/src/generators/node_modules/foreground-child/dist/cjs/package.json +0 -3
- package/src/generators/node_modules/foreground-child/dist/cjs/watchdog.d.ts +0 -4
- package/src/generators/node_modules/foreground-child/dist/cjs/watchdog.d.ts.map +0 -1
- package/src/generators/node_modules/foreground-child/dist/cjs/watchdog.js +0 -43
- package/src/generators/node_modules/foreground-child/dist/cjs/watchdog.js.map +0 -1
- package/src/generators/node_modules/foreground-child/dist/mjs/all-signals.d.ts +0 -3
- package/src/generators/node_modules/foreground-child/dist/mjs/all-signals.d.ts.map +0 -1
- package/src/generators/node_modules/foreground-child/dist/mjs/all-signals.js +0 -52
- package/src/generators/node_modules/foreground-child/dist/mjs/all-signals.js.map +0 -1
- package/src/generators/node_modules/foreground-child/dist/mjs/index.d.ts +0 -54
- package/src/generators/node_modules/foreground-child/dist/mjs/index.d.ts.map +0 -1
- package/src/generators/node_modules/foreground-child/dist/mjs/index.js +0 -146
- package/src/generators/node_modules/foreground-child/dist/mjs/index.js.map +0 -1
- package/src/generators/node_modules/foreground-child/dist/mjs/package.json +0 -3
- package/src/generators/node_modules/foreground-child/dist/mjs/watchdog.d.ts +0 -4
- package/src/generators/node_modules/foreground-child/dist/mjs/watchdog.d.ts.map +0 -1
- package/src/generators/node_modules/foreground-child/dist/mjs/watchdog.js +0 -39
- package/src/generators/node_modules/foreground-child/dist/mjs/watchdog.js.map +0 -1
- package/src/generators/node_modules/foreground-child/package.json +0 -83
- package/src/generators/node_modules/glob/LICENSE +0 -15
- package/src/generators/node_modules/glob/README.md +0 -1214
- package/src/generators/node_modules/glob/dist/commonjs/glob.d.ts +0 -344
- package/src/generators/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/glob.js +0 -243
- package/src/generators/node_modules/glob/dist/commonjs/glob.js.map +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
- package/src/generators/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/has-magic.js +0 -27
- package/src/generators/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/ignore.d.ts +0 -20
- package/src/generators/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/ignore.js +0 -108
- package/src/generators/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/index.d.ts +0 -96
- package/src/generators/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/index.js +0 -68
- package/src/generators/node_modules/glob/dist/commonjs/index.js.map +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/package.json +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/pattern.d.ts +0 -77
- package/src/generators/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/pattern.js +0 -219
- package/src/generators/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
- package/src/generators/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/processor.js +0 -302
- package/src/generators/node_modules/glob/dist/commonjs/processor.js.map +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/walker.d.ts +0 -96
- package/src/generators/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/commonjs/walker.js +0 -358
- package/src/generators/node_modules/glob/dist/commonjs/walker.js.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/bin.d.mts +0 -3
- package/src/generators/node_modules/glob/dist/esm/bin.d.mts.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/bin.mjs +0 -275
- package/src/generators/node_modules/glob/dist/esm/bin.mjs.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/glob.d.ts +0 -344
- package/src/generators/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/glob.js +0 -239
- package/src/generators/node_modules/glob/dist/esm/glob.js.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
- package/src/generators/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/has-magic.js +0 -23
- package/src/generators/node_modules/glob/dist/esm/has-magic.js.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/ignore.d.ts +0 -20
- package/src/generators/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/ignore.js +0 -104
- package/src/generators/node_modules/glob/dist/esm/ignore.js.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/index.d.ts +0 -96
- package/src/generators/node_modules/glob/dist/esm/index.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/index.js +0 -56
- package/src/generators/node_modules/glob/dist/esm/index.js.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/package.json +0 -1
- package/src/generators/node_modules/glob/dist/esm/pattern.d.ts +0 -77
- package/src/generators/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/pattern.js +0 -215
- package/src/generators/node_modules/glob/dist/esm/pattern.js.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/processor.d.ts +0 -59
- package/src/generators/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/processor.js +0 -295
- package/src/generators/node_modules/glob/dist/esm/processor.js.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/walker.d.ts +0 -96
- package/src/generators/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
- package/src/generators/node_modules/glob/dist/esm/walker.js +0 -352
- package/src/generators/node_modules/glob/dist/esm/walker.js.map +0 -1
- package/src/generators/node_modules/glob/package.json +0 -97
- package/src/generators/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/src/generators/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/src/generators/node_modules/is-fullwidth-code-point/license +0 -9
- package/src/generators/node_modules/is-fullwidth-code-point/package.json +0 -42
- package/src/generators/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/src/generators/node_modules/isexe/LICENSE +0 -15
- package/src/generators/node_modules/isexe/README.md +0 -51
- package/src/generators/node_modules/isexe/index.js +0 -57
- package/src/generators/node_modules/isexe/mode.js +0 -41
- package/src/generators/node_modules/isexe/package.json +0 -31
- package/src/generators/node_modules/isexe/test/basic.js +0 -221
- package/src/generators/node_modules/isexe/windows.js +0 -42
- package/src/generators/node_modules/jackspeak/LICENSE.md +0 -55
- package/src/generators/node_modules/jackspeak/README.md +0 -348
- package/src/generators/node_modules/jackspeak/dist/commonjs/index.d.ts +0 -292
- package/src/generators/node_modules/jackspeak/dist/commonjs/index.d.ts.map +0 -1
- package/src/generators/node_modules/jackspeak/dist/commonjs/index.js +0 -850
- package/src/generators/node_modules/jackspeak/dist/commonjs/index.js.map +0 -1
- package/src/generators/node_modules/jackspeak/dist/commonjs/package.json +0 -1
- package/src/generators/node_modules/jackspeak/dist/commonjs/parse-args-cjs.cjs.map +0 -1
- package/src/generators/node_modules/jackspeak/dist/commonjs/parse-args-cjs.d.cts.map +0 -1
- package/src/generators/node_modules/jackspeak/dist/commonjs/parse-args.d.ts +0 -4
- package/src/generators/node_modules/jackspeak/dist/commonjs/parse-args.d.ts.map +0 -1
- package/src/generators/node_modules/jackspeak/dist/commonjs/parse-args.js +0 -50
- package/src/generators/node_modules/jackspeak/dist/commonjs/parse-args.js.map +0 -1
- package/src/generators/node_modules/jackspeak/dist/esm/index.d.ts +0 -292
- package/src/generators/node_modules/jackspeak/dist/esm/index.d.ts.map +0 -1
- package/src/generators/node_modules/jackspeak/dist/esm/index.js +0 -840
- package/src/generators/node_modules/jackspeak/dist/esm/index.js.map +0 -1
- package/src/generators/node_modules/jackspeak/dist/esm/package.json +0 -1
- package/src/generators/node_modules/jackspeak/dist/esm/parse-args.d.ts +0 -4
- package/src/generators/node_modules/jackspeak/dist/esm/parse-args.d.ts.map +0 -1
- package/src/generators/node_modules/jackspeak/dist/esm/parse-args.js +0 -26
- package/src/generators/node_modules/jackspeak/dist/esm/parse-args.js.map +0 -1
- package/src/generators/node_modules/jackspeak/package.json +0 -94
- package/src/generators/node_modules/lru-cache/LICENSE +0 -15
- package/src/generators/node_modules/lru-cache/README.md +0 -1204
- package/src/generators/node_modules/lru-cache/dist/commonjs/index.d.ts +0 -851
- package/src/generators/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
- package/src/generators/node_modules/lru-cache/dist/commonjs/index.js +0 -1441
- package/src/generators/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
- package/src/generators/node_modules/lru-cache/dist/commonjs/package.json +0 -3
- package/src/generators/node_modules/lru-cache/dist/esm/index.d.ts +0 -851
- package/src/generators/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
- package/src/generators/node_modules/lru-cache/dist/esm/index.js +0 -1437
- package/src/generators/node_modules/lru-cache/dist/esm/index.js.map +0 -1
- package/src/generators/node_modules/lru-cache/dist/esm/package.json +0 -3
- package/src/generators/node_modules/lru-cache/package.json +0 -118
- package/src/generators/node_modules/minimatch/LICENSE +0 -15
- package/src/generators/node_modules/minimatch/README.md +0 -454
- package/src/generators/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
- package/src/generators/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
- package/src/generators/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
- package/src/generators/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
- package/src/generators/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
- package/src/generators/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
- package/src/generators/node_modules/minimatch/dist/cjs/ast.js +0 -589
- package/src/generators/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
- package/src/generators/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
- package/src/generators/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
- package/src/generators/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
- package/src/generators/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
- package/src/generators/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
- package/src/generators/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
- package/src/generators/node_modules/minimatch/dist/cjs/escape.js +0 -22
- package/src/generators/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
- package/src/generators/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
- package/src/generators/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
- package/src/generators/node_modules/minimatch/dist/cjs/index.js +0 -1011
- package/src/generators/node_modules/minimatch/dist/cjs/index.js.map +0 -1
- package/src/generators/node_modules/minimatch/dist/cjs/package.json +0 -3
- package/src/generators/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
- package/src/generators/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
- package/src/generators/node_modules/minimatch/dist/cjs/unescape.js +0 -24
- package/src/generators/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
- package/src/generators/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
- package/src/generators/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
- package/src/generators/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
- package/src/generators/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
- package/src/generators/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
- package/src/generators/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
- package/src/generators/node_modules/minimatch/dist/mjs/ast.js +0 -585
- package/src/generators/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
- package/src/generators/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
- package/src/generators/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
- package/src/generators/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
- package/src/generators/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
- package/src/generators/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
- package/src/generators/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
- package/src/generators/node_modules/minimatch/dist/mjs/escape.js +0 -18
- package/src/generators/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
- package/src/generators/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
- package/src/generators/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
- package/src/generators/node_modules/minimatch/dist/mjs/index.js +0 -995
- package/src/generators/node_modules/minimatch/dist/mjs/index.js.map +0 -1
- package/src/generators/node_modules/minimatch/dist/mjs/package.json +0 -3
- package/src/generators/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
- package/src/generators/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
- package/src/generators/node_modules/minimatch/dist/mjs/unescape.js +0 -20
- package/src/generators/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
- package/src/generators/node_modules/minimatch/package.json +0 -86
- package/src/generators/node_modules/minipass/LICENSE +0 -15
- package/src/generators/node_modules/minipass/README.md +0 -825
- package/src/generators/node_modules/minipass/dist/commonjs/index.d.ts +0 -549
- package/src/generators/node_modules/minipass/dist/commonjs/index.d.ts.map +0 -1
- package/src/generators/node_modules/minipass/dist/commonjs/index.js +0 -1028
- package/src/generators/node_modules/minipass/dist/commonjs/index.js.map +0 -1
- package/src/generators/node_modules/minipass/dist/commonjs/package.json +0 -1
- package/src/generators/node_modules/minipass/dist/esm/index.d.ts +0 -549
- package/src/generators/node_modules/minipass/dist/esm/index.d.ts.map +0 -1
- package/src/generators/node_modules/minipass/dist/esm/index.js +0 -1018
- package/src/generators/node_modules/minipass/dist/esm/index.js.map +0 -1
- package/src/generators/node_modules/minipass/dist/esm/package.json +0 -1
- package/src/generators/node_modules/minipass/package.json +0 -82
- package/src/generators/node_modules/path-key/index.d.ts +0 -40
- package/src/generators/node_modules/path-key/index.js +0 -16
- package/src/generators/node_modules/path-key/license +0 -9
- package/src/generators/node_modules/path-key/package.json +0 -39
- package/src/generators/node_modules/path-key/readme.md +0 -61
- package/src/generators/node_modules/path-scurry/LICENSE.md +0 -55
- package/src/generators/node_modules/path-scurry/README.md +0 -631
- package/src/generators/node_modules/path-scurry/dist/cjs/index.d.ts +0 -1107
- package/src/generators/node_modules/path-scurry/dist/cjs/index.d.ts.map +0 -1
- package/src/generators/node_modules/path-scurry/dist/cjs/index.js +0 -2018
- package/src/generators/node_modules/path-scurry/dist/cjs/index.js.map +0 -1
- package/src/generators/node_modules/path-scurry/dist/cjs/package.json +0 -3
- package/src/generators/node_modules/path-scurry/dist/mjs/index.d.ts +0 -1107
- package/src/generators/node_modules/path-scurry/dist/mjs/index.d.ts.map +0 -1
- package/src/generators/node_modules/path-scurry/dist/mjs/index.js +0 -1983
- package/src/generators/node_modules/path-scurry/dist/mjs/index.js.map +0 -1
- package/src/generators/node_modules/path-scurry/dist/mjs/package.json +0 -3
- package/src/generators/node_modules/path-scurry/package.json +0 -87
- package/src/generators/node_modules/shebang-command/index.js +0 -19
- package/src/generators/node_modules/shebang-command/license +0 -9
- package/src/generators/node_modules/shebang-command/package.json +0 -34
- package/src/generators/node_modules/shebang-command/readme.md +0 -34
- package/src/generators/node_modules/shebang-regex/index.d.ts +0 -22
- package/src/generators/node_modules/shebang-regex/index.js +0 -2
- package/src/generators/node_modules/shebang-regex/license +0 -9
- package/src/generators/node_modules/shebang-regex/package.json +0 -35
- package/src/generators/node_modules/shebang-regex/readme.md +0 -33
- package/src/generators/node_modules/signal-exit/LICENSE.txt +0 -16
- package/src/generators/node_modules/signal-exit/README.md +0 -74
- package/src/generators/node_modules/signal-exit/dist/cjs/browser.d.ts +0 -12
- package/src/generators/node_modules/signal-exit/dist/cjs/browser.d.ts.map +0 -1
- package/src/generators/node_modules/signal-exit/dist/cjs/browser.js +0 -10
- package/src/generators/node_modules/signal-exit/dist/cjs/browser.js.map +0 -1
- package/src/generators/node_modules/signal-exit/dist/cjs/index.d.ts +0 -48
- package/src/generators/node_modules/signal-exit/dist/cjs/index.d.ts.map +0 -1
- package/src/generators/node_modules/signal-exit/dist/cjs/index.js +0 -279
- package/src/generators/node_modules/signal-exit/dist/cjs/index.js.map +0 -1
- package/src/generators/node_modules/signal-exit/dist/cjs/package.json +0 -3
- package/src/generators/node_modules/signal-exit/dist/cjs/signals.d.ts +0 -29
- package/src/generators/node_modules/signal-exit/dist/cjs/signals.d.ts.map +0 -1
- package/src/generators/node_modules/signal-exit/dist/cjs/signals.js +0 -42
- package/src/generators/node_modules/signal-exit/dist/cjs/signals.js.map +0 -1
- package/src/generators/node_modules/signal-exit/dist/mjs/browser.d.ts +0 -12
- package/src/generators/node_modules/signal-exit/dist/mjs/browser.d.ts.map +0 -1
- package/src/generators/node_modules/signal-exit/dist/mjs/browser.js +0 -4
- package/src/generators/node_modules/signal-exit/dist/mjs/browser.js.map +0 -1
- package/src/generators/node_modules/signal-exit/dist/mjs/index.d.ts +0 -48
- package/src/generators/node_modules/signal-exit/dist/mjs/index.d.ts.map +0 -1
- package/src/generators/node_modules/signal-exit/dist/mjs/index.js +0 -275
- package/src/generators/node_modules/signal-exit/dist/mjs/index.js.map +0 -1
- package/src/generators/node_modules/signal-exit/dist/mjs/package.json +0 -3
- package/src/generators/node_modules/signal-exit/dist/mjs/signals.d.ts +0 -29
- package/src/generators/node_modules/signal-exit/dist/mjs/signals.d.ts.map +0 -1
- package/src/generators/node_modules/signal-exit/dist/mjs/signals.js +0 -39
- package/src/generators/node_modules/signal-exit/dist/mjs/signals.js.map +0 -1
- package/src/generators/node_modules/signal-exit/package.json +0 -106
- package/src/generators/node_modules/string-width/index.d.ts +0 -29
- package/src/generators/node_modules/string-width/index.js +0 -54
- package/src/generators/node_modules/string-width/license +0 -9
- package/src/generators/node_modules/string-width/package.json +0 -59
- package/src/generators/node_modules/string-width/readme.md +0 -67
- package/src/generators/node_modules/string-width-cjs/index.d.ts +0 -29
- package/src/generators/node_modules/string-width-cjs/index.js +0 -47
- package/src/generators/node_modules/string-width-cjs/license +0 -9
- package/src/generators/node_modules/string-width-cjs/node_modules/ansi-regex/index.d.ts +0 -37
- package/src/generators/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +0 -10
- package/src/generators/node_modules/string-width-cjs/node_modules/ansi-regex/license +0 -9
- package/src/generators/node_modules/string-width-cjs/node_modules/ansi-regex/package.json +0 -55
- package/src/generators/node_modules/string-width-cjs/node_modules/ansi-regex/readme.md +0 -78
- package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/README.md +0 -73
- package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/index.js +0 -6
- package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/text.js +0 -6
- package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/index.d.ts +0 -23
- package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/index.js +0 -6
- package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/package.json +0 -50
- package/src/generators/node_modules/string-width-cjs/node_modules/emoji-regex/text.js +0 -6
- package/src/generators/node_modules/string-width-cjs/node_modules/strip-ansi/index.d.ts +0 -17
- package/src/generators/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +0 -4
- package/src/generators/node_modules/string-width-cjs/node_modules/strip-ansi/license +0 -9
- package/src/generators/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +0 -54
- package/src/generators/node_modules/string-width-cjs/node_modules/strip-ansi/readme.md +0 -46
- package/src/generators/node_modules/string-width-cjs/package.json +0 -56
- package/src/generators/node_modules/string-width-cjs/readme.md +0 -50
- package/src/generators/node_modules/strip-ansi/index.d.ts +0 -15
- package/src/generators/node_modules/strip-ansi/index.js +0 -14
- package/src/generators/node_modules/strip-ansi/license +0 -9
- package/src/generators/node_modules/strip-ansi/package.json +0 -57
- package/src/generators/node_modules/strip-ansi/readme.md +0 -41
- package/src/generators/node_modules/strip-ansi-cjs/index.d.ts +0 -17
- package/src/generators/node_modules/strip-ansi-cjs/index.js +0 -4
- package/src/generators/node_modules/strip-ansi-cjs/license +0 -9
- package/src/generators/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.d.ts +0 -37
- package/src/generators/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +0 -10
- package/src/generators/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +0 -9
- package/src/generators/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +0 -55
- package/src/generators/node_modules/strip-ansi-cjs/node_modules/ansi-regex/readme.md +0 -78
- package/src/generators/node_modules/strip-ansi-cjs/package.json +0 -54
- package/src/generators/node_modules/strip-ansi-cjs/readme.md +0 -46
- package/src/generators/node_modules/which/CHANGELOG.md +0 -166
- package/src/generators/node_modules/which/LICENSE +0 -15
- package/src/generators/node_modules/which/README.md +0 -54
- package/src/generators/node_modules/which/bin/node-which +0 -52
- package/src/generators/node_modules/which/package.json +0 -43
- package/src/generators/node_modules/which/which.js +0 -125
- package/src/generators/node_modules/wrap-ansi/index.d.ts +0 -41
- package/src/generators/node_modules/wrap-ansi/index.js +0 -214
- package/src/generators/node_modules/wrap-ansi/license +0 -9
- package/src/generators/node_modules/wrap-ansi/package.json +0 -69
- package/src/generators/node_modules/wrap-ansi/readme.md +0 -91
- package/src/generators/node_modules/wrap-ansi-cjs/index.js +0 -216
- package/src/generators/node_modules/wrap-ansi-cjs/license +0 -9
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.d.ts +0 -37
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +0 -10
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/license +0 -9
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/package.json +0 -55
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/readme.md +0 -78
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/index.d.ts +0 -345
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/index.js +0 -163
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/license +0 -9
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/package.json +0 -56
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/readme.md +0 -152
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/README.md +0 -73
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/index.js +0 -6
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/text.js +0 -6
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.d.ts +0 -23
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.js +0 -6
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/package.json +0 -50
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/text.js +0 -6
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/string-width/index.d.ts +0 -29
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/string-width/index.js +0 -47
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/string-width/license +0 -9
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/string-width/package.json +0 -56
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/string-width/readme.md +0 -50
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.d.ts +0 -17
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +0 -4
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +0 -9
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +0 -54
- package/src/generators/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/readme.md +0 -46
- package/src/generators/node_modules/wrap-ansi-cjs/package.json +0 -62
- package/src/generators/node_modules/wrap-ansi-cjs/readme.md +0 -91
|
@@ -1,1078 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_fs__ from "fs";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_path__ from "path";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_url__ from "url";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__minipass_dist_esm_index_js_a8962f61__ from "../../../minipass/dist/esm/index.js";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE__lru_cache_dist_esm_index_js_cc3cdb4b__ from "../../../lru-cache/dist/esm/index.js";
|
|
6
|
-
import * as __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__ from "fs/promises";
|
|
7
|
-
const realpathSync = __WEBPACK_EXTERNAL_MODULE_fs__.realpathSync.native;
|
|
8
|
-
const defaultFS = {
|
|
9
|
-
lstatSync: __WEBPACK_EXTERNAL_MODULE_fs__.lstatSync,
|
|
10
|
-
readdir: __WEBPACK_EXTERNAL_MODULE_fs__.readdir,
|
|
11
|
-
readdirSync: __WEBPACK_EXTERNAL_MODULE_fs__.readdirSync,
|
|
12
|
-
readlinkSync: __WEBPACK_EXTERNAL_MODULE_fs__.readlinkSync,
|
|
13
|
-
realpathSync,
|
|
14
|
-
promises: {
|
|
15
|
-
lstat: __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__.lstat,
|
|
16
|
-
readdir: __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__.readdir,
|
|
17
|
-
readlink: __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__.readlink,
|
|
18
|
-
realpath: __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__.realpath
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
const fsFromOption = (fsOption)=>fsOption && fsOption !== defaultFS && fsOption !== __WEBPACK_EXTERNAL_MODULE_fs__ ? {
|
|
22
|
-
...defaultFS,
|
|
23
|
-
...fsOption,
|
|
24
|
-
promises: {
|
|
25
|
-
...defaultFS.promises,
|
|
26
|
-
...fsOption.promises || {}
|
|
27
|
-
}
|
|
28
|
-
} : defaultFS;
|
|
29
|
-
const uncDriveRegexp = /^\\\\\?\\([a-z]:)\\?$/i;
|
|
30
|
-
const uncToDrive = (rootPath)=>rootPath.replace(/\//g, '\\').replace(uncDriveRegexp, '$1\\');
|
|
31
|
-
const eitherSep = /[\\\/]/;
|
|
32
|
-
const UNKNOWN = 0;
|
|
33
|
-
const IFIFO = 1;
|
|
34
|
-
const IFCHR = 2;
|
|
35
|
-
const IFDIR = 4;
|
|
36
|
-
const IFBLK = 6;
|
|
37
|
-
const IFREG = 8;
|
|
38
|
-
const IFLNK = 10;
|
|
39
|
-
const IFSOCK = 12;
|
|
40
|
-
const IFMT = 15;
|
|
41
|
-
const IFMT_UNKNOWN = ~IFMT;
|
|
42
|
-
const READDIR_CALLED = 16;
|
|
43
|
-
const LSTAT_CALLED = 32;
|
|
44
|
-
const ENOTDIR = 64;
|
|
45
|
-
const ENOENT = 128;
|
|
46
|
-
const ENOREADLINK = 256;
|
|
47
|
-
const ENOREALPATH = 512;
|
|
48
|
-
const ENOCHILD = ENOTDIR | ENOENT | ENOREALPATH;
|
|
49
|
-
const TYPEMASK = 1023;
|
|
50
|
-
const entToType = (s)=>s.isFile() ? IFREG : s.isDirectory() ? IFDIR : s.isSymbolicLink() ? IFLNK : s.isCharacterDevice() ? IFCHR : s.isBlockDevice() ? IFBLK : s.isSocket() ? IFSOCK : s.isFIFO() ? IFIFO : UNKNOWN;
|
|
51
|
-
const normalizeCache = new Map();
|
|
52
|
-
const normalize = (s)=>{
|
|
53
|
-
const c = normalizeCache.get(s);
|
|
54
|
-
if (c) return c;
|
|
55
|
-
const n = s.normalize('NFKD');
|
|
56
|
-
normalizeCache.set(s, n);
|
|
57
|
-
return n;
|
|
58
|
-
};
|
|
59
|
-
const normalizeNocaseCache = new Map();
|
|
60
|
-
const normalizeNocase = (s)=>{
|
|
61
|
-
const c = normalizeNocaseCache.get(s);
|
|
62
|
-
if (c) return c;
|
|
63
|
-
const n = normalize(s.toLowerCase());
|
|
64
|
-
normalizeNocaseCache.set(s, n);
|
|
65
|
-
return n;
|
|
66
|
-
};
|
|
67
|
-
class ResolveCache extends __WEBPACK_EXTERNAL_MODULE__lru_cache_dist_esm_index_js_cc3cdb4b__.LRUCache {
|
|
68
|
-
constructor(){
|
|
69
|
-
super({
|
|
70
|
-
max: 256
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
class ChildrenCache extends __WEBPACK_EXTERNAL_MODULE__lru_cache_dist_esm_index_js_cc3cdb4b__.LRUCache {
|
|
75
|
-
constructor(maxSize = 16384){
|
|
76
|
-
super({
|
|
77
|
-
maxSize,
|
|
78
|
-
sizeCalculation: (a)=>a.length + 1
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
const setAsCwd = Symbol('PathScurry setAsCwd');
|
|
83
|
-
class PathBase {
|
|
84
|
-
name;
|
|
85
|
-
root;
|
|
86
|
-
roots;
|
|
87
|
-
parent;
|
|
88
|
-
nocase;
|
|
89
|
-
#fs;
|
|
90
|
-
#dev;
|
|
91
|
-
get dev() {
|
|
92
|
-
return this.#dev;
|
|
93
|
-
}
|
|
94
|
-
#mode;
|
|
95
|
-
get mode() {
|
|
96
|
-
return this.#mode;
|
|
97
|
-
}
|
|
98
|
-
#nlink;
|
|
99
|
-
get nlink() {
|
|
100
|
-
return this.#nlink;
|
|
101
|
-
}
|
|
102
|
-
#uid;
|
|
103
|
-
get uid() {
|
|
104
|
-
return this.#uid;
|
|
105
|
-
}
|
|
106
|
-
#gid;
|
|
107
|
-
get gid() {
|
|
108
|
-
return this.#gid;
|
|
109
|
-
}
|
|
110
|
-
#rdev;
|
|
111
|
-
get rdev() {
|
|
112
|
-
return this.#rdev;
|
|
113
|
-
}
|
|
114
|
-
#blksize;
|
|
115
|
-
get blksize() {
|
|
116
|
-
return this.#blksize;
|
|
117
|
-
}
|
|
118
|
-
#ino;
|
|
119
|
-
get ino() {
|
|
120
|
-
return this.#ino;
|
|
121
|
-
}
|
|
122
|
-
#size;
|
|
123
|
-
get size() {
|
|
124
|
-
return this.#size;
|
|
125
|
-
}
|
|
126
|
-
#blocks;
|
|
127
|
-
get blocks() {
|
|
128
|
-
return this.#blocks;
|
|
129
|
-
}
|
|
130
|
-
#atimeMs;
|
|
131
|
-
get atimeMs() {
|
|
132
|
-
return this.#atimeMs;
|
|
133
|
-
}
|
|
134
|
-
#mtimeMs;
|
|
135
|
-
get mtimeMs() {
|
|
136
|
-
return this.#mtimeMs;
|
|
137
|
-
}
|
|
138
|
-
#ctimeMs;
|
|
139
|
-
get ctimeMs() {
|
|
140
|
-
return this.#ctimeMs;
|
|
141
|
-
}
|
|
142
|
-
#birthtimeMs;
|
|
143
|
-
get birthtimeMs() {
|
|
144
|
-
return this.#birthtimeMs;
|
|
145
|
-
}
|
|
146
|
-
#atime;
|
|
147
|
-
get atime() {
|
|
148
|
-
return this.#atime;
|
|
149
|
-
}
|
|
150
|
-
#mtime;
|
|
151
|
-
get mtime() {
|
|
152
|
-
return this.#mtime;
|
|
153
|
-
}
|
|
154
|
-
#ctime;
|
|
155
|
-
get ctime() {
|
|
156
|
-
return this.#ctime;
|
|
157
|
-
}
|
|
158
|
-
#birthtime;
|
|
159
|
-
get birthtime() {
|
|
160
|
-
return this.#birthtime;
|
|
161
|
-
}
|
|
162
|
-
#matchName;
|
|
163
|
-
#depth;
|
|
164
|
-
#fullpath;
|
|
165
|
-
#fullpathPosix;
|
|
166
|
-
#relative;
|
|
167
|
-
#relativePosix;
|
|
168
|
-
#type;
|
|
169
|
-
#children;
|
|
170
|
-
#linkTarget;
|
|
171
|
-
#realpath;
|
|
172
|
-
get path() {
|
|
173
|
-
return (this.parent || this).fullpath();
|
|
174
|
-
}
|
|
175
|
-
constructor(name, type = UNKNOWN, root, roots, nocase, children, opts){
|
|
176
|
-
this.name = name;
|
|
177
|
-
this.#matchName = nocase ? normalizeNocase(name) : normalize(name);
|
|
178
|
-
this.#type = type & TYPEMASK;
|
|
179
|
-
this.nocase = nocase;
|
|
180
|
-
this.roots = roots;
|
|
181
|
-
this.root = root || this;
|
|
182
|
-
this.#children = children;
|
|
183
|
-
this.#fullpath = opts.fullpath;
|
|
184
|
-
this.#relative = opts.relative;
|
|
185
|
-
this.#relativePosix = opts.relativePosix;
|
|
186
|
-
this.parent = opts.parent;
|
|
187
|
-
if (this.parent) this.#fs = this.parent.#fs;
|
|
188
|
-
else this.#fs = fsFromOption(opts.fs);
|
|
189
|
-
}
|
|
190
|
-
depth() {
|
|
191
|
-
if (void 0 !== this.#depth) return this.#depth;
|
|
192
|
-
if (!this.parent) return this.#depth = 0;
|
|
193
|
-
return this.#depth = this.parent.depth() + 1;
|
|
194
|
-
}
|
|
195
|
-
childrenCache() {
|
|
196
|
-
return this.#children;
|
|
197
|
-
}
|
|
198
|
-
resolve(path) {
|
|
199
|
-
if (!path) return this;
|
|
200
|
-
const rootPath = this.getRootString(path);
|
|
201
|
-
const dir = path.substring(rootPath.length);
|
|
202
|
-
const dirParts = dir.split(this.splitSep);
|
|
203
|
-
const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
|
|
204
|
-
return result;
|
|
205
|
-
}
|
|
206
|
-
#resolveParts(dirParts) {
|
|
207
|
-
let p = this;
|
|
208
|
-
for (const part of dirParts)p = p.child(part);
|
|
209
|
-
return p;
|
|
210
|
-
}
|
|
211
|
-
children() {
|
|
212
|
-
const cached = this.#children.get(this);
|
|
213
|
-
if (cached) return cached;
|
|
214
|
-
const children = Object.assign([], {
|
|
215
|
-
provisional: 0
|
|
216
|
-
});
|
|
217
|
-
this.#children.set(this, children);
|
|
218
|
-
this.#type &= ~READDIR_CALLED;
|
|
219
|
-
return children;
|
|
220
|
-
}
|
|
221
|
-
child(pathPart, opts) {
|
|
222
|
-
if ('' === pathPart || '.' === pathPart) return this;
|
|
223
|
-
if ('..' === pathPart) return this.parent || this;
|
|
224
|
-
const children = this.children();
|
|
225
|
-
const name = this.nocase ? normalizeNocase(pathPart) : normalize(pathPart);
|
|
226
|
-
for (const p of children)if (p.#matchName === name) return p;
|
|
227
|
-
const s = this.parent ? this.sep : '';
|
|
228
|
-
const fullpath = this.#fullpath ? this.#fullpath + s + pathPart : void 0;
|
|
229
|
-
const pchild = this.newChild(pathPart, UNKNOWN, {
|
|
230
|
-
...opts,
|
|
231
|
-
parent: this,
|
|
232
|
-
fullpath
|
|
233
|
-
});
|
|
234
|
-
if (!this.canReaddir()) pchild.#type |= ENOENT;
|
|
235
|
-
children.push(pchild);
|
|
236
|
-
return pchild;
|
|
237
|
-
}
|
|
238
|
-
relative() {
|
|
239
|
-
if (void 0 !== this.#relative) return this.#relative;
|
|
240
|
-
const name = this.name;
|
|
241
|
-
const p = this.parent;
|
|
242
|
-
if (!p) return this.#relative = this.name;
|
|
243
|
-
const pv = p.relative();
|
|
244
|
-
return pv + (pv && p.parent ? this.sep : '') + name;
|
|
245
|
-
}
|
|
246
|
-
relativePosix() {
|
|
247
|
-
if ('/' === this.sep) return this.relative();
|
|
248
|
-
if (void 0 !== this.#relativePosix) return this.#relativePosix;
|
|
249
|
-
const name = this.name;
|
|
250
|
-
const p = this.parent;
|
|
251
|
-
if (!p) return this.#relativePosix = this.fullpathPosix();
|
|
252
|
-
const pv = p.relativePosix();
|
|
253
|
-
return pv + (pv && p.parent ? '/' : '') + name;
|
|
254
|
-
}
|
|
255
|
-
fullpath() {
|
|
256
|
-
if (void 0 !== this.#fullpath) return this.#fullpath;
|
|
257
|
-
const name = this.name;
|
|
258
|
-
const p = this.parent;
|
|
259
|
-
if (!p) return this.#fullpath = this.name;
|
|
260
|
-
const pv = p.fullpath();
|
|
261
|
-
const fp = pv + (p.parent ? this.sep : '') + name;
|
|
262
|
-
return this.#fullpath = fp;
|
|
263
|
-
}
|
|
264
|
-
fullpathPosix() {
|
|
265
|
-
if (void 0 !== this.#fullpathPosix) return this.#fullpathPosix;
|
|
266
|
-
if ('/' === this.sep) return this.#fullpathPosix = this.fullpath();
|
|
267
|
-
if (!this.parent) {
|
|
268
|
-
const p = this.fullpath().replace(/\\/g, '/');
|
|
269
|
-
if (/^[a-z]:\//i.test(p)) return this.#fullpathPosix = `//?/${p}`;
|
|
270
|
-
return this.#fullpathPosix = p;
|
|
271
|
-
}
|
|
272
|
-
const p = this.parent;
|
|
273
|
-
const pfpp = p.fullpathPosix();
|
|
274
|
-
const fpp = pfpp + (pfpp && p.parent ? '/' : '') + this.name;
|
|
275
|
-
return this.#fullpathPosix = fpp;
|
|
276
|
-
}
|
|
277
|
-
isUnknown() {
|
|
278
|
-
return (this.#type & IFMT) === UNKNOWN;
|
|
279
|
-
}
|
|
280
|
-
isType(type) {
|
|
281
|
-
return this[`is${type}`]();
|
|
282
|
-
}
|
|
283
|
-
getType() {
|
|
284
|
-
return this.isUnknown() ? 'Unknown' : this.isDirectory() ? 'Directory' : this.isFile() ? 'File' : this.isSymbolicLink() ? 'SymbolicLink' : this.isFIFO() ? 'FIFO' : this.isCharacterDevice() ? 'CharacterDevice' : this.isBlockDevice() ? 'BlockDevice' : this.isSocket() ? 'Socket' : 'Unknown';
|
|
285
|
-
}
|
|
286
|
-
isFile() {
|
|
287
|
-
return (this.#type & IFMT) === IFREG;
|
|
288
|
-
}
|
|
289
|
-
isDirectory() {
|
|
290
|
-
return (this.#type & IFMT) === IFDIR;
|
|
291
|
-
}
|
|
292
|
-
isCharacterDevice() {
|
|
293
|
-
return (this.#type & IFMT) === IFCHR;
|
|
294
|
-
}
|
|
295
|
-
isBlockDevice() {
|
|
296
|
-
return (this.#type & IFMT) === IFBLK;
|
|
297
|
-
}
|
|
298
|
-
isFIFO() {
|
|
299
|
-
return (this.#type & IFMT) === IFIFO;
|
|
300
|
-
}
|
|
301
|
-
isSocket() {
|
|
302
|
-
return (this.#type & IFMT) === IFSOCK;
|
|
303
|
-
}
|
|
304
|
-
isSymbolicLink() {
|
|
305
|
-
return (this.#type & IFLNK) === IFLNK;
|
|
306
|
-
}
|
|
307
|
-
lstatCached() {
|
|
308
|
-
return this.#type & LSTAT_CALLED ? this : void 0;
|
|
309
|
-
}
|
|
310
|
-
readlinkCached() {
|
|
311
|
-
return this.#linkTarget;
|
|
312
|
-
}
|
|
313
|
-
realpathCached() {
|
|
314
|
-
return this.#realpath;
|
|
315
|
-
}
|
|
316
|
-
readdirCached() {
|
|
317
|
-
const children = this.children();
|
|
318
|
-
return children.slice(0, children.provisional);
|
|
319
|
-
}
|
|
320
|
-
canReadlink() {
|
|
321
|
-
if (this.#linkTarget) return true;
|
|
322
|
-
if (!this.parent) return false;
|
|
323
|
-
const ifmt = this.#type & IFMT;
|
|
324
|
-
return !(ifmt !== UNKNOWN && ifmt !== IFLNK || this.#type & ENOREADLINK || this.#type & ENOENT);
|
|
325
|
-
}
|
|
326
|
-
calledReaddir() {
|
|
327
|
-
return !!(this.#type & READDIR_CALLED);
|
|
328
|
-
}
|
|
329
|
-
isENOENT() {
|
|
330
|
-
return !!(this.#type & ENOENT);
|
|
331
|
-
}
|
|
332
|
-
isNamed(n) {
|
|
333
|
-
return this.nocase ? this.#matchName === normalizeNocase(n) : this.#matchName === normalize(n);
|
|
334
|
-
}
|
|
335
|
-
async readlink() {
|
|
336
|
-
const target = this.#linkTarget;
|
|
337
|
-
if (target) return target;
|
|
338
|
-
if (!this.canReadlink()) return;
|
|
339
|
-
if (!this.parent) return;
|
|
340
|
-
try {
|
|
341
|
-
const read = await this.#fs.promises.readlink(this.fullpath());
|
|
342
|
-
const linkTarget = this.parent.resolve(read);
|
|
343
|
-
if (linkTarget) return this.#linkTarget = linkTarget;
|
|
344
|
-
} catch (er) {
|
|
345
|
-
this.#readlinkFail(er.code);
|
|
346
|
-
return;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
readlinkSync() {
|
|
350
|
-
const target = this.#linkTarget;
|
|
351
|
-
if (target) return target;
|
|
352
|
-
if (!this.canReadlink()) return;
|
|
353
|
-
if (!this.parent) return;
|
|
354
|
-
try {
|
|
355
|
-
const read = this.#fs.readlinkSync(this.fullpath());
|
|
356
|
-
const linkTarget = this.parent.resolve(read);
|
|
357
|
-
if (linkTarget) return this.#linkTarget = linkTarget;
|
|
358
|
-
} catch (er) {
|
|
359
|
-
this.#readlinkFail(er.code);
|
|
360
|
-
return;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
#readdirSuccess(children) {
|
|
364
|
-
this.#type |= READDIR_CALLED;
|
|
365
|
-
for(let p = children.provisional; p < children.length; p++)children[p].#markENOENT();
|
|
366
|
-
}
|
|
367
|
-
#markENOENT() {
|
|
368
|
-
if (this.#type & ENOENT) return;
|
|
369
|
-
this.#type = (this.#type | ENOENT) & IFMT_UNKNOWN;
|
|
370
|
-
this.#markChildrenENOENT();
|
|
371
|
-
}
|
|
372
|
-
#markChildrenENOENT() {
|
|
373
|
-
const children = this.children();
|
|
374
|
-
children.provisional = 0;
|
|
375
|
-
for (const p of children)p.#markENOENT();
|
|
376
|
-
}
|
|
377
|
-
#markENOREALPATH() {
|
|
378
|
-
this.#type |= ENOREALPATH;
|
|
379
|
-
this.#markENOTDIR();
|
|
380
|
-
}
|
|
381
|
-
#markENOTDIR() {
|
|
382
|
-
if (this.#type & ENOTDIR) return;
|
|
383
|
-
let t = this.#type;
|
|
384
|
-
if ((t & IFMT) === IFDIR) t &= IFMT_UNKNOWN;
|
|
385
|
-
this.#type = t | ENOTDIR;
|
|
386
|
-
this.#markChildrenENOENT();
|
|
387
|
-
}
|
|
388
|
-
#readdirFail(code = '') {
|
|
389
|
-
if ('ENOTDIR' === code || 'EPERM' === code) this.#markENOTDIR();
|
|
390
|
-
else if ('ENOENT' === code) this.#markENOENT();
|
|
391
|
-
else this.children().provisional = 0;
|
|
392
|
-
}
|
|
393
|
-
#lstatFail(code = '') {
|
|
394
|
-
if ('ENOTDIR' === code) {
|
|
395
|
-
const p = this.parent;
|
|
396
|
-
p.#markENOTDIR();
|
|
397
|
-
} else if ('ENOENT' === code) this.#markENOENT();
|
|
398
|
-
}
|
|
399
|
-
#readlinkFail(code = '') {
|
|
400
|
-
let ter = this.#type;
|
|
401
|
-
ter |= ENOREADLINK;
|
|
402
|
-
if ('ENOENT' === code) ter |= ENOENT;
|
|
403
|
-
if ('EINVAL' === code || 'UNKNOWN' === code) ter &= IFMT_UNKNOWN;
|
|
404
|
-
this.#type = ter;
|
|
405
|
-
if ('ENOTDIR' === code && this.parent) this.parent.#markENOTDIR();
|
|
406
|
-
}
|
|
407
|
-
#readdirAddChild(e, c) {
|
|
408
|
-
return this.#readdirMaybePromoteChild(e, c) || this.#readdirAddNewChild(e, c);
|
|
409
|
-
}
|
|
410
|
-
#readdirAddNewChild(e, c) {
|
|
411
|
-
const type = entToType(e);
|
|
412
|
-
const child = this.newChild(e.name, type, {
|
|
413
|
-
parent: this
|
|
414
|
-
});
|
|
415
|
-
const ifmt = child.#type & IFMT;
|
|
416
|
-
if (ifmt !== IFDIR && ifmt !== IFLNK && ifmt !== UNKNOWN) child.#type |= ENOTDIR;
|
|
417
|
-
c.unshift(child);
|
|
418
|
-
c.provisional++;
|
|
419
|
-
return child;
|
|
420
|
-
}
|
|
421
|
-
#readdirMaybePromoteChild(e, c) {
|
|
422
|
-
for(let p = c.provisional; p < c.length; p++){
|
|
423
|
-
const pchild = c[p];
|
|
424
|
-
const name = this.nocase ? normalizeNocase(e.name) : normalize(e.name);
|
|
425
|
-
if (name === pchild.#matchName) return this.#readdirPromoteChild(e, pchild, p, c);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
#readdirPromoteChild(e, p, index, c) {
|
|
429
|
-
const v = p.name;
|
|
430
|
-
p.#type = p.#type & IFMT_UNKNOWN | entToType(e);
|
|
431
|
-
if (v !== e.name) p.name = e.name;
|
|
432
|
-
if (index !== c.provisional) {
|
|
433
|
-
if (index === c.length - 1) c.pop();
|
|
434
|
-
else c.splice(index, 1);
|
|
435
|
-
c.unshift(p);
|
|
436
|
-
}
|
|
437
|
-
c.provisional++;
|
|
438
|
-
return p;
|
|
439
|
-
}
|
|
440
|
-
async lstat() {
|
|
441
|
-
if ((this.#type & ENOENT) === 0) try {
|
|
442
|
-
this.#applyStat(await this.#fs.promises.lstat(this.fullpath()));
|
|
443
|
-
return this;
|
|
444
|
-
} catch (er) {
|
|
445
|
-
this.#lstatFail(er.code);
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
lstatSync() {
|
|
449
|
-
if ((this.#type & ENOENT) === 0) try {
|
|
450
|
-
this.#applyStat(this.#fs.lstatSync(this.fullpath()));
|
|
451
|
-
return this;
|
|
452
|
-
} catch (er) {
|
|
453
|
-
this.#lstatFail(er.code);
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
#applyStat(st) {
|
|
457
|
-
const { atime, atimeMs, birthtime, birthtimeMs, blksize, blocks, ctime, ctimeMs, dev, gid, ino, mode, mtime, mtimeMs, nlink, rdev, size, uid } = st;
|
|
458
|
-
this.#atime = atime;
|
|
459
|
-
this.#atimeMs = atimeMs;
|
|
460
|
-
this.#birthtime = birthtime;
|
|
461
|
-
this.#birthtimeMs = birthtimeMs;
|
|
462
|
-
this.#blksize = blksize;
|
|
463
|
-
this.#blocks = blocks;
|
|
464
|
-
this.#ctime = ctime;
|
|
465
|
-
this.#ctimeMs = ctimeMs;
|
|
466
|
-
this.#dev = dev;
|
|
467
|
-
this.#gid = gid;
|
|
468
|
-
this.#ino = ino;
|
|
469
|
-
this.#mode = mode;
|
|
470
|
-
this.#mtime = mtime;
|
|
471
|
-
this.#mtimeMs = mtimeMs;
|
|
472
|
-
this.#nlink = nlink;
|
|
473
|
-
this.#rdev = rdev;
|
|
474
|
-
this.#size = size;
|
|
475
|
-
this.#uid = uid;
|
|
476
|
-
const ifmt = entToType(st);
|
|
477
|
-
this.#type = this.#type & IFMT_UNKNOWN | ifmt | LSTAT_CALLED;
|
|
478
|
-
if (ifmt !== UNKNOWN && ifmt !== IFDIR && ifmt !== IFLNK) this.#type |= ENOTDIR;
|
|
479
|
-
}
|
|
480
|
-
#onReaddirCB = [];
|
|
481
|
-
#readdirCBInFlight = false;
|
|
482
|
-
#callOnReaddirCB(children) {
|
|
483
|
-
this.#readdirCBInFlight = false;
|
|
484
|
-
const cbs = this.#onReaddirCB.slice();
|
|
485
|
-
this.#onReaddirCB.length = 0;
|
|
486
|
-
cbs.forEach((cb)=>cb(null, children));
|
|
487
|
-
}
|
|
488
|
-
readdirCB(cb, allowZalgo = false) {
|
|
489
|
-
if (!this.canReaddir()) {
|
|
490
|
-
if (allowZalgo) cb(null, []);
|
|
491
|
-
else queueMicrotask(()=>cb(null, []));
|
|
492
|
-
return;
|
|
493
|
-
}
|
|
494
|
-
const children = this.children();
|
|
495
|
-
if (this.calledReaddir()) {
|
|
496
|
-
const c = children.slice(0, children.provisional);
|
|
497
|
-
if (allowZalgo) cb(null, c);
|
|
498
|
-
else queueMicrotask(()=>cb(null, c));
|
|
499
|
-
return;
|
|
500
|
-
}
|
|
501
|
-
this.#onReaddirCB.push(cb);
|
|
502
|
-
if (this.#readdirCBInFlight) return;
|
|
503
|
-
this.#readdirCBInFlight = true;
|
|
504
|
-
const fullpath = this.fullpath();
|
|
505
|
-
this.#fs.readdir(fullpath, {
|
|
506
|
-
withFileTypes: true
|
|
507
|
-
}, (er, entries)=>{
|
|
508
|
-
if (er) {
|
|
509
|
-
this.#readdirFail(er.code);
|
|
510
|
-
children.provisional = 0;
|
|
511
|
-
} else {
|
|
512
|
-
for (const e of entries)this.#readdirAddChild(e, children);
|
|
513
|
-
this.#readdirSuccess(children);
|
|
514
|
-
}
|
|
515
|
-
this.#callOnReaddirCB(children.slice(0, children.provisional));
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
#asyncReaddirInFlight;
|
|
519
|
-
async readdir() {
|
|
520
|
-
if (!this.canReaddir()) return [];
|
|
521
|
-
const children = this.children();
|
|
522
|
-
if (this.calledReaddir()) return children.slice(0, children.provisional);
|
|
523
|
-
const fullpath = this.fullpath();
|
|
524
|
-
if (this.#asyncReaddirInFlight) await this.#asyncReaddirInFlight;
|
|
525
|
-
else {
|
|
526
|
-
let resolve = ()=>{};
|
|
527
|
-
this.#asyncReaddirInFlight = new Promise((res)=>resolve = res);
|
|
528
|
-
try {
|
|
529
|
-
for (const e of (await this.#fs.promises.readdir(fullpath, {
|
|
530
|
-
withFileTypes: true
|
|
531
|
-
})))this.#readdirAddChild(e, children);
|
|
532
|
-
this.#readdirSuccess(children);
|
|
533
|
-
} catch (er) {
|
|
534
|
-
this.#readdirFail(er.code);
|
|
535
|
-
children.provisional = 0;
|
|
536
|
-
}
|
|
537
|
-
this.#asyncReaddirInFlight = void 0;
|
|
538
|
-
resolve();
|
|
539
|
-
}
|
|
540
|
-
return children.slice(0, children.provisional);
|
|
541
|
-
}
|
|
542
|
-
readdirSync() {
|
|
543
|
-
if (!this.canReaddir()) return [];
|
|
544
|
-
const children = this.children();
|
|
545
|
-
if (this.calledReaddir()) return children.slice(0, children.provisional);
|
|
546
|
-
const fullpath = this.fullpath();
|
|
547
|
-
try {
|
|
548
|
-
for (const e of this.#fs.readdirSync(fullpath, {
|
|
549
|
-
withFileTypes: true
|
|
550
|
-
}))this.#readdirAddChild(e, children);
|
|
551
|
-
this.#readdirSuccess(children);
|
|
552
|
-
} catch (er) {
|
|
553
|
-
this.#readdirFail(er.code);
|
|
554
|
-
children.provisional = 0;
|
|
555
|
-
}
|
|
556
|
-
return children.slice(0, children.provisional);
|
|
557
|
-
}
|
|
558
|
-
canReaddir() {
|
|
559
|
-
if (this.#type & ENOCHILD) return false;
|
|
560
|
-
const ifmt = IFMT & this.#type;
|
|
561
|
-
if (!(ifmt === UNKNOWN || ifmt === IFDIR || ifmt === IFLNK)) return false;
|
|
562
|
-
return true;
|
|
563
|
-
}
|
|
564
|
-
shouldWalk(dirs, walkFilter) {
|
|
565
|
-
return (this.#type & IFDIR) === IFDIR && !(this.#type & ENOCHILD) && !dirs.has(this) && (!walkFilter || walkFilter(this));
|
|
566
|
-
}
|
|
567
|
-
async realpath() {
|
|
568
|
-
if (this.#realpath) return this.#realpath;
|
|
569
|
-
if ((ENOREALPATH | ENOREADLINK | ENOENT) & this.#type) return;
|
|
570
|
-
try {
|
|
571
|
-
const rp = await this.#fs.promises.realpath(this.fullpath());
|
|
572
|
-
return this.#realpath = this.resolve(rp);
|
|
573
|
-
} catch (_) {
|
|
574
|
-
this.#markENOREALPATH();
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
realpathSync() {
|
|
578
|
-
if (this.#realpath) return this.#realpath;
|
|
579
|
-
if ((ENOREALPATH | ENOREADLINK | ENOENT) & this.#type) return;
|
|
580
|
-
try {
|
|
581
|
-
const rp = this.#fs.realpathSync(this.fullpath());
|
|
582
|
-
return this.#realpath = this.resolve(rp);
|
|
583
|
-
} catch (_) {
|
|
584
|
-
this.#markENOREALPATH();
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
[setAsCwd](oldCwd) {
|
|
588
|
-
if (oldCwd === this) return;
|
|
589
|
-
const changed = new Set([]);
|
|
590
|
-
let rp = [];
|
|
591
|
-
let p = this;
|
|
592
|
-
while(p && p.parent){
|
|
593
|
-
changed.add(p);
|
|
594
|
-
p.#relative = rp.join(this.sep);
|
|
595
|
-
p.#relativePosix = rp.join('/');
|
|
596
|
-
p = p.parent;
|
|
597
|
-
rp.push('..');
|
|
598
|
-
}
|
|
599
|
-
p = oldCwd;
|
|
600
|
-
while(p && p.parent && !changed.has(p)){
|
|
601
|
-
p.#relative = void 0;
|
|
602
|
-
p.#relativePosix = void 0;
|
|
603
|
-
p = p.parent;
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
class PathWin32 extends PathBase {
|
|
608
|
-
sep = '\\';
|
|
609
|
-
splitSep = eitherSep;
|
|
610
|
-
constructor(name, type = UNKNOWN, root, roots, nocase, children, opts){
|
|
611
|
-
super(name, type, root, roots, nocase, children, opts);
|
|
612
|
-
}
|
|
613
|
-
newChild(name, type = UNKNOWN, opts = {}) {
|
|
614
|
-
return new PathWin32(name, type, this.root, this.roots, this.nocase, this.childrenCache(), opts);
|
|
615
|
-
}
|
|
616
|
-
getRootString(path) {
|
|
617
|
-
return __WEBPACK_EXTERNAL_MODULE_path__.win32.parse(path).root;
|
|
618
|
-
}
|
|
619
|
-
getRoot(rootPath) {
|
|
620
|
-
rootPath = uncToDrive(rootPath.toUpperCase());
|
|
621
|
-
if (rootPath === this.root.name) return this.root;
|
|
622
|
-
for (const [compare, root] of Object.entries(this.roots))if (this.sameRoot(rootPath, compare)) return this.roots[rootPath] = root;
|
|
623
|
-
return this.roots[rootPath] = new PathScurryWin32(rootPath, this).root;
|
|
624
|
-
}
|
|
625
|
-
sameRoot(rootPath, compare = this.root.name) {
|
|
626
|
-
rootPath = rootPath.toUpperCase().replace(/\//g, '\\').replace(uncDriveRegexp, '$1\\');
|
|
627
|
-
return rootPath === compare;
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
class PathPosix extends PathBase {
|
|
631
|
-
splitSep = '/';
|
|
632
|
-
sep = '/';
|
|
633
|
-
constructor(name, type = UNKNOWN, root, roots, nocase, children, opts){
|
|
634
|
-
super(name, type, root, roots, nocase, children, opts);
|
|
635
|
-
}
|
|
636
|
-
getRootString(path) {
|
|
637
|
-
return path.startsWith('/') ? '/' : '';
|
|
638
|
-
}
|
|
639
|
-
getRoot(_rootPath) {
|
|
640
|
-
return this.root;
|
|
641
|
-
}
|
|
642
|
-
newChild(name, type = UNKNOWN, opts = {}) {
|
|
643
|
-
return new PathPosix(name, type, this.root, this.roots, this.nocase, this.childrenCache(), opts);
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
class PathScurryBase {
|
|
647
|
-
root;
|
|
648
|
-
rootPath;
|
|
649
|
-
roots;
|
|
650
|
-
cwd;
|
|
651
|
-
#resolveCache;
|
|
652
|
-
#resolvePosixCache;
|
|
653
|
-
#children;
|
|
654
|
-
nocase;
|
|
655
|
-
#fs;
|
|
656
|
-
constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16384, fs = defaultFS } = {}){
|
|
657
|
-
this.#fs = fsFromOption(fs);
|
|
658
|
-
if (cwd instanceof URL || cwd.startsWith('file://')) cwd = (0, __WEBPACK_EXTERNAL_MODULE_url__.fileURLToPath)(cwd);
|
|
659
|
-
const cwdPath = pathImpl.resolve(cwd);
|
|
660
|
-
this.roots = Object.create(null);
|
|
661
|
-
this.rootPath = this.parseRootPath(cwdPath);
|
|
662
|
-
this.#resolveCache = new ResolveCache();
|
|
663
|
-
this.#resolvePosixCache = new ResolveCache();
|
|
664
|
-
this.#children = new ChildrenCache(childrenCacheSize);
|
|
665
|
-
const split = cwdPath.substring(this.rootPath.length).split(sep);
|
|
666
|
-
if (1 === split.length && !split[0]) split.pop();
|
|
667
|
-
if (void 0 === nocase) throw new TypeError('must provide nocase setting to PathScurryBase ctor');
|
|
668
|
-
this.nocase = nocase;
|
|
669
|
-
this.root = this.newRoot(this.#fs);
|
|
670
|
-
this.roots[this.rootPath] = this.root;
|
|
671
|
-
let prev = this.root;
|
|
672
|
-
let len = split.length - 1;
|
|
673
|
-
const joinSep = pathImpl.sep;
|
|
674
|
-
let abs = this.rootPath;
|
|
675
|
-
let sawFirst = false;
|
|
676
|
-
for (const part of split){
|
|
677
|
-
const l = len--;
|
|
678
|
-
prev = prev.child(part, {
|
|
679
|
-
relative: new Array(l).fill('..').join(joinSep),
|
|
680
|
-
relativePosix: new Array(l).fill('..').join('/'),
|
|
681
|
-
fullpath: abs += (sawFirst ? '' : joinSep) + part
|
|
682
|
-
});
|
|
683
|
-
sawFirst = true;
|
|
684
|
-
}
|
|
685
|
-
this.cwd = prev;
|
|
686
|
-
}
|
|
687
|
-
depth(path = this.cwd) {
|
|
688
|
-
if ('string' == typeof path) path = this.cwd.resolve(path);
|
|
689
|
-
return path.depth();
|
|
690
|
-
}
|
|
691
|
-
childrenCache() {
|
|
692
|
-
return this.#children;
|
|
693
|
-
}
|
|
694
|
-
resolve(...paths) {
|
|
695
|
-
let r = '';
|
|
696
|
-
for(let i = paths.length - 1; i >= 0; i--){
|
|
697
|
-
const p = paths[i];
|
|
698
|
-
if (p && '.' !== p) {
|
|
699
|
-
r = r ? `${p}/${r}` : p;
|
|
700
|
-
if (this.isAbsolute(p)) break;
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
const cached = this.#resolveCache.get(r);
|
|
704
|
-
if (void 0 !== cached) return cached;
|
|
705
|
-
const result = this.cwd.resolve(r).fullpath();
|
|
706
|
-
this.#resolveCache.set(r, result);
|
|
707
|
-
return result;
|
|
708
|
-
}
|
|
709
|
-
resolvePosix(...paths) {
|
|
710
|
-
let r = '';
|
|
711
|
-
for(let i = paths.length - 1; i >= 0; i--){
|
|
712
|
-
const p = paths[i];
|
|
713
|
-
if (p && '.' !== p) {
|
|
714
|
-
r = r ? `${p}/${r}` : p;
|
|
715
|
-
if (this.isAbsolute(p)) break;
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
const cached = this.#resolvePosixCache.get(r);
|
|
719
|
-
if (void 0 !== cached) return cached;
|
|
720
|
-
const result = this.cwd.resolve(r).fullpathPosix();
|
|
721
|
-
this.#resolvePosixCache.set(r, result);
|
|
722
|
-
return result;
|
|
723
|
-
}
|
|
724
|
-
relative(entry = this.cwd) {
|
|
725
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
726
|
-
return entry.relative();
|
|
727
|
-
}
|
|
728
|
-
relativePosix(entry = this.cwd) {
|
|
729
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
730
|
-
return entry.relativePosix();
|
|
731
|
-
}
|
|
732
|
-
basename(entry = this.cwd) {
|
|
733
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
734
|
-
return entry.name;
|
|
735
|
-
}
|
|
736
|
-
dirname(entry = this.cwd) {
|
|
737
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
738
|
-
return (entry.parent || entry).fullpath();
|
|
739
|
-
}
|
|
740
|
-
async readdir(entry = this.cwd, opts = {
|
|
741
|
-
withFileTypes: true
|
|
742
|
-
}) {
|
|
743
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
744
|
-
else if (!(entry instanceof PathBase)) {
|
|
745
|
-
opts = entry;
|
|
746
|
-
entry = this.cwd;
|
|
747
|
-
}
|
|
748
|
-
const { withFileTypes } = opts;
|
|
749
|
-
if (!entry.canReaddir()) return [];
|
|
750
|
-
{
|
|
751
|
-
const p = await entry.readdir();
|
|
752
|
-
return withFileTypes ? p : p.map((e)=>e.name);
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
readdirSync(entry = this.cwd, opts = {
|
|
756
|
-
withFileTypes: true
|
|
757
|
-
}) {
|
|
758
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
759
|
-
else if (!(entry instanceof PathBase)) {
|
|
760
|
-
opts = entry;
|
|
761
|
-
entry = this.cwd;
|
|
762
|
-
}
|
|
763
|
-
const { withFileTypes = true } = opts;
|
|
764
|
-
if (!entry.canReaddir()) return [];
|
|
765
|
-
if (withFileTypes) return entry.readdirSync();
|
|
766
|
-
return entry.readdirSync().map((e)=>e.name);
|
|
767
|
-
}
|
|
768
|
-
async lstat(entry = this.cwd) {
|
|
769
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
770
|
-
return entry.lstat();
|
|
771
|
-
}
|
|
772
|
-
lstatSync(entry = this.cwd) {
|
|
773
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
774
|
-
return entry.lstatSync();
|
|
775
|
-
}
|
|
776
|
-
async readlink(entry = this.cwd, { withFileTypes } = {
|
|
777
|
-
withFileTypes: false
|
|
778
|
-
}) {
|
|
779
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
780
|
-
else if (!(entry instanceof PathBase)) {
|
|
781
|
-
withFileTypes = entry.withFileTypes;
|
|
782
|
-
entry = this.cwd;
|
|
783
|
-
}
|
|
784
|
-
const e = await entry.readlink();
|
|
785
|
-
return withFileTypes ? e : e?.fullpath();
|
|
786
|
-
}
|
|
787
|
-
readlinkSync(entry = this.cwd, { withFileTypes } = {
|
|
788
|
-
withFileTypes: false
|
|
789
|
-
}) {
|
|
790
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
791
|
-
else if (!(entry instanceof PathBase)) {
|
|
792
|
-
withFileTypes = entry.withFileTypes;
|
|
793
|
-
entry = this.cwd;
|
|
794
|
-
}
|
|
795
|
-
const e = entry.readlinkSync();
|
|
796
|
-
return withFileTypes ? e : e?.fullpath();
|
|
797
|
-
}
|
|
798
|
-
async realpath(entry = this.cwd, { withFileTypes } = {
|
|
799
|
-
withFileTypes: false
|
|
800
|
-
}) {
|
|
801
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
802
|
-
else if (!(entry instanceof PathBase)) {
|
|
803
|
-
withFileTypes = entry.withFileTypes;
|
|
804
|
-
entry = this.cwd;
|
|
805
|
-
}
|
|
806
|
-
const e = await entry.realpath();
|
|
807
|
-
return withFileTypes ? e : e?.fullpath();
|
|
808
|
-
}
|
|
809
|
-
realpathSync(entry = this.cwd, { withFileTypes } = {
|
|
810
|
-
withFileTypes: false
|
|
811
|
-
}) {
|
|
812
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
813
|
-
else if (!(entry instanceof PathBase)) {
|
|
814
|
-
withFileTypes = entry.withFileTypes;
|
|
815
|
-
entry = this.cwd;
|
|
816
|
-
}
|
|
817
|
-
const e = entry.realpathSync();
|
|
818
|
-
return withFileTypes ? e : e?.fullpath();
|
|
819
|
-
}
|
|
820
|
-
async walk(entry = this.cwd, opts = {}) {
|
|
821
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
822
|
-
else if (!(entry instanceof PathBase)) {
|
|
823
|
-
opts = entry;
|
|
824
|
-
entry = this.cwd;
|
|
825
|
-
}
|
|
826
|
-
const { withFileTypes = true, follow = false, filter, walkFilter } = opts;
|
|
827
|
-
const results = [];
|
|
828
|
-
if (!filter || filter(entry)) results.push(withFileTypes ? entry : entry.fullpath());
|
|
829
|
-
const dirs = new Set();
|
|
830
|
-
const walk = (dir, cb)=>{
|
|
831
|
-
dirs.add(dir);
|
|
832
|
-
dir.readdirCB((er, entries)=>{
|
|
833
|
-
if (er) return cb(er);
|
|
834
|
-
let len = entries.length;
|
|
835
|
-
if (!len) return cb();
|
|
836
|
-
const next = ()=>{
|
|
837
|
-
if (0 === --len) cb();
|
|
838
|
-
};
|
|
839
|
-
for (const e of entries){
|
|
840
|
-
if (!filter || filter(e)) results.push(withFileTypes ? e : e.fullpath());
|
|
841
|
-
if (follow && e.isSymbolicLink()) e.realpath().then((r)=>r?.isUnknown() ? r.lstat() : r).then((r)=>r?.shouldWalk(dirs, walkFilter) ? walk(r, next) : next());
|
|
842
|
-
else if (e.shouldWalk(dirs, walkFilter)) walk(e, next);
|
|
843
|
-
else next();
|
|
844
|
-
}
|
|
845
|
-
}, true);
|
|
846
|
-
};
|
|
847
|
-
const start = entry;
|
|
848
|
-
return new Promise((res, rej)=>{
|
|
849
|
-
walk(start, (er)=>{
|
|
850
|
-
if (er) return rej(er);
|
|
851
|
-
res(results);
|
|
852
|
-
});
|
|
853
|
-
});
|
|
854
|
-
}
|
|
855
|
-
walkSync(entry = this.cwd, opts = {}) {
|
|
856
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
857
|
-
else if (!(entry instanceof PathBase)) {
|
|
858
|
-
opts = entry;
|
|
859
|
-
entry = this.cwd;
|
|
860
|
-
}
|
|
861
|
-
const { withFileTypes = true, follow = false, filter, walkFilter } = opts;
|
|
862
|
-
const results = [];
|
|
863
|
-
if (!filter || filter(entry)) results.push(withFileTypes ? entry : entry.fullpath());
|
|
864
|
-
const dirs = new Set([
|
|
865
|
-
entry
|
|
866
|
-
]);
|
|
867
|
-
for (const dir of dirs){
|
|
868
|
-
const entries = dir.readdirSync();
|
|
869
|
-
for (const e of entries){
|
|
870
|
-
if (!filter || filter(e)) results.push(withFileTypes ? e : e.fullpath());
|
|
871
|
-
let r = e;
|
|
872
|
-
if (e.isSymbolicLink()) {
|
|
873
|
-
if (!(follow && (r = e.realpathSync()))) continue;
|
|
874
|
-
if (r.isUnknown()) r.lstatSync();
|
|
875
|
-
}
|
|
876
|
-
if (r.shouldWalk(dirs, walkFilter)) dirs.add(r);
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
return results;
|
|
880
|
-
}
|
|
881
|
-
[Symbol.asyncIterator]() {
|
|
882
|
-
return this.iterate();
|
|
883
|
-
}
|
|
884
|
-
iterate(entry = this.cwd, options = {}) {
|
|
885
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
886
|
-
else if (!(entry instanceof PathBase)) {
|
|
887
|
-
options = entry;
|
|
888
|
-
entry = this.cwd;
|
|
889
|
-
}
|
|
890
|
-
return this.stream(entry, options)[Symbol.asyncIterator]();
|
|
891
|
-
}
|
|
892
|
-
[Symbol.iterator]() {
|
|
893
|
-
return this.iterateSync();
|
|
894
|
-
}
|
|
895
|
-
*iterateSync(entry = this.cwd, opts = {}) {
|
|
896
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
897
|
-
else if (!(entry instanceof PathBase)) {
|
|
898
|
-
opts = entry;
|
|
899
|
-
entry = this.cwd;
|
|
900
|
-
}
|
|
901
|
-
const { withFileTypes = true, follow = false, filter, walkFilter } = opts;
|
|
902
|
-
if (!filter || filter(entry)) yield withFileTypes ? entry : entry.fullpath();
|
|
903
|
-
const dirs = new Set([
|
|
904
|
-
entry
|
|
905
|
-
]);
|
|
906
|
-
for (const dir of dirs){
|
|
907
|
-
const entries = dir.readdirSync();
|
|
908
|
-
for (const e of entries){
|
|
909
|
-
if (!filter || filter(e)) yield withFileTypes ? e : e.fullpath();
|
|
910
|
-
let r = e;
|
|
911
|
-
if (e.isSymbolicLink()) {
|
|
912
|
-
if (!(follow && (r = e.realpathSync()))) continue;
|
|
913
|
-
if (r.isUnknown()) r.lstatSync();
|
|
914
|
-
}
|
|
915
|
-
if (r.shouldWalk(dirs, walkFilter)) dirs.add(r);
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
stream(entry = this.cwd, opts = {}) {
|
|
920
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
921
|
-
else if (!(entry instanceof PathBase)) {
|
|
922
|
-
opts = entry;
|
|
923
|
-
entry = this.cwd;
|
|
924
|
-
}
|
|
925
|
-
const { withFileTypes = true, follow = false, filter, walkFilter } = opts;
|
|
926
|
-
const results = new __WEBPACK_EXTERNAL_MODULE__minipass_dist_esm_index_js_a8962f61__.Minipass({
|
|
927
|
-
objectMode: true
|
|
928
|
-
});
|
|
929
|
-
if (!filter || filter(entry)) results.write(withFileTypes ? entry : entry.fullpath());
|
|
930
|
-
const dirs = new Set();
|
|
931
|
-
const queue = [
|
|
932
|
-
entry
|
|
933
|
-
];
|
|
934
|
-
let processing = 0;
|
|
935
|
-
const process1 = ()=>{
|
|
936
|
-
let paused = false;
|
|
937
|
-
while(!paused){
|
|
938
|
-
const dir = queue.shift();
|
|
939
|
-
if (!dir) {
|
|
940
|
-
if (0 === processing) results.end();
|
|
941
|
-
return;
|
|
942
|
-
}
|
|
943
|
-
processing++;
|
|
944
|
-
dirs.add(dir);
|
|
945
|
-
const onReaddir = (er, entries, didRealpaths = false)=>{
|
|
946
|
-
if (er) return results.emit('error', er);
|
|
947
|
-
if (follow && !didRealpaths) {
|
|
948
|
-
const promises = [];
|
|
949
|
-
for (const e of entries)if (e.isSymbolicLink()) promises.push(e.realpath().then((r)=>r?.isUnknown() ? r.lstat() : r));
|
|
950
|
-
if (promises.length) return void Promise.all(promises).then(()=>onReaddir(null, entries, true));
|
|
951
|
-
}
|
|
952
|
-
for (const e of entries)if (e && (!filter || filter(e))) {
|
|
953
|
-
if (!results.write(withFileTypes ? e : e.fullpath())) paused = true;
|
|
954
|
-
}
|
|
955
|
-
processing--;
|
|
956
|
-
for (const e of entries){
|
|
957
|
-
const r = e.realpathCached() || e;
|
|
958
|
-
if (r.shouldWalk(dirs, walkFilter)) queue.push(r);
|
|
959
|
-
}
|
|
960
|
-
if (paused && !results.flowing) results.once('drain', process1);
|
|
961
|
-
else if (!sync) process1();
|
|
962
|
-
};
|
|
963
|
-
let sync = true;
|
|
964
|
-
dir.readdirCB(onReaddir, true);
|
|
965
|
-
sync = false;
|
|
966
|
-
}
|
|
967
|
-
};
|
|
968
|
-
process1();
|
|
969
|
-
return results;
|
|
970
|
-
}
|
|
971
|
-
streamSync(entry = this.cwd, opts = {}) {
|
|
972
|
-
if ('string' == typeof entry) entry = this.cwd.resolve(entry);
|
|
973
|
-
else if (!(entry instanceof PathBase)) {
|
|
974
|
-
opts = entry;
|
|
975
|
-
entry = this.cwd;
|
|
976
|
-
}
|
|
977
|
-
const { withFileTypes = true, follow = false, filter, walkFilter } = opts;
|
|
978
|
-
const results = new __WEBPACK_EXTERNAL_MODULE__minipass_dist_esm_index_js_a8962f61__.Minipass({
|
|
979
|
-
objectMode: true
|
|
980
|
-
});
|
|
981
|
-
const dirs = new Set();
|
|
982
|
-
if (!filter || filter(entry)) results.write(withFileTypes ? entry : entry.fullpath());
|
|
983
|
-
const queue = [
|
|
984
|
-
entry
|
|
985
|
-
];
|
|
986
|
-
let processing = 0;
|
|
987
|
-
const process1 = ()=>{
|
|
988
|
-
let paused = false;
|
|
989
|
-
while(!paused){
|
|
990
|
-
const dir = queue.shift();
|
|
991
|
-
if (!dir) {
|
|
992
|
-
if (0 === processing) results.end();
|
|
993
|
-
return;
|
|
994
|
-
}
|
|
995
|
-
processing++;
|
|
996
|
-
dirs.add(dir);
|
|
997
|
-
const entries = dir.readdirSync();
|
|
998
|
-
for (const e of entries)if (!filter || filter(e)) {
|
|
999
|
-
if (!results.write(withFileTypes ? e : e.fullpath())) paused = true;
|
|
1000
|
-
}
|
|
1001
|
-
processing--;
|
|
1002
|
-
for (const e of entries){
|
|
1003
|
-
let r = e;
|
|
1004
|
-
if (e.isSymbolicLink()) {
|
|
1005
|
-
if (!(follow && (r = e.realpathSync()))) continue;
|
|
1006
|
-
if (r.isUnknown()) r.lstatSync();
|
|
1007
|
-
}
|
|
1008
|
-
if (r.shouldWalk(dirs, walkFilter)) queue.push(r);
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
if (paused && !results.flowing) results.once('drain', process1);
|
|
1012
|
-
};
|
|
1013
|
-
process1();
|
|
1014
|
-
return results;
|
|
1015
|
-
}
|
|
1016
|
-
chdir(path = this.cwd) {
|
|
1017
|
-
const oldCwd = this.cwd;
|
|
1018
|
-
this.cwd = 'string' == typeof path ? this.cwd.resolve(path) : path;
|
|
1019
|
-
this.cwd[setAsCwd](oldCwd);
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
class PathScurryWin32 extends PathScurryBase {
|
|
1023
|
-
sep = '\\';
|
|
1024
|
-
constructor(cwd = process.cwd(), opts = {}){
|
|
1025
|
-
const { nocase = true } = opts;
|
|
1026
|
-
super(cwd, __WEBPACK_EXTERNAL_MODULE_path__.win32, '\\', {
|
|
1027
|
-
...opts,
|
|
1028
|
-
nocase
|
|
1029
|
-
});
|
|
1030
|
-
this.nocase = nocase;
|
|
1031
|
-
for(let p = this.cwd; p; p = p.parent)p.nocase = this.nocase;
|
|
1032
|
-
}
|
|
1033
|
-
parseRootPath(dir) {
|
|
1034
|
-
return __WEBPACK_EXTERNAL_MODULE_path__.win32.parse(dir).root.toUpperCase();
|
|
1035
|
-
}
|
|
1036
|
-
newRoot(fs) {
|
|
1037
|
-
return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), {
|
|
1038
|
-
fs
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
isAbsolute(p) {
|
|
1042
|
-
return p.startsWith('/') || p.startsWith('\\') || /^[a-z]:(\/|\\)/i.test(p);
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
class PathScurryPosix extends PathScurryBase {
|
|
1046
|
-
sep = '/';
|
|
1047
|
-
constructor(cwd = process.cwd(), opts = {}){
|
|
1048
|
-
const { nocase = false } = opts;
|
|
1049
|
-
super(cwd, __WEBPACK_EXTERNAL_MODULE_path__.posix, '/', {
|
|
1050
|
-
...opts,
|
|
1051
|
-
nocase
|
|
1052
|
-
});
|
|
1053
|
-
this.nocase = nocase;
|
|
1054
|
-
}
|
|
1055
|
-
parseRootPath(_dir) {
|
|
1056
|
-
return '/';
|
|
1057
|
-
}
|
|
1058
|
-
newRoot(fs) {
|
|
1059
|
-
return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), {
|
|
1060
|
-
fs
|
|
1061
|
-
});
|
|
1062
|
-
}
|
|
1063
|
-
isAbsolute(p) {
|
|
1064
|
-
return p.startsWith('/');
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
class PathScurryDarwin extends PathScurryPosix {
|
|
1068
|
-
constructor(cwd = process.cwd(), opts = {}){
|
|
1069
|
-
const { nocase = true } = opts;
|
|
1070
|
-
super(cwd, {
|
|
1071
|
-
...opts,
|
|
1072
|
-
nocase
|
|
1073
|
-
});
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
const Path = 'win32' === process.platform ? PathWin32 : PathPosix;
|
|
1077
|
-
const PathScurry = 'win32' === process.platform ? PathScurryWin32 : 'darwin' === process.platform ? PathScurryDarwin : PathScurryPosix;
|
|
1078
|
-
export { ChildrenCache, Path, PathBase, PathPosix, PathScurry, PathScurryBase, PathScurryDarwin, PathScurryPosix, PathScurryWin32, PathWin32, ResolveCache };
|