@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,585 @@
|
|
|
1
|
+
// parse a single path portion
|
|
2
|
+
import { parseClass } from './brace-expressions.js';
|
|
3
|
+
import { unescape } from './unescape.js';
|
|
4
|
+
const types = new Set(['!', '?', '+', '*', '@']);
|
|
5
|
+
const isExtglobType = (c) => types.has(c);
|
|
6
|
+
// Patterns that get prepended to bind to the start of either the
|
|
7
|
+
// entire string, or just a single path portion, to prevent dots
|
|
8
|
+
// and/or traversal patterns, when needed.
|
|
9
|
+
// Exts don't need the ^ or / bit, because the root binds that already.
|
|
10
|
+
const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))';
|
|
11
|
+
const startNoDot = '(?!\\.)';
|
|
12
|
+
// characters that indicate a start of pattern needs the "no dots" bit,
|
|
13
|
+
// because a dot *might* be matched. ( is not in the list, because in
|
|
14
|
+
// the case of a child extglob, it will handle the prevention itself.
|
|
15
|
+
const addPatternStart = new Set(['[', '.']);
|
|
16
|
+
// cases where traversal is A-OK, no dot prevention needed
|
|
17
|
+
const justDots = new Set(['..', '.']);
|
|
18
|
+
const reSpecials = new Set('().*{}+?[]^$\\!');
|
|
19
|
+
const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
|
|
20
|
+
// any single thing other than /
|
|
21
|
+
const qmark = '[^/]';
|
|
22
|
+
// * => any number of characters
|
|
23
|
+
const star = qmark + '*?';
|
|
24
|
+
// use + when we need to ensure that *something* matches, because the * is
|
|
25
|
+
// the only thing in the path portion.
|
|
26
|
+
const starNoEmpty = qmark + '+?';
|
|
27
|
+
// remove the \ chars that we added if we end up doing a nonmagic compare
|
|
28
|
+
// const deslash = (s: string) => s.replace(/\\(.)/g, '$1')
|
|
29
|
+
export class AST {
|
|
30
|
+
type;
|
|
31
|
+
#root;
|
|
32
|
+
#hasMagic;
|
|
33
|
+
#uflag = false;
|
|
34
|
+
#parts = [];
|
|
35
|
+
#parent;
|
|
36
|
+
#parentIndex;
|
|
37
|
+
#negs;
|
|
38
|
+
#filledNegs = false;
|
|
39
|
+
#options;
|
|
40
|
+
#toString;
|
|
41
|
+
// set to true if it's an extglob with no children
|
|
42
|
+
// (which really means one child of '')
|
|
43
|
+
#emptyExt = false;
|
|
44
|
+
constructor(type, parent, options = {}) {
|
|
45
|
+
this.type = type;
|
|
46
|
+
// extglobs are inherently magical
|
|
47
|
+
if (type)
|
|
48
|
+
this.#hasMagic = true;
|
|
49
|
+
this.#parent = parent;
|
|
50
|
+
this.#root = this.#parent ? this.#parent.#root : this;
|
|
51
|
+
this.#options = this.#root === this ? options : this.#root.#options;
|
|
52
|
+
this.#negs = this.#root === this ? [] : this.#root.#negs;
|
|
53
|
+
if (type === '!' && !this.#root.#filledNegs)
|
|
54
|
+
this.#negs.push(this);
|
|
55
|
+
this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
|
|
56
|
+
}
|
|
57
|
+
get hasMagic() {
|
|
58
|
+
/* c8 ignore start */
|
|
59
|
+
if (this.#hasMagic !== undefined)
|
|
60
|
+
return this.#hasMagic;
|
|
61
|
+
/* c8 ignore stop */
|
|
62
|
+
for (const p of this.#parts) {
|
|
63
|
+
if (typeof p === 'string')
|
|
64
|
+
continue;
|
|
65
|
+
if (p.type || p.hasMagic)
|
|
66
|
+
return (this.#hasMagic = true);
|
|
67
|
+
}
|
|
68
|
+
// note: will be undefined until we generate the regexp src and find out
|
|
69
|
+
return this.#hasMagic;
|
|
70
|
+
}
|
|
71
|
+
// reconstructs the pattern
|
|
72
|
+
toString() {
|
|
73
|
+
if (this.#toString !== undefined)
|
|
74
|
+
return this.#toString;
|
|
75
|
+
if (!this.type) {
|
|
76
|
+
return (this.#toString = this.#parts.map(p => String(p)).join(''));
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
return (this.#toString =
|
|
80
|
+
this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
#fillNegs() {
|
|
84
|
+
/* c8 ignore start */
|
|
85
|
+
if (this !== this.#root)
|
|
86
|
+
throw new Error('should only call on root');
|
|
87
|
+
if (this.#filledNegs)
|
|
88
|
+
return this;
|
|
89
|
+
/* c8 ignore stop */
|
|
90
|
+
// call toString() once to fill this out
|
|
91
|
+
this.toString();
|
|
92
|
+
this.#filledNegs = true;
|
|
93
|
+
let n;
|
|
94
|
+
while ((n = this.#negs.pop())) {
|
|
95
|
+
if (n.type !== '!')
|
|
96
|
+
continue;
|
|
97
|
+
// walk up the tree, appending everthing that comes AFTER parentIndex
|
|
98
|
+
let p = n;
|
|
99
|
+
let pp = p.#parent;
|
|
100
|
+
while (pp) {
|
|
101
|
+
for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
|
|
102
|
+
for (const part of n.#parts) {
|
|
103
|
+
/* c8 ignore start */
|
|
104
|
+
if (typeof part === 'string') {
|
|
105
|
+
throw new Error('string part in extglob AST??');
|
|
106
|
+
}
|
|
107
|
+
/* c8 ignore stop */
|
|
108
|
+
part.copyIn(pp.#parts[i]);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
p = pp;
|
|
112
|
+
pp = p.#parent;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return this;
|
|
116
|
+
}
|
|
117
|
+
push(...parts) {
|
|
118
|
+
for (const p of parts) {
|
|
119
|
+
if (p === '')
|
|
120
|
+
continue;
|
|
121
|
+
/* c8 ignore start */
|
|
122
|
+
if (typeof p !== 'string' && !(p instanceof AST && p.#parent === this)) {
|
|
123
|
+
throw new Error('invalid part: ' + p);
|
|
124
|
+
}
|
|
125
|
+
/* c8 ignore stop */
|
|
126
|
+
this.#parts.push(p);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
toJSON() {
|
|
130
|
+
const ret = this.type === null
|
|
131
|
+
? this.#parts.slice().map(p => (typeof p === 'string' ? p : p.toJSON()))
|
|
132
|
+
: [this.type, ...this.#parts.map(p => p.toJSON())];
|
|
133
|
+
if (this.isStart() && !this.type)
|
|
134
|
+
ret.unshift([]);
|
|
135
|
+
if (this.isEnd() &&
|
|
136
|
+
(this === this.#root ||
|
|
137
|
+
(this.#root.#filledNegs && this.#parent?.type === '!'))) {
|
|
138
|
+
ret.push({});
|
|
139
|
+
}
|
|
140
|
+
return ret;
|
|
141
|
+
}
|
|
142
|
+
isStart() {
|
|
143
|
+
if (this.#root === this)
|
|
144
|
+
return true;
|
|
145
|
+
// if (this.type) return !!this.#parent?.isStart()
|
|
146
|
+
if (!this.#parent?.isStart())
|
|
147
|
+
return false;
|
|
148
|
+
if (this.#parentIndex === 0)
|
|
149
|
+
return true;
|
|
150
|
+
// if everything AHEAD of this is a negation, then it's still the "start"
|
|
151
|
+
const p = this.#parent;
|
|
152
|
+
for (let i = 0; i < this.#parentIndex; i++) {
|
|
153
|
+
const pp = p.#parts[i];
|
|
154
|
+
if (!(pp instanceof AST && pp.type === '!')) {
|
|
155
|
+
return false;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return true;
|
|
159
|
+
}
|
|
160
|
+
isEnd() {
|
|
161
|
+
if (this.#root === this)
|
|
162
|
+
return true;
|
|
163
|
+
if (this.#parent?.type === '!')
|
|
164
|
+
return true;
|
|
165
|
+
if (!this.#parent?.isEnd())
|
|
166
|
+
return false;
|
|
167
|
+
if (!this.type)
|
|
168
|
+
return this.#parent?.isEnd();
|
|
169
|
+
// if not root, it'll always have a parent
|
|
170
|
+
/* c8 ignore start */
|
|
171
|
+
const pl = this.#parent ? this.#parent.#parts.length : 0;
|
|
172
|
+
/* c8 ignore stop */
|
|
173
|
+
return this.#parentIndex === pl - 1;
|
|
174
|
+
}
|
|
175
|
+
copyIn(part) {
|
|
176
|
+
if (typeof part === 'string')
|
|
177
|
+
this.push(part);
|
|
178
|
+
else
|
|
179
|
+
this.push(part.clone(this));
|
|
180
|
+
}
|
|
181
|
+
clone(parent) {
|
|
182
|
+
const c = new AST(this.type, parent);
|
|
183
|
+
for (const p of this.#parts) {
|
|
184
|
+
c.copyIn(p);
|
|
185
|
+
}
|
|
186
|
+
return c;
|
|
187
|
+
}
|
|
188
|
+
static #parseAST(str, ast, pos, opt) {
|
|
189
|
+
let escaping = false;
|
|
190
|
+
let inBrace = false;
|
|
191
|
+
let braceStart = -1;
|
|
192
|
+
let braceNeg = false;
|
|
193
|
+
if (ast.type === null) {
|
|
194
|
+
// outside of a extglob, append until we find a start
|
|
195
|
+
let i = pos;
|
|
196
|
+
let acc = '';
|
|
197
|
+
while (i < str.length) {
|
|
198
|
+
const c = str.charAt(i++);
|
|
199
|
+
// still accumulate escapes at this point, but we do ignore
|
|
200
|
+
// starts that are escaped
|
|
201
|
+
if (escaping || c === '\\') {
|
|
202
|
+
escaping = !escaping;
|
|
203
|
+
acc += c;
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
206
|
+
if (inBrace) {
|
|
207
|
+
if (i === braceStart + 1) {
|
|
208
|
+
if (c === '^' || c === '!') {
|
|
209
|
+
braceNeg = true;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
|
|
213
|
+
inBrace = false;
|
|
214
|
+
}
|
|
215
|
+
acc += c;
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
else if (c === '[') {
|
|
219
|
+
inBrace = true;
|
|
220
|
+
braceStart = i;
|
|
221
|
+
braceNeg = false;
|
|
222
|
+
acc += c;
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
225
|
+
if (!opt.noext && isExtglobType(c) && str.charAt(i) === '(') {
|
|
226
|
+
ast.push(acc);
|
|
227
|
+
acc = '';
|
|
228
|
+
const ext = new AST(c, ast);
|
|
229
|
+
i = AST.#parseAST(str, ext, i, opt);
|
|
230
|
+
ast.push(ext);
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
acc += c;
|
|
234
|
+
}
|
|
235
|
+
ast.push(acc);
|
|
236
|
+
return i;
|
|
237
|
+
}
|
|
238
|
+
// some kind of extglob, pos is at the (
|
|
239
|
+
// find the next | or )
|
|
240
|
+
let i = pos + 1;
|
|
241
|
+
let part = new AST(null, ast);
|
|
242
|
+
const parts = [];
|
|
243
|
+
let acc = '';
|
|
244
|
+
while (i < str.length) {
|
|
245
|
+
const c = str.charAt(i++);
|
|
246
|
+
// still accumulate escapes at this point, but we do ignore
|
|
247
|
+
// starts that are escaped
|
|
248
|
+
if (escaping || c === '\\') {
|
|
249
|
+
escaping = !escaping;
|
|
250
|
+
acc += c;
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
if (inBrace) {
|
|
254
|
+
if (i === braceStart + 1) {
|
|
255
|
+
if (c === '^' || c === '!') {
|
|
256
|
+
braceNeg = true;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
|
|
260
|
+
inBrace = false;
|
|
261
|
+
}
|
|
262
|
+
acc += c;
|
|
263
|
+
continue;
|
|
264
|
+
}
|
|
265
|
+
else if (c === '[') {
|
|
266
|
+
inBrace = true;
|
|
267
|
+
braceStart = i;
|
|
268
|
+
braceNeg = false;
|
|
269
|
+
acc += c;
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
272
|
+
if (isExtglobType(c) && str.charAt(i) === '(') {
|
|
273
|
+
part.push(acc);
|
|
274
|
+
acc = '';
|
|
275
|
+
const ext = new AST(c, part);
|
|
276
|
+
part.push(ext);
|
|
277
|
+
i = AST.#parseAST(str, ext, i, opt);
|
|
278
|
+
continue;
|
|
279
|
+
}
|
|
280
|
+
if (c === '|') {
|
|
281
|
+
part.push(acc);
|
|
282
|
+
acc = '';
|
|
283
|
+
parts.push(part);
|
|
284
|
+
part = new AST(null, ast);
|
|
285
|
+
continue;
|
|
286
|
+
}
|
|
287
|
+
if (c === ')') {
|
|
288
|
+
if (acc === '' && ast.#parts.length === 0) {
|
|
289
|
+
ast.#emptyExt = true;
|
|
290
|
+
}
|
|
291
|
+
part.push(acc);
|
|
292
|
+
acc = '';
|
|
293
|
+
ast.push(...parts, part);
|
|
294
|
+
return i;
|
|
295
|
+
}
|
|
296
|
+
acc += c;
|
|
297
|
+
}
|
|
298
|
+
// unfinished extglob
|
|
299
|
+
// if we got here, it was a malformed extglob! not an extglob, but
|
|
300
|
+
// maybe something else in there.
|
|
301
|
+
ast.type = null;
|
|
302
|
+
ast.#hasMagic = undefined;
|
|
303
|
+
ast.#parts = [str.substring(pos - 1)];
|
|
304
|
+
return i;
|
|
305
|
+
}
|
|
306
|
+
static fromGlob(pattern, options = {}) {
|
|
307
|
+
const ast = new AST(null, undefined, options);
|
|
308
|
+
AST.#parseAST(pattern, ast, 0, options);
|
|
309
|
+
return ast;
|
|
310
|
+
}
|
|
311
|
+
// returns the regular expression if there's magic, or the unescaped
|
|
312
|
+
// string if not.
|
|
313
|
+
toMMPattern() {
|
|
314
|
+
// should only be called on root
|
|
315
|
+
/* c8 ignore start */
|
|
316
|
+
if (this !== this.#root)
|
|
317
|
+
return this.#root.toMMPattern();
|
|
318
|
+
/* c8 ignore stop */
|
|
319
|
+
const glob = this.toString();
|
|
320
|
+
const [re, body, hasMagic, uflag] = this.toRegExpSource();
|
|
321
|
+
// if we're in nocase mode, and not nocaseMagicOnly, then we do
|
|
322
|
+
// still need a regular expression if we have to case-insensitively
|
|
323
|
+
// match capital/lowercase characters.
|
|
324
|
+
const anyMagic = hasMagic ||
|
|
325
|
+
this.#hasMagic ||
|
|
326
|
+
(this.#options.nocase &&
|
|
327
|
+
!this.#options.nocaseMagicOnly &&
|
|
328
|
+
glob.toUpperCase() !== glob.toLowerCase());
|
|
329
|
+
if (!anyMagic) {
|
|
330
|
+
return body;
|
|
331
|
+
}
|
|
332
|
+
const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '');
|
|
333
|
+
return Object.assign(new RegExp(`^${re}$`, flags), {
|
|
334
|
+
_src: re,
|
|
335
|
+
_glob: glob,
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
// returns the string match, the regexp source, whether there's magic
|
|
339
|
+
// in the regexp (so a regular expression is required) and whether or
|
|
340
|
+
// not the uflag is needed for the regular expression (for posix classes)
|
|
341
|
+
// TODO: instead of injecting the start/end at this point, just return
|
|
342
|
+
// the BODY of the regexp, along with the start/end portions suitable
|
|
343
|
+
// for binding the start/end in either a joined full-path makeRe context
|
|
344
|
+
// (where we bind to (^|/), or a standalone matchPart context (where
|
|
345
|
+
// we bind to ^, and not /). Otherwise slashes get duped!
|
|
346
|
+
//
|
|
347
|
+
// In part-matching mode, the start is:
|
|
348
|
+
// - if not isStart: nothing
|
|
349
|
+
// - if traversal possible, but not allowed: ^(?!\.\.?$)
|
|
350
|
+
// - if dots allowed or not possible: ^
|
|
351
|
+
// - if dots possible and not allowed: ^(?!\.)
|
|
352
|
+
// end is:
|
|
353
|
+
// - if not isEnd(): nothing
|
|
354
|
+
// - else: $
|
|
355
|
+
//
|
|
356
|
+
// In full-path matching mode, we put the slash at the START of the
|
|
357
|
+
// pattern, so start is:
|
|
358
|
+
// - if first pattern: same as part-matching mode
|
|
359
|
+
// - if not isStart(): nothing
|
|
360
|
+
// - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
|
|
361
|
+
// - if dots allowed or not possible: /
|
|
362
|
+
// - if dots possible and not allowed: /(?!\.)
|
|
363
|
+
// end is:
|
|
364
|
+
// - if last pattern, same as part-matching mode
|
|
365
|
+
// - else nothing
|
|
366
|
+
//
|
|
367
|
+
// Always put the (?:$|/) on negated tails, though, because that has to be
|
|
368
|
+
// there to bind the end of the negated pattern portion, and it's easier to
|
|
369
|
+
// just stick it in now rather than try to inject it later in the middle of
|
|
370
|
+
// the pattern.
|
|
371
|
+
//
|
|
372
|
+
// We can just always return the same end, and leave it up to the caller
|
|
373
|
+
// to know whether it's going to be used joined or in parts.
|
|
374
|
+
// And, if the start is adjusted slightly, can do the same there:
|
|
375
|
+
// - if not isStart: nothing
|
|
376
|
+
// - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
|
|
377
|
+
// - if dots allowed or not possible: (?:/|^)
|
|
378
|
+
// - if dots possible and not allowed: (?:/|^)(?!\.)
|
|
379
|
+
//
|
|
380
|
+
// But it's better to have a simpler binding without a conditional, for
|
|
381
|
+
// performance, so probably better to return both start options.
|
|
382
|
+
//
|
|
383
|
+
// Then the caller just ignores the end if it's not the first pattern,
|
|
384
|
+
// and the start always gets applied.
|
|
385
|
+
//
|
|
386
|
+
// But that's always going to be $ if it's the ending pattern, or nothing,
|
|
387
|
+
// so the caller can just attach $ at the end of the pattern when building.
|
|
388
|
+
//
|
|
389
|
+
// So the todo is:
|
|
390
|
+
// - better detect what kind of start is needed
|
|
391
|
+
// - return both flavors of starting pattern
|
|
392
|
+
// - attach $ at the end of the pattern when creating the actual RegExp
|
|
393
|
+
//
|
|
394
|
+
// Ah, but wait, no, that all only applies to the root when the first pattern
|
|
395
|
+
// is not an extglob. If the first pattern IS an extglob, then we need all
|
|
396
|
+
// that dot prevention biz to live in the extglob portions, because eg
|
|
397
|
+
// +(*|.x*) can match .xy but not .yx.
|
|
398
|
+
//
|
|
399
|
+
// So, return the two flavors if it's #root and the first child is not an
|
|
400
|
+
// AST, otherwise leave it to the child AST to handle it, and there,
|
|
401
|
+
// use the (?:^|/) style of start binding.
|
|
402
|
+
//
|
|
403
|
+
// Even simplified further:
|
|
404
|
+
// - Since the start for a join is eg /(?!\.) and the start for a part
|
|
405
|
+
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
|
|
406
|
+
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
407
|
+
toRegExpSource(allowDot) {
|
|
408
|
+
const dot = allowDot ?? !!this.#options.dot;
|
|
409
|
+
if (this.#root === this)
|
|
410
|
+
this.#fillNegs();
|
|
411
|
+
if (!this.type) {
|
|
412
|
+
const noEmpty = this.isStart() && this.isEnd();
|
|
413
|
+
const src = this.#parts
|
|
414
|
+
.map(p => {
|
|
415
|
+
const [re, _, hasMagic, uflag] = typeof p === 'string'
|
|
416
|
+
? AST.#parseGlob(p, this.#hasMagic, noEmpty)
|
|
417
|
+
: p.toRegExpSource(allowDot);
|
|
418
|
+
this.#hasMagic = this.#hasMagic || hasMagic;
|
|
419
|
+
this.#uflag = this.#uflag || uflag;
|
|
420
|
+
return re;
|
|
421
|
+
})
|
|
422
|
+
.join('');
|
|
423
|
+
let start = '';
|
|
424
|
+
if (this.isStart()) {
|
|
425
|
+
if (typeof this.#parts[0] === 'string') {
|
|
426
|
+
// this is the string that will match the start of the pattern,
|
|
427
|
+
// so we need to protect against dots and such.
|
|
428
|
+
// '.' and '..' cannot match unless the pattern is that exactly,
|
|
429
|
+
// even if it starts with . or dot:true is set.
|
|
430
|
+
const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
|
|
431
|
+
if (!dotTravAllowed) {
|
|
432
|
+
const aps = addPatternStart;
|
|
433
|
+
// check if we have a possibility of matching . or ..,
|
|
434
|
+
// and prevent that.
|
|
435
|
+
const needNoTrav =
|
|
436
|
+
// dots are allowed, and the pattern starts with [ or .
|
|
437
|
+
(dot && aps.has(src.charAt(0))) ||
|
|
438
|
+
// the pattern starts with \., and then [ or .
|
|
439
|
+
(src.startsWith('\\.') && aps.has(src.charAt(2))) ||
|
|
440
|
+
// the pattern starts with \.\., and then [ or .
|
|
441
|
+
(src.startsWith('\\.\\.') && aps.has(src.charAt(4)));
|
|
442
|
+
// no need to prevent dots if it can't match a dot, or if a
|
|
443
|
+
// sub-pattern will be preventing it anyway.
|
|
444
|
+
const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
|
|
445
|
+
start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : '';
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
// append the "end of path portion" pattern to negation tails
|
|
450
|
+
let end = '';
|
|
451
|
+
if (this.isEnd() &&
|
|
452
|
+
this.#root.#filledNegs &&
|
|
453
|
+
this.#parent?.type === '!') {
|
|
454
|
+
end = '(?:$|\\/)';
|
|
455
|
+
}
|
|
456
|
+
const final = start + src + end;
|
|
457
|
+
return [
|
|
458
|
+
final,
|
|
459
|
+
unescape(src),
|
|
460
|
+
(this.#hasMagic = !!this.#hasMagic),
|
|
461
|
+
this.#uflag,
|
|
462
|
+
];
|
|
463
|
+
}
|
|
464
|
+
// We need to calculate the body *twice* if it's a repeat pattern
|
|
465
|
+
// at the start, once in nodot mode, then again in dot mode, so a
|
|
466
|
+
// pattern like *(?) can match 'x.y'
|
|
467
|
+
const repeated = this.type === '*' || this.type === '+';
|
|
468
|
+
// some kind of extglob
|
|
469
|
+
const start = this.type === '!' ? '(?:(?!(?:' : '(?:';
|
|
470
|
+
let body = this.#partsToRegExp(dot);
|
|
471
|
+
if (this.isStart() && this.isEnd() && !body && this.type !== '!') {
|
|
472
|
+
// invalid extglob, has to at least be *something* present, if it's
|
|
473
|
+
// the entire path portion.
|
|
474
|
+
const s = this.toString();
|
|
475
|
+
this.#parts = [s];
|
|
476
|
+
this.type = null;
|
|
477
|
+
this.#hasMagic = undefined;
|
|
478
|
+
return [s, unescape(this.toString()), false, false];
|
|
479
|
+
}
|
|
480
|
+
// XXX abstract out this map method
|
|
481
|
+
let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot
|
|
482
|
+
? ''
|
|
483
|
+
: this.#partsToRegExp(true);
|
|
484
|
+
if (bodyDotAllowed === body) {
|
|
485
|
+
bodyDotAllowed = '';
|
|
486
|
+
}
|
|
487
|
+
if (bodyDotAllowed) {
|
|
488
|
+
body = `(?:${body})(?:${bodyDotAllowed})*?`;
|
|
489
|
+
}
|
|
490
|
+
// an empty !() is exactly equivalent to a starNoEmpty
|
|
491
|
+
let final = '';
|
|
492
|
+
if (this.type === '!' && this.#emptyExt) {
|
|
493
|
+
final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty;
|
|
494
|
+
}
|
|
495
|
+
else {
|
|
496
|
+
const close = this.type === '!'
|
|
497
|
+
? // !() must match something,but !(x) can match ''
|
|
498
|
+
'))' +
|
|
499
|
+
(this.isStart() && !dot && !allowDot ? startNoDot : '') +
|
|
500
|
+
star +
|
|
501
|
+
')'
|
|
502
|
+
: this.type === '@'
|
|
503
|
+
? ')'
|
|
504
|
+
: this.type === '?'
|
|
505
|
+
? ')?'
|
|
506
|
+
: this.type === '+' && bodyDotAllowed
|
|
507
|
+
? ')'
|
|
508
|
+
: this.type === '*' && bodyDotAllowed
|
|
509
|
+
? `)?`
|
|
510
|
+
: `)${this.type}`;
|
|
511
|
+
final = start + body + close;
|
|
512
|
+
}
|
|
513
|
+
return [
|
|
514
|
+
final,
|
|
515
|
+
unescape(body),
|
|
516
|
+
(this.#hasMagic = !!this.#hasMagic),
|
|
517
|
+
this.#uflag,
|
|
518
|
+
];
|
|
519
|
+
}
|
|
520
|
+
#partsToRegExp(dot) {
|
|
521
|
+
return this.#parts
|
|
522
|
+
.map(p => {
|
|
523
|
+
// extglob ASTs should only contain parent ASTs
|
|
524
|
+
/* c8 ignore start */
|
|
525
|
+
if (typeof p === 'string') {
|
|
526
|
+
throw new Error('string type in extglob ast??');
|
|
527
|
+
}
|
|
528
|
+
/* c8 ignore stop */
|
|
529
|
+
// can ignore hasMagic, because extglobs are already always magic
|
|
530
|
+
const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
|
|
531
|
+
this.#uflag = this.#uflag || uflag;
|
|
532
|
+
return re;
|
|
533
|
+
})
|
|
534
|
+
.filter(p => !(this.isStart() && this.isEnd()) || !!p)
|
|
535
|
+
.join('|');
|
|
536
|
+
}
|
|
537
|
+
static #parseGlob(glob, hasMagic, noEmpty = false) {
|
|
538
|
+
let escaping = false;
|
|
539
|
+
let re = '';
|
|
540
|
+
let uflag = false;
|
|
541
|
+
for (let i = 0; i < glob.length; i++) {
|
|
542
|
+
const c = glob.charAt(i);
|
|
543
|
+
if (escaping) {
|
|
544
|
+
escaping = false;
|
|
545
|
+
re += (reSpecials.has(c) ? '\\' : '') + c;
|
|
546
|
+
continue;
|
|
547
|
+
}
|
|
548
|
+
if (c === '\\') {
|
|
549
|
+
if (i === glob.length - 1) {
|
|
550
|
+
re += '\\\\';
|
|
551
|
+
}
|
|
552
|
+
else {
|
|
553
|
+
escaping = true;
|
|
554
|
+
}
|
|
555
|
+
continue;
|
|
556
|
+
}
|
|
557
|
+
if (c === '[') {
|
|
558
|
+
const [src, needUflag, consumed, magic] = parseClass(glob, i);
|
|
559
|
+
if (consumed) {
|
|
560
|
+
re += src;
|
|
561
|
+
uflag = uflag || needUflag;
|
|
562
|
+
i += consumed - 1;
|
|
563
|
+
hasMagic = hasMagic || magic;
|
|
564
|
+
continue;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
if (c === '*') {
|
|
568
|
+
if (noEmpty && glob === '*')
|
|
569
|
+
re += starNoEmpty;
|
|
570
|
+
else
|
|
571
|
+
re += star;
|
|
572
|
+
hasMagic = true;
|
|
573
|
+
continue;
|
|
574
|
+
}
|
|
575
|
+
if (c === '?') {
|
|
576
|
+
re += qmark;
|
|
577
|
+
hasMagic = true;
|
|
578
|
+
continue;
|
|
579
|
+
}
|
|
580
|
+
re += regExpEscape(c);
|
|
581
|
+
}
|
|
582
|
+
return [re, unescape(glob), !!hasMagic, uflag];
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
//# sourceMappingURL=ast.js.map
|