oxfmt 0.54.0 → 0.56.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 +1 -1
- package/dist/{acorn-C-l7ouWN.js → acorn-LGWopQvF.js} +2 -2
- package/dist/{angular-4Mc0TmPv.js → angular-BbAuvH72.js} +16 -206
- package/dist/{apis-CngUzqDq.js → apis-C2fbFQF2.js} +5 -5
- package/dist/{babel-DjR61Wf3.js → babel-DLjwvkt5.js} +9 -9
- package/dist/{napi-callbacks-C8y3J_xb.js → bindings-Ab6hoO7p.js} +46 -64
- package/dist/{chunk-DSjvVL_1-BUO3FyMh.js → chunk-DSjvVL_1-DaTvESxp.js} +1 -1
- package/dist/cli-worker.d.ts +2 -2
- package/dist/cli-worker.js +1 -1
- package/dist/cli.js +4 -3
- package/dist/{dist-ZI7w_ao-.js → dist-BMp5jzRv.js} +15 -15
- package/dist/{estree-DHQPBKqf.js → estree-DbmUPhmV.js} +8 -8
- package/dist/{flow-Cz3mJAtC.js → flow-CJbpv7JL.js} +6 -6
- package/dist/{glimmer-ubhL-0tG.js → glimmer-Ba_8Z2bG.js} +6 -6
- package/dist/{graphql-Cl0TIiHU.js → graphql-CZ7EPWgo.js} +3 -3
- package/dist/{html-Cqnv8X__.js → html-DblM11Xw.js} +99 -99
- package/dist/index.js +7 -4
- package/dist/{jiti-Bb1dT6Cw-DPQUX1DC.js → jiti-Bb1dT6Cw-DWQc1k7j.js} +28 -28
- package/dist/{markdown-Eujfu-fQ.js → markdown-B5hFVJKQ.js} +9 -9
- package/dist/{meriyah-DESRG6oe.js → meriyah-DafjRZfO.js} +3 -3
- package/dist/{migrate-prettier-DWPaoKDl.js → migrate-prettier-DrYAkU3F.js} +1 -1
- package/dist/napi-callbacks-Sb-usWTs.js +30 -0
- package/dist/{plugin-CHUKsFCg.js → plugin-CYEM2898.js} +10 -10
- package/dist/{postcss-BFLfznNY.js → postcss-CkhtwsAS.js} +8 -8
- package/dist/{prettier-CttUn4xj.js → prettier-DKAx5A83.js} +28 -28
- package/dist/{chunk-CNf5ZN-e.js → rolldown-runtime-CE-6LUnI.js} +9 -2
- package/dist/{sorter-BZkvDMjt-DCuU-7CM.js → sorter-BZkvDMjt-c-GMCzH3.js} +10 -9
- package/dist/{sorter-CharfNIQ.js → sorter-DK1aMCjs.js} +1 -1
- package/dist/{typescript-lqJOqGcK.js → typescript-DaxiA0nr.js} +16 -16
- package/dist/{v3-D-mr2VVh-C7AdPwxy.js → v3-D-mr2VVh-7G9Y2N0Q.js} +22 -22
- package/dist/{v4-C-HWEQJm-CJKqx13d.js → v4-C-HWEQJm-DKnDZXAs.js} +12 -12
- package/dist/{yaml-BT3ntp8h.js → yaml-BC7gw7un.js} +6 -6
- package/package.json +20 -20
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as __exportAll } from "./rolldown-runtime-CE-6LUnI.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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.56.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,41 +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
|
-
|
|
466
|
-
/**
|
|
467
|
-
* Wrap a `formatFile`-shaped `Promise<string>` so it never rejects, preserving the error message.
|
|
468
|
-
*/
|
|
469
|
-
async function toFormatFileResult(run) {
|
|
470
|
-
return run.then((code) => ({
|
|
471
|
-
ok: true,
|
|
472
|
-
code
|
|
473
|
-
})).catch((err) => ({
|
|
474
|
-
ok: false,
|
|
475
|
-
error: errorToMessage(err)
|
|
476
|
-
}));
|
|
477
|
-
}
|
|
478
|
-
/**
|
|
479
|
-
* Wrap a best-effort formatter `Promise<T>` so it never rejects, discarding the error as `null`.
|
|
480
|
-
* Used for embedded code / tailwind sorting, where Rust falls back to the original code on failure.
|
|
481
|
-
*/
|
|
482
|
-
async function toNullable(run) {
|
|
483
|
-
return run.catch(() => null);
|
|
484
|
-
}
|
|
485
|
-
function errorToMessage(err) {
|
|
486
|
-
if (err instanceof Error) return String(err);
|
|
487
|
-
if (err !== null && typeof err === "object") {
|
|
488
|
-
const { name, message } = err;
|
|
489
|
-
if (typeof message === "string") return typeof name === "string" && name.length > 0 ? `${name}: ${message}` : message;
|
|
490
|
-
}
|
|
491
|
-
return String(err);
|
|
492
|
-
}
|
|
493
|
-
//#endregion
|
|
494
|
-
export { runCli as a, jsTextToDoc as i, toNullable as n, format as r, toFormatFileResult as t };
|
|
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.1.
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.1_prettie_38bf7b19300712455a0a76d31dd7693b/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-C2fbFQF2.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-Ab6hoO7p.js";
|
|
2
3
|
import Tinypool from "tinypool";
|
|
3
4
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
4
5
|
import { extname } from "node:path";
|
|
@@ -47,7 +48,7 @@ const isObject = (v) => typeof v === "object" && v !== null && !Array.isArray(v)
|
|
|
47
48
|
//#endregion
|
|
48
49
|
//#region ../shared/src-js/js_config/node_version.ts
|
|
49
50
|
const NODE_TYPESCRIPT_SUPPORT_RANGE = "^20.19.0 || >=22.18.0";
|
|
50
|
-
const TS_MODULE_EXTENSIONS = new Set([
|
|
51
|
+
const TS_MODULE_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
51
52
|
".ts",
|
|
52
53
|
".mts",
|
|
53
54
|
".cts"
|
|
@@ -170,7 +171,7 @@ async function loadVitePlusConfig(path) {
|
|
|
170
171
|
return;
|
|
171
172
|
}
|
|
172
173
|
if (mode === "migrate:prettier") {
|
|
173
|
-
await import("./migrate-prettier-
|
|
174
|
+
await import("./migrate-prettier-DrYAkU3F.js").then((m) => m.runMigratePrettier());
|
|
174
175
|
return;
|
|
175
176
|
}
|
|
176
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-CE-6LUnI.js";
|
|
2
|
+
import { n as init_babel, parsers as ra, t as babel_exports } from "./babel-DLjwvkt5.js";
|
|
3
|
+
import index_exports, { t as init_prettier } from "./prettier-DKAx5A83.js";
|
|
4
|
+
import { a as __toESM$1, t as __commonJSMin } from "./chunk-DSjvVL_1-DaTvESxp.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-c-GMCzH3.js";
|
|
6
|
+
import { parsers as fn, t as init_angular } from "./angular-BbAuvH72.js";
|
|
7
|
+
import { n as postcss_exports, parsers as en, t as init_postcss } from "./postcss-CkhtwsAS.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.1.
|
|
10
|
+
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.1_prettie_38bf7b19300712455a0a76d31dd7693b/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-DblM11Xw.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-Ba_8Z2bG.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-DaxiA0nr.js")
|
|
1121
1121
|
}] },
|
|
1122
1122
|
meriyah: { load: [{
|
|
1123
1123
|
name: "prettier/plugins/meriyah",
|
|
1124
|
-
importer: () => import("./meriyah-
|
|
1124
|
+
importer: () => import("./meriyah-DafjRZfO.js")
|
|
1125
1125
|
}] },
|
|
1126
1126
|
acorn: { load: [{
|
|
1127
1127
|
name: "prettier/plugins/acorn",
|
|
1128
|
-
importer: () => import("./acorn-
|
|
1128
|
+
importer: () => import("./acorn-LGWopQvF.js")
|
|
1129
1129
|
}] },
|
|
1130
1130
|
flow: { load: [{
|
|
1131
1131
|
name: "prettier/plugins/flow",
|
|
1132
|
-
importer: () => import("./flow-
|
|
1132
|
+
importer: () => import("./flow-CJbpv7JL.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-CYEM2898.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-CE-6LUnI.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
|
}
|
|
@@ -6336,7 +6336,7 @@ __esmMin((() => {
|
|
|
6336
6336
|
];
|
|
6337
6337
|
Fi = (e) => (t) => (t?.type === "ChainExpression" && (t = t.expression), e(t)), M = Fi(k(["CallExpression", "OptionalCallExpression"])), J = Fi(k(["MemberExpression", "OptionalMemberExpression"]));
|
|
6338
6338
|
yp = .25;
|
|
6339
|
-
Ep = new Set([
|
|
6339
|
+
Ep = /* @__PURE__ */ new Set([
|
|
6340
6340
|
"!",
|
|
6341
6341
|
"-",
|
|
6342
6342
|
"+",
|
|
@@ -6413,7 +6413,7 @@ __esmMin((() => {
|
|
|
6413
6413
|
"AsConstExpression",
|
|
6414
6414
|
"SatisfiesExpression"
|
|
6415
6415
|
]), Se = k(["TSUnionType", "UnionTypeAnnotation"]), xt = k(["TSIntersectionType", "IntersectionTypeAnnotation"]), Ue = k(["TSConditionalType", "ConditionalTypeAnnotation"]), hi = (e) => e?.type === "TSAsExpression" && e.typeAnnotation.type === "TSTypeReference" && e.typeAnnotation.typeName.type === "Identifier" && e.typeAnnotation.typeName.name === "const", Cr = k(["TSTypeAliasDeclaration", "TypeAlias"]);
|
|
6416
|
-
dp = new Set([
|
|
6416
|
+
dp = /* @__PURE__ */ new Set([
|
|
6417
6417
|
"range",
|
|
6418
6418
|
"raw",
|
|
6419
6419
|
"comments",
|
|
@@ -6514,7 +6514,7 @@ __esmMin((() => {
|
|
|
6514
6514
|
"TSInterfaceDeclaration"
|
|
6515
6515
|
]);
|
|
6516
6516
|
Wi = oc;
|
|
6517
|
-
Ye = "string", Be = "array", tt = "cursor", He = "indent", Xe = "align", rt = "trim", Fe = "group", Me = "fill", be = "if-break", Ve = "indent-if-break", $e = "line-suffix", Ge = "line-suffix-boundary", me = "line", Pe = "label", Ne = "break-parent", Xr = new Set([
|
|
6517
|
+
Ye = "string", Be = "array", tt = "cursor", He = "indent", Xe = "align", rt = "trim", Fe = "group", Me = "fill", be = "if-break", Ve = "indent-if-break", $e = "line-suffix", Ge = "line-suffix-boundary", me = "line", Pe = "label", Ne = "break-parent", Xr = /* @__PURE__ */ new Set([
|
|
6518
6518
|
tt,
|
|
6519
6519
|
He,
|
|
6520
6520
|
Xe,
|
|
@@ -6894,7 +6894,7 @@ __esmMin((() => {
|
|
|
6894
6894
|
let [r] = t, { type: n, key: s, value: i } = r;
|
|
6895
6895
|
return n === "ImportAttribute" && (s.type === "Identifier" && s.name === "type" || V(s) && s.value === "type") && V(i) && !T(r) && !T(s) && !T(i);
|
|
6896
6896
|
};
|
|
6897
|
-
Xm = new Map([
|
|
6897
|
+
Xm = /* @__PURE__ */ new Map([
|
|
6898
6898
|
["AssignmentExpression", "right"],
|
|
6899
6899
|
["VariableDeclarator", "init"],
|
|
6900
6900
|
["ReturnStatement", "argument"],
|
|
@@ -6903,7 +6903,7 @@ __esmMin((() => {
|
|
|
6903
6903
|
["YieldExpression", "argument"],
|
|
6904
6904
|
["AwaitExpression", "argument"]
|
|
6905
6905
|
]);
|
|
6906
|
-
Qm = new Map([
|
|
6906
|
+
Qm = /* @__PURE__ */ new Map([
|
|
6907
6907
|
["AssignmentExpression", "right"],
|
|
6908
6908
|
["VariableDeclarator", "init"],
|
|
6909
6909
|
["ReturnStatement", "argument"],
|
|
@@ -7088,7 +7088,7 @@ __esmMin((() => {
|
|
|
7088
7088
|
TemplateLiteral: ["quasis"],
|
|
7089
7089
|
TemplateElement: ar[0]
|
|
7090
7090
|
});
|
|
7091
|
-
ED = new Set([
|
|
7091
|
+
ED = /* @__PURE__ */ new Set([
|
|
7092
7092
|
"start",
|
|
7093
7093
|
"end",
|
|
7094
7094
|
"extra",
|
|
@@ -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-CE-6LUnI.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);
|
|
@@ -806,7 +806,7 @@ __esmMin((() => {
|
|
|
806
806
|
return r;
|
|
807
807
|
}
|
|
808
808
|
function vN(x) {
|
|
809
|
-
var r = new Float32Array(1);
|
|
809
|
+
var r = /* @__PURE__ */ new Float32Array(1);
|
|
810
810
|
r[0] = x;
|
|
811
811
|
return new Int32Array(r.buffer)[0] | 0;
|
|
812
812
|
}
|
|
@@ -875,7 +875,7 @@ __esmMin((() => {
|
|
|
875
875
|
e[0] = (4 + r.dims.length) * 4, e[1] = (4 + r.dims.length) * 8;
|
|
876
876
|
}
|
|
877
877
|
function lN(x) {
|
|
878
|
-
var r = new Int32Array(1);
|
|
878
|
+
var r = /* @__PURE__ */ new Int32Array(1);
|
|
879
879
|
r[0] = x;
|
|
880
880
|
return new Float32Array(r.buffer)[0];
|
|
881
881
|
}
|
|
@@ -1744,7 +1744,7 @@ __esmMin((() => {
|
|
|
1744
1744
|
for (var e = 0; e < 56; e++) x.b8[e] = 0;
|
|
1745
1745
|
} else for (var e = r; e < 56; e++) x.b8[e] = 0;
|
|
1746
1746
|
x.b32[14] = x.len << 3, x.b32[15] = x.len >> 29 & 536870911, Xh(x.w, x.b32);
|
|
1747
|
-
for (var t = new Uint8Array(16), u = 0; u < 4; u++) for (var e = 0; e < 4; e++) t[u * 4 + e] = x.w[u] >> 8 * e & 255;
|
|
1747
|
+
for (var t = /* @__PURE__ */ new Uint8Array(16), u = 0; u < 4; u++) for (var e = 0; e < 4; e++) t[u * 4 + e] = x.w[u] >> 8 * e & 255;
|
|
1748
1748
|
return t;
|
|
1749
1749
|
}
|
|
1750
1750
|
function EN(x) {
|
|
@@ -2387,7 +2387,7 @@ __esmMin((() => {
|
|
|
2387
2387
|
function MJ() {
|
|
2388
2388
|
if (a0.crypto) {
|
|
2389
2389
|
if (a0.crypto.getRandomValues) {
|
|
2390
|
-
var x = a0.crypto.getRandomValues(new Int32Array(4));
|
|
2390
|
+
var x = a0.crypto.getRandomValues(/* @__PURE__ */ new Int32Array(4));
|
|
2391
2391
|
return [
|
|
2392
2392
|
0,
|
|
2393
2393
|
x[0],
|
|
@@ -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-CE-6LUnI.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
|
}
|
|
@@ -1211,7 +1211,7 @@ __esmMin((() => {
|
|
|
1211
1211
|
if (Array.isArray(this) || typeof this == "string") return Yn;
|
|
1212
1212
|
});
|
|
1213
1213
|
Kn = () => {}, Dt = Kn;
|
|
1214
|
-
Ot = "string", It = "array", $t = "cursor", kt = "indent", Et = "align", Xt = "trim", vt = "group", wt = "fill", Tt = "if-break", Zt = "indent-if-break", te = "line-suffix", ee = "line-suffix-boundary", Q = "line", re = "label", xt = "break-parent", ne = new Set([
|
|
1214
|
+
Ot = "string", It = "array", $t = "cursor", kt = "indent", Et = "align", Xt = "trim", vt = "group", wt = "fill", Tt = "if-break", Zt = "indent-if-break", te = "line-suffix", ee = "line-suffix-boundary", Q = "line", re = "label", xt = "break-parent", ne = /* @__PURE__ */ new Set([
|
|
1215
1215
|
$t,
|
|
1216
1216
|
kt,
|
|
1217
1217
|
Et,
|
|
@@ -1350,7 +1350,7 @@ __esmMin((() => {
|
|
|
1350
1350
|
super(`Unexpected ${r} node ${s}: ${JSON.stringify(t[s])}.`), this.node = t;
|
|
1351
1351
|
}
|
|
1352
1352
|
}, qr = Ue;
|
|
1353
|
-
Vr.ignoredProperties = new Set(["loc", "selfClosing"]);
|
|
1353
|
+
Vr.ignoredProperties = /* @__PURE__ */ new Set(["loc", "selfClosing"]);
|
|
1354
1354
|
Fr = Vr;
|
|
1355
1355
|
Hr = as;
|
|
1356
1356
|
Rt = null;
|
|
@@ -5816,7 +5816,7 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
5816
5816
|
_s = !1;
|
|
5817
5817
|
new RegExp(/["\x26\xa0]/u.source, "gu");
|
|
5818
5818
|
new RegExp(/[&<>\xa0]/u.source, "gu");
|
|
5819
|
-
de = new Set([
|
|
5819
|
+
de = /* @__PURE__ */ new Set([
|
|
5820
5820
|
"area",
|
|
5821
5821
|
"base",
|
|
5822
5822
|
"br",
|
|
@@ -7475,7 +7475,7 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
7475
7475
|
Gs = new Set(on());
|
|
7476
7476
|
xn = 2;
|
|
7477
7477
|
ri = ({ path: e }, { path: t }) => [e, t].every((r) => r.type === "PathExpression" && r.head.type === "VarHead") && e.head.name === t.head.name;
|
|
7478
|
-
hi = /* @__PURE__ */ new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"), pi = new Set([
|
|
7478
|
+
hi = /* @__PURE__ */ new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"), pi = /* @__PURE__ */ new Set([
|
|
7479
7479
|
"true",
|
|
7480
7480
|
"false",
|
|
7481
7481
|
"null",
|
|
@@ -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-CE-6LUnI.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,
|
|
@@ -1074,7 +1074,7 @@ __esmMin((() => {
|
|
|
1074
1074
|
|
|
1075
1075
|
${e}`;
|
|
1076
1076
|
A = It;
|
|
1077
|
-
Ue.ignoredProperties = new Set(["loc", "comments"]);
|
|
1077
|
+
Ue.ignoredProperties = /* @__PURE__ */ new Set(["loc", "comments"]);
|
|
1078
1078
|
Ge = {
|
|
1079
1079
|
print: Dt,
|
|
1080
1080
|
massageAstNode: Ue,
|