@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
|
@@ -1,367 +1,374 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const {
|
|
11
|
-
MAX_LENGTH,
|
|
12
|
-
CHAR_BACKSLASH,
|
|
13
|
-
/* \ */
|
|
14
|
-
CHAR_BACKTICK,
|
|
15
|
-
/* ` */
|
|
16
|
-
CHAR_COMMA,
|
|
17
|
-
/* , */
|
|
18
|
-
CHAR_DOT,
|
|
19
|
-
/* . */
|
|
20
|
-
CHAR_LEFT_PARENTHESES,
|
|
21
|
-
/* ( */
|
|
22
|
-
CHAR_RIGHT_PARENTHESES,
|
|
23
|
-
/* ) */
|
|
24
|
-
CHAR_LEFT_CURLY_BRACE,
|
|
25
|
-
/* { */
|
|
26
|
-
CHAR_RIGHT_CURLY_BRACE,
|
|
27
|
-
/* } */
|
|
28
|
-
CHAR_LEFT_SQUARE_BRACKET,
|
|
29
|
-
/* [ */
|
|
30
|
-
CHAR_RIGHT_SQUARE_BRACKET,
|
|
31
|
-
/* ] */
|
|
32
|
-
CHAR_DOUBLE_QUOTE,
|
|
33
|
-
/* " */
|
|
34
|
-
CHAR_SINGLE_QUOTE,
|
|
35
|
-
/* ' */
|
|
36
|
-
CHAR_NO_BREAK_SPACE,
|
|
37
|
-
CHAR_ZERO_WIDTH_NOBREAK_SPACE
|
|
38
|
-
} = constants;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* parse
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
const parse = (input, options = {}) => {
|
|
45
|
-
if (typeof input !== 'string') {
|
|
46
|
-
throw new TypeError('Expected a string');
|
|
47
|
-
}
|
|
48
|
-
let opts = options || {};
|
|
49
|
-
let max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
50
|
-
if (input.length > max) {
|
|
51
|
-
throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
52
|
-
}
|
|
53
|
-
let ast = {
|
|
54
|
-
type: 'root',
|
|
55
|
-
input,
|
|
56
|
-
nodes: []
|
|
57
|
-
};
|
|
58
|
-
let stack = [ast];
|
|
59
|
-
let block = ast;
|
|
60
|
-
let prev = ast;
|
|
61
|
-
let brackets = 0;
|
|
62
|
-
let length = input.length;
|
|
63
|
-
let index = 0;
|
|
64
|
-
let depth = 0;
|
|
65
|
-
let value;
|
|
1
|
+
import { __require as requireStringify } from './stringify.mjs';
|
|
2
|
+
import { __require as requireConstants } from './constants.mjs';
|
|
3
|
+
|
|
4
|
+
var parse_1;
|
|
5
|
+
var hasRequiredParse;
|
|
6
|
+
function requireParse() {
|
|
7
|
+
if (hasRequiredParse) return parse_1;
|
|
8
|
+
hasRequiredParse = 1;
|
|
9
|
+
const stringify = requireStringify();
|
|
66
10
|
|
|
67
11
|
/**
|
|
68
|
-
*
|
|
12
|
+
* Constants
|
|
69
13
|
*/
|
|
70
14
|
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
15
|
+
const {
|
|
16
|
+
MAX_LENGTH,
|
|
17
|
+
CHAR_BACKSLASH,
|
|
18
|
+
/* \ */
|
|
19
|
+
CHAR_BACKTICK,
|
|
20
|
+
/* ` */
|
|
21
|
+
CHAR_COMMA,
|
|
22
|
+
/* , */
|
|
23
|
+
CHAR_DOT,
|
|
24
|
+
/* . */
|
|
25
|
+
CHAR_LEFT_PARENTHESES,
|
|
26
|
+
/* ( */
|
|
27
|
+
CHAR_RIGHT_PARENTHESES,
|
|
28
|
+
/* ) */
|
|
29
|
+
CHAR_LEFT_CURLY_BRACE,
|
|
30
|
+
/* { */
|
|
31
|
+
CHAR_RIGHT_CURLY_BRACE,
|
|
32
|
+
/* } */
|
|
33
|
+
CHAR_LEFT_SQUARE_BRACKET,
|
|
34
|
+
/* [ */
|
|
35
|
+
CHAR_RIGHT_SQUARE_BRACKET,
|
|
36
|
+
/* ] */
|
|
37
|
+
CHAR_DOUBLE_QUOTE,
|
|
38
|
+
/* " */
|
|
39
|
+
CHAR_SINGLE_QUOTE,
|
|
40
|
+
/* ' */
|
|
41
|
+
CHAR_NO_BREAK_SPACE,
|
|
42
|
+
CHAR_ZERO_WIDTH_NOBREAK_SPACE
|
|
43
|
+
} = requireConstants();
|
|
92
44
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
45
|
+
/**
|
|
46
|
+
* parse
|
|
47
|
+
*/
|
|
96
48
|
|
|
97
|
-
|
|
98
|
-
|
|
49
|
+
const parse = (input, options = {}) => {
|
|
50
|
+
if (typeof input !== 'string') {
|
|
51
|
+
throw new TypeError('Expected a string');
|
|
52
|
+
}
|
|
53
|
+
let opts = options || {};
|
|
54
|
+
let max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
55
|
+
if (input.length > max) {
|
|
56
|
+
throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
99
57
|
}
|
|
58
|
+
let ast = {
|
|
59
|
+
type: 'root',
|
|
60
|
+
input,
|
|
61
|
+
nodes: []
|
|
62
|
+
};
|
|
63
|
+
let stack = [ast];
|
|
64
|
+
let block = ast;
|
|
65
|
+
let prev = ast;
|
|
66
|
+
let brackets = 0;
|
|
67
|
+
let length = input.length;
|
|
68
|
+
let index = 0;
|
|
69
|
+
let depth = 0;
|
|
70
|
+
let value;
|
|
100
71
|
|
|
101
72
|
/**
|
|
102
|
-
*
|
|
73
|
+
* Helpers
|
|
103
74
|
*/
|
|
104
75
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
76
|
+
const advance = () => input[index++];
|
|
77
|
+
const push = node => {
|
|
78
|
+
if (node.type === 'text' && prev.type === 'dot') {
|
|
79
|
+
prev.type = 'text';
|
|
80
|
+
}
|
|
81
|
+
if (prev && prev.type === 'text' && node.type === 'text') {
|
|
82
|
+
prev.value += node.value;
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
block.nodes.push(node);
|
|
86
|
+
node.parent = block;
|
|
87
|
+
node.prev = prev;
|
|
88
|
+
prev = node;
|
|
89
|
+
return node;
|
|
90
|
+
};
|
|
91
|
+
push({
|
|
92
|
+
type: 'bos'
|
|
93
|
+
});
|
|
94
|
+
while (index < length) {
|
|
95
|
+
block = stack[stack.length - 1];
|
|
96
|
+
value = advance();
|
|
112
97
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
98
|
+
/**
|
|
99
|
+
* Invalid chars
|
|
100
|
+
*/
|
|
116
101
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
value: '\\' + value
|
|
121
|
-
});
|
|
122
|
-
continue;
|
|
123
|
-
}
|
|
102
|
+
if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) {
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
124
105
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
106
|
+
/**
|
|
107
|
+
* Escaped chars
|
|
108
|
+
*/
|
|
128
109
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
brackets++;
|
|
136
|
-
continue;
|
|
137
|
-
}
|
|
138
|
-
if (next === CHAR_BACKSLASH) {
|
|
139
|
-
value += advance();
|
|
140
|
-
continue;
|
|
141
|
-
}
|
|
142
|
-
if (next === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
143
|
-
brackets--;
|
|
144
|
-
if (brackets === 0) {
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
110
|
+
if (value === CHAR_BACKSLASH) {
|
|
111
|
+
push({
|
|
112
|
+
type: 'text',
|
|
113
|
+
value: (options.keepEscaping ? value : '') + advance()
|
|
114
|
+
});
|
|
115
|
+
continue;
|
|
148
116
|
}
|
|
149
|
-
push({
|
|
150
|
-
type: 'text',
|
|
151
|
-
value
|
|
152
|
-
});
|
|
153
|
-
continue;
|
|
154
|
-
}
|
|
155
117
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
118
|
+
/**
|
|
119
|
+
* Right square bracket (literal): ']'
|
|
120
|
+
*/
|
|
159
121
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
122
|
+
if (value === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
123
|
+
push({
|
|
124
|
+
type: 'text',
|
|
125
|
+
value: '\\' + value
|
|
126
|
+
});
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Left square bracket: '['
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
if (value === CHAR_LEFT_SQUARE_BRACKET) {
|
|
135
|
+
brackets++;
|
|
136
|
+
let next;
|
|
137
|
+
while (index < length && (next = advance())) {
|
|
138
|
+
value += next;
|
|
139
|
+
if (next === CHAR_LEFT_SQUARE_BRACKET) {
|
|
140
|
+
brackets++;
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
if (next === CHAR_BACKSLASH) {
|
|
144
|
+
value += advance();
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
if (next === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
148
|
+
brackets--;
|
|
149
|
+
if (brackets === 0) {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
174
154
|
push({
|
|
175
155
|
type: 'text',
|
|
176
156
|
value
|
|
177
157
|
});
|
|
178
158
|
continue;
|
|
179
159
|
}
|
|
180
|
-
block = stack.pop();
|
|
181
|
-
push({
|
|
182
|
-
type: 'text',
|
|
183
|
-
value
|
|
184
|
-
});
|
|
185
|
-
block = stack[stack.length - 1];
|
|
186
|
-
continue;
|
|
187
|
-
}
|
|
188
160
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
161
|
+
/**
|
|
162
|
+
* Parentheses
|
|
163
|
+
*/
|
|
192
164
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
165
|
+
if (value === CHAR_LEFT_PARENTHESES) {
|
|
166
|
+
block = push({
|
|
167
|
+
type: 'paren',
|
|
168
|
+
nodes: []
|
|
169
|
+
});
|
|
170
|
+
stack.push(block);
|
|
171
|
+
push({
|
|
172
|
+
type: 'text',
|
|
173
|
+
value
|
|
174
|
+
});
|
|
175
|
+
continue;
|
|
198
176
|
}
|
|
199
|
-
|
|
200
|
-
if (
|
|
201
|
-
|
|
177
|
+
if (value === CHAR_RIGHT_PARENTHESES) {
|
|
178
|
+
if (block.type !== 'paren') {
|
|
179
|
+
push({
|
|
180
|
+
type: 'text',
|
|
181
|
+
value
|
|
182
|
+
});
|
|
202
183
|
continue;
|
|
203
184
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
185
|
+
block = stack.pop();
|
|
186
|
+
push({
|
|
187
|
+
type: 'text',
|
|
188
|
+
value
|
|
189
|
+
});
|
|
190
|
+
block = stack[stack.length - 1];
|
|
191
|
+
continue;
|
|
209
192
|
}
|
|
210
|
-
push({
|
|
211
|
-
type: 'text',
|
|
212
|
-
value
|
|
213
|
-
});
|
|
214
|
-
continue;
|
|
215
|
-
}
|
|
216
193
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
222
|
-
depth++;
|
|
223
|
-
let dollar = prev.value && prev.value.slice(-1) === '$' || block.dollar === true;
|
|
224
|
-
let brace = {
|
|
225
|
-
type: 'brace',
|
|
226
|
-
open: true,
|
|
227
|
-
close: false,
|
|
228
|
-
dollar,
|
|
229
|
-
depth,
|
|
230
|
-
commas: 0,
|
|
231
|
-
ranges: 0,
|
|
232
|
-
nodes: []
|
|
233
|
-
};
|
|
234
|
-
block = push(brace);
|
|
235
|
-
stack.push(block);
|
|
236
|
-
push({
|
|
237
|
-
type: 'open',
|
|
238
|
-
value
|
|
239
|
-
});
|
|
240
|
-
continue;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Right curly brace: '}'
|
|
245
|
-
*/
|
|
194
|
+
/**
|
|
195
|
+
* Quotes: '|"|`
|
|
196
|
+
*/
|
|
246
197
|
|
|
247
|
-
|
|
248
|
-
|
|
198
|
+
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
|
199
|
+
let open = value;
|
|
200
|
+
let next;
|
|
201
|
+
if (options.keepQuotes !== true) {
|
|
202
|
+
value = '';
|
|
203
|
+
}
|
|
204
|
+
while (index < length && (next = advance())) {
|
|
205
|
+
if (next === CHAR_BACKSLASH) {
|
|
206
|
+
value += next + advance();
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
if (next === open) {
|
|
210
|
+
if (options.keepQuotes === true) value += next;
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
value += next;
|
|
214
|
+
}
|
|
249
215
|
push({
|
|
250
216
|
type: 'text',
|
|
251
217
|
value
|
|
252
218
|
});
|
|
253
219
|
continue;
|
|
254
220
|
}
|
|
255
|
-
let type = 'close';
|
|
256
|
-
block = stack.pop();
|
|
257
|
-
block.close = true;
|
|
258
|
-
push({
|
|
259
|
-
type,
|
|
260
|
-
value
|
|
261
|
-
});
|
|
262
|
-
depth--;
|
|
263
|
-
block = stack[stack.length - 1];
|
|
264
|
-
continue;
|
|
265
|
-
}
|
|
266
221
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
block.
|
|
274
|
-
let
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
222
|
+
/**
|
|
223
|
+
* Left curly brace: '{'
|
|
224
|
+
*/
|
|
225
|
+
|
|
226
|
+
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
227
|
+
depth++;
|
|
228
|
+
let dollar = prev.value && prev.value.slice(-1) === '$' || block.dollar === true;
|
|
229
|
+
let brace = {
|
|
230
|
+
type: 'brace',
|
|
231
|
+
open: true,
|
|
232
|
+
close: false,
|
|
233
|
+
dollar,
|
|
234
|
+
depth,
|
|
235
|
+
commas: 0,
|
|
236
|
+
ranges: 0,
|
|
237
|
+
nodes: []
|
|
238
|
+
};
|
|
239
|
+
block = push(brace);
|
|
240
|
+
stack.push(block);
|
|
241
|
+
push({
|
|
242
|
+
type: 'open',
|
|
243
|
+
value
|
|
244
|
+
});
|
|
245
|
+
continue;
|
|
279
246
|
}
|
|
280
|
-
push({
|
|
281
|
-
type: 'comma',
|
|
282
|
-
value
|
|
283
|
-
});
|
|
284
|
-
block.commas++;
|
|
285
|
-
continue;
|
|
286
|
-
}
|
|
287
247
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
248
|
+
/**
|
|
249
|
+
* Right curly brace: '}'
|
|
250
|
+
*/
|
|
291
251
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
252
|
+
if (value === CHAR_RIGHT_CURLY_BRACE) {
|
|
253
|
+
if (block.type !== 'brace') {
|
|
254
|
+
push({
|
|
255
|
+
type: 'text',
|
|
256
|
+
value
|
|
257
|
+
});
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
let type = 'close';
|
|
261
|
+
block = stack.pop();
|
|
262
|
+
block.close = true;
|
|
295
263
|
push({
|
|
296
|
-
type
|
|
264
|
+
type,
|
|
297
265
|
value
|
|
298
266
|
});
|
|
267
|
+
depth--;
|
|
268
|
+
block = stack[stack.length - 1];
|
|
299
269
|
continue;
|
|
300
270
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Comma: ','
|
|
274
|
+
*/
|
|
275
|
+
|
|
276
|
+
if (value === CHAR_COMMA && depth > 0) {
|
|
277
|
+
if (block.ranges > 0) {
|
|
307
278
|
block.ranges = 0;
|
|
308
|
-
|
|
309
|
-
|
|
279
|
+
let open = block.nodes.shift();
|
|
280
|
+
block.nodes = [open, {
|
|
281
|
+
type: 'text',
|
|
282
|
+
value: stringify(block)
|
|
283
|
+
}];
|
|
310
284
|
}
|
|
311
|
-
|
|
312
|
-
|
|
285
|
+
push({
|
|
286
|
+
type: 'comma',
|
|
287
|
+
value
|
|
288
|
+
});
|
|
289
|
+
block.commas++;
|
|
313
290
|
continue;
|
|
314
291
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Dot: '.'
|
|
295
|
+
*/
|
|
296
|
+
|
|
297
|
+
if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
|
|
298
|
+
let siblings = block.nodes;
|
|
299
|
+
if (depth === 0 || siblings.length === 0) {
|
|
300
|
+
push({
|
|
301
|
+
type: 'text',
|
|
302
|
+
value
|
|
303
|
+
});
|
|
304
|
+
continue;
|
|
305
|
+
}
|
|
306
|
+
if (prev.type === 'dot') {
|
|
307
|
+
block.range = [];
|
|
308
|
+
prev.value += value;
|
|
309
|
+
prev.type = 'range';
|
|
310
|
+
if (block.nodes.length !== 3 && block.nodes.length !== 5) {
|
|
311
|
+
block.invalid = true;
|
|
312
|
+
block.ranges = 0;
|
|
313
|
+
prev.type = 'text';
|
|
314
|
+
continue;
|
|
315
|
+
}
|
|
316
|
+
block.ranges++;
|
|
317
|
+
block.args = [];
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
if (prev.type === 'range') {
|
|
321
|
+
siblings.pop();
|
|
322
|
+
let before = siblings[siblings.length - 1];
|
|
323
|
+
before.value += prev.value + value;
|
|
324
|
+
prev = before;
|
|
325
|
+
block.ranges--;
|
|
326
|
+
continue;
|
|
327
|
+
}
|
|
328
|
+
push({
|
|
329
|
+
type: 'dot',
|
|
330
|
+
value
|
|
331
|
+
});
|
|
321
332
|
continue;
|
|
322
333
|
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Text
|
|
337
|
+
*/
|
|
338
|
+
|
|
323
339
|
push({
|
|
324
|
-
type: '
|
|
340
|
+
type: 'text',
|
|
325
341
|
value
|
|
326
342
|
});
|
|
327
|
-
continue;
|
|
328
343
|
}
|
|
329
344
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
345
|
+
// Mark imbalanced braces and brackets as invalid
|
|
346
|
+
do {
|
|
347
|
+
block = stack.pop();
|
|
348
|
+
if (block.type !== 'root') {
|
|
349
|
+
block.nodes.forEach(node => {
|
|
350
|
+
if (!node.nodes) {
|
|
351
|
+
if (node.type === 'open') node.isOpen = true;
|
|
352
|
+
if (node.type === 'close') node.isClose = true;
|
|
353
|
+
if (!node.nodes) node.type = 'text';
|
|
354
|
+
node.invalid = true;
|
|
355
|
+
}
|
|
356
|
+
});
|
|
333
357
|
|
|
358
|
+
// get the location of the block on parent.nodes (block's siblings)
|
|
359
|
+
let parent = stack[stack.length - 1];
|
|
360
|
+
let index = parent.nodes.indexOf(block);
|
|
361
|
+
// replace the (invalid) block with it's nodes
|
|
362
|
+
parent.nodes.splice(index, 1, ...block.nodes);
|
|
363
|
+
}
|
|
364
|
+
} while (stack.length > 0);
|
|
334
365
|
push({
|
|
335
|
-
type: '
|
|
336
|
-
value
|
|
366
|
+
type: 'eos'
|
|
337
367
|
});
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
if (block.type !== 'root') {
|
|
344
|
-
block.nodes.forEach(node => {
|
|
345
|
-
if (!node.nodes) {
|
|
346
|
-
if (node.type === 'open') node.isOpen = true;
|
|
347
|
-
if (node.type === 'close') node.isClose = true;
|
|
348
|
-
if (!node.nodes) node.type = 'text';
|
|
349
|
-
node.invalid = true;
|
|
350
|
-
}
|
|
351
|
-
});
|
|
368
|
+
return ast;
|
|
369
|
+
};
|
|
370
|
+
parse_1 = parse;
|
|
371
|
+
return parse_1;
|
|
372
|
+
}
|
|
352
373
|
|
|
353
|
-
|
|
354
|
-
let parent = stack[stack.length - 1];
|
|
355
|
-
let index = parent.nodes.indexOf(block);
|
|
356
|
-
// replace the (invalid) block with it's nodes
|
|
357
|
-
parent.nodes.splice(index, 1, ...block.nodes);
|
|
358
|
-
}
|
|
359
|
-
} while (stack.length > 0);
|
|
360
|
-
push({
|
|
361
|
-
type: 'eos'
|
|
362
|
-
});
|
|
363
|
-
return ast;
|
|
364
|
-
};
|
|
365
|
-
var parse_1 = parse;
|
|
366
|
-
|
|
367
|
-
export { parse_1 };
|
|
374
|
+
export { requireParse as __require };
|