oxfmt 0.58.0 → 0.59.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 (32) hide show
  1. package/configuration_schema.json +3 -3
  2. package/dist/{acorn-CZllRq2x.js → acorn-Dxp-n4ed.js} +136 -43
  3. package/dist/{angular-CsoDKqo4.js → angular-Clx-wbm6.js} +253 -90
  4. package/dist/{apis-DLO0lBDu.js → apis-D299uPBa.js} +4 -4
  5. package/dist/{babel-DZD6u90w.js → babel-7tfAjQas.js} +178 -69
  6. package/dist/{bindings-DTiEua0g.js → bindings-CjOHPMBU.js} +26 -26
  7. package/dist/{chunk-DSjvVL_1-DX2STy_I.js → chunk-DSjvVL_1-Do0Iorfu.js} +1 -1
  8. package/dist/cli-worker.d.ts +18 -24
  9. package/dist/cli-worker.js +1 -1
  10. package/dist/cli.js +2 -2
  11. package/dist/{dist-YOS4M6hk.js → dist-Byfj_1s9.js} +14 -14
  12. package/dist/{estree-ChnhgzGg.js → estree-CyQu6pff.js} +1982 -1861
  13. package/dist/{flow-C6LkWPPl.js → flow-BH5imzwC.js} +2014 -1999
  14. package/dist/{glimmer-YnkKK2a7.js → glimmer-B5hfTXAX.js} +107 -42
  15. package/dist/{graphql-BNiwkZTo.js → graphql-DQB_nHt9.js} +80 -15
  16. package/dist/{html-DMHXIbrM.js → html--849eFzc.js} +257 -155
  17. package/dist/index.d.ts +7 -3
  18. package/dist/index.js +3 -3
  19. package/dist/{jiti-Bb1dT6Cw-B61jQmj-.js → jiti-Bb1dT6Cw-cY1yrK9n.js} +2 -2
  20. package/dist/{markdown-BjyDFyaO.js → markdown-B1lBrqaF.js} +3778 -3745
  21. package/dist/{meriyah-zDNCk2o1.js → meriyah-B5wbO5kj.js} +264 -213
  22. package/dist/{migrate-prettier-BmSsy164.js → migrate-prettier-CbxtU9AG.js} +1 -1
  23. package/dist/{plugin-B4cguZ1l.js → plugin-D1B0s0iv.js} +3 -3
  24. package/dist/{postcss-CwPwODg8.js → postcss-DuOoF7OX.js} +1129 -1050
  25. package/dist/{prettier-BByt4AhK.js → prettier-CEZwFZsY.js} +18 -19
  26. package/dist/{sorter-BZkvDMjt-B8ihSEiX.js → sorter-BZkvDMjt-DFTeIPU-.js} +7 -7
  27. package/dist/{sorter-BcGkkjyR.js → sorter-Cm0Z2eGI.js} +1 -1
  28. package/dist/{typescript-Bq_S3kyC.js → typescript-Cvdwz3-D.js} +120 -47
  29. package/dist/{v3-D-mr2VVh-p01OHBjH.js → v3-D-mr2VVh-C_WUxELf.js} +6 -5
  30. package/dist/{v4-C-HWEQJm-BbuYNtSW.js → v4-C-HWEQJm-C0ut0NwJ.js} +108 -30
  31. package/dist/{yaml-DlyuuZmC.js → yaml-Dd4aShtG.js} +138 -49
  32. package/package.json +20 -20
@@ -1,5 +1,5 @@
1
1
  import { n as __esmMin } from "./rolldown-runtime-CE-6LUnI.js";
2
- //#region ../../node_modules/.pnpm/prettier@3.9.4/node_modules/prettier/plugins/yaml.mjs
2
+ //#region ../../node_modules/.pnpm/prettier@3.9.5/node_modules/prettier/plugins/yaml.mjs
3
3
  function _o(t) {
4
4
  return this[t < 0 ? this.length + t : t];
5
5
  }
