oxfmt 0.12.0 → 0.14.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.
@@ -170,6 +170,8 @@
170
170
  ]
171
171
  }
172
172
  },
173
+ "allowComments": true,
174
+ "allowTrailingCommas": true,
173
175
  "definitions": {
174
176
  "ArrowParensConfig": {
175
177
  "type": "string",
package/dist/cli.js CHANGED
@@ -1,9 +1,7 @@
1
- #!/usr/bin/env node
2
- import { n as format, t as formatEmbeddedCode } from "./embedded-DV4TApdj.js";
1
+ import { n as format, t as formatEmbeddedCode } from "./embedded-8jqEK-gO.js";
3
2
 
4
3
  //#region src-js/cli.ts
5
- const success = await format(process.argv.slice(2), formatEmbeddedCode);
6
- process.exit(success ? 0 : 1);
4
+ if (!await format(process.argv.slice(2), formatEmbeddedCode)) process.exitCode = 1;
7
5
 
8
6
  //#endregion
9
7
  export { };
@@ -82,7 +82,7 @@ function requireNative() {
82
82
  try {
83
83
  const binding = require$1("@oxfmt/android-arm64");
84
84
  const bindingPackageVersion = require$1("@oxfmt/android-arm64/package.json").version;
85
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
85
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
86
86
  return binding;
87
87
  } catch (e) {
88
88
  loadErrors.push(e);
@@ -96,7 +96,7 @@ function requireNative() {
96
96
  try {
97
97
  const binding = require$1("@oxfmt/android-arm-eabi");
98
98
  const bindingPackageVersion = require$1("@oxfmt/android-arm-eabi/package.json").version;
99
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
99
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
100
100
  return binding;
101
101
  } catch (e) {
102
102
  loadErrors.push(e);
@@ -111,7 +111,7 @@ function requireNative() {
111
111
  try {
112
112
  const binding = require$1("@oxfmt/win32-x64-gnu");
113
113
  const bindingPackageVersion = require$1("@oxfmt/win32-x64-gnu/package.json").version;
114
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
114
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
115
115
  return binding;
116
116
  } catch (e) {
117
117
  loadErrors.push(e);
@@ -125,7 +125,7 @@ function requireNative() {
125
125
  try {
126
126
  const binding = require$1("@oxfmt/win32-x64");
127
127
  const bindingPackageVersion = require$1("@oxfmt/win32-x64/package.json").version;
128
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
128
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
129
129
  return binding;
130
130
  } catch (e) {
131
131
  loadErrors.push(e);
@@ -140,7 +140,7 @@ function requireNative() {
140
140
  try {
141
141
  const binding = require$1("@oxfmt/win32-ia32");
142
142
  const bindingPackageVersion = require$1("@oxfmt/win32-ia32/package.json").version;
143
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
143
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
144
144
  return binding;
145
145
  } catch (e) {
146
146
  loadErrors.push(e);
@@ -154,7 +154,7 @@ function requireNative() {
154
154
  try {
155
155
  const binding = require$1("@oxfmt/win32-arm64");
156
156
  const bindingPackageVersion = require$1("@oxfmt/win32-arm64/package.json").version;
157
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
157
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
158
158
  return binding;
159
159
  } catch (e) {
160
160
  loadErrors.push(e);
@@ -169,7 +169,7 @@ function requireNative() {
169
169
  try {
170
170
  const binding = require$1("@oxfmt/darwin-universal");
171
171
  const bindingPackageVersion = require$1("@oxfmt/darwin-universal/package.json").version;
172
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
172
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
173
173
  return binding;
174
174
  } catch (e) {
175
175
  loadErrors.push(e);
@@ -183,7 +183,7 @@ function requireNative() {
183
183
  try {
184
184
  const binding = require$1("@oxfmt/darwin-x64");
185
185
  const bindingPackageVersion = require$1("@oxfmt/darwin-x64/package.json").version;
186
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
186
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
187
187
  return binding;
188
188
  } catch (e) {
189
189
  loadErrors.push(e);
@@ -197,7 +197,7 @@ function requireNative() {
197
197
  try {
198
198
  const binding = require$1("@oxfmt/darwin-arm64");
199
199
  const bindingPackageVersion = require$1("@oxfmt/darwin-arm64/package.json").version;
200
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
200
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
201
201
  return binding;
202
202
  } catch (e) {
203
203
  loadErrors.push(e);
@@ -212,7 +212,7 @@ function requireNative() {
212
212
  try {
213
213
  const binding = require$1("@oxfmt/freebsd-x64");
214
214
  const bindingPackageVersion = require$1("@oxfmt/freebsd-x64/package.json").version;
215
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
215
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
216
216
  return binding;
217
217
  } catch (e) {
218
218
  loadErrors.push(e);
@@ -226,7 +226,7 @@ function requireNative() {
226
226
  try {
227
227
  const binding = require$1("@oxfmt/freebsd-arm64");
228
228
  const bindingPackageVersion = require$1("@oxfmt/freebsd-arm64/package.json").version;
229
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
229
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
230
230
  return binding;
231
231
  } catch (e) {
232
232
  loadErrors.push(e);
@@ -241,7 +241,7 @@ function requireNative() {
241
241
  try {
242
242
  const binding = require$1("@oxfmt/linux-x64-musl");
243
243
  const bindingPackageVersion = require$1("@oxfmt/linux-x64-musl/package.json").version;
244
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
244
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
245
245
  return binding;
246
246
  } catch (e) {
247
247
  loadErrors.push(e);
@@ -255,7 +255,7 @@ function requireNative() {
255
255
  try {
256
256
  const binding = require$1("@oxfmt/linux-x64-gnu");
257
257
  const bindingPackageVersion = require$1("@oxfmt/linux-x64-gnu/package.json").version;
258
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
258
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
259
259
  return binding;
260
260
  } catch (e) {
261
261
  loadErrors.push(e);
@@ -270,7 +270,7 @@ function requireNative() {
270
270
  try {
271
271
  const binding = require$1("@oxfmt/linux-arm64-musl");
272
272
  const bindingPackageVersion = require$1("@oxfmt/linux-arm64-musl/package.json").version;
273
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
273
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
274
274
  return binding;
275
275
  } catch (e) {
276
276
  loadErrors.push(e);
@@ -284,7 +284,7 @@ function requireNative() {
284
284
  try {
285
285
  const binding = require$1("@oxfmt/linux-arm64-gnu");
286
286
  const bindingPackageVersion = require$1("@oxfmt/linux-arm64-gnu/package.json").version;
287
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
287
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
288
288
  return binding;
289
289
  } catch (e) {
290
290
  loadErrors.push(e);
@@ -299,7 +299,7 @@ function requireNative() {
299
299
  try {
300
300
  const binding = require$1("@oxfmt/linux-arm-musleabihf");
301
301
  const bindingPackageVersion = require$1("@oxfmt/linux-arm-musleabihf/package.json").version;
302
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
302
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
303
303
  return binding;
304
304
  } catch (e) {
305
305
  loadErrors.push(e);
@@ -313,7 +313,7 @@ function requireNative() {
313
313
  try {
314
314
  const binding = require$1("@oxfmt/linux-arm-gnueabihf");
315
315
  const bindingPackageVersion = require$1("@oxfmt/linux-arm-gnueabihf/package.json").version;
316
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
316
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
317
317
  return binding;
318
318
  } catch (e) {
319
319
  loadErrors.push(e);
@@ -328,7 +328,7 @@ function requireNative() {
328
328
  try {
329
329
  const binding = require$1("@oxfmt/linux-loong64-musl");
330
330
  const bindingPackageVersion = require$1("@oxfmt/linux-loong64-musl/package.json").version;
331
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
331
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
332
332
  return binding;
333
333
  } catch (e) {
334
334
  loadErrors.push(e);
@@ -342,7 +342,7 @@ function requireNative() {
342
342
  try {
343
343
  const binding = require$1("@oxfmt/linux-loong64-gnu");
344
344
  const bindingPackageVersion = require$1("@oxfmt/linux-loong64-gnu/package.json").version;
345
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
345
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
346
346
  return binding;
347
347
  } catch (e) {
348
348
  loadErrors.push(e);
@@ -357,7 +357,7 @@ function requireNative() {
357
357
  try {
358
358
  const binding = require$1("@oxfmt/linux-riscv64-musl");
359
359
  const bindingPackageVersion = require$1("@oxfmt/linux-riscv64-musl/package.json").version;
360
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
360
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
361
361
  return binding;
362
362
  } catch (e) {
363
363
  loadErrors.push(e);
@@ -371,7 +371,7 @@ function requireNative() {
371
371
  try {
372
372
  const binding = require$1("@oxfmt/linux-riscv64-gnu");
373
373
  const bindingPackageVersion = require$1("@oxfmt/linux-riscv64-gnu/package.json").version;
374
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
374
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
375
375
  return binding;
376
376
  } catch (e) {
377
377
  loadErrors.push(e);
@@ -386,7 +386,7 @@ function requireNative() {
386
386
  try {
387
387
  const binding = require$1("@oxfmt/linux-ppc64-gnu");
388
388
  const bindingPackageVersion = require$1("@oxfmt/linux-ppc64-gnu/package.json").version;
389
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
389
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
390
390
  return binding;
391
391
  } catch (e) {
392
392
  loadErrors.push(e);
@@ -400,7 +400,7 @@ function requireNative() {
400
400
  try {
401
401
  const binding = require$1("@oxfmt/linux-s390x-gnu");
402
402
  const bindingPackageVersion = require$1("@oxfmt/linux-s390x-gnu/package.json").version;
403
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
403
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
404
404
  return binding;
405
405
  } catch (e) {
406
406
  loadErrors.push(e);
@@ -415,7 +415,7 @@ function requireNative() {
415
415
  try {
416
416
  const binding = require$1("@oxfmt/openharmony-arm64");
417
417
  const bindingPackageVersion = require$1("@oxfmt/openharmony-arm64/package.json").version;
418
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
418
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
419
419
  return binding;
420
420
  } catch (e) {
421
421
  loadErrors.push(e);
@@ -429,7 +429,7 @@ function requireNative() {
429
429
  try {
430
430
  const binding = require$1("@oxfmt/openharmony-x64");
431
431
  const bindingPackageVersion = require$1("@oxfmt/openharmony-x64/package.json").version;
432
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
432
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
433
433
  return binding;
434
434
  } catch (e) {
435
435
  loadErrors.push(e);
@@ -443,7 +443,7 @@ function requireNative() {
443
443
  try {
444
444
  const binding = require$1("@oxfmt/openharmony-arm");
445
445
  const bindingPackageVersion = require$1("@oxfmt/openharmony-arm/package.json").version;
446
- if (bindingPackageVersion !== "0.9.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.9.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
446
+ if (bindingPackageVersion !== "0.14.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
447
447
  return binding;
448
448
  } catch (e) {
449
449
  loadErrors.push(e);
@@ -10235,7 +10235,7 @@ var AnySchema = class extends Schema {
10235
10235
  }
10236
10236
  };
10237
10237
  var ArraySchema = class extends Schema {
10238
- constructor({ valueSchema, name = valueSchema.name,...handlers }) {
10238
+ constructor({ valueSchema, name = valueSchema.name, ...handlers }) {
10239
10239
  super({
10240
10240
  ...handlers,
10241
10241
  name
@@ -12354,7 +12354,7 @@ async function loadConfigFromPackageYaml(file) {
12354
12354
  var parseYaml;
12355
12355
  async function loadYaml(file) {
12356
12356
  const content = await read_file_default(file);
12357
- if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-CB3AL0ic.js"));
12357
+ if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-GLOwU2cO.js"));
12358
12358
  try {
12359
12359
  return parseYaml(content);
12360
12360
  } catch (error) {
@@ -13410,7 +13410,7 @@ async function resolveConfigFile(fileUrlOrPath) {
13410
13410
  }
13411
13411
  function mergeOverrides(configResult, filePath) {
13412
13412
  const { config, configFile } = configResult || {};
13413
- const { overrides,...options8 } = config || {};
13413
+ const { overrides, ...options8 } = config || {};
13414
13414
  if (filePath && overrides) {
13415
13415
  const relativeFilePath = path10.relative(path10.dirname(configFile), filePath);
13416
13416
  for (const override of overrides) if (pathMatchesGlobs(relativeFilePath, override.files, override.excludeFiles)) Object.assign(options8, override.options);
@@ -15304,7 +15304,7 @@ function normalizeOptions(options8, optionInfos, { logger = false, isCLI = false
15304
15304
  if (!descriptor) throw new Error("'descriptor' option is required.");
15305
15305
  } else descriptor = apiDescriptor;
15306
15306
  const unknown = !passThrough ? (key2, value, options9) => {
15307
- const { _,...schemas2 } = options9.schemas;
15307
+ const { _, ...schemas2 } = options9.schemas;
15308
15308
  return levenUnknownHandler(key2, value, {
15309
15309
  ...options9,
15310
15310
  schemas: schemas2
@@ -16825,11 +16825,11 @@ var languages = [
16825
16825
  ];
16826
16826
  var { parsers, printers } = createParsersAndPrinters([
16827
16827
  {
16828
- importPlugin: () => import("./acorn-CQOWkdMX.js"),
16828
+ importPlugin: () => import("./acorn-AMszzJUU.js"),
16829
16829
  parsers: ["acorn", "espree"]
16830
16830
  },
16831
16831
  {
16832
- importPlugin: () => import("./angular-Db4yD9KS.js"),
16832
+ importPlugin: () => import("./angular-DW1Cf_Mg.js"),
16833
16833
  parsers: [
16834
16834
  "__ng_action",
16835
16835
  "__ng_binding",
@@ -16838,7 +16838,7 @@ var { parsers, printers } = createParsersAndPrinters([
16838
16838
  ]
16839
16839
  },
16840
16840
  {
16841
- importPlugin: () => import("./babel-BQCcWVec.js"),
16841
+ importPlugin: () => import("./babel-DR6lDi_I.js"),
16842
16842
  parsers: [
16843
16843
  "babel",
16844
16844
  "babel-flow",
@@ -16857,25 +16857,25 @@ var { parsers, printers } = createParsersAndPrinters([
16857
16857
  ]
16858
16858
  },
16859
16859
  {
16860
- importPlugin: () => import("./estree-r7PAecux.js"),
16860
+ importPlugin: () => import("./estree-BLo2FhhE.js"),
16861
16861
  printers: ["estree", "estree-json"]
16862
16862
  },
16863
16863
  {
16864
- importPlugin: () => import("./flow-yvSMNoHy.js"),
16864
+ importPlugin: () => import("./flow-C5nUwKl5.js"),
16865
16865
  parsers: ["flow"]
16866
16866
  },
16867
16867
  {
16868
- importPlugin: () => import("./glimmer-D7IV3Mhq.js"),
16868
+ importPlugin: () => import("./glimmer-DSqiikYS.js"),
16869
16869
  parsers: ["glimmer"],
16870
16870
  printers: ["glimmer"]
16871
16871
  },
16872
16872
  {
16873
- importPlugin: () => import("./graphql-TPUunNra.js"),
16873
+ importPlugin: () => import("./graphql-CRdCrY0C.js"),
16874
16874
  parsers: ["graphql"],
16875
16875
  printers: ["graphql"]
16876
16876
  },
16877
16877
  {
16878
- importPlugin: () => import("./html-BpwxqSxp.js"),
16878
+ importPlugin: () => import("./html-Bf7iNeKh.js"),
16879
16879
  parsers: [
16880
16880
  "html",
16881
16881
  "angular",
@@ -16886,7 +16886,7 @@ var { parsers, printers } = createParsersAndPrinters([
16886
16886
  printers: ["html"]
16887
16887
  },
16888
16888
  {
16889
- importPlugin: () => import("./markdown-TbisypCC.js"),
16889
+ importPlugin: () => import("./markdown-ChQ6_4nO.js"),
16890
16890
  parsers: [
16891
16891
  "markdown",
16892
16892
  "mdx",
@@ -16895,11 +16895,11 @@ var { parsers, printers } = createParsersAndPrinters([
16895
16895
  printers: ["mdast"]
16896
16896
  },
16897
16897
  {
16898
- importPlugin: () => import("./meriyah-9EM4h9dG.js"),
16898
+ importPlugin: () => import("./meriyah-BLMfa3Bu.js"),
16899
16899
  parsers: ["meriyah"]
16900
16900
  },
16901
16901
  {
16902
- importPlugin: () => import("./postcss-Cww6RDxx.js"),
16902
+ importPlugin: () => import("./postcss-DmDfMZeY.js"),
16903
16903
  parsers: [
16904
16904
  "css",
16905
16905
  "less",
@@ -16908,11 +16908,11 @@ var { parsers, printers } = createParsersAndPrinters([
16908
16908
  printers: ["postcss"]
16909
16909
  },
16910
16910
  {
16911
- importPlugin: () => import("./typescript-Ckq6wQ5n.js"),
16911
+ importPlugin: () => import("./typescript-J-CZQvci.js"),
16912
16912
  parsers: ["typescript"]
16913
16913
  },
16914
16914
  {
16915
- importPlugin: () => import("./yaml-CB3AL0ic.js"),
16915
+ importPlugin: () => import("./yaml-GLOwU2cO.js"),
16916
16916
  parsers: ["yaml"],
16917
16917
  printers: ["yaml"]
16918
16918
  }
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as format, t as formatEmbeddedCode } from "./embedded-DV4TApdj.js";
1
+ import { n as format, t as formatEmbeddedCode } from "./embedded-8jqEK-gO.js";
2
2
 
3
3
  export { format, formatEmbeddedCode };
@@ -1621,7 +1621,7 @@ var Bo = g((px, Mo) => {
1621
1621
  var vf = Ht(), xf = qe(), bf = mt(), _f = De(), Ef = ps(), kf = Be(), Sf = jt();
1622
1622
  function wt(t, e) {
1623
1623
  if (Array.isArray(t)) return t.map((n) => wt(n));
1624
- let { inputs: s,...r } = t;
1624
+ let { inputs: s, ...r } = t;
1625
1625
  if (s) {
1626
1626
  e = [];
1627
1627
  for (let n of s) {
@@ -1636,7 +1636,7 @@ var Bo = g((px, Mo) => {
1636
1636
  }
1637
1637
  }
1638
1638
  if (r.nodes && (r.nodes = t.nodes.map((n) => wt(n, e))), r.source) {
1639
- let { inputId: n,...i } = r.source;
1639
+ let { inputId: n, ...i } = r.source;
1640
1640
  r.source = i, n != null && (r.source.input = e[n]);
1641
1641
  }
1642
1642
  if (r.type === "root") return new kf(r);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxfmt",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "type": "module",
5
5
  "description": "Formatter for the JavaScript Oxidation Compiler",
6
6
  "keywords": [],
@@ -31,13 +31,13 @@
31
31
  "README.md"
32
32
  ],
33
33
  "optionalDependencies": {
34
- "@oxfmt/win32-x64": "0.12.0",
35
- "@oxfmt/win32-arm64": "0.12.0",
36
- "@oxfmt/linux-x64-gnu": "0.12.0",
37
- "@oxfmt/linux-arm64-gnu": "0.12.0",
38
- "@oxfmt/linux-x64-musl": "0.12.0",
39
- "@oxfmt/linux-arm64-musl": "0.12.0",
40
- "@oxfmt/darwin-x64": "0.12.0",
41
- "@oxfmt/darwin-arm64": "0.12.0"
34
+ "@oxfmt/win32-x64": "0.14.0",
35
+ "@oxfmt/win32-arm64": "0.14.0",
36
+ "@oxfmt/linux-x64-gnu": "0.14.0",
37
+ "@oxfmt/linux-arm64-gnu": "0.14.0",
38
+ "@oxfmt/linux-x64-musl": "0.14.0",
39
+ "@oxfmt/linux-arm64-musl": "0.14.0",
40
+ "@oxfmt/darwin-x64": "0.14.0",
41
+ "@oxfmt/darwin-arm64": "0.14.0"
42
42
  }
43
43
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes