@uides/stepwise 2.0.0-rc.32 → 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,96 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/**
|
|
3
|
+
* Single-use utility classes to provide functionality to the {@link Glob}
|
|
4
|
+
* methods.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import { Minipass } from 'minipass';
|
|
9
|
+
import { Path } from 'path-scurry';
|
|
10
|
+
import { IgnoreLike } from './ignore.js';
|
|
11
|
+
import { Pattern } from './pattern.js';
|
|
12
|
+
import { Processor } from './processor.js';
|
|
13
|
+
export interface GlobWalkerOpts {
|
|
14
|
+
absolute?: boolean;
|
|
15
|
+
allowWindowsEscape?: boolean;
|
|
16
|
+
cwd?: string | URL;
|
|
17
|
+
dot?: boolean;
|
|
18
|
+
dotRelative?: boolean;
|
|
19
|
+
follow?: boolean;
|
|
20
|
+
ignore?: string | string[] | IgnoreLike;
|
|
21
|
+
mark?: boolean;
|
|
22
|
+
matchBase?: boolean;
|
|
23
|
+
maxDepth?: number;
|
|
24
|
+
nobrace?: boolean;
|
|
25
|
+
nocase?: boolean;
|
|
26
|
+
nodir?: boolean;
|
|
27
|
+
noext?: boolean;
|
|
28
|
+
noglobstar?: boolean;
|
|
29
|
+
platform?: NodeJS.Platform;
|
|
30
|
+
posix?: boolean;
|
|
31
|
+
realpath?: boolean;
|
|
32
|
+
root?: string;
|
|
33
|
+
stat?: boolean;
|
|
34
|
+
signal?: AbortSignal;
|
|
35
|
+
windowsPathsNoEscape?: boolean;
|
|
36
|
+
withFileTypes?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export type GWOFileTypesTrue = GlobWalkerOpts & {
|
|
39
|
+
withFileTypes: true;
|
|
40
|
+
};
|
|
41
|
+
export type GWOFileTypesFalse = GlobWalkerOpts & {
|
|
42
|
+
withFileTypes: false;
|
|
43
|
+
};
|
|
44
|
+
export type GWOFileTypesUnset = GlobWalkerOpts & {
|
|
45
|
+
withFileTypes?: undefined;
|
|
46
|
+
};
|
|
47
|
+
export type Result<O extends GlobWalkerOpts> = O extends GWOFileTypesTrue ? Path : O extends GWOFileTypesFalse ? string : O extends GWOFileTypesUnset ? string : Path | string;
|
|
48
|
+
export type Matches<O extends GlobWalkerOpts> = O extends GWOFileTypesTrue ? Set<Path> : O extends GWOFileTypesFalse ? Set<string> : O extends GWOFileTypesUnset ? Set<string> : Set<Path | string>;
|
|
49
|
+
export type MatchStream<O extends GlobWalkerOpts> = O extends GWOFileTypesTrue ? Minipass<Path, Path> : O extends GWOFileTypesFalse ? Minipass<string, string> : O extends GWOFileTypesUnset ? Minipass<string, string> : Minipass<Path | string, Path | string>;
|
|
50
|
+
/**
|
|
51
|
+
* basic walking utilities that all the glob walker types use
|
|
52
|
+
*/
|
|
53
|
+
export declare abstract class GlobUtil<O extends GlobWalkerOpts = GlobWalkerOpts> {
|
|
54
|
+
#private;
|
|
55
|
+
path: Path;
|
|
56
|
+
patterns: Pattern[];
|
|
57
|
+
opts: O;
|
|
58
|
+
seen: Set<Path>;
|
|
59
|
+
paused: boolean;
|
|
60
|
+
aborted: boolean;
|
|
61
|
+
signal?: AbortSignal;
|
|
62
|
+
maxDepth: number;
|
|
63
|
+
constructor(patterns: Pattern[], path: Path, opts: O);
|
|
64
|
+
pause(): void;
|
|
65
|
+
resume(): void;
|
|
66
|
+
onResume(fn: () => any): void;
|
|
67
|
+
matchCheck(e: Path, ifDir: boolean): Promise<Path | undefined>;
|
|
68
|
+
matchCheckTest(e: Path | undefined, ifDir: boolean): Path | undefined;
|
|
69
|
+
matchCheckSync(e: Path, ifDir: boolean): Path | undefined;
|
|
70
|
+
abstract matchEmit(p: Result<O>): void;
|
|
71
|
+
abstract matchEmit(p: string | Path): void;
|
|
72
|
+
matchFinish(e: Path, absolute: boolean): void;
|
|
73
|
+
match(e: Path, absolute: boolean, ifDir: boolean): Promise<void>;
|
|
74
|
+
matchSync(e: Path, absolute: boolean, ifDir: boolean): void;
|
|
75
|
+
walkCB(target: Path, patterns: Pattern[], cb: () => any): void;
|
|
76
|
+
walkCB2(target: Path, patterns: Pattern[], processor: Processor, cb: () => any): any;
|
|
77
|
+
walkCB3(target: Path, entries: Path[], processor: Processor, cb: () => any): void;
|
|
78
|
+
walkCBSync(target: Path, patterns: Pattern[], cb: () => any): void;
|
|
79
|
+
walkCB2Sync(target: Path, patterns: Pattern[], processor: Processor, cb: () => any): any;
|
|
80
|
+
walkCB3Sync(target: Path, entries: Path[], processor: Processor, cb: () => any): void;
|
|
81
|
+
}
|
|
82
|
+
export declare class GlobWalker<O extends GlobWalkerOpts = GlobWalkerOpts> extends GlobUtil<O> {
|
|
83
|
+
matches: O extends GWOFileTypesTrue ? Set<Path> : O extends GWOFileTypesFalse ? Set<string> : O extends GWOFileTypesUnset ? Set<string> : Set<Path | string>;
|
|
84
|
+
constructor(patterns: Pattern[], path: Path, opts: O);
|
|
85
|
+
matchEmit(e: Result<O>): void;
|
|
86
|
+
walk(): Promise<Matches<O>>;
|
|
87
|
+
walkSync(): Matches<O>;
|
|
88
|
+
}
|
|
89
|
+
export declare class GlobStream<O extends GlobWalkerOpts = GlobWalkerOpts> extends GlobUtil<O> {
|
|
90
|
+
results: O extends GWOFileTypesTrue ? Minipass<Path, Path> : O extends GWOFileTypesFalse ? Minipass<string, string> : O extends GWOFileTypesUnset ? Minipass<string, string> : Minipass<Path | string, Path | string>;
|
|
91
|
+
constructor(patterns: Pattern[], path: Path, opts: O);
|
|
92
|
+
matchEmit(e: Result<O>): void;
|
|
93
|
+
stream(): MatchStream<O>;
|
|
94
|
+
streamSync(): MatchStream<O>;
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=walker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walker.d.ts","sourceRoot":"","sources":["../../src/walker.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAU,UAAU,EAAE,MAAM,aAAa,CAAA;AAOhD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,GAAG,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;IAClB,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU,CAAA;IACvC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IAGnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KA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EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAKpD,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI;IAKvB,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAiBjC,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC;CAWvB;AAED,qBAAa,UAAU,CACrB,CAAC,SAAS,cAAc,GAAG,cAAc,CACzC,SAAQ,QAAQ,CAAC,CAAC,CAAC;IACnB,OAAO,EAAE,CAAC,SAAS,gBAAgB,GAC/B,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,GACpB,CAAC,SAAS,iBAAiB,GAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,GACxB,CAAC,SAAS,iBAAiB,GAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,GACxB,QAAQ,CAAC,IAAI,GAAG,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC,CAAA;gBAE9B,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAUpD,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI;IAM7B,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC;IAYxB,UAAU,IAAI,WAAW,CAAC,CAAC,CAAC;CAO7B"}
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GlobStream = exports.GlobWalker = exports.GlobUtil = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Single-use utility classes to provide functionality to the {@link Glob}
|
|
6
|
+
* methods.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
const minipass_1 = require("minipass");
|
|
11
|
+
const ignore_js_1 = require("./ignore.js");
|
|
12
|
+
const processor_js_1 = require("./processor.js");
|
|
13
|
+
const makeIgnore = (ignore, opts) => typeof ignore === 'string'
|
|
14
|
+
? new ignore_js_1.Ignore([ignore], opts)
|
|
15
|
+
: Array.isArray(ignore)
|
|
16
|
+
? new ignore_js_1.Ignore(ignore, opts)
|
|
17
|
+
: ignore;
|
|
18
|
+
/**
|
|
19
|
+
* basic walking utilities that all the glob walker types use
|
|
20
|
+
*/
|
|
21
|
+
class GlobUtil {
|
|
22
|
+
path;
|
|
23
|
+
patterns;
|
|
24
|
+
opts;
|
|
25
|
+
seen = new Set();
|
|
26
|
+
paused = false;
|
|
27
|
+
aborted = false;
|
|
28
|
+
#onResume = [];
|
|
29
|
+
#ignore;
|
|
30
|
+
#sep;
|
|
31
|
+
signal;
|
|
32
|
+
maxDepth;
|
|
33
|
+
constructor(patterns, path, opts) {
|
|
34
|
+
this.patterns = patterns;
|
|
35
|
+
this.path = path;
|
|
36
|
+
this.opts = opts;
|
|
37
|
+
this.#sep = !opts.posix && opts.platform === 'win32' ? '\\' : '/';
|
|
38
|
+
if (opts.ignore) {
|
|
39
|
+
this.#ignore = makeIgnore(opts.ignore, opts);
|
|
40
|
+
}
|
|
41
|
+
// ignore, always set with maxDepth, but it's optional on the
|
|
42
|
+
// GlobOptions type
|
|
43
|
+
/* c8 ignore start */
|
|
44
|
+
this.maxDepth = opts.maxDepth || Infinity;
|
|
45
|
+
/* c8 ignore stop */
|
|
46
|
+
if (opts.signal) {
|
|
47
|
+
this.signal = opts.signal;
|
|
48
|
+
this.signal.addEventListener('abort', () => {
|
|
49
|
+
this.#onResume.length = 0;
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
#ignored(path) {
|
|
54
|
+
return this.seen.has(path) || !!this.#ignore?.ignored?.(path);
|
|
55
|
+
}
|
|
56
|
+
#childrenIgnored(path) {
|
|
57
|
+
return !!this.#ignore?.childrenIgnored?.(path);
|
|
58
|
+
}
|
|
59
|
+
// backpressure mechanism
|
|
60
|
+
pause() {
|
|
61
|
+
this.paused = true;
|
|
62
|
+
}
|
|
63
|
+
resume() {
|
|
64
|
+
/* c8 ignore start */
|
|
65
|
+
if (this.signal?.aborted)
|
|
66
|
+
return;
|
|
67
|
+
/* c8 ignore stop */
|
|
68
|
+
this.paused = false;
|
|
69
|
+
let fn = undefined;
|
|
70
|
+
while (!this.paused && (fn = this.#onResume.shift())) {
|
|
71
|
+
fn();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
onResume(fn) {
|
|
75
|
+
if (this.signal?.aborted)
|
|
76
|
+
return;
|
|
77
|
+
/* c8 ignore start */
|
|
78
|
+
if (!this.paused) {
|
|
79
|
+
fn();
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
/* c8 ignore stop */
|
|
83
|
+
this.#onResume.push(fn);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// do the requisite realpath/stat checking, and return the path
|
|
87
|
+
// to add or undefined to filter it out.
|
|
88
|
+
async matchCheck(e, ifDir) {
|
|
89
|
+
if (ifDir && this.opts.nodir)
|
|
90
|
+
return undefined;
|
|
91
|
+
let rpc;
|
|
92
|
+
if (this.opts.realpath) {
|
|
93
|
+
rpc = e.realpathCached() || (await e.realpath());
|
|
94
|
+
if (!rpc)
|
|
95
|
+
return undefined;
|
|
96
|
+
e = rpc;
|
|
97
|
+
}
|
|
98
|
+
const needStat = e.isUnknown() || this.opts.stat;
|
|
99
|
+
return this.matchCheckTest(needStat ? await e.lstat() : e, ifDir);
|
|
100
|
+
}
|
|
101
|
+
matchCheckTest(e, ifDir) {
|
|
102
|
+
return e &&
|
|
103
|
+
(this.maxDepth === Infinity || e.depth() <= this.maxDepth) &&
|
|
104
|
+
(!ifDir || e.canReaddir()) &&
|
|
105
|
+
(!this.opts.nodir || !e.isDirectory()) &&
|
|
106
|
+
!this.#ignored(e)
|
|
107
|
+
? e
|
|
108
|
+
: undefined;
|
|
109
|
+
}
|
|
110
|
+
matchCheckSync(e, ifDir) {
|
|
111
|
+
if (ifDir && this.opts.nodir)
|
|
112
|
+
return undefined;
|
|
113
|
+
let rpc;
|
|
114
|
+
if (this.opts.realpath) {
|
|
115
|
+
rpc = e.realpathCached() || e.realpathSync();
|
|
116
|
+
if (!rpc)
|
|
117
|
+
return undefined;
|
|
118
|
+
e = rpc;
|
|
119
|
+
}
|
|
120
|
+
const needStat = e.isUnknown() || this.opts.stat;
|
|
121
|
+
return this.matchCheckTest(needStat ? e.lstatSync() : e, ifDir);
|
|
122
|
+
}
|
|
123
|
+
matchFinish(e, absolute) {
|
|
124
|
+
if (this.#ignored(e))
|
|
125
|
+
return;
|
|
126
|
+
const abs = this.opts.absolute === undefined ? absolute : this.opts.absolute;
|
|
127
|
+
this.seen.add(e);
|
|
128
|
+
const mark = this.opts.mark && e.isDirectory() ? this.#sep : '';
|
|
129
|
+
// ok, we have what we need!
|
|
130
|
+
if (this.opts.withFileTypes) {
|
|
131
|
+
this.matchEmit(e);
|
|
132
|
+
}
|
|
133
|
+
else if (abs) {
|
|
134
|
+
const abs = this.opts.posix ? e.fullpathPosix() : e.fullpath();
|
|
135
|
+
this.matchEmit(abs + mark);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
const rel = this.opts.posix ? e.relativePosix() : e.relative();
|
|
139
|
+
const pre = this.opts.dotRelative && !rel.startsWith('..' + this.#sep)
|
|
140
|
+
? '.' + this.#sep
|
|
141
|
+
: '';
|
|
142
|
+
this.matchEmit(!rel ? '.' + mark : pre + rel + mark);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
async match(e, absolute, ifDir) {
|
|
146
|
+
const p = await this.matchCheck(e, ifDir);
|
|
147
|
+
if (p)
|
|
148
|
+
this.matchFinish(p, absolute);
|
|
149
|
+
}
|
|
150
|
+
matchSync(e, absolute, ifDir) {
|
|
151
|
+
const p = this.matchCheckSync(e, ifDir);
|
|
152
|
+
if (p)
|
|
153
|
+
this.matchFinish(p, absolute);
|
|
154
|
+
}
|
|
155
|
+
walkCB(target, patterns, cb) {
|
|
156
|
+
/* c8 ignore start */
|
|
157
|
+
if (this.signal?.aborted)
|
|
158
|
+
cb();
|
|
159
|
+
/* c8 ignore stop */
|
|
160
|
+
this.walkCB2(target, patterns, new processor_js_1.Processor(this.opts), cb);
|
|
161
|
+
}
|
|
162
|
+
walkCB2(target, patterns, processor, cb) {
|
|
163
|
+
if (this.#childrenIgnored(target))
|
|
164
|
+
return cb();
|
|
165
|
+
if (this.signal?.aborted)
|
|
166
|
+
cb();
|
|
167
|
+
if (this.paused) {
|
|
168
|
+
this.onResume(() => this.walkCB2(target, patterns, processor, cb));
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
processor.processPatterns(target, patterns);
|
|
172
|
+
// done processing. all of the above is sync, can be abstracted out.
|
|
173
|
+
// subwalks is a map of paths to the entry filters they need
|
|
174
|
+
// matches is a map of paths to [absolute, ifDir] tuples.
|
|
175
|
+
let tasks = 1;
|
|
176
|
+
const next = () => {
|
|
177
|
+
if (--tasks === 0)
|
|
178
|
+
cb();
|
|
179
|
+
};
|
|
180
|
+
for (const [m, absolute, ifDir] of processor.matches.entries()) {
|
|
181
|
+
if (this.#ignored(m))
|
|
182
|
+
continue;
|
|
183
|
+
tasks++;
|
|
184
|
+
this.match(m, absolute, ifDir).then(() => next());
|
|
185
|
+
}
|
|
186
|
+
for (const t of processor.subwalkTargets()) {
|
|
187
|
+
if (this.maxDepth !== Infinity && t.depth() >= this.maxDepth) {
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
tasks++;
|
|
191
|
+
const childrenCached = t.readdirCached();
|
|
192
|
+
if (t.calledReaddir())
|
|
193
|
+
this.walkCB3(t, childrenCached, processor, next);
|
|
194
|
+
else {
|
|
195
|
+
t.readdirCB((_, entries) => this.walkCB3(t, entries, processor, next), true);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
next();
|
|
199
|
+
}
|
|
200
|
+
walkCB3(target, entries, processor, cb) {
|
|
201
|
+
processor = processor.filterEntries(target, entries);
|
|
202
|
+
let tasks = 1;
|
|
203
|
+
const next = () => {
|
|
204
|
+
if (--tasks === 0)
|
|
205
|
+
cb();
|
|
206
|
+
};
|
|
207
|
+
for (const [m, absolute, ifDir] of processor.matches.entries()) {
|
|
208
|
+
if (this.#ignored(m))
|
|
209
|
+
continue;
|
|
210
|
+
tasks++;
|
|
211
|
+
this.match(m, absolute, ifDir).then(() => next());
|
|
212
|
+
}
|
|
213
|
+
for (const [target, patterns] of processor.subwalks.entries()) {
|
|
214
|
+
tasks++;
|
|
215
|
+
this.walkCB2(target, patterns, processor.child(), next);
|
|
216
|
+
}
|
|
217
|
+
next();
|
|
218
|
+
}
|
|
219
|
+
walkCBSync(target, patterns, cb) {
|
|
220
|
+
/* c8 ignore start */
|
|
221
|
+
if (this.signal?.aborted)
|
|
222
|
+
cb();
|
|
223
|
+
/* c8 ignore stop */
|
|
224
|
+
this.walkCB2Sync(target, patterns, new processor_js_1.Processor(this.opts), cb);
|
|
225
|
+
}
|
|
226
|
+
walkCB2Sync(target, patterns, processor, cb) {
|
|
227
|
+
if (this.#childrenIgnored(target))
|
|
228
|
+
return cb();
|
|
229
|
+
if (this.signal?.aborted)
|
|
230
|
+
cb();
|
|
231
|
+
if (this.paused) {
|
|
232
|
+
this.onResume(() => this.walkCB2Sync(target, patterns, processor, cb));
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
processor.processPatterns(target, patterns);
|
|
236
|
+
// done processing. all of the above is sync, can be abstracted out.
|
|
237
|
+
// subwalks is a map of paths to the entry filters they need
|
|
238
|
+
// matches is a map of paths to [absolute, ifDir] tuples.
|
|
239
|
+
let tasks = 1;
|
|
240
|
+
const next = () => {
|
|
241
|
+
if (--tasks === 0)
|
|
242
|
+
cb();
|
|
243
|
+
};
|
|
244
|
+
for (const [m, absolute, ifDir] of processor.matches.entries()) {
|
|
245
|
+
if (this.#ignored(m))
|
|
246
|
+
continue;
|
|
247
|
+
this.matchSync(m, absolute, ifDir);
|
|
248
|
+
}
|
|
249
|
+
for (const t of processor.subwalkTargets()) {
|
|
250
|
+
if (this.maxDepth !== Infinity && t.depth() >= this.maxDepth) {
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
tasks++;
|
|
254
|
+
const children = t.readdirSync();
|
|
255
|
+
this.walkCB3Sync(t, children, processor, next);
|
|
256
|
+
}
|
|
257
|
+
next();
|
|
258
|
+
}
|
|
259
|
+
walkCB3Sync(target, entries, processor, cb) {
|
|
260
|
+
processor = processor.filterEntries(target, entries);
|
|
261
|
+
let tasks = 1;
|
|
262
|
+
const next = () => {
|
|
263
|
+
if (--tasks === 0)
|
|
264
|
+
cb();
|
|
265
|
+
};
|
|
266
|
+
for (const [m, absolute, ifDir] of processor.matches.entries()) {
|
|
267
|
+
if (this.#ignored(m))
|
|
268
|
+
continue;
|
|
269
|
+
this.matchSync(m, absolute, ifDir);
|
|
270
|
+
}
|
|
271
|
+
for (const [target, patterns] of processor.subwalks.entries()) {
|
|
272
|
+
tasks++;
|
|
273
|
+
this.walkCB2Sync(target, patterns, processor.child(), next);
|
|
274
|
+
}
|
|
275
|
+
next();
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
exports.GlobUtil = GlobUtil;
|
|
279
|
+
class GlobWalker extends GlobUtil {
|
|
280
|
+
matches;
|
|
281
|
+
constructor(patterns, path, opts) {
|
|
282
|
+
super(patterns, path, opts);
|
|
283
|
+
this.matches = new Set();
|
|
284
|
+
}
|
|
285
|
+
matchEmit(e) {
|
|
286
|
+
this.matches.add(e);
|
|
287
|
+
}
|
|
288
|
+
async walk() {
|
|
289
|
+
if (this.signal?.aborted)
|
|
290
|
+
throw this.signal.reason;
|
|
291
|
+
if (this.path.isUnknown()) {
|
|
292
|
+
await this.path.lstat();
|
|
293
|
+
}
|
|
294
|
+
await new Promise((res, rej) => {
|
|
295
|
+
this.walkCB(this.path, this.patterns, () => {
|
|
296
|
+
if (this.signal?.aborted) {
|
|
297
|
+
rej(this.signal.reason);
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
res(this.matches);
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
return this.matches;
|
|
305
|
+
}
|
|
306
|
+
walkSync() {
|
|
307
|
+
if (this.signal?.aborted)
|
|
308
|
+
throw this.signal.reason;
|
|
309
|
+
if (this.path.isUnknown()) {
|
|
310
|
+
this.path.lstatSync();
|
|
311
|
+
}
|
|
312
|
+
// nothing for the callback to do, because this never pauses
|
|
313
|
+
this.walkCBSync(this.path, this.patterns, () => {
|
|
314
|
+
if (this.signal?.aborted)
|
|
315
|
+
throw this.signal.reason;
|
|
316
|
+
});
|
|
317
|
+
return this.matches;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
exports.GlobWalker = GlobWalker;
|
|
321
|
+
class GlobStream extends GlobUtil {
|
|
322
|
+
results;
|
|
323
|
+
constructor(patterns, path, opts) {
|
|
324
|
+
super(patterns, path, opts);
|
|
325
|
+
this.results = new minipass_1.Minipass({
|
|
326
|
+
signal: this.signal,
|
|
327
|
+
objectMode: true,
|
|
328
|
+
});
|
|
329
|
+
this.results.on('drain', () => this.resume());
|
|
330
|
+
this.results.on('resume', () => this.resume());
|
|
331
|
+
}
|
|
332
|
+
matchEmit(e) {
|
|
333
|
+
this.results.write(e);
|
|
334
|
+
if (!this.results.flowing)
|
|
335
|
+
this.pause();
|
|
336
|
+
}
|
|
337
|
+
stream() {
|
|
338
|
+
const target = this.path;
|
|
339
|
+
if (target.isUnknown()) {
|
|
340
|
+
target.lstat().then(() => {
|
|
341
|
+
this.walkCB(target, this.patterns, () => this.results.end());
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
else {
|
|
345
|
+
this.walkCB(target, this.patterns, () => this.results.end());
|
|
346
|
+
}
|
|
347
|
+
return this.results;
|
|
348
|
+
}
|
|
349
|
+
streamSync() {
|
|
350
|
+
if (this.path.isUnknown()) {
|
|
351
|
+
this.path.lstatSync();
|
|
352
|
+
}
|
|
353
|
+
this.walkCBSync(this.path, this.patterns, () => this.results.end());
|
|
354
|
+
return this.results;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
exports.GlobStream = GlobStream;
|
|
358
|
+
//# sourceMappingURL=walker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walker.js","sourceRoot":"","sources":["../../src/walker.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,uCAAmC;AAEnC,2CAAgD;AAQhD,iDAA0C;AAiE1C,MAAM,UAAU,GAAG,CACjB,MAAsC,EACtC,IAAoB,EACR,EAAE,CACd,OAAO,MAAM,KAAK,QAAQ;IACxB,CAAC,CAAC,IAAI,kBAAM,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC;IAC5B,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;QACvB,CAAC,CAAC,IAAI,kBAAM,CAAC,MAAM,EAAE,IAAI,CAAC;QAC1B,CAAC,CAAC,MAAM,CAAA;AAEZ;;GAEG;AACH,MAAsB,QAAQ;IAC5B,IAAI,CAAM;IACV,QAAQ,CAAW;IACnB,IAAI,CAAG;IACP,IAAI,GAAc,IAAI,GAAG,EAAQ,CAAA;IACjC,MAAM,GAAY,KAAK,CAAA;IACvB,OAAO,GAAY,KAAK,CAAA;IACxB,SAAS,GAAkB,EAAE,CAAA;IAC7B,OAAO,CAAa;IACpB,IAAI,CAAY;IAChB,MAAM,CAAc;IACpB,QAAQ,CAAQ;IAGhB,YAAY,QAAmB,EAAE,IAAU,EAAE,IAAO;QAClD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC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MAAM,CAAC,SAAS,EAAE,EAAE;YACtB,MAAM,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvB,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;YAC9D,CAAC,CAAC,CAAA;SACH;aAAM;YACL,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;SAC7D;QACD,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;IAED,UAAU;QACR,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE;YACzB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAA;SACtB;QACD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;QACnE,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;CACF;AA9CD,gCA8CC","sourcesContent":["/**\n * Single-use utility classes to provide functionality to the {@link Glob}\n * methods.\n *\n * @module\n */\nimport { Minipass } from 'minipass'\nimport { Path } from 'path-scurry'\nimport { Ignore, IgnoreLike } from './ignore.js'\n\n// XXX can we somehow make it so that it NEVER processes a given path more than\n// once, enough that the match set tracking is no longer needed? that'd speed\n// things up a lot. Or maybe bring back nounique, and skip it in that case?\n\n// a single minimatch set entry with 1 or more parts\nimport { Pattern } from './pattern.js'\nimport { Processor } from './processor.js'\n\nexport interface GlobWalkerOpts {\n absolute?: boolean\n allowWindowsEscape?: boolean\n cwd?: string | URL\n dot?: boolean\n dotRelative?: boolean\n follow?: boolean\n ignore?: string | string[] | IgnoreLike\n mark?: boolean\n matchBase?: boolean\n // Note: maxDepth here means \"maximum actual Path.depth()\",\n // not \"maximum depth beyond cwd\"\n maxDepth?: number\n nobrace?: boolean\n nocase?: boolean\n nodir?: boolean\n noext?: boolean\n noglobstar?: boolean\n platform?: NodeJS.Platform\n posix?: boolean\n realpath?: boolean\n root?: string\n stat?: boolean\n signal?: AbortSignal\n windowsPathsNoEscape?: boolean\n withFileTypes?: boolean\n}\n\nexport type GWOFileTypesTrue = GlobWalkerOpts & {\n withFileTypes: true\n}\nexport type GWOFileTypesFalse = GlobWalkerOpts & {\n withFileTypes: false\n}\nexport type GWOFileTypesUnset = GlobWalkerOpts & {\n withFileTypes?: undefined\n}\n\nexport type Result<O extends GlobWalkerOpts> = O extends GWOFileTypesTrue\n ? Path\n : O extends GWOFileTypesFalse\n ? string\n : O extends GWOFileTypesUnset\n ? string\n : Path | string\n\nexport type Matches<O extends GlobWalkerOpts> = O extends GWOFileTypesTrue\n ? Set<Path>\n : O extends GWOFileTypesFalse\n ? Set<string>\n : O extends GWOFileTypesUnset\n ? Set<string>\n : Set<Path | string>\n\nexport type MatchStream<O extends GlobWalkerOpts> =\n O extends GWOFileTypesTrue\n ? Minipass<Path, Path>\n : O extends GWOFileTypesFalse\n ? Minipass<string, string>\n : O extends GWOFileTypesUnset\n ? Minipass<string, string>\n : Minipass<Path | string, Path | string>\n\nconst makeIgnore = (\n ignore: string | string[] | IgnoreLike,\n opts: GlobWalkerOpts\n): IgnoreLike =>\n typeof ignore === 'string'\n ? new Ignore([ignore], opts)\n : Array.isArray(ignore)\n ? new Ignore(ignore, opts)\n : ignore\n\n/**\n * basic walking utilities that all the glob walker types use\n */\nexport abstract class GlobUtil<O extends GlobWalkerOpts = GlobWalkerOpts> {\n path: Path\n patterns: Pattern[]\n opts: O\n seen: Set<Path> = new Set<Path>()\n paused: boolean = false\n aborted: boolean = false\n #onResume: (() => any)[] = []\n #ignore?: IgnoreLike\n #sep: '\\\\' | '/'\n signal?: AbortSignal\n maxDepth: number\n\n constructor(patterns: Pattern[], path: Path, opts: O)\n constructor(patterns: Pattern[], path: Path, opts: O) {\n this.patterns = patterns\n this.path = path\n this.opts = opts\n this.#sep = !opts.posix && opts.platform === 'win32' ? '\\\\' : '/'\n if (opts.ignore) {\n this.#ignore = makeIgnore(opts.ignore, opts)\n }\n // ignore, always set with maxDepth, but it's optional on the\n // GlobOptions type\n /* c8 ignore start */\n this.maxDepth = opts.maxDepth || Infinity\n /* c8 ignore stop */\n if (opts.signal) {\n this.signal = opts.signal\n this.signal.addEventListener('abort', () => {\n this.#onResume.length = 0\n })\n }\n }\n\n #ignored(path: Path): boolean {\n return this.seen.has(path) || !!this.#ignore?.ignored?.(path)\n }\n #childrenIgnored(path: Path): boolean {\n return !!this.#ignore?.childrenIgnored?.(path)\n }\n\n // backpressure mechanism\n pause() {\n this.paused = true\n }\n resume() {\n /* c8 ignore start */\n if (this.signal?.aborted) return\n /* c8 ignore stop */\n this.paused = false\n let fn: (() => any) | undefined = undefined\n while (!this.paused && (fn = this.#onResume.shift())) {\n fn()\n }\n }\n onResume(fn: () => any) {\n if (this.signal?.aborted) return\n /* c8 ignore start */\n if (!this.paused) {\n fn()\n } else {\n /* c8 ignore stop */\n this.#onResume.push(fn)\n }\n }\n\n // do the requisite realpath/stat checking, and return the path\n // to add or undefined to filter it out.\n async matchCheck(e: Path, ifDir: boolean): Promise<Path | undefined> {\n if (ifDir && this.opts.nodir) return undefined\n let rpc: Path | undefined\n if (this.opts.realpath) {\n rpc = e.realpathCached() || (await e.realpath())\n if (!rpc) return undefined\n e = rpc\n }\n const needStat = e.isUnknown() || this.opts.stat\n return this.matchCheckTest(needStat ? await e.lstat() : e, ifDir)\n }\n\n matchCheckTest(e: Path | undefined, ifDir: boolean): Path | undefined {\n return e &&\n (this.maxDepth === Infinity || e.depth() <= this.maxDepth) &&\n (!ifDir || e.canReaddir()) &&\n (!this.opts.nodir || !e.isDirectory()) &&\n !this.#ignored(e)\n ? e\n : undefined\n }\n\n matchCheckSync(e: Path, ifDir: boolean): Path | undefined {\n if (ifDir && this.opts.nodir) return undefined\n let rpc: Path | undefined\n if (this.opts.realpath) {\n rpc = e.realpathCached() || e.realpathSync()\n if (!rpc) return undefined\n e = rpc\n }\n const needStat = e.isUnknown() || this.opts.stat\n return this.matchCheckTest(needStat ? e.lstatSync() : e, ifDir)\n }\n\n abstract matchEmit(p: Result<O>): void\n abstract matchEmit(p: string | Path): void\n\n matchFinish(e: Path, absolute: boolean) {\n if (this.#ignored(e)) return\n const abs =\n this.opts.absolute === undefined ? absolute : this.opts.absolute\n this.seen.add(e)\n const mark = this.opts.mark && e.isDirectory() ? this.#sep : ''\n // ok, we have what we need!\n if (this.opts.withFileTypes) {\n this.matchEmit(e)\n } else if (abs) {\n const abs = this.opts.posix ? e.fullpathPosix() : e.fullpath()\n this.matchEmit(abs + mark)\n } else {\n const rel = this.opts.posix ? e.relativePosix() : e.relative()\n const pre =\n this.opts.dotRelative && !rel.startsWith('..' + this.#sep)\n ? '.' + this.#sep\n : ''\n this.matchEmit(!rel ? '.' + mark : pre + rel + mark)\n }\n }\n\n async match(e: Path, absolute: boolean, ifDir: boolean): Promise<void> {\n const p = await this.matchCheck(e, ifDir)\n if (p) this.matchFinish(p, absolute)\n }\n\n matchSync(e: Path, absolute: boolean, ifDir: boolean): void {\n const p = this.matchCheckSync(e, ifDir)\n if (p) this.matchFinish(p, absolute)\n }\n\n walkCB(target: Path, patterns: Pattern[], cb: () => any) {\n /* c8 ignore start */\n if (this.signal?.aborted) cb()\n /* c8 ignore stop */\n this.walkCB2(target, patterns, new Processor(this.opts), cb)\n }\n\n walkCB2(\n target: Path,\n patterns: Pattern[],\n processor: Processor,\n cb: () => any\n ) {\n if (this.#childrenIgnored(target)) return cb()\n if (this.signal?.aborted) cb()\n if (this.paused) {\n this.onResume(() => this.walkCB2(target, patterns, processor, cb))\n return\n }\n processor.processPatterns(target, patterns)\n\n // done processing. all of the above is sync, can be abstracted out.\n // subwalks is a map of paths to the entry filters they need\n // matches is a map of paths to [absolute, ifDir] tuples.\n let tasks = 1\n const next = () => {\n if (--tasks === 0) cb()\n }\n\n for (const [m, absolute, ifDir] of processor.matches.entries()) {\n if (this.#ignored(m)) continue\n tasks++\n this.match(m, absolute, ifDir).then(() => next())\n }\n\n for (const t of processor.subwalkTargets()) {\n if (this.maxDepth !== Infinity && t.depth() >= this.maxDepth) {\n continue\n }\n tasks++\n const childrenCached = t.readdirCached()\n if (t.calledReaddir())\n this.walkCB3(t, childrenCached, processor, next)\n else {\n t.readdirCB(\n (_, entries) => this.walkCB3(t, entries, processor, next),\n true\n )\n }\n }\n\n next()\n }\n\n walkCB3(\n target: Path,\n entries: Path[],\n processor: Processor,\n cb: () => any\n ) {\n processor = processor.filterEntries(target, entries)\n\n let tasks = 1\n const next = () => {\n if (--tasks === 0) cb()\n }\n\n for (const [m, absolute, ifDir] of processor.matches.entries()) {\n if (this.#ignored(m)) continue\n tasks++\n this.match(m, absolute, ifDir).then(() => next())\n }\n for (const [target, patterns] of processor.subwalks.entries()) {\n tasks++\n this.walkCB2(target, patterns, processor.child(), next)\n }\n\n next()\n }\n\n walkCBSync(target: Path, patterns: Pattern[], cb: () => any) {\n /* c8 ignore start */\n if (this.signal?.aborted) cb()\n /* c8 ignore stop */\n this.walkCB2Sync(target, patterns, new Processor(this.opts), cb)\n }\n\n walkCB2Sync(\n target: Path,\n patterns: Pattern[],\n processor: Processor,\n cb: () => any\n ) {\n if (this.#childrenIgnored(target)) return cb()\n if (this.signal?.aborted) cb()\n if (this.paused) {\n this.onResume(() =>\n this.walkCB2Sync(target, patterns, processor, cb)\n )\n return\n }\n processor.processPatterns(target, patterns)\n\n // done processing. all of the above is sync, can be abstracted out.\n // subwalks is a map of paths to the entry filters they need\n // matches is a map of paths to [absolute, ifDir] tuples.\n let tasks = 1\n const next = () => {\n if (--tasks === 0) cb()\n }\n\n for (const [m, absolute, ifDir] of processor.matches.entries()) {\n if (this.#ignored(m)) continue\n this.matchSync(m, absolute, ifDir)\n }\n\n for (const t of processor.subwalkTargets()) {\n if (this.maxDepth !== Infinity && t.depth() >= this.maxDepth) {\n continue\n }\n tasks++\n const children = t.readdirSync()\n this.walkCB3Sync(t, children, processor, next)\n }\n\n next()\n }\n\n walkCB3Sync(\n target: Path,\n entries: Path[],\n processor: Processor,\n cb: () => any\n ) {\n processor = processor.filterEntries(target, entries)\n\n let tasks = 1\n const next = () => {\n if (--tasks === 0) cb()\n }\n\n for (const [m, absolute, ifDir] of processor.matches.entries()) {\n if (this.#ignored(m)) continue\n this.matchSync(m, absolute, ifDir)\n }\n for (const [target, patterns] of processor.subwalks.entries()) {\n tasks++\n this.walkCB2Sync(target, patterns, processor.child(), next)\n }\n\n next()\n }\n}\n\nexport class GlobWalker<\n O extends GlobWalkerOpts = GlobWalkerOpts\n> extends GlobUtil<O> {\n matches: O extends GWOFileTypesTrue\n ? Set<Path>\n : O extends GWOFileTypesFalse\n ? Set<string>\n : O extends GWOFileTypesUnset\n ? Set<string>\n : Set<Path | string>\n\n constructor(patterns: Pattern[], path: Path, opts: O) {\n super(patterns, path, opts)\n this.matches = new Set() as Matches<O>\n }\n\n matchEmit(e: Result<O>): void\n matchEmit(e: Path | string): void {\n this.matches.add(e)\n }\n\n async walk(): Promise<Matches<O>> {\n if (this.signal?.aborted) throw this.signal.reason\n if (this.path.isUnknown()) {\n await this.path.lstat()\n }\n await new Promise((res, rej) => {\n this.walkCB(this.path, this.patterns, () => {\n if (this.signal?.aborted) {\n rej(this.signal.reason)\n } else {\n res(this.matches)\n }\n })\n })\n return this.matches\n }\n\n walkSync(): Matches<O> {\n if (this.signal?.aborted) throw this.signal.reason\n if (this.path.isUnknown()) {\n this.path.lstatSync()\n }\n // nothing for the callback to do, because this never pauses\n this.walkCBSync(this.path, this.patterns, () => {\n if (this.signal?.aborted) throw this.signal.reason\n })\n return this.matches\n }\n}\n\nexport class GlobStream<\n O extends GlobWalkerOpts = GlobWalkerOpts\n> extends GlobUtil<O> {\n results: O extends GWOFileTypesTrue\n ? Minipass<Path, Path>\n : O extends GWOFileTypesFalse\n ? Minipass<string, string>\n : O extends GWOFileTypesUnset\n ? Minipass<string, string>\n : Minipass<Path | string, Path | string>\n\n constructor(patterns: Pattern[], path: Path, opts: O) {\n super(patterns, path, opts)\n this.results = new Minipass({\n signal: this.signal,\n objectMode: true,\n }) as MatchStream<O>\n this.results.on('drain', () => this.resume())\n this.results.on('resume', () => this.resume())\n }\n\n matchEmit(e: Result<O>): void\n matchEmit(e: Path | string): void {\n this.results.write(e)\n if (!this.results.flowing) this.pause()\n }\n\n stream(): MatchStream<O> {\n const target = this.path\n if (target.isUnknown()) {\n target.lstat().then(() => {\n this.walkCB(target, this.patterns, () => this.results.end())\n })\n } else {\n this.walkCB(target, this.patterns, () => this.results.end())\n }\n return this.results\n }\n\n streamSync(): MatchStream<O> {\n if (this.path.isUnknown()) {\n this.path.lstatSync()\n }\n this.walkCBSync(this.path, this.patterns, () => this.results.end())\n return this.results\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.d.mts","sourceRoot":"","sources":["../../src/bin.mts"],"names":[],"mappings":""}
|