@quilted/create 0.2.44 → 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 +8 -0
- package/build/esm/_virtual/index3.mjs +1 -1
- package/build/esm/_virtual/index7.mjs +2 -2
- package/build/esm/_virtual/index8.mjs +2 -2
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/index.mjs +2 -2
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/compile.mjs +12 -10
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/constants.mjs +1 -2
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/expand.mjs +9 -9
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/parse.mjs +14 -14
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/stringify.mjs +4 -4
- package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/utils.mjs +9 -3
- package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +1 -3
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/index.mjs +39 -8
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/managers/tasks.mjs +40 -10
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/deep.mjs +2 -2
- 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.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/matcher.mjs +1 -6
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/partial.mjs +6 -6
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/settings.mjs +7 -5
- package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/index.mjs +1 -1
- 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.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/pattern.mjs +69 -29
- package/build/esm/node_modules/.pnpm/{fill-range@7.0.1 → fill-range@7.1.1}/node_modules/fill-range/index.mjs +4 -4
- package/build/esm/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.mjs +2 -2
- package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.mjs +9 -3
- package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.mjs +3 -5
- package/build/esm/node_modules/.pnpm/{micromatch@4.0.5 → micromatch@4.0.8}/node_modules/micromatch/index.mjs +9 -3
- package/build/esm/node_modules/.pnpm/{prettier@3.0.0 → prettier@3.5.1}/node_modules/prettier/plugins/babel.mjs +2448 -3000
- 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 +1008 -1007
- 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/prompts.mjs +1 -1
- 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/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
- 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 +20 -9
- 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 +10 -9
- 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 +4 -2
- 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 +15 -14
- 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 +40 -20
- 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 +1 -1
- package/build/esm/shared/package-manager.mjs +1 -2
- package/build/esm/shared.mjs +1 -3
- package/build/esnext/_virtual/index3.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/index.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/compile.esnext +10 -9
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/constants.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/expand.esnext +9 -9
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/parse.esnext +14 -14
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/stringify.esnext +4 -4
- package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/utils.esnext +9 -3
- package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/index.esnext +35 -4
- package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/managers/tasks.esnext +14 -2
- 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.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/matcher.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/settings.esnext +3 -2
- 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.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/pattern.esnext +27 -6
- package/build/esnext/node_modules/.pnpm/{fill-range@7.0.1 → fill-range@7.1.1}/node_modules/fill-range/index.esnext +4 -4
- package/build/esnext/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.esnext +6 -4
- package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.esnext +3 -3
- package/build/esnext/node_modules/.pnpm/{micromatch@4.0.5 → micromatch@4.0.8}/node_modules/micromatch/index.esnext +8 -3
- 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/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 +6 -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 +14 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-props.esnext +20 -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 +45 -33
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.esnext +12 -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 +22 -11
- 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 +10 -9
- 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 +4 -3
- 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 +15 -14
- 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 +38 -20
- 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 +1 -1
- package/build/esnext/shared/package-manager.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 +7 -7
- package/source/shared/package-manager.ts +0 -1
- package/source/shared.ts +1 -2
- package/templates/workspace/_nvmrc +1 -1
- package/build/esm/_virtual/patterns.mjs +0 -3
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +0 -32
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +0 -76
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +0 -45
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +0 -6172
- 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/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +0 -21
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +0 -71
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +0 -38
- 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/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/async.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/error.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/provider.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/stream.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/sync.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/transformers/entry.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/async.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/reader.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/stream.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/sync.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/array.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/errno.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/fs.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/stream.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/string.mjs +0 -0
- /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/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/async.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/deep.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/error.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/partial.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/provider.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/stream.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/sync.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/transformers/entry.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/async.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/reader.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/stream.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/sync.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/array.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/errno.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/fs.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/index.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/stream.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/string.esnext +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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Scalar } from '../nodes/Scalar.mjs';
|
|
2
2
|
import { foldFlowLines, FOLD_FLOW, FOLD_QUOTED, FOLD_BLOCK } from './foldFlowLines.mjs';
|
|
3
3
|
|
|
4
|
-
const getFoldOptions = ctx => ({
|
|
5
|
-
indentAtStart: ctx.indentAtStart,
|
|
4
|
+
const getFoldOptions = (ctx, isBlock) => ({
|
|
5
|
+
indentAtStart: isBlock ? ctx.indent.length : ctx.indentAtStart,
|
|
6
6
|
lineWidth: ctx.options.lineWidth,
|
|
7
7
|
minContentWidth: ctx.options.minContentWidth
|
|
8
8
|
});
|
|
@@ -100,14 +100,14 @@ function doubleQuotedString(value, ctx) {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
str = start ? str + json.slice(start) : json;
|
|
103
|
-
return implicitKey ? str : foldFlowLines(str, indent, FOLD_QUOTED, getFoldOptions(ctx));
|
|
103
|
+
return implicitKey ? str : foldFlowLines(str, indent, FOLD_QUOTED, getFoldOptions(ctx, false));
|
|
104
104
|
}
|
|
105
105
|
function singleQuotedString(value, ctx) {
|
|
106
106
|
if (ctx.options.singleQuote === false || ctx.implicitKey && value.includes('\n') || /[ \t]\n|\n[ \t]/.test(value) // single quoted string can't have leading or trailing whitespace around newline
|
|
107
107
|
) return doubleQuotedString(value, ctx);
|
|
108
108
|
const indent = ctx.indent || (containsDocumentMarker(value) ? ' ' : '');
|
|
109
109
|
const res = "'" + value.replace(/'/g, "''").replace(/\n+/g, `$&\n${indent}`) + "'";
|
|
110
|
-
return ctx.implicitKey ? res : foldFlowLines(res, indent, FOLD_FLOW, getFoldOptions(ctx));
|
|
110
|
+
return ctx.implicitKey ? res : foldFlowLines(res, indent, FOLD_FLOW, getFoldOptions(ctx, false));
|
|
111
111
|
}
|
|
112
112
|
function quotedString(value, ctx) {
|
|
113
113
|
const {
|
|
@@ -121,6 +121,14 @@ function quotedString(value, ctx) {
|
|
|
121
121
|
}
|
|
122
122
|
return qs(value, ctx);
|
|
123
123
|
}
|
|
124
|
+
// The negative lookbehind avoids a polynomial search,
|
|
125
|
+
// but isn't supported yet on Safari: https://caniuse.com/js-regexp-lookbehind
|
|
126
|
+
let blockEndNewlines;
|
|
127
|
+
try {
|
|
128
|
+
blockEndNewlines = new RegExp('(^|(?<!\n))\n+(?!\n|$)', 'g');
|
|
129
|
+
} catch {
|
|
130
|
+
blockEndNewlines = /\n+(?!\n|$)/g;
|
|
131
|
+
}
|
|
124
132
|
function blockString({
|
|
125
133
|
comment,
|
|
126
134
|
type,
|
|
@@ -156,11 +164,10 @@ function blockString({
|
|
|
156
164
|
} else {
|
|
157
165
|
chomp = ''; // clip
|
|
158
166
|
}
|
|
159
|
-
|
|
160
167
|
if (end) {
|
|
161
168
|
value = value.slice(0, -end.length);
|
|
162
169
|
if (end[end.length - 1] === '\n') end = end.slice(0, -1);
|
|
163
|
-
end = end.replace(
|
|
170
|
+
end = end.replace(blockEndNewlines, `$&${indent}`);
|
|
164
171
|
}
|
|
165
172
|
// determine indent indicator from whitespace at value start
|
|
166
173
|
let startWithSpace = false;
|
|
@@ -176,20 +183,28 @@ function blockString({
|
|
|
176
183
|
start = start.replace(/\n+/g, `$&${indent}`);
|
|
177
184
|
}
|
|
178
185
|
const indentSize = indent ? '2' : '1'; // root is at -1
|
|
179
|
-
|
|
186
|
+
// Leading | or > is added later
|
|
187
|
+
let header = (startWithSpace ? indentSize : '') + chomp;
|
|
180
188
|
if (comment) {
|
|
181
189
|
header += ' ' + commentString(comment.replace(/ ?[\r\n]+/g, ' '));
|
|
182
190
|
if (onComment) onComment();
|
|
183
191
|
}
|
|
184
|
-
if (literal) {
|
|
185
|
-
|
|
186
|
-
|
|
192
|
+
if (!literal) {
|
|
193
|
+
const foldedValue = value.replace(/\n+/g, '\n$&').replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, '$1$2') // more-indented lines aren't folded
|
|
194
|
+
// ^ more-ind. ^ empty ^ capture next empty lines only at end of indent
|
|
195
|
+
.replace(/\n+/g, `$&${indent}`);
|
|
196
|
+
let literalFallback = false;
|
|
197
|
+
const foldOptions = getFoldOptions(ctx, true);
|
|
198
|
+
if (blockQuote !== 'folded' && type !== Scalar.BLOCK_FOLDED) {
|
|
199
|
+
foldOptions.onOverflow = () => {
|
|
200
|
+
literalFallback = true;
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
const body = foldFlowLines(`${start}${foldedValue}${end}`, indent, FOLD_BLOCK, foldOptions);
|
|
204
|
+
if (!literalFallback) return `>${header}\n${indent}${body}`;
|
|
187
205
|
}
|
|
188
|
-
value = value.replace(/\n+/g,
|
|
189
|
-
|
|
190
|
-
.replace(/\n+/g, `$&${indent}`);
|
|
191
|
-
const body = foldFlowLines(`${start}${value}${end}`, indent, FOLD_BLOCK, getFoldOptions(ctx));
|
|
192
|
-
return `${header}\n${indent}${body}`;
|
|
206
|
+
value = value.replace(/\n+/g, `$&${indent}`);
|
|
207
|
+
return `|${header}\n${indent}${start}${value}${end}`;
|
|
193
208
|
}
|
|
194
209
|
function plainString(item, ctx, onComment, onChompKeep) {
|
|
195
210
|
const {
|
|
@@ -200,9 +215,10 @@ function plainString(item, ctx, onComment, onChompKeep) {
|
|
|
200
215
|
actualString,
|
|
201
216
|
implicitKey,
|
|
202
217
|
indent,
|
|
218
|
+
indentStep,
|
|
203
219
|
inFlow
|
|
204
220
|
} = ctx;
|
|
205
|
-
if (implicitKey &&
|
|
221
|
+
if (implicitKey && value.includes('\n') || inFlow && /[[\]{},]/.test(value)) {
|
|
206
222
|
return quotedString(value, ctx);
|
|
207
223
|
}
|
|
208
224
|
if (!value || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) {
|
|
@@ -218,9 +234,13 @@ function plainString(item, ctx, onComment, onChompKeep) {
|
|
|
218
234
|
// Where allowed & type not set explicitly, prefer block style for multiline strings
|
|
219
235
|
return blockString(item, ctx, onComment, onChompKeep);
|
|
220
236
|
}
|
|
221
|
-
if (
|
|
222
|
-
|
|
223
|
-
|
|
237
|
+
if (containsDocumentMarker(value)) {
|
|
238
|
+
if (indent === '') {
|
|
239
|
+
ctx.forceBlockIndent = true;
|
|
240
|
+
return blockString(item, ctx, onComment, onChompKeep);
|
|
241
|
+
} else if (implicitKey && indent === indentStep) {
|
|
242
|
+
return quotedString(value, ctx);
|
|
243
|
+
}
|
|
224
244
|
}
|
|
225
245
|
const str = value.replace(/\n+/g, `$&\n${indent}`);
|
|
226
246
|
// Verify that output will be parsed as a string, as e.g. plain numbers and
|
|
@@ -234,7 +254,7 @@ function plainString(item, ctx, onComment, onChompKeep) {
|
|
|
234
254
|
} = ctx.doc.schema;
|
|
235
255
|
if (tags.some(test) || compat?.some(test)) return quotedString(value, ctx);
|
|
236
256
|
}
|
|
237
|
-
return implicitKey ? str : foldFlowLines(str, indent, FOLD_FLOW, getFoldOptions(ctx));
|
|
257
|
+
return implicitKey ? str : foldFlowLines(str, indent, FOLD_FLOW, getFoldOptions(ctx, false));
|
|
238
258
|
}
|
|
239
259
|
function stringifyString(item, ctx, onComment, onChompKeep) {
|
|
240
260
|
const {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isDocument, isNode, isPair, isCollection, isMap, isSeq, isScalar, isAlias } from './nodes/
|
|
1
|
+
import { isDocument, isNode, isPair, isCollection, isMap, isSeq, isScalar, isAlias } from './nodes/identity.mjs';
|
|
2
2
|
|
|
3
3
|
const BREAK = Symbol('break visit');
|
|
4
4
|
const SKIP = Symbol('skip children');
|
package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.mjs
RENAMED
|
@@ -3,11 +3,12 @@ export { Document } from './dist/doc/Document.mjs';
|
|
|
3
3
|
export { Schema } from './dist/schema/Schema.mjs';
|
|
4
4
|
export { YAMLError, YAMLParseError, YAMLWarning } from './dist/errors.mjs';
|
|
5
5
|
export { Alias } from './dist/nodes/Alias.mjs';
|
|
6
|
-
export { isAlias, isCollection, isDocument, isMap, isNode, isPair, isScalar, isSeq } from './dist/nodes/
|
|
6
|
+
export { isAlias, isCollection, isDocument, isMap, isNode, isPair, isScalar, isSeq } from './dist/nodes/identity.mjs';
|
|
7
7
|
export { Pair } from './dist/nodes/Pair.mjs';
|
|
8
8
|
export { Scalar } from './dist/nodes/Scalar.mjs';
|
|
9
9
|
export { YAMLMap } from './dist/nodes/YAMLMap.mjs';
|
|
10
10
|
export { YAMLSeq } from './dist/nodes/YAMLSeq.mjs';
|
|
11
|
+
import './dist/stringify/stringifyString.mjs';
|
|
11
12
|
export { Lexer } from './dist/parse/lexer.mjs';
|
|
12
13
|
export { LineCounter } from './dist/parse/line-counter.mjs';
|
|
13
14
|
export { Parser } from './dist/parse/parser.mjs';
|
package/build/esm/package.mjs
CHANGED
|
@@ -339,7 +339,7 @@ async function getRepository(args, {
|
|
|
339
339
|
if (!inWorkspace) return;
|
|
340
340
|
const {
|
|
341
341
|
globby
|
|
342
|
-
} = await import('./node_modules/.pnpm/globby@13.
|
|
342
|
+
} = await import('./node_modules/.pnpm/globby@13.2.2/node_modules/globby/index.mjs');
|
|
343
343
|
const files = await globby('**/package.json', {
|
|
344
344
|
ignore: ['**/node_modules']
|
|
345
345
|
});
|
|
@@ -3,11 +3,10 @@ import { format, relativeDirectoryForDisplay } from '../shared.mjs';
|
|
|
3
3
|
|
|
4
4
|
async function addToPackageManagerWorkspaces(directory, output, packageManager) {
|
|
5
5
|
if (packageManager === 'pnpm') {
|
|
6
|
-
// @ts-expect-error Yaml doesn’t implement `exports.types`
|
|
7
6
|
const {
|
|
8
7
|
parse,
|
|
9
8
|
stringify
|
|
10
|
-
} = await import('../node_modules/.pnpm/yaml@2.
|
|
9
|
+
} = await import('../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/index.mjs');
|
|
11
10
|
const workspaceYaml = parse(await output.read('pnpm-workspace.yaml'));
|
|
12
11
|
workspaceYaml.packages = await addToWorkspaces(relative(output.root, directory), workspaceYaml.packages ?? []);
|
|
13
12
|
await output.write('pnpm-workspace.yaml', await format(stringify(workspaceYaml), {
|
package/build/esm/shared.mjs
CHANGED
|
@@ -111,9 +111,7 @@ async function format(content, {
|
|
|
111
111
|
const [{
|
|
112
112
|
format: rootFormat,
|
|
113
113
|
default: prettier
|
|
114
|
-
}, babel, typescript, yaml, estree] = await Promise.all([import('./node_modules/.pnpm/prettier@3.
|
|
115
|
-
// @ts-expect-error Types are not generated correctly for this entry
|
|
116
|
-
import('./node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs')]);
|
|
114
|
+
}, babel, typescript, yaml, estree] = await Promise.all([import('./node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.mjs'), import('./node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/babel.mjs'), import('./node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.mjs'), import('./node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/yaml.mjs'), import('./node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.mjs')]);
|
|
117
115
|
|
|
118
116
|
// CJS workaround
|
|
119
117
|
const format = rootFormat ?? prettier.format;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from './_commonjsHelpers.esnext';
|
|
2
|
-
import { __require as requireOut } from '../node_modules/.pnpm/fast-glob@3.
|
|
2
|
+
import { __require as requireOut } from '../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.esnext';
|
|
3
3
|
|
|
4
4
|
var outExports = requireOut();
|
|
5
5
|
const fastGlob = /*@__PURE__*/getDefaultExportFromCjs(outExports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as settings } from '../../../../../../../_virtual/
|
|
1
|
+
import { __exports as settings } from '../../../../../../../_virtual/settings2.esnext';
|
|
2
2
|
import path__default from 'node:path';
|
|
3
3
|
import { __require as requireOut } from '../../../../../@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.esnext';
|
|
4
4
|
|
|
@@ -15,8 +15,8 @@ function requireBraces() {
|
|
|
15
15
|
const braces = (input, options = {}) => {
|
|
16
16
|
let output = [];
|
|
17
17
|
if (Array.isArray(input)) {
|
|
18
|
-
for (
|
|
19
|
-
|
|
18
|
+
for (const pattern of input) {
|
|
19
|
+
const result = braces.create(pattern, options);
|
|
20
20
|
if (Array.isArray(result)) {
|
|
21
21
|
output.push(...result);
|
|
22
22
|
} else {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __require as requireFillRange } from '../../../../fill-range@7.
|
|
1
|
+
import { __require as requireFillRange } from '../../../../fill-range@7.1.1/node_modules/fill-range/index.esnext';
|
|
2
2
|
import { __require as requireUtils } from './utils.esnext';
|
|
3
3
|
|
|
4
4
|
var compile_1;
|
|
@@ -9,16 +9,17 @@ function requireCompile() {
|
|
|
9
9
|
const fill = requireFillRange();
|
|
10
10
|
const utils = requireUtils();
|
|
11
11
|
const compile = (ast, options = {}) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
const walk = (node, parent = {}) => {
|
|
13
|
+
const invalidBlock = utils.isInvalidBrace(parent);
|
|
14
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
15
|
+
const invalid = invalidBlock === true || invalidNode === true;
|
|
16
|
+
const prefix = options.escapeInvalid === true ? "\\" : "";
|
|
17
17
|
let output = "";
|
|
18
18
|
if (node.isOpen === true) {
|
|
19
19
|
return prefix + node.value;
|
|
20
20
|
}
|
|
21
21
|
if (node.isClose === true) {
|
|
22
|
+
console.log("node.isClose", prefix, node.value);
|
|
22
23
|
return prefix + node.value;
|
|
23
24
|
}
|
|
24
25
|
if (node.type === "open") {
|
|
@@ -34,14 +35,14 @@ function requireCompile() {
|
|
|
34
35
|
return node.value;
|
|
35
36
|
}
|
|
36
37
|
if (node.nodes && node.ranges > 0) {
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
const args = utils.reduce(node.nodes);
|
|
39
|
+
const range = fill(...args, { ...options, wrap: false, toRegex: true, strictZeros: true });
|
|
39
40
|
if (range.length !== 0) {
|
|
40
41
|
return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
if (node.nodes) {
|
|
44
|
-
for (
|
|
45
|
+
for (const child of node.nodes) {
|
|
45
46
|
output += walk(child, node);
|
|
46
47
|
}
|
|
47
48
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __require as requireFillRange } from '../../../../fill-range@7.
|
|
1
|
+
import { __require as requireFillRange } from '../../../../fill-range@7.1.1/node_modules/fill-range/index.esnext';
|
|
2
2
|
import { __require as requireStringify } from './stringify.esnext';
|
|
3
3
|
import { __require as requireUtils } from './utils.esnext';
|
|
4
4
|
|
|
@@ -11,16 +11,16 @@ function requireExpand() {
|
|
|
11
11
|
const stringify = requireStringify();
|
|
12
12
|
const utils = requireUtils();
|
|
13
13
|
const append = (queue = "", stash = "", enclose = false) => {
|
|
14
|
-
|
|
14
|
+
const result = [];
|
|
15
15
|
queue = [].concat(queue);
|
|
16
16
|
stash = [].concat(stash);
|
|
17
17
|
if (!stash.length) return queue;
|
|
18
18
|
if (!queue.length) {
|
|
19
19
|
return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
20
20
|
}
|
|
21
|
-
for (
|
|
21
|
+
for (const item of queue) {
|
|
22
22
|
if (Array.isArray(item)) {
|
|
23
|
-
for (
|
|
23
|
+
for (const value of item) {
|
|
24
24
|
result.push(append(value, stash, enclose));
|
|
25
25
|
}
|
|
26
26
|
} else {
|
|
@@ -33,8 +33,8 @@ function requireExpand() {
|
|
|
33
33
|
return utils.flatten(result);
|
|
34
34
|
};
|
|
35
35
|
const expand = (ast, options = {}) => {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
|
|
37
|
+
const walk = (node, parent = {}) => {
|
|
38
38
|
node.queue = [];
|
|
39
39
|
let p = parent;
|
|
40
40
|
let q = parent.queue;
|
|
@@ -51,7 +51,7 @@ function requireExpand() {
|
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
if (node.nodes && node.ranges > 0) {
|
|
54
|
-
|
|
54
|
+
const args = utils.reduce(node.nodes);
|
|
55
55
|
if (utils.exceedsLimit(...args, options.step, rangeLimit)) {
|
|
56
56
|
throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
57
57
|
}
|
|
@@ -63,7 +63,7 @@ function requireExpand() {
|
|
|
63
63
|
node.nodes = [];
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
const enclose = utils.encloseBrace(node);
|
|
67
67
|
let queue = node.queue;
|
|
68
68
|
let block = node;
|
|
69
69
|
while (block.type !== "brace" && block.type !== "root" && block.parent) {
|
|
@@ -71,7 +71,7 @@ function requireExpand() {
|
|
|
71
71
|
queue = block.queue;
|
|
72
72
|
}
|
|
73
73
|
for (let i = 0; i < node.nodes.length; i++) {
|
|
74
|
-
|
|
74
|
+
const child = node.nodes[i];
|
|
75
75
|
if (child.type === "comma" && node.type === "brace") {
|
|
76
76
|
if (i === 1) queue.push("");
|
|
77
77
|
queue.push("");
|
|
@@ -40,17 +40,17 @@ function requireParse() {
|
|
|
40
40
|
if (typeof input !== "string") {
|
|
41
41
|
throw new TypeError("Expected a string");
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
const opts = options || {};
|
|
44
|
+
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
45
45
|
if (input.length > max) {
|
|
46
46
|
throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
const ast = { type: "root", input, nodes: [] };
|
|
49
|
+
const stack = [ast];
|
|
50
50
|
let block = ast;
|
|
51
51
|
let prev = ast;
|
|
52
52
|
let brackets = 0;
|
|
53
|
-
|
|
53
|
+
const length = input.length;
|
|
54
54
|
let index = 0;
|
|
55
55
|
let depth = 0;
|
|
56
56
|
let value;
|
|
@@ -124,7 +124,7 @@ function requireParse() {
|
|
|
124
124
|
continue;
|
|
125
125
|
}
|
|
126
126
|
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
|
127
|
-
|
|
127
|
+
const open = value;
|
|
128
128
|
let next;
|
|
129
129
|
if (options.keepQuotes !== true) {
|
|
130
130
|
value = "";
|
|
@@ -145,8 +145,8 @@ function requireParse() {
|
|
|
145
145
|
}
|
|
146
146
|
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
147
147
|
depth++;
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
|
|
149
|
+
const brace = {
|
|
150
150
|
type: "brace",
|
|
151
151
|
open: true,
|
|
152
152
|
close: false,
|
|
@@ -166,7 +166,7 @@ function requireParse() {
|
|
|
166
166
|
push({ type: "text", value });
|
|
167
167
|
continue;
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
const type = "close";
|
|
170
170
|
block = stack.pop();
|
|
171
171
|
block.close = true;
|
|
172
172
|
push({ type, value });
|
|
@@ -177,7 +177,7 @@ function requireParse() {
|
|
|
177
177
|
if (value === CHAR_COMMA && depth > 0) {
|
|
178
178
|
if (block.ranges > 0) {
|
|
179
179
|
block.ranges = 0;
|
|
180
|
-
|
|
180
|
+
const open = block.nodes.shift();
|
|
181
181
|
block.nodes = [open, { type: "text", value: stringify(block) }];
|
|
182
182
|
}
|
|
183
183
|
push({ type: "comma", value });
|
|
@@ -185,7 +185,7 @@ function requireParse() {
|
|
|
185
185
|
continue;
|
|
186
186
|
}
|
|
187
187
|
if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
|
|
188
|
-
|
|
188
|
+
const siblings = block.nodes;
|
|
189
189
|
if (depth === 0 || siblings.length === 0) {
|
|
190
190
|
push({ type: "text", value });
|
|
191
191
|
continue;
|
|
@@ -206,7 +206,7 @@ function requireParse() {
|
|
|
206
206
|
}
|
|
207
207
|
if (prev.type === "range") {
|
|
208
208
|
siblings.pop();
|
|
209
|
-
|
|
209
|
+
const before = siblings[siblings.length - 1];
|
|
210
210
|
before.value += prev.value + value;
|
|
211
211
|
prev = before;
|
|
212
212
|
block.ranges--;
|
|
@@ -228,8 +228,8 @@ function requireParse() {
|
|
|
228
228
|
node.invalid = true;
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
const parent = stack[stack.length - 1];
|
|
232
|
+
const index2 = parent.nodes.indexOf(block);
|
|
233
233
|
parent.nodes.splice(index2, 1, ...block.nodes);
|
|
234
234
|
}
|
|
235
235
|
} while (stack.length > 0);
|
|
@@ -7,9 +7,9 @@ function requireStringify() {
|
|
|
7
7
|
hasRequiredStringify = 1;
|
|
8
8
|
const utils = requireUtils();
|
|
9
9
|
stringify = (ast, options = {}) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const stringify2 = (node, parent = {}) => {
|
|
11
|
+
const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
|
|
12
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
13
13
|
let output = "";
|
|
14
14
|
if (node.value) {
|
|
15
15
|
if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) {
|
|
@@ -21,7 +21,7 @@ function requireStringify() {
|
|
|
21
21
|
return node.value;
|
|
22
22
|
}
|
|
23
23
|
if (node.nodes) {
|
|
24
|
-
for (
|
|
24
|
+
for (const child of node.nodes) {
|
|
25
25
|
output += stringify2(child);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -21,7 +21,7 @@ function requireUtils() {
|
|
|
21
21
|
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
22
22
|
};
|
|
23
23
|
exports.escapeNode = (block, n = 0, type) => {
|
|
24
|
-
|
|
24
|
+
const node = block.nodes[n];
|
|
25
25
|
if (!node) return;
|
|
26
26
|
if (type && node.type === type || node.type === "open" || node.type === "close") {
|
|
27
27
|
if (node.escaped !== true) {
|
|
@@ -66,8 +66,14 @@ function requireUtils() {
|
|
|
66
66
|
const result = [];
|
|
67
67
|
const flat = (arr) => {
|
|
68
68
|
for (let i = 0; i < arr.length; i++) {
|
|
69
|
-
|
|
70
|
-
Array.isArray(ele)
|
|
69
|
+
const ele = arr[i];
|
|
70
|
+
if (Array.isArray(ele)) {
|
|
71
|
+
flat(ele);
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
if (ele !== void 0) {
|
|
75
|
+
result.push(ele);
|
|
76
|
+
}
|
|
71
77
|
}
|
|
72
78
|
return result;
|
|
73
79
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { __require as requireTasks } from './managers/tasks.esnext';
|
|
2
|
-
import { __require as requirePatterns } from './managers/patterns.esnext';
|
|
3
2
|
import { __require as requireAsync } from './providers/async.esnext';
|
|
4
3
|
import { __require as requireStream } from './providers/stream.esnext';
|
|
5
4
|
import { __require as requireSync } from './providers/sync.esnext';
|
|
@@ -12,7 +11,6 @@ function requireOut() {
|
|
|
12
11
|
if (hasRequiredOut) return out;
|
|
13
12
|
hasRequiredOut = 1;
|
|
14
13
|
const taskManager = requireTasks();
|
|
15
|
-
const patternManager = requirePatterns();
|
|
16
14
|
const async_1 = requireAsync();
|
|
17
15
|
const stream_1 = requireStream();
|
|
18
16
|
const sync_1 = requireSync();
|
|
@@ -25,6 +23,10 @@ function requireOut() {
|
|
|
25
23
|
return utils.array.flatten(result);
|
|
26
24
|
}
|
|
27
25
|
(function(FastGlob2) {
|
|
26
|
+
FastGlob2.glob = FastGlob2;
|
|
27
|
+
FastGlob2.globSync = sync;
|
|
28
|
+
FastGlob2.globStream = stream;
|
|
29
|
+
FastGlob2.async = FastGlob2;
|
|
28
30
|
function sync(source, options) {
|
|
29
31
|
assertPatternsInput(source);
|
|
30
32
|
const works = getWorks(source, sync_1.default, options);
|
|
@@ -39,7 +41,7 @@ function requireOut() {
|
|
|
39
41
|
FastGlob2.stream = stream;
|
|
40
42
|
function generateTasks(source, options) {
|
|
41
43
|
assertPatternsInput(source);
|
|
42
|
-
const patterns =
|
|
44
|
+
const patterns = [].concat(source);
|
|
43
45
|
const settings = new settings_1.default(options);
|
|
44
46
|
return taskManager.generate(patterns, settings);
|
|
45
47
|
}
|
|
@@ -55,9 +57,38 @@ function requireOut() {
|
|
|
55
57
|
return utils.path.escape(source);
|
|
56
58
|
}
|
|
57
59
|
FastGlob2.escapePath = escapePath;
|
|
60
|
+
function convertPathToPattern(source) {
|
|
61
|
+
assertPatternsInput(source);
|
|
62
|
+
return utils.path.convertPathToPattern(source);
|
|
63
|
+
}
|
|
64
|
+
FastGlob2.convertPathToPattern = convertPathToPattern;
|
|
65
|
+
(function(posix2) {
|
|
66
|
+
function escapePath2(source) {
|
|
67
|
+
assertPatternsInput(source);
|
|
68
|
+
return utils.path.escapePosixPath(source);
|
|
69
|
+
}
|
|
70
|
+
posix2.escapePath = escapePath2;
|
|
71
|
+
function convertPathToPattern2(source) {
|
|
72
|
+
assertPatternsInput(source);
|
|
73
|
+
return utils.path.convertPosixPathToPattern(source);
|
|
74
|
+
}
|
|
75
|
+
posix2.convertPathToPattern = convertPathToPattern2;
|
|
76
|
+
})(FastGlob2.posix || (FastGlob2.posix = {}));
|
|
77
|
+
(function(win322) {
|
|
78
|
+
function escapePath2(source) {
|
|
79
|
+
assertPatternsInput(source);
|
|
80
|
+
return utils.path.escapeWindowsPath(source);
|
|
81
|
+
}
|
|
82
|
+
win322.escapePath = escapePath2;
|
|
83
|
+
function convertPathToPattern2(source) {
|
|
84
|
+
assertPatternsInput(source);
|
|
85
|
+
return utils.path.convertWindowsPathToPattern(source);
|
|
86
|
+
}
|
|
87
|
+
win322.convertPathToPattern = convertPathToPattern2;
|
|
88
|
+
})(FastGlob2.win32 || (FastGlob2.win32 = {}));
|
|
58
89
|
})(FastGlob || (FastGlob = {}));
|
|
59
90
|
function getWorks(source, _Provider, options) {
|
|
60
|
-
const patterns =
|
|
91
|
+
const patterns = [].concat(source);
|
|
61
92
|
const settings = new settings_1.default(options);
|
|
62
93
|
const tasks = taskManager.generate(patterns, settings);
|
|
63
94
|
const provider = new _Provider(settings);
|
|
@@ -8,9 +8,11 @@ function requireTasks() {
|
|
|
8
8
|
Object.defineProperty(tasks, "__esModule", { value: true });
|
|
9
9
|
tasks.convertPatternGroupToTask = tasks.convertPatternGroupsToTasks = tasks.groupPatternsByBaseDirectory = tasks.getNegativePatternsAsPositive = tasks.getPositivePatterns = tasks.convertPatternsToTasks = tasks.generate = void 0;
|
|
10
10
|
const utils = requireUtils();
|
|
11
|
-
function generate(
|
|
11
|
+
function generate(input, settings) {
|
|
12
|
+
const patterns = processPatterns(input, settings);
|
|
13
|
+
const ignore = processPatterns(settings.ignore, settings);
|
|
12
14
|
const positivePatterns = getPositivePatterns(patterns);
|
|
13
|
-
const negativePatterns = getNegativePatternsAsPositive(patterns,
|
|
15
|
+
const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
|
|
14
16
|
const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings));
|
|
15
17
|
const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings));
|
|
16
18
|
const staticTasks = convertPatternsToTasks(
|
|
@@ -28,6 +30,16 @@ function requireTasks() {
|
|
|
28
30
|
return staticTasks.concat(dynamicTasks);
|
|
29
31
|
}
|
|
30
32
|
tasks.generate = generate;
|
|
33
|
+
function processPatterns(input, settings) {
|
|
34
|
+
let patterns = input;
|
|
35
|
+
if (settings.braceExpansion) {
|
|
36
|
+
patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns);
|
|
37
|
+
}
|
|
38
|
+
if (settings.baseNameMatch) {
|
|
39
|
+
patterns = patterns.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`);
|
|
40
|
+
}
|
|
41
|
+
return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
|
|
42
|
+
}
|
|
31
43
|
function convertPatternsToTasks(positive, negative, dynamic) {
|
|
32
44
|
const tasks2 = [];
|
|
33
45
|
const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive);
|