@kubb/core 3.18.3 → 4.0.0

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.
Files changed (123) hide show
  1. package/dist/{FileManager-BeN5TYKI.js → FileManager-BDisPxtH.js} +28 -45
  2. package/dist/FileManager-BDisPxtH.js.map +1 -0
  3. package/dist/{FileManager-CZyWLgbQ.cjs → FileManager-qDcTVN6G.cjs} +34 -48
  4. package/dist/FileManager-qDcTVN6G.cjs.map +1 -0
  5. package/dist/{PluginManager-H8G0i6KS.d.ts → PluginManager-BSUDeUfP.d.ts} +2 -2
  6. package/dist/{PluginManager-C62HGihR.d.cts → PluginManager-a3RiDAFC.d.cts} +2 -2
  7. package/dist/{acorn-Biw1D1Ce.cjs → acorn-Cg_eXN51.cjs} +15 -37
  8. package/dist/{acorn-Biw1D1Ce.cjs.map → acorn-Cg_eXN51.cjs.map} +1 -1
  9. package/dist/{acorn-3HQnxDj2.js → acorn-Z0oy0vSt.js} +15 -37
  10. package/dist/{acorn-3HQnxDj2.js.map → acorn-Z0oy0vSt.js.map} +1 -1
  11. package/dist/{angular-n5qYWkcx.js → angular-BUlb_iaU.js} +6 -7
  12. package/dist/{angular-n5qYWkcx.js.map → angular-BUlb_iaU.js.map} +1 -1
  13. package/dist/{angular-B3ddRl90.cjs → angular-nBly58h0.cjs} +6 -7
  14. package/dist/{angular-B3ddRl90.cjs.map → angular-nBly58h0.cjs.map} +1 -1
  15. package/dist/{babel-BrKqHp9Q.cjs → babel-5qXjvTGO.cjs} +34 -45
  16. package/dist/{babel-BrKqHp9Q.cjs.map → babel-5qXjvTGO.cjs.map} +1 -1
  17. package/dist/{babel-mOBF3g2e.js → babel-DfXTN9QX.js} +34 -45
  18. package/dist/{babel-mOBF3g2e.js.map → babel-DfXTN9QX.js.map} +1 -1
  19. package/dist/{chunk-DoeelZqw.cjs → chunk-CZg_9w7l.cjs} +3 -1
  20. package/dist/{chunk-DbvY3SJr.js → chunk-kPDogv7o.js} +3 -1
  21. package/dist/{estree-QGbwcVbp.js → estree-Bt3vRtV3.js} +6 -9
  22. package/dist/{estree-QGbwcVbp.js.map → estree-Bt3vRtV3.js.map} +1 -1
  23. package/dist/{estree-D6ftINJ3.cjs → estree-DyiFjXDy.cjs} +6 -9
  24. package/dist/{estree-D6ftINJ3.cjs.map → estree-DyiFjXDy.cjs.map} +1 -1
  25. package/dist/{flow-C1RsRESZ.js → flow-Bb8_yYns.js} +466 -573
  26. package/dist/{flow-C1RsRESZ.js.map → flow-Bb8_yYns.js.map} +1 -1
  27. package/dist/{flow-BWEc100n.cjs → flow-DdtBrX0O.cjs} +466 -573
  28. package/dist/{flow-BWEc100n.cjs.map → flow-DdtBrX0O.cjs.map} +1 -1
  29. package/dist/{fs-DkMVXz_s.js → fs-BNC5Fj6t.js} +3 -5
  30. package/dist/{fs-DkMVXz_s.js.map → fs-BNC5Fj6t.js.map} +1 -1
  31. package/dist/{fs-CeOer54w.cjs → fs-Bi2kuxAm.cjs} +10 -9
  32. package/dist/{fs-CeOer54w.cjs.map → fs-Bi2kuxAm.cjs.map} +1 -1
  33. package/dist/fs.cjs +2 -2
  34. package/dist/fs.d.cts +1 -1
  35. package/dist/fs.d.ts +1 -1
  36. package/dist/fs.js +2 -2
  37. package/dist/{glimmer-CwkHq8v_.cjs → glimmer-BuCRLjbI.cjs} +20 -38
  38. package/dist/{glimmer-CwkHq8v_.cjs.map → glimmer-BuCRLjbI.cjs.map} +1 -1
  39. package/dist/{glimmer-DZXQWVfc.js → glimmer-By8WZPkK.js} +20 -38
  40. package/dist/{glimmer-DZXQWVfc.js.map → glimmer-By8WZPkK.js.map} +1 -1
  41. package/dist/{graphql-DWNpg5AH.js → graphql-DsrNefXx.js} +3 -4
  42. package/dist/{graphql-DWNpg5AH.js.map → graphql-DsrNefXx.js.map} +1 -1
  43. package/dist/{graphql-ftPsRNd8.cjs → graphql-TN0hv-fx.cjs} +3 -4
  44. package/dist/{graphql-ftPsRNd8.cjs.map → graphql-TN0hv-fx.cjs.map} +1 -1
  45. package/dist/{html-DMFSHL-z.cjs → html-1W4-2_9J.cjs} +7 -9
  46. package/dist/{html-DMFSHL-z.cjs.map → html-1W4-2_9J.cjs.map} +1 -1
  47. package/dist/{html-Lx7YOmUI.js → html-Y5KDc150.js} +7 -9
  48. package/dist/{html-Lx7YOmUI.js.map → html-Y5KDc150.js.map} +1 -1
  49. package/dist/{index-DERUIhQK.d.cts → index-B7KKQHG8.d.cts} +3 -3
  50. package/dist/{index-B428LQ0Z.d.ts → index-BhFFCWR1.d.ts} +3 -3
  51. package/dist/{index-3smcdUnJ.d.ts → index-CGJ3tdk-.d.ts} +1 -4
  52. package/dist/{index-Bglrijef.d.cts → index-CWX6_-da.d.cts} +1 -4
  53. package/dist/index.cjs +42 -44
  54. package/dist/index.cjs.map +1 -1
  55. package/dist/index.d.cts +3 -3
  56. package/dist/index.d.ts +3 -3
  57. package/dist/index.js +23 -34
  58. package/dist/index.js.map +1 -1
  59. package/dist/{logger-M0gDQMDh.js → logger-BKPT4rkB.js} +11 -19
  60. package/dist/logger-BKPT4rkB.js.map +1 -0
  61. package/dist/{logger-OgWv9Jyy.cjs → logger-DBJsdlpZ.cjs} +26 -27
  62. package/dist/logger-DBJsdlpZ.cjs.map +1 -0
  63. package/dist/logger.cjs +2 -2
  64. package/dist/logger.js +2 -2
  65. package/dist/{markdown-BYsFO1cu.cjs → markdown-Bltb-uzO.cjs} +3 -5
  66. package/dist/{markdown-BYsFO1cu.cjs.map → markdown-Bltb-uzO.cjs.map} +1 -1
  67. package/dist/{markdown-Dt7fmgWb.js → markdown-Drl4Cbq5.js} +3 -5
  68. package/dist/{markdown-Dt7fmgWb.js.map → markdown-Drl4Cbq5.js.map} +1 -1
  69. package/dist/{meriyah-BA-YCwVg.cjs → meriyah-CdG8HPS2.cjs} +3 -5
  70. package/dist/meriyah-CdG8HPS2.cjs.map +1 -0
  71. package/dist/{meriyah-CEYm-XS7.js → meriyah-Cz9whwp-.js} +3 -5
  72. package/dist/meriyah-Cz9whwp-.js.map +1 -0
  73. package/dist/mocks.cjs +206 -333
  74. package/dist/mocks.cjs.map +1 -1
  75. package/dist/mocks.d.cts +2 -2
  76. package/dist/mocks.d.ts +2 -2
  77. package/dist/mocks.js +186 -323
  78. package/dist/mocks.js.map +1 -1
  79. package/dist/{postcss-BQcSCAcI.cjs → postcss-B7n9zUIy.cjs} +32 -53
  80. package/dist/postcss-B7n9zUIy.cjs.map +1 -0
  81. package/dist/{postcss-CI4qZzdL.js → postcss-Dfx_9buT.js} +32 -53
  82. package/dist/postcss-Dfx_9buT.js.map +1 -0
  83. package/dist/{prompt-D3dP3KNu.js → prompt-BMs_Y-vT.js} +5 -8
  84. package/dist/{prompt-D3dP3KNu.js.map → prompt-BMs_Y-vT.js.map} +1 -1
  85. package/dist/{prompt-DslNpUPc.cjs → prompt-BXlYKArM.cjs} +14 -13
  86. package/dist/{prompt-DslNpUPc.cjs.map → prompt-BXlYKArM.cjs.map} +1 -1
  87. package/dist/{transformers-BL8vcCaM.js → transformers-CXIKOVl0.js} +13 -22
  88. package/dist/{transformers-BL8vcCaM.js.map → transformers-CXIKOVl0.js.map} +1 -1
  89. package/dist/{transformers-BUNfHgNe.cjs → transformers-TDFgAyi8.cjs} +15 -23
  90. package/dist/{transformers-BUNfHgNe.cjs.map → transformers-TDFgAyi8.cjs.map} +1 -1
  91. package/dist/transformers.cjs +4 -3
  92. package/dist/transformers.js +1 -1
  93. package/dist/typescript-BY9-7pw9.js +3 -0
  94. package/dist/{typescript-eE7YJ2-c.js → typescript-C8iCxnaF.js} +15 -70
  95. package/dist/{typescript-eE7YJ2-c.js.map → typescript-C8iCxnaF.js.map} +1 -1
  96. package/dist/{typescript-DDBRxbn7.cjs → typescript-Evf8GXVW.cjs} +15 -70
  97. package/dist/{typescript-DDBRxbn7.cjs.map → typescript-Evf8GXVW.cjs.map} +1 -1
  98. package/dist/typescript-PxlX-TH7.cjs +4 -0
  99. package/dist/utils.cjs +4 -4
  100. package/dist/utils.d.cts +3 -3
  101. package/dist/utils.d.ts +3 -3
  102. package/dist/utils.js +4 -4
  103. package/dist/{write-cvT4uBev.cjs → write-BJfM7G1_.cjs} +11 -10
  104. package/dist/{write-cvT4uBev.cjs.map → write-BJfM7G1_.cjs.map} +1 -1
  105. package/dist/{write-CLTPlucv.js → write-O9QWtBJ_.js} +4 -6
  106. package/dist/{write-CLTPlucv.js.map → write-O9QWtBJ_.js.map} +1 -1
  107. package/dist/{yaml-v1i11ZlS.cjs → yaml-B2qeXFgu.cjs} +37 -116
  108. package/dist/yaml-B2qeXFgu.cjs.map +1 -0
  109. package/dist/{yaml-DZASOrDL.js → yaml-Bi_nSoU_.js} +37 -116
  110. package/dist/yaml-Bi_nSoU_.js.map +1 -0
  111. package/package.json +7 -7
  112. package/dist/FileManager-BeN5TYKI.js.map +0 -1
  113. package/dist/FileManager-CZyWLgbQ.cjs.map +0 -1
  114. package/dist/logger-M0gDQMDh.js.map +0 -1
  115. package/dist/logger-OgWv9Jyy.cjs.map +0 -1
  116. package/dist/meriyah-BA-YCwVg.cjs.map +0 -1
  117. package/dist/meriyah-CEYm-XS7.js.map +0 -1
  118. package/dist/postcss-BQcSCAcI.cjs.map +0 -1
  119. package/dist/postcss-CI4qZzdL.js.map +0 -1
  120. package/dist/typescript-Bq-hjiJ0.js +0 -3
  121. package/dist/typescript-DvVkagAX.cjs +0 -4
  122. package/dist/yaml-DZASOrDL.js.map +0 -1
  123. package/dist/yaml-v1i11ZlS.cjs.map +0 -1
