oxfmt 0.44.0 → 0.45.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.
- package/configuration_schema.json +4 -4
- package/dist/{acorn-BnWlLI9w.js → acorn-DazAYFEC.js} +1 -1
- package/dist/{angular-BS7_jn7o.js → angular-Aph8b0ut.js} +1303 -1197
- package/dist/{apis-mHnrEtPz.js → apis-rMlkuPw1.js} +3 -3
- package/dist/{babel-Fkr5EfJ9.js → babel-9g4Z1xEA.js} +1 -1
- package/dist/{bindings-D8fqxEoQ.js → bindings-CBKV8AbA.js} +26 -26
- package/dist/{chunk-DSjvVL_1-BYdvZw3N.js → chunk-DSjvVL_1-CHQFAj82.js} +1 -1
- package/dist/cli-worker.d.ts +2 -2
- package/dist/cli-worker.js +1 -1
- package/dist/cli.js +33 -22
- package/dist/{dist-D4weCFEt.js → dist-CKaxC7ER.js} +16 -16
- package/dist/{estree-BdH1ynKb.js → estree-ClUlOUIs.js} +2 -2
- package/dist/{flow-JTvJzd2b.js → flow-QdRUnlQt.js} +1 -1
- package/dist/{glimmer-Dj-rhc3H.js → glimmer-C693tJkh.js} +1 -1
- package/dist/{graphql-BTqRh-7l.js → graphql-za2YLVGc.js} +1 -1
- package/dist/{html-cr_GTtzg.js → html-B2VMTsz7.js} +1113 -1011
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/{jiti-Bb1dT6Cw-CnTrJOrf.js → jiti-Bb1dT6Cw-DzTewG1l.js} +2 -2
- package/dist/{markdown-4I9EsAQD.js → markdown-BOatMac3.js} +1 -1
- package/dist/{meriyah-Dyll-d_f.js → meriyah-zZMvz4-D.js} +1 -1
- package/dist/{migrate-prettier-CpiJRvlG.js → migrate-prettier-B19hw9Dn.js} +1 -1
- package/dist/{postcss-k2aCwkzC.js → postcss-CBTRJb4w.js} +1 -1
- package/dist/{prettier-Dwwk1Fyx.js → prettier-CU6WrYtk.js} +17 -17
- package/dist/{resolve-pWjAK-4f-ColMfOaZ.js → resolve-pWjAK-4f-Uu3Cl5SX.js} +2 -2
- package/dist/{sorter-BZkvDMjt-BJdi7rG8.js → sorter-BZkvDMjt-ChoLEMxn.js} +7 -7
- package/dist/{sorter-DNWmw8Iu.js → sorter-QhZPi-JI.js} +2 -2
- package/dist/{typescript-G7g7T3yt.js → typescript-4s6b9-t0.js} +1 -1
- package/dist/{utils-D8dQkKEd-BtAa7w-M.js → utils-D8dQkKEd-BAc2jbyI.js} +1 -1
- package/dist/{v3-D-mr2VVh-CisVsFM0.js → v3-D-mr2VVh-D0Hfzxl7.js} +5 -5
- package/dist/{v4-C-HWEQJm-CbHL6UrB.js → v4-C-HWEQJm-BMcGKt4s.js} +5 -5
- package/dist/{yaml-BID5Twob.js → yaml-DNtivWD8.js} +1 -1
- package/package.json +20 -20
|
@@ -7,7 +7,7 @@ const CACHES = {
|
|
|
7
7
|
};
|
|
8
8
|
async function loadPrettier() {
|
|
9
9
|
if (!CACHES.prettier) {
|
|
10
|
-
CACHES.prettier = await import("./prettier-
|
|
10
|
+
CACHES.prettier = await import("./prettier-CU6WrYtk.js");
|
|
11
11
|
const { formatOptionsHiddenDefaults } = CACHES.prettier.__internal;
|
|
12
12
|
formatOptionsHiddenDefaults.parentParser = null;
|
|
13
13
|
formatOptionsHiddenDefaults.__onHtmlRoot = null;
|
|
@@ -84,7 +84,7 @@ async function formatEmbeddedDoc({ texts, options }) {
|
|
|
84
84
|
}));
|
|
85
85
|
}
|
|
86
86
|
async function loadTailwindPlugin() {
|
|
87
|
-
if (!CACHES.tailwindPlugin) CACHES.tailwindPlugin = await import("./dist-
|
|
87
|
+
if (!CACHES.tailwindPlugin) CACHES.tailwindPlugin = await import("./dist-CKaxC7ER.js");
|
|
88
88
|
return CACHES.tailwindPlugin;
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
@@ -97,7 +97,7 @@ async function setupTailwindPlugin(options) {
|
|
|
97
97
|
options.plugins.push(tailwindPlugin);
|
|
98
98
|
}
|
|
99
99
|
async function loadTailwindSorter() {
|
|
100
|
-
if (!CACHES.tailwindSorter) CACHES.tailwindSorter = await import("./sorter-
|
|
100
|
+
if (!CACHES.tailwindSorter) CACHES.tailwindSorter = await import("./sorter-QhZPi-JI.js");
|
|
101
101
|
return CACHES.tailwindSorter;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-DrSxFLj_.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.2/node_modules/prettier/plugins/babel.mjs
|
|
3
3
|
var babel_exports = /* @__PURE__ */ __exportAll({
|
|
4
4
|
default: () => Ks,
|
|
5
5
|
parsers: () => ra
|
|
@@ -57,7 +57,7 @@ function requireNative() {
|
|
|
57
57
|
try {
|
|
58
58
|
const binding = require("@oxfmt/binding-android-arm64");
|
|
59
59
|
const bindingPackageVersion = require("@oxfmt/binding-android-arm64/package.json").version;
|
|
60
|
-
if (bindingPackageVersion !== "0.
|
|
60
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
61
61
|
return binding;
|
|
62
62
|
} catch (e) {
|
|
63
63
|
loadErrors.push(e);
|
|
@@ -71,7 +71,7 @@ function requireNative() {
|
|
|
71
71
|
try {
|
|
72
72
|
const binding = require("@oxfmt/binding-android-arm-eabi");
|
|
73
73
|
const bindingPackageVersion = require("@oxfmt/binding-android-arm-eabi/package.json").version;
|
|
74
|
-
if (bindingPackageVersion !== "0.
|
|
74
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
75
75
|
return binding;
|
|
76
76
|
} catch (e) {
|
|
77
77
|
loadErrors.push(e);
|
|
@@ -86,7 +86,7 @@ function requireNative() {
|
|
|
86
86
|
try {
|
|
87
87
|
const binding = require("@oxfmt/binding-win32-x64-gnu");
|
|
88
88
|
const bindingPackageVersion = require("@oxfmt/binding-win32-x64-gnu/package.json").version;
|
|
89
|
-
if (bindingPackageVersion !== "0.
|
|
89
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
90
90
|
return binding;
|
|
91
91
|
} catch (e) {
|
|
92
92
|
loadErrors.push(e);
|
|
@@ -100,7 +100,7 @@ function requireNative() {
|
|
|
100
100
|
try {
|
|
101
101
|
const binding = require("@oxfmt/binding-win32-x64-msvc");
|
|
102
102
|
const bindingPackageVersion = require("@oxfmt/binding-win32-x64-msvc/package.json").version;
|
|
103
|
-
if (bindingPackageVersion !== "0.
|
|
103
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
104
104
|
return binding;
|
|
105
105
|
} catch (e) {
|
|
106
106
|
loadErrors.push(e);
|
|
@@ -115,7 +115,7 @@ function requireNative() {
|
|
|
115
115
|
try {
|
|
116
116
|
const binding = require("@oxfmt/binding-win32-ia32-msvc");
|
|
117
117
|
const bindingPackageVersion = require("@oxfmt/binding-win32-ia32-msvc/package.json").version;
|
|
118
|
-
if (bindingPackageVersion !== "0.
|
|
118
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
119
119
|
return binding;
|
|
120
120
|
} catch (e) {
|
|
121
121
|
loadErrors.push(e);
|
|
@@ -129,7 +129,7 @@ function requireNative() {
|
|
|
129
129
|
try {
|
|
130
130
|
const binding = require("@oxfmt/binding-win32-arm64-msvc");
|
|
131
131
|
const bindingPackageVersion = require("@oxfmt/binding-win32-arm64-msvc/package.json").version;
|
|
132
|
-
if (bindingPackageVersion !== "0.
|
|
132
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
133
133
|
return binding;
|
|
134
134
|
} catch (e) {
|
|
135
135
|
loadErrors.push(e);
|
|
@@ -144,7 +144,7 @@ function requireNative() {
|
|
|
144
144
|
try {
|
|
145
145
|
const binding = require("@oxfmt/binding-darwin-universal");
|
|
146
146
|
const bindingPackageVersion = require("@oxfmt/binding-darwin-universal/package.json").version;
|
|
147
|
-
if (bindingPackageVersion !== "0.
|
|
147
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
148
148
|
return binding;
|
|
149
149
|
} catch (e) {
|
|
150
150
|
loadErrors.push(e);
|
|
@@ -158,7 +158,7 @@ function requireNative() {
|
|
|
158
158
|
try {
|
|
159
159
|
const binding = require("@oxfmt/binding-darwin-x64");
|
|
160
160
|
const bindingPackageVersion = require("@oxfmt/binding-darwin-x64/package.json").version;
|
|
161
|
-
if (bindingPackageVersion !== "0.
|
|
161
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
162
162
|
return binding;
|
|
163
163
|
} catch (e) {
|
|
164
164
|
loadErrors.push(e);
|
|
@@ -172,7 +172,7 @@ function requireNative() {
|
|
|
172
172
|
try {
|
|
173
173
|
const binding = require("@oxfmt/binding-darwin-arm64");
|
|
174
174
|
const bindingPackageVersion = require("@oxfmt/binding-darwin-arm64/package.json").version;
|
|
175
|
-
if (bindingPackageVersion !== "0.
|
|
175
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
176
176
|
return binding;
|
|
177
177
|
} catch (e) {
|
|
178
178
|
loadErrors.push(e);
|
|
@@ -187,7 +187,7 @@ function requireNative() {
|
|
|
187
187
|
try {
|
|
188
188
|
const binding = require("@oxfmt/binding-freebsd-x64");
|
|
189
189
|
const bindingPackageVersion = require("@oxfmt/binding-freebsd-x64/package.json").version;
|
|
190
|
-
if (bindingPackageVersion !== "0.
|
|
190
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
191
191
|
return binding;
|
|
192
192
|
} catch (e) {
|
|
193
193
|
loadErrors.push(e);
|
|
@@ -201,7 +201,7 @@ function requireNative() {
|
|
|
201
201
|
try {
|
|
202
202
|
const binding = require("@oxfmt/binding-freebsd-arm64");
|
|
203
203
|
const bindingPackageVersion = require("@oxfmt/binding-freebsd-arm64/package.json").version;
|
|
204
|
-
if (bindingPackageVersion !== "0.
|
|
204
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
205
205
|
return binding;
|
|
206
206
|
} catch (e) {
|
|
207
207
|
loadErrors.push(e);
|
|
@@ -216,7 +216,7 @@ function requireNative() {
|
|
|
216
216
|
try {
|
|
217
217
|
const binding = require("@oxfmt/binding-linux-x64-musl");
|
|
218
218
|
const bindingPackageVersion = require("@oxfmt/binding-linux-x64-musl/package.json").version;
|
|
219
|
-
if (bindingPackageVersion !== "0.
|
|
219
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
220
220
|
return binding;
|
|
221
221
|
} catch (e) {
|
|
222
222
|
loadErrors.push(e);
|
|
@@ -230,7 +230,7 @@ function requireNative() {
|
|
|
230
230
|
try {
|
|
231
231
|
const binding = require("@oxfmt/binding-linux-x64-gnu");
|
|
232
232
|
const bindingPackageVersion = require("@oxfmt/binding-linux-x64-gnu/package.json").version;
|
|
233
|
-
if (bindingPackageVersion !== "0.
|
|
233
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
234
234
|
return binding;
|
|
235
235
|
} catch (e) {
|
|
236
236
|
loadErrors.push(e);
|
|
@@ -245,7 +245,7 @@ function requireNative() {
|
|
|
245
245
|
try {
|
|
246
246
|
const binding = require("@oxfmt/binding-linux-arm64-musl");
|
|
247
247
|
const bindingPackageVersion = require("@oxfmt/binding-linux-arm64-musl/package.json").version;
|
|
248
|
-
if (bindingPackageVersion !== "0.
|
|
248
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
249
249
|
return binding;
|
|
250
250
|
} catch (e) {
|
|
251
251
|
loadErrors.push(e);
|
|
@@ -259,7 +259,7 @@ function requireNative() {
|
|
|
259
259
|
try {
|
|
260
260
|
const binding = require("@oxfmt/binding-linux-arm64-gnu");
|
|
261
261
|
const bindingPackageVersion = require("@oxfmt/binding-linux-arm64-gnu/package.json").version;
|
|
262
|
-
if (bindingPackageVersion !== "0.
|
|
262
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
263
263
|
return binding;
|
|
264
264
|
} catch (e) {
|
|
265
265
|
loadErrors.push(e);
|
|
@@ -274,7 +274,7 @@ function requireNative() {
|
|
|
274
274
|
try {
|
|
275
275
|
const binding = require("@oxfmt/binding-linux-arm-musleabihf");
|
|
276
276
|
const bindingPackageVersion = require("@oxfmt/binding-linux-arm-musleabihf/package.json").version;
|
|
277
|
-
if (bindingPackageVersion !== "0.
|
|
277
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
278
278
|
return binding;
|
|
279
279
|
} catch (e) {
|
|
280
280
|
loadErrors.push(e);
|
|
@@ -288,7 +288,7 @@ function requireNative() {
|
|
|
288
288
|
try {
|
|
289
289
|
const binding = require("@oxfmt/binding-linux-arm-gnueabihf");
|
|
290
290
|
const bindingPackageVersion = require("@oxfmt/binding-linux-arm-gnueabihf/package.json").version;
|
|
291
|
-
if (bindingPackageVersion !== "0.
|
|
291
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
292
292
|
return binding;
|
|
293
293
|
} catch (e) {
|
|
294
294
|
loadErrors.push(e);
|
|
@@ -303,7 +303,7 @@ function requireNative() {
|
|
|
303
303
|
try {
|
|
304
304
|
const binding = require("@oxfmt/binding-linux-loong64-musl");
|
|
305
305
|
const bindingPackageVersion = require("@oxfmt/binding-linux-loong64-musl/package.json").version;
|
|
306
|
-
if (bindingPackageVersion !== "0.
|
|
306
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
307
307
|
return binding;
|
|
308
308
|
} catch (e) {
|
|
309
309
|
loadErrors.push(e);
|
|
@@ -317,7 +317,7 @@ function requireNative() {
|
|
|
317
317
|
try {
|
|
318
318
|
const binding = require("@oxfmt/binding-linux-loong64-gnu");
|
|
319
319
|
const bindingPackageVersion = require("@oxfmt/binding-linux-loong64-gnu/package.json").version;
|
|
320
|
-
if (bindingPackageVersion !== "0.
|
|
320
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
321
321
|
return binding;
|
|
322
322
|
} catch (e) {
|
|
323
323
|
loadErrors.push(e);
|
|
@@ -332,7 +332,7 @@ function requireNative() {
|
|
|
332
332
|
try {
|
|
333
333
|
const binding = require("@oxfmt/binding-linux-riscv64-musl");
|
|
334
334
|
const bindingPackageVersion = require("@oxfmt/binding-linux-riscv64-musl/package.json").version;
|
|
335
|
-
if (bindingPackageVersion !== "0.
|
|
335
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
336
336
|
return binding;
|
|
337
337
|
} catch (e) {
|
|
338
338
|
loadErrors.push(e);
|
|
@@ -346,7 +346,7 @@ function requireNative() {
|
|
|
346
346
|
try {
|
|
347
347
|
const binding = require("@oxfmt/binding-linux-riscv64-gnu");
|
|
348
348
|
const bindingPackageVersion = require("@oxfmt/binding-linux-riscv64-gnu/package.json").version;
|
|
349
|
-
if (bindingPackageVersion !== "0.
|
|
349
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
350
350
|
return binding;
|
|
351
351
|
} catch (e) {
|
|
352
352
|
loadErrors.push(e);
|
|
@@ -361,7 +361,7 @@ function requireNative() {
|
|
|
361
361
|
try {
|
|
362
362
|
const binding = require("@oxfmt/binding-linux-ppc64-gnu");
|
|
363
363
|
const bindingPackageVersion = require("@oxfmt/binding-linux-ppc64-gnu/package.json").version;
|
|
364
|
-
if (bindingPackageVersion !== "0.
|
|
364
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
365
365
|
return binding;
|
|
366
366
|
} catch (e) {
|
|
367
367
|
loadErrors.push(e);
|
|
@@ -375,7 +375,7 @@ function requireNative() {
|
|
|
375
375
|
try {
|
|
376
376
|
const binding = require("@oxfmt/binding-linux-s390x-gnu");
|
|
377
377
|
const bindingPackageVersion = require("@oxfmt/binding-linux-s390x-gnu/package.json").version;
|
|
378
|
-
if (bindingPackageVersion !== "0.
|
|
378
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
379
379
|
return binding;
|
|
380
380
|
} catch (e) {
|
|
381
381
|
loadErrors.push(e);
|
|
@@ -390,7 +390,7 @@ function requireNative() {
|
|
|
390
390
|
try {
|
|
391
391
|
const binding = require("@oxfmt/binding-openharmony-arm64");
|
|
392
392
|
const bindingPackageVersion = require("@oxfmt/binding-openharmony-arm64/package.json").version;
|
|
393
|
-
if (bindingPackageVersion !== "0.
|
|
393
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
394
394
|
return binding;
|
|
395
395
|
} catch (e) {
|
|
396
396
|
loadErrors.push(e);
|
|
@@ -404,7 +404,7 @@ function requireNative() {
|
|
|
404
404
|
try {
|
|
405
405
|
const binding = require("@oxfmt/binding-openharmony-x64");
|
|
406
406
|
const bindingPackageVersion = require("@oxfmt/binding-openharmony-x64/package.json").version;
|
|
407
|
-
if (bindingPackageVersion !== "0.
|
|
407
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
408
408
|
return binding;
|
|
409
409
|
} catch (e) {
|
|
410
410
|
loadErrors.push(e);
|
|
@@ -418,7 +418,7 @@ function requireNative() {
|
|
|
418
418
|
try {
|
|
419
419
|
const binding = require("@oxfmt/binding-openharmony-arm");
|
|
420
420
|
const bindingPackageVersion = require("@oxfmt/binding-openharmony-arm/package.json").version;
|
|
421
|
-
if (bindingPackageVersion !== "0.
|
|
421
|
+
if (bindingPackageVersion !== "0.45.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.45.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
422
422
|
return binding;
|
|
423
423
|
} catch (e) {
|
|
424
424
|
loadErrors.push(e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.2/node_modules/prettier-plugin-tailwindcss/dist/chunk-DSjvVL_1.mjs
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/dist/cli-worker.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.2/node_modules/prettier/doc.d.ts
|
|
2
2
|
// https://github.com/prettier/prettier/blob/next/src/document/public.js
|
|
3
3
|
declare namespace builders {
|
|
4
4
|
type DocCommand = Align | BreakParent | Cursor | Fill | Group | IfBreak | Indent | IndentIfBreak | Label | Line | LineSuffix | LineSuffixBoundary | Trim;
|
|
@@ -177,7 +177,7 @@ declare namespace utils {
|
|
|
177
177
|
function canBreak(doc: builders.Doc): boolean;
|
|
178
178
|
}
|
|
179
179
|
//#endregion
|
|
180
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
180
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.2/node_modules/prettier/index.d.ts
|
|
181
181
|
declare namespace doc {
|
|
182
182
|
export { builders, printer, utils };
|
|
183
183
|
}
|
package/dist/cli-worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-
|
|
1
|
+
import { a as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-rMlkuPw1.js";
|
|
2
2
|
export { formatEmbeddedCode, formatEmbeddedDoc, formatFile, sortTailwindClasses };
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as runCli } from "./bindings-
|
|
2
|
-
import { i as resolvePlugins } from "./apis-
|
|
1
|
+
import { r as runCli } from "./bindings-CBKV8AbA.js";
|
|
2
|
+
import { i as resolvePlugins } from "./apis-rMlkuPw1.js";
|
|
3
3
|
import Tinypool from "tinypool";
|
|
4
|
-
import { basename, extname } from "node:path";
|
|
5
4
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
|
+
import { extname } from "node:path";
|
|
6
6
|
//#region src-js/cli/worker-proxy.ts
|
|
7
7
|
let pool = null;
|
|
8
8
|
async function initExternalFormatter(numThreads) {
|
|
@@ -84,21 +84,13 @@ function isUnknownFileExtensionError(err) {
|
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region src-js/cli/js_config/index.ts
|
|
86
86
|
const isObject = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
87
|
-
const VITE_CONFIG_NAME = "vite.config.ts";
|
|
88
|
-
const VITE_OXFMT_CONFIG_FIELD = "fmt";
|
|
89
87
|
/**
|
|
90
|
-
* Load a JavaScript/TypeScript config file.
|
|
88
|
+
* Load a JavaScript/TypeScript config file and import it.
|
|
91
89
|
*
|
|
92
90
|
* Uses native Node.js `import()` to evaluate the config file.
|
|
93
91
|
* The config file should have a default export containing the oxfmt configuration object.
|
|
94
|
-
*
|
|
95
|
-
* For `vite.config.ts`, extracts the `.fmt` field from the default export.
|
|
96
|
-
* Returns `null` if the field is missing, signaling "skip this config" to the Rust side.
|
|
97
|
-
*
|
|
98
|
-
* @param path - Absolute path to the JavaScript/TypeScript config file
|
|
99
|
-
* @returns Config object, or `null` to signal "skip"
|
|
100
92
|
*/
|
|
101
|
-
async function
|
|
93
|
+
async function importJsConfig(path) {
|
|
102
94
|
const fileUrl = pathToFileURL(path);
|
|
103
95
|
fileUrl.searchParams.set("cache", Date.now().toString());
|
|
104
96
|
const { default: config } = await import(fileUrl.href).catch((err) => {
|
|
@@ -107,16 +99,35 @@ async function loadJsConfig(path) {
|
|
|
107
99
|
throw err;
|
|
108
100
|
});
|
|
109
101
|
if (config === void 0) throw new Error("Configuration file has no default export.");
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
102
|
+
return config;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Load and validate a standard oxfmt JS/TS config file.
|
|
106
|
+
* The default export must be a plain object containing oxfmt options.
|
|
107
|
+
*
|
|
108
|
+
* @param path - Absolute path to the JavaScript/TypeScript config file
|
|
109
|
+
* @returns Config object
|
|
110
|
+
*/
|
|
111
|
+
async function loadJsConfig(path) {
|
|
112
|
+
const config = await importJsConfig(path);
|
|
117
113
|
if (!isObject(config)) throw new Error("Configuration file must have a default export that is an object.");
|
|
118
114
|
return config;
|
|
119
115
|
}
|
|
116
|
+
const VITE_OXFMT_CONFIG_FIELD = "fmt";
|
|
117
|
+
/**
|
|
118
|
+
* Load a Vite+ config file (`vite.config.ts`) and extract the `.fmt` field.
|
|
119
|
+
*
|
|
120
|
+
* @param path - Absolute path to the Vite config file
|
|
121
|
+
* @returns Config object from `.fmt` field, or `null` to signal "skip"
|
|
122
|
+
*/
|
|
123
|
+
async function loadVitePlusConfig(path) {
|
|
124
|
+
const config = await importJsConfig(path);
|
|
125
|
+
if (!isObject(config)) return null;
|
|
126
|
+
const fmtConfig = config[VITE_OXFMT_CONFIG_FIELD];
|
|
127
|
+
if (fmtConfig === void 0) return null;
|
|
128
|
+
if (!isObject(fmtConfig)) throw new Error(`The \`${VITE_OXFMT_CONFIG_FIELD}\` field in the default export must be an object.`);
|
|
129
|
+
return fmtConfig;
|
|
130
|
+
}
|
|
120
131
|
//#endregion
|
|
121
132
|
//#region src-js/cli.ts
|
|
122
133
|
(async () => {
|
|
@@ -124,13 +135,13 @@ async function loadJsConfig(path) {
|
|
|
124
135
|
if (!process.stdout.isTTY) process.stdout._handle?.setBlocking?.(true);
|
|
125
136
|
if (!process.stdin.isTTY) process.stdin._handle?.setBlocking?.(true);
|
|
126
137
|
if (args.includes("--lsp")) process.stdout.write = process.stderr.write.bind(process.stderr);
|
|
127
|
-
const [mode, exitCode] = await runCli(args, loadJsConfig, initExternalFormatter, formatFile, formatEmbeddedCode, formatEmbeddedDoc, sortTailwindClasses);
|
|
138
|
+
const [mode, exitCode] = await runCli(args, process.env.VP_VERSION ? loadVitePlusConfig : loadJsConfig, initExternalFormatter, formatFile, formatEmbeddedCode, formatEmbeddedDoc, sortTailwindClasses);
|
|
128
139
|
if (mode === "init") {
|
|
129
140
|
await import("./init-BbKOMZ57.js").then((m) => m.runInit());
|
|
130
141
|
return;
|
|
131
142
|
}
|
|
132
143
|
if (mode === "migrate:prettier") {
|
|
133
|
-
await import("./migrate-prettier-
|
|
144
|
+
await import("./migrate-prettier-B19hw9Dn.js").then((m) => m.runMigratePrettier());
|
|
134
145
|
return;
|
|
135
146
|
}
|
|
136
147
|
if (mode === "migrate:biome") {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as __toESM, t as __commonJSMin } from "./chunk-DSjvVL_1-
|
|
2
|
-
import { n as loadIfExists, r as maybeResolve, t as expiringMap } from "./resolve-pWjAK-4f-
|
|
3
|
-
import { i as visit, n as cacheForDirs, r as spliceChangesIntoString } from "./utils-D8dQkKEd-
|
|
4
|
-
import { a as sortClasses, i as sortClassList, n as error, o as warn, r as getTailwindConfig$1 } from "./sorter-BZkvDMjt-
|
|
5
|
-
import { parsers as
|
|
6
|
-
import { parsers as ra, t as babel_exports } from "./babel-
|
|
7
|
-
import { parsers as en, t as postcss_exports } from "./postcss-
|
|
8
|
-
import index_exports from "./prettier-
|
|
1
|
+
import { a as __toESM, t as __commonJSMin } from "./chunk-DSjvVL_1-CHQFAj82.js";
|
|
2
|
+
import { n as loadIfExists, r as maybeResolve, t as expiringMap } from "./resolve-pWjAK-4f-Uu3Cl5SX.js";
|
|
3
|
+
import { i as visit, n as cacheForDirs, r as spliceChangesIntoString } from "./utils-D8dQkKEd-BAc2jbyI.js";
|
|
4
|
+
import { a as sortClasses, i as sortClassList, n as error, o as warn, r as getTailwindConfig$1 } from "./sorter-BZkvDMjt-ChoLEMxn.js";
|
|
5
|
+
import { parsers as fn } from "./angular-Aph8b0ut.js";
|
|
6
|
+
import { parsers as ra, t as babel_exports } from "./babel-9g4Z1xEA.js";
|
|
7
|
+
import { parsers as en, t as postcss_exports } from "./postcss-CBTRJb4w.js";
|
|
8
|
+
import index_exports from "./prettier-CU6WrYtk.js";
|
|
9
9
|
import * as path from "node:path";
|
|
10
10
|
import { isAbsolute } from "path";
|
|
11
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.
|
|
11
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.2/node_modules/prettier-plugin-tailwindcss/dist/index.mjs
|
|
12
12
|
var require_isarray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
13
13
|
var toString = {}.toString;
|
|
14
14
|
module.exports = Array.isArray || function(arr) {
|
|
@@ -418,7 +418,7 @@ function defineTransform(opts) {
|
|
|
418
418
|
const ESCAPE_SEQUENCE_PATTERN = /\\(['"\\nrtbfv0-7xuU])/g;
|
|
419
419
|
function tryParseAngularAttribute(value, env) {
|
|
420
420
|
try {
|
|
421
|
-
return
|
|
421
|
+
return fn.__ng_directive.parse(value, env.options);
|
|
422
422
|
} catch (err) {
|
|
423
423
|
console.warn("prettier-plugin-tailwindcss: Unable to parse angular directive");
|
|
424
424
|
console.warn(err);
|
|
@@ -1047,7 +1047,7 @@ const { parsers, printers } = createPlugin([
|
|
|
1047
1047
|
staticAttrs: ["class"],
|
|
1048
1048
|
load: [{
|
|
1049
1049
|
name: "prettier/plugins/html",
|
|
1050
|
-
importer: () => import("./html-
|
|
1050
|
+
importer: () => import("./html-B2VMTsz7.js")
|
|
1051
1051
|
}],
|
|
1052
1052
|
compatible: ["prettier-plugin-organize-attributes"],
|
|
1053
1053
|
parsers: {
|
|
@@ -1062,7 +1062,7 @@ const { parsers, printers } = createPlugin([
|
|
|
1062
1062
|
staticAttrs: ["class"],
|
|
1063
1063
|
load: [{
|
|
1064
1064
|
name: "prettier/plugins/glimmer",
|
|
1065
|
-
importer: () => import("./glimmer-
|
|
1065
|
+
importer: () => import("./glimmer-C693tJkh.js")
|
|
1066
1066
|
}],
|
|
1067
1067
|
parsers: { glimmer: {} },
|
|
1068
1068
|
transform: transformGlimmer
|
|
@@ -1094,19 +1094,19 @@ const { parsers, printers } = createPlugin([
|
|
|
1094
1094
|
__js_expression: { load: [babel_exports] },
|
|
1095
1095
|
typescript: { load: [{
|
|
1096
1096
|
name: "prettier/plugins/typescript",
|
|
1097
|
-
importer: () => import("./typescript-
|
|
1097
|
+
importer: () => import("./typescript-4s6b9-t0.js")
|
|
1098
1098
|
}] },
|
|
1099
1099
|
meriyah: { load: [{
|
|
1100
1100
|
name: "prettier/plugins/meriyah",
|
|
1101
|
-
importer: () => import("./meriyah-
|
|
1101
|
+
importer: () => import("./meriyah-zZMvz4-D.js")
|
|
1102
1102
|
}] },
|
|
1103
1103
|
acorn: { load: [{
|
|
1104
1104
|
name: "prettier/plugins/acorn",
|
|
1105
|
-
importer: () => import("./acorn-
|
|
1105
|
+
importer: () => import("./acorn-DazAYFEC.js")
|
|
1106
1106
|
}] },
|
|
1107
1107
|
flow: { load: [{
|
|
1108
1108
|
name: "prettier/plugins/flow",
|
|
1109
|
-
importer: () => import("./flow-
|
|
1109
|
+
importer: () => import("./flow-QdRUnlQt.js")
|
|
1110
1110
|
}] },
|
|
1111
1111
|
oxc: { load: [{
|
|
1112
1112
|
name: "@prettier/plugin-oxc",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.2/node_modules/prettier/plugins/estree.mjs
|
|
2
2
|
var Ba = Object.defineProperty;
|
|
3
3
|
var jn = (e, t) => {
|
|
4
4
|
for (var r in t) Ba(e, r, {
|
|
@@ -3541,7 +3541,7 @@ function Ke(e, t, r, n, s) {
|
|
|
3541
3541
|
u,
|
|
3542
3542
|
"(",
|
|
3543
3543
|
m([f, ...D]),
|
|
3544
|
-
P(!Ti(i) && ie(t, "all") ? "," : ""),
|
|
3544
|
+
P(!Ti(i) && ie(t, "all") && e.root.type !== "NGRoot" ? "," : ""),
|
|
3545
3545
|
f,
|
|
3546
3546
|
")"
|
|
3547
3547
|
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.2/node_modules/prettier/plugins/flow.mjs
|
|
2
2
|
var QA0 = Object.create;
|
|
3
3
|
var Vj = Object.defineProperty;
|
|
4
4
|
var ZA0 = Object.getOwnPropertyDescriptor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.2/node_modules/prettier/plugins/glimmer.mjs
|
|
2
2
|
var Un = Object.defineProperty;
|
|
3
3
|
var Oe = (e, t) => {
|
|
4
4
|
for (var r in t) Un(e, r, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.2/node_modules/prettier/plugins/graphql.mjs
|
|
2
2
|
var pt = Object.defineProperty;
|
|
3
3
|
var de = (e, t) => {
|
|
4
4
|
for (var n in t) pt(e, n, {
|