@@ -3567,11 +3567,28 @@ __esmMin((() => {
3567
3567
  });
3568
3568
  Lo = String.prototype.replaceAll ?? function(t, e) {
3569
3569
  return t.global ? this.replace(t, e) : this.split(t).join(e);
3570
- }, Jt = Ht("replaceAll", function() {
3570
+ };
3571
+ Jt = Ht("replaceAll", function() {
3571
3572
  if (typeof this == "string") return Lo;
3572
3573
  });
3573
- vo = () => {}, dt = vo;
3574
- gt = "string", yt = "array", Wt = "cursor", Xt = "indent", Ue = "align", zt = "trim", je = "group", Ve = "fill", Ge = "if-break", Zt = "indent-if-break", Qe = "line-suffix", en = "line-suffix-boundary", ke = "line", tn = "label", He = "break-parent", nn = /* @__PURE__ */ new Set([
3574
+ vo = () => {};
3575
+ dt = vo;
3576
+ gt = "string";
3577
+ yt = "array";
3578
+ Wt = "cursor";
3579
+ Xt = "indent";
3580
+ Ue = "align";
3581
+ zt = "trim";
3582
+ je = "group";
3583
+ Ve = "fill";
3584
+ Ge = "if-break";
3585
+ Zt = "indent-if-break";
3586
+ Qe = "line-suffix";
3587
+ en = "line-suffix-boundary";
3588
+ ke = "line";
3589
+ tn = "label";
3590
+ He = "break-parent";
3591
+ nn = /* @__PURE__ */ new Set([
3575
3592
  Wt,
3576
3593
  Xt,
3577
3594
  Ue,
@@ -3593,16 +3610,23 @@ __esmMin((() => {
3593
3610
  constructor(e) {
3594
3611
  super(Mo(e)), this.doc = e;
3595
3612
  }
3596
- }, Zs = os;
3597
- re = dt, on = dt, tr = dt, nr = dt;
3613
+ };
3614
+ Zs = os;
3615
+ re = dt;
3616
+ on = dt;
3617
+ tr = dt;
3618
+ nr = dt;
3598
3619
  kt = { type: He };
3599
- Se = { type: ke }, ln = {
3620
+ Se = { type: ke };
3621
+ ln = {
3600
3622
  type: ke,
3601
3623
  soft: !0
3602
- }, O = [{
3624
+ };
3625
+ O = [{
3603
3626
  type: ke,
3604
3627
  hard: !0
3605
- }, kt], wt = [{
3628
+ }, kt];
3629
+ wt = [{
3606
3630
  type: ke,
3607
3631
  hard: !0,
3608
3632
  literal: !0
@@ -3617,7 +3641,8 @@ __esmMin((() => {
3617
3641
  constructor(e, n, s = "type") {
3618
3642
  super(`Unexpected ${n} node ${s}: ${JSON.stringify(e[s])}.`), this.node = e;
3619
3643
  }
3620
- }, ar = ps;
3644
+ };
3645
+ ar = ps;
3621
3646
  lr.getVisitorKeys = () => [];
3622
3647
  cr = lr;
3623
3648
  Et = null;
@@ -3712,10 +3737,16 @@ __esmMin((() => {
3712
3737
  tag: P[4],
3713
3738
  anchor: P[4]
3714
3739
  });
3715
- Nt = (t) => t.position.start.offset, mr = (t) => t.position.end.offset;
3740
+ Nt = (t) => t.position.start.offset;
3741
+ mr = (t) => t.position.end.offset;
3716
3742
  hr = "format";
3717
- dr = /^\s*#[^\S\n]*@(?:noformat|noprettier)\s*?(?:\n|$)/, gr = /^\s*#[^\S\n]*@(?:format|prettier)\s*?(?:\n|$)/, yr = /^\s*@(?:format|prettier)\s*$/;
3718
- wr = (t) => yr.test(t), br = (t) => gr.test(t), kr = (t) => dr.test(t), Sr = (t) => `# @${hr}
3743
+ dr = /^\s*#[^\S\n]*@(?:noformat|noprettier)\s*?(?:\n|$)/;
3744
+ gr = /^\s*#[^\S\n]*@(?:format|prettier)\s*?(?:\n|$)/;
3745
+ yr = /^\s*@(?:format|prettier)\s*$/;
3746
+ wr = (t) => yr.test(t);
3747
+ br = (t) => gr.test(t);
3748
+ kr = (t) => dr.test(t);
3749
+ Sr = (t) => `# @${hr}
3719
3750
 
3720
3751
  ${t}`;
3721
3752
  hs.ignoredProperties = /* @__PURE__ */ new Set(["position"]);
@@ -3882,9 +3913,23 @@ ${t}`;
3882
3913
  visit: () => ae,
3883
3914
  visitAsync: () => Lt
3884
3915
  });
3885
- wn = Symbol.for("yaml.alias"), bn = Symbol.for("yaml.document"), oe = Symbol.for("yaml.map"), bs = Symbol.for("yaml.pair"), ee = Symbol.for("yaml.scalar"), Ne = Symbol.for("yaml.seq"), G = Symbol.for("yaml.node.type"), H = (t) => !!t && typeof t == "object" && t[G] === wn, ne = (t) => !!t && typeof t == "object" && t[G] === bn, U = (t) => !!t && typeof t == "object" && t[G] === oe, T = (t) => !!t && typeof t == "object" && t[G] === bs, C = (t) => !!t && typeof t == "object" && t[G] === ee, J = (t) => !!t && typeof t == "object" && t[G] === Ne;
3916
+ wn = Symbol.for("yaml.alias");
3917
+ bn = Symbol.for("yaml.document");
3918
+ oe = Symbol.for("yaml.map");
3919
+ bs = Symbol.for("yaml.pair");
3920
+ ee = Symbol.for("yaml.scalar");
3921
+ Ne = Symbol.for("yaml.seq");
3922
+ G = Symbol.for("yaml.node.type");
3923
+ H = (t) => !!t && typeof t == "object" && t[G] === wn;
3924
+ ne = (t) => !!t && typeof t == "object" && t[G] === bn;
3925
+ U = (t) => !!t && typeof t == "object" && t[G] === oe;
3926
+ T = (t) => !!t && typeof t == "object" && t[G] === bs;
3927
+ C = (t) => !!t && typeof t == "object" && t[G] === ee;
3928
+ J = (t) => !!t && typeof t == "object" && t[G] === Ne;
3886
3929
  kn = (t) => (C(t) || I(t)) && !!t.anchor;
3887
- W = Symbol("break visit"), ni = Symbol("skip children"), me = Symbol("remove node");
3930
+ W = Symbol("break visit");
3931
+ ni = Symbol("skip children");
3932
+ me = Symbol("remove node");
3888
3933
  ae.BREAK = W;
3889
3934
  ae.SKIP = ni;
3890
3935
  ae.REMOVE = me;
@@ -3898,7 +3943,9 @@ ${t}`;
3898
3943
  "]": "%5D",
3899
3944
  "{": "%7B",
3900
3945
  "}": "%7D"
3901
- }, ha = (t) => t.replace(/[!,[\]{}]/g, (e) => ma[e]), he = class t {
3946
+ };
3947
+ ha = (t) => t.replace(/[!,[\]{}]/g, (e) => ma[e]);
3948
+ he = class t {
3902
3949
  constructor(e, n) {
3903
3950
  this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, t.defaultYaml, e), this.tags = Object.assign({}, t.defaultTags, n);
3904
3951
  }
@@ -4049,7 +4096,8 @@ ${t}`;
4049
4096
  return r;
4050
4097
  }
4051
4098
  };
4052
- Cn = (t) => !t || typeof t != "function" && typeof t != "object", y = class extends xe {
4099
+ Cn = (t) => !t || typeof t != "function" && typeof t != "object";
4100
+ y = class extends xe {
4053
4101
  constructor(e) {
4054
4102
  super(ee), this.value = e;
4055
4103
  }
@@ -4066,7 +4114,8 @@ ${t}`;
4066
4114
  y.QUOTE_DOUBLE = "QUOTE_DOUBLE";
4067
4115
  y.QUOTE_SINGLE = "QUOTE_SINGLE";
4068
4116
  da = "tag:yaml.org,2002:";
4069
- nt = (t) => t == null || typeof t == "object" && !!t[Symbol.iterator]().next().done, tt = class extends xe {
4117
+ nt = (t) => t == null || typeof t == "object" && !!t[Symbol.iterator]().next().done;
4118
+ tt = class extends xe {
4070
4119
  constructor(e, n) {
4071
4120
  super(e), Object.defineProperty(this, "schema", {
4072
4121
  value: n,
@@ -4128,12 +4177,15 @@ ${t}`;
4128
4177
  `) ? se(n, e) : n.includes(`
4129
4178
  `) ? `
4130
4179
  ` + se(n, e) : (t.endsWith(" ") ? "" : " ") + n;
4131
- Es = "flow", Nn = "block", vt = "quoted";
4180
+ Es = "flow";
4181
+ Nn = "block";
4182
+ vt = "quoted";
4132
4183
  Tn = (t, e) => ({
4133
4184
  indentAtStart: e ? t.indent.length : t.indentAtStart,
4134
4185
  lineWidth: t.options.lineWidth,
4135
4186
  minContentWidth: t.options.minContentWidth
4136
- }), On = (t) => /^(%|---|\.\.\.)/m.test(t);
4187
+ });
4188
+ On = (t) => /^(%|---|\.\.\.)/m.test(t);
4137
4189
  try {
4138
4190
  Ns = new RegExp(`(^|(?<!
4139
4191
  ))
@@ -4142,14 +4194,16 @@ ${t}`;
4142
4194
  } catch {
4143
4195
  Ns = /\n+(?!\n|$)/g;
4144
4196
  }
4145
- Ln = "<<", le = {
4197
+ Ln = "<<";
4198
+ le = {
4146
4199
  identify: (t) => t === Ln || typeof t == "symbol" && t.description === Ln,
4147
4200
  default: "key",
4148
4201
  tag: "tag:yaml.org,2002:merge",
4149
4202
  test: /^<<$/,
4150
4203
  resolve: () => Object.assign(new y(Symbol(Ln)), { addToJSMap: Ts }),
4151
4204
  stringify: () => Ln
4152
- }, fi = (t, e) => (le.identify(e) || C(e) && (!e.type || e.type === y.PLAIN) && le.identify(e.value)) && t?.doc.schema.tags.some((n) => n.tag === le.tag && n.default);
4205
+ };
4206
+ fi = (t, e) => (le.identify(e) || C(e) && (!e.type || e.type === y.PLAIN) && le.identify(e.value)) && t?.doc.schema.tags.some((n) => n.tag === le.tag && n.default);
4153
4207
  v = class t {
4154
4208
  constructor(e, n = null) {
4155
4209
  Object.defineProperty(this, G, { value: bs }), this.key = e, this.value = n;
@@ -4351,7 +4405,8 @@ ${t}`;
4351
4405
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
4352
4406
  resolve: (t) => t.slice(-3).toLowerCase() === "nan" ? NaN : t[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
4353
4407
  stringify: j
4354
- }, $n = {
4408
+ };
4409
+ $n = {
4355
4410
  identify: (t) => typeof t == "number",
4356
4411
  default: !0,
4357
4412
  tag: "tag:yaml.org,2002:float",
@@ -4362,7 +4417,8 @@ ${t}`;
4362
4417
  let e = Number(t.value);
4363
4418
  return isFinite(e) ? e.toExponential() : j(t);
4364
4419
  }
4365
- }, Bn = {
4420
+ };
4421
+ Bn = {
4366
4422
  identify: (t) => typeof t == "number",
4367
4423
  default: !0,
4368
4424
  tag: "tag:yaml.org,2002:float",
@@ -4373,7 +4429,8 @@ ${t}`;
4373
4429
  },
4374
4430
  stringify: j
4375
4431
  };
4376
- Rn = (t) => typeof t == "bigint" || Number.isInteger(t), Os = (t, e, n, { intAsBigInt: s }) => s ? BigInt(t) : parseInt(t.substring(e), n);
4432
+ Rn = (t) => typeof t == "bigint" || Number.isInteger(t);
4433
+ Os = (t, e, n, { intAsBigInt: s }) => s ? BigInt(t) : parseInt(t.substring(e), n);
4377
4434
  qn = {
4378
4435
  identify: (t) => Rn(t) && t >= 0,
4379
4436
  default: !0,
@@ -4382,14 +4439,16 @@ ${t}`;
4382
4439
  test: /^0o[0-7]+$/,
4383
4440
  resolve: (t, e, n) => Os(t, 2, 8, n),
4384
4441
  stringify: (t) => pi(t, 8, "0o")
4385
- }, Fn = {
4442
+ };
4443
+ Fn = {
4386
4444
  identify: Rn,
4387
4445
  default: !0,
4388
4446
  tag: "tag:yaml.org,2002:int",
4389
4447
  test: /^[-+]?[0-9]+$/,
4390
4448
  resolve: (t, e, n) => Os(t, 0, 10, n),
4391
4449
  stringify: j
4392
- }, Kn = {
4450
+ };
4451
+ Kn = {
4393
4452
  identify: (t) => Rn(t) && t >= 0,
4394
4453
  default: !0,
4395
4454
  tag: "tag:yaml.org,2002:int",
@@ -4411,7 +4470,8 @@ ${t}`;
4411
4470
  $n,
4412
4471
  Bn
4413
4472
  ];
4414
- Yn = ({ value: t }) => JSON.stringify(t), Na = [
4473
+ Yn = ({ value: t }) => JSON.stringify(t);
4474
+ Na = [
4415
4475
  {
4416
4476
  identify: (t) => typeof t == "string",
4417
4477
  default: !0,
@@ -4452,7 +4512,8 @@ ${t}`;
4452
4512
  resolve: (t) => parseFloat(t),
4453
4513
  stringify: Yn
4454
4514
  }
4455
- ], di = [ce, fe].concat(Na, {
4515
+ ];
4516
+ di = [ce, fe].concat(Na, {
4456
4517
  default: !0,
4457
4518
  tag: "",
4458
4519
  test: /^/,
@@ -4540,7 +4601,8 @@ ${t}`;
4540
4601
  test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
4541
4602
  resolve: () => new y(!0),
4542
4603
  stringify: gi
4543
- }, Ps = {
4604
+ };
4605
+ Ps = {
4544
4606
  identify: (t) => t === !1,
4545
4607
  default: !0,
4546
4608
  tag: "tag:yaml.org,2002:bool",
@@ -4555,7 +4617,8 @@ ${t}`;
4555
4617
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
4556
4618
  resolve: (t) => t.slice(-3).toLowerCase() === "nan" ? NaN : t[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
4557
4619
  stringify: j
4558
- }, wi = {
4620
+ };
4621
+ wi = {
4559
4622
  identify: (t) => typeof t == "number",
4560
4623
  default: !0,
4561
4624
  tag: "tag:yaml.org,2002:float",
@@ -4566,7 +4629,8 @@ ${t}`;
4566
4629
  let e = Number(t.value);
4567
4630
  return isFinite(e) ? e.toExponential() : j(t);
4568
4631
  }
4569
- }, bi = {
4632
+ };
4633
+ bi = {
4570
4634
  identify: (t) => typeof t == "number",
4571
4635
  default: !0,
4572
4636
  tag: "tag:yaml.org,2002:float",
@@ -4590,7 +4654,8 @@ ${t}`;
4590
4654
  test: /^[-+]?0b[0-1_]+$/,
4591
4655
  resolve: (t, e, n) => Un(t, 2, 2, n),
4592
4656
  stringify: (t) => vs(t, 2, "0b")
4593
- }, Si = {
4657
+ };
4658
+ Si = {
4594
4659
  identify: qt,
4595
4660
  default: !0,
4596
4661
  tag: "tag:yaml.org,2002:int",
@@ -4598,14 +4663,16 @@ ${t}`;
4598
4663
  test: /^[-+]?0[0-7_]+$/,
4599
4664
  resolve: (t, e, n) => Un(t, 1, 8, n),
4600
4665
  stringify: (t) => vs(t, 8, "0")
4601
- }, Ei = {
4666
+ };
4667
+ Ei = {
4602
4668
  identify: qt,
4603
4669
  default: !0,
4604
4670
  tag: "tag:yaml.org,2002:int",
4605
4671
  test: /^[-+]?[0-9][0-9_]*$/,
4606
4672
  resolve: (t, e, n) => Un(t, 0, 10, n),
4607
4673
  stringify: j
4608
- }, Ci = {
4674
+ };
4675
+ Ci = {
4609
4676
  identify: qt,
4610
4677
  default: !0,
4611
4678
  tag: "tag:yaml.org,2002:int",
@@ -4669,7 +4736,8 @@ ${t}`;
4669
4736
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
4670
4737
  resolve: (t, e, { intAsBigInt: n }) => Ds(t, n),
4671
4738
  stringify: Ni
4672
- }, Vn = {
4739
+ };
4740
+ Vn = {
4673
4741
  identify: (t) => typeof t == "number",
4674
4742
  default: !0,
4675
4743
  tag: "tag:yaml.org,2002:float",
@@ -4677,7 +4745,8 @@ ${t}`;
4677
4745
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
4678
4746
  resolve: (t) => Ds(t, !1),
4679
4747
  stringify: Ni
4680
- }, at = {
4748
+ };
4749
+ at = {
4681
4750
  identify: (t) => t instanceof Date,
4682
4751
  default: !0,
4683
4752
  tag: "tag:yaml.org,2002:timestamp",
@@ -4727,7 +4796,8 @@ ${t}`;
4727
4796
  ["json", di],
4728
4797
  ["yaml11", xs],
4729
4798
  ["yaml-1.1", xs]
4730
- ]), Ti = {
4799
+ ]);
4800
+ Ti = {
4731
4801
  binary: $t,
4732
4802
  bool: Mt,
4733
4803
  float: Bn,
@@ -4746,7 +4816,8 @@ ${t}`;
4746
4816
  seq: fe,
4747
4817
  set: Ft,
4748
4818
  timestamp: at
4749
- }, Oi = {
4819
+ };
4820
+ Oi = {
4750
4821
  "tag:yaml.org,2002:binary": $t,
4751
4822
  "tag:yaml.org,2002:merge": le,
4752
4823
  "tag:yaml.org,2002:omap": Rt,
@@ -4754,7 +4825,8 @@ ${t}`;
4754
4825
  "tag:yaml.org,2002:set": Ft,
4755
4826
  "tag:yaml.org,2002:timestamp": at
4756
4827
  };
4757
- Ta = (t, e) => t.key < e.key ? -1 : t.key > e.key ? 1 : 0, lt = class t {
4828
+ Ta = (t, e) => t.key < e.key ? -1 : t.key > e.key ? 1 : 0;
4829
+ lt = class t {
4758
4830
  constructor({ compat: e, customTags: n, merge: s, resolveKnownTags: r, schema: i, sortMapEntries: o, toStringDefaults: a }) {
4759
4831
  this.compat = Array.isArray(e) ? Gn(e, "compat") : e ? Gn(null, e) : null, this.name = typeof i == "string" && i || "core", this.knownTags = r ? Oi : {}, this.tags = Gn(n, this.name, s), this.toStringOptions = a ?? null, Object.defineProperty(this, oe, { value: ce }), Object.defineProperty(this, ee, { value: $e }), Object.defineProperty(this, Ne, { value: fe }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? Ta : null;
4760
4832
  }
@@ -4906,15 +4978,18 @@ ${t}`;
4906
4978
  constructor(e, n, s, r) {
4907
4979
  super(), this.name = e, this.code = s, this.message = r, this.pos = n;
4908
4980
  }
4909
- }, te = class extends ft {
4981
+ };
4982
+ te = class extends ft {
4910
4983
  constructor(e, n, s) {
4911
4984
  super("YAMLParseError", e, n, s);
4912
4985
  }
4913
- }, ut = class extends ft {
4986
+ };
4987
+ ut = class extends ft {
4914
4988
  constructor(e, n, s) {
4915
4989
  super("YAMLWarning", e, n, s);
4916
4990
  }
4917
- }, Kt = (t, e) => (n) => {
4991
+ };
4992
+ Kt = (t, e) => (n) => {
4918
4993
  if (n.pos[0] === -1) return;
4919
4994
  n.linePos = n.pos.map((a) => e.linePos(a));
4920
4995
  let { line: s, col: r } = n.linePos[0];
@@ -4941,7 +5016,8 @@ ${c}
4941
5016
  }
4942
5017
  };
4943
5018
  Ii = "All mapping items must start at the same column";
4944
- Ms = "Block collections are not allowed within flow collections", $s = (t) => t && (t.type === "block-map" || t.type === "block-seq");
5019
+ Ms = "Block collections are not allowed within flow collections";
5020
+ $s = (t) => t && (t.type === "block-map" || t.type === "block-seq");
4945
5021
  Da = {
4946
5022
  0: "\0",
4947
5023
  a: "\x07",
@@ -5082,7 +5158,9 @@ ${n.comment}` : n.comment;
5082
5158
  visit: () => Re
5083
5159
  });
5084
5160
  Yi = (t) => "type" in t ? zn(t) : Xn(t);
5085
- Ks = Symbol("break visit"), Fa = Symbol("skip children"), Ui = Symbol("remove item");
5161
+ Ks = Symbol("break visit");
5162
+ Fa = Symbol("skip children");
5163
+ Ui = Symbol("remove item");
5086
5164
  Re.BREAK = Ks;
5087
5165
  Re.SKIP = Fa;
5088
5166
  Re.REMOVE = Ui;
@@ -5100,9 +5178,19 @@ ${n.comment}` : n.comment;
5100
5178
  if (r && "items" in r) return r;
5101
5179
  throw new Error("Parent collection not found");
5102
5180
  };
5103
- jt = "", Vt = "", Gt = "", pt = "", Ka = (t) => !!t && "items" in t, Ya = (t) => !!t && (t.type === "scalar" || t.type === "single-quoted-scalar" || t.type === "double-quoted-scalar" || t.type === "block-scalar");
5104
- Vi = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), ja = /* @__PURE__ */ new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), Zn = /* @__PURE__ */ new Set(",[]{}"), Va = /* @__PURE__ */ new Set(` ,[]{}
5105
- \r `), js = (t) => !t || Va.has(t), mt = class {
5181
+ jt = "";
5182
+ Vt = "";
5183
+ Gt = "";
5184
+ pt = "";
5185
+ Ka = (t) => !!t && "items" in t;
5186
+ Ya = (t) => !!t && (t.type === "scalar" || t.type === "single-quoted-scalar" || t.type === "double-quoted-scalar" || t.type === "block-scalar");
5187
+ Vi = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef");
5188
+ ja = /* @__PURE__ */ new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
5189
+ Zn = /* @__PURE__ */ new Set(",[]{}");
5190
+ Va = /* @__PURE__ */ new Set(` ,[]{}
5191
+ \r `);
5192
+ js = (t) => !t || Va.has(t);
5193
+ mt = class {
5106
5194
  constructor() {
5107
5195
  this.atEnd = !1, this.blockScalarIndent = -1, this.blockScalarKeep = !1, this.buffer = "", this.flowKey = !1, this.flowLevel = 0, this.indentNext = 0, this.indentValue = 0, this.lineEndPos = null, this.next = null, this.pos = 0;
5108
5196
  }
@@ -6104,7 +6192,8 @@ ${n.comment}` : n.comment;
6104
6192
  transformContentProperties(t, e) {
6105
6193
  return Ur(t, e, this);
6106
6194
  }
6107
- }, mo = Ha;
6195
+ };
6196
+ mo = Ha;
6108
6197
  Ao = il;
6109
6198
  ol = { uniqueKeys: !1 };
6110
6199
  ll = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxfmt",
3
- "version": "0.58.0",
3
+ "version": "0.59.0",
4
4
  "description": "Formatter for the JavaScript Oxidation Compiler",
5
5
  "keywords": [
6
6
  "formatter",
@@ -86,24 +86,24 @@
86
86
  },
87
87
  "preferUnplugged": true,
88
88
  "optionalDependencies": {
89
- "@oxfmt/binding-darwin-arm64": "0.58.0",
90
- "@oxfmt/binding-android-arm64": "0.58.0",
91
- "@oxfmt/binding-win32-arm64-msvc": "0.58.0",
92
- "@oxfmt/binding-linux-arm64-gnu": "0.58.0",
93
- "@oxfmt/binding-linux-arm64-musl": "0.58.0",
94
- "@oxfmt/binding-openharmony-arm64": "0.58.0",
95
- "@oxfmt/binding-android-arm-eabi": "0.58.0",
96
- "@oxfmt/binding-linux-arm-gnueabihf": "0.58.0",
97
- "@oxfmt/binding-linux-arm-musleabihf": "0.58.0",
98
- "@oxfmt/binding-win32-ia32-msvc": "0.58.0",
99
- "@oxfmt/binding-linux-ppc64-gnu": "0.58.0",
100
- "@oxfmt/binding-linux-riscv64-gnu": "0.58.0",
101
- "@oxfmt/binding-linux-riscv64-musl": "0.58.0",
102
- "@oxfmt/binding-linux-s390x-gnu": "0.58.0",
103
- "@oxfmt/binding-darwin-x64": "0.58.0",
104
- "@oxfmt/binding-win32-x64-msvc": "0.58.0",
105
- "@oxfmt/binding-freebsd-x64": "0.58.0",
106
- "@oxfmt/binding-linux-x64-gnu": "0.58.0",
107
- "@oxfmt/binding-linux-x64-musl": "0.58.0"
89
+ "@oxfmt/binding-darwin-arm64": "0.59.0",
90
+ "@oxfmt/binding-android-arm64": "0.59.0",
91
+ "@oxfmt/binding-win32-arm64-msvc": "0.59.0",
92
+ "@oxfmt/binding-linux-arm64-gnu": "0.59.0",
93
+ "@oxfmt/binding-linux-arm64-musl": "0.59.0",
94
+ "@oxfmt/binding-openharmony-arm64": "0.59.0",
95
+ "@oxfmt/binding-android-arm-eabi": "0.59.0",
96
+ "@oxfmt/binding-linux-arm-gnueabihf": "0.59.0",
97
+ "@oxfmt/binding-linux-arm-musleabihf": "0.59.0",
98
+ "@oxfmt/binding-win32-ia32-msvc": "0.59.0",
99
+ "@oxfmt/binding-linux-ppc64-gnu": "0.59.0",
100
+ "@oxfmt/binding-linux-riscv64-gnu": "0.59.0",
101
+ "@oxfmt/binding-linux-riscv64-musl": "0.59.0",
102
+ "@oxfmt/binding-linux-s390x-gnu": "0.59.0",
103
+ "@oxfmt/binding-darwin-x64": "0.59.0",
104
+ "@oxfmt/binding-win32-x64-msvc": "0.59.0",
105
+ "@oxfmt/binding-freebsd-x64": "0.59.0",
106
+ "@oxfmt/binding-linux-x64-gnu": "0.59.0",
107
+ "@oxfmt/binding-linux-x64-musl": "0.59.0"
108
108
  }
109
109
  }