@quilted/create 0.2.43 → 0.2.44
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 +12 -0
- package/build/esm/_virtual/index.mjs +6 -2
- package/build/esm/_virtual/index10.mjs +3 -0
- package/build/esm/_virtual/index11.mjs +3 -0
- package/build/esm/_virtual/index12.mjs +3 -0
- package/build/esm/_virtual/index13.mjs +3 -0
- package/build/esm/_virtual/index2.mjs +2 -2
- package/build/esm/_virtual/index3.mjs +6 -2
- package/build/esm/_virtual/index4.mjs +6 -2
- package/build/esm/_virtual/index5.mjs +6 -2
- package/build/esm/_virtual/index6.mjs +6 -2
- package/build/esm/_virtual/index8.mjs +3 -0
- package/build/esm/_virtual/index9.mjs +3 -0
- package/build/esm/_virtual/minimatch.mjs +12 -0
- package/build/esm/app.mjs +2 -2
- package/build/esm/cli.mjs +1 -1
- package/build/esm/module.mjs +2 -2
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.mjs +29 -21
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.mjs +24 -18
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs +35 -32
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.mjs +103 -101
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.mjs +19 -13
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.mjs +63 -61
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.mjs +33 -27
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.mjs +25 -19
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.mjs +15 -10
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.mjs +27 -19
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.mjs +35 -32
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.mjs +40 -34
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.mjs +27 -21
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.mjs +24 -17
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.mjs +44 -42
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.mjs +37 -30
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.mjs +41 -34
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.mjs +22 -15
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.mjs +104 -99
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.mjs +35 -29
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.mjs +19 -12
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.mjs +65 -60
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.mjs +34 -27
- package/build/esm/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.mjs +116 -112
- package/build/esm/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.mjs +54 -47
- package/build/esm/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.mjs +144 -137
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.mjs +173 -166
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.mjs +57 -51
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.mjs +102 -94
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.mjs +89 -83
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.mjs +312 -305
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.mjs +30 -24
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.mjs +116 -108
- package/build/esm/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.mjs +1 -3
- package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +63 -61
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.mjs +75 -77
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +28 -22
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.mjs +83 -78
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.mjs +31 -25
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.mjs +66 -60
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +66 -59
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.mjs +23 -16
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.mjs +55 -48
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.mjs +40 -33
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.mjs +59 -55
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.mjs +38 -32
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.mjs +31 -25
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.mjs +33 -26
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.mjs +43 -38
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.mjs +41 -35
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.mjs +60 -55
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.mjs +48 -43
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.mjs +65 -57
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.mjs +26 -20
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.mjs +14 -8
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.mjs +25 -19
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.mjs +33 -34
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +39 -33
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.mjs +170 -164
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.mjs +24 -18
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.mjs +18 -12
- package/build/esm/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.mjs +227 -221
- package/build/esm/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.mjs +207 -200
- package/build/esm/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.mjs +1 -6
- package/build/esm/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.mjs +51 -44
- package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.mjs +2 -2
- package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.mjs +3 -3
- package/build/esm/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.mjs +443 -439
- package/build/esm/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.mjs +18 -11
- package/build/esm/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.mjs +116 -109
- package/build/esm/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.mjs +17 -10
- package/build/esm/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.mjs +117 -110
- package/build/esm/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.mjs +457 -451
- package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.mjs +14 -7
- package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.mjs +770 -770
- package/build/esm/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.mjs +40 -34
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.mjs +10 -3
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.mjs +227 -220
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.mjs +941 -935
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.mjs +331 -325
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.mjs +303 -297
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.mjs +65 -57
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.mjs +605 -605
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +378 -394
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +15 -15
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.mjs +281 -294
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +155 -155
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.mjs +17 -12
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.mjs +14 -7
- package/build/esm/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.mjs +29 -22
- package/build/esm/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.mjs +49 -42
- package/build/esm/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.mjs +231 -224
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.mjs +3 -3
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +2 -2
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +2 -2
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +1 -1
- package/build/esm/package.mjs +2 -2
- package/build/esm/packages/cli-kit/build/esnext/prompt.esnext.mjs +1 -1
- package/build/esm/server.mjs +5 -9
- package/build/esm/shared/package-manager.mjs +1 -1
- package/build/esm/shared/prompts.mjs +1 -1
- package/build/esnext/_virtual/index.esnext +6 -2
- package/build/esnext/_virtual/index10.esnext +3 -0
- package/build/esnext/_virtual/index11.esnext +3 -0
- package/build/esnext/_virtual/index12.esnext +3 -0
- package/build/esnext/_virtual/index13.esnext +3 -0
- package/build/esnext/_virtual/index2.esnext +2 -2
- package/build/esnext/_virtual/index3.esnext +6 -2
- package/build/esnext/_virtual/index4.esnext +6 -2
- package/build/esnext/_virtual/index5.esnext +6 -2
- package/build/esnext/_virtual/index6.esnext +6 -2
- package/build/esnext/_virtual/index8.esnext +3 -0
- package/build/esnext/_virtual/index9.esnext +3 -0
- package/build/esnext/_virtual/minimatch.esnext +12 -0
- package/build/esnext/app.esnext +2 -2
- package/build/esnext/module.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.esnext +27 -19
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.esnext +19 -13
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.esnext +33 -30
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.esnext +99 -97
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.esnext +14 -8
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.esnext +59 -57
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.esnext +31 -25
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.esnext +13 -8
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.esnext +25 -17
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.esnext +33 -30
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +38 -32
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +25 -19
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +23 -16
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.esnext +42 -40
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +36 -29
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.esnext +40 -33
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +21 -14
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.esnext +98 -93
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.esnext +30 -24
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.esnext +17 -10
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.esnext +59 -54
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +33 -26
- package/build/esnext/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.esnext +132 -128
- package/build/esnext/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.esnext +54 -47
- package/build/esnext/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.esnext +137 -130
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.esnext +66 -59
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.esnext +53 -47
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.esnext +102 -95
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.esnext +89 -83
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.esnext +217 -210
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.esnext +30 -24
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.esnext +75 -67
- package/build/esnext/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.esnext +1 -3
- package/build/esnext/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.esnext +63 -61
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.esnext +68 -70
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +17 -11
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.esnext +81 -76
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.esnext +29 -23
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.esnext +61 -55
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +61 -54
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.esnext +21 -14
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.esnext +49 -42
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.esnext +31 -24
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.esnext +57 -53
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.esnext +34 -28
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.esnext +29 -23
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.esnext +29 -22
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.esnext +40 -35
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.esnext +39 -33
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.esnext +56 -51
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.esnext +46 -41
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.esnext +59 -51
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.esnext +24 -18
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.esnext +12 -6
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.esnext +31 -32
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +32 -26
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.esnext +135 -129
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.esnext +16 -10
- package/build/esnext/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.esnext +220 -215
- package/build/esnext/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.esnext +193 -186
- package/build/esnext/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.esnext +1 -6
- package/build/esnext/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.esnext +31 -24
- package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.esnext +3 -3
- package/build/esnext/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.esnext +357 -353
- package/build/esnext/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.esnext +18 -11
- package/build/esnext/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.esnext +111 -104
- package/build/esnext/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.esnext +17 -10
- package/build/esnext/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.esnext +103 -96
- package/build/esnext/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.esnext +147 -141
- package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.esnext +10 -3
- package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.esnext +495 -491
- package/build/esnext/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.esnext +38 -32
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.esnext +10 -3
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.esnext +198 -191
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.esnext +683 -677
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.esnext +137 -131
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.esnext +279 -273
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.esnext +65 -57
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +9 -9
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +20 -20
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +15 -15
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +64 -64
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +19 -19
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.esnext +16 -11
- package/build/esnext/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.esnext +12 -5
- package/build/esnext/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.esnext +29 -22
- package/build/esnext/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.esnext +47 -40
- package/build/esnext/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.esnext +196 -189
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-props.esnext +1 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/lexer.esnext +5 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/parser.esnext +4 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.esnext +3 -3
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +1 -1
- package/build/esnext/package.esnext +2 -2
- package/build/esnext/packages/cli-kit/build/esnext/prompt.esnext.esnext +1 -1
- package/build/esnext/server.esnext +5 -9
- package/build/esnext/shared/package-manager.esnext +1 -1
- package/build/esnext/shared/prompts.esnext +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/source/shared/prompts.ts +1 -1
- package/templates/app-basic/package.json +4 -4
- package/templates/app-empty/package.json +3 -3
- package/templates/app-graphql/package.json +4 -4
- package/templates/app-trpc/package.json +4 -4
- package/templates/package/package.json +3 -3
- package/templates/workspace/package.json +4 -4
package/build/esm/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.mjs
CHANGED
|
@@ -1,158 +1,165 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __require as requireBalancedMatch } from '../../../balanced-match@1.0.2/node_modules/balanced-match/index.mjs';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
function parseCommaParts(str) {
|
|
24
|
-
if (!str) return [''];
|
|
25
|
-
var parts = [];
|
|
26
|
-
var m = balanced('{', '}', str);
|
|
27
|
-
if (!m) return str.split(',');
|
|
28
|
-
var pre = m.pre;
|
|
29
|
-
var body = m.body;
|
|
30
|
-
var post = m.post;
|
|
31
|
-
var p = pre.split(',');
|
|
32
|
-
p[p.length - 1] += '{' + body + '}';
|
|
33
|
-
var postParts = parseCommaParts(post);
|
|
34
|
-
if (post.length) {
|
|
35
|
-
p[p.length - 1] += postParts.shift();
|
|
36
|
-
p.push.apply(p, postParts);
|
|
3
|
+
var braceExpansion;
|
|
4
|
+
var hasRequiredBraceExpansion;
|
|
5
|
+
function requireBraceExpansion() {
|
|
6
|
+
if (hasRequiredBraceExpansion) return braceExpansion;
|
|
7
|
+
hasRequiredBraceExpansion = 1;
|
|
8
|
+
var balanced = requireBalancedMatch();
|
|
9
|
+
braceExpansion = expandTop;
|
|
10
|
+
var escSlash = '\0SLASH' + Math.random() + '\0';
|
|
11
|
+
var escOpen = '\0OPEN' + Math.random() + '\0';
|
|
12
|
+
var escClose = '\0CLOSE' + Math.random() + '\0';
|
|
13
|
+
var escComma = '\0COMMA' + Math.random() + '\0';
|
|
14
|
+
var escPeriod = '\0PERIOD' + Math.random() + '\0';
|
|
15
|
+
function numeric(str) {
|
|
16
|
+
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
|
|
17
|
+
}
|
|
18
|
+
function escapeBraces(str) {
|
|
19
|
+
return str.split('\\\\').join(escSlash).split('\\{').join(escOpen).split('\\}').join(escClose).split('\\,').join(escComma).split('\\.').join(escPeriod);
|
|
20
|
+
}
|
|
21
|
+
function unescapeBraces(str) {
|
|
22
|
+
return str.split(escSlash).join('\\').split(escOpen).join('{').split(escClose).join('}').split(escComma).join(',').split(escPeriod).join('.');
|
|
37
23
|
}
|
|
38
|
-
parts.push.apply(parts, p);
|
|
39
|
-
return parts;
|
|
40
|
-
}
|
|
41
|
-
function expandTop(str) {
|
|
42
|
-
if (!str) return [];
|
|
43
24
|
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
25
|
+
// Basically just str.split(","), but handling cases
|
|
26
|
+
// where we have nested braced sections, which should be
|
|
27
|
+
// treated as individual members, like {a,{b,c},d}
|
|
28
|
+
function parseCommaParts(str) {
|
|
29
|
+
if (!str) return [''];
|
|
30
|
+
var parts = [];
|
|
31
|
+
var m = balanced('{', '}', str);
|
|
32
|
+
if (!m) return str.split(',');
|
|
33
|
+
var pre = m.pre;
|
|
34
|
+
var body = m.body;
|
|
35
|
+
var post = m.post;
|
|
36
|
+
var p = pre.split(',');
|
|
37
|
+
p[p.length - 1] += '{' + body + '}';
|
|
38
|
+
var postParts = parseCommaParts(post);
|
|
39
|
+
if (post.length) {
|
|
40
|
+
p[p.length - 1] += postParts.shift();
|
|
41
|
+
p.push.apply(p, postParts);
|
|
42
|
+
}
|
|
43
|
+
parts.push.apply(parts, p);
|
|
44
|
+
return parts;
|
|
52
45
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
function embrace(str) {
|
|
56
|
-
return '{' + str + '}';
|
|
57
|
-
}
|
|
58
|
-
function isPadded(el) {
|
|
59
|
-
return /^-?0\d/.test(el);
|
|
60
|
-
}
|
|
61
|
-
function lte(i, y) {
|
|
62
|
-
return i <= y;
|
|
63
|
-
}
|
|
64
|
-
function gte(i, y) {
|
|
65
|
-
return i >= y;
|
|
66
|
-
}
|
|
67
|
-
function expand(str, isTop) {
|
|
68
|
-
var expansions = [];
|
|
69
|
-
var m = balanced('{', '}', str);
|
|
70
|
-
if (!m) return [str];
|
|
46
|
+
function expandTop(str) {
|
|
47
|
+
if (!str) return [];
|
|
71
48
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
49
|
+
// I don't know why Bash 4.3 does this, but it does.
|
|
50
|
+
// Anything starting with {} will have the first two bytes preserved
|
|
51
|
+
// but *only* at the top level, so {},a}b will not expand to anything,
|
|
52
|
+
// but a{},b}c will be expanded to [a}c,abc].
|
|
53
|
+
// One could argue that this is a bug in Bash, but since the goal of
|
|
54
|
+
// this module is to match Bash's rules, we escape a leading {}
|
|
55
|
+
if (str.substr(0, 2) === '{}') {
|
|
56
|
+
str = '\\{\\}' + str.substr(2);
|
|
79
57
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
58
|
+
return expand(escapeBraces(str), true).map(unescapeBraces);
|
|
59
|
+
}
|
|
60
|
+
function embrace(str) {
|
|
61
|
+
return '{' + str + '}';
|
|
62
|
+
}
|
|
63
|
+
function isPadded(el) {
|
|
64
|
+
return /^-?0\d/.test(el);
|
|
65
|
+
}
|
|
66
|
+
function lte(i, y) {
|
|
67
|
+
return i <= y;
|
|
68
|
+
}
|
|
69
|
+
function gte(i, y) {
|
|
70
|
+
return i >= y;
|
|
71
|
+
}
|
|
72
|
+
function expand(str, isTop) {
|
|
73
|
+
var expansions = [];
|
|
74
|
+
var m = balanced('{', '}', str);
|
|
75
|
+
if (!m) return [str];
|
|
76
|
+
|
|
77
|
+
// no need to expand pre, since it is guaranteed to be free of brace-sets
|
|
78
|
+
var pre = m.pre;
|
|
79
|
+
var post = m.post.length ? expand(m.post, false) : [''];
|
|
80
|
+
if (/\$$/.test(m.pre)) {
|
|
81
|
+
for (var k = 0; k < post.length; k++) {
|
|
82
|
+
var expansion = pre + '{' + m.body + '}' + post[k];
|
|
83
|
+
expansions.push(expansion);
|
|
90
84
|
}
|
|
91
|
-
return [str];
|
|
92
|
-
}
|
|
93
|
-
var n;
|
|
94
|
-
if (isSequence) {
|
|
95
|
-
n = m.body.split(/\.\./);
|
|
96
85
|
} else {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
86
|
+
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
87
|
+
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
88
|
+
var isSequence = isNumericSequence || isAlphaSequence;
|
|
89
|
+
var isOptions = m.body.indexOf(',') >= 0;
|
|
90
|
+
if (!isSequence && !isOptions) {
|
|
91
|
+
// {a},b}
|
|
92
|
+
if (m.post.match(/,.*\}/)) {
|
|
93
|
+
str = m.pre + '{' + m.body + escClose + m.post;
|
|
94
|
+
return expand(str);
|
|
95
|
+
}
|
|
96
|
+
return [str];
|
|
97
|
+
}
|
|
98
|
+
var n;
|
|
99
|
+
if (isSequence) {
|
|
100
|
+
n = m.body.split(/\.\./);
|
|
101
|
+
} else {
|
|
102
|
+
n = parseCommaParts(m.body);
|
|
101
103
|
if (n.length === 1) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
// x{{a,b}}y ==> x{a}y x{b}y
|
|
105
|
+
n = expand(n[0], false).map(embrace);
|
|
106
|
+
if (n.length === 1) {
|
|
107
|
+
return post.map(function (p) {
|
|
108
|
+
return m.pre + n[0] + p;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
105
111
|
}
|
|
106
112
|
}
|
|
107
|
-
}
|
|
108
113
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
114
|
+
// at this point, n is the parts, and we know it's not a comma set
|
|
115
|
+
// with a single entry.
|
|
116
|
+
var N;
|
|
117
|
+
if (isSequence) {
|
|
118
|
+
var x = numeric(n[0]);
|
|
119
|
+
var y = numeric(n[1]);
|
|
120
|
+
var width = Math.max(n[0].length, n[1].length);
|
|
121
|
+
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
122
|
+
var test = lte;
|
|
123
|
+
var reverse = y < x;
|
|
124
|
+
if (reverse) {
|
|
125
|
+
incr *= -1;
|
|
126
|
+
test = gte;
|
|
127
|
+
}
|
|
128
|
+
var pad = n.some(isPadded);
|
|
129
|
+
N = [];
|
|
130
|
+
for (var i = x; test(i, y); i += incr) {
|
|
131
|
+
var c;
|
|
132
|
+
if (isAlphaSequence) {
|
|
133
|
+
c = String.fromCharCode(i);
|
|
134
|
+
if (c === '\\') c = '';
|
|
135
|
+
} else {
|
|
136
|
+
c = String(i);
|
|
137
|
+
if (pad) {
|
|
138
|
+
var need = width - c.length;
|
|
139
|
+
if (need > 0) {
|
|
140
|
+
var z = new Array(need + 1).join('0');
|
|
141
|
+
if (i < 0) c = '-' + z + c.slice(1);else c = z + c;
|
|
142
|
+
}
|
|
137
143
|
}
|
|
138
144
|
}
|
|
145
|
+
N.push(c);
|
|
146
|
+
}
|
|
147
|
+
} else {
|
|
148
|
+
N = [];
|
|
149
|
+
for (var j = 0; j < n.length; j++) {
|
|
150
|
+
N.push.apply(N, expand(n[j], false));
|
|
139
151
|
}
|
|
140
|
-
N.push(c);
|
|
141
|
-
}
|
|
142
|
-
} else {
|
|
143
|
-
N = [];
|
|
144
|
-
for (var j = 0; j < n.length; j++) {
|
|
145
|
-
N.push.apply(N, expand(n[j], false));
|
|
146
152
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
for (var j = 0; j < N.length; j++) {
|
|
154
|
+
for (var k = 0; k < post.length; k++) {
|
|
155
|
+
var expansion = pre + N[j] + post[k];
|
|
156
|
+
if (!isTop || isSequence || expansion) expansions.push(expansion);
|
|
157
|
+
}
|
|
152
158
|
}
|
|
153
159
|
}
|
|
160
|
+
return expansions;
|
|
154
161
|
}
|
|
155
|
-
return
|
|
162
|
+
return braceExpansion;
|
|
156
163
|
}
|
|
157
164
|
|
|
158
|
-
export {
|
|
165
|
+
export { requireBraceExpansion as __require };
|
|
@@ -1,168 +1,175 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
import { __require as requireStringify } from './lib/stringify.mjs';
|
|
2
|
+
import { __require as requireCompile } from './lib/compile.mjs';
|
|
3
|
+
import { __require as requireExpand } from './lib/expand.mjs';
|
|
4
|
+
import { __require as requireParse } from './lib/parse.mjs';
|
|
5
|
+
|
|
6
|
+
var braces_1;
|
|
7
|
+
var hasRequiredBraces;
|
|
8
|
+
function requireBraces() {
|
|
9
|
+
if (hasRequiredBraces) return braces_1;
|
|
10
|
+
hasRequiredBraces = 1;
|
|
11
|
+
const stringify = requireStringify();
|
|
12
|
+
const compile = requireCompile();
|
|
13
|
+
const expand = requireExpand();
|
|
14
|
+
const parse = requireParse();
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Expand the given pattern or create a regex-compatible string.
|
|
18
|
+
*
|
|
19
|
+
* ```js
|
|
20
|
+
* const braces = require('braces');
|
|
21
|
+
* console.log(braces('{a,b,c}', { compile: true })); //=> ['(a|b|c)']
|
|
22
|
+
* console.log(braces('{a,b,c}')); //=> ['a', 'b', 'c']
|
|
23
|
+
* ```
|
|
24
|
+
* @param {String} `str`
|
|
25
|
+
* @param {Object} `options`
|
|
26
|
+
* @return {String}
|
|
27
|
+
* @api public
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
const braces = (input, options = {}) => {
|
|
31
|
+
let output = [];
|
|
32
|
+
if (Array.isArray(input)) {
|
|
33
|
+
for (let pattern of input) {
|
|
34
|
+
let result = braces.create(pattern, options);
|
|
35
|
+
if (Array.isArray(result)) {
|
|
36
|
+
output.push(...result);
|
|
37
|
+
} else {
|
|
38
|
+
output.push(result);
|
|
39
|
+
}
|
|
34
40
|
}
|
|
41
|
+
} else {
|
|
42
|
+
output = [].concat(braces.create(input, options));
|
|
35
43
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
export { braces_1 };
|
|
44
|
+
if (options && options.expand === true && options.nodupes === true) {
|
|
45
|
+
output = [...new Set(output)];
|
|
46
|
+
}
|
|
47
|
+
return output;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Parse the given `str` with the given `options`.
|
|
52
|
+
*
|
|
53
|
+
* ```js
|
|
54
|
+
* // braces.parse(pattern, [, options]);
|
|
55
|
+
* const ast = braces.parse('a/{b,c}/d');
|
|
56
|
+
* console.log(ast);
|
|
57
|
+
* ```
|
|
58
|
+
* @param {String} pattern Brace pattern to parse
|
|
59
|
+
* @param {Object} options
|
|
60
|
+
* @return {Object} Returns an AST
|
|
61
|
+
* @api public
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
braces.parse = (input, options = {}) => parse(input, options);
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Creates a braces string from an AST, or an AST node.
|
|
68
|
+
*
|
|
69
|
+
* ```js
|
|
70
|
+
* const braces = require('braces');
|
|
71
|
+
* let ast = braces.parse('foo/{a,b}/bar');
|
|
72
|
+
* console.log(stringify(ast.nodes[2])); //=> '{a,b}'
|
|
73
|
+
* ```
|
|
74
|
+
* @param {String} `input` Brace pattern or AST.
|
|
75
|
+
* @param {Object} `options`
|
|
76
|
+
* @return {Array} Returns an array of expanded values.
|
|
77
|
+
* @api public
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
braces.stringify = (input, options = {}) => {
|
|
81
|
+
if (typeof input === 'string') {
|
|
82
|
+
return stringify(braces.parse(input, options), options);
|
|
83
|
+
}
|
|
84
|
+
return stringify(input, options);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Compiles a brace pattern into a regex-compatible, optimized string.
|
|
89
|
+
* This method is called by the main [braces](#braces) function by default.
|
|
90
|
+
*
|
|
91
|
+
* ```js
|
|
92
|
+
* const braces = require('braces');
|
|
93
|
+
* console.log(braces.compile('a/{b,c}/d'));
|
|
94
|
+
* //=> ['a/(b|c)/d']
|
|
95
|
+
* ```
|
|
96
|
+
* @param {String} `input` Brace pattern or AST.
|
|
97
|
+
* @param {Object} `options`
|
|
98
|
+
* @return {Array} Returns an array of expanded values.
|
|
99
|
+
* @api public
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
braces.compile = (input, options = {}) => {
|
|
103
|
+
if (typeof input === 'string') {
|
|
104
|
+
input = braces.parse(input, options);
|
|
105
|
+
}
|
|
106
|
+
return compile(input, options);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Expands a brace pattern into an array. This method is called by the
|
|
111
|
+
* main [braces](#braces) function when `options.expand` is true. Before
|
|
112
|
+
* using this method it's recommended that you read the [performance notes](#performance))
|
|
113
|
+
* and advantages of using [.compile](#compile) instead.
|
|
114
|
+
*
|
|
115
|
+
* ```js
|
|
116
|
+
* const braces = require('braces');
|
|
117
|
+
* console.log(braces.expand('a/{b,c}/d'));
|
|
118
|
+
* //=> ['a/b/d', 'a/c/d'];
|
|
119
|
+
* ```
|
|
120
|
+
* @param {String} `pattern` Brace pattern
|
|
121
|
+
* @param {Object} `options`
|
|
122
|
+
* @return {Array} Returns an array of expanded values.
|
|
123
|
+
* @api public
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
braces.expand = (input, options = {}) => {
|
|
127
|
+
if (typeof input === 'string') {
|
|
128
|
+
input = braces.parse(input, options);
|
|
129
|
+
}
|
|
130
|
+
let result = expand(input, options);
|
|
131
|
+
|
|
132
|
+
// filter out empty strings if specified
|
|
133
|
+
if (options.noempty === true) {
|
|
134
|
+
result = result.filter(Boolean);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// filter out duplicates if specified
|
|
138
|
+
if (options.nodupes === true) {
|
|
139
|
+
result = [...new Set(result)];
|
|
140
|
+
}
|
|
141
|
+
return result;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Processes a brace pattern and returns either an expanded array
|
|
146
|
+
* (if `options.expand` is true), a highly optimized regex-compatible string.
|
|
147
|
+
* This method is called by the main [braces](#braces) function.
|
|
148
|
+
*
|
|
149
|
+
* ```js
|
|
150
|
+
* const braces = require('braces');
|
|
151
|
+
* console.log(braces.create('user-{200..300}/project-{a,b,c}-{1..10}'))
|
|
152
|
+
* //=> 'user-(20[0-9]|2[1-9][0-9]|300)/project-(a|b|c)-([1-9]|10)'
|
|
153
|
+
* ```
|
|
154
|
+
* @param {String} `pattern` Brace pattern
|
|
155
|
+
* @param {Object} `options`
|
|
156
|
+
* @return {Array} Returns an array of expanded values.
|
|
157
|
+
* @api public
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
braces.create = (input, options = {}) => {
|
|
161
|
+
if (input === '' || input.length < 3) {
|
|
162
|
+
return [input];
|
|
163
|
+
}
|
|
164
|
+
return options.expand !== true ? braces.compile(input, options) : braces.expand(input, options);
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Expose "braces"
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
braces_1 = braces;
|
|
172
|
+
return braces_1;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export { requireBraces as __require };
|