oxfmt 0.53.0 → 0.55.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/README.md +2 -0
- package/configuration_schema.json +97 -97
- package/dist/{acorn-C-l7ouWN.js → acorn-Cvoi4PWR.js} +2 -2
- package/dist/{angular-4Mc0TmPv.js → angular-DPcoLhcH.js} +2 -2
- package/dist/{apis-DOCQy_NG.js → apis-DkdEeIjV.js} +5 -5
- package/dist/{babel-DjR61Wf3.js → babel-CVxlCcDg.js} +2 -2
- package/dist/{bindings-ChKdN0o7.js → bindings-NuElWCOb.js} +46 -35
- package/dist/{chunk-DSjvVL_1-CrjveNIv.js → chunk-DSjvVL_1-Q4hfmPG1.js} +1 -1
- package/dist/cli-worker.d.ts +2 -2
- package/dist/cli-worker.js +1 -1
- package/dist/cli.js +15 -23
- package/dist/{dist-Cb-CB0nt.js → dist-DivOnw62.js} +15 -15
- package/dist/{estree-DHQPBKqf.js → estree-CkMEq_Zb.js} +2 -2
- package/dist/{flow-Cz3mJAtC.js → flow-BXs7AWV-.js} +2 -2
- package/dist/{glimmer-ubhL-0tG.js → glimmer-BN5XmZ27.js} +2 -2
- package/dist/{graphql-Cl0TIiHU.js → graphql-BgY-saF-.js} +2 -2
- package/dist/{html-Cqnv8X__.js → html-vBUPNHC4.js} +2 -2
- package/dist/index.d.ts +48 -4
- package/dist/index.js +14 -11
- package/dist/{jiti-Bb1dT6Cw-bfahw2Ut.js → jiti-Bb1dT6Cw-BAogql5V.js} +2 -2
- package/dist/{markdown-Eujfu-fQ.js → markdown-Bowe09rB.js} +3 -3
- package/dist/{meriyah-DESRG6oe.js → meriyah-CLIO9qWy.js} +2 -2
- package/dist/{migrate-prettier-DWPaoKDl.js → migrate-prettier-qkEMts2A.js} +1 -1
- package/dist/napi-callbacks-Sb-usWTs.js +30 -0
- package/dist/{plugin-DOvWpprN.js → plugin-Beq25NZF.js} +24 -6
- package/dist/{postcss-BFLfznNY.js → postcss-nPoy2yt-.js} +2 -2
- package/dist/{prettier-CttUn4xj.js → prettier-D67P9sCF.js} +18 -18
- package/dist/{sorter-o4mwRTof.js → sorter-BPzPgLsP.js} +1 -1
- package/dist/{sorter-BZkvDMjt-X7PZZf-k.js → sorter-BZkvDMjt-COt95VpI.js} +7 -7
- package/dist/{typescript-lqJOqGcK.js → typescript-DgGTZjEC.js} +2 -2
- package/dist/{v3-D-mr2VVh-BYLPgMY0.js → v3-D-mr2VVh-sE8Y1ugu.js} +4 -4
- package/dist/{v4-C-HWEQJm-DbK_mluY.js → v4-C-HWEQJm-9cSRecG6.js} +4 -4
- package/dist/{yaml-BT3ntp8h.js → yaml-BStl3JdL.js} +2 -2
- package/package.json +20 -20
- /package/dist/{chunk-CNf5ZN-e.js → rolldown-runtime-CNf5ZN-e.js} +0 -0
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as __exportAll } from "./rolldown-runtime-CNf5ZN-e.js";
|
|
2
|
+
import { createRequire } from "module";
|
|
2
3
|
//#region src-js/bindings.js
|
|
4
|
+
var bindings_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
Severity: () => Severity,
|
|
6
|
+
format: () => format,
|
|
7
|
+
jsTextToDoc: () => jsTextToDoc,
|
|
8
|
+
runCli: () => runCli
|
|
9
|
+
});
|
|
3
10
|
const require = createRequire(import.meta.url);
|
|
4
11
|
new URL(".", import.meta.url).pathname;
|
|
5
|
-
const { readFileSync } = require("
|
|
12
|
+
const { readFileSync } = require("fs");
|
|
6
13
|
let nativeBinding = null;
|
|
7
14
|
const loadErrors = [];
|
|
8
15
|
const isMusl = () => {
|
|
@@ -24,7 +31,7 @@ const isMuslFromFilesystem = () => {
|
|
|
24
31
|
};
|
|
25
32
|
const isMuslFromReport = () => {
|
|
26
33
|
let report = null;
|
|
27
|
-
if (typeof process.report
|
|
34
|
+
if (process.report && typeof process.report.getReport === "function") {
|
|
28
35
|
process.report.excludeNetwork = true;
|
|
29
36
|
report = process.report.getReport();
|
|
30
37
|
}
|
|
@@ -57,7 +64,7 @@ function requireNative() {
|
|
|
57
64
|
try {
|
|
58
65
|
const binding = require("@oxfmt/binding-android-arm64");
|
|
59
66
|
const bindingPackageVersion = require("@oxfmt/binding-android-arm64/package.json").version;
|
|
60
|
-
if (bindingPackageVersion !== "0.
|
|
67
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
61
68
|
return binding;
|
|
62
69
|
} catch (e) {
|
|
63
70
|
loadErrors.push(e);
|
|
@@ -71,13 +78,13 @@ function requireNative() {
|
|
|
71
78
|
try {
|
|
72
79
|
const binding = require("@oxfmt/binding-android-arm-eabi");
|
|
73
80
|
const bindingPackageVersion = require("@oxfmt/binding-android-arm-eabi/package.json").version;
|
|
74
|
-
if (bindingPackageVersion !== "0.
|
|
81
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
75
82
|
return binding;
|
|
76
83
|
} catch (e) {
|
|
77
84
|
loadErrors.push(e);
|
|
78
85
|
}
|
|
79
86
|
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Android ${process.arch}`));
|
|
80
|
-
else if (process.platform === "win32") if (process.arch === "x64") if (process.config
|
|
87
|
+
else if (process.platform === "win32") if (process.arch === "x64") if (process.config && process.config.variables && process.config.variables.shlib_suffix === "dll.a" || process.config && process.config.variables && process.config.variables.node_target_type === "shared_library") {
|
|
81
88
|
try {
|
|
82
89
|
return require("./oxfmt.win32-x64-gnu.node");
|
|
83
90
|
} catch (e) {
|
|
@@ -86,7 +93,7 @@ function requireNative() {
|
|
|
86
93
|
try {
|
|
87
94
|
const binding = require("@oxfmt/binding-win32-x64-gnu");
|
|
88
95
|
const bindingPackageVersion = require("@oxfmt/binding-win32-x64-gnu/package.json").version;
|
|
89
|
-
if (bindingPackageVersion !== "0.
|
|
96
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
90
97
|
return binding;
|
|
91
98
|
} catch (e) {
|
|
92
99
|
loadErrors.push(e);
|
|
@@ -100,7 +107,7 @@ function requireNative() {
|
|
|
100
107
|
try {
|
|
101
108
|
const binding = require("@oxfmt/binding-win32-x64-msvc");
|
|
102
109
|
const bindingPackageVersion = require("@oxfmt/binding-win32-x64-msvc/package.json").version;
|
|
103
|
-
if (bindingPackageVersion !== "0.
|
|
110
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
104
111
|
return binding;
|
|
105
112
|
} catch (e) {
|
|
106
113
|
loadErrors.push(e);
|
|
@@ -115,7 +122,7 @@ function requireNative() {
|
|
|
115
122
|
try {
|
|
116
123
|
const binding = require("@oxfmt/binding-win32-ia32-msvc");
|
|
117
124
|
const bindingPackageVersion = require("@oxfmt/binding-win32-ia32-msvc/package.json").version;
|
|
118
|
-
if (bindingPackageVersion !== "0.
|
|
125
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
119
126
|
return binding;
|
|
120
127
|
} catch (e) {
|
|
121
128
|
loadErrors.push(e);
|
|
@@ -129,7 +136,7 @@ function requireNative() {
|
|
|
129
136
|
try {
|
|
130
137
|
const binding = require("@oxfmt/binding-win32-arm64-msvc");
|
|
131
138
|
const bindingPackageVersion = require("@oxfmt/binding-win32-arm64-msvc/package.json").version;
|
|
132
|
-
if (bindingPackageVersion !== "0.
|
|
139
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
133
140
|
return binding;
|
|
134
141
|
} catch (e) {
|
|
135
142
|
loadErrors.push(e);
|
|
@@ -144,7 +151,7 @@ function requireNative() {
|
|
|
144
151
|
try {
|
|
145
152
|
const binding = require("@oxfmt/binding-darwin-universal");
|
|
146
153
|
const bindingPackageVersion = require("@oxfmt/binding-darwin-universal/package.json").version;
|
|
147
|
-
if (bindingPackageVersion !== "0.
|
|
154
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
148
155
|
return binding;
|
|
149
156
|
} catch (e) {
|
|
150
157
|
loadErrors.push(e);
|
|
@@ -158,7 +165,7 @@ function requireNative() {
|
|
|
158
165
|
try {
|
|
159
166
|
const binding = require("@oxfmt/binding-darwin-x64");
|
|
160
167
|
const bindingPackageVersion = require("@oxfmt/binding-darwin-x64/package.json").version;
|
|
161
|
-
if (bindingPackageVersion !== "0.
|
|
168
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
162
169
|
return binding;
|
|
163
170
|
} catch (e) {
|
|
164
171
|
loadErrors.push(e);
|
|
@@ -172,7 +179,7 @@ function requireNative() {
|
|
|
172
179
|
try {
|
|
173
180
|
const binding = require("@oxfmt/binding-darwin-arm64");
|
|
174
181
|
const bindingPackageVersion = require("@oxfmt/binding-darwin-arm64/package.json").version;
|
|
175
|
-
if (bindingPackageVersion !== "0.
|
|
182
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
176
183
|
return binding;
|
|
177
184
|
} catch (e) {
|
|
178
185
|
loadErrors.push(e);
|
|
@@ -187,7 +194,7 @@ function requireNative() {
|
|
|
187
194
|
try {
|
|
188
195
|
const binding = require("@oxfmt/binding-freebsd-x64");
|
|
189
196
|
const bindingPackageVersion = require("@oxfmt/binding-freebsd-x64/package.json").version;
|
|
190
|
-
if (bindingPackageVersion !== "0.
|
|
197
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
191
198
|
return binding;
|
|
192
199
|
} catch (e) {
|
|
193
200
|
loadErrors.push(e);
|
|
@@ -201,7 +208,7 @@ function requireNative() {
|
|
|
201
208
|
try {
|
|
202
209
|
const binding = require("@oxfmt/binding-freebsd-arm64");
|
|
203
210
|
const bindingPackageVersion = require("@oxfmt/binding-freebsd-arm64/package.json").version;
|
|
204
|
-
if (bindingPackageVersion !== "0.
|
|
211
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
205
212
|
return binding;
|
|
206
213
|
} catch (e) {
|
|
207
214
|
loadErrors.push(e);
|
|
@@ -216,7 +223,7 @@ function requireNative() {
|
|
|
216
223
|
try {
|
|
217
224
|
const binding = require("@oxfmt/binding-linux-x64-musl");
|
|
218
225
|
const bindingPackageVersion = require("@oxfmt/binding-linux-x64-musl/package.json").version;
|
|
219
|
-
if (bindingPackageVersion !== "0.
|
|
226
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
220
227
|
return binding;
|
|
221
228
|
} catch (e) {
|
|
222
229
|
loadErrors.push(e);
|
|
@@ -230,7 +237,7 @@ function requireNative() {
|
|
|
230
237
|
try {
|
|
231
238
|
const binding = require("@oxfmt/binding-linux-x64-gnu");
|
|
232
239
|
const bindingPackageVersion = require("@oxfmt/binding-linux-x64-gnu/package.json").version;
|
|
233
|
-
if (bindingPackageVersion !== "0.
|
|
240
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
234
241
|
return binding;
|
|
235
242
|
} catch (e) {
|
|
236
243
|
loadErrors.push(e);
|
|
@@ -245,7 +252,7 @@ function requireNative() {
|
|
|
245
252
|
try {
|
|
246
253
|
const binding = require("@oxfmt/binding-linux-arm64-musl");
|
|
247
254
|
const bindingPackageVersion = require("@oxfmt/binding-linux-arm64-musl/package.json").version;
|
|
248
|
-
if (bindingPackageVersion !== "0.
|
|
255
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
249
256
|
return binding;
|
|
250
257
|
} catch (e) {
|
|
251
258
|
loadErrors.push(e);
|
|
@@ -259,7 +266,7 @@ function requireNative() {
|
|
|
259
266
|
try {
|
|
260
267
|
const binding = require("@oxfmt/binding-linux-arm64-gnu");
|
|
261
268
|
const bindingPackageVersion = require("@oxfmt/binding-linux-arm64-gnu/package.json").version;
|
|
262
|
-
if (bindingPackageVersion !== "0.
|
|
269
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
263
270
|
return binding;
|
|
264
271
|
} catch (e) {
|
|
265
272
|
loadErrors.push(e);
|
|
@@ -274,7 +281,7 @@ function requireNative() {
|
|
|
274
281
|
try {
|
|
275
282
|
const binding = require("@oxfmt/binding-linux-arm-musleabihf");
|
|
276
283
|
const bindingPackageVersion = require("@oxfmt/binding-linux-arm-musleabihf/package.json").version;
|
|
277
|
-
if (bindingPackageVersion !== "0.
|
|
284
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
278
285
|
return binding;
|
|
279
286
|
} catch (e) {
|
|
280
287
|
loadErrors.push(e);
|
|
@@ -288,7 +295,7 @@ function requireNative() {
|
|
|
288
295
|
try {
|
|
289
296
|
const binding = require("@oxfmt/binding-linux-arm-gnueabihf");
|
|
290
297
|
const bindingPackageVersion = require("@oxfmt/binding-linux-arm-gnueabihf/package.json").version;
|
|
291
|
-
if (bindingPackageVersion !== "0.
|
|
298
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
292
299
|
return binding;
|
|
293
300
|
} catch (e) {
|
|
294
301
|
loadErrors.push(e);
|
|
@@ -303,7 +310,7 @@ function requireNative() {
|
|
|
303
310
|
try {
|
|
304
311
|
const binding = require("@oxfmt/binding-linux-loong64-musl");
|
|
305
312
|
const bindingPackageVersion = require("@oxfmt/binding-linux-loong64-musl/package.json").version;
|
|
306
|
-
if (bindingPackageVersion !== "0.
|
|
313
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
307
314
|
return binding;
|
|
308
315
|
} catch (e) {
|
|
309
316
|
loadErrors.push(e);
|
|
@@ -317,7 +324,7 @@ function requireNative() {
|
|
|
317
324
|
try {
|
|
318
325
|
const binding = require("@oxfmt/binding-linux-loong64-gnu");
|
|
319
326
|
const bindingPackageVersion = require("@oxfmt/binding-linux-loong64-gnu/package.json").version;
|
|
320
|
-
if (bindingPackageVersion !== "0.
|
|
327
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
321
328
|
return binding;
|
|
322
329
|
} catch (e) {
|
|
323
330
|
loadErrors.push(e);
|
|
@@ -332,7 +339,7 @@ function requireNative() {
|
|
|
332
339
|
try {
|
|
333
340
|
const binding = require("@oxfmt/binding-linux-riscv64-musl");
|
|
334
341
|
const bindingPackageVersion = require("@oxfmt/binding-linux-riscv64-musl/package.json").version;
|
|
335
|
-
if (bindingPackageVersion !== "0.
|
|
342
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
336
343
|
return binding;
|
|
337
344
|
} catch (e) {
|
|
338
345
|
loadErrors.push(e);
|
|
@@ -346,7 +353,7 @@ function requireNative() {
|
|
|
346
353
|
try {
|
|
347
354
|
const binding = require("@oxfmt/binding-linux-riscv64-gnu");
|
|
348
355
|
const bindingPackageVersion = require("@oxfmt/binding-linux-riscv64-gnu/package.json").version;
|
|
349
|
-
if (bindingPackageVersion !== "0.
|
|
356
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
350
357
|
return binding;
|
|
351
358
|
} catch (e) {
|
|
352
359
|
loadErrors.push(e);
|
|
@@ -361,7 +368,7 @@ function requireNative() {
|
|
|
361
368
|
try {
|
|
362
369
|
const binding = require("@oxfmt/binding-linux-ppc64-gnu");
|
|
363
370
|
const bindingPackageVersion = require("@oxfmt/binding-linux-ppc64-gnu/package.json").version;
|
|
364
|
-
if (bindingPackageVersion !== "0.
|
|
371
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
365
372
|
return binding;
|
|
366
373
|
} catch (e) {
|
|
367
374
|
loadErrors.push(e);
|
|
@@ -375,7 +382,7 @@ function requireNative() {
|
|
|
375
382
|
try {
|
|
376
383
|
const binding = require("@oxfmt/binding-linux-s390x-gnu");
|
|
377
384
|
const bindingPackageVersion = require("@oxfmt/binding-linux-s390x-gnu/package.json").version;
|
|
378
|
-
if (bindingPackageVersion !== "0.
|
|
385
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
379
386
|
return binding;
|
|
380
387
|
} catch (e) {
|
|
381
388
|
loadErrors.push(e);
|
|
@@ -390,7 +397,7 @@ function requireNative() {
|
|
|
390
397
|
try {
|
|
391
398
|
const binding = require("@oxfmt/binding-openharmony-arm64");
|
|
392
399
|
const bindingPackageVersion = require("@oxfmt/binding-openharmony-arm64/package.json").version;
|
|
393
|
-
if (bindingPackageVersion !== "0.
|
|
400
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
394
401
|
return binding;
|
|
395
402
|
} catch (e) {
|
|
396
403
|
loadErrors.push(e);
|
|
@@ -404,7 +411,7 @@ function requireNative() {
|
|
|
404
411
|
try {
|
|
405
412
|
const binding = require("@oxfmt/binding-openharmony-x64");
|
|
406
413
|
const bindingPackageVersion = require("@oxfmt/binding-openharmony-x64/package.json").version;
|
|
407
|
-
if (bindingPackageVersion !== "0.
|
|
414
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
408
415
|
return binding;
|
|
409
416
|
} catch (e) {
|
|
410
417
|
loadErrors.push(e);
|
|
@@ -418,7 +425,7 @@ function requireNative() {
|
|
|
418
425
|
try {
|
|
419
426
|
const binding = require("@oxfmt/binding-openharmony-arm");
|
|
420
427
|
const bindingPackageVersion = require("@oxfmt/binding-openharmony-arm/package.json").version;
|
|
421
|
-
if (bindingPackageVersion !== "0.
|
|
428
|
+
if (bindingPackageVersion !== "0.55.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.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
422
429
|
return binding;
|
|
423
430
|
} catch (e) {
|
|
424
431
|
loadErrors.push(e);
|
|
@@ -454,12 +461,16 @@ if (!nativeBinding || forceWasi) {
|
|
|
454
461
|
}
|
|
455
462
|
}
|
|
456
463
|
if (!nativeBinding) {
|
|
457
|
-
if (loadErrors.length > 0)
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
464
|
+
if (loadErrors.length > 0) {
|
|
465
|
+
const error = /* @__PURE__ */ new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.");
|
|
466
|
+
error.cause = loadErrors.reduce((err, cur) => {
|
|
467
|
+
cur.cause = err;
|
|
468
|
+
return cur;
|
|
469
|
+
});
|
|
470
|
+
throw error;
|
|
471
|
+
}
|
|
461
472
|
throw new Error(`Failed to load native binding`);
|
|
462
473
|
}
|
|
463
474
|
const { Severity, format, jsTextToDoc, runCli } = nativeBinding;
|
|
464
475
|
//#endregion
|
|
465
|
-
export {
|
|
476
|
+
export { runCli as n, bindings_exports as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.0_prettie_661f6aa3144bd2f260306254bad2432f/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.4/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.4/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 { 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-DkdEeIjV.js";
|
|
2
2
|
export { formatEmbeddedCode, formatEmbeddedDoc, formatFile, sortTailwindClasses };
|
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as toNullable, t as toFormatFileResult } from "./napi-callbacks-Sb-usWTs.js";
|
|
2
|
+
import { n as runCli } from "./bindings-NuElWCOb.js";
|
|
2
3
|
import Tinypool from "tinypool";
|
|
3
4
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
4
5
|
import { extname } from "node:path";
|
|
@@ -17,38 +18,29 @@ async function disposeExternalFormatter() {
|
|
|
17
18
|
await pool?.destroy();
|
|
18
19
|
pool = null;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
return pool.run({
|
|
21
|
+
function formatFile(options, code) {
|
|
22
|
+
return toFormatFileResult(pool.run({
|
|
22
23
|
options,
|
|
23
24
|
code
|
|
24
|
-
}, { name: "formatFile" })
|
|
25
|
-
if (err instanceof Error) throw err;
|
|
26
|
-
if (err !== null && typeof err === "object") {
|
|
27
|
-
const obj = err;
|
|
28
|
-
const newErr = new Error(obj.message);
|
|
29
|
-
newErr.name = obj.name;
|
|
30
|
-
throw newErr;
|
|
31
|
-
}
|
|
32
|
-
throw new Error(String(err));
|
|
33
|
-
});
|
|
25
|
+
}, { name: "formatFile" }));
|
|
34
26
|
}
|
|
35
|
-
|
|
36
|
-
return pool.run({
|
|
27
|
+
function formatEmbeddedCode(options, code) {
|
|
28
|
+
return toNullable(pool.run({
|
|
37
29
|
options,
|
|
38
30
|
code
|
|
39
|
-
}, { name: "formatEmbeddedCode" })
|
|
31
|
+
}, { name: "formatEmbeddedCode" }));
|
|
40
32
|
}
|
|
41
|
-
|
|
42
|
-
return pool.run({
|
|
33
|
+
function formatEmbeddedDoc(options, texts) {
|
|
34
|
+
return toNullable(pool.run({
|
|
43
35
|
options,
|
|
44
36
|
texts
|
|
45
|
-
}, { name: "formatEmbeddedDoc" })
|
|
37
|
+
}, { name: "formatEmbeddedDoc" }));
|
|
46
38
|
}
|
|
47
|
-
|
|
48
|
-
return pool.run({
|
|
39
|
+
function sortTailwindClasses(options, classes) {
|
|
40
|
+
return toNullable(pool.run({
|
|
49
41
|
classes,
|
|
50
42
|
options
|
|
51
|
-
}, { name: "sortTailwindClasses" })
|
|
43
|
+
}, { name: "sortTailwindClasses" }));
|
|
52
44
|
}
|
|
53
45
|
//#endregion
|
|
54
46
|
//#region ../shared/src-js/utils.ts
|
|
@@ -179,7 +171,7 @@ async function loadVitePlusConfig(path) {
|
|
|
179
171
|
return;
|
|
180
172
|
}
|
|
181
173
|
if (mode === "migrate:prettier") {
|
|
182
|
-
await import("./migrate-prettier-
|
|
174
|
+
await import("./migrate-prettier-qkEMts2A.js").then((m) => m.runMigratePrettier());
|
|
183
175
|
return;
|
|
184
176
|
}
|
|
185
177
|
if (mode === "migrate:biome") {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { o as __toESM } from "./
|
|
2
|
-
import { n as init_babel, parsers as ra, t as babel_exports } from "./babel-
|
|
3
|
-
import index_exports, { t as init_prettier } from "./prettier-
|
|
4
|
-
import { a as __toESM$1, t as __commonJSMin } from "./chunk-DSjvVL_1-
|
|
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-
|
|
6
|
-
import { parsers as fn, t as init_angular } from "./angular-
|
|
7
|
-
import { n as postcss_exports, parsers as en, t as init_postcss } from "./postcss-
|
|
1
|
+
import { o as __toESM } from "./rolldown-runtime-CNf5ZN-e.js";
|
|
2
|
+
import { n as init_babel, parsers as ra, t as babel_exports } from "./babel-CVxlCcDg.js";
|
|
3
|
+
import index_exports, { t as init_prettier } from "./prettier-D67P9sCF.js";
|
|
4
|
+
import { a as __toESM$1, t as __commonJSMin } from "./chunk-DSjvVL_1-Q4hfmPG1.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-COt95VpI.js";
|
|
6
|
+
import { parsers as fn, t as init_angular } from "./angular-DPcoLhcH.js";
|
|
7
|
+
import { n as postcss_exports, parsers as en, t as init_postcss } from "./postcss-nPoy2yt-.js";
|
|
8
8
|
import * as path from "node:path";
|
|
9
9
|
import { isAbsolute } from "path";
|
|
10
|
-
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.
|
|
10
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.0_prettie_661f6aa3144bd2f260306254bad2432f/node_modules/prettier-plugin-tailwindcss/dist/index.mjs
|
|
11
11
|
init_angular();
|
|
12
12
|
init_babel();
|
|
13
13
|
init_postcss();
|
|
@@ -1070,7 +1070,7 @@ const { parsers, printers } = createPlugin([
|
|
|
1070
1070
|
staticAttrs: ["class"],
|
|
1071
1071
|
load: [{
|
|
1072
1072
|
name: "prettier/plugins/html",
|
|
1073
|
-
importer: () => import("./html-
|
|
1073
|
+
importer: () => import("./html-vBUPNHC4.js")
|
|
1074
1074
|
}],
|
|
1075
1075
|
compatible: ["prettier-plugin-organize-attributes"],
|
|
1076
1076
|
parsers: {
|
|
@@ -1085,7 +1085,7 @@ const { parsers, printers } = createPlugin([
|
|
|
1085
1085
|
staticAttrs: ["class"],
|
|
1086
1086
|
load: [{
|
|
1087
1087
|
name: "prettier/plugins/glimmer",
|
|
1088
|
-
importer: () => import("./glimmer-
|
|
1088
|
+
importer: () => import("./glimmer-BN5XmZ27.js")
|
|
1089
1089
|
}],
|
|
1090
1090
|
parsers: { glimmer: {} },
|
|
1091
1091
|
transform: transformGlimmer
|
|
@@ -1117,19 +1117,19 @@ const { parsers, printers } = createPlugin([
|
|
|
1117
1117
|
__js_expression: { load: [babel_exports] },
|
|
1118
1118
|
typescript: { load: [{
|
|
1119
1119
|
name: "prettier/plugins/typescript",
|
|
1120
|
-
importer: () => import("./typescript-
|
|
1120
|
+
importer: () => import("./typescript-DgGTZjEC.js")
|
|
1121
1121
|
}] },
|
|
1122
1122
|
meriyah: { load: [{
|
|
1123
1123
|
name: "prettier/plugins/meriyah",
|
|
1124
|
-
importer: () => import("./meriyah-
|
|
1124
|
+
importer: () => import("./meriyah-CLIO9qWy.js")
|
|
1125
1125
|
}] },
|
|
1126
1126
|
acorn: { load: [{
|
|
1127
1127
|
name: "prettier/plugins/acorn",
|
|
1128
|
-
importer: () => import("./acorn-
|
|
1128
|
+
importer: () => import("./acorn-Cvoi4PWR.js")
|
|
1129
1129
|
}] },
|
|
1130
1130
|
flow: { load: [{
|
|
1131
1131
|
name: "prettier/plugins/flow",
|
|
1132
|
-
importer: () => import("./flow-
|
|
1132
|
+
importer: () => import("./flow-BXs7AWV-.js")
|
|
1133
1133
|
}] },
|
|
1134
1134
|
oxc: { load: [{
|
|
1135
1135
|
name: "@prettier/plugin-oxc",
|
|
@@ -1160,7 +1160,7 @@ const { parsers, printers } = createPlugin([
|
|
|
1160
1160
|
staticAttrs: ["class"],
|
|
1161
1161
|
load: [{
|
|
1162
1162
|
name: "prettier-plugin-svelte",
|
|
1163
|
-
importer: () => import("./plugin-
|
|
1163
|
+
importer: () => import("./plugin-Beq25NZF.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))
|
|
1164
1164
|
}],
|
|
1165
1165
|
parsers: { svelte: {} },
|
|
1166
1166
|
printers: { "svelte-ast": {} },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __esmMin } from "./
|
|
2
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
import { n as __esmMin } from "./rolldown-runtime-CNf5ZN-e.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/estree.mjs
|
|
3
3
|
function ka(e) {
|
|
4
4
|
return this[e < 0 ? this.length + e : e];
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __esmMin } from "./
|
|
2
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
import { n as __esmMin } from "./rolldown-runtime-CNf5ZN-e.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/flow.mjs
|
|
3
3
|
function iI0(a0, ox) {
|
|
4
4
|
let Yx = /* @__PURE__ */ new SyntaxError(a0 + " (" + ox.loc.start.line + ":" + ox.loc.start.column + ")");
|
|
5
5
|
return Object.assign(Yx, ox);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __esmMin } from "./
|
|
2
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
import { n as __esmMin } from "./rolldown-runtime-CNf5ZN-e.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/glimmer.mjs
|
|
3
3
|
function Yn(e) {
|
|
4
4
|
return this[e < 0 ? this.length + e : e];
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __esmMin } from "./
|
|
2
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
import { n as __esmMin } from "./rolldown-runtime-CNf5ZN-e.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/graphql.mjs
|
|
3
3
|
function x(e) {
|
|
4
4
|
return S(e), {
|
|
5
5
|
type: Ee,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __esmMin } from "./
|
|
2
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
1
|
+
import { n as __esmMin } from "./rolldown-runtime-CNf5ZN-e.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/html.mjs
|
|
3
3
|
function ns(e) {
|
|
4
4
|
return this[e < 0 ? this.length + e : e];
|
|
5
5
|
}
|