@@ -463,13 +463,10 @@ ${s}
463
463
  }
464
464
  let o = r[e];
465
465
  switch (o) {
466
- case " ": {
467
- let a = "Plain value cannot start with a tab character";
468
- return {
469
- errors: [new mt(this, a)],
470
- str: i
471
- };
472
- }
466
+ case " ": return {
467
+ errors: [new mt(this, "Plain value cannot start with a tab character")],
468
+ str: i
469
+ };
473
470
  case "@":
474
471
  case "`": {
475
472
  let a = `Plain value cannot start with reserved character ${o}`;
@@ -671,10 +668,7 @@ var ns = te((ts) => {
671
668
  if (c < i + a) {
672
669
  i > n && (c = i);
673
670
  break;
674
- } else if (!this.error) {
675
- let h = "All collection items must start at the same column";
676
- this.error = new u.YAMLSyntaxError(this, h);
677
- }
671
+ } else if (!this.error) this.error = new u.YAMLSyntaxError(this, "All collection items must start at the same column");
678
672
  }
679
673
  if (o.type === u.Type.SEQ_ITEM) {
680
674
  if (l !== "-") {
@@ -684,10 +678,7 @@ var ns = te((ts) => {
684
678
  } else if (l === "-" && !this.error) {
685
679
  let h = s[c + 1];
686
680
  if (!h || h === `
687
- ` || h === " " || h === " ") {
688
- let g = "A collection cannot be both a mapping and a sequence";
689
- this.error = new u.YAMLSyntaxError(this, g);
690
- }
681
+ ` || h === " " || h === " ") this.error = new u.YAMLSyntaxError(this, "A collection cannot be both a mapping and a sequence");
691
682
  }
692
683
  let d = r({
693
684
  atLineStart: f,
@@ -966,10 +957,7 @@ var ns = te((ts) => {
966
957
  }
967
958
  } else if (r[l] !== `
968
959
  `) {
969
- if (m < a) {
970
- let d = "Block scalars with more-indented leading empty lines must use an explicit indentation indicator";
971
- this.error = new u.YAMLSemanticError(this, d);
972
- }
960
+ if (m < a) this.error = new u.YAMLSemanticError(this, "Block scalars with more-indented leading empty lines must use an explicit indentation indicator");
973
961
  this.blockIndent = m;
974
962
  } else m > a && (a = m);
975
963
  r[l] === `
@@ -1013,10 +1001,7 @@ var ns = te((ts) => {
1013
1001
  let f = new Se();
1014
1002
  o = f.parse({ src: s }, o), this.items.push(f);
1015
1003
  }
1016
- if (c = u.Node.endOfIndent(s, o), c <= o + i && (a = s[c], c < o + i || a !== "]" && a !== "}")) {
1017
- let f = "Insufficient indentation in flow collection";
1018
- this.error = new u.YAMLSemanticError(this, f);
1019
- }
1004
+ if (c = u.Node.endOfIndent(s, o), c <= o + i && (a = s[c], c < o + i || a !== "]" && a !== "}")) this.error = new u.YAMLSemanticError(this, "Insufficient indentation in flow collection");
1020
1005
  }
1021
1006
  break;
1022
1007
  case ",":
@@ -1558,10 +1543,7 @@ ${c}${A}` : `
1558
1543
  }
1559
1544
  set commentBefore(e) {
1560
1545
  if (this.key ??= new _(null), this.key instanceof j) this.key.commentBefore = e;
1561
- else {
1562
- let n = "Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";
1563
- throw new Error(n);
1564
- }
1546
+ else throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.");
1565
1547
  }
1566
1548
  addToJSMap(e, n) {
1567
1549
  let r = ce(this.key, "", e);
@@ -1589,10 +1571,7 @@ ${c}${A}` : `
1589
1571
  let { indent: s, indentSeq: i, simpleKeys: o } = e.doc.options, { key: a, value: c } = this, l = a instanceof j && a.comment;
1590
1572
  if (o) {
1591
1573
  if (l) throw new Error("With simple keys, key nodes cannot have comments");
1592
- if (a instanceof W) {
1593
- let R = "With simple keys, collection cannot be used as a key value";
1594
- throw new Error(R);
1595
- }
1574
+ if (a instanceof W) throw new Error("With simple keys, collection cannot be used as a key value");
1596
1575
  }
1597
1576
  let f = !o && (!a || l || (a instanceof j ? a instanceof W || a.type === p.Type.BLOCK_FOLDED || a.type === p.Type.BLOCK_LITERAL : typeof a == "object")), { doc: m, indent: d, indentStep: y, stringify: h } = e;
1598
1577
  e = Object.assign({}, e, {
@@ -2020,10 +1999,7 @@ ${l}`);
2020
1999
  function us(t, e) {
2021
2000
  let n = e.context.src[e.range.start - 1];
2022
2001
  if (n !== `
2023
- ` && n !== " " && n !== " ") {
2024
- let r = "Comments must be separated from other tokens by white space characters";
2025
- t.push(new p.YAMLSemanticError(e, r));
2026
- }
2002
+ ` && n !== " " && n !== " ") t.push(new p.YAMLSemanticError(e, "Comments must be separated from other tokens by white space characters"));
2027
2003
  }
2028
2004
  function ps(t, e) {
2029
2005
  let n = String(e), r = n.substr(0, 8) + "..." + n.substr(-8);
@@ -2137,26 +2113,17 @@ ${l}`);
2137
2113
  }, r = !1, s = !1, i = Uo(e.context.parent) ? e.context.parent.props.concat(e.props) : e.props;
2138
2114
  for (let { start: o, end: a } of i) switch (e.context.src[o]) {
2139
2115
  case p.Char.COMMENT: {
2140
- if (!e.commentHasRequiredWhitespace(o)) {
2141
- let m = "Comments must be separated from other tokens by white space characters";
2142
- t.push(new p.YAMLSemanticError(e, m));
2143
- }
2116
+ if (!e.commentHasRequiredWhitespace(o)) t.push(new p.YAMLSemanticError(e, "Comments must be separated from other tokens by white space characters"));
2144
2117
  let { header: c, valueRange: l } = e;
2145
2118
  (l && (o > l.start || c && o > c.start) ? n.after : n.before).push(e.context.src.slice(o + 1, a));
2146
2119
  break;
2147
2120
  }
2148
2121
  case p.Char.ANCHOR:
2149
- if (r) {
2150
- let c = "A node can have at most one anchor";
2151
- t.push(new p.YAMLSemanticError(e, c));
2152
- }
2122
+ if (r) t.push(new p.YAMLSemanticError(e, "A node can have at most one anchor"));
2153
2123
  r = !0;
2154
2124
  break;
2155
2125
  case p.Char.TAG:
2156
- if (s) {
2157
- let c = "A node can have at most one tag";
2158
- t.push(new p.YAMLSemanticError(e, c));
2159
- }
2126
+ if (s) t.push(new p.YAMLSemanticError(e, "A node can have at most one tag"));
2160
2127
  s = !0;
2161
2128
  break;
2162
2129
  }
@@ -2198,10 +2165,7 @@ ${l}`);
2198
2165
  let { anchors: o } = t, a = e.anchor, c = o.getNode(a);
2199
2166
  c && (o.map[o.newName(a)] = c), o.map[a] = e;
2200
2167
  }
2201
- if (e.type === p.Type.ALIAS && (r || s)) {
2202
- let o = "An alias node must not specify any properties";
2203
- t.errors.push(new p.YAMLSemanticError(e, o));
2204
- }
2168
+ if (e.type === p.Type.ALIAS && (r || s)) t.errors.push(new p.YAMLSemanticError(e, "An alias node must not specify any properties"));
2205
2169
  let i = Vo(t, e);
2206
2170
  if (i) {
2207
2171
  i.range = [e.range.start, e.range.end], t.options.keepCstNodes && (i.cstNode = e), t.options.keepNodeTypes && (i.type = e.type);
@@ -2245,10 +2209,7 @@ ${a}` : a);
2245
2209
  }
2246
2210
  }
2247
2211
  }
2248
- if (i && !t.options.mapAsMap) {
2249
- let o = "Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";
2250
- t.warnings.push(new p.YAMLWarning(e, o));
2251
- }
2212
+ if (i && !t.options.mapAsMap) t.warnings.push(new p.YAMLWarning(e, "Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."));
2252
2213
  return e.resolved = s, s;
2253
2214
  }
2254
2215
  var Wo = ({ context: { lineStart: t, node: e, src: n }, props: r }) => {
@@ -2292,10 +2253,7 @@ ${a}` : a);
2292
2253
  break;
2293
2254
  case p.Type.MAP_VALUE:
2294
2255
  {
2295
- if (s === void 0 && (s = null), a.error && t.errors.push(a.error), !a.context.atLineStart && a.node && a.node.type === p.Type.MAP && !a.node.context.atLineStart) {
2296
- let f = "Nested mappings are not allowed in compact mappings";
2297
- t.errors.push(new p.YAMLSemanticError(a.node, f));
2298
- }
2256
+ if (s === void 0 && (s = null), a.error && t.errors.push(a.error), !a.context.atLineStart && a.node && a.node.type === p.Type.MAP && !a.node.context.atLineStart) t.errors.push(new p.YAMLSemanticError(a.node, "Nested mappings are not allowed in compact mappings"));
2299
2257
  let c = a.node;
2300
2258
  if (!c && a.props.length > 0) {
2301
2259
  c = new p.PlainValue(p.Type.PLAIN, []), c.context = {
@@ -2326,17 +2284,12 @@ ${a}` : a);
2326
2284
  case p.Type.BLANK_LINE:
2327
2285
  case p.Type.COMMENT: continue e;
2328
2286
  case p.Type.MAP_VALUE: break e;
2329
- default: {
2330
- let f = "Implicit map keys need to be followed by map values";
2331
- t.errors.push(new p.YAMLSemanticError(a, f));
2287
+ default:
2288
+ t.errors.push(new p.YAMLSemanticError(a, "Implicit map keys need to be followed by map values"));
2332
2289
  break e;
2333
- }
2334
2290
  }
2335
2291
  }
2336
- if (a.valueRangeContainsNewline) {
2337
- let c = "Implicit map keys need to be on a single line";
2338
- t.errors.push(new p.YAMLSemanticError(a, c));
2339
- }
2292
+ if (a.valueRangeContainsNewline) t.errors.push(new p.YAMLSemanticError(a, "Implicit map keys need to be on a single line"));
2340
2293
  }
2341
2294
  }
2342
2295
  return s !== void 0 && r.push(new T(s)), {
@@ -2391,10 +2344,7 @@ ${a}` : a);
2391
2344
  return t.errors.push(new p.YAMLSyntaxError(e, i)), null;
2392
2345
  }
2393
2346
  let { comments: n, items: r } = e.type === p.Type.FLOW_SEQ ? zo(t, e) : Xo(t, e), s = new le();
2394
- if (s.items = r, ms(s, n), !t.options.mapAsMap && r.some((i) => i instanceof T && i.key instanceof W)) {
2395
- let i = "Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";
2396
- t.warnings.push(new p.YAMLWarning(e, i));
2397
- }
2347
+ if (s.items = r, ms(s, n), !t.options.mapAsMap && r.some((i) => i instanceof T && i.key instanceof W)) t.warnings.push(new p.YAMLWarning(e, "Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."));
2398
2348
  return e.resolved = s, s;
2399
2349
  }
2400
2350
  function Xo(t, e) {
@@ -2412,10 +2362,7 @@ ${a}` : a);
2412
2362
  });
2413
2363
  break;
2414
2364
  case p.Type.SEQ_ITEM:
2415
- if (i.error && t.errors.push(i.error), r.push(fe(t, i.node)), i.hasProps) {
2416
- let o = "Sequence items cannot have tags or anchors before the - indicator";
2417
- t.errors.push(new p.YAMLSemanticError(i, o));
2418
- }
2365
+ if (i.error && t.errors.push(i.error), r.push(fe(t, i.node)), i.hasProps) t.errors.push(new p.YAMLSemanticError(i, "Sequence items cannot have tags or anchors before the - indicator"));
2419
2366
  break;
2420
2367
  default: i.error && t.errors.push(i.error), t.errors.push(new p.YAMLSyntaxError(i, `Unexpected ${i.type} node in sequence`));
2421
2368
  }
@@ -2445,8 +2392,7 @@ ${a}` : a);
2445
2392
  let { src: h } = c.context;
2446
2393
  for (let g = o; g < y; ++g) if (h[g] === `
2447
2394
  `) {
2448
- let w = "Implicit keys of flow sequence pairs need to be on a single line";
2449
- t.errors.push(new p.YAMLSemanticError(c, w));
2395
+ t.errors.push(new p.YAMLSemanticError(c, "Implicit keys of flow sequence pairs need to be on a single line"));
2450
2396
  break;
2451
2397
  }
2452
2398
  }
@@ -2511,10 +2457,7 @@ var Gn = te((z) => {
2511
2457
  let r = atob(n.replace(/[\n\r]/g, "")), s = new Uint8Array(r.length);
2512
2458
  for (let i = 0; i < r.length; ++i) s[i] = r.charCodeAt(i);
2513
2459
  return s;
2514
- } else {
2515
- let r = "This environment does not support reading binary tags; either Buffer or atob is required";
2516
- return t.errors.push(new Q.YAMLReferenceError(e, r)), null;
2517
- }
2460
+ } else return t.errors.push(new Q.YAMLReferenceError(e, "This environment does not support reading binary tags; either Buffer or atob is required")), null;
2518
2461
  },
2519
2462
  options: O.binaryOptions,
2520
2463
  stringify: ({ comment: t, type: e, value: n }, r, s, i) => {
@@ -2545,10 +2488,7 @@ var Gn = te((z) => {
2545
2488
  let s = n.items[r];
2546
2489
  if (!(s instanceof O.Pair)) {
2547
2490
  if (s instanceof O.YAMLMap) {
2548
- if (s.items.length > 1) {
2549
- let o = "Each pair must have its own sequence indicator";
2550
- throw new Q.YAMLSemanticError(e, o);
2551
- }
2491
+ if (s.items.length > 1) throw new Q.YAMLSemanticError(e, "Each pair must have its own sequence indicator");
2552
2492
  let i = s.items[0] || new O.Pair();
2553
2493
  s.commentBefore && (i.commentBefore = i.commentBefore ? `${s.commentBefore}
2554
2494
  ${i.commentBefore}` : s.commentBefore), s.comment && (i.comment = i.comment ? `${s.comment}
@@ -2599,10 +2539,8 @@ ${i.comment}` : s.comment), s = i;
2599
2539
  Q._defineProperty(Ue, "tag", "tag:yaml.org,2002:omap");
2600
2540
  function ta(t, e) {
2601
2541
  let n = gs(t, e), r = [];
2602
- for (let { key: s } of n.items) if (s instanceof O.Scalar) if (r.includes(s.value)) {
2603
- let i = "Ordered maps must not include duplicate keys";
2604
- throw new Q.YAMLSemanticError(e, i);
2605
- } else r.push(s.value);
2542
+ for (let { key: s } of n.items) if (s instanceof O.Scalar) if (r.includes(s.value)) throw new Q.YAMLSemanticError(e, "Ordered maps must not include duplicate keys");
2543
+ else r.push(s.value);
2606
2544
  return Object.assign(new Ue(), n);
2607
2545
  }
2608
2546
  function na(t, e, n) {
@@ -3350,8 +3288,7 @@ ${e.indent}${c}` : c;
3350
3288
  }, r, s = !1;
3351
3289
  for (let i of e) if (i.valueRange) {
3352
3290
  if (r !== void 0) {
3353
- let a = "Document contains trailing content not separated by a ... or --- line";
3354
- t.errors.push(new Y.YAMLSyntaxError(i, a));
3291
+ t.errors.push(new Y.YAMLSyntaxError(i, "Document contains trailing content not separated by a ... or --- line"));
3355
3292
  break;
3356
3293
  }
3357
3294
  let o = S.resolveNode(t, i);
@@ -3374,14 +3311,8 @@ ${o.commentBefore}` : i;
3374
3311
  }
3375
3312
  function ka({ tagPrefixes: t }, e) {
3376
3313
  let [n, r] = e.parameters;
3377
- if (!n || !r) {
3378
- let s = "Insufficient parameters given for %TAG directive";
3379
- throw new Y.YAMLSemanticError(e, s);
3380
- }
3381
- if (t.some((s) => s.handle === n)) {
3382
- let s = "The %TAG directive must only be given at most once per handle in the same document.";
3383
- throw new Y.YAMLSemanticError(e, s);
3384
- }
3314
+ if (!n || !r) throw new Y.YAMLSemanticError(e, "Insufficient parameters given for %TAG directive");
3315
+ if (t.some((s) => s.handle === n)) throw new Y.YAMLSemanticError(e, "The %TAG directive must only be given at most once per handle in the same document.");
3385
3316
  return {
3386
3317
  handle: n,
3387
3318
  prefix: r
@@ -3389,10 +3320,7 @@ ${o.commentBefore}` : i;
3389
3320
  }
3390
3321
  function Pa(t, e) {
3391
3322
  let [n] = e.parameters;
3392
- if (e.name === "YAML:1.0" && (n = "1.0"), !n) {
3393
- let r = "Insufficient parameters given for %YAML directive";
3394
- throw new Y.YAMLSemanticError(e, r);
3395
- }
3323
+ if (e.name === "YAML:1.0" && (n = "1.0"), !n) throw new Y.YAMLSemanticError(e, "Insufficient parameters given for %YAML directive");
3396
3324
  if (!_s[n]) {
3397
3325
  let s = `Document will be parsed as YAML ${t.version || t.options.version} rather than YAML ${n}`;
3398
3326
  t.warnings.push(new Y.YAMLWarning(e, s));
@@ -3414,10 +3342,7 @@ ${o.commentBefore}` : i;
3414
3342
  break;
3415
3343
  case "YAML":
3416
3344
  case "YAML:1.0":
3417
- if (t.version) {
3418
- let c = "The %YAML directive must only be given at most once per document.";
3419
- t.errors.push(new Y.YAMLSemanticError(i, c));
3420
- }
3345
+ if (t.version) t.errors.push(new Y.YAMLSemanticError(i, "The %YAML directive must only be given at most once per document."));
3421
3346
  try {
3422
3347
  t.version = Pa(t, i);
3423
3348
  } catch (c) {
@@ -3591,10 +3516,7 @@ var Ys = te((Ds) => {
3591
3516
  }
3592
3517
  function xs(t, e) {
3593
3518
  let n = er.parse(t), r = new je(e).parse(n[0]);
3594
- if (n.length > 1) {
3595
- let s = "Source contains multiple documents; please use YAML.parseAllDocuments()";
3596
- r.errors.unshift(new _a.YAMLSemanticError(n[1], s));
3597
- }
3519
+ if (n.length > 1) r.errors.unshift(new _a.YAMLSemanticError(n[1], "Source contains multiple documents; please use YAML.parseAllDocuments()"));
3598
3520
  return r;
3599
3521
  }
3600
3522
  function Ya(t, e) {
@@ -3606,7 +3528,7 @@ var Ys = te((Ds) => {
3606
3528
  let n = new je(e);
3607
3529
  return n.contents = t, String(n);
3608
3530
  }
3609
- var Ba = {
3531
+ Ds.YAML = {
3610
3532
  createNode: xa,
3611
3533
  defaultOptions: Oe.defaultOptions,
3612
3534
  Document: je,
@@ -3617,7 +3539,6 @@ var Ys = te((Ds) => {
3617
3539
  scalarOptions: Oe.scalarOptions,
3618
3540
  stringify: $a
3619
3541
  };
3620
- Ds.YAML = Ba;
3621
3542
  });
3622
3543
  var tr = te((nf, $s) => {
3623
3544
  $s.exports = Ys().YAML;
@@ -3941,8 +3862,8 @@ var ro = Object.fromEntries(Object.entries({
3941
3862
  "middleComments",
3942
3863
  "trailingComment",
3943
3864
  "endComments"
3944
- ]])), Cr = ro;
3945
- var so = Mr(Cr), kr = so;
3865
+ ]]));
3866
+ var so = Mr(ro), kr = so;
3946
3867
  function xe(t) {
3947
3868
  return t.position.start.offset;
3948
3869
  }
@@ -5301,4 +5222,4 @@ var Ih = gr;
5301
5222
 
5302
5223
  //#endregion
5303
5224
  export { sc as __parsePrettierYamlConfig, Ih as default, Xr as languages, zr as options, hr as parsers, rc as printers };
5304
- //# sourceMappingURL=yaml-DZASOrDL.js.map
5225
+ //# sourceMappingURL=yaml-Bi_nSoU_.js.map