@quilted/create 0.2.43 → 0.2.45
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 +20 -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/index7.mjs +2 -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.3/node_modules/braces/index.mjs +175 -0
- package/build/esm/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.mjs +62 -0
- package/build/esm/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.mjs +106 -0
- package/build/esm/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.mjs +100 -0
- package/build/esm/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.mjs +374 -0
- package/build/esm/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.mjs +35 -0
- package/build/esm/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.mjs +128 -0
- 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 -63
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.mjs +115 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.mjs +120 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.mjs +36 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.mjs +75 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.mjs +101 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.mjs +27 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.mjs +57 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.mjs +50 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.mjs +64 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.mjs +44 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.mjs +36 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.mjs +40 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.mjs +48 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.mjs +47 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.mjs +68 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.mjs +56 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.mjs +75 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.mjs +32 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.mjs +18 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.mjs +30 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.mjs +35 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.mjs +79 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.mjs +229 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.mjs +29 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.mjs +22 -0
- 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.1.1/node_modules/fill-range/index.mjs +223 -0
- 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 +53 -46
- package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.mjs +11 -5
- package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.mjs +6 -8
- 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.8/node_modules/micromatch/index.mjs +479 -0
- 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 → prettier@3.5.1}/node_modules/prettier/plugins/babel.mjs +2810 -3362
- package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.mjs +6611 -0
- package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.mjs +22 -0
- package/build/esm/node_modules/.pnpm/{prettier@3.0.0 → prettier@3.5.1}/node_modules/prettier/plugins/yaml.mjs +1259 -1271
- package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.mjs +3878 -0
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/date.mjs +0 -1
- 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/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/elements/date.mjs +0 -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.7.0/node_modules/yaml/browser/dist/compose/compose-collection.mjs +67 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-doc.mjs +3 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-node.mjs +13 -3
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-scalar.mjs +8 -4
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.mjs +12 -5
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.mjs +6 -2
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.mjs +10 -7
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.mjs +11 -3
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.mjs +14 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-props.mjs +20 -7
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-map-includes.mjs +2 -2
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.mjs +13 -10
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.mjs +1 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.mjs +4 -4
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.mjs +10 -3
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.mjs +7 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.mjs +9 -2
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.mjs +2 -2
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.mjs +44 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.mjs +2 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +28 -4
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.mjs +22 -4
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +53 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1/node_modules/yaml/browser/dist/nodes/Node.mjs → yaml@2.7.0/node_modules/yaml/browser/dist/nodes/identity.mjs} +1 -14
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.mjs +1 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.mjs +34 -21
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.mjs +16 -9
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.mjs +2 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.mjs +2 -3
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.mjs +16 -0
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.mjs +16 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/float.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/json/schema.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.mjs +23 -12
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.mjs +3 -6
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.mjs +48 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +9 -8
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +5 -3
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.mjs +2 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +14 -13
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.mjs +2 -4
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.mjs +19 -10
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.mjs +8 -2
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.mjs +9 -17
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.mjs +40 -17
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +41 -21
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.mjs +2 -1
- package/build/esm/package.mjs +3 -3
- 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 +2 -3
- package/build/esm/shared/prompts.mjs +1 -1
- package/build/esm/shared.mjs +1 -3
- 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 +37 -31
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +24 -18
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +22 -15
- 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 +35 -28
- 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 +20 -13
- 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 +32 -25
- 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.3/node_modules/braces/index.esnext +70 -0
- package/build/esnext/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.esnext +57 -0
- package/build/esnext/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.esnext +103 -0
- package/build/esnext/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.esnext +100 -0
- package/build/esnext/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.esnext +243 -0
- package/build/esnext/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.esnext +35 -0
- package/build/esnext/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.esnext +87 -0
- 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.3.3/node_modules/fast-glob/out/index.esnext +108 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.esnext +100 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.esnext +34 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.esnext +70 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.esnext +92 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.esnext +25 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.esnext +55 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.esnext +41 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.esnext +62 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.esnext +40 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.esnext +34 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.esnext +36 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.esnext +45 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.esnext +45 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.esnext +64 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.esnext +54 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.esnext +67 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.esnext +30 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.esnext +16 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.esnext +28 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.esnext +33 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.esnext +58 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.esnext +171 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.esnext +27 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.esnext +20 -0
- 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.1.1/node_modules/fill-range/index.esnext +199 -0
- 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 +32 -25
- package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.esnext +8 -6
- package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.esnext +6 -6
- 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.8/node_modules/micromatch/index.esnext +168 -0
- 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.5.1/node_modules/prettier/plugins/babel.esnext +6956 -0
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.esnext +4320 -0
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.esnext +12888 -0
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/yaml.esnext +4156 -0
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.esnext +2369 -0
- 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.7.0/node_modules/yaml/browser/dist/compose/compose-collection.esnext +60 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-doc.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-node.esnext +11 -3
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-scalar.esnext +13 -5
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.esnext +13 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.esnext +8 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.esnext +11 -6
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.esnext +12 -3
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.esnext +16 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-props.esnext +21 -9
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-map-includes.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.esnext +8 -13
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.esnext +5 -3
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.esnext +10 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.esnext +7 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.esnext +8 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.esnext +36 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.esnext +2 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +31 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.esnext +20 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +8 -38
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1/node_modules/yaml/browser/dist/nodes/Node.esnext → yaml@2.7.0/node_modules/yaml/browser/dist/nodes/identity.esnext} +1 -13
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.esnext +1 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.esnext +50 -33
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.esnext +16 -9
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.esnext +3 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.esnext +2 -3
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.esnext +17 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.esnext +17 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/float.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/json/schema.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.esnext +25 -14
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.esnext +3 -6
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.esnext +50 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.esnext +9 -8
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.esnext +5 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.esnext +14 -13
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.esnext +20 -10
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.esnext +9 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.esnext +20 -28
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.esnext +44 -23
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +39 -21
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.esnext +2 -1
- package/build/esnext/package.esnext +3 -3
- 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 +2 -2
- package/build/esnext/shared/prompts.esnext +1 -1
- package/build/esnext/shared.esnext +5 -6
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/typescript/shared/package-manager.d.ts.map +1 -1
- package/build/typescript/shared.d.ts.map +1 -1
- package/package.json +8 -8
- package/source/shared/package-manager.ts +0 -1
- package/source/shared/prompts.ts +1 -1
- package/source/shared.ts +1 -2
- 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/_nvmrc +1 -1
- package/templates/workspace/package.json +4 -4
- package/build/esm/_virtual/patterns.mjs +0 -3
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.mjs +0 -168
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.mjs +0 -54
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.mjs +0 -99
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.mjs +0 -94
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.mjs +0 -367
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.mjs +0 -29
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.mjs +0 -114
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.mjs +0 -86
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +0 -26
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.mjs +0 -85
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.mjs +0 -30
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.mjs +0 -69
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +0 -69
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.mjs +0 -20
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.mjs +0 -55
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.mjs +0 -43
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.mjs +0 -60
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.mjs +0 -38
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.mjs +0 -30
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.mjs +0 -33
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.mjs +0 -43
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.mjs +0 -41
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.mjs +0 -63
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.mjs +0 -51
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.mjs +0 -65
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.mjs +0 -26
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.mjs +0 -12
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.mjs +0 -24
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.mjs +0 -36
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +0 -39
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.mjs +0 -183
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.mjs +0 -23
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.mjs +0 -16
- package/build/esm/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.mjs +0 -216
- package/build/esm/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.mjs +0 -467
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +0 -6188
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +0 -29
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +0 -4076
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.mjs +0 -58
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.mjs +0 -7
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +0 -83
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.mjs +0 -37
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.mjs +0 -34
- package/build/esnext/_virtual/patterns.esnext +0 -3
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.esnext +0 -63
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.esnext +0 -50
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.esnext +0 -96
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.esnext +0 -94
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.esnext +0 -236
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.esnext +0 -29
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.esnext +0 -73
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.esnext +0 -79
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +0 -15
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.esnext +0 -83
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.esnext +0 -28
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.esnext +0 -64
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +0 -64
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.esnext +0 -18
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.esnext +0 -49
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.esnext +0 -34
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.esnext +0 -58
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.esnext +0 -34
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.esnext +0 -28
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.esnext +0 -29
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.esnext +0 -40
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.esnext +0 -39
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.esnext +0 -59
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.esnext +0 -49
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.esnext +0 -58
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.esnext +0 -24
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.esnext +0 -10
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.esnext +0 -22
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.esnext +0 -34
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +0 -32
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.esnext +0 -144
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.esnext +0 -21
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.esnext +0 -14
- package/build/esnext/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.esnext +0 -192
- package/build/esnext/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.esnext +0 -157
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +0 -18
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +0 -37
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +0 -29
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +0 -163
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +0 -36
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.esnext +0 -55
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.esnext +0 -10
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.esnext +0 -41
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.esnext +0 -33
- /package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-end.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/line-counter.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/null.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/string.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/bool.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/int.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/schema.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.mjs +0 -0
- /package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-end.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/line-counter.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/null.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/string.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/bool.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/int.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/schema.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.esnext +0 -0
|
@@ -42,6 +42,7 @@ function getPrevProps(parent) {
|
|
|
42
42
|
}
|
|
43
43
|
case "block-seq":
|
|
44
44
|
return parent.items[parent.items.length - 1].start;
|
|
45
|
+
/* istanbul ignore next should not happen */
|
|
45
46
|
default:
|
|
46
47
|
return [];
|
|
47
48
|
}
|
|
@@ -250,7 +251,7 @@ class Parser {
|
|
|
250
251
|
it.value = token;
|
|
251
252
|
} else {
|
|
252
253
|
Object.assign(it, { key: token, sep: [] });
|
|
253
|
-
this.onKeyLine = !
|
|
254
|
+
this.onKeyLine = !it.explicitKey;
|
|
254
255
|
return;
|
|
255
256
|
}
|
|
256
257
|
break;
|
|
@@ -273,6 +274,7 @@ class Parser {
|
|
|
273
274
|
Object.assign(it, { key: token, sep: [] });
|
|
274
275
|
return;
|
|
275
276
|
}
|
|
277
|
+
/* istanbul ignore next should not happen */
|
|
276
278
|
default:
|
|
277
279
|
yield* this.pop();
|
|
278
280
|
yield* this.pop(token);
|
|
@@ -394,6 +396,7 @@ class Parser {
|
|
|
394
396
|
}
|
|
395
397
|
yield* this.pop();
|
|
396
398
|
break;
|
|
399
|
+
/* istanbul ignore next should not happen */
|
|
397
400
|
default:
|
|
398
401
|
yield* this.pop();
|
|
399
402
|
yield* this.step();
|
|
@@ -439,7 +442,8 @@ class Parser {
|
|
|
439
442
|
return;
|
|
440
443
|
}
|
|
441
444
|
if (this.indent >= map.indent) {
|
|
442
|
-
const
|
|
445
|
+
const atMapIndent = !this.onKeyLine && this.indent === map.indent;
|
|
446
|
+
const atNextItem = atMapIndent && (it.sep || it.explicitKey) && this.type !== "seq-item-ind";
|
|
443
447
|
let start = [];
|
|
444
448
|
if (atNextItem && it.sep && !it.value) {
|
|
445
449
|
const nl = [];
|
|
@@ -476,23 +480,24 @@ class Parser {
|
|
|
476
480
|
}
|
|
477
481
|
return;
|
|
478
482
|
case "explicit-key-ind":
|
|
479
|
-
if (!it.sep && !
|
|
483
|
+
if (!it.sep && !it.explicitKey) {
|
|
480
484
|
it.start.push(this.sourceToken);
|
|
485
|
+
it.explicitKey = true;
|
|
481
486
|
} else if (atNextItem || it.value) {
|
|
482
487
|
start.push(this.sourceToken);
|
|
483
|
-
map.items.push({ start });
|
|
488
|
+
map.items.push({ start, explicitKey: true });
|
|
484
489
|
} else {
|
|
485
490
|
this.stack.push({
|
|
486
491
|
type: "block-map",
|
|
487
492
|
offset: this.offset,
|
|
488
493
|
indent: this.indent,
|
|
489
|
-
items: [{ start: [this.sourceToken] }]
|
|
494
|
+
items: [{ start: [this.sourceToken], explicitKey: true }]
|
|
490
495
|
});
|
|
491
496
|
}
|
|
492
497
|
this.onKeyLine = true;
|
|
493
498
|
return;
|
|
494
499
|
case "map-value-ind":
|
|
495
|
-
if (
|
|
500
|
+
if (it.explicitKey) {
|
|
496
501
|
if (!it.sep) {
|
|
497
502
|
if (includesToken(it.start, "newline")) {
|
|
498
503
|
Object.assign(it, { key: null, sep: [this.sourceToken] });
|
|
@@ -519,7 +524,8 @@ class Parser {
|
|
|
519
524
|
const key = it.key;
|
|
520
525
|
const sep = it.sep;
|
|
521
526
|
sep.push(this.sourceToken);
|
|
522
|
-
delete it.key
|
|
527
|
+
delete it.key;
|
|
528
|
+
delete it.sep;
|
|
523
529
|
this.stack.push({
|
|
524
530
|
type: "block-map",
|
|
525
531
|
offset: this.offset,
|
|
@@ -568,7 +574,7 @@ class Parser {
|
|
|
568
574
|
default: {
|
|
569
575
|
const bv = this.startBlockValue(map);
|
|
570
576
|
if (bv) {
|
|
571
|
-
if (
|
|
577
|
+
if (atMapIndent && bv.type !== "block-seq") {
|
|
572
578
|
map.items.push({ start });
|
|
573
579
|
}
|
|
574
580
|
this.stack.push(bv);
|
|
@@ -779,7 +785,7 @@ class Parser {
|
|
|
779
785
|
type: "block-map",
|
|
780
786
|
offset: this.offset,
|
|
781
787
|
indent: this.indent,
|
|
782
|
-
items: [{ start }]
|
|
788
|
+
items: [{ start, explicitKey: true }]
|
|
783
789
|
};
|
|
784
790
|
}
|
|
785
791
|
case "map-value-ind": {
|
|
@@ -826,6 +832,7 @@ class Parser {
|
|
|
826
832
|
break;
|
|
827
833
|
case "newline":
|
|
828
834
|
this.onKeyLine = false;
|
|
835
|
+
// fallthrough
|
|
829
836
|
case "space":
|
|
830
837
|
case "comment":
|
|
831
838
|
default:
|
|
@@ -2,6 +2,7 @@ import { Composer } from './compose/composer.esnext';
|
|
|
2
2
|
import { Document } from './doc/Document.esnext';
|
|
3
3
|
import { prettifyError, YAMLParseError } from './errors.esnext';
|
|
4
4
|
import { warn } from './log.esnext';
|
|
5
|
+
import { isDocument } from './nodes/identity.esnext';
|
|
5
6
|
import { LineCounter } from './parse/line-counter.esnext';
|
|
6
7
|
import { Parser } from './parse/parser.esnext';
|
|
7
8
|
|
|
@@ -66,6 +67,8 @@ function stringify(value, replacer, options) {
|
|
|
66
67
|
if (!keepUndefined)
|
|
67
68
|
return void 0;
|
|
68
69
|
}
|
|
70
|
+
if (isDocument(value) && !_replacer)
|
|
71
|
+
return value.toString(options);
|
|
69
72
|
return new Document(value, _replacer, options).toString(options);
|
|
70
73
|
}
|
|
71
74
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MAP, SCALAR, SEQ } from '../nodes/
|
|
1
|
+
import { MAP, SCALAR, SEQ } from '../nodes/identity.esnext';
|
|
2
2
|
import { map } from './common/map.esnext';
|
|
3
3
|
import { seq } from './common/seq.esnext';
|
|
4
4
|
import { string } from './common/string.esnext';
|
|
@@ -8,10 +8,9 @@ const sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0
|
|
|
8
8
|
class Schema {
|
|
9
9
|
constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
|
10
10
|
this.compat = Array.isArray(compat) ? getTags(compat, "compat") : compat ? getTags(null, compat) : null;
|
|
11
|
-
this.merge = !!merge;
|
|
12
11
|
this.name = typeof schema === "string" && schema || "core";
|
|
13
12
|
this.knownTags = resolveKnownTags ? coreKnownTags : {};
|
|
14
|
-
this.tags = getTags(customTags, this.name);
|
|
13
|
+
this.tags = getTags(customTags, this.name, merge);
|
|
15
14
|
this.toStringOptions = toStringDefaults ?? null;
|
|
16
15
|
Object.defineProperty(this, MAP, { value: map });
|
|
17
16
|
Object.defineProperty(this, SCALAR, { value: string });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { isMap } from '../../nodes/identity.esnext';
|
|
2
|
+
import { YAMLMap } from '../../nodes/YAMLMap.esnext';
|
|
3
|
+
|
|
4
|
+
const map = {
|
|
5
|
+
collection: "map",
|
|
6
|
+
default: true,
|
|
7
|
+
nodeClass: YAMLMap,
|
|
8
|
+
tag: "tag:yaml.org,2002:map",
|
|
9
|
+
resolve(map2, onError) {
|
|
10
|
+
if (!isMap(map2))
|
|
11
|
+
onError("Expected a mapping for this tag");
|
|
12
|
+
return map2;
|
|
13
|
+
},
|
|
14
|
+
createNode: (schema, obj, ctx) => YAMLMap.from(schema, obj, ctx)
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { map };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { isSeq } from '../../nodes/identity.esnext';
|
|
2
|
+
import { YAMLSeq } from '../../nodes/YAMLSeq.esnext';
|
|
3
|
+
|
|
4
|
+
const seq = {
|
|
5
|
+
collection: "seq",
|
|
6
|
+
default: true,
|
|
7
|
+
nodeClass: YAMLSeq,
|
|
8
|
+
tag: "tag:yaml.org,2002:seq",
|
|
9
|
+
resolve(seq2, onError) {
|
|
10
|
+
if (!isSeq(seq2))
|
|
11
|
+
onError("Expected a sequence for this tag");
|
|
12
|
+
return seq2;
|
|
13
|
+
},
|
|
14
|
+
createNode: (schema, obj, ctx) => YAMLSeq.from(schema, obj, ctx)
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { seq };
|
|
@@ -5,7 +5,7 @@ const floatNaN = {
|
|
|
5
5
|
identify: (value) => typeof value === "number",
|
|
6
6
|
default: true,
|
|
7
7
|
tag: "tag:yaml.org,2002:float",
|
|
8
|
-
test: /^(?:[-+]?\.(?:inf|Inf|INF
|
|
8
|
+
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
9
9
|
resolve: (str) => str.slice(-3).toLowerCase() === "nan" ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
10
10
|
stringify: stringifyNumber
|
|
11
11
|
};
|
|
@@ -3,16 +3,17 @@ import { nullTag } from './common/null.esnext';
|
|
|
3
3
|
import { seq } from './common/seq.esnext';
|
|
4
4
|
import { string } from './common/string.esnext';
|
|
5
5
|
import { boolTag } from './core/bool.esnext';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { floatNaN, floatExp, float } from './core/float.esnext';
|
|
7
|
+
import { intOct, intHex, int } from './core/int.esnext';
|
|
8
8
|
import { schema } from './core/schema.esnext';
|
|
9
9
|
import { schema as schema$1 } from './json/schema.esnext';
|
|
10
10
|
import { binary } from './yaml-1.1/binary.esnext';
|
|
11
|
+
import { merge } from './yaml-1.1/merge.esnext';
|
|
11
12
|
import { omap } from './yaml-1.1/omap.esnext';
|
|
12
13
|
import { pairs } from './yaml-1.1/pairs.esnext';
|
|
13
14
|
import { schema as schema$2 } from './yaml-1.1/schema.esnext';
|
|
14
15
|
import { set } from './yaml-1.1/set.esnext';
|
|
15
|
-
import { timestamp,
|
|
16
|
+
import { timestamp, intTime, floatTime } from './yaml-1.1/timestamp.esnext';
|
|
16
17
|
|
|
17
18
|
const schemas = /* @__PURE__ */ new Map([
|
|
18
19
|
["core", schema],
|
|
@@ -33,6 +34,7 @@ const tagsByName = {
|
|
|
33
34
|
intOct,
|
|
34
35
|
intTime,
|
|
35
36
|
map,
|
|
37
|
+
merge,
|
|
36
38
|
null: nullTag,
|
|
37
39
|
omap,
|
|
38
40
|
pairs,
|
|
@@ -42,13 +44,18 @@ const tagsByName = {
|
|
|
42
44
|
};
|
|
43
45
|
const coreKnownTags = {
|
|
44
46
|
"tag:yaml.org,2002:binary": binary,
|
|
47
|
+
"tag:yaml.org,2002:merge": merge,
|
|
45
48
|
"tag:yaml.org,2002:omap": omap,
|
|
46
49
|
"tag:yaml.org,2002:pairs": pairs,
|
|
47
50
|
"tag:yaml.org,2002:set": set,
|
|
48
51
|
"tag:yaml.org,2002:timestamp": timestamp
|
|
49
52
|
};
|
|
50
|
-
function getTags(customTags, schemaName) {
|
|
51
|
-
|
|
53
|
+
function getTags(customTags, schemaName, addMergeTag) {
|
|
54
|
+
const schemaTags = schemas.get(schemaName);
|
|
55
|
+
if (schemaTags && !customTags) {
|
|
56
|
+
return addMergeTag && !schemaTags.includes(merge) ? schemaTags.concat(merge) : schemaTags.slice();
|
|
57
|
+
}
|
|
58
|
+
let tags = schemaTags;
|
|
52
59
|
if (!tags) {
|
|
53
60
|
if (Array.isArray(customTags))
|
|
54
61
|
tags = [];
|
|
@@ -63,15 +70,19 @@ function getTags(customTags, schemaName) {
|
|
|
63
70
|
} else if (typeof customTags === "function") {
|
|
64
71
|
tags = customTags(tags.slice());
|
|
65
72
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const tagObj = tagsByName[tag];
|
|
70
|
-
if (tagObj)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
if (addMergeTag)
|
|
74
|
+
tags = tags.concat(merge);
|
|
75
|
+
return tags.reduce((tags2, tag) => {
|
|
76
|
+
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
|
77
|
+
if (!tagObj) {
|
|
78
|
+
const tagName = JSON.stringify(tag);
|
|
79
|
+
const keys = Object.keys(tagsByName).map((key) => JSON.stringify(key)).join(", ");
|
|
80
|
+
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
|
81
|
+
}
|
|
82
|
+
if (!tags2.includes(tagObj))
|
|
83
|
+
tags2.push(tagObj);
|
|
84
|
+
return tags2;
|
|
85
|
+
}, []);
|
|
75
86
|
}
|
|
76
87
|
|
|
77
88
|
export { coreKnownTags, getTags };
|
|
@@ -3,6 +3,7 @@ import { stringifyString } from '../../stringify/stringifyString.esnext';
|
|
|
3
3
|
|
|
4
4
|
const binary = {
|
|
5
5
|
identify: (value) => value instanceof Uint8Array,
|
|
6
|
+
// Buffer inherits from Uint8Array
|
|
6
7
|
default: false,
|
|
7
8
|
tag: "tag:yaml.org,2002:binary",
|
|
8
9
|
/**
|
|
@@ -14,9 +15,7 @@ const binary = {
|
|
|
14
15
|
* document.querySelector('#photo').src = URL.createObjectURL(blob)
|
|
15
16
|
*/
|
|
16
17
|
resolve(src, onError) {
|
|
17
|
-
if (typeof
|
|
18
|
-
return Buffer.from(src, "base64");
|
|
19
|
-
} else if (typeof atob === "function") {
|
|
18
|
+
if (typeof atob === "function") {
|
|
20
19
|
const str = atob(src.replace(/[\n\r]/g, ""));
|
|
21
20
|
const buffer = new Uint8Array(str.length);
|
|
22
21
|
for (let i = 0; i < str.length; ++i)
|
|
@@ -30,9 +29,7 @@ const binary = {
|
|
|
30
29
|
stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
|
|
31
30
|
const buf = value;
|
|
32
31
|
let str;
|
|
33
|
-
if (typeof
|
|
34
|
-
str = buf instanceof Buffer ? buf.toString("base64") : Buffer.from(buf.buffer).toString("base64");
|
|
35
|
-
} else if (typeof btoa === "function") {
|
|
32
|
+
if (typeof btoa === "function") {
|
|
36
33
|
let s = "";
|
|
37
34
|
for (let i = 0; i < buf.length; ++i)
|
|
38
35
|
s += String.fromCharCode(buf[i]);
|
|
@@ -18,7 +18,7 @@ const falseTag = {
|
|
|
18
18
|
identify: (value) => value === false,
|
|
19
19
|
default: true,
|
|
20
20
|
tag: "tag:yaml.org,2002:bool",
|
|
21
|
-
test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)
|
|
21
|
+
test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
|
|
22
22
|
resolve: () => new Scalar(false),
|
|
23
23
|
stringify: boolStringify
|
|
24
24
|
};
|
|
@@ -5,7 +5,7 @@ const floatNaN = {
|
|
|
5
5
|
identify: (value) => typeof value === "number",
|
|
6
6
|
default: true,
|
|
7
7
|
tag: "tag:yaml.org,2002:float",
|
|
8
|
-
test: /^[-+]?\.(?:inf|Inf|INF
|
|
8
|
+
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
9
9
|
resolve: (str) => str.slice(-3).toLowerCase() === "nan" ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
10
10
|
stringify: stringifyNumber
|
|
11
11
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { isScalar, isAlias, isSeq, isMap } from '../../nodes/identity.esnext';
|
|
2
|
+
import { Scalar } from '../../nodes/Scalar.esnext';
|
|
3
|
+
|
|
4
|
+
const MERGE_KEY = "<<";
|
|
5
|
+
const merge = {
|
|
6
|
+
identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
|
|
7
|
+
default: "key",
|
|
8
|
+
tag: "tag:yaml.org,2002:merge",
|
|
9
|
+
test: /^<<$/,
|
|
10
|
+
resolve: () => Object.assign(new Scalar(Symbol(MERGE_KEY)), {
|
|
11
|
+
addToJSMap: addMergeToJSMap
|
|
12
|
+
}),
|
|
13
|
+
stringify: () => MERGE_KEY
|
|
14
|
+
};
|
|
15
|
+
const isMergeKey = (ctx, key) => (merge.identify(key) || isScalar(key) && (!key.type || key.type === Scalar.PLAIN) && merge.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge.tag && tag.default);
|
|
16
|
+
function addMergeToJSMap(ctx, map, value) {
|
|
17
|
+
value = ctx && isAlias(value) ? value.resolve(ctx.doc) : value;
|
|
18
|
+
if (isSeq(value))
|
|
19
|
+
for (const it of value.items)
|
|
20
|
+
mergeValue(ctx, map, it);
|
|
21
|
+
else if (Array.isArray(value))
|
|
22
|
+
for (const it of value)
|
|
23
|
+
mergeValue(ctx, map, it);
|
|
24
|
+
else
|
|
25
|
+
mergeValue(ctx, map, value);
|
|
26
|
+
}
|
|
27
|
+
function mergeValue(ctx, map, value) {
|
|
28
|
+
const source = ctx && isAlias(value) ? value.resolve(ctx.doc) : value;
|
|
29
|
+
if (!isMap(source))
|
|
30
|
+
throw new Error("Merge sources must be maps or map aliases");
|
|
31
|
+
const srcMap = source.toJSON(null, ctx, Map);
|
|
32
|
+
for (const [key, value2] of srcMap) {
|
|
33
|
+
if (map instanceof Map) {
|
|
34
|
+
if (!map.has(key))
|
|
35
|
+
map.set(key, value2);
|
|
36
|
+
} else if (map instanceof Set) {
|
|
37
|
+
map.add(key);
|
|
38
|
+
} else if (!Object.prototype.hasOwnProperty.call(map, key)) {
|
|
39
|
+
Object.defineProperty(map, key, {
|
|
40
|
+
value: value2,
|
|
41
|
+
writable: true,
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return map;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { addMergeToJSMap, isMergeKey, merge };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isScalar, isPair } from '../../nodes/identity.esnext';
|
|
2
2
|
import { toJS } from '../../nodes/toJS.esnext';
|
|
3
|
-
import { isPair, isScalar } from '../../nodes/Node.esnext';
|
|
4
3
|
import { YAMLMap } from '../../nodes/YAMLMap.esnext';
|
|
4
|
+
import { YAMLSeq } from '../../nodes/YAMLSeq.esnext';
|
|
5
5
|
import { resolvePairs, createPairs } from './pairs.esnext';
|
|
6
6
|
|
|
7
7
|
class YAMLOMap extends YAMLSeq {
|
|
@@ -38,6 +38,12 @@ class YAMLOMap extends YAMLSeq {
|
|
|
38
38
|
}
|
|
39
39
|
return map;
|
|
40
40
|
}
|
|
41
|
+
static from(schema, iterable, ctx) {
|
|
42
|
+
const pairs = createPairs(schema, iterable, ctx);
|
|
43
|
+
const omap2 = new this();
|
|
44
|
+
omap2.items = pairs.items;
|
|
45
|
+
return omap2;
|
|
46
|
+
}
|
|
41
47
|
}
|
|
42
48
|
YAMLOMap.tag = "tag:yaml.org,2002:omap";
|
|
43
49
|
const omap = {
|
|
@@ -60,12 +66,7 @@ const omap = {
|
|
|
60
66
|
}
|
|
61
67
|
return Object.assign(new YAMLOMap(), pairs);
|
|
62
68
|
},
|
|
63
|
-
createNode(schema, iterable, ctx)
|
|
64
|
-
const pairs = createPairs(schema, iterable, ctx);
|
|
65
|
-
const omap2 = new YAMLOMap();
|
|
66
|
-
omap2.items = pairs.items;
|
|
67
|
-
return omap2;
|
|
68
|
-
}
|
|
69
|
+
createNode: (schema, iterable, ctx) => YAMLOMap.from(schema, iterable, ctx)
|
|
69
70
|
};
|
|
70
71
|
|
|
71
72
|
export { YAMLOMap, omap };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isSeq, isPair, isMap } from '../../nodes/
|
|
2
|
-
import {
|
|
1
|
+
import { isSeq, isPair, isMap } from '../../nodes/identity.esnext';
|
|
2
|
+
import { createPair, Pair } from '../../nodes/Pair.esnext';
|
|
3
3
|
import { Scalar } from '../../nodes/Scalar.esnext';
|
|
4
4
|
import { YAMLSeq } from '../../nodes/YAMLSeq.esnext';
|
|
5
5
|
|
|
@@ -50,8 +50,9 @@ function createPairs(schema, iterable, ctx) {
|
|
|
50
50
|
if (keys.length === 1) {
|
|
51
51
|
key = keys[0];
|
|
52
52
|
value = it[key];
|
|
53
|
-
} else
|
|
54
|
-
throw new TypeError(`Expected
|
|
53
|
+
} else {
|
|
54
|
+
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
|
55
|
+
}
|
|
55
56
|
} else {
|
|
56
57
|
key = it;
|
|
57
58
|
}
|
|
@@ -6,6 +6,7 @@ import { binary } from './binary.esnext';
|
|
|
6
6
|
import { trueTag, falseTag } from './bool.esnext';
|
|
7
7
|
import { floatNaN, floatExp, float } from './float.esnext';
|
|
8
8
|
import { intBin, intOct, int, intHex } from './int.esnext';
|
|
9
|
+
import { merge } from './merge.esnext';
|
|
9
10
|
import { omap } from './omap.esnext';
|
|
10
11
|
import { pairs } from './pairs.esnext';
|
|
11
12
|
import { set } from './set.esnext';
|
|
@@ -26,6 +27,7 @@ const schema = [
|
|
|
26
27
|
floatExp,
|
|
27
28
|
float,
|
|
28
29
|
binary,
|
|
30
|
+
merge,
|
|
29
31
|
omap,
|
|
30
32
|
pairs,
|
|
31
33
|
set,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isPair, isScalar
|
|
1
|
+
import { isMap, isPair, isScalar } from '../../nodes/identity.esnext';
|
|
2
2
|
import { Pair, createPair } from '../../nodes/Pair.esnext';
|
|
3
3
|
import { YAMLMap, findPair } from '../../nodes/YAMLMap.esnext';
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@ class YAMLSet extends YAMLMap {
|
|
|
11
11
|
let pair;
|
|
12
12
|
if (isPair(key))
|
|
13
13
|
pair = key;
|
|
14
|
-
else if (typeof key === "object" && "key" in key && "value" in key && key.value === null)
|
|
14
|
+
else if (key && typeof key === "object" && "key" in key && "value" in key && key.value === null)
|
|
15
15
|
pair = new Pair(key.key, null);
|
|
16
16
|
else
|
|
17
17
|
pair = new Pair(key, null);
|
|
@@ -48,6 +48,17 @@ class YAMLSet extends YAMLMap {
|
|
|
48
48
|
else
|
|
49
49
|
throw new Error("Set items must all have null values");
|
|
50
50
|
}
|
|
51
|
+
static from(schema, iterable, ctx) {
|
|
52
|
+
const { replacer } = ctx;
|
|
53
|
+
const set2 = new this(schema);
|
|
54
|
+
if (iterable && Symbol.iterator in Object(iterable))
|
|
55
|
+
for (let value of iterable) {
|
|
56
|
+
if (typeof replacer === "function")
|
|
57
|
+
value = replacer.call(iterable, value, value);
|
|
58
|
+
set2.items.push(createPair(value, null, ctx));
|
|
59
|
+
}
|
|
60
|
+
return set2;
|
|
61
|
+
}
|
|
51
62
|
}
|
|
52
63
|
YAMLSet.tag = "tag:yaml.org,2002:set";
|
|
53
64
|
const set = {
|
|
@@ -56,6 +67,7 @@ const set = {
|
|
|
56
67
|
nodeClass: YAMLSet,
|
|
57
68
|
default: false,
|
|
58
69
|
tag: "tag:yaml.org,2002:set",
|
|
70
|
+
createNode: (schema, iterable, ctx) => YAMLSet.from(schema, iterable, ctx),
|
|
59
71
|
resolve(map, onError) {
|
|
60
72
|
if (isMap(map)) {
|
|
61
73
|
if (map.hasAllNullValues(true))
|
|
@@ -65,17 +77,6 @@ const set = {
|
|
|
65
77
|
} else
|
|
66
78
|
onError("Expected a mapping for this tag");
|
|
67
79
|
return map;
|
|
68
|
-
},
|
|
69
|
-
createNode(schema, iterable, ctx) {
|
|
70
|
-
const { replacer } = ctx;
|
|
71
|
-
const set2 = new YAMLSet(schema);
|
|
72
|
-
if (iterable && Symbol.iterator in Object(iterable))
|
|
73
|
-
for (let value of iterable) {
|
|
74
|
-
if (typeof replacer === "function")
|
|
75
|
-
value = replacer.call(iterable, value, value);
|
|
76
|
-
set2.items.push(createPair(value, null, ctx));
|
|
77
|
-
}
|
|
78
|
-
return set2;
|
|
79
80
|
}
|
|
80
81
|
};
|
|
81
82
|
|
|
@@ -31,7 +31,7 @@ function stringifySexagesimal(node) {
|
|
|
31
31
|
parts.unshift(value);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
return sign + parts.map((n) => n
|
|
34
|
+
return sign + parts.map((n) => String(n).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
|
|
35
35
|
}
|
|
36
36
|
const intTime = {
|
|
37
37
|
identify: (value) => typeof value === "bigint" || Number.isInteger(value),
|
|
@@ -75,7 +75,7 @@ const timestamp = {
|
|
|
75
75
|
}
|
|
76
76
|
return new Date(date);
|
|
77
77
|
},
|
|
78
|
-
stringify: ({ value }) => value.toISOString().replace(/(
|
|
78
|
+
stringify: ({ value }) => value.toISOString().replace(/(T00:00:00)?\.000Z$/, "")
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
export { floatTime, intTime, timestamp };
|
|
@@ -4,6 +4,8 @@ const FOLD_QUOTED = "quoted";
|
|
|
4
4
|
function foldFlowLines(text, indent, mode = "flow", { indentAtStart, lineWidth = 80, minContentWidth = 20, onFold, onOverflow } = {}) {
|
|
5
5
|
if (!lineWidth || lineWidth < 0)
|
|
6
6
|
return text;
|
|
7
|
+
if (lineWidth < minContentWidth)
|
|
8
|
+
minContentWidth = 0;
|
|
7
9
|
const endStep = Math.max(1 + minContentWidth, 1 + lineWidth - indent.length);
|
|
8
10
|
if (text.length <= endStep)
|
|
9
11
|
return text;
|
|
@@ -23,7 +25,7 @@ function foldFlowLines(text, indent, mode = "flow", { indentAtStart, lineWidth =
|
|
|
23
25
|
let escStart = -1;
|
|
24
26
|
let escEnd = -1;
|
|
25
27
|
if (mode === FOLD_BLOCK) {
|
|
26
|
-
i = consumeMoreIndentedLines(text, i);
|
|
28
|
+
i = consumeMoreIndentedLines(text, i, indent.length);
|
|
27
29
|
if (i !== -1)
|
|
28
30
|
end = i + endStep;
|
|
29
31
|
}
|
|
@@ -47,8 +49,8 @@ function foldFlowLines(text, indent, mode = "flow", { indentAtStart, lineWidth =
|
|
|
47
49
|
}
|
|
48
50
|
if (ch === "\n") {
|
|
49
51
|
if (mode === FOLD_BLOCK)
|
|
50
|
-
i = consumeMoreIndentedLines(text, i);
|
|
51
|
-
end = i + endStep;
|
|
52
|
+
i = consumeMoreIndentedLines(text, i, indent.length);
|
|
53
|
+
end = i + indent.length + endStep;
|
|
52
54
|
split = void 0;
|
|
53
55
|
} else {
|
|
54
56
|
if (ch === " " && prev && prev !== " " && prev !== "\n" && prev !== " ") {
|
|
@@ -103,15 +105,23 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
103
105
|
}
|
|
104
106
|
return res;
|
|
105
107
|
}
|
|
106
|
-
function consumeMoreIndentedLines(text, i) {
|
|
107
|
-
let
|
|
108
|
+
function consumeMoreIndentedLines(text, i, indent) {
|
|
109
|
+
let end = i;
|
|
110
|
+
let start = i + 1;
|
|
111
|
+
let ch = text[start];
|
|
108
112
|
while (ch === " " || ch === " ") {
|
|
109
|
-
|
|
110
|
-
ch = text[i
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
+
if (i < start + indent) {
|
|
114
|
+
ch = text[++i];
|
|
115
|
+
} else {
|
|
116
|
+
do {
|
|
117
|
+
ch = text[++i];
|
|
118
|
+
} while (ch && ch !== "\n");
|
|
119
|
+
end = i;
|
|
120
|
+
start = i + 1;
|
|
121
|
+
ch = text[start];
|
|
122
|
+
}
|
|
113
123
|
}
|
|
114
|
-
return
|
|
124
|
+
return end;
|
|
115
125
|
}
|
|
116
126
|
|
|
117
127
|
export { FOLD_BLOCK, FOLD_FLOW, FOLD_QUOTED, foldFlowLines };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { anchorIsValid } from '../doc/anchors.esnext';
|
|
2
|
-
import { isPair, isAlias, isNode, isScalar, isCollection } from '../nodes/
|
|
2
|
+
import { isPair, isAlias, isNode, isScalar, isCollection } from '../nodes/identity.esnext';
|
|
3
3
|
import { stringifyComment } from './stringifyComment.esnext';
|
|
4
4
|
import { stringifyString } from './stringifyString.esnext';
|
|
5
5
|
|
|
@@ -13,6 +13,7 @@ function createStringifyContext(doc, options) {
|
|
|
13
13
|
doubleQuotedAsJSON: false,
|
|
14
14
|
doubleQuotedMinMultiLineLength: 40,
|
|
15
15
|
falseStr: "false",
|
|
16
|
+
flowCollectionPadding: true,
|
|
16
17
|
indentSeq: true,
|
|
17
18
|
lineWidth: 80,
|
|
18
19
|
minContentWidth: 20,
|
|
@@ -36,6 +37,7 @@ function createStringifyContext(doc, options) {
|
|
|
36
37
|
return {
|
|
37
38
|
anchors: /* @__PURE__ */ new Set(),
|
|
38
39
|
doc,
|
|
40
|
+
flowCollectionPadding: opt.flowCollectionPadding ? " " : "",
|
|
39
41
|
indent: "",
|
|
40
42
|
indentStep: typeof opt.indent === "number" ? " ".repeat(opt.indent) : " ",
|
|
41
43
|
inFlow,
|
|
@@ -52,7 +54,12 @@ function getTagObject(tags, item) {
|
|
|
52
54
|
let obj;
|
|
53
55
|
if (isScalar(item)) {
|
|
54
56
|
obj = item.value;
|
|
55
|
-
|
|
57
|
+
let match = tags.filter((t) => t.identify?.(obj));
|
|
58
|
+
if (match.length > 1) {
|
|
59
|
+
const testMatch = match.filter((t) => t.test);
|
|
60
|
+
if (testMatch.length > 0)
|
|
61
|
+
match = testMatch;
|
|
62
|
+
}
|
|
56
63
|
tagObj = match.find((t) => t.format === item.format) ?? match.find((t) => !t.format);
|
|
57
64
|
} else {
|
|
58
65
|
obj = item;
|