@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,56 @@
|
|
|
1
|
+
import { escape, unescape } from 'minimatch';
|
|
2
|
+
import { Glob } from './glob.js';
|
|
3
|
+
import { hasMagic } from './has-magic.js';
|
|
4
|
+
export function globStreamSync(pattern, options = {}) {
|
|
5
|
+
return new Glob(pattern, options).streamSync();
|
|
6
|
+
}
|
|
7
|
+
export function globStream(pattern, options = {}) {
|
|
8
|
+
return new Glob(pattern, options).stream();
|
|
9
|
+
}
|
|
10
|
+
export function globSync(pattern, options = {}) {
|
|
11
|
+
return new Glob(pattern, options).walkSync();
|
|
12
|
+
}
|
|
13
|
+
async function glob_(pattern, options = {}) {
|
|
14
|
+
return new Glob(pattern, options).walk();
|
|
15
|
+
}
|
|
16
|
+
export function globIterateSync(pattern, options = {}) {
|
|
17
|
+
return new Glob(pattern, options).iterateSync();
|
|
18
|
+
}
|
|
19
|
+
export function globIterate(pattern, options = {}) {
|
|
20
|
+
return new Glob(pattern, options).iterate();
|
|
21
|
+
}
|
|
22
|
+
// aliases: glob.sync.stream() glob.stream.sync() glob.sync() etc
|
|
23
|
+
export const streamSync = globStreamSync;
|
|
24
|
+
export const stream = Object.assign(globStream, { sync: globStreamSync });
|
|
25
|
+
export const iterateSync = globIterateSync;
|
|
26
|
+
export const iterate = Object.assign(globIterate, {
|
|
27
|
+
sync: globIterateSync,
|
|
28
|
+
});
|
|
29
|
+
export const sync = Object.assign(globSync, {
|
|
30
|
+
stream: globStreamSync,
|
|
31
|
+
iterate: globIterateSync,
|
|
32
|
+
});
|
|
33
|
+
/* c8 ignore start */
|
|
34
|
+
export { escape, unescape } from 'minimatch';
|
|
35
|
+
export { Glob } from './glob.js';
|
|
36
|
+
export { hasMagic } from './has-magic.js';
|
|
37
|
+
/* c8 ignore stop */
|
|
38
|
+
export const glob = Object.assign(glob_, {
|
|
39
|
+
glob: glob_,
|
|
40
|
+
globSync,
|
|
41
|
+
sync,
|
|
42
|
+
globStream,
|
|
43
|
+
stream,
|
|
44
|
+
globStreamSync,
|
|
45
|
+
streamSync,
|
|
46
|
+
globIterate,
|
|
47
|
+
iterate,
|
|
48
|
+
globIterateSync,
|
|
49
|
+
iterateSync,
|
|
50
|
+
Glob,
|
|
51
|
+
hasMagic,
|
|
52
|
+
escape,
|
|
53
|
+
unescape,
|
|
54
|
+
});
|
|
55
|
+
glob.glob = glob;
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAS5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAuBzC,MAAM,UAAU,cAAc,CAC5B,OAA0B,EAC1B,UAAuB,EAAE;IAEzB,OAAO,IAAI,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,UAAU,EAAE,CAAA;AAChD,CAAC;AAsBD,MAAM,UAAU,UAAU,CACxB,OAA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AAE,MAAM,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAOhC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAWzC,oBAAoB;AAEpB,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;IACvC,IAAI,EAAE,KAAK;IACX,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,MAAM;IACN,cAAc;IACd,UAAU;IACV,WAAW;IACX,OAAO;IACP,eAAe;IACf,WAAW;IACX,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,QAAQ;CACT,CAAC,CAAA;AACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA","sourcesContent":["import { escape, unescape } from 'minimatch'\nimport { Minipass } from 'minipass'\nimport { Path } from 'path-scurry'\nimport type {\n GlobOptions,\n GlobOptionsWithFileTypesFalse,\n GlobOptionsWithFileTypesTrue,\n GlobOptionsWithFileTypesUnset,\n} from './glob.js'\nimport { Glob } from './glob.js'\nimport { hasMagic } from './has-magic.js'\n\n/**\n * Syncronous form of {@link globStream}. Will read all the matches as fast as\n * you consume them, even all in a single tick if you consume them immediately,\n * but will still respond to backpressure if they're not consumed immediately.\n */\nexport function globStreamSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesTrue\n): Minipass<Path, Path>\nexport function globStreamSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesFalse\n): Minipass<string, string>\nexport function globStreamSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesUnset\n): Minipass<string, string>\nexport function globStreamSync(\n pattern: string | string[],\n options: GlobOptions\n): Minipass<Path, Path> | Minipass<string, string>\nexport function globStreamSync(\n pattern: string | string[],\n options: GlobOptions = {}\n) {\n return new Glob(pattern, options).streamSync()\n}\n\n/**\n * Return a stream that emits all the strings or `Path` objects and\n * then emits `end` when completed.\n */\nexport function globStream(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesFalse\n): Minipass<string, string>\nexport function globStream(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesTrue\n): Minipass<Path, Path>\nexport function globStream(\n pattern: string | string[],\n options?: GlobOptionsWithFileTypesUnset | undefined\n): Minipass<string, string>\nexport function globStream(\n pattern: string | string[],\n options: GlobOptions\n): Minipass<Path, Path> | Minipass<string, string>\nexport function globStream(\n pattern: string | string[],\n options: GlobOptions = {}\n) {\n return new Glob(pattern, options).stream()\n}\n\n/**\n * Synchronous form of {@link glob}\n */\nexport function globSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesFalse\n): string[]\nexport function globSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesTrue\n): Path[]\nexport function globSync(\n pattern: string | string[],\n options?: GlobOptionsWithFileTypesUnset | undefined\n): string[]\nexport function globSync(\n pattern: string | string[],\n options: GlobOptions\n): Path[] | string[]\nexport function globSync(\n pattern: string | string[],\n options: GlobOptions = {}\n) {\n return new Glob(pattern, options).walkSync()\n}\n\n/**\n * Perform an asynchronous glob search for the pattern(s) specified. Returns\n * [Path](https://isaacs.github.io/path-scurry/classes/PathBase) objects if the\n * {@link withFileTypes} option is set to `true`. See {@link GlobOptions} for\n * full option descriptions.\n */\nasync function glob_(\n pattern: string | string[],\n options?: GlobOptionsWithFileTypesUnset | undefined\n): Promise<string[]>\nasync function glob_(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesTrue\n): Promise<Path[]>\nasync function glob_(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesFalse\n): Promise<string[]>\nasync function glob_(\n pattern: string | string[],\n options: GlobOptions\n): Promise<Path[] | string[]>\nasync function glob_(\n pattern: string | string[],\n options: GlobOptions = {}\n) {\n return new Glob(pattern, options).walk()\n}\n\n/**\n * Return a sync iterator for walking glob pattern matches.\n */\nexport function globIterateSync(\n pattern: string | string[],\n options?: GlobOptionsWithFileTypesUnset | undefined\n): Generator<string, void, void>\nexport function globIterateSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesTrue\n): Generator<Path, void, void>\nexport function globIterateSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesFalse\n): Generator<string, void, void>\nexport function globIterateSync(\n pattern: string | string[],\n options: GlobOptions\n): Generator<Path, void, void> | Generator<string, void, void>\nexport function globIterateSync(\n pattern: string | string[],\n options: GlobOptions = {}\n) {\n return new Glob(pattern, options).iterateSync()\n}\n\n/**\n * Return an async iterator for walking glob pattern matches.\n */\nexport function globIterate(\n pattern: string | string[],\n options?: GlobOptionsWithFileTypesUnset | undefined\n): AsyncGenerator<string, void, void>\nexport function globIterate(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesTrue\n): AsyncGenerator<Path, void, void>\nexport function globIterate(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesFalse\n): AsyncGenerator<string, void, void>\nexport function globIterate(\n pattern: string | string[],\n options: GlobOptions\n): AsyncGenerator<Path, void, void> | AsyncGenerator<string, void, void>\nexport function globIterate(\n pattern: string | string[],\n options: GlobOptions = {}\n) {\n return new Glob(pattern, options).iterate()\n}\n\n// aliases: glob.sync.stream() glob.stream.sync() glob.sync() etc\nexport const streamSync = globStreamSync\nexport const stream = Object.assign(globStream, { sync: globStreamSync })\nexport const iterateSync = globIterateSync\nexport const iterate = Object.assign(globIterate, {\n sync: globIterateSync,\n})\nexport const sync = Object.assign(globSync, {\n stream: globStreamSync,\n iterate: globIterateSync,\n})\n\n/* c8 ignore start */\nexport { escape, unescape } from 'minimatch'\nexport { Glob } from './glob.js'\nexport type {\n GlobOptions,\n GlobOptionsWithFileTypesFalse,\n GlobOptionsWithFileTypesTrue,\n GlobOptionsWithFileTypesUnset,\n} from './glob.js'\nexport { hasMagic } from './has-magic.js'\nexport type { IgnoreLike } from './ignore.js'\nexport type { MatchStream } from './walker.js'\nexport type {\n Path,\n WalkOptionsWithFileTypesTrue,\n WalkOptionsWithFileTypesUnset,\n WalkOptions,\n FSOption,\n} from 'path-scurry'\n\n/* c8 ignore stop */\n\nexport const glob = Object.assign(glob_, {\n glob: glob_,\n globSync,\n sync,\n globStream,\n stream,\n globStreamSync,\n streamSync,\n globIterate,\n iterate,\n globIterateSync,\n iterateSync,\n Glob,\n hasMagic,\n escape,\n unescape,\n})\nglob.glob = glob\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
import { GLOBSTAR } from 'minimatch';
|
|
3
|
+
export type MMPattern = string | RegExp | typeof GLOBSTAR;
|
|
4
|
+
export type PatternList = [p: MMPattern, ...rest: MMPattern[]];
|
|
5
|
+
export type UNCPatternList = [
|
|
6
|
+
p0: '',
|
|
7
|
+
p1: '',
|
|
8
|
+
p2: string,
|
|
9
|
+
p3: string,
|
|
10
|
+
...rest: MMPattern[]
|
|
11
|
+
];
|
|
12
|
+
export type DrivePatternList = [p0: string, ...rest: MMPattern[]];
|
|
13
|
+
export type AbsolutePatternList = [p0: '', ...rest: MMPattern[]];
|
|
14
|
+
export type GlobList = [p: string, ...rest: string[]];
|
|
15
|
+
/**
|
|
16
|
+
* An immutable-ish view on an array of glob parts and their parsed
|
|
17
|
+
* results
|
|
18
|
+
*/
|
|
19
|
+
export declare class Pattern {
|
|
20
|
+
#private;
|
|
21
|
+
readonly length: number;
|
|
22
|
+
constructor(patternList: MMPattern[], globList: string[], index: number, platform: NodeJS.Platform);
|
|
23
|
+
/**
|
|
24
|
+
* The first entry in the parsed list of patterns
|
|
25
|
+
*/
|
|
26
|
+
pattern(): MMPattern;
|
|
27
|
+
/**
|
|
28
|
+
* true of if pattern() returns a string
|
|
29
|
+
*/
|
|
30
|
+
isString(): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* true of if pattern() returns GLOBSTAR
|
|
33
|
+
*/
|
|
34
|
+
isGlobstar(): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* true if pattern() returns a regexp
|
|
37
|
+
*/
|
|
38
|
+
isRegExp(): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* The /-joined set of glob parts that make up this pattern
|
|
41
|
+
*/
|
|
42
|
+
globString(): string;
|
|
43
|
+
/**
|
|
44
|
+
* true if there are more pattern parts after this one
|
|
45
|
+
*/
|
|
46
|
+
hasMore(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The rest of the pattern after this part, or null if this is the end
|
|
49
|
+
*/
|
|
50
|
+
rest(): Pattern | null;
|
|
51
|
+
/**
|
|
52
|
+
* true if the pattern represents a //unc/path/ on windows
|
|
53
|
+
*/
|
|
54
|
+
isUNC(): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* True if the pattern starts with a drive letter on Windows
|
|
57
|
+
*/
|
|
58
|
+
isDrive(): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* True if the pattern is rooted on an absolute path
|
|
61
|
+
*/
|
|
62
|
+
isAbsolute(): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* consume the root of the pattern, and return it
|
|
65
|
+
*/
|
|
66
|
+
root(): string;
|
|
67
|
+
/**
|
|
68
|
+
* Check to see if the current globstar pattern is allowed to follow
|
|
69
|
+
* a symbolic link.
|
|
70
|
+
*/
|
|
71
|
+
checkFollowGlobstar(): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Mark that the current globstar pattern is following a symbolic link
|
|
74
|
+
*/
|
|
75
|
+
markFollowGlobstar(): boolean;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=pattern.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pattern.d.ts","sourceRoot":"","sources":["../../src/pattern.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,QAAQ,CAAA;AAGzD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,SA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-0,0 +1,215 @@
|
|
|
1
|
+
// this is just a very light wrapper around 2 arrays with an offset index
|
|
2
|
+
import { GLOBSTAR } from 'minimatch';
|
|
3
|
+
const isPatternList = (pl) => pl.length >= 1;
|
|
4
|
+
const isGlobList = (gl) => gl.length >= 1;
|
|
5
|
+
/**
|
|
6
|
+
* An immutable-ish view on an array of glob parts and their parsed
|
|
7
|
+
* results
|
|
8
|
+
*/
|
|
9
|
+
export class Pattern {
|
|
10
|
+
#patternList;
|
|
11
|
+
#globList;
|
|
12
|
+
#index;
|
|
13
|
+
length;
|
|
14
|
+
#platform;
|
|
15
|
+
#rest;
|
|
16
|
+
#globString;
|
|
17
|
+
#isDrive;
|
|
18
|
+
#isUNC;
|
|
19
|
+
#isAbsolute;
|
|
20
|
+
#followGlobstar = true;
|
|
21
|
+
constructor(patternList, globList, index, platform) {
|
|
22
|
+
if (!isPatternList(patternList)) {
|
|
23
|
+
throw new TypeError('empty pattern list');
|
|
24
|
+
}
|
|
25
|
+
if (!isGlobList(globList)) {
|
|
26
|
+
throw new TypeError('empty glob list');
|
|
27
|
+
}
|
|
28
|
+
if (globList.length !== patternList.length) {
|
|
29
|
+
throw new TypeError('mismatched pattern list and glob list lengths');
|
|
30
|
+
}
|
|
31
|
+
this.length = patternList.length;
|
|
32
|
+
if (index < 0 || index >= this.length) {
|
|
33
|
+
throw new TypeError('index out of range');
|
|
34
|
+
}
|
|
35
|
+
this.#patternList = patternList;
|
|
36
|
+
this.#globList = globList;
|
|
37
|
+
this.#index = index;
|
|
38
|
+
this.#platform = platform;
|
|
39
|
+
// normalize root entries of absolute patterns on initial creation.
|
|
40
|
+
if (this.#index === 0) {
|
|
41
|
+
// c: => ['c:/']
|
|
42
|
+
// C:/ => ['C:/']
|
|
43
|
+
// C:/x => ['C:/', 'x']
|
|
44
|
+
// //host/share => ['//host/share/']
|
|
45
|
+
// //host/share/ => ['//host/share/']
|
|
46
|
+
// //host/share/x => ['//host/share/', 'x']
|
|
47
|
+
// /etc => ['/', 'etc']
|
|
48
|
+
// / => ['/']
|
|
49
|
+
if (this.isUNC()) {
|
|
50
|
+
// '' / '' / 'host' / 'share'
|
|
51
|
+
const [p0, p1, p2, p3, ...prest] = this.#patternList;
|
|
52
|
+
const [g0, g1, g2, g3, ...grest] = this.#globList;
|
|
53
|
+
if (prest[0] === '') {
|
|
54
|
+
// ends in /
|
|
55
|
+
prest.shift();
|
|
56
|
+
grest.shift();
|
|
57
|
+
}
|
|
58
|
+
const p = [p0, p1, p2, p3, ''].join('/');
|
|
59
|
+
const g = [g0, g1, g2, g3, ''].join('/');
|
|
60
|
+
this.#patternList = [p, ...prest];
|
|
61
|
+
this.#globList = [g, ...grest];
|
|
62
|
+
this.length = this.#patternList.length;
|
|
63
|
+
}
|
|
64
|
+
else if (this.isDrive() || this.isAbsolute()) {
|
|
65
|
+
const [p1, ...prest] = this.#patternList;
|
|
66
|
+
const [g1, ...grest] = this.#globList;
|
|
67
|
+
if (prest[0] === '') {
|
|
68
|
+
// ends in /
|
|
69
|
+
prest.shift();
|
|
70
|
+
grest.shift();
|
|
71
|
+
}
|
|
72
|
+
const p = p1 + '/';
|
|
73
|
+
const g = g1 + '/';
|
|
74
|
+
this.#patternList = [p, ...prest];
|
|
75
|
+
this.#globList = [g, ...grest];
|
|
76
|
+
this.length = this.#patternList.length;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The first entry in the parsed list of patterns
|
|
82
|
+
*/
|
|
83
|
+
pattern() {
|
|
84
|
+
return this.#patternList[this.#index];
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* true of if pattern() returns a string
|
|
88
|
+
*/
|
|
89
|
+
isString() {
|
|
90
|
+
return typeof this.#patternList[this.#index] === 'string';
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* true of if pattern() returns GLOBSTAR
|
|
94
|
+
*/
|
|
95
|
+
isGlobstar() {
|
|
96
|
+
return this.#patternList[this.#index] === GLOBSTAR;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* true if pattern() returns a regexp
|
|
100
|
+
*/
|
|
101
|
+
isRegExp() {
|
|
102
|
+
return this.#patternList[this.#index] instanceof RegExp;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* The /-joined set of glob parts that make up this pattern
|
|
106
|
+
*/
|
|
107
|
+
globString() {
|
|
108
|
+
return (this.#globString =
|
|
109
|
+
this.#globString ||
|
|
110
|
+
(this.#index === 0
|
|
111
|
+
? this.isAbsolute()
|
|
112
|
+
? this.#globList[0] + this.#globList.slice(1).join('/')
|
|
113
|
+
: this.#globList.join('/')
|
|
114
|
+
: this.#globList.slice(this.#index).join('/')));
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* true if there are more pattern parts after this one
|
|
118
|
+
*/
|
|
119
|
+
hasMore() {
|
|
120
|
+
return this.length > this.#index + 1;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* The rest of the pattern after this part, or null if this is the end
|
|
124
|
+
*/
|
|
125
|
+
rest() {
|
|
126
|
+
if (this.#rest !== undefined)
|
|
127
|
+
return this.#rest;
|
|
128
|
+
if (!this.hasMore())
|
|
129
|
+
return (this.#rest = null);
|
|
130
|
+
this.#rest = new Pattern(this.#patternList, this.#globList, this.#index + 1, this.#platform);
|
|
131
|
+
this.#rest.#isAbsolute = this.#isAbsolute;
|
|
132
|
+
this.#rest.#isUNC = this.#isUNC;
|
|
133
|
+
this.#rest.#isDrive = this.#isDrive;
|
|
134
|
+
return this.#rest;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* true if the pattern represents a //unc/path/ on windows
|
|
138
|
+
*/
|
|
139
|
+
isUNC() {
|
|
140
|
+
const pl = this.#patternList;
|
|
141
|
+
return this.#isUNC !== undefined
|
|
142
|
+
? this.#isUNC
|
|
143
|
+
: (this.#isUNC =
|
|
144
|
+
this.#platform === 'win32' &&
|
|
145
|
+
this.#index === 0 &&
|
|
146
|
+
pl[0] === '' &&
|
|
147
|
+
pl[1] === '' &&
|
|
148
|
+
typeof pl[2] === 'string' &&
|
|
149
|
+
!!pl[2] &&
|
|
150
|
+
typeof pl[3] === 'string' &&
|
|
151
|
+
!!pl[3]);
|
|
152
|
+
}
|
|
153
|
+
// pattern like C:/...
|
|
154
|
+
// split = ['C:', ...]
|
|
155
|
+
// XXX: would be nice to handle patterns like `c:*` to test the cwd
|
|
156
|
+
// in c: for *, but I don't know of a way to even figure out what that
|
|
157
|
+
// cwd is without actually chdir'ing into it?
|
|
158
|
+
/**
|
|
159
|
+
* True if the pattern starts with a drive letter on Windows
|
|
160
|
+
*/
|
|
161
|
+
isDrive() {
|
|
162
|
+
const pl = this.#patternList;
|
|
163
|
+
return this.#isDrive !== undefined
|
|
164
|
+
? this.#isDrive
|
|
165
|
+
: (this.#isDrive =
|
|
166
|
+
this.#platform === 'win32' &&
|
|
167
|
+
this.#index === 0 &&
|
|
168
|
+
this.length > 1 &&
|
|
169
|
+
typeof pl[0] === 'string' &&
|
|
170
|
+
/^[a-z]:$/i.test(pl[0]));
|
|
171
|
+
}
|
|
172
|
+
// pattern = '/' or '/...' or '/x/...'
|
|
173
|
+
// split = ['', ''] or ['', ...] or ['', 'x', ...]
|
|
174
|
+
// Drive and UNC both considered absolute on windows
|
|
175
|
+
/**
|
|
176
|
+
* True if the pattern is rooted on an absolute path
|
|
177
|
+
*/
|
|
178
|
+
isAbsolute() {
|
|
179
|
+
const pl = this.#patternList;
|
|
180
|
+
return this.#isAbsolute !== undefined
|
|
181
|
+
? this.#isAbsolute
|
|
182
|
+
: (this.#isAbsolute =
|
|
183
|
+
(pl[0] === '' && pl.length > 1) ||
|
|
184
|
+
this.isDrive() ||
|
|
185
|
+
this.isUNC());
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* consume the root of the pattern, and return it
|
|
189
|
+
*/
|
|
190
|
+
root() {
|
|
191
|
+
const p = this.#patternList[0];
|
|
192
|
+
return typeof p === 'string' && this.isAbsolute() && this.#index === 0
|
|
193
|
+
? p
|
|
194
|
+
: '';
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Check to see if the current globstar pattern is allowed to follow
|
|
198
|
+
* a symbolic link.
|
|
199
|
+
*/
|
|
200
|
+
checkFollowGlobstar() {
|
|
201
|
+
return !(this.#index === 0 ||
|
|
202
|
+
!this.isGlobstar() ||
|
|
203
|
+
!this.#followGlobstar);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Mark that the current globstar pattern is following a symbolic link
|
|
207
|
+
*/
|
|
208
|
+
markFollowGlobstar() {
|
|
209
|
+
if (this.#index === 0 || !this.isGlobstar() || !this.#followGlobstar)
|
|
210
|
+
return false;
|
|
211
|
+
this.#followGlobstar = false;
|
|
212
|
+
return true;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
//# sourceMappingURL=pattern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pattern.js","sourceRoot":"","sources":["../../src/pattern.ts"],"names":[],"mappings":"AAAA,yEAAyE;AAEzE,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAgBpC,MAAM,aAAa,GAAG,CAAC,EAAe,EAAqB,EAAE,CAC3D,EAAE,CAAC,MAAM,IAAI,CAAC,CAAA;AAChB,MAAM,UAAU,GAAG,CAAC,EAAY,EAAkB,EAAE,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,CAAA;AAEnE;;;GAGG;AACH,MAAM,OAAO,OAAO;IACT,YAAY,CAAa;IACzB,SAAS,CAAU;IACnB,MAAM,CAAQ;IACd,MAAM,CAAQ;IACd,SAAS,CAAiB;IACnC,KAAK,CAAiB;IACtB,WAAW,CAAS;IACpB,QAAQ,CAAU;IAClB,MAAM,CAAU;IAChB,WAAW,CAAU;IACrB,eAAe,GAAY,IAAI,CAAA;IAE/B,YACE,WAAwB,EACxB,QAAkB,EAClB,KAAa,EACb,QAAyB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I,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,eAAe;YAClE,OAAO,KAAK,CAAA;QACd,IAAI,CAAC,eAAe,GAAG,KAAK,CAAA;QAC5B,OAAO,IAAI,CAAA;IACb,CAAC;CACF","sourcesContent":["// this is just a very light wrapper around 2 arrays with an offset index\n\nimport { GLOBSTAR } from 'minimatch'\nexport type MMPattern = string | RegExp | typeof GLOBSTAR\n\n// an array of length >= 1\nexport type PatternList = [p: MMPattern, ...rest: MMPattern[]]\nexport type UNCPatternList = [\n p0: '',\n p1: '',\n p2: string,\n p3: string,\n ...rest: MMPattern[]\n]\nexport type DrivePatternList = [p0: string, ...rest: MMPattern[]]\nexport type AbsolutePatternList = [p0: '', ...rest: MMPattern[]]\nexport type GlobList = [p: string, ...rest: string[]]\n\nconst isPatternList = (pl: MMPattern[]): pl is PatternList =>\n pl.length >= 1\nconst isGlobList = (gl: string[]): gl is GlobList => gl.length >= 1\n\n/**\n * An immutable-ish view on an array of glob parts and their parsed\n * results\n */\nexport class Pattern {\n readonly #patternList: PatternList\n readonly #globList: GlobList\n readonly #index: number\n readonly length: number\n readonly #platform: NodeJS.Platform\n #rest?: Pattern | null\n #globString?: string\n #isDrive?: boolean\n #isUNC?: boolean\n #isAbsolute?: boolean\n #followGlobstar: boolean = true\n\n constructor(\n patternList: MMPattern[],\n globList: string[],\n index: number,\n platform: NodeJS.Platform\n ) {\n if (!isPatternList(patternList)) {\n throw new TypeError('empty pattern list')\n }\n if (!isGlobList(globList)) {\n throw new TypeError('empty glob list')\n }\n if (globList.length !== patternList.length) {\n throw new TypeError('mismatched pattern list and glob list lengths')\n }\n this.length = patternList.length\n if (index < 0 || index >= this.length) {\n throw new TypeError('index out of range')\n }\n this.#patternList = patternList\n this.#globList = globList\n this.#index = index\n this.#platform = platform\n\n // normalize root entries of absolute patterns on initial creation.\n if (this.#index === 0) {\n // c: => ['c:/']\n // C:/ => ['C:/']\n // C:/x => ['C:/', 'x']\n // //host/share => ['//host/share/']\n // //host/share/ => ['//host/share/']\n // //host/share/x => ['//host/share/', 'x']\n // /etc => ['/', 'etc']\n // / => ['/']\n if (this.isUNC()) {\n // '' / '' / 'host' / 'share'\n const [p0, p1, p2, p3, ...prest] = this.#patternList\n const [g0, g1, g2, g3, ...grest] = this.#globList\n if (prest[0] === '') {\n // ends in /\n prest.shift()\n grest.shift()\n }\n const p = [p0, p1, p2, p3, ''].join('/')\n const g = [g0, g1, g2, g3, ''].join('/')\n this.#patternList = [p, ...prest]\n this.#globList = [g, ...grest]\n this.length = this.#patternList.length\n } else if (this.isDrive() || this.isAbsolute()) {\n const [p1, ...prest] = this.#patternList\n const [g1, ...grest] = this.#globList\n if (prest[0] === '') {\n // ends in /\n prest.shift()\n grest.shift()\n }\n const p = (p1 as string) + '/'\n const g = g1 + '/'\n this.#patternList = [p, ...prest]\n this.#globList = [g, ...grest]\n this.length = this.#patternList.length\n }\n }\n }\n\n /**\n * The first entry in the parsed list of patterns\n */\n pattern(): MMPattern {\n return this.#patternList[this.#index] as MMPattern\n }\n\n /**\n * true of if pattern() returns a string\n */\n isString(): boolean {\n return typeof this.#patternList[this.#index] === 'string'\n }\n /**\n * true of if pattern() returns GLOBSTAR\n */\n isGlobstar(): boolean {\n return this.#patternList[this.#index] === GLOBSTAR\n }\n /**\n * true if pattern() returns a regexp\n */\n isRegExp(): boolean {\n return this.#patternList[this.#index] instanceof RegExp\n }\n\n /**\n * The /-joined set of glob parts that make up this pattern\n */\n globString(): string {\n return (this.#globString =\n this.#globString ||\n (this.#index === 0\n ? this.isAbsolute()\n ? this.#globList[0] + this.#globList.slice(1).join('/')\n : this.#globList.join('/')\n : this.#globList.slice(this.#index).join('/')))\n }\n\n /**\n * true if there are more pattern parts after this one\n */\n hasMore(): boolean {\n return this.length > this.#index + 1\n }\n\n /**\n * The rest of the pattern after this part, or null if this is the end\n */\n rest(): Pattern | null {\n if (this.#rest !== undefined) return this.#rest\n if (!this.hasMore()) return (this.#rest = null)\n this.#rest = new Pattern(\n this.#patternList,\n this.#globList,\n this.#index + 1,\n this.#platform\n )\n this.#rest.#isAbsolute = this.#isAbsolute\n this.#rest.#isUNC = this.#isUNC\n this.#rest.#isDrive = this.#isDrive\n return this.#rest\n }\n\n /**\n * true if the pattern represents a //unc/path/ on windows\n */\n isUNC(): boolean {\n const pl = this.#patternList\n return this.#isUNC !== undefined\n ? this.#isUNC\n : (this.#isUNC =\n this.#platform === 'win32' &&\n this.#index === 0 &&\n pl[0] === '' &&\n pl[1] === '' &&\n typeof pl[2] === 'string' &&\n !!pl[2] &&\n typeof pl[3] === 'string' &&\n !!pl[3])\n }\n\n // pattern like C:/...\n // split = ['C:', ...]\n // XXX: would be nice to handle patterns like `c:*` to test the cwd\n // in c: for *, but I don't know of a way to even figure out what that\n // cwd is without actually chdir'ing into it?\n /**\n * True if the pattern starts with a drive letter on Windows\n */\n isDrive(): boolean {\n const pl = this.#patternList\n return this.#isDrive !== undefined\n ? this.#isDrive\n : (this.#isDrive =\n this.#platform === 'win32' &&\n this.#index === 0 &&\n this.length > 1 &&\n typeof pl[0] === 'string' &&\n /^[a-z]:$/i.test(pl[0]))\n }\n\n // pattern = '/' or '/...' or '/x/...'\n // split = ['', ''] or ['', ...] or ['', 'x', ...]\n // Drive and UNC both considered absolute on windows\n /**\n * True if the pattern is rooted on an absolute path\n */\n isAbsolute(): boolean {\n const pl = this.#patternList\n return this.#isAbsolute !== undefined\n ? this.#isAbsolute\n : (this.#isAbsolute =\n (pl[0] === '' && pl.length > 1) ||\n this.isDrive() ||\n this.isUNC())\n }\n\n /**\n * consume the root of the pattern, and return it\n */\n root(): string {\n const p = this.#patternList[0]\n return typeof p === 'string' && this.isAbsolute() && this.#index === 0\n ? p\n : ''\n }\n\n /**\n * Check to see if the current globstar pattern is allowed to follow\n * a symbolic link.\n */\n checkFollowGlobstar(): boolean {\n return !(\n this.#index === 0 ||\n !this.isGlobstar() ||\n !this.#followGlobstar\n )\n }\n\n /**\n * Mark that the current globstar pattern is following a symbolic link\n */\n markFollowGlobstar(): boolean {\n if (this.#index === 0 || !this.isGlobstar() || !this.#followGlobstar)\n return false\n this.#followGlobstar = false\n return true\n }\n}\n"]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { MMRegExp } from 'minimatch';
|
|
2
|
+
import { Path } from 'path-scurry';
|
|
3
|
+
import { Pattern } from './pattern.js';
|
|
4
|
+
import { GlobWalkerOpts } from './walker.js';
|
|
5
|
+
/**
|
|
6
|
+
* A cache of which patterns have been processed for a given Path
|
|
7
|
+
*/
|
|
8
|
+
export declare class HasWalkedCache {
|
|
9
|
+
store: Map<string, Set<string>>;
|
|
10
|
+
constructor(store?: Map<string, Set<string>>);
|
|
11
|
+
copy(): HasWalkedCache;
|
|
12
|
+
hasWalked(target: Path, pattern: Pattern): boolean | undefined;
|
|
13
|
+
storeWalked(target: Path, pattern: Pattern): void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A record of which paths have been matched in a given walk step,
|
|
17
|
+
* and whether they only are considered a match if they are a directory,
|
|
18
|
+
* and whether their absolute or relative path should be returned.
|
|
19
|
+
*/
|
|
20
|
+
export declare class MatchRecord {
|
|
21
|
+
store: Map<Path, number>;
|
|
22
|
+
add(target: Path, absolute: boolean, ifDir: boolean): void;
|
|
23
|
+
entries(): [Path, boolean, boolean][];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A collection of patterns that must be processed in a subsequent step
|
|
27
|
+
* for a given path.
|
|
28
|
+
*/
|
|
29
|
+
export declare class SubWalks {
|
|
30
|
+
store: Map<Path, Pattern[]>;
|
|
31
|
+
add(target: Path, pattern: Pattern): void;
|
|
32
|
+
get(target: Path): Pattern[];
|
|
33
|
+
entries(): [Path, Pattern[]][];
|
|
34
|
+
keys(): Path[];
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The class that processes patterns for a given path.
|
|
38
|
+
*
|
|
39
|
+
* Handles child entry filtering, and determining whether a path's
|
|
40
|
+
* directory contents must be read.
|
|
41
|
+
*/
|
|
42
|
+
export declare class Processor {
|
|
43
|
+
hasWalkedCache: HasWalkedCache;
|
|
44
|
+
matches: MatchRecord;
|
|
45
|
+
subwalks: SubWalks;
|
|
46
|
+
patterns?: Pattern[];
|
|
47
|
+
follow: boolean;
|
|
48
|
+
dot: boolean;
|
|
49
|
+
opts: GlobWalkerOpts;
|
|
50
|
+
constructor(opts: GlobWalkerOpts, hasWalkedCache?: HasWalkedCache);
|
|
51
|
+
processPatterns(target: Path, patterns: Pattern[]): this;
|
|
52
|
+
subwalkTargets(): Path[];
|
|
53
|
+
child(): Processor;
|
|
54
|
+
filterEntries(parent: Path, entries: Path[]): Processor;
|
|
55
|
+
testGlobstar(e: Path, pattern: Pattern, rest: Pattern | null, absolute: boolean): void;
|
|
56
|
+
testRegExp(e: Path, p: MMRegExp, rest: Pattern | null, absolute: boolean): void;
|
|
57
|
+
testString(e: Path, p: string, rest: Pattern | null, absolute: boolean): void;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=processor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../src/processor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,QAAQ,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAa,OAAO,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,qBAAa,cAAc;IACzB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAA;gBACnB,KAAK,GAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAa;IAGvD,IAAI;IAGJ,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO;IAGxC,WAAW,CA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