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