oxfmt 0.52.0 → 0.53.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/dist/{apis-Cc9jzUH4.js → apis-DOCQy_NG.js} +4 -4
- package/dist/{bindings-BJw0GhQr.js → bindings-ChKdN0o7.js} +31 -30
- package/dist/chunk-DSjvVL_1-CrjveNIv.js +36 -0
- package/dist/cli-worker.js +1 -1
- package/dist/cli.js +2 -2
- package/dist/{dist-CJyFMFm2.js → dist-Cb-CB0nt.js} +5 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{jiti-Bb1dT6Cw-B_5IaZk7.js → jiti-Bb1dT6Cw-bfahw2Ut.js} +2 -2
- package/dist/{migrate-prettier-CotsZUFl.js → migrate-prettier-DWPaoKDl.js} +1 -1
- package/dist/{plugin-C4twtOn4.js → plugin-DOvWpprN.js} +3 -3
- package/dist/{prettier-Cy-lZk4k.js → prettier-CttUn4xj.js} +2 -2
- package/dist/{sorter-BZkvDMjt-C3eOnP5z.js → sorter-BZkvDMjt-X7PZZf-k.js} +8 -42
- package/dist/{sorter-CHFUGfz-.js → sorter-o4mwRTof.js} +1 -1
- package/dist/{v3-D-mr2VVh-BXhnMySQ.js → v3-D-mr2VVh-BYLPgMY0.js} +4 -3
- package/dist/{v4-C-HWEQJm-CvgekpKf.js → v4-C-HWEQJm-DbK_mluY.js} +4 -3
- package/dist/{yaml-D3PpfZBy.js → yaml-BT3ntp8h.js} +2 -2
- package/package.json +20 -20
|
@@ -13,7 +13,7 @@ async function loadCached(key, loader) {
|
|
|
13
13
|
}
|
|
14
14
|
async function loadPrettier() {
|
|
15
15
|
return loadCached("prettier", async () => {
|
|
16
|
-
const prettier = await import("./prettier-
|
|
16
|
+
const prettier = await import("./prettier-CttUn4xj.js");
|
|
17
17
|
const { formatOptionsHiddenDefaults } = prettier.__internal;
|
|
18
18
|
formatOptionsHiddenDefaults.parentParser = null;
|
|
19
19
|
formatOptionsHiddenDefaults.__onHtmlRoot = null;
|
|
@@ -84,7 +84,7 @@ async function formatEmbeddedDoc({ texts, options }) {
|
|
|
84
84
|
* Option mapping (sortTailwindcss.xxx → tailwindXxx) is also done in Rust side.
|
|
85
85
|
*/
|
|
86
86
|
async function setupTailwindPlugin(options) {
|
|
87
|
-
CACHES.tailwindPlugin ??= await loadCached("tailwindPlugin", () => import("./dist-
|
|
87
|
+
CACHES.tailwindPlugin ??= await loadCached("tailwindPlugin", () => import("./dist-Cb-CB0nt.js"));
|
|
88
88
|
options.plugins ??= [];
|
|
89
89
|
options.plugins.push(CACHES.tailwindPlugin);
|
|
90
90
|
}
|
|
@@ -94,7 +94,7 @@ async function setupTailwindPlugin(options) {
|
|
|
94
94
|
* @returns Array of sorted class strings (same order/length as input)
|
|
95
95
|
*/
|
|
96
96
|
async function sortTailwindClasses({ classes, options }) {
|
|
97
|
-
CACHES.tailwindSorter ??= await loadCached("tailwindSorter", () => import("./sorter-
|
|
97
|
+
CACHES.tailwindSorter ??= await loadCached("tailwindSorter", () => import("./sorter-o4mwRTof.js"));
|
|
98
98
|
const { createSorter } = CACHES.tailwindSorter;
|
|
99
99
|
return (await createSorter({
|
|
100
100
|
filepath: options.filepath,
|
|
@@ -108,7 +108,7 @@ async function sortTailwindClasses({ classes, options }) {
|
|
|
108
108
|
* Load prettier-plugin-svelte to provide the `svelte` parser.
|
|
109
109
|
*/
|
|
110
110
|
async function setupSveltePlugin(options) {
|
|
111
|
-
CACHES.sveltePlugin ??= await loadCached("sveltePlugin", async () => await import("./plugin-
|
|
111
|
+
CACHES.sveltePlugin ??= await loadCached("sveltePlugin", async () => await import("./plugin-DOvWpprN.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)));
|
|
112
112
|
options.plugins ??= [];
|
|
113
113
|
options.plugins.push(CACHES.sveltePlugin);
|
|
114
114
|
}
|
|
@@ -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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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.53.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);
|
|
@@ -427,20 +427,21 @@ function requireNative() {
|
|
|
427
427
|
else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
|
|
428
428
|
}
|
|
429
429
|
nativeBinding = requireNative();
|
|
430
|
-
|
|
430
|
+
const forceWasi = process.env.NAPI_RS_FORCE_WASI === "true" || process.env.NAPI_RS_FORCE_WASI === "error";
|
|
431
|
+
if (!nativeBinding || forceWasi) {
|
|
431
432
|
let wasiBinding = null;
|
|
432
433
|
let wasiBindingError = null;
|
|
433
434
|
try {
|
|
434
435
|
wasiBinding = require("./oxfmt.wasi.cjs");
|
|
435
436
|
nativeBinding = wasiBinding;
|
|
436
437
|
} catch (err) {
|
|
437
|
-
if (
|
|
438
|
+
if (forceWasi) wasiBindingError = err;
|
|
438
439
|
}
|
|
439
|
-
if (!nativeBinding ||
|
|
440
|
+
if (!nativeBinding || forceWasi) try {
|
|
440
441
|
wasiBinding = require("@oxfmt/binding-wasm32-wasi");
|
|
441
442
|
nativeBinding = wasiBinding;
|
|
442
443
|
} catch (err) {
|
|
443
|
-
if (
|
|
444
|
+
if (forceWasi) {
|
|
444
445
|
if (!wasiBindingError) wasiBindingError = err;
|
|
445
446
|
else wasiBindingError.cause = err;
|
|
446
447
|
loadErrors.push(err);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_961279539c8b58c29c93389b521be834/node_modules/prettier-plugin-tailwindcss/dist/chunk-DSjvVL_1.mjs
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
10
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
|
+
var __exportAll = (all, symbols) => {
|
|
12
|
+
let target = {};
|
|
13
|
+
for (var name in all) __defProp(target, name, {
|
|
14
|
+
get: all[name],
|
|
15
|
+
enumerable: true
|
|
16
|
+
});
|
|
17
|
+
if (symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
22
|
+
key = keys[i];
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
24
|
+
get: ((k) => from[k]).bind(null, key),
|
|
25
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return to;
|
|
29
|
+
};
|
|
30
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
31
|
+
value: mod,
|
|
32
|
+
enumerable: true
|
|
33
|
+
}) : target, mod));
|
|
34
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
35
|
+
//#endregion
|
|
36
|
+
export { __toESM as a, __require as i, __esmMin as n, __exportAll as r, __commonJSMin as t };
|
package/dist/cli-worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-
|
|
1
|
+
import { i as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-DOCQy_NG.js";
|
|
2
2
|
export { formatEmbeddedCode, formatEmbeddedDoc, formatFile, sortTailwindClasses };
|
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as runCli } from "./bindings-
|
|
1
|
+
import { r as runCli } from "./bindings-ChKdN0o7.js";
|
|
2
2
|
import Tinypool from "tinypool";
|
|
3
3
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
4
4
|
import { extname } from "node:path";
|
|
@@ -179,7 +179,7 @@ async function loadVitePlusConfig(path) {
|
|
|
179
179
|
return;
|
|
180
180
|
}
|
|
181
181
|
if (mode === "migrate:prettier") {
|
|
182
|
-
await import("./migrate-prettier-
|
|
182
|
+
await import("./migrate-prettier-DWPaoKDl.js").then((m) => m.runMigratePrettier());
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
185
|
if (mode === "migrate:biome") {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.js";
|
|
2
2
|
import { n as init_babel, parsers as ra, t as babel_exports } from "./babel-DjR61Wf3.js";
|
|
3
|
-
import index_exports, { t as init_prettier } from "./prettier-
|
|
4
|
-
import { a as
|
|
3
|
+
import index_exports, { t as init_prettier } from "./prettier-CttUn4xj.js";
|
|
4
|
+
import { a as __toESM$1, t as __commonJSMin } from "./chunk-DSjvVL_1-CrjveNIv.js";
|
|
5
|
+
import { a as sortClasses, c as cacheForDirs, d as expiringMap, f as loadIfExists, i as sortClassList, l as spliceChangesIntoString, n as error, o as warn, p as maybeResolve, r as getTailwindConfig$1, u as visit } from "./sorter-BZkvDMjt-X7PZZf-k.js";
|
|
5
6
|
import { parsers as fn, t as init_angular } from "./angular-4Mc0TmPv.js";
|
|
6
7
|
import { n as postcss_exports, parsers as en, t as init_postcss } from "./postcss-BFLfznNY.js";
|
|
7
8
|
import * as path from "node:path";
|
|
8
9
|
import { isAbsolute } from "path";
|
|
9
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.
|
|
10
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_961279539c8b58c29c93389b521be834/node_modules/prettier-plugin-tailwindcss/dist/index.mjs
|
|
10
11
|
init_angular();
|
|
11
12
|
init_babel();
|
|
12
13
|
init_postcss();
|
|
@@ -1159,7 +1160,7 @@ const { parsers, printers } = createPlugin([
|
|
|
1159
1160
|
staticAttrs: ["class"],
|
|
1160
1161
|
load: [{
|
|
1161
1162
|
name: "prettier-plugin-svelte",
|
|
1162
|
-
importer: () => import("./plugin-
|
|
1163
|
+
importer: () => import("./plugin-DOvWpprN.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))
|
|
1163
1164
|
}],
|
|
1164
1165
|
parsers: { svelte: {} },
|
|
1165
1166
|
printers: { "svelte-ast": {} },
|
package/dist/index.d.ts
CHANGED
|
@@ -842,4 +842,4 @@ declare function format(fileName: string, sourceText: string, options?: FormatCo
|
|
|
842
842
|
*/
|
|
843
843
|
declare function jsTextToDoc(sourceExt: string, sourceText: string, oxfmtPluginOptionsJson: string, parentContext: string): Promise<string | null>;
|
|
844
844
|
//#endregion
|
|
845
|
-
export { ArrowParensConfig, CustomGroupItemConfig, EmbeddedLanguageFormattingConfig, EndOfLineConfig, FormatConfig, FormatOptions, GlobSet, HtmlWhitespaceSensitivityConfig, JsdocConfig, JsdocUserConfig, NewlinesBetweenMarker, ObjectWrapConfig, OxfmtConfig, OxfmtOverrideConfig, Oxfmtrc, ProseWrapConfig, QuotePropsConfig, SortGroupItemConfig, SortImportsConfig, SortImportsOptions, SortImportsUserConfig, SortOrderConfig, SortPackageJsonConfig, SortPackageJsonOptions, SortPackageJsonUserConfig, SortTailwindcssConfig, SortTailwindcssOptions, SortTailwindcssUserConfig, SvelteConfig, SvelteUserConfig, TailwindcssOptions, TrailingCommaConfig, defineConfig, format, jsTextToDoc };
|
|
845
|
+
export { type ArrowParensConfig, type CustomGroupItemConfig, type EmbeddedLanguageFormattingConfig, type EndOfLineConfig, type FormatConfig, FormatOptions, type GlobSet, type HtmlWhitespaceSensitivityConfig, type JsdocConfig, type JsdocUserConfig, type NewlinesBetweenMarker, type ObjectWrapConfig, OxfmtConfig, type OxfmtOverrideConfig, type Oxfmtrc, type ProseWrapConfig, type QuotePropsConfig, type SortGroupItemConfig, type SortImportsConfig, SortImportsOptions, type SortImportsUserConfig, type SortOrderConfig, type SortPackageJsonConfig, SortPackageJsonOptions, type SortPackageJsonUserConfig, type SortTailwindcssConfig, SortTailwindcssOptions, type SortTailwindcssUserConfig, type SvelteConfig, type SvelteUserConfig, TailwindcssOptions, type TrailingCommaConfig, defineConfig, format, jsTextToDoc };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as jsTextToDoc$1, t as format$1 } from "./bindings-
|
|
2
|
-
import { i as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-
|
|
1
|
+
import { n as jsTextToDoc$1, t as format$1 } from "./bindings-ChKdN0o7.js";
|
|
2
|
+
import { i as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-DOCQy_NG.js";
|
|
3
3
|
//#region src-js/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* Define an oxfmt configuration with type inference.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __toESM, i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-CrjveNIv.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.
|
|
3
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_961279539c8b58c29c93389b521be834/node_modules/prettier-plugin-tailwindcss/dist/jiti-Bb1dT6Cw.mjs
|
|
4
4
|
var require_jiti = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
5
|
(() => {
|
|
6
6
|
var e = { "./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive": function(e) {
|
|
@@ -9,7 +9,7 @@ import { readFile } from "node:fs/promises";
|
|
|
9
9
|
async function runMigratePrettier() {
|
|
10
10
|
const cwd = process.cwd();
|
|
11
11
|
if (await hasOxfmtrcFile(cwd)) return exitWithError("Oxfmt configuration file already exists.");
|
|
12
|
-
const { resolveConfigFile, resolveConfig } = await import("./prettier-
|
|
12
|
+
const { resolveConfigFile, resolveConfig } = await import("./prettier-CttUn4xj.js");
|
|
13
13
|
const prettierConfigPath = await resolveConfigFile(join(cwd, "dummy.js"));
|
|
14
14
|
if (!prettierConfigPath) {
|
|
15
15
|
console.log("No Prettier configuration file found.");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./chunk-CNf5ZN-e.js";
|
|
2
2
|
import { n as init_babel, t as babel_exports } from "./babel-DjR61Wf3.js";
|
|
3
|
-
import { n as prettier_exports, t as init_prettier } from "./prettier-
|
|
4
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-svelte@4.0.1_prettier@3.8.3_svelte@5.55.
|
|
3
|
+
import { n as prettier_exports, t as init_prettier } from "./prettier-CttUn4xj.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-svelte@4.0.1_prettier@3.8.3_svelte@5.55.10_@typescript-eslint+types@8.60.0_/node_modules/prettier-plugin-svelte/plugin.js
|
|
5
5
|
var require_plugin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
var prettierPluginBabel = (init_babel(), __toCommonJS(babel_exports));
|
|
@@ -1906,7 +1906,7 @@ var require_plugin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1906
1906
|
let _parse = compiler.parse;
|
|
1907
1907
|
if (options.svelte5CompilerPath) try {
|
|
1908
1908
|
_parse = (yield Promise.resolve().then(function() {
|
|
1909
|
-
return
|
|
1909
|
+
return /*#__PURE__*/ _interopNamespace(__require(options.svelte5CompilerPath));
|
|
1910
1910
|
})).parse;
|
|
1911
1911
|
} catch (e) {
|
|
1912
1912
|
console.warn(`Failed to load Svelte 5 compiler from ${options.svelte5CompilerPath}`);
|
|
@@ -2402,7 +2402,7 @@ async function loadConfigFromPackageYaml(file) {
|
|
|
2402
2402
|
}
|
|
2403
2403
|
async function loadYaml(file) {
|
|
2404
2404
|
const content = await read_file_default(file);
|
|
2405
|
-
if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-
|
|
2405
|
+
if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-BT3ntp8h.js"));
|
|
2406
2406
|
try {
|
|
2407
2407
|
return parseYaml(content);
|
|
2408
2408
|
} catch (error) {
|
|
@@ -15486,7 +15486,7 @@ ${codeblock}`, options8);
|
|
|
15486
15486
|
parsers: ["typescript"]
|
|
15487
15487
|
},
|
|
15488
15488
|
{
|
|
15489
|
-
importPlugin: () => import("./yaml-
|
|
15489
|
+
importPlugin: () => import("./yaml-BT3ntp8h.js"),
|
|
15490
15490
|
parsers: ["yaml"],
|
|
15491
15491
|
printers: ["yaml"]
|
|
15492
15492
|
}
|
|
@@ -1,44 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-CrjveNIv.js";
|
|
2
2
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
import { dirname, resolve } from "path";
|
|
5
5
|
import { readdirSync, statSync } from "fs";
|
|
6
6
|
import fs from "node:fs";
|
|
7
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.
|
|
8
|
-
var __create = Object.create;
|
|
9
|
-
var __defProp = Object.defineProperty;
|
|
10
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
12
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
15
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
16
|
-
var __exportAll = (all, symbols) => {
|
|
17
|
-
let target = {};
|
|
18
|
-
for (var name in all) __defProp(target, name, {
|
|
19
|
-
get: all[name],
|
|
20
|
-
enumerable: true
|
|
21
|
-
});
|
|
22
|
-
if (symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
23
|
-
return target;
|
|
24
|
-
};
|
|
25
|
-
var __copyProps = (to, from, except, desc) => {
|
|
26
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
27
|
-
key = keys[i];
|
|
28
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
29
|
-
get: ((k) => from[k]).bind(null, key),
|
|
30
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
return to;
|
|
34
|
-
};
|
|
35
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
36
|
-
value: mod,
|
|
37
|
-
enumerable: true
|
|
38
|
-
}) : target, mod));
|
|
39
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_b20d8b14d002a94b1de20f5a14f79b1e/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
|
|
7
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_961279539c8b58c29c93389b521be834/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
|
|
42
8
|
function expiringMap(duration) {
|
|
43
9
|
let map = /* @__PURE__ */ new Map();
|
|
44
10
|
return {
|
|
@@ -4232,7 +4198,7 @@ function resolveCssFrom(base, id) {
|
|
|
4232
4198
|
return cssResolver.resolveSync({}, base, id) || id;
|
|
4233
4199
|
}
|
|
4234
4200
|
//#endregion
|
|
4235
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.
|
|
4201
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_961279539c8b58c29c93389b521be834/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs
|
|
4236
4202
|
function isNodeLike(value) {
|
|
4237
4203
|
return typeof (value === null || value === void 0 ? void 0 : value.type) === "string";
|
|
4238
4204
|
}
|
|
@@ -4311,7 +4277,7 @@ function cacheForDirs(cache, inputDir, value, targetDir, makeKey = (dir) => dir)
|
|
|
4311
4277
|
}
|
|
4312
4278
|
}
|
|
4313
4279
|
//#endregion
|
|
4314
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.
|
|
4280
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_961279539c8b58c29c93389b521be834/node_modules/prettier-plugin-tailwindcss/dist/sorter-BZkvDMjt.mjs
|
|
4315
4281
|
let seen = /* @__PURE__ */ new Set();
|
|
4316
4282
|
function warn(key, arg, ...args) {
|
|
4317
4283
|
if (seen.has(key)) return;
|
|
@@ -4410,14 +4376,14 @@ async function getTailwindConfig(options) {
|
|
|
4410
4376
|
if (!stylesheet && !(mod === null || mod === void 0 ? void 0 : mod.__unstable__loadDesignSystem)) jsConfig = jsConfig ?? findClosestJsConfig(inputDir);
|
|
4411
4377
|
if (jsConfig) {
|
|
4412
4378
|
if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
|
|
4413
|
-
const { loadV3 } = await import("./v3-D-mr2VVh-
|
|
4379
|
+
const { loadV3 } = await import("./v3-D-mr2VVh-BYLPgMY0.js");
|
|
4414
4380
|
return loadV3(pkgDir, jsConfig);
|
|
4415
4381
|
});
|
|
4416
4382
|
error("explicit-stylesheet-and-config-together", base, `You have specified a Tailwind CSS stylesheet and a Tailwind CSS config at the same time. Use stylesheetPath unless you are using v3. Preferring the stylesheet.`);
|
|
4417
4383
|
}
|
|
4418
4384
|
if (mod && !mod.__unstable__loadDesignSystem) {
|
|
4419
4385
|
if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
|
|
4420
|
-
const { loadV3 } = await import("./v3-D-mr2VVh-
|
|
4386
|
+
const { loadV3 } = await import("./v3-D-mr2VVh-BYLPgMY0.js");
|
|
4421
4387
|
return loadV3(pkgDir, jsConfig);
|
|
4422
4388
|
});
|
|
4423
4389
|
mod = null;
|
|
@@ -4425,7 +4391,7 @@ async function getTailwindConfig(options) {
|
|
|
4425
4391
|
}
|
|
4426
4392
|
if (mod && mod.__unstable__loadDesignSystem && pkgDir) stylesheet ?? (stylesheet = `${pkgDir}/theme.css`);
|
|
4427
4393
|
return pathToApiMap.remember(`${pkgDir}:${stylesheet}`, async () => {
|
|
4428
|
-
const { loadV4 } = await import("./v4-C-HWEQJm-
|
|
4394
|
+
const { loadV4 } = await import("./v4-C-HWEQJm-DbK_mluY.js");
|
|
4429
4395
|
return loadV4(mod, stylesheet);
|
|
4430
4396
|
});
|
|
4431
4397
|
}
|
|
@@ -4516,4 +4482,4 @@ async function createSorter(opts) {
|
|
|
4516
4482
|
};
|
|
4517
4483
|
}
|
|
4518
4484
|
//#endregion
|
|
4519
|
-
export {
|
|
4485
|
+
export { sortClasses as a, cacheForDirs as c, expiringMap as d, loadIfExists as f, resolveJsFrom as h, sortClassList as i, spliceChangesIntoString as l, resolveCssFrom as m, error as n, warn as o, maybeResolve as p, getTailwindConfig as r, bigSign as s, createSorter as t, visit as u };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-
|
|
1
|
+
import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-X7PZZf-k.js";
|
|
2
2
|
export { createSorter, getTailwindConfig };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as __toESM, i as __require, n as __esmMin, t as __commonJSMin } from "./chunk-DSjvVL_1-CrjveNIv.js";
|
|
2
|
+
import { s as bigSign } from "./sorter-BZkvDMjt-X7PZZf-k.js";
|
|
3
|
+
import { t as createJiti } from "./jiti-Bb1dT6Cw-bfahw2Ut.js";
|
|
3
4
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
4
5
|
import * as path from "node:path";
|
|
5
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.
|
|
6
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_961279539c8b58c29c93389b521be834/node_modules/prettier-plugin-tailwindcss/dist/v3-D-mr2VVh.mjs
|
|
6
7
|
var getFilename, __filename;
|
|
7
8
|
var init_esm_shims = __esmMin((() => {
|
|
8
9
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as __exportAll } from "./chunk-DSjvVL_1-CrjveNIv.js";
|
|
2
|
+
import { h as resolveJsFrom, m as resolveCssFrom } from "./sorter-BZkvDMjt-X7PZZf-k.js";
|
|
3
|
+
import { t as createJiti } from "./jiti-Bb1dT6Cw-bfahw2Ut.js";
|
|
3
4
|
import { pathToFileURL } from "node:url";
|
|
4
5
|
import * as path from "node:path";
|
|
5
6
|
import * as fs from "node:fs/promises";
|
|
6
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.
|
|
7
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_961279539c8b58c29c93389b521be834/node_modules/prettier-plugin-tailwindcss/dist/v4-C-HWEQJm.mjs
|
|
7
8
|
var l$1 = {
|
|
8
9
|
inherit: "inherit",
|
|
9
10
|
current: "currentcolor",
|
|
@@ -2973,11 +2973,11 @@ ${e.indent}`) : C[0] === `
|
|
|
2973
2973
|
let { anchors: r, maxAliasCount: s } = n, i = r.get(this.source);
|
|
2974
2974
|
if (!i || i.res === void 0) {
|
|
2975
2975
|
let o = "This should not happen: Alias anchor was not resolved?";
|
|
2976
|
-
throw this.cstNode ? new p.YAMLReferenceError(this.cstNode, o) : new ReferenceError(o);
|
|
2976
|
+
throw this.cstNode ? new p.YAMLReferenceError(this.cstNode, o) : /* @__PURE__ */ new ReferenceError(o);
|
|
2977
2977
|
}
|
|
2978
2978
|
if (s >= 0 && (i.count += 1, i.aliasCount === 0 && (i.aliasCount = xt(this.source, r)), i.count * i.aliasCount > s)) {
|
|
2979
2979
|
let o = "Excessive alias count indicates a resource exhaustion attack";
|
|
2980
|
-
throw this.cstNode ? new p.YAMLReferenceError(this.cstNode, o) : new ReferenceError(o);
|
|
2980
|
+
throw this.cstNode ? new p.YAMLReferenceError(this.cstNode, o) : /* @__PURE__ */ new ReferenceError(o);
|
|
2981
2981
|
}
|
|
2982
2982
|
return i.res;
|
|
2983
2983
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxfmt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.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.
|
|
90
|
-
"@oxfmt/binding-android-arm64": "0.
|
|
91
|
-
"@oxfmt/binding-win32-arm64-msvc": "0.
|
|
92
|
-
"@oxfmt/binding-linux-arm64-gnu": "0.
|
|
93
|
-
"@oxfmt/binding-linux-arm64-musl": "0.
|
|
94
|
-
"@oxfmt/binding-openharmony-arm64": "0.
|
|
95
|
-
"@oxfmt/binding-android-arm-eabi": "0.
|
|
96
|
-
"@oxfmt/binding-linux-arm-gnueabihf": "0.
|
|
97
|
-
"@oxfmt/binding-linux-arm-musleabihf": "0.
|
|
98
|
-
"@oxfmt/binding-win32-ia32-msvc": "0.
|
|
99
|
-
"@oxfmt/binding-linux-ppc64-gnu": "0.
|
|
100
|
-
"@oxfmt/binding-linux-riscv64-gnu": "0.
|
|
101
|
-
"@oxfmt/binding-linux-riscv64-musl": "0.
|
|
102
|
-
"@oxfmt/binding-linux-s390x-gnu": "0.
|
|
103
|
-
"@oxfmt/binding-darwin-x64": "0.
|
|
104
|
-
"@oxfmt/binding-win32-x64-msvc": "0.
|
|
105
|
-
"@oxfmt/binding-freebsd-x64": "0.
|
|
106
|
-
"@oxfmt/binding-linux-x64-gnu": "0.
|
|
107
|
-
"@oxfmt/binding-linux-x64-musl": "0.
|
|
89
|
+
"@oxfmt/binding-darwin-arm64": "0.53.0",
|
|
90
|
+
"@oxfmt/binding-android-arm64": "0.53.0",
|
|
91
|
+
"@oxfmt/binding-win32-arm64-msvc": "0.53.0",
|
|
92
|
+
"@oxfmt/binding-linux-arm64-gnu": "0.53.0",
|
|
93
|
+
"@oxfmt/binding-linux-arm64-musl": "0.53.0",
|
|
94
|
+
"@oxfmt/binding-openharmony-arm64": "0.53.0",
|
|
95
|
+
"@oxfmt/binding-android-arm-eabi": "0.53.0",
|
|
96
|
+
"@oxfmt/binding-linux-arm-gnueabihf": "0.53.0",
|
|
97
|
+
"@oxfmt/binding-linux-arm-musleabihf": "0.53.0",
|
|
98
|
+
"@oxfmt/binding-win32-ia32-msvc": "0.53.0",
|
|
99
|
+
"@oxfmt/binding-linux-ppc64-gnu": "0.53.0",
|
|
100
|
+
"@oxfmt/binding-linux-riscv64-gnu": "0.53.0",
|
|
101
|
+
"@oxfmt/binding-linux-riscv64-musl": "0.53.0",
|
|
102
|
+
"@oxfmt/binding-linux-s390x-gnu": "0.53.0",
|
|
103
|
+
"@oxfmt/binding-darwin-x64": "0.53.0",
|
|
104
|
+
"@oxfmt/binding-win32-x64-msvc": "0.53.0",
|
|
105
|
+
"@oxfmt/binding-freebsd-x64": "0.53.0",
|
|
106
|
+
"@oxfmt/binding-linux-x64-gnu": "0.53.0",
|
|
107
|
+
"@oxfmt/binding-linux-x64-musl": "0.53.0"
|
|
108
108
|
}
|
|
109
109
|
}
|