@quilted/create 0.2.42 → 0.2.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +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/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 +39 -33
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.mjs +26 -20
- 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 +103 -98
- 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 +64 -59
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.mjs +34 -27
- package/build/esm/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.mjs +116 -112
- package/build/esm/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.mjs +54 -47
- package/build/esm/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.mjs +144 -137
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.mjs +173 -166
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.mjs +57 -51
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.mjs +102 -94
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.mjs +89 -83
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.mjs +312 -305
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.mjs +30 -24
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.mjs +116 -108
- package/build/esm/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.mjs +1 -3
- package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +63 -61
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.mjs +75 -77
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +28 -22
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.mjs +83 -78
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.mjs +31 -25
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.mjs +66 -60
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +66 -59
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.mjs +23 -16
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.mjs +55 -48
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.mjs +40 -33
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.mjs +59 -55
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.mjs +38 -32
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.mjs +31 -25
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.mjs +33 -26
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.mjs +43 -38
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.mjs +41 -35
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.mjs +60 -55
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.mjs +48 -43
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.mjs +65 -57
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.mjs +26 -20
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.mjs +14 -8
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.mjs +25 -19
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.mjs +33 -34
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +39 -33
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.mjs +170 -164
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.mjs +24 -18
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.mjs +18 -12
- package/build/esm/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.mjs +227 -221
- package/build/esm/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.mjs +207 -200
- package/build/esm/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.mjs +1 -6
- package/build/esm/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.mjs +51 -44
- package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.mjs +2 -2
- package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.mjs +3 -3
- package/build/esm/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.mjs +443 -439
- package/build/esm/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.mjs +18 -11
- package/build/esm/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.mjs +116 -109
- package/build/esm/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.mjs +17 -10
- package/build/esm/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.mjs +117 -110
- package/build/esm/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.mjs +457 -451
- package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.mjs +14 -7
- package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.mjs +770 -770
- package/build/esm/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.mjs +40 -34
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.mjs +10 -3
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.mjs +227 -220
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.mjs +941 -935
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.mjs +331 -325
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.mjs +303 -297
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.mjs +65 -57
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.mjs +605 -605
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +378 -394
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +15 -15
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.mjs +281 -294
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +155 -155
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.mjs +17 -12
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.mjs +14 -7
- package/build/esm/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.mjs +29 -22
- package/build/esm/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.mjs +49 -42
- package/build/esm/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.mjs +231 -224
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.mjs +3 -3
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +2 -2
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +2 -2
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +1 -1
- package/build/esm/package.mjs +2 -2
- package/build/esm/packages/cli-kit/build/esnext/prompt.esnext.mjs +1 -1
- package/build/esm/server.mjs +5 -9
- package/build/esm/shared/package-manager.mjs +1 -1
- package/build/esm/shared/prompts.mjs +1 -1
- package/build/esnext/_virtual/index.esnext +6 -2
- package/build/esnext/_virtual/index10.esnext +3 -0
- package/build/esnext/_virtual/index11.esnext +3 -0
- package/build/esnext/_virtual/index12.esnext +3 -0
- package/build/esnext/_virtual/index13.esnext +3 -0
- package/build/esnext/_virtual/index2.esnext +2 -2
- package/build/esnext/_virtual/index3.esnext +6 -2
- package/build/esnext/_virtual/index4.esnext +6 -2
- package/build/esnext/_virtual/index5.esnext +6 -2
- package/build/esnext/_virtual/index6.esnext +6 -2
- package/build/esnext/_virtual/index8.esnext +3 -0
- package/build/esnext/_virtual/index9.esnext +3 -0
- package/build/esnext/_virtual/minimatch.esnext +12 -0
- package/build/esnext/app.esnext +2 -2
- package/build/esnext/module.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.esnext +27 -19
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.esnext +19 -13
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.esnext +33 -30
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.esnext +99 -97
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.esnext +14 -8
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.esnext +59 -57
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.esnext +31 -25
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.esnext +13 -8
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.esnext +25 -17
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.esnext +33 -30
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +38 -32
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +25 -19
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +23 -16
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.esnext +42 -40
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +36 -29
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.esnext +40 -33
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +21 -14
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.esnext +98 -93
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.esnext +30 -24
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.esnext +17 -10
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.esnext +59 -54
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +33 -26
- package/build/esnext/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.esnext +132 -128
- package/build/esnext/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.esnext +54 -47
- package/build/esnext/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.esnext +137 -130
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.esnext +66 -59
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.esnext +53 -47
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.esnext +102 -95
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.esnext +89 -83
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.esnext +217 -210
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.esnext +30 -24
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.esnext +75 -67
- package/build/esnext/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.esnext +1 -3
- package/build/esnext/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.esnext +63 -61
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.esnext +68 -70
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +17 -11
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.esnext +81 -76
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.esnext +29 -23
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.esnext +61 -55
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +61 -54
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.esnext +21 -14
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.esnext +49 -42
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.esnext +31 -24
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.esnext +57 -53
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.esnext +34 -28
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.esnext +29 -23
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.esnext +29 -22
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.esnext +40 -35
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.esnext +39 -33
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.esnext +56 -51
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.esnext +46 -41
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.esnext +59 -51
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.esnext +24 -18
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.esnext +12 -6
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.esnext +31 -32
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +32 -26
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.esnext +135 -129
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.esnext +16 -10
- package/build/esnext/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.esnext +220 -215
- package/build/esnext/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.esnext +193 -186
- package/build/esnext/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.esnext +1 -6
- package/build/esnext/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.esnext +31 -24
- package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.esnext +3 -3
- package/build/esnext/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.esnext +357 -353
- package/build/esnext/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.esnext +18 -11
- package/build/esnext/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.esnext +111 -104
- package/build/esnext/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.esnext +17 -10
- package/build/esnext/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.esnext +103 -96
- package/build/esnext/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.esnext +147 -141
- package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.esnext +10 -3
- package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.esnext +495 -491
- package/build/esnext/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.esnext +38 -32
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.esnext +10 -3
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.esnext +198 -191
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.esnext +683 -677
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.esnext +137 -131
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.esnext +279 -273
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.esnext +65 -57
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +9 -9
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +20 -20
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +15 -15
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +64 -64
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +19 -19
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.esnext +16 -11
- package/build/esnext/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.esnext +12 -5
- package/build/esnext/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.esnext +29 -22
- package/build/esnext/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.esnext +47 -40
- package/build/esnext/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.esnext +196 -189
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-props.esnext +1 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/lexer.esnext +5 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/parser.esnext +4 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.esnext +3 -3
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +1 -1
- package/build/esnext/package.esnext +2 -2
- package/build/esnext/packages/cli-kit/build/esnext/prompt.esnext.esnext +1 -1
- package/build/esnext/server.esnext +5 -9
- package/build/esnext/shared/package-manager.esnext +1 -1
- package/build/esnext/shared/prompts.esnext +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/source/shared/prompts.ts +1 -1
- package/templates/app-basic/App.tsx +3 -4
- package/templates/app-basic/browser.tsx +5 -1
- package/templates/app-basic/foundation/html/Head.test.tsx +42 -0
- package/templates/app-basic/foundation/html/Head.tsx +34 -0
- package/templates/app-basic/foundation/html.ts +1 -1
- package/templates/app-basic/package.json +4 -4
- package/templates/app-basic/server.tsx +89 -3
- package/templates/app-empty/package.json +3 -3
- package/templates/app-empty/server.tsx +4 -3
- package/templates/app-graphql/App.tsx +3 -4
- package/templates/app-graphql/browser.tsx +5 -1
- package/templates/app-graphql/foundation/html/Head.test.tsx +42 -0
- package/templates/app-graphql/foundation/html/Head.tsx +34 -0
- package/templates/app-graphql/foundation/html.ts +1 -1
- package/templates/app-graphql/package.json +4 -4
- package/templates/app-graphql/server.tsx +93 -9
- package/templates/app-trpc/App.tsx +3 -4
- package/templates/app-trpc/browser.tsx +5 -1
- package/templates/app-trpc/foundation/html/Head.test.tsx +42 -0
- package/templates/app-trpc/foundation/html/Head.tsx +34 -0
- package/templates/app-trpc/foundation/html.ts +1 -1
- package/templates/app-trpc/package.json +4 -4
- package/templates/app-trpc/server.tsx +93 -8
- package/templates/package/package.json +3 -3
- package/templates/workspace/package.json +4 -4
- package/templates/app-basic/foundation/html/HTML.test.tsx +0 -46
- package/templates/app-basic/foundation/html/HTML.tsx +0 -159
- package/templates/app-graphql/foundation/html/HTML.test.tsx +0 -46
- package/templates/app-graphql/foundation/html/HTML.tsx +0 -159
- package/templates/app-trpc/foundation/html/HTML.test.tsx +0 -46
- package/templates/app-trpc/foundation/html/HTML.tsx +0 -159
|
@@ -10,7 +10,7 @@ var ee = (t, e) => () => (e || t((e = {
|
|
|
10
10
|
nr = (t, e) => {
|
|
11
11
|
for (var n in e) rn(t, n, {
|
|
12
12
|
get: e[n],
|
|
13
|
-
enumerable:
|
|
13
|
+
enumerable: true
|
|
14
14
|
});
|
|
15
15
|
},
|
|
16
16
|
ki = (t, e, n, r) => {
|
|
@@ -20,10 +20,10 @@ var ee = (t, e) => () => (e || t((e = {
|
|
|
20
20
|
});
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
var rr = (t, e, n) => (n = t != null ? Li(Ci(t)) : {}, ki(
|
|
23
|
+
var rr = (t, e, n) => (n = t != null ? Li(Ci(t)) : {}, ki(rn(n, "default", {
|
|
24
24
|
value: t,
|
|
25
|
-
enumerable:
|
|
26
|
-
})
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) , t));
|
|
27
27
|
var le = ee(U => {
|
|
28
28
|
|
|
29
29
|
var re = {
|
|
@@ -165,16 +165,16 @@ ${c}${l}${a}`;
|
|
|
165
165
|
}
|
|
166
166
|
static atDocumentBoundary(e, n, r) {
|
|
167
167
|
let s = e[n];
|
|
168
|
-
if (!s) return
|
|
168
|
+
if (!s) return true;
|
|
169
169
|
let i = e[n - 1];
|
|
170
170
|
if (i && i !== `
|
|
171
|
-
`) return
|
|
171
|
+
`) return false;
|
|
172
172
|
if (r) {
|
|
173
|
-
if (s !== r) return
|
|
174
|
-
} else if (s !== re.DIRECTIVES_END && s !== re.DOCUMENT_END) return
|
|
173
|
+
if (s !== r) return false;
|
|
174
|
+
} else if (s !== re.DIRECTIVES_END && s !== re.DOCUMENT_END) return false;
|
|
175
175
|
let o = e[n + 1],
|
|
176
176
|
a = e[n + 2];
|
|
177
|
-
if (o !== s || a !== s) return
|
|
177
|
+
if (o !== s || a !== s) return false;
|
|
178
178
|
let c = e[n + 3];
|
|
179
179
|
return !c || c === `
|
|
180
180
|
` || c === " " || c === " ";
|
|
@@ -229,7 +229,7 @@ ${c}${l}${a}`;
|
|
|
229
229
|
` || s === " " || s === " " || r && !s;
|
|
230
230
|
}
|
|
231
231
|
static nextNodeIsIndented(e, n, r) {
|
|
232
|
-
return !e || n < 0 ?
|
|
232
|
+
return !e || n < 0 ? false : n > 0 ? true : r && e === "-";
|
|
233
233
|
}
|
|
234
234
|
static normalizeOffset(e, n) {
|
|
235
235
|
let r = e[n];
|
|
@@ -239,7 +239,7 @@ ${c}${l}${a}`;
|
|
|
239
239
|
}
|
|
240
240
|
static foldNewline(e, n, r) {
|
|
241
241
|
let s = 0,
|
|
242
|
-
i =
|
|
242
|
+
i = false,
|
|
243
243
|
o = "",
|
|
244
244
|
a = e[n + 1];
|
|
245
245
|
for (; a === " " || a === " " || a === `
|
|
@@ -251,7 +251,7 @@ ${c}${l}${a}`;
|
|
|
251
251
|
`;
|
|
252
252
|
break;
|
|
253
253
|
case " ":
|
|
254
|
-
s <= r && (i =
|
|
254
|
+
s <= r && (i = true), n = t.endOfWhiteSpace(e, n + 2) - 1;
|
|
255
255
|
break;
|
|
256
256
|
case " ":
|
|
257
257
|
s += 1, n += 1;
|
|
@@ -259,7 +259,7 @@ ${c}${l}${a}`;
|
|
|
259
259
|
}
|
|
260
260
|
a = e[n + 1];
|
|
261
261
|
}
|
|
262
|
-
return o || (o = " "), a && s <= r && (i =
|
|
262
|
+
return o || (o = " "), a && s <= r && (i = true), {
|
|
263
263
|
fold: o,
|
|
264
264
|
offset: n,
|
|
265
265
|
error: i
|
|
@@ -268,7 +268,7 @@ ${c}${l}${a}`;
|
|
|
268
268
|
constructor(e, n, r) {
|
|
269
269
|
Object.defineProperty(this, "context", {
|
|
270
270
|
value: r || null,
|
|
271
|
-
writable:
|
|
271
|
+
writable: true
|
|
272
272
|
}), this.error = null, this.range = null, this.valueRange = null, this.props = n || [], this.type = e, this.value = null;
|
|
273
273
|
}
|
|
274
274
|
getPropValue(e, n, r) {
|
|
@@ -281,7 +281,7 @@ ${c}${l}${a}`;
|
|
|
281
281
|
}
|
|
282
282
|
get anchor() {
|
|
283
283
|
for (let e = 0; e < this.props.length; ++e) {
|
|
284
|
-
let n = this.getPropValue(e, re.ANCHOR,
|
|
284
|
+
let n = this.getPropValue(e, re.ANCHOR, true);
|
|
285
285
|
if (n != null) return n;
|
|
286
286
|
}
|
|
287
287
|
return null;
|
|
@@ -289,7 +289,7 @@ ${c}${l}${a}`;
|
|
|
289
289
|
get comment() {
|
|
290
290
|
let e = [];
|
|
291
291
|
for (let n = 0; n < this.props.length; ++n) {
|
|
292
|
-
let r = this.getPropValue(n, re.COMMENT,
|
|
292
|
+
let r = this.getPropValue(n, re.COMMENT, true);
|
|
293
293
|
r != null && e.push(r);
|
|
294
294
|
}
|
|
295
295
|
return e.length > 0 ? e.join(`
|
|
@@ -299,7 +299,7 @@ ${c}${l}${a}`;
|
|
|
299
299
|
let {
|
|
300
300
|
src: n
|
|
301
301
|
} = this.context;
|
|
302
|
-
if (this.header && e === this.header.end || !this.valueRange) return
|
|
302
|
+
if (this.header && e === this.header.end || !this.valueRange) return false;
|
|
303
303
|
let {
|
|
304
304
|
end: r
|
|
305
305
|
} = this.valueRange;
|
|
@@ -310,21 +310,21 @@ ${c}${l}${a}`;
|
|
|
310
310
|
let {
|
|
311
311
|
src: e
|
|
312
312
|
} = this.context;
|
|
313
|
-
for (let n = 0; n < this.props.length; ++n) if (e[this.props[n].start] === re.COMMENT) return
|
|
313
|
+
for (let n = 0; n < this.props.length; ++n) if (e[this.props[n].start] === re.COMMENT) return true;
|
|
314
314
|
}
|
|
315
|
-
return
|
|
315
|
+
return false;
|
|
316
316
|
}
|
|
317
317
|
get hasProps() {
|
|
318
318
|
if (this.context) {
|
|
319
319
|
let {
|
|
320
320
|
src: e
|
|
321
321
|
} = this.context;
|
|
322
|
-
for (let n = 0; n < this.props.length; ++n) if (e[this.props[n].start] !== re.COMMENT) return
|
|
322
|
+
for (let n = 0; n < this.props.length; ++n) if (e[this.props[n].start] !== re.COMMENT) return true;
|
|
323
323
|
}
|
|
324
|
-
return
|
|
324
|
+
return false;
|
|
325
325
|
}
|
|
326
326
|
get includesTrailingLines() {
|
|
327
|
-
return
|
|
327
|
+
return false;
|
|
328
328
|
}
|
|
329
329
|
get jsonLike() {
|
|
330
330
|
return [lt.FLOW_MAP, lt.FLOW_SEQ, lt.QUOTE_DOUBLE, lt.QUOTE_SINGLE].indexOf(this.type) !== -1;
|
|
@@ -349,7 +349,7 @@ ${c}${l}${a}`;
|
|
|
349
349
|
}
|
|
350
350
|
get tag() {
|
|
351
351
|
for (let e = 0; e < this.props.length; ++e) {
|
|
352
|
-
let n = this.getPropValue(e, re.TAG,
|
|
352
|
+
let n = this.getPropValue(e, re.TAG, false);
|
|
353
353
|
if (n != null) {
|
|
354
354
|
if (n[1] === "<") return {
|
|
355
355
|
verbatim: n.slice(2, -1)
|
|
@@ -366,7 +366,7 @@ ${c}${l}${a}`;
|
|
|
366
366
|
return null;
|
|
367
367
|
}
|
|
368
368
|
get valueRangeContainsNewline() {
|
|
369
|
-
if (!this.valueRange || !this.context) return
|
|
369
|
+
if (!this.valueRange || !this.context) return false;
|
|
370
370
|
let {
|
|
371
371
|
start: e,
|
|
372
372
|
end: n
|
|
@@ -375,8 +375,8 @@ ${c}${l}${a}`;
|
|
|
375
375
|
src: r
|
|
376
376
|
} = this.context;
|
|
377
377
|
for (let s = e; s < n; ++s) if (r[s] === `
|
|
378
|
-
`) return
|
|
379
|
-
return
|
|
378
|
+
`) return true;
|
|
379
|
+
return false;
|
|
380
380
|
}
|
|
381
381
|
parseComment(e) {
|
|
382
382
|
let {
|
|
@@ -467,9 +467,9 @@ ${s}
|
|
|
467
467
|
function To(t, e, n) {
|
|
468
468
|
return e in t ? Object.defineProperty(t, e, {
|
|
469
469
|
value: n,
|
|
470
|
-
enumerable:
|
|
471
|
-
configurable:
|
|
472
|
-
writable:
|
|
470
|
+
enumerable: true,
|
|
471
|
+
configurable: true,
|
|
472
|
+
writable: true
|
|
473
473
|
}) : t[e] = n, t;
|
|
474
474
|
}
|
|
475
475
|
var vn = class t extends se {
|
|
@@ -589,7 +589,7 @@ var Is = ee(vs => {
|
|
|
589
589
|
super(u.Type.BLANK_LINE);
|
|
590
590
|
}
|
|
591
591
|
get includesTrailingLines() {
|
|
592
|
-
return
|
|
592
|
+
return true;
|
|
593
593
|
}
|
|
594
594
|
parse(e, n) {
|
|
595
595
|
return this.context = e, this.range = new u.Range(n, n + 1), n + 1;
|
|
@@ -625,7 +625,7 @@ var Is = ee(vs => {
|
|
|
625
625
|
let h = u.Node.endOfLine(s, c + 1);
|
|
626
626
|
m.push(new u.Range(c, h)), c = h;
|
|
627
627
|
} else {
|
|
628
|
-
i =
|
|
628
|
+
i = true, o = c + 1;
|
|
629
629
|
let h = u.Node.endOfWhiteSpace(s, o);
|
|
630
630
|
s[h] === `
|
|
631
631
|
` && m.length === 0 && (d = new Ee(), o = d.parse({
|
|
@@ -636,7 +636,7 @@ var Is = ee(vs => {
|
|
|
636
636
|
}
|
|
637
637
|
if (u.Node.nextNodeIsIndented(l, c - (o + a), this.type !== u.Type.SEQ_ITEM) ? this.node = r({
|
|
638
638
|
atLineStart: i,
|
|
639
|
-
inCollection:
|
|
639
|
+
inCollection: false,
|
|
640
640
|
indent: a,
|
|
641
641
|
lineStart: o,
|
|
642
642
|
parent: this
|
|
@@ -708,8 +708,8 @@ var Is = ee(vs => {
|
|
|
708
708
|
let s = u.Node.endOfLine(e, n) + 1;
|
|
709
709
|
n = u.Node.endOfWhiteSpace(e, s);
|
|
710
710
|
let i = e[n];
|
|
711
|
-
return i ? n >= s + r ?
|
|
712
|
-
` ?
|
|
711
|
+
return i ? n >= s + r ? true : i !== "#" && i !== `
|
|
712
|
+
` ? false : t.nextContentHasIndent(e, n, r) : false;
|
|
713
713
|
}
|
|
714
714
|
constructor(e) {
|
|
715
715
|
super(e.type === u.Type.SEQ_ITEM ? u.Type.SEQ : u.Type.MAP);
|
|
@@ -740,7 +740,7 @@ var Is = ee(vs => {
|
|
|
740
740
|
c = u.Node.normalizeOffset(s, c);
|
|
741
741
|
let l = s[c],
|
|
742
742
|
f = u.Node.endOfWhiteSpace(s, i) === c,
|
|
743
|
-
m =
|
|
743
|
+
m = false;
|
|
744
744
|
for (; l;) {
|
|
745
745
|
for (; l === `
|
|
746
746
|
` || l === "#";) {
|
|
@@ -772,7 +772,7 @@ var Is = ee(vs => {
|
|
|
772
772
|
(!g || g === `
|
|
773
773
|
` || g === "#") && (c = h);
|
|
774
774
|
}
|
|
775
|
-
l = s[c], f =
|
|
775
|
+
l = s[c], f = true;
|
|
776
776
|
}
|
|
777
777
|
if (!l) break;
|
|
778
778
|
if (c !== i + a && (f || l !== ":")) {
|
|
@@ -799,18 +799,18 @@ var Is = ee(vs => {
|
|
|
799
799
|
}
|
|
800
800
|
let d = r({
|
|
801
801
|
atLineStart: f,
|
|
802
|
-
inCollection:
|
|
802
|
+
inCollection: true,
|
|
803
803
|
indent: a,
|
|
804
804
|
lineStart: i,
|
|
805
805
|
parent: this
|
|
806
806
|
}, c);
|
|
807
807
|
if (!d) return c;
|
|
808
|
-
if (this.items.push(d), this.valueRange.end = d.valueRange.end, c = u.Node.normalizeOffset(s, d.range.end), l = s[c], f =
|
|
808
|
+
if (this.items.push(d), this.valueRange.end = d.valueRange.end, c = u.Node.normalizeOffset(s, d.range.end), l = s[c], f = false, m = d.includesTrailingLines, l) {
|
|
809
809
|
let h = c - 1,
|
|
810
810
|
g = s[h];
|
|
811
811
|
for (; g === " " || g === " ";) g = s[--h];
|
|
812
812
|
g === `
|
|
813
|
-
` && (i = h + 1, f =
|
|
813
|
+
` && (i = h + 1, f = true);
|
|
814
814
|
}
|
|
815
815
|
let y = In(d);
|
|
816
816
|
y && Array.prototype.push.apply(this.items, y);
|
|
@@ -894,8 +894,8 @@ var Is = ee(vs => {
|
|
|
894
894
|
src: n
|
|
895
895
|
} = this.context;
|
|
896
896
|
this.directives = [];
|
|
897
|
-
let r =
|
|
898
|
-
s =
|
|
897
|
+
let r = true,
|
|
898
|
+
s = false,
|
|
899
899
|
i = e;
|
|
900
900
|
for (; !u.Node.atDocumentBoundary(n, i, u.Char.DIRECTIVES_END);) switch (i = t.startCommentOrEndBlankLine(n, i), n[i]) {
|
|
901
901
|
case `
|
|
@@ -905,14 +905,14 @@ var Is = ee(vs => {
|
|
|
905
905
|
i = o.parse({
|
|
906
906
|
src: n
|
|
907
907
|
}, i), i < n.length && this.directives.push(o);
|
|
908
|
-
} else i += 1, r =
|
|
908
|
+
} else i += 1, r = true;
|
|
909
909
|
break;
|
|
910
910
|
case "#":
|
|
911
911
|
{
|
|
912
912
|
let o = new ye();
|
|
913
913
|
i = o.parse({
|
|
914
914
|
src: n
|
|
915
|
-
}, i), this.directives.push(o), r =
|
|
915
|
+
}, i), this.directives.push(o), r = false;
|
|
916
916
|
}
|
|
917
917
|
break;
|
|
918
918
|
case "%":
|
|
@@ -921,7 +921,7 @@ var Is = ee(vs => {
|
|
|
921
921
|
i = o.parse({
|
|
922
922
|
parent: this,
|
|
923
923
|
src: n
|
|
924
|
-
}, i), this.directives.push(o), s =
|
|
924
|
+
}, i), this.directives.push(o), s = true, r = false;
|
|
925
925
|
}
|
|
926
926
|
break;
|
|
927
927
|
default:
|
|
@@ -948,7 +948,7 @@ var Is = ee(vs => {
|
|
|
948
948
|
i = a.parse({
|
|
949
949
|
src: r
|
|
950
950
|
}, i), i < r.length && this.contents.push(a);
|
|
951
|
-
} else i += 1, o =
|
|
951
|
+
} else i += 1, o = true;
|
|
952
952
|
s = i;
|
|
953
953
|
break;
|
|
954
954
|
case "#":
|
|
@@ -956,7 +956,7 @@ var Is = ee(vs => {
|
|
|
956
956
|
let a = new ye();
|
|
957
957
|
i = a.parse({
|
|
958
958
|
src: r
|
|
959
|
-
}, i), this.contents.push(a), o =
|
|
959
|
+
}, i), this.contents.push(a), o = false;
|
|
960
960
|
}
|
|
961
961
|
break;
|
|
962
962
|
default:
|
|
@@ -965,13 +965,13 @@ var Is = ee(vs => {
|
|
|
965
965
|
l = n({
|
|
966
966
|
atLineStart: o,
|
|
967
967
|
indent: -1,
|
|
968
|
-
inFlow:
|
|
969
|
-
inCollection:
|
|
968
|
+
inFlow: false,
|
|
969
|
+
inCollection: false,
|
|
970
970
|
lineStart: s,
|
|
971
971
|
parent: this
|
|
972
972
|
}, a);
|
|
973
973
|
if (!l) return this.valueRange.end = a;
|
|
974
|
-
this.contents.push(l), i = l.range.end, o =
|
|
974
|
+
this.contents.push(l), i = l.range.end, o = false;
|
|
975
975
|
let f = In(l);
|
|
976
976
|
f && Array.prototype.push.apply(this.contents, f);
|
|
977
977
|
}
|
|
@@ -1075,10 +1075,10 @@ var Is = ee(vs => {
|
|
|
1075
1075
|
i && (this.chomping === fe.KEEP ? (a = i, n = this.valueRange.end) : n = i);
|
|
1076
1076
|
let c = r + this.blockIndent,
|
|
1077
1077
|
l = this.type === u.Type.BLOCK_FOLDED,
|
|
1078
|
-
f =
|
|
1078
|
+
f = true,
|
|
1079
1079
|
m = "",
|
|
1080
1080
|
d = "",
|
|
1081
|
-
y =
|
|
1081
|
+
y = false;
|
|
1082
1082
|
for (let h = e; h < n; ++h) {
|
|
1083
1083
|
for (let w = 0; w < c && s[h] === " "; ++w) h += 1;
|
|
1084
1084
|
let g = s[h];
|
|
@@ -1093,8 +1093,8 @@ var Is = ee(vs => {
|
|
|
1093
1093
|
` : !y && !f && d === `
|
|
1094
1094
|
` && (d = `
|
|
1095
1095
|
|
|
1096
|
-
`), m += d + C, d = w < n && s[w] || "", y =
|
|
1097
|
-
`, y =
|
|
1096
|
+
`), m += d + C, d = w < n && s[w] || "", y = true) : (m += d + C, d = l && h < a ? " " : `
|
|
1097
|
+
`, y = false), f && C !== "" && (f = false);
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
1100
|
return this.chomping === fe.STRIP ? m : m + `
|
|
@@ -1256,9 +1256,9 @@ var Is = ee(vs => {
|
|
|
1256
1256
|
default:
|
|
1257
1257
|
{
|
|
1258
1258
|
let l = r({
|
|
1259
|
-
atLineStart:
|
|
1260
|
-
inCollection:
|
|
1261
|
-
inFlow:
|
|
1259
|
+
atLineStart: false,
|
|
1260
|
+
inCollection: false,
|
|
1261
|
+
inFlow: true,
|
|
1262
1262
|
indent: -1,
|
|
1263
1263
|
lineStart: o,
|
|
1264
1264
|
parent: this
|
|
@@ -1530,11 +1530,11 @@ var Is = ee(vs => {
|
|
|
1530
1530
|
case "[":
|
|
1531
1531
|
return u.Type.FLOW_SEQ;
|
|
1532
1532
|
case "?":
|
|
1533
|
-
return !r && u.Node.atBlank(e, n + 1,
|
|
1533
|
+
return !r && u.Node.atBlank(e, n + 1, true) ? u.Type.MAP_KEY : u.Type.PLAIN;
|
|
1534
1534
|
case ":":
|
|
1535
|
-
return !r && u.Node.atBlank(e, n + 1,
|
|
1535
|
+
return !r && u.Node.atBlank(e, n + 1, true) ? u.Type.MAP_VALUE : u.Type.PLAIN;
|
|
1536
1536
|
case "-":
|
|
1537
|
-
return !r && u.Node.atBlank(e, n + 1,
|
|
1537
|
+
return !r && u.Node.atBlank(e, n + 1, true) ? u.Type.SEQ_ITEM : u.Type.PLAIN;
|
|
1538
1538
|
case '"':
|
|
1539
1539
|
return u.Type.QUOTE_DOUBLE;
|
|
1540
1540
|
case "'":
|
|
@@ -1567,7 +1567,7 @@ var Is = ee(vs => {
|
|
|
1567
1567
|
return g = w.parse(new t(f), g), w.range = new u.Range(l, g), w;
|
|
1568
1568
|
}
|
|
1569
1569
|
return h;
|
|
1570
|
-
}), this.atLineStart = n ?? (e.atLineStart ||
|
|
1570
|
+
}), this.atLineStart = n ?? (e.atLineStart || false), this.inCollection = r ?? (e.inCollection || false), this.inFlow = s ?? (e.inFlow || false), this.indent = i ?? e.indent, this.lineStart = o ?? e.lineStart, this.parent = a ?? (e.parent || {}), this.root = e.root, this.src = e.src;
|
|
1571
1571
|
}
|
|
1572
1572
|
nodeStartsCollection(e) {
|
|
1573
1573
|
let {
|
|
@@ -1575,12 +1575,12 @@ var Is = ee(vs => {
|
|
|
1575
1575
|
inFlow: r,
|
|
1576
1576
|
src: s
|
|
1577
1577
|
} = this;
|
|
1578
|
-
if (n || r) return
|
|
1579
|
-
if (e instanceof ut) return
|
|
1578
|
+
if (n || r) return false;
|
|
1579
|
+
if (e instanceof ut) return true;
|
|
1580
1580
|
let i = e.range.end;
|
|
1581
1581
|
return s[i] === `
|
|
1582
1582
|
` || s[i - 1] === `
|
|
1583
|
-
` ?
|
|
1583
|
+
` ? false : (i = u.Node.endOfWhiteSpace(s, i), s[i] === ":");
|
|
1584
1584
|
}
|
|
1585
1585
|
parseProps(e) {
|
|
1586
1586
|
let {
|
|
@@ -1589,7 +1589,7 @@ var Is = ee(vs => {
|
|
|
1589
1589
|
src: s
|
|
1590
1590
|
} = this,
|
|
1591
1591
|
i = [],
|
|
1592
|
-
o =
|
|
1592
|
+
o = false;
|
|
1593
1593
|
e = this.atLineStart ? u.Node.endOfIndent(s, e) : u.Node.endOfWhiteSpace(s, e);
|
|
1594
1594
|
let a = s[e];
|
|
1595
1595
|
for (; a === u.Char.ANCHOR || a === u.Char.COMMENT || a === u.Char.TAG || a === `
|
|
@@ -1603,17 +1603,17 @@ var Is = ee(vs => {
|
|
|
1603
1603
|
let m = l - (f + this.indent),
|
|
1604
1604
|
d = r.type === u.Type.SEQ_ITEM && r.context.atLineStart;
|
|
1605
1605
|
if (s[l] !== "#" && !u.Node.nextNodeIsIndented(s[l], m, !d)) break;
|
|
1606
|
-
this.atLineStart =
|
|
1606
|
+
this.atLineStart = true, this.lineStart = f, o = false, e = l;
|
|
1607
1607
|
} else if (a === u.Char.COMMENT) {
|
|
1608
1608
|
let l = u.Node.endOfLine(s, e + 1);
|
|
1609
1609
|
i.push(new u.Range(e, l)), e = l;
|
|
1610
1610
|
} else {
|
|
1611
1611
|
let l = u.Node.endOfIdentifier(s, e + 1);
|
|
1612
|
-
a === u.Char.TAG && s[l] === "," && /^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e + 1, l + 13)) && (l = u.Node.endOfIdentifier(s, l + 5)), i.push(new u.Range(e, l)), o =
|
|
1612
|
+
a === u.Char.TAG && s[l] === "," && /^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e + 1, l + 13)) && (l = u.Node.endOfIdentifier(s, l + 5)), i.push(new u.Range(e, l)), o = true, e = u.Node.endOfWhiteSpace(s, l);
|
|
1613
1613
|
}
|
|
1614
1614
|
a = s[e];
|
|
1615
1615
|
}
|
|
1616
|
-
o && a === ":" && u.Node.atBlank(s, e + 1,
|
|
1616
|
+
o && a === ":" && u.Node.atBlank(s, e + 1, true) && (e -= 1);
|
|
1617
1617
|
let c = t.parseType(s, e, n);
|
|
1618
1618
|
return {
|
|
1619
1619
|
props: i,
|
|
@@ -1636,11 +1636,11 @@ var Is = ee(vs => {
|
|
|
1636
1636
|
r = s.parse(i, r), n.push(s);
|
|
1637
1637
|
} while (r < t.length);
|
|
1638
1638
|
return n.setOrigRanges = () => {
|
|
1639
|
-
if (e.length === 0) return
|
|
1639
|
+
if (e.length === 0) return false;
|
|
1640
1640
|
for (let i = 1; i < e.length; ++i) e[i] -= i;
|
|
1641
1641
|
let s = 0;
|
|
1642
1642
|
for (let i = 0; i < n.length; ++i) s = n[i].setOrigRanges(e, s);
|
|
1643
|
-
return e.splice(0, e.length),
|
|
1643
|
+
return e.splice(0, e.length), true;
|
|
1644
1644
|
}, n.toString = () => n.join(`...
|
|
1645
1645
|
`), n;
|
|
1646
1646
|
}
|
|
@@ -1693,13 +1693,13 @@ ${e}${t}` : t;
|
|
|
1693
1693
|
let o = {};
|
|
1694
1694
|
Object.defineProperty(o, i, {
|
|
1695
1695
|
value: r,
|
|
1696
|
-
writable:
|
|
1697
|
-
enumerable:
|
|
1698
|
-
configurable:
|
|
1696
|
+
writable: true,
|
|
1697
|
+
enumerable: true,
|
|
1698
|
+
configurable: true
|
|
1699
1699
|
}), r = o;
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
|
-
return t.createNode(r,
|
|
1702
|
+
return t.createNode(r, false);
|
|
1703
1703
|
}
|
|
1704
1704
|
var Rs = t => t == null || typeof t == "object" && t[Symbol.iterator]().next().done,
|
|
1705
1705
|
W = class t extends V {
|
|
@@ -1709,35 +1709,35 @@ ${e}${t}` : t;
|
|
|
1709
1709
|
addIn(e, n) {
|
|
1710
1710
|
if (Rs(e)) this.add(n);else {
|
|
1711
1711
|
let [r, ...s] = e,
|
|
1712
|
-
i = this.get(r,
|
|
1712
|
+
i = this.get(r, true);
|
|
1713
1713
|
if (i instanceof t) i.addIn(s, n);else if (i === void 0 && this.schema) this.set(r, Ps(this.schema, s, n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);
|
|
1714
1714
|
}
|
|
1715
1715
|
}
|
|
1716
1716
|
deleteIn([e, ...n]) {
|
|
1717
1717
|
if (n.length === 0) return this.delete(e);
|
|
1718
|
-
let r = this.get(e,
|
|
1718
|
+
let r = this.get(e, true);
|
|
1719
1719
|
if (r instanceof t) return r.deleteIn(n);
|
|
1720
1720
|
throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`);
|
|
1721
1721
|
}
|
|
1722
1722
|
getIn([e, ...n], r) {
|
|
1723
|
-
let s = this.get(e,
|
|
1723
|
+
let s = this.get(e, true);
|
|
1724
1724
|
return n.length === 0 ? !r && s instanceof P ? s.value : s : s instanceof t ? s.getIn(n, r) : void 0;
|
|
1725
1725
|
}
|
|
1726
1726
|
hasAllNullValues() {
|
|
1727
1727
|
return this.items.every(e => {
|
|
1728
|
-
if (!e || e.type !== "PAIR") return
|
|
1728
|
+
if (!e || e.type !== "PAIR") return false;
|
|
1729
1729
|
let n = e.value;
|
|
1730
1730
|
return n == null || n instanceof P && n.value == null && !n.commentBefore && !n.comment && !n.tag;
|
|
1731
1731
|
});
|
|
1732
1732
|
}
|
|
1733
1733
|
hasIn([e, ...n]) {
|
|
1734
1734
|
if (n.length === 0) return this.has(e);
|
|
1735
|
-
let r = this.get(e,
|
|
1736
|
-
return r instanceof t ? r.hasIn(n) :
|
|
1735
|
+
let r = this.get(e, true);
|
|
1736
|
+
return r instanceof t ? r.hasIn(n) : false;
|
|
1737
1737
|
}
|
|
1738
1738
|
setIn([e, ...n], r) {
|
|
1739
1739
|
if (n.length === 0) this.set(e, r);else {
|
|
1740
|
-
let s = this.get(e,
|
|
1740
|
+
let s = this.get(e, true);
|
|
1741
1741
|
if (s instanceof t) s.setIn(n, r);else if (s === void 0 && this.schema) this.set(e, Ps(this.schema, n, r));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`);
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
@@ -1764,8 +1764,8 @@ ${e}${t}` : t;
|
|
|
1764
1764
|
inFlow: m,
|
|
1765
1765
|
type: null
|
|
1766
1766
|
});
|
|
1767
|
-
let y =
|
|
1768
|
-
h =
|
|
1767
|
+
let y = false,
|
|
1768
|
+
h = false,
|
|
1769
1769
|
g = this.items.reduce((C, L, M) => {
|
|
1770
1770
|
let A;
|
|
1771
1771
|
L && (!y && L.spaceBefore && C.push({
|
|
@@ -1776,10 +1776,10 @@ ${e}${t}` : t;
|
|
|
1776
1776
|
type: "comment",
|
|
1777
1777
|
str: `#${Oi}`
|
|
1778
1778
|
});
|
|
1779
|
-
}), L.comment && (A = L.comment), m && (!y && L.spaceBefore || L.commentBefore || L.comment || L.key && (L.key.commentBefore || L.key.comment) || L.value && (L.value.commentBefore || L.value.comment)) && (h =
|
|
1780
|
-
let _ = f(L, e, () => A = null, () => y =
|
|
1779
|
+
}), L.comment && (A = L.comment), m && (!y && L.spaceBefore || L.commentBefore || L.comment || L.key && (L.key.commentBefore || L.key.comment) || L.value && (L.value.commentBefore || L.value.comment)) && (h = true)), y = false;
|
|
1780
|
+
let _ = f(L, e, () => A = null, () => y = true);
|
|
1781
1781
|
return m && !h && _.includes(`
|
|
1782
|
-
`) && (h =
|
|
1782
|
+
`) && (h = true), m && M < this.items.length - 1 && (_ += ","), _ = Be(_, i, A), y && (A || m) && (y = false), C.push({
|
|
1783
1783
|
type: "item",
|
|
1784
1784
|
str: _
|
|
1785
1785
|
}), C;
|
|
@@ -1821,7 +1821,7 @@ ${c}${L}` : `
|
|
|
1821
1821
|
}
|
|
1822
1822
|
delete(e) {
|
|
1823
1823
|
let n = $t(e);
|
|
1824
|
-
return typeof n != "number" ?
|
|
1824
|
+
return typeof n != "number" ? false : this.items.splice(n, 1).length > 0;
|
|
1825
1825
|
}
|
|
1826
1826
|
get(e, n) {
|
|
1827
1827
|
let r = $t(e);
|
|
@@ -1852,7 +1852,7 @@ ${c}${L}` : `
|
|
|
1852
1852
|
start: "[",
|
|
1853
1853
|
end: "]"
|
|
1854
1854
|
},
|
|
1855
|
-
isMap:
|
|
1855
|
+
isMap: false,
|
|
1856
1856
|
itemIndent: (e.indent || "") + " "
|
|
1857
1857
|
}, n, r) : JSON.stringify(this);
|
|
1858
1858
|
}
|
|
@@ -1862,8 +1862,8 @@ ${c}${L}` : `
|
|
|
1862
1862
|
doc: n.doc,
|
|
1863
1863
|
indent: "",
|
|
1864
1864
|
indentStep: n.indentStep,
|
|
1865
|
-
inFlow:
|
|
1866
|
-
inStringifyKey:
|
|
1865
|
+
inFlow: true,
|
|
1866
|
+
inStringifyKey: true,
|
|
1867
1867
|
stringify: n.stringify
|
|
1868
1868
|
}) : JSON.stringify(e),
|
|
1869
1869
|
T = class t extends V {
|
|
@@ -1889,9 +1889,9 @@ ${c}${L}` : `
|
|
|
1889
1889
|
i = ue(this.value, s, e);
|
|
1890
1890
|
s in n ? Object.defineProperty(n, s, {
|
|
1891
1891
|
value: i,
|
|
1892
|
-
writable:
|
|
1893
|
-
enumerable:
|
|
1894
|
-
configurable:
|
|
1892
|
+
writable: true,
|
|
1893
|
+
enumerable: true,
|
|
1894
|
+
configurable: true
|
|
1895
1895
|
}) : n[s] = i;
|
|
1896
1896
|
}
|
|
1897
1897
|
return n;
|
|
@@ -1930,11 +1930,11 @@ ${c}${L}` : `
|
|
|
1930
1930
|
implicitKey: !f,
|
|
1931
1931
|
indent: d + y
|
|
1932
1932
|
});
|
|
1933
|
-
let g =
|
|
1934
|
-
w = h(a, e, () => l = null, () => g =
|
|
1933
|
+
let g = false,
|
|
1934
|
+
w = h(a, e, () => l = null, () => g = true);
|
|
1935
1935
|
if (w = Be(w, e.indent, l), !f && w.length > 1024) {
|
|
1936
1936
|
if (o) throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
1937
|
-
f =
|
|
1937
|
+
f = true;
|
|
1938
1938
|
}
|
|
1939
1939
|
if (e.allNullValues && !o) return this.comment ? (w = Be(w, e.indent, this.comment), n && n()) : g && !l && r && r(), e.inFlow && !f ? w : `? ${w}`;
|
|
1940
1940
|
w = f ? `? ${w}
|
|
@@ -1949,9 +1949,9 @@ ${d}:` : `${w}:`, this.comment && (w = Be(w, e.indent, this.comment), n && n());
|
|
|
1949
1949
|
${_}`;
|
|
1950
1950
|
}
|
|
1951
1951
|
L = c.comment;
|
|
1952
|
-
} else c && typeof c == "object" && (c = m.schema.createNode(c,
|
|
1953
|
-
e.implicitKey =
|
|
1954
|
-
let M = h(c, e, () => L = null, () => g =
|
|
1952
|
+
} else c && typeof c == "object" && (c = m.schema.createNode(c, true));
|
|
1953
|
+
e.implicitKey = false, !f && !this.comment && c instanceof P && (e.indentAtStart = w.length + 1), g = false, !i && s >= 2 && !e.inFlow && !f && c instanceof pe && c.type !== p.Type.FLOW_SEQ && !c.tag && !m.anchors.getName(c) && (e.indent = e.indent.substr(2));
|
|
1954
|
+
let M = h(c, e, () => L = null, () => g = true),
|
|
1955
1955
|
A = " ";
|
|
1956
1956
|
return C || this.comment ? A = `${C}
|
|
1957
1957
|
${e.indent}` : !f && c instanceof W ? (!(M[0] === "[" || M[0] === "{") || M.includes(`
|
|
@@ -2024,7 +2024,7 @@ ${e.indent}`) : M[0] === `
|
|
|
2024
2024
|
return t.stringify(this, e);
|
|
2025
2025
|
}
|
|
2026
2026
|
};
|
|
2027
|
-
p._defineProperty(we, "default",
|
|
2027
|
+
p._defineProperty(we, "default", true);
|
|
2028
2028
|
function pt(t, e) {
|
|
2029
2029
|
let n = e instanceof P ? e.value : e;
|
|
2030
2030
|
for (let r of t) if (r instanceof T && (r.key === e || r.key === n || r.key && r.key.value === n)) return r;
|
|
@@ -2043,7 +2043,7 @@ ${e.indent}`) : M[0] === `
|
|
|
2043
2043
|
}
|
|
2044
2044
|
delete(e) {
|
|
2045
2045
|
let n = pt(this.items, e);
|
|
2046
|
-
return n ? this.items.splice(this.items.indexOf(n), 1).length > 0 :
|
|
2046
|
+
return n ? this.items.splice(this.items.indexOf(n), 1).length > 0 : false;
|
|
2047
2047
|
}
|
|
2048
2048
|
get(e, n) {
|
|
2049
2049
|
let r = pt(this.items, e),
|
|
@@ -2054,7 +2054,7 @@ ${e.indent}`) : M[0] === `
|
|
|
2054
2054
|
return !!pt(this.items, e);
|
|
2055
2055
|
}
|
|
2056
2056
|
set(e, n) {
|
|
2057
|
-
this.add(new T(e, n),
|
|
2057
|
+
this.add(new T(e, n), true);
|
|
2058
2058
|
}
|
|
2059
2059
|
toJSON(e, n, r) {
|
|
2060
2060
|
let s = r ? new r() : n && n.mapAsMap ? new Map() : {};
|
|
@@ -2071,7 +2071,7 @@ ${e.indent}`) : M[0] === `
|
|
|
2071
2071
|
start: "{",
|
|
2072
2072
|
end: "}"
|
|
2073
2073
|
},
|
|
2074
|
-
isMap:
|
|
2074
|
+
isMap: true,
|
|
2075
2075
|
itemIndent: e.indent || ""
|
|
2076
2076
|
}, n, r);
|
|
2077
2077
|
}
|
|
@@ -2093,9 +2093,9 @@ ${e.indent}`) : M[0] === `
|
|
|
2093
2093
|
let s = r.toJSON(null, e, Map);
|
|
2094
2094
|
for (let [i, o] of s) n instanceof Map ? n.has(i) || n.set(i, o) : n instanceof Set ? n.add(i) : Object.prototype.hasOwnProperty.call(n, i) || Object.defineProperty(n, i, {
|
|
2095
2095
|
value: o,
|
|
2096
|
-
writable:
|
|
2097
|
-
enumerable:
|
|
2098
|
-
configurable:
|
|
2096
|
+
writable: true,
|
|
2097
|
+
enumerable: true,
|
|
2098
|
+
configurable: true
|
|
2099
2099
|
});
|
|
2100
2100
|
}
|
|
2101
2101
|
return n;
|
|
@@ -2117,7 +2117,7 @@ ${e.indent}`) : M[0] === `
|
|
|
2117
2117
|
falseStr: "false"
|
|
2118
2118
|
},
|
|
2119
2119
|
_o = {
|
|
2120
|
-
asBigInt:
|
|
2120
|
+
asBigInt: false
|
|
2121
2121
|
},
|
|
2122
2122
|
xo = {
|
|
2123
2123
|
nullStr: "null"
|
|
@@ -2125,7 +2125,7 @@ ${e.indent}`) : M[0] === `
|
|
|
2125
2125
|
be = {
|
|
2126
2126
|
defaultType: p.Type.PLAIN,
|
|
2127
2127
|
doubleQuoted: {
|
|
2128
|
-
jsonEncoding:
|
|
2128
|
+
jsonEncoding: false,
|
|
2129
2129
|
minMultiLineLength: 40
|
|
2130
2130
|
},
|
|
2131
2131
|
fold: {
|
|
@@ -2175,7 +2175,7 @@ ${e.indent}`) : M[0] === `
|
|
|
2175
2175
|
typeof r == "number" && (r > s - Math.max(2, i) ? l.push(0) : m = s - r);
|
|
2176
2176
|
let d,
|
|
2177
2177
|
y,
|
|
2178
|
-
h =
|
|
2178
|
+
h = false,
|
|
2179
2179
|
g = -1,
|
|
2180
2180
|
w = -1,
|
|
2181
2181
|
C = -1;
|
|
@@ -2206,11 +2206,11 @@ ${e.indent}`) : M[0] === `
|
|
|
2206
2206
|
` && A !== " " && (d = g);
|
|
2207
2207
|
}
|
|
2208
2208
|
if (g >= m) if (d) l.push(d), m = d + c, d = void 0;else if (n === qt) {
|
|
2209
|
-
for (; y === " " || y === " ";) y = M, M = t[g += 1], h =
|
|
2209
|
+
for (; y === " " || y === " ";) y = M, M = t[g += 1], h = true;
|
|
2210
2210
|
let A = g > C + 1 ? g - 2 : w - 1;
|
|
2211
2211
|
if (f[A]) return t;
|
|
2212
|
-
l.push(A), f[A] =
|
|
2213
|
-
} else h =
|
|
2212
|
+
l.push(A), f[A] = true, m = A + c, d = void 0;
|
|
2213
|
+
} else h = true;
|
|
2214
2214
|
}
|
|
2215
2215
|
y = M;
|
|
2216
2216
|
}
|
|
@@ -2233,16 +2233,16 @@ ${e}${t.slice(A + 1, _)}`);
|
|
|
2233
2233
|
}, be.fold) : be.fold,
|
|
2234
2234
|
Wt = t => /^(%|---|\.\.\.)/m.test(t);
|
|
2235
2235
|
function Ro(t, e, n) {
|
|
2236
|
-
if (!e || e < 0) return
|
|
2236
|
+
if (!e || e < 0) return false;
|
|
2237
2237
|
let r = e - n,
|
|
2238
2238
|
s = t.length;
|
|
2239
|
-
if (s <= r) return
|
|
2239
|
+
if (s <= r) return false;
|
|
2240
2240
|
for (let i = 0, o = 0; i < s; ++i) if (t[i] === `
|
|
2241
2241
|
`) {
|
|
2242
|
-
if (i - o > r) return
|
|
2243
|
-
if (o = i + 1, s - o <= r) return
|
|
2242
|
+
if (i - o > r) return true;
|
|
2243
|
+
if (o = i + 1, s - o <= r) return false;
|
|
2244
2244
|
}
|
|
2245
|
-
return
|
|
2245
|
+
return true;
|
|
2246
2246
|
}
|
|
2247
2247
|
function Se(t, e) {
|
|
2248
2248
|
let {
|
|
@@ -2324,7 +2324,7 @@ ${n}`) + "'";
|
|
|
2324
2324
|
if (/\n[\t ]+$/.test(n) || /^\s*$/.test(n)) return Se(n, r);
|
|
2325
2325
|
let o = r.indent || (r.forceBlockIndent || Wt(n) ? " " : ""),
|
|
2326
2326
|
a = o ? "2" : "1",
|
|
2327
|
-
c = e === p.Type.BLOCK_FOLDED ?
|
|
2327
|
+
c = e === p.Type.BLOCK_FOLDED ? false : e === p.Type.BLOCK_LITERAL ? true : !Ro(n, be.fold.lineWidth, o.length),
|
|
2328
2328
|
l = c ? "|" : ">";
|
|
2329
2329
|
if (!n) return l + `
|
|
2330
2330
|
`;
|
|
@@ -2365,7 +2365,7 @@ ${o}${d}`;
|
|
|
2365
2365
|
`) === -1 ? o.indexOf('"') !== -1 && o.indexOf("'") === -1 ? Bs(o, e) : Se(o, e) : Ut(t, e, n, r);
|
|
2366
2366
|
if (!c && !f && i !== p.Type.PLAIN && o.indexOf(`
|
|
2367
2367
|
`) !== -1) return Ut(t, e, n, r);
|
|
2368
|
-
if (l === "" && Wt(o)) return e.forceBlockIndent =
|
|
2368
|
+
if (l === "" && Wt(o)) return e.forceBlockIndent = true, Ut(t, e, n, r);
|
|
2369
2369
|
let m = o.replace(/\n+/g, `$&
|
|
2370
2370
|
${l}`);
|
|
2371
2371
|
if (a) {
|
|
@@ -2478,7 +2478,7 @@ ${l}`);
|
|
|
2478
2478
|
comment: s
|
|
2479
2479
|
} of e) {
|
|
2480
2480
|
let i = t.items[r];
|
|
2481
|
-
i ? (n && i.value && (i = i.value), s === void 0 ? (n || !i.commentBefore) && (i.spaceBefore =
|
|
2481
|
+
i ? (n && i.value && (i = i.value), s === void 0 ? (n || !i.commentBefore) && (i.spaceBefore = true) : i.commentBefore ? i.commentBefore += `
|
|
2482
2482
|
` + s : i.commentBefore = s) : s !== void 0 && (t.comment ? t.comment += `
|
|
2483
2483
|
` + s : t.comment = s);
|
|
2484
2484
|
}
|
|
@@ -2514,7 +2514,7 @@ ${l}`);
|
|
|
2514
2514
|
tag: n,
|
|
2515
2515
|
type: r
|
|
2516
2516
|
} = e,
|
|
2517
|
-
s =
|
|
2517
|
+
s = false;
|
|
2518
2518
|
if (n) {
|
|
2519
2519
|
let {
|
|
2520
2520
|
handle: i,
|
|
@@ -2525,7 +2525,7 @@ ${l}`);
|
|
|
2525
2525
|
if (a !== "!" && a !== "!!") return a;
|
|
2526
2526
|
let c = `Verbatim tags aren't resolved, so ${a} is invalid.`;
|
|
2527
2527
|
t.errors.push(new p.YAMLSemanticError(e, c));
|
|
2528
|
-
} else if (i === "!" && !o) s =
|
|
2528
|
+
} else if (i === "!" && !o) s = true;else try {
|
|
2529
2529
|
return $o(t, e);
|
|
2530
2530
|
} catch (c) {
|
|
2531
2531
|
t.errors.push(c);
|
|
@@ -2595,7 +2595,7 @@ ${l}`);
|
|
|
2595
2595
|
}
|
|
2596
2596
|
}
|
|
2597
2597
|
var Ko = t => {
|
|
2598
|
-
if (!t) return
|
|
2598
|
+
if (!t) return false;
|
|
2599
2599
|
let {
|
|
2600
2600
|
type: e
|
|
2601
2601
|
} = t;
|
|
@@ -2606,8 +2606,8 @@ ${l}`);
|
|
|
2606
2606
|
before: [],
|
|
2607
2607
|
after: []
|
|
2608
2608
|
},
|
|
2609
|
-
r =
|
|
2610
|
-
s =
|
|
2609
|
+
r = false,
|
|
2610
|
+
s = false,
|
|
2611
2611
|
i = Ko(e.context.parent) ? e.context.parent.props.concat(e.props) : e.props;
|
|
2612
2612
|
for (let {
|
|
2613
2613
|
start: o,
|
|
@@ -2631,14 +2631,14 @@ ${l}`);
|
|
|
2631
2631
|
let c = "A node can have at most one anchor";
|
|
2632
2632
|
t.push(new p.YAMLSemanticError(e, c));
|
|
2633
2633
|
}
|
|
2634
|
-
r =
|
|
2634
|
+
r = true;
|
|
2635
2635
|
break;
|
|
2636
2636
|
case p.Char.TAG:
|
|
2637
2637
|
if (s) {
|
|
2638
2638
|
let c = "A node can have at most one tag";
|
|
2639
2639
|
t.push(new p.YAMLSemanticError(e, c));
|
|
2640
2640
|
}
|
|
2641
|
-
s =
|
|
2641
|
+
s = true;
|
|
2642
2642
|
break;
|
|
2643
2643
|
}
|
|
2644
2644
|
return {
|
|
@@ -2721,12 +2721,12 @@ ${a}` : a);
|
|
|
2721
2721
|
} = e.type === p.Type.FLOW_MAP ? Ho(t, e) : Go(t, e),
|
|
2722
2722
|
s = new mt();
|
|
2723
2723
|
s.items = r, Us(s, n);
|
|
2724
|
-
let i =
|
|
2724
|
+
let i = false;
|
|
2725
2725
|
for (let o = 0; o < r.length; ++o) {
|
|
2726
2726
|
let {
|
|
2727
2727
|
key: a
|
|
2728
2728
|
} = r[o];
|
|
2729
|
-
if (a instanceof W && (i =
|
|
2729
|
+
if (a instanceof W && (i = true), t.schema.merge && a && a.value === Ds) {
|
|
2730
2730
|
r[o] = new Kt(r[o]);
|
|
2731
2731
|
let c = r[o].value.items,
|
|
2732
2732
|
l = null;
|
|
@@ -2735,7 +2735,7 @@ ${a}` : a);
|
|
|
2735
2735
|
let {
|
|
2736
2736
|
type: m
|
|
2737
2737
|
} = f.source;
|
|
2738
|
-
return m === p.Type.MAP || m === p.Type.FLOW_MAP ?
|
|
2738
|
+
return m === p.Type.MAP || m === p.Type.FLOW_MAP ? false : l = "Merge nodes aliases can only point to maps";
|
|
2739
2739
|
}
|
|
2740
2740
|
return l = "Merge nodes can only have Alias nodes as values";
|
|
2741
2741
|
}), l && t.errors.push(new p.YAMLSemanticError(e, l));
|
|
@@ -2764,23 +2764,23 @@ ${a}` : a);
|
|
|
2764
2764
|
},
|
|
2765
2765
|
props: r
|
|
2766
2766
|
}) => {
|
|
2767
|
-
if (r.length === 0) return
|
|
2767
|
+
if (r.length === 0) return false;
|
|
2768
2768
|
let {
|
|
2769
2769
|
start: s
|
|
2770
2770
|
} = r[0];
|
|
2771
|
-
if (e && s > e.valueRange.start || n[s] !== p.Char.COMMENT) return
|
|
2771
|
+
if (e && s > e.valueRange.start || n[s] !== p.Char.COMMENT) return false;
|
|
2772
2772
|
for (let i = t; i < s; ++i) if (n[i] === `
|
|
2773
|
-
`) return
|
|
2774
|
-
return
|
|
2773
|
+
`) return false;
|
|
2774
|
+
return true;
|
|
2775
2775
|
};
|
|
2776
2776
|
function Jo(t, e) {
|
|
2777
2777
|
if (!Qo(t)) return;
|
|
2778
|
-
let n = t.getPropValue(0, p.Char.COMMENT,
|
|
2779
|
-
r =
|
|
2778
|
+
let n = t.getPropValue(0, p.Char.COMMENT, true),
|
|
2779
|
+
r = false,
|
|
2780
2780
|
s = e.value.commentBefore;
|
|
2781
|
-
if (s && s.startsWith(n)) e.value.commentBefore = s.substr(n.length + 1), r =
|
|
2781
|
+
if (s && s.startsWith(n)) e.value.commentBefore = s.substr(n.length + 1), r = true;else {
|
|
2782
2782
|
let i = e.value.comment;
|
|
2783
|
-
!t.node && i && i.startsWith(n) && (e.value.comment = i.substr(n.length + 1), r =
|
|
2783
|
+
!t.node && i && i.startsWith(n) && (e.value.comment = i.substr(n.length + 1), r = true);
|
|
2784
2784
|
}
|
|
2785
2785
|
r && (e.comment = n);
|
|
2786
2786
|
}
|
|
@@ -2869,7 +2869,7 @@ ${a}` : a);
|
|
|
2869
2869
|
let n = [],
|
|
2870
2870
|
r = [],
|
|
2871
2871
|
s,
|
|
2872
|
-
i =
|
|
2872
|
+
i = false,
|
|
2873
2873
|
o = "{";
|
|
2874
2874
|
for (let a = 0; a < e.items.length; ++a) {
|
|
2875
2875
|
let c = e.items[a];
|
|
@@ -2879,7 +2879,7 @@ ${a}` : a);
|
|
|
2879
2879
|
offset: f
|
|
2880
2880
|
} = c;
|
|
2881
2881
|
if (l === "?" && s === void 0 && !i) {
|
|
2882
|
-
i =
|
|
2882
|
+
i = true, o = ":";
|
|
2883
2883
|
continue;
|
|
2884
2884
|
}
|
|
2885
2885
|
if (l === ":") {
|
|
@@ -2887,7 +2887,7 @@ ${a}` : a);
|
|
|
2887
2887
|
o = ",";
|
|
2888
2888
|
continue;
|
|
2889
2889
|
}
|
|
2890
|
-
} else if (i && (s === void 0 && l !== "," && (s = null), i =
|
|
2890
|
+
} else if (i && (s === void 0 && l !== "," && (s = null), i = false), s !== void 0 && (r.push(new T(s)), s = void 0, l === ",")) {
|
|
2891
2891
|
o = ":";
|
|
2892
2892
|
continue;
|
|
2893
2893
|
}
|
|
@@ -2907,7 +2907,7 @@ ${a}` : a);
|
|
|
2907
2907
|
afterKey: !!s,
|
|
2908
2908
|
before: r.length,
|
|
2909
2909
|
comment: c.comment
|
|
2910
|
-
})) : s === void 0 ? (o === "," && t.errors.push(new p.YAMLSemanticError(c, "Separator , missing in flow map")), s = me(t, c)) : (o !== "," && t.errors.push(new p.YAMLSemanticError(c, "Indicator : missing in flow map entry")), r.push(new T(s, me(t, c))), s = void 0, i =
|
|
2910
|
+
})) : s === void 0 ? (o === "," && t.errors.push(new p.YAMLSemanticError(c, "Separator , missing in flow map")), s = me(t, c)) : (o !== "," && t.errors.push(new p.YAMLSemanticError(c, "Indicator : missing in flow map entry")), r.push(new T(s, me(t, c))), s = void 0, i = false);
|
|
2911
2911
|
}
|
|
2912
2912
|
return $s(t.errors, e), s !== void 0 && r.push(new T(s)), {
|
|
2913
2913
|
comments: n,
|
|
@@ -2965,7 +2965,7 @@ ${a}` : a);
|
|
|
2965
2965
|
function Zo(t, e) {
|
|
2966
2966
|
let n = [],
|
|
2967
2967
|
r = [],
|
|
2968
|
-
s =
|
|
2968
|
+
s = false,
|
|
2969
2969
|
i,
|
|
2970
2970
|
o = null,
|
|
2971
2971
|
a = "[",
|
|
@@ -2977,7 +2977,7 @@ ${a}` : a);
|
|
|
2977
2977
|
char: m,
|
|
2978
2978
|
offset: d
|
|
2979
2979
|
} = f;
|
|
2980
|
-
if (m !== ":" && (s || i !== void 0) && (s && i === void 0 && (i = a ? r.pop() : null), r.push(new T(i)), s =
|
|
2980
|
+
if (m !== ":" && (s || i !== void 0) && (s && i === void 0 && (i = a ? r.pop() : null), r.push(new T(i)), s = false, i = void 0, o = null), m === a) a = null;else if (!a && m === "?") s = true;else if (a !== "[" && m === ":" && i === void 0) {
|
|
2981
2981
|
if (a === ",") {
|
|
2982
2982
|
if (i = r.pop(), i instanceof T) {
|
|
2983
2983
|
let y = "Chaining flow sequence pairs is invalid",
|
|
@@ -2998,7 +2998,7 @@ ${a}` : a);
|
|
|
2998
2998
|
}
|
|
2999
2999
|
}
|
|
3000
3000
|
} else i = null;
|
|
3001
|
-
o = null, s =
|
|
3001
|
+
o = null, s = false, a = null;
|
|
3002
3002
|
} else if (a === "[" || m !== "]" || l < e.items.length - 1) {
|
|
3003
3003
|
let y = `Flow sequence contains an unexpected ${m}`,
|
|
3004
3004
|
h = new p.YAMLSyntaxError(e, y);
|
|
@@ -3053,7 +3053,7 @@ var Qn = ee(z => {
|
|
|
3053
3053
|
O = $e(),
|
|
3054
3054
|
ea = {
|
|
3055
3055
|
identify: t => t instanceof Uint8Array,
|
|
3056
|
-
default:
|
|
3056
|
+
default: false,
|
|
3057
3057
|
tag: "tag:yaml.org,2002:binary",
|
|
3058
3058
|
resolve: (t, e) => {
|
|
3059
3059
|
let n = O.resolveString(t, e);
|
|
@@ -3134,7 +3134,7 @@ ${i.comment}` : s.comment), s = i;
|
|
|
3134
3134
|
return r;
|
|
3135
3135
|
}
|
|
3136
3136
|
var ta = {
|
|
3137
|
-
default:
|
|
3137
|
+
default: false,
|
|
3138
3138
|
tag: "tag:yaml.org,2002:pairs",
|
|
3139
3139
|
resolve: Vs,
|
|
3140
3140
|
createNode: Ws
|
|
@@ -3174,7 +3174,7 @@ ${i.comment}` : s.comment), s = i;
|
|
|
3174
3174
|
var sa = {
|
|
3175
3175
|
identify: t => t instanceof Map,
|
|
3176
3176
|
nodeClass: Fe,
|
|
3177
|
-
default:
|
|
3177
|
+
default: false,
|
|
3178
3178
|
tag: "tag:yaml.org,2002:omap",
|
|
3179
3179
|
resolve: na,
|
|
3180
3180
|
createNode: ra
|
|
@@ -3219,7 +3219,7 @@ ${i.comment}` : s.comment), s = i;
|
|
|
3219
3219
|
var aa = {
|
|
3220
3220
|
identify: t => t instanceof Set,
|
|
3221
3221
|
nodeClass: qe,
|
|
3222
|
-
default:
|
|
3222
|
+
default: false,
|
|
3223
3223
|
tag: "tag:yaml.org,2002:set",
|
|
3224
3224
|
resolve: ia,
|
|
3225
3225
|
createNode: oa
|
|
@@ -3239,7 +3239,7 @@ ${i.comment}` : s.comment), s = i;
|
|
|
3239
3239
|
},
|
|
3240
3240
|
ca = {
|
|
3241
3241
|
identify: t => typeof t == "number",
|
|
3242
|
-
default:
|
|
3242
|
+
default: true,
|
|
3243
3243
|
tag: "tag:yaml.org,2002:int",
|
|
3244
3244
|
format: "TIME",
|
|
3245
3245
|
test: /^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,
|
|
@@ -3248,7 +3248,7 @@ ${i.comment}` : s.comment), s = i;
|
|
|
3248
3248
|
},
|
|
3249
3249
|
la = {
|
|
3250
3250
|
identify: t => typeof t == "number",
|
|
3251
|
-
default:
|
|
3251
|
+
default: true,
|
|
3252
3252
|
tag: "tag:yaml.org,2002:float",
|
|
3253
3253
|
format: "TIME",
|
|
3254
3254
|
test: /^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,
|
|
@@ -3257,7 +3257,7 @@ ${i.comment}` : s.comment), s = i;
|
|
|
3257
3257
|
},
|
|
3258
3258
|
fa = {
|
|
3259
3259
|
identify: t => t instanceof Date,
|
|
3260
|
-
default:
|
|
3260
|
+
default: true,
|
|
3261
3261
|
tag: "tag:yaml.org,2002:timestamp",
|
|
3262
3262
|
test: RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),
|
|
3263
3263
|
resolve: (t, e, n, r, s, i, o, a, c) => {
|
|
@@ -3278,18 +3278,18 @@ ${i.comment}` : s.comment), s = i;
|
|
|
3278
3278
|
return t ? typeof YAML_SILENCE_DEPRECATION_WARNINGS < "u" ? !YAML_SILENCE_DEPRECATION_WARNINGS : !e.YAML_SILENCE_DEPRECATION_WARNINGS : typeof YAML_SILENCE_WARNINGS < "u" ? !YAML_SILENCE_WARNINGS : !e.YAML_SILENCE_WARNINGS;
|
|
3279
3279
|
}
|
|
3280
3280
|
function jn(t, e) {
|
|
3281
|
-
Wn(
|
|
3281
|
+
Wn(false) && console.warn(e ? `${e}: ${t}` : t);
|
|
3282
3282
|
}
|
|
3283
3283
|
function ua(t) {
|
|
3284
|
-
if (Wn(
|
|
3284
|
+
if (Wn(true)) {
|
|
3285
3285
|
let e = t.replace(/.*yaml[/\\]/i, "").replace(/\.js$/, "").replace(/\\/g, "/");
|
|
3286
3286
|
jn(`The endpoint 'yaml/${e}' will be removed in a future release.`, "DeprecationWarning");
|
|
3287
3287
|
}
|
|
3288
3288
|
}
|
|
3289
3289
|
var Ks = {};
|
|
3290
3290
|
function pa(t, e) {
|
|
3291
|
-
if (!Ks[t] && Wn(
|
|
3292
|
-
Ks[t] =
|
|
3291
|
+
if (!Ks[t] && Wn(true)) {
|
|
3292
|
+
Ks[t] = true;
|
|
3293
3293
|
let n = `The option '${t}' will be removed in a future release`;
|
|
3294
3294
|
n += e ? `, use '${e}' instead.` : ".", jn(n, "DeprecationWarning");
|
|
3295
3295
|
}
|
|
@@ -3317,7 +3317,7 @@ var Xn = ee(ii => {
|
|
|
3317
3317
|
}
|
|
3318
3318
|
var gt = {
|
|
3319
3319
|
createNode: ma,
|
|
3320
|
-
default:
|
|
3320
|
+
default: true,
|
|
3321
3321
|
nodeClass: E.YAMLMap,
|
|
3322
3322
|
tag: "tag:yaml.org,2002:map",
|
|
3323
3323
|
resolve: E.resolveMap
|
|
@@ -3332,19 +3332,19 @@ var Xn = ee(ii => {
|
|
|
3332
3332
|
}
|
|
3333
3333
|
var Gt = {
|
|
3334
3334
|
createNode: ha,
|
|
3335
|
-
default:
|
|
3335
|
+
default: true,
|
|
3336
3336
|
nodeClass: E.YAMLSeq,
|
|
3337
3337
|
tag: "tag:yaml.org,2002:seq",
|
|
3338
3338
|
resolve: E.resolveSeq
|
|
3339
3339
|
},
|
|
3340
3340
|
ga = {
|
|
3341
3341
|
identify: t => typeof t == "string",
|
|
3342
|
-
default:
|
|
3342
|
+
default: true,
|
|
3343
3343
|
tag: "tag:yaml.org,2002:str",
|
|
3344
3344
|
resolve: E.resolveString,
|
|
3345
3345
|
stringify(t, e, n, r) {
|
|
3346
3346
|
return e = Object.assign({
|
|
3347
|
-
actualString:
|
|
3347
|
+
actualString: true
|
|
3348
3348
|
}, e), E.stringifyString(t, e, n, r);
|
|
3349
3349
|
},
|
|
3350
3350
|
options: E.strOptions
|
|
@@ -3361,7 +3361,7 @@ var Xn = ee(ii => {
|
|
|
3361
3361
|
var Hs = {
|
|
3362
3362
|
identify: t => t == null,
|
|
3363
3363
|
createNode: (t, e, n) => n.wrapScalars ? new E.Scalar(null) : null,
|
|
3364
|
-
default:
|
|
3364
|
+
default: true,
|
|
3365
3365
|
tag: "tag:yaml.org,2002:null",
|
|
3366
3366
|
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
3367
3367
|
resolve: () => null,
|
|
@@ -3370,7 +3370,7 @@ var Xn = ee(ii => {
|
|
|
3370
3370
|
},
|
|
3371
3371
|
Xs = {
|
|
3372
3372
|
identify: t => typeof t == "boolean",
|
|
3373
|
-
default:
|
|
3373
|
+
default: true,
|
|
3374
3374
|
tag: "tag:yaml.org,2002:bool",
|
|
3375
3375
|
test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
|
|
3376
3376
|
resolve: t => t[0] === "t" || t[0] === "T",
|
|
@@ -3381,7 +3381,7 @@ var Xn = ee(ii => {
|
|
|
3381
3381
|
},
|
|
3382
3382
|
zs = {
|
|
3383
3383
|
identify: t => Ht(t) && t >= 0,
|
|
3384
|
-
default:
|
|
3384
|
+
default: true,
|
|
3385
3385
|
tag: "tag:yaml.org,2002:int",
|
|
3386
3386
|
format: "OCT",
|
|
3387
3387
|
test: /^0o([0-7]+)$/,
|
|
@@ -3391,7 +3391,7 @@ var Xn = ee(ii => {
|
|
|
3391
3391
|
},
|
|
3392
3392
|
Zs = {
|
|
3393
3393
|
identify: Ht,
|
|
3394
|
-
default:
|
|
3394
|
+
default: true,
|
|
3395
3395
|
tag: "tag:yaml.org,2002:int",
|
|
3396
3396
|
test: /^[-+]?[0-9]+$/,
|
|
3397
3397
|
resolve: t => Hn(t, t, 10),
|
|
@@ -3400,7 +3400,7 @@ var Xn = ee(ii => {
|
|
|
3400
3400
|
},
|
|
3401
3401
|
ei = {
|
|
3402
3402
|
identify: t => Ht(t) && t >= 0,
|
|
3403
|
-
default:
|
|
3403
|
+
default: true,
|
|
3404
3404
|
tag: "tag:yaml.org,2002:int",
|
|
3405
3405
|
format: "HEX",
|
|
3406
3406
|
test: /^0x([0-9a-fA-F]+)$/,
|
|
@@ -3410,7 +3410,7 @@ var Xn = ee(ii => {
|
|
|
3410
3410
|
},
|
|
3411
3411
|
ti = {
|
|
3412
3412
|
identify: t => typeof t == "number",
|
|
3413
|
-
default:
|
|
3413
|
+
default: true,
|
|
3414
3414
|
tag: "tag:yaml.org,2002:float",
|
|
3415
3415
|
test: /^(?:[-+]?\.inf|(\.nan))$/i,
|
|
3416
3416
|
resolve: (t, e) => e ? NaN : t[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
@@ -3418,7 +3418,7 @@ var Xn = ee(ii => {
|
|
|
3418
3418
|
},
|
|
3419
3419
|
ni = {
|
|
3420
3420
|
identify: t => typeof t == "number",
|
|
3421
|
-
default:
|
|
3421
|
+
default: true,
|
|
3422
3422
|
tag: "tag:yaml.org,2002:float",
|
|
3423
3423
|
format: "EXP",
|
|
3424
3424
|
test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,
|
|
@@ -3429,7 +3429,7 @@ var Xn = ee(ii => {
|
|
|
3429
3429
|
},
|
|
3430
3430
|
ri = {
|
|
3431
3431
|
identify: t => typeof t == "number",
|
|
3432
|
-
default:
|
|
3432
|
+
default: true,
|
|
3433
3433
|
tag: "tag:yaml.org,2002:float",
|
|
3434
3434
|
test: /^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,
|
|
3435
3435
|
resolve(t, e, n) {
|
|
@@ -3446,28 +3446,28 @@ var Xn = ee(ii => {
|
|
|
3446
3446
|
}) => JSON.stringify(t),
|
|
3447
3447
|
si = [gt, Gt, {
|
|
3448
3448
|
identify: t => typeof t == "string",
|
|
3449
|
-
default:
|
|
3449
|
+
default: true,
|
|
3450
3450
|
tag: "tag:yaml.org,2002:str",
|
|
3451
3451
|
resolve: E.resolveString,
|
|
3452
3452
|
stringify: jt
|
|
3453
3453
|
}, {
|
|
3454
3454
|
identify: t => t == null,
|
|
3455
3455
|
createNode: (t, e, n) => n.wrapScalars ? new E.Scalar(null) : null,
|
|
3456
|
-
default:
|
|
3456
|
+
default: true,
|
|
3457
3457
|
tag: "tag:yaml.org,2002:null",
|
|
3458
3458
|
test: /^null$/,
|
|
3459
3459
|
resolve: () => null,
|
|
3460
3460
|
stringify: jt
|
|
3461
3461
|
}, {
|
|
3462
3462
|
identify: t => typeof t == "boolean",
|
|
3463
|
-
default:
|
|
3463
|
+
default: true,
|
|
3464
3464
|
tag: "tag:yaml.org,2002:bool",
|
|
3465
3465
|
test: /^true|false$/,
|
|
3466
3466
|
resolve: t => t === "true",
|
|
3467
3467
|
stringify: jt
|
|
3468
3468
|
}, {
|
|
3469
3469
|
identify: Qs,
|
|
3470
|
-
default:
|
|
3470
|
+
default: true,
|
|
3471
3471
|
tag: "tag:yaml.org,2002:int",
|
|
3472
3472
|
test: /^-?(?:0|[1-9][0-9]*)$/,
|
|
3473
3473
|
resolve: t => E.intOptions.asBigInt ? BigInt(t) : parseInt(t, 10),
|
|
@@ -3476,7 +3476,7 @@ var Xn = ee(ii => {
|
|
|
3476
3476
|
}) => Qs(t) ? t.toString() : JSON.stringify(t)
|
|
3477
3477
|
}, {
|
|
3478
3478
|
identify: t => typeof t == "number",
|
|
3479
|
-
default:
|
|
3479
|
+
default: true,
|
|
3480
3480
|
tag: "tag:yaml.org,2002:float",
|
|
3481
3481
|
test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
|
|
3482
3482
|
resolve: t => parseFloat(t),
|
|
@@ -3522,7 +3522,7 @@ var Xn = ee(ii => {
|
|
|
3522
3522
|
var ya = Gn.concat([{
|
|
3523
3523
|
identify: t => t == null,
|
|
3524
3524
|
createNode: (t, e, n) => n.wrapScalars ? new E.Scalar(null) : null,
|
|
3525
|
-
default:
|
|
3525
|
+
default: true,
|
|
3526
3526
|
tag: "tag:yaml.org,2002:null",
|
|
3527
3527
|
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
3528
3528
|
resolve: () => null,
|
|
@@ -3530,23 +3530,23 @@ var Xn = ee(ii => {
|
|
|
3530
3530
|
stringify: () => E.nullOptions.nullStr
|
|
3531
3531
|
}, {
|
|
3532
3532
|
identify: t => typeof t == "boolean",
|
|
3533
|
-
default:
|
|
3533
|
+
default: true,
|
|
3534
3534
|
tag: "tag:yaml.org,2002:bool",
|
|
3535
3535
|
test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
|
|
3536
|
-
resolve: () =>
|
|
3536
|
+
resolve: () => true,
|
|
3537
3537
|
options: E.boolOptions,
|
|
3538
3538
|
stringify: Js
|
|
3539
3539
|
}, {
|
|
3540
3540
|
identify: t => typeof t == "boolean",
|
|
3541
|
-
default:
|
|
3541
|
+
default: true,
|
|
3542
3542
|
tag: "tag:yaml.org,2002:bool",
|
|
3543
3543
|
test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,
|
|
3544
|
-
resolve: () =>
|
|
3544
|
+
resolve: () => false,
|
|
3545
3545
|
options: E.boolOptions,
|
|
3546
3546
|
stringify: Js
|
|
3547
3547
|
}, {
|
|
3548
3548
|
identify: ht,
|
|
3549
|
-
default:
|
|
3549
|
+
default: true,
|
|
3550
3550
|
tag: "tag:yaml.org,2002:int",
|
|
3551
3551
|
format: "BIN",
|
|
3552
3552
|
test: /^([-+]?)0b([0-1_]+)$/,
|
|
@@ -3554,7 +3554,7 @@ var Xn = ee(ii => {
|
|
|
3554
3554
|
stringify: t => Jn(t, 2, "0b")
|
|
3555
3555
|
}, {
|
|
3556
3556
|
identify: ht,
|
|
3557
|
-
default:
|
|
3557
|
+
default: true,
|
|
3558
3558
|
tag: "tag:yaml.org,2002:int",
|
|
3559
3559
|
format: "OCT",
|
|
3560
3560
|
test: /^([-+]?)0([0-7_]+)$/,
|
|
@@ -3562,14 +3562,14 @@ var Xn = ee(ii => {
|
|
|
3562
3562
|
stringify: t => Jn(t, 8, "0")
|
|
3563
3563
|
}, {
|
|
3564
3564
|
identify: ht,
|
|
3565
|
-
default:
|
|
3565
|
+
default: true,
|
|
3566
3566
|
tag: "tag:yaml.org,2002:int",
|
|
3567
3567
|
test: /^([-+]?)([0-9][0-9_]*)$/,
|
|
3568
3568
|
resolve: (t, e, n) => Qt(e, n, 10),
|
|
3569
3569
|
stringify: E.stringifyNumber
|
|
3570
3570
|
}, {
|
|
3571
3571
|
identify: ht,
|
|
3572
|
-
default:
|
|
3572
|
+
default: true,
|
|
3573
3573
|
tag: "tag:yaml.org,2002:int",
|
|
3574
3574
|
format: "HEX",
|
|
3575
3575
|
test: /^([-+]?)0x([0-9a-fA-F_]+)$/,
|
|
@@ -3577,14 +3577,14 @@ var Xn = ee(ii => {
|
|
|
3577
3577
|
stringify: t => Jn(t, 16, "0x")
|
|
3578
3578
|
}, {
|
|
3579
3579
|
identify: t => typeof t == "number",
|
|
3580
|
-
default:
|
|
3580
|
+
default: true,
|
|
3581
3581
|
tag: "tag:yaml.org,2002:float",
|
|
3582
3582
|
test: /^(?:[-+]?\.inf|(\.nan))$/i,
|
|
3583
3583
|
resolve: (t, e) => e ? NaN : t[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
3584
3584
|
stringify: E.stringifyNumber
|
|
3585
3585
|
}, {
|
|
3586
3586
|
identify: t => typeof t == "number",
|
|
3587
|
-
default:
|
|
3587
|
+
default: true,
|
|
3588
3588
|
tag: "tag:yaml.org,2002:float",
|
|
3589
3589
|
format: "EXP",
|
|
3590
3590
|
test: /^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,
|
|
@@ -3594,7 +3594,7 @@ var Xn = ee(ii => {
|
|
|
3594
3594
|
}) => Number(t).toExponential()
|
|
3595
3595
|
}, {
|
|
3596
3596
|
identify: t => typeof t == "number",
|
|
3597
|
-
default:
|
|
3597
|
+
default: true,
|
|
3598
3598
|
tag: "tag:yaml.org,2002:float",
|
|
3599
3599
|
test: /^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,
|
|
3600
3600
|
resolve(t, e) {
|
|
@@ -3700,7 +3700,7 @@ var Xn = ee(ii => {
|
|
|
3700
3700
|
sortMapEntries: s,
|
|
3701
3701
|
tags: i
|
|
3702
3702
|
}) {
|
|
3703
|
-
this.merge = !!n, this.name = r, this.sortMapEntries = s ===
|
|
3703
|
+
this.merge = !!n, this.name = r, this.sortMapEntries = s === true ? Oa : s || null, !e && i && D.warnOptionDeprecation("tags", "customTags"), this.tags = Na(Ea, Sa, e || i, r);
|
|
3704
3704
|
}
|
|
3705
3705
|
createNode(e, n, r, s) {
|
|
3706
3706
|
let i = {
|
|
@@ -3713,7 +3713,7 @@ var Xn = ee(ii => {
|
|
|
3713
3713
|
}
|
|
3714
3714
|
createPair(e, n, r) {
|
|
3715
3715
|
r || (r = {
|
|
3716
|
-
wrapScalars:
|
|
3716
|
+
wrapScalars: true
|
|
3717
3717
|
});
|
|
3718
3718
|
let s = this.createNode(e, r.wrapScalars, null, r),
|
|
3719
3719
|
i = this.createNode(n, r.wrapScalars, null, r);
|
|
@@ -3733,14 +3733,14 @@ var li = ee(en => {
|
|
|
3733
3733
|
anchorPrefix: "a",
|
|
3734
3734
|
customTags: null,
|
|
3735
3735
|
indent: 2,
|
|
3736
|
-
indentSeq:
|
|
3737
|
-
keepCstNodes:
|
|
3738
|
-
keepNodeTypes:
|
|
3739
|
-
keepBlobsInJSON:
|
|
3740
|
-
mapAsMap:
|
|
3736
|
+
indentSeq: true,
|
|
3737
|
+
keepCstNodes: false,
|
|
3738
|
+
keepNodeTypes: true,
|
|
3739
|
+
keepBlobsInJSON: true,
|
|
3740
|
+
mapAsMap: false,
|
|
3741
3741
|
maxAliasCount: 100,
|
|
3742
|
-
prettyErrors:
|
|
3743
|
-
simpleKeys:
|
|
3742
|
+
prettyErrors: false,
|
|
3743
|
+
simpleKeys: false,
|
|
3744
3744
|
version: "1.2"
|
|
3745
3745
|
},
|
|
3746
3746
|
Aa = {
|
|
@@ -3778,7 +3778,7 @@ var li = ee(en => {
|
|
|
3778
3778
|
ci = {
|
|
3779
3779
|
"1.0": {
|
|
3780
3780
|
schema: "yaml-1.1",
|
|
3781
|
-
merge:
|
|
3781
|
+
merge: true,
|
|
3782
3782
|
tagPrefixes: [{
|
|
3783
3783
|
handle: "!",
|
|
3784
3784
|
prefix: Y.defaultTagPrefix
|
|
@@ -3789,7 +3789,7 @@ var li = ee(en => {
|
|
|
3789
3789
|
},
|
|
3790
3790
|
1.1: {
|
|
3791
3791
|
schema: "yaml-1.1",
|
|
3792
|
-
merge:
|
|
3792
|
+
merge: true,
|
|
3793
3793
|
tagPrefixes: [{
|
|
3794
3794
|
handle: "!",
|
|
3795
3795
|
prefix: "!"
|
|
@@ -3800,7 +3800,7 @@ var li = ee(en => {
|
|
|
3800
3800
|
},
|
|
3801
3801
|
1.2: {
|
|
3802
3802
|
schema: "core",
|
|
3803
|
-
merge:
|
|
3803
|
+
merge: false,
|
|
3804
3804
|
tagPrefixes: [{
|
|
3805
3805
|
handle: "!",
|
|
3806
3806
|
prefix: "!"
|
|
@@ -3871,7 +3871,7 @@ var li = ee(en => {
|
|
|
3871
3871
|
onTagObj: f => o = f,
|
|
3872
3872
|
prevObjects: new Map()
|
|
3873
3873
|
};
|
|
3874
|
-
t = i.createNode(t,
|
|
3874
|
+
t = i.createNode(t, true, null, l);
|
|
3875
3875
|
for (let f of l.aliasNodes) {
|
|
3876
3876
|
f.source = f.source.node;
|
|
3877
3877
|
let m = s.getName(f.source);
|
|
@@ -3960,7 +3960,7 @@ ${e.indent}${c}` : c;
|
|
|
3960
3960
|
let {
|
|
3961
3961
|
tag: n
|
|
3962
3962
|
} = t;
|
|
3963
|
-
t instanceof S.Collection ? (n && (e[n] =
|
|
3963
|
+
t instanceof S.Collection ? (n && (e[n] = true), t.items.forEach(r => zt(r, e))) : t instanceof S.Pair ? (zt(t.key, e), zt(t.value, e)) : t instanceof S.Scalar && n && (e[n] = true);
|
|
3964
3964
|
}
|
|
3965
3965
|
return e;
|
|
3966
3966
|
},
|
|
@@ -3971,7 +3971,7 @@ ${e.indent}${c}` : c;
|
|
|
3971
3971
|
after: []
|
|
3972
3972
|
},
|
|
3973
3973
|
r,
|
|
3974
|
-
s =
|
|
3974
|
+
s = false;
|
|
3975
3975
|
for (let i of e) if (i.valueRange) {
|
|
3976
3976
|
if (r !== void 0) {
|
|
3977
3977
|
let a = "Document contains trailing content not separated by a ... or --- line";
|
|
@@ -3979,8 +3979,8 @@ ${e.indent}${c}` : c;
|
|
|
3979
3979
|
break;
|
|
3980
3980
|
}
|
|
3981
3981
|
let o = S.resolveNode(t, i);
|
|
3982
|
-
s && (o.spaceBefore =
|
|
3983
|
-
} else i.comment !== null ? (r === void 0 ? n.before : n.after).push(i.comment) : i.type === Y.Type.BLANK_LINE && (s =
|
|
3982
|
+
s && (o.spaceBefore = true, s = false), r = o;
|
|
3983
|
+
} else i.comment !== null ? (r === void 0 ? n.before : n.after).push(i.comment) : i.type === Y.Type.BLANK_LINE && (s = true, r === void 0 && n.before.length > 0 && !t.commentBefore && (t.commentBefore = n.before.join(`
|
|
3984
3984
|
`), n.before = []));
|
|
3985
3985
|
if (t.contents = r || null, !r) t.comment = n.before.concat(n.after).join(`
|
|
3986
3986
|
`) || null;else {
|
|
@@ -4026,7 +4026,7 @@ ${o.commentBefore}` : i;
|
|
|
4026
4026
|
}
|
|
4027
4027
|
function Pa(t, e, n) {
|
|
4028
4028
|
let r = [],
|
|
4029
|
-
s =
|
|
4029
|
+
s = false;
|
|
4030
4030
|
for (let i of e) {
|
|
4031
4031
|
let {
|
|
4032
4032
|
comment: o,
|
|
@@ -4039,7 +4039,7 @@ ${o.commentBefore}` : i;
|
|
|
4039
4039
|
} catch (c) {
|
|
4040
4040
|
t.errors.push(c);
|
|
4041
4041
|
}
|
|
4042
|
-
s =
|
|
4042
|
+
s = true;
|
|
4043
4043
|
break;
|
|
4044
4044
|
case "YAML":
|
|
4045
4045
|
case "YAML:1.0":
|
|
@@ -4052,7 +4052,7 @@ ${o.commentBefore}` : i;
|
|
|
4052
4052
|
} catch (c) {
|
|
4053
4053
|
t.errors.push(c);
|
|
4054
4054
|
}
|
|
4055
|
-
s =
|
|
4055
|
+
s = true;
|
|
4056
4056
|
break;
|
|
4057
4057
|
default:
|
|
4058
4058
|
if (a) {
|
|
@@ -4076,7 +4076,7 @@ ${o.commentBefore}` : i;
|
|
|
4076
4076
|
`) || null;
|
|
4077
4077
|
}
|
|
4078
4078
|
function Ue(t) {
|
|
4079
|
-
if (t instanceof S.Collection) return
|
|
4079
|
+
if (t instanceof S.Collection) return true;
|
|
4080
4080
|
throw new Error("Expected a YAML collection as document contents");
|
|
4081
4081
|
}
|
|
4082
4082
|
var Zt = class t {
|
|
@@ -4093,7 +4093,7 @@ ${o.commentBefore}` : i;
|
|
|
4093
4093
|
return Ue(this.contents), this.contents.delete(e);
|
|
4094
4094
|
}
|
|
4095
4095
|
deleteIn(e) {
|
|
4096
|
-
return S.isEmptyPath(e) ? this.contents == null ?
|
|
4096
|
+
return S.isEmptyPath(e) ? this.contents == null ? false : (this.contents = null, true) : (Ue(this.contents), this.contents.deleteIn(e));
|
|
4097
4097
|
}
|
|
4098
4098
|
getDefaults() {
|
|
4099
4099
|
return t.defaults[this.version] || t.defaults[this.options.version] || {};
|
|
@@ -4105,10 +4105,10 @@ ${o.commentBefore}` : i;
|
|
|
4105
4105
|
return S.isEmptyPath(e) ? !n && this.contents instanceof S.Scalar ? this.contents.value : this.contents : this.contents instanceof S.Collection ? this.contents.getIn(e, n) : void 0;
|
|
4106
4106
|
}
|
|
4107
4107
|
has(e) {
|
|
4108
|
-
return this.contents instanceof S.Collection ? this.contents.has(e) :
|
|
4108
|
+
return this.contents instanceof S.Collection ? this.contents.has(e) : false;
|
|
4109
4109
|
}
|
|
4110
4110
|
hasIn(e) {
|
|
4111
|
-
return S.isEmptyPath(e) ? this.contents !== void 0 : this.contents instanceof S.Collection ? this.contents.hasIn(e) :
|
|
4111
|
+
return S.isEmptyPath(e) ? this.contents !== void 0 : this.contents instanceof S.Collection ? this.contents.hasIn(e) : false;
|
|
4112
4112
|
}
|
|
4113
4113
|
set(e, n) {
|
|
4114
4114
|
Ue(this.contents), this.contents.set(e, n);
|
|
@@ -4131,7 +4131,7 @@ ${o.commentBefore}` : i;
|
|
|
4131
4131
|
error: o,
|
|
4132
4132
|
valueRange: a
|
|
4133
4133
|
} = e;
|
|
4134
|
-
if (o && (o.source || (o.source = this), this.errors.push(o)), Pa(this, r, n), i && (this.directivesEndMarker =
|
|
4134
|
+
if (o && (o.source || (o.source = this), this.errors.push(o)), Pa(this, r, n), i && (this.directivesEndMarker = true), this.range = a ? [a.start, a.end] : null, this.setSchema(), this.anchors._cstAliases = [], ka(this, s), this.anchors.resolveNodes(), this.options.prettyErrors) {
|
|
4135
4135
|
for (let c of this.errors) c instanceof Y.YAMLError && c.makePretty();
|
|
4136
4136
|
for (let c of this.warnings) c instanceof Y.YAMLError && c.makePretty();
|
|
4137
4137
|
}
|
|
@@ -4187,17 +4187,17 @@ ${o.commentBefore}` : i;
|
|
|
4187
4187
|
}
|
|
4188
4188
|
this.setSchema();
|
|
4189
4189
|
let n = [],
|
|
4190
|
-
r =
|
|
4190
|
+
r = false;
|
|
4191
4191
|
if (this.version) {
|
|
4192
4192
|
let c = "%YAML 1.2";
|
|
4193
|
-
this.schema.name === "yaml-1.1" && (this.version === "1.0" ? c = "%YAML:1.0" : this.version === "1.1" && (c = "%YAML 1.1")), n.push(c), r =
|
|
4193
|
+
this.schema.name === "yaml-1.1" && (this.version === "1.0" ? c = "%YAML:1.0" : this.version === "1.1" && (c = "%YAML 1.1")), n.push(c), r = true;
|
|
4194
4194
|
}
|
|
4195
4195
|
let s = this.listNonDefaultTags();
|
|
4196
4196
|
this.tagPrefixes.forEach(({
|
|
4197
4197
|
handle: c,
|
|
4198
4198
|
prefix: l
|
|
4199
4199
|
}) => {
|
|
4200
|
-
s.some(f => f.indexOf(l) === 0) && (n.push(`%TAG ${c} ${l}`), r =
|
|
4200
|
+
s.some(f => f.indexOf(l) === 0) && (n.push(`%TAG ${c} ${l}`), r = true);
|
|
4201
4201
|
}), (r || this.directivesEndMarker) && n.push("---"), this.commentBefore && ((r || !this.directivesEndMarker) && n.unshift(""), n.unshift(this.commentBefore.replace(/^/gm, "#")));
|
|
4202
4202
|
let i = {
|
|
4203
4203
|
anchors: Object.create(null),
|
|
@@ -4206,11 +4206,11 @@ ${o.commentBefore}` : i;
|
|
|
4206
4206
|
indentStep: " ".repeat(e),
|
|
4207
4207
|
stringify: Xt
|
|
4208
4208
|
},
|
|
4209
|
-
o =
|
|
4209
|
+
o = false,
|
|
4210
4210
|
a = null;
|
|
4211
4211
|
if (this.contents) {
|
|
4212
4212
|
this.contents instanceof S.Node && (this.contents.spaceBefore && (r || this.directivesEndMarker) && n.push(""), this.contents.commentBefore && n.push(this.contents.commentBefore.replace(/^/gm, "#")), i.forceBlockIndent = !!this.comment, a = this.contents.comment);
|
|
4213
|
-
let c = a ? null : () => o =
|
|
4213
|
+
let c = a ? null : () => o = true,
|
|
4214
4214
|
l = Xt(this.contents, i, () => a = null, c);
|
|
4215
4215
|
n.push(S.addComment(l, "", a));
|
|
4216
4216
|
} else this.contents !== void 0 && n.push(Xt(this.contents, i));
|
|
@@ -4232,8 +4232,8 @@ var pi = ee(ui => {
|
|
|
4232
4232
|
xa = le(),
|
|
4233
4233
|
Ra = Qn();
|
|
4234
4234
|
$e();
|
|
4235
|
-
function Da(t, e =
|
|
4236
|
-
n === void 0 && typeof e == "string" && (n = e, e =
|
|
4235
|
+
function Da(t, e = true, n) {
|
|
4236
|
+
n === void 0 && typeof e == "string" && (n = e, e = true);
|
|
4237
4237
|
let r = Object.assign({}, Ne.Document.defaults[Ne.defaultOptions.version], Ne.defaultOptions);
|
|
4238
4238
|
return new _a.Schema(r).createNode(t, e, n);
|
|
4239
4239
|
}
|
|
@@ -4420,19 +4420,19 @@ var bt = {
|
|
|
4420
4420
|
};
|
|
4421
4421
|
var xi = {
|
|
4422
4422
|
type: te,
|
|
4423
|
-
hard:
|
|
4423
|
+
hard: true
|
|
4424
4424
|
},
|
|
4425
4425
|
Ri = {
|
|
4426
4426
|
type: te,
|
|
4427
|
-
hard:
|
|
4428
|
-
literal:
|
|
4427
|
+
hard: true,
|
|
4428
|
+
literal: true
|
|
4429
4429
|
},
|
|
4430
4430
|
ne = {
|
|
4431
4431
|
type: te
|
|
4432
4432
|
},
|
|
4433
4433
|
Nt = {
|
|
4434
4434
|
type: te,
|
|
4435
|
-
soft:
|
|
4435
|
+
soft: true
|
|
4436
4436
|
},
|
|
4437
4437
|
N = [xi, bt],
|
|
4438
4438
|
rt = [Ri, bt];
|
|
@@ -4508,7 +4508,7 @@ function cr(t, e = rt) {
|
|
|
4508
4508
|
}
|
|
4509
4509
|
function Bi(t, e, n) {
|
|
4510
4510
|
let r = !!(n != null && n.backwards);
|
|
4511
|
-
if (e ===
|
|
4511
|
+
if (e === false) return false;
|
|
4512
4512
|
let s = t.charAt(e);
|
|
4513
4513
|
if (r) {
|
|
4514
4514
|
if (t.charAt(e - 1) === "\r" && s === `
|
|
@@ -4527,7 +4527,7 @@ var ln = Bi;
|
|
|
4527
4527
|
function Ot(t) {
|
|
4528
4528
|
return (e, n, r) => {
|
|
4529
4529
|
let s = !!(r != null && r.backwards);
|
|
4530
|
-
if (n ===
|
|
4530
|
+
if (n === false) return false;
|
|
4531
4531
|
let {
|
|
4532
4532
|
length: i
|
|
4533
4533
|
} = e,
|
|
@@ -4539,21 +4539,21 @@ function Ot(t) {
|
|
|
4539
4539
|
} else if (!t.includes(a)) return o;
|
|
4540
4540
|
s ? o-- : o++;
|
|
4541
4541
|
}
|
|
4542
|
-
return o === -1 || o === i ? o :
|
|
4542
|
+
return o === -1 || o === i ? o : false;
|
|
4543
4543
|
};
|
|
4544
4544
|
}
|
|
4545
4545
|
var fn = Ot(" ");
|
|
4546
4546
|
function $i(t, e) {
|
|
4547
4547
|
let n = e - 1;
|
|
4548
4548
|
n = fn(t, n, {
|
|
4549
|
-
backwards:
|
|
4549
|
+
backwards: true
|
|
4550
4550
|
}), n = ln(t, n, {
|
|
4551
|
-
backwards:
|
|
4551
|
+
backwards: true
|
|
4552
4552
|
}), n = fn(t, n, {
|
|
4553
|
-
backwards:
|
|
4553
|
+
backwards: true
|
|
4554
4554
|
});
|
|
4555
4555
|
let r = ln(t, n, {
|
|
4556
|
-
backwards:
|
|
4556
|
+
backwards: true
|
|
4557
4557
|
});
|
|
4558
4558
|
return n !== r;
|
|
4559
4559
|
}
|
|
@@ -4611,7 +4611,7 @@ function pn(t, e, n) {
|
|
|
4611
4611
|
function Pe(t, e, n) {
|
|
4612
4612
|
Object.defineProperty(t, e, {
|
|
4613
4613
|
get: n,
|
|
4614
|
-
enumerable:
|
|
4614
|
+
enumerable: false
|
|
4615
4615
|
});
|
|
4616
4616
|
}
|
|
4617
4617
|
function Er(t, e) {
|
|
@@ -4620,10 +4620,10 @@ function Er(t, e) {
|
|
|
4620
4620
|
for (let s = t.position.end.offset - 1; s < r; s++) {
|
|
4621
4621
|
let i = e[s];
|
|
4622
4622
|
if (i === `
|
|
4623
|
-
` && n++, n === 1 && /\S/.test(i)) return
|
|
4624
|
-
if (n === 2) return
|
|
4623
|
+
` && n++, n === 1 && /\S/.test(i)) return false;
|
|
4624
|
+
if (n === 2) return true;
|
|
4625
4625
|
}
|
|
4626
|
-
return
|
|
4626
|
+
return false;
|
|
4627
4627
|
}
|
|
4628
4628
|
function Lt(t) {
|
|
4629
4629
|
let {
|
|
@@ -4633,18 +4633,18 @@ function Lt(t) {
|
|
|
4633
4633
|
case "tag":
|
|
4634
4634
|
case "anchor":
|
|
4635
4635
|
case "comment":
|
|
4636
|
-
return
|
|
4636
|
+
return false;
|
|
4637
4637
|
}
|
|
4638
4638
|
let n = t.stack.length;
|
|
4639
4639
|
for (let r = 1; r < n; r++) {
|
|
4640
4640
|
let s = t.stack[r],
|
|
4641
4641
|
i = t.stack[r - 1];
|
|
4642
|
-
if (Array.isArray(i) && typeof s == "number" && s !== i.length - 1) return
|
|
4642
|
+
if (Array.isArray(i) && typeof s == "number" && s !== i.length - 1) return false;
|
|
4643
4643
|
}
|
|
4644
|
-
return
|
|
4644
|
+
return true;
|
|
4645
4645
|
}
|
|
4646
4646
|
function At(t) {
|
|
4647
|
-
return Ie(t.children) ? At(x(
|
|
4647
|
+
return Ie(t.children) ? At(x(false, t.children, -1)) : t;
|
|
4648
4648
|
}
|
|
4649
4649
|
function yr(t) {
|
|
4650
4650
|
return t.value.trim() === "prettier-ignore";
|
|
@@ -4655,9 +4655,9 @@ function Sr(t) {
|
|
|
4655
4655
|
} = t;
|
|
4656
4656
|
if (e.type === "documentBody") {
|
|
4657
4657
|
let n = t.parent.head;
|
|
4658
|
-
return R(n) && yr(x(
|
|
4658
|
+
return R(n) && yr(x(false, n.endComments, -1));
|
|
4659
4659
|
}
|
|
4660
|
-
return Z(e) && yr(x(
|
|
4660
|
+
return Z(e) && yr(x(false, e.leadingComments, -1));
|
|
4661
4661
|
}
|
|
4662
4662
|
function _e(t) {
|
|
4663
4663
|
return !Ie(t.children) && !qi(t);
|
|
@@ -4689,7 +4689,7 @@ function wr(t) {
|
|
|
4689
4689
|
function br(t, e, n) {
|
|
4690
4690
|
let r = e.split(`
|
|
4691
4691
|
`).map((s, i, o) => i === 0 && i === o.length - 1 ? s : i !== 0 && i !== o.length - 1 ? s.trim() : i === 0 ? s.trimEnd() : s.trimStart());
|
|
4692
|
-
return n.proseWrap === "preserve" ? r.map(s => s.length === 0 ? [] : [s]) : r.map(s => s.length === 0 ? [] : wr(s)).reduce((s, i, o) => o !== 0 && r[o - 1].length > 0 && i.length > 0 && !(t === "quoteDouble" && x(
|
|
4692
|
+
return n.proseWrap === "preserve" ? r.map(s => s.length === 0 ? [] : [s]) : r.map(s => s.length === 0 ? [] : wr(s)).reduce((s, i, o) => o !== 0 && r[o - 1].length > 0 && i.length > 0 && !(t === "quoteDouble" && x(false, x(false, s, -1), -1).endsWith("\\")) ? [...s.slice(0, -1), [...x(false, s, -1), ...i]] : [...s, i], []).map(s => n.proseWrap === "never" ? [s.join(" ")] : s);
|
|
4693
4693
|
}
|
|
4694
4694
|
function Nr(t, {
|
|
4695
4695
|
parentIndent: e,
|
|
@@ -4705,16 +4705,16 @@ function Nr(t, {
|
|
|
4705
4705
|
let o = s.split(`
|
|
4706
4706
|
`).map(c => c.slice(i));
|
|
4707
4707
|
if (r.proseWrap === "preserve" || t.type === "blockLiteral") return a(o.map(c => c.length === 0 ? [] : [c]));
|
|
4708
|
-
return a(o.map(c => c.length === 0 ? [] : wr(c)).reduce((c, l, f) => f !== 0 && o[f - 1].length > 0 && l.length > 0 && !/^\s/.test(l[0]) && !/^\s|\s$/.test(x(
|
|
4708
|
+
return a(o.map(c => c.length === 0 ? [] : wr(c)).reduce((c, l, f) => f !== 0 && o[f - 1].length > 0 && l.length > 0 && !/^\s/.test(l[0]) && !/^\s|\s$/.test(x(false, c, -1)) ? [...c.slice(0, -1), [...x(false, c, -1), ...l]] : [...c, l], []).map(c => c.reduce((l, f) => l.length > 0 && /\s$/.test(x(false, l, -1)) ? [...l.slice(0, -1), x(false, l, -1) + " " + f] : [...l, f], [])).map(c => r.proseWrap === "never" ? [c.join(" ")] : c));
|
|
4709
4709
|
function a(c) {
|
|
4710
|
-
if (t.chomping === "keep") return x(
|
|
4710
|
+
if (t.chomping === "keep") return x(false, c, -1).length === 0 ? c.slice(0, -1) : c;
|
|
4711
4711
|
let l = 0;
|
|
4712
4712
|
for (let f = c.length - 1; f >= 0 && c[f].length === 0; f--) l++;
|
|
4713
4713
|
return l === 0 ? c : l >= 2 && !n ? c.slice(0, -(l - 1)) : c.slice(0, -l);
|
|
4714
4714
|
}
|
|
4715
4715
|
}
|
|
4716
4716
|
function st(t) {
|
|
4717
|
-
if (!t) return
|
|
4717
|
+
if (!t) return true;
|
|
4718
4718
|
switch (t.type) {
|
|
4719
4719
|
case "plain":
|
|
4720
4720
|
case "quoteDouble":
|
|
@@ -4722,9 +4722,9 @@ function st(t) {
|
|
|
4722
4722
|
case "alias":
|
|
4723
4723
|
case "flowMapping":
|
|
4724
4724
|
case "flowSequence":
|
|
4725
|
-
return
|
|
4725
|
+
return true;
|
|
4726
4726
|
default:
|
|
4727
|
-
return
|
|
4727
|
+
return false;
|
|
4728
4728
|
}
|
|
4729
4729
|
}
|
|
4730
4730
|
var it = null;
|
|
@@ -4829,7 +4829,7 @@ function Ct(t, e, n) {
|
|
|
4829
4829
|
o = s ? "}" : "]",
|
|
4830
4830
|
a = Nt;
|
|
4831
4831
|
s && r.children.length > 0 && n.bracketSpacing && (a = ne);
|
|
4832
|
-
let c = x(
|
|
4832
|
+
let c = x(false, r.children, -1),
|
|
4833
4833
|
l = (c == null ? void 0 : c.type) === "flowMappingItem" && _e(c.key) && _e(c.value);
|
|
4834
4834
|
return [i, I(n.tabWidth, [a, Ji(t, e, n), n.trailingComma === "none" ? "" : nt(","), R(r) ? [N, v(N, t.map(e, "endComments"))] : ""]), l ? "" : a, o];
|
|
4835
4835
|
}
|
|
@@ -4873,19 +4873,19 @@ function Gi(t, e, n) {
|
|
|
4873
4873
|
})]]);
|
|
4874
4874
|
}
|
|
4875
4875
|
function yn(t, e) {
|
|
4876
|
-
if (!t) return
|
|
4876
|
+
if (!t) return true;
|
|
4877
4877
|
switch (t.type) {
|
|
4878
4878
|
case "plain":
|
|
4879
4879
|
case "quoteSingle":
|
|
4880
4880
|
case "quoteDouble":
|
|
4881
4881
|
break;
|
|
4882
4882
|
case "alias":
|
|
4883
|
-
return
|
|
4883
|
+
return true;
|
|
4884
4884
|
default:
|
|
4885
|
-
return
|
|
4885
|
+
return false;
|
|
4886
4886
|
}
|
|
4887
4887
|
if (e.proseWrap === "preserve") return t.position.start.line === t.position.end.line;
|
|
4888
|
-
if (/\\$/m.test(e.originalText.slice(t.position.start.offset, t.position.end.offset))) return
|
|
4888
|
+
if (/\\$/m.test(e.originalText.slice(t.position.start.offset, t.position.end.offset))) return false;
|
|
4889
4889
|
switch (e.proseWrap) {
|
|
4890
4890
|
case "never":
|
|
4891
4891
|
return !t.value.includes(`
|
|
@@ -4893,7 +4893,7 @@ function yn(t, e) {
|
|
|
4893
4893
|
case "always":
|
|
4894
4894
|
return !/[\n ]/.test(t.value);
|
|
4895
4895
|
default:
|
|
4896
|
-
return
|
|
4896
|
+
return false;
|
|
4897
4897
|
}
|
|
4898
4898
|
}
|
|
4899
4899
|
function Hi(t) {
|
|
@@ -4901,16 +4901,16 @@ function Hi(t) {
|
|
|
4901
4901
|
return ((e = t.key.content) == null ? void 0 : e.type) === "alias";
|
|
4902
4902
|
}
|
|
4903
4903
|
function Xi(t) {
|
|
4904
|
-
if (!t) return
|
|
4904
|
+
if (!t) return true;
|
|
4905
4905
|
switch (t.type) {
|
|
4906
4906
|
case "plain":
|
|
4907
4907
|
case "quoteDouble":
|
|
4908
4908
|
case "quoteSingle":
|
|
4909
4909
|
return t.position.start.line === t.position.end.line;
|
|
4910
4910
|
case "alias":
|
|
4911
|
-
return
|
|
4911
|
+
return true;
|
|
4912
4912
|
default:
|
|
4913
|
-
return
|
|
4913
|
+
return false;
|
|
4914
4914
|
}
|
|
4915
4915
|
}
|
|
4916
4916
|
var Cr = Gi;
|
|
@@ -5008,8 +5008,8 @@ function eo(t, e, n) {
|
|
|
5008
5008
|
let c = r.type === "quoteDouble" ? i : s;
|
|
5009
5009
|
return [c, at(r.type, o, e), c];
|
|
5010
5010
|
}
|
|
5011
|
-
if (o.includes(i)) return [s, at(r.type, r.type === "quoteDouble" ? yt(
|
|
5012
|
-
if (o.includes(s)) return [i, at(r.type, r.type === "quoteSingle" ? yt(
|
|
5011
|
+
if (o.includes(i)) return [s, at(r.type, r.type === "quoteDouble" ? yt(false, yt(false, o, '\\"', i), "'", s.repeat(2)) : o, e), s];
|
|
5012
|
+
if (o.includes(s)) return [i, at(r.type, r.type === "quoteSingle" ? yt(false, o, "''", s) : o, e), i];
|
|
5013
5013
|
let a = e.singleQuote ? s : i;
|
|
5014
5014
|
return [a, at(r.type, o, e), a];
|
|
5015
5015
|
}
|
|
@@ -5047,7 +5047,7 @@ function no(t, e) {
|
|
|
5047
5047
|
let n = t.node;
|
|
5048
5048
|
if (t.isFirst && /---(?:\s|$)/.test(e.originalText.slice(ve(n), ve(n) + 4)) || n.head.children.length > 0 || R(n.head) || H(n.head)) return "head";
|
|
5049
5049
|
let r = t.next;
|
|
5050
|
-
return kr(n, r) ?
|
|
5050
|
+
return kr(n, r) ? false : r ? "root" : false;
|
|
5051
5051
|
}
|
|
5052
5052
|
function at(t, e, n) {
|
|
5053
5053
|
let r = br(t, e, n);
|
|
@@ -5117,7 +5117,7 @@ var Mt = `
|
|
|
5117
5117
|
function B(t, e = null) {
|
|
5118
5118
|
"children" in t && t.children.forEach(n => B(n, t)), "anchor" in t && t.anchor && B(t.anchor, t), "tag" in t && t.tag && B(t.tag, t), "leadingComments" in t && t.leadingComments.forEach(n => B(n, t)), "middleComments" in t && t.middleComments.forEach(n => B(n, t)), "indicatorComment" in t && t.indicatorComment && B(t.indicatorComment, t), "trailingComment" in t && t.trailingComment && B(t.trailingComment, t), "endComments" in t && t.endComments.forEach(n => B(n, t)), Object.defineProperty(t, "_parent", {
|
|
5119
5119
|
value: e,
|
|
5120
|
-
enumerable:
|
|
5120
|
+
enumerable: false
|
|
5121
5121
|
});
|
|
5122
5122
|
}
|
|
5123
5123
|
function ge(t) {
|
|
@@ -5221,7 +5221,7 @@ function ao(t, e) {
|
|
|
5221
5221
|
case "flowSequence":
|
|
5222
5222
|
return t.children.length === 0 || e.position.start.line > t.children[t.children.length - 1].position.end.line;
|
|
5223
5223
|
}
|
|
5224
|
-
if (e.position.end.offset < t.position.end.offset) return
|
|
5224
|
+
if (e.position.end.offset < t.position.end.offset) return false;
|
|
5225
5225
|
switch (t.type) {
|
|
5226
5226
|
case "sequenceItem":
|
|
5227
5227
|
return e.position.start.column > t.position.start.column;
|
|
@@ -5229,7 +5229,7 @@ function ao(t, e) {
|
|
|
5229
5229
|
case "mappingValue":
|
|
5230
5230
|
return e.position.start.column > t._parent.position.start.column && (t.children.length === 0 || t.children.length === 1 && t.children[0].type !== "blockFolded" && t.children[0].type !== "blockLiteral") && (t.type === "mappingValue" || Rr(t));
|
|
5231
5231
|
default:
|
|
5232
|
-
return
|
|
5232
|
+
return false;
|
|
5233
5233
|
}
|
|
5234
5234
|
}
|
|
5235
5235
|
function Rr(t) {
|
|
@@ -5359,7 +5359,7 @@ function Kr(t, e) {
|
|
|
5359
5359
|
value: e
|
|
5360
5360
|
};
|
|
5361
5361
|
}
|
|
5362
|
-
function kt(t, e, n = () =>
|
|
5362
|
+
function kt(t, e, n = () => false) {
|
|
5363
5363
|
let r = t.cstNode,
|
|
5364
5364
|
s = [],
|
|
5365
5365
|
i = null,
|
|
@@ -5401,9 +5401,9 @@ function vt(t, e) {
|
|
|
5401
5401
|
}),
|
|
5402
5402
|
c = null,
|
|
5403
5403
|
l = kt(t, e, f => {
|
|
5404
|
-
if (!(a.start.offset < f.position.start.offset && f.position.end.offset < a.end.offset)) return
|
|
5404
|
+
if (!(a.start.offset < f.position.start.offset && f.position.end.offset < a.end.offset)) return false;
|
|
5405
5405
|
if (c) throw new Error(`Unexpected multiple indicator comments at ${ge(f.position.start)}`);
|
|
5406
|
-
return c = f,
|
|
5406
|
+
return c = f, true;
|
|
5407
5407
|
});
|
|
5408
5408
|
return Fr(a, l, En[n.chomping], o ? n.blockIndent : null, n.strValue, c);
|
|
5409
5409
|
}
|
|
@@ -5508,13 +5508,13 @@ function co(t, e, n) {
|
|
|
5508
5508
|
s = [],
|
|
5509
5509
|
i = [],
|
|
5510
5510
|
o = [],
|
|
5511
|
-
a =
|
|
5511
|
+
a = false;
|
|
5512
5512
|
for (let c = t.contents.length - 1; c >= 0; c--) {
|
|
5513
5513
|
let l = t.contents[c];
|
|
5514
5514
|
if (l.type === "COMMENT") {
|
|
5515
5515
|
let f = e.transformNode(l);
|
|
5516
5516
|
n && n.line === f.position.start.line ? o.unshift(f) : a ? r.unshift(f) : f.position.start.offset >= t.valueRange.origEnd ? i.unshift(f) : r.unshift(f);
|
|
5517
|
-
} else a =
|
|
5517
|
+
} else a = true;
|
|
5518
5518
|
}
|
|
5519
5519
|
if (i.length > 1) throw new Error(`Unexpected multiple document trailing comments at ${ge(i[1].position.start)}`);
|
|
5520
5520
|
if (o.length > 1) throw new Error(`Unexpected multiple documentHead trailing comments at ${ge(o[1].position.start)}`);
|
|
@@ -5567,10 +5567,10 @@ function fo(t, e) {
|
|
|
5567
5567
|
let n = [],
|
|
5568
5568
|
r = [],
|
|
5569
5569
|
s = [],
|
|
5570
|
-
i =
|
|
5570
|
+
i = false;
|
|
5571
5571
|
for (let o = t.directives.length - 1; o >= 0; o--) {
|
|
5572
5572
|
let a = e.transformNode(t.directives[o]);
|
|
5573
|
-
a.type === "comment" ? i ? r.unshift(a) : s.unshift(a) : (i =
|
|
5573
|
+
a.type === "comment" ? i ? r.unshift(a) : s.unshift(a) : (i = true, n.unshift(a));
|
|
5574
5574
|
}
|
|
5575
5575
|
return {
|
|
5576
5576
|
directives: n,
|
|
@@ -5654,14 +5654,14 @@ function Rt(t, e) {
|
|
|
5654
5654
|
function Dt(t) {
|
|
5655
5655
|
let e = [],
|
|
5656
5656
|
n = Rt(t, 1),
|
|
5657
|
-
r =
|
|
5657
|
+
r = false;
|
|
5658
5658
|
for (let s = 1; s < t.length - 1; s++) {
|
|
5659
5659
|
let i = t[s];
|
|
5660
5660
|
if ("char" in i && i.char === ",") {
|
|
5661
|
-
e.push(n(s)), n(s + 1), r =
|
|
5661
|
+
e.push(n(s)), n(s + 1), r = false;
|
|
5662
5662
|
continue;
|
|
5663
5663
|
}
|
|
5664
|
-
r =
|
|
5664
|
+
r = true;
|
|
5665
5665
|
}
|
|
5666
5666
|
return r && e.push(n(t.length - 1)), e;
|
|
5667
5667
|
}
|
|
@@ -5777,13 +5777,13 @@ function ls(t, e) {
|
|
|
5777
5777
|
function po(t) {
|
|
5778
5778
|
let e = [],
|
|
5779
5779
|
n = Rt(t, 0),
|
|
5780
|
-
r =
|
|
5780
|
+
r = false;
|
|
5781
5781
|
for (let s = 0; s < t.length; s++) {
|
|
5782
5782
|
if (t[s].type === "MAP_VALUE") {
|
|
5783
|
-
e.push(n(s + 1)), r =
|
|
5783
|
+
e.push(n(s + 1)), r = false;
|
|
5784
5784
|
continue;
|
|
5785
5785
|
}
|
|
5786
|
-
r && e.push(n(s)), r =
|
|
5786
|
+
r && e.push(n(s)), r = true;
|
|
5787
5787
|
}
|
|
5788
5788
|
return r && e.push(n(1 / 0)), e;
|
|
5789
5789
|
}
|
|
@@ -5920,14 +5920,14 @@ function Ts(t, e) {
|
|
|
5920
5920
|
function Cs(t) {
|
|
5921
5921
|
if (!t.setOrigRanges()) {
|
|
5922
5922
|
let e = n => {
|
|
5923
|
-
if (mo(n)) return n.origStart = n.start, n.origEnd = n.end,
|
|
5924
|
-
if (ho(n)) return n.origOffset = n.offset,
|
|
5923
|
+
if (mo(n)) return n.origStart = n.start, n.origEnd = n.end, true;
|
|
5924
|
+
if (ho(n)) return n.origOffset = n.offset, true;
|
|
5925
5925
|
};
|
|
5926
5926
|
t.forEach(n => Nn(n, e));
|
|
5927
5927
|
}
|
|
5928
5928
|
}
|
|
5929
5929
|
function Nn(t, e) {
|
|
5930
|
-
if (!(!t || typeof t != "object") && e(t) !==
|
|
5930
|
+
if (!(!t || typeof t != "object") && e(t) !== true) for (let n of Object.keys(t)) {
|
|
5931
5931
|
if (n === "context" || n === "error") continue;
|
|
5932
5932
|
let r = t[n];
|
|
5933
5933
|
Array.isArray(r) ? r.forEach(s => Nn(s, e)) : Nn(r, e);
|
|
@@ -5990,8 +5990,8 @@ function wo(t, e) {
|
|
|
5990
5990
|
function bo(t, e) {
|
|
5991
5991
|
return e.offset > t.offset;
|
|
5992
5992
|
}
|
|
5993
|
-
var di = rr(hi()
|
|
5994
|
-
var J = rr(gi()
|
|
5993
|
+
var di = rr(hi());
|
|
5994
|
+
var J = rr(gi());
|
|
5995
5995
|
J.default.findPair;
|
|
5996
5996
|
J.default.toJSON;
|
|
5997
5997
|
J.default.parseMap;
|
|
@@ -6012,8 +6012,8 @@ function Si(t) {
|
|
|
6012
6012
|
let e = Ei(t);
|
|
6013
6013
|
Cs(e);
|
|
6014
6014
|
let n = e.map(a => new yi({
|
|
6015
|
-
merge:
|
|
6016
|
-
keepCstNodes:
|
|
6015
|
+
merge: false,
|
|
6016
|
+
keepCstNodes: true
|
|
6017
6017
|
}).parse(a)),
|
|
6018
6018
|
r = new Pr(t),
|
|
6019
6019
|
s = [],
|
|
@@ -6076,14 +6076,14 @@ var nn = {
|
|
|
6076
6076
|
bracketSpacing: {
|
|
6077
6077
|
category: "Common",
|
|
6078
6078
|
type: "boolean",
|
|
6079
|
-
default:
|
|
6079
|
+
default: true,
|
|
6080
6080
|
description: "Print spaces between brackets.",
|
|
6081
6081
|
oppositeDescription: "Do not print spaces between brackets."
|
|
6082
6082
|
},
|
|
6083
6083
|
singleQuote: {
|
|
6084
6084
|
category: "Common",
|
|
6085
6085
|
type: "boolean",
|
|
6086
|
-
default:
|
|
6086
|
+
default: false,
|
|
6087
6087
|
description: "Use single quotes instead of double quotes."
|
|
6088
6088
|
},
|
|
6089
6089
|
proseWrap: {
|
|
@@ -6101,20 +6101,7 @@ var nn = {
|
|
|
6101
6101
|
value: "preserve",
|
|
6102
6102
|
description: "Wrap prose as-is."
|
|
6103
6103
|
}]
|
|
6104
|
-
}
|
|
6105
|
-
bracketSameLine: {
|
|
6106
|
-
category: "Common",
|
|
6107
|
-
type: "boolean",
|
|
6108
|
-
default: !1,
|
|
6109
|
-
description: "Put > of opening tags on the last line instead of on a new line."
|
|
6110
|
-
},
|
|
6111
|
-
singleAttributePerLine: {
|
|
6112
|
-
category: "Common",
|
|
6113
|
-
type: "boolean",
|
|
6114
|
-
default: !1,
|
|
6115
|
-
description: "Enforce single attribute per line in HTML, Vue and JSX."
|
|
6116
|
-
}
|
|
6117
|
-
};
|
|
6104
|
+
}};
|
|
6118
6105
|
var Qa = {
|
|
6119
6106
|
bracketSpacing: nn.bracketSpacing,
|
|
6120
6107
|
singleQuote: nn.singleQuote,
|