@depup/oxlint 1.82.0-depup.0 → 1.83.0-depup.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 -2
- package/changes.json +1 -1
- package/dist/bindings.js +27 -27
- package/dist/lint.js +9 -9
- package/dist/plugins-dev.d.ts +1574 -1628
- package/package.json +22 -22
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/oxlint
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [oxlint](https://www.npmjs.com/package/oxlint) @ 1.
|
|
17
|
-
| Processed | 2026-09-
|
|
16
|
+
| Original | [oxlint](https://www.npmjs.com/package/oxlint) @ 1.83.0 |
|
|
17
|
+
| Processed | 2026-09-14 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 0 |
|
|
20
20
|
|
package/changes.json
CHANGED
package/dist/bindings.js
CHANGED
|
@@ -36,7 +36,7 @@ function requireNative() {
|
|
|
36
36
|
}
|
|
37
37
|
try {
|
|
38
38
|
let binding = require("@oxlint/binding-android-arm64"), bindingPackageVersion = require("@oxlint/binding-android-arm64/package.json").version;
|
|
39
|
-
if (bindingPackageVersion !== "1.
|
|
39
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
40
40
|
return binding;
|
|
41
41
|
} catch (e) {
|
|
42
42
|
loadErrors.push(e);
|
|
@@ -49,7 +49,7 @@ function requireNative() {
|
|
|
49
49
|
}
|
|
50
50
|
try {
|
|
51
51
|
let binding = require("@oxlint/binding-android-arm-eabi"), bindingPackageVersion = require("@oxlint/binding-android-arm-eabi/package.json").version;
|
|
52
|
-
if (bindingPackageVersion !== "1.
|
|
52
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
53
53
|
return binding;
|
|
54
54
|
} catch (e) {
|
|
55
55
|
loadErrors.push(e);
|
|
@@ -65,7 +65,7 @@ function requireNative() {
|
|
|
65
65
|
}
|
|
66
66
|
try {
|
|
67
67
|
let binding = require("@oxlint/binding-win32-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-win32-x64-gnu/package.json").version;
|
|
68
|
-
if (bindingPackageVersion !== "1.
|
|
68
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
69
69
|
return binding;
|
|
70
70
|
} catch (e) {
|
|
71
71
|
loadErrors.push(e);
|
|
@@ -78,7 +78,7 @@ function requireNative() {
|
|
|
78
78
|
}
|
|
79
79
|
try {
|
|
80
80
|
let binding = require("@oxlint/binding-win32-x64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-x64-msvc/package.json").version;
|
|
81
|
-
if (bindingPackageVersion !== "1.
|
|
81
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
82
82
|
return binding;
|
|
83
83
|
} catch (e) {
|
|
84
84
|
loadErrors.push(e);
|
|
@@ -92,7 +92,7 @@ function requireNative() {
|
|
|
92
92
|
}
|
|
93
93
|
try {
|
|
94
94
|
let binding = require("@oxlint/binding-win32-ia32-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-ia32-msvc/package.json").version;
|
|
95
|
-
if (bindingPackageVersion !== "1.
|
|
95
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
96
96
|
return binding;
|
|
97
97
|
} catch (e) {
|
|
98
98
|
loadErrors.push(e);
|
|
@@ -105,7 +105,7 @@ function requireNative() {
|
|
|
105
105
|
}
|
|
106
106
|
try {
|
|
107
107
|
let binding = require("@oxlint/binding-win32-arm64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-arm64-msvc/package.json").version;
|
|
108
|
-
if (bindingPackageVersion !== "1.
|
|
108
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
109
109
|
return binding;
|
|
110
110
|
} catch (e) {
|
|
111
111
|
loadErrors.push(e);
|
|
@@ -119,7 +119,7 @@ function requireNative() {
|
|
|
119
119
|
}
|
|
120
120
|
try {
|
|
121
121
|
let binding = require("@oxlint/binding-darwin-universal"), bindingPackageVersion = require("@oxlint/binding-darwin-universal/package.json").version;
|
|
122
|
-
if (bindingPackageVersion !== "1.
|
|
122
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
123
123
|
return binding;
|
|
124
124
|
} catch (e) {
|
|
125
125
|
loadErrors.push(e);
|
|
@@ -132,7 +132,7 @@ function requireNative() {
|
|
|
132
132
|
}
|
|
133
133
|
try {
|
|
134
134
|
let binding = require("@oxlint/binding-darwin-x64"), bindingPackageVersion = require("@oxlint/binding-darwin-x64/package.json").version;
|
|
135
|
-
if (bindingPackageVersion !== "1.
|
|
135
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
136
136
|
return binding;
|
|
137
137
|
} catch (e) {
|
|
138
138
|
loadErrors.push(e);
|
|
@@ -145,7 +145,7 @@ function requireNative() {
|
|
|
145
145
|
}
|
|
146
146
|
try {
|
|
147
147
|
let binding = require("@oxlint/binding-darwin-arm64"), bindingPackageVersion = require("@oxlint/binding-darwin-arm64/package.json").version;
|
|
148
|
-
if (bindingPackageVersion !== "1.
|
|
148
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
149
149
|
return binding;
|
|
150
150
|
} catch (e) {
|
|
151
151
|
loadErrors.push(e);
|
|
@@ -160,7 +160,7 @@ function requireNative() {
|
|
|
160
160
|
}
|
|
161
161
|
try {
|
|
162
162
|
let binding = require("@oxlint/binding-freebsd-x64"), bindingPackageVersion = require("@oxlint/binding-freebsd-x64/package.json").version;
|
|
163
|
-
if (bindingPackageVersion !== "1.
|
|
163
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
164
164
|
return binding;
|
|
165
165
|
} catch (e) {
|
|
166
166
|
loadErrors.push(e);
|
|
@@ -173,7 +173,7 @@ function requireNative() {
|
|
|
173
173
|
}
|
|
174
174
|
try {
|
|
175
175
|
let binding = require("@oxlint/binding-freebsd-arm64"), bindingPackageVersion = require("@oxlint/binding-freebsd-arm64/package.json").version;
|
|
176
|
-
if (bindingPackageVersion !== "1.
|
|
176
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
177
177
|
return binding;
|
|
178
178
|
} catch (e) {
|
|
179
179
|
loadErrors.push(e);
|
|
@@ -189,7 +189,7 @@ function requireNative() {
|
|
|
189
189
|
}
|
|
190
190
|
try {
|
|
191
191
|
let binding = require("@oxlint/binding-linux-x64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-x64-musl/package.json").version;
|
|
192
|
-
if (bindingPackageVersion !== "1.
|
|
192
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
193
193
|
return binding;
|
|
194
194
|
} catch (e) {
|
|
195
195
|
loadErrors.push(e);
|
|
@@ -202,7 +202,7 @@ function requireNative() {
|
|
|
202
202
|
}
|
|
203
203
|
try {
|
|
204
204
|
let binding = require("@oxlint/binding-linux-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-x64-gnu/package.json").version;
|
|
205
|
-
if (bindingPackageVersion !== "1.
|
|
205
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
206
206
|
return binding;
|
|
207
207
|
} catch (e) {
|
|
208
208
|
loadErrors.push(e);
|
|
@@ -217,7 +217,7 @@ function requireNative() {
|
|
|
217
217
|
}
|
|
218
218
|
try {
|
|
219
219
|
let binding = require("@oxlint/binding-linux-arm64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-musl/package.json").version;
|
|
220
|
-
if (bindingPackageVersion !== "1.
|
|
220
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
221
221
|
return binding;
|
|
222
222
|
} catch (e) {
|
|
223
223
|
loadErrors.push(e);
|
|
@@ -230,7 +230,7 @@ function requireNative() {
|
|
|
230
230
|
}
|
|
231
231
|
try {
|
|
232
232
|
let binding = require("@oxlint/binding-linux-arm64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-gnu/package.json").version;
|
|
233
|
-
if (bindingPackageVersion !== "1.
|
|
233
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.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
|
}
|
|
246
246
|
try {
|
|
247
247
|
let binding = require("@oxlint/binding-linux-arm-musleabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-musleabihf/package.json").version;
|
|
248
|
-
if (bindingPackageVersion !== "1.
|
|
248
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.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);
|
|
@@ -258,7 +258,7 @@ function requireNative() {
|
|
|
258
258
|
}
|
|
259
259
|
try {
|
|
260
260
|
let binding = require("@oxlint/binding-linux-arm-gnueabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-gnueabihf/package.json").version;
|
|
261
|
-
if (bindingPackageVersion !== "1.
|
|
261
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
262
262
|
return binding;
|
|
263
263
|
} catch (e) {
|
|
264
264
|
loadErrors.push(e);
|
|
@@ -273,7 +273,7 @@ function requireNative() {
|
|
|
273
273
|
}
|
|
274
274
|
try {
|
|
275
275
|
let binding = require("@oxlint/binding-linux-loong64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-musl/package.json").version;
|
|
276
|
-
if (bindingPackageVersion !== "1.
|
|
276
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
277
277
|
return binding;
|
|
278
278
|
} catch (e) {
|
|
279
279
|
loadErrors.push(e);
|
|
@@ -286,7 +286,7 @@ function requireNative() {
|
|
|
286
286
|
}
|
|
287
287
|
try {
|
|
288
288
|
let binding = require("@oxlint/binding-linux-loong64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-gnu/package.json").version;
|
|
289
|
-
if (bindingPackageVersion !== "1.
|
|
289
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
290
290
|
return binding;
|
|
291
291
|
} catch (e) {
|
|
292
292
|
loadErrors.push(e);
|
|
@@ -301,7 +301,7 @@ function requireNative() {
|
|
|
301
301
|
}
|
|
302
302
|
try {
|
|
303
303
|
let binding = require("@oxlint/binding-linux-riscv64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-musl/package.json").version;
|
|
304
|
-
if (bindingPackageVersion !== "1.
|
|
304
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
305
305
|
return binding;
|
|
306
306
|
} catch (e) {
|
|
307
307
|
loadErrors.push(e);
|
|
@@ -314,7 +314,7 @@ function requireNative() {
|
|
|
314
314
|
}
|
|
315
315
|
try {
|
|
316
316
|
let binding = require("@oxlint/binding-linux-riscv64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-gnu/package.json").version;
|
|
317
|
-
if (bindingPackageVersion !== "1.
|
|
317
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
318
318
|
return binding;
|
|
319
319
|
} catch (e) {
|
|
320
320
|
loadErrors.push(e);
|
|
@@ -328,7 +328,7 @@ function requireNative() {
|
|
|
328
328
|
}
|
|
329
329
|
try {
|
|
330
330
|
let binding = require("@oxlint/binding-linux-ppc64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-ppc64-gnu/package.json").version;
|
|
331
|
-
if (bindingPackageVersion !== "1.
|
|
331
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
332
332
|
return binding;
|
|
333
333
|
} catch (e) {
|
|
334
334
|
loadErrors.push(e);
|
|
@@ -341,7 +341,7 @@ function requireNative() {
|
|
|
341
341
|
}
|
|
342
342
|
try {
|
|
343
343
|
let binding = require("@oxlint/binding-linux-s390x-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-s390x-gnu/package.json").version;
|
|
344
|
-
if (bindingPackageVersion !== "1.
|
|
344
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
345
345
|
return binding;
|
|
346
346
|
} catch (e) {
|
|
347
347
|
loadErrors.push(e);
|
|
@@ -356,7 +356,7 @@ function requireNative() {
|
|
|
356
356
|
}
|
|
357
357
|
try {
|
|
358
358
|
let binding = require("@oxlint/binding-openharmony-arm64"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm64/package.json").version;
|
|
359
|
-
if (bindingPackageVersion !== "1.
|
|
359
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
360
360
|
return binding;
|
|
361
361
|
} catch (e) {
|
|
362
362
|
loadErrors.push(e);
|
|
@@ -369,7 +369,7 @@ function requireNative() {
|
|
|
369
369
|
}
|
|
370
370
|
try {
|
|
371
371
|
let binding = require("@oxlint/binding-openharmony-x64"), bindingPackageVersion = require("@oxlint/binding-openharmony-x64/package.json").version;
|
|
372
|
-
if (bindingPackageVersion !== "1.
|
|
372
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
373
373
|
return binding;
|
|
374
374
|
} catch (e) {
|
|
375
375
|
loadErrors.push(e);
|
|
@@ -382,7 +382,7 @@ function requireNative() {
|
|
|
382
382
|
}
|
|
383
383
|
try {
|
|
384
384
|
let binding = require("@oxlint/binding-openharmony-arm"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm/package.json").version;
|
|
385
|
-
if (bindingPackageVersion !== "1.
|
|
385
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
386
386
|
return binding;
|
|
387
387
|
} catch (e) {
|
|
388
388
|
loadErrors.push(e);
|
|
@@ -449,7 +449,7 @@ if (forceWasi || (nativeBinding = requireNative()), !nativeBinding || forceWasi)
|
|
|
449
449
|
if (candidateError = __napiWasiResolveCandidate("@oxlint/binding-wasm32-wasi", !0, void 0), candidateFailed = candidateError !== null, !candidateFailed) {
|
|
450
450
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
451
451
|
let bindingPackageVersion = require("@oxlint/binding-wasm32-wasi/package.json").version;
|
|
452
|
-
if (bindingPackageVersion !== "1.
|
|
452
|
+
if (bindingPackageVersion !== "1.83.0") throw Error(`WASI binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
453
453
|
}
|
|
454
454
|
wasiBinding = require("@oxlint/binding-wasm32-wasi"), nativeBinding = wasiBinding, wasiBindingLoaded = !0;
|
|
455
455
|
}
|
package/dist/lint.js
CHANGED
|
@@ -14274,7 +14274,7 @@ function resetSettings() {
|
|
|
14274
14274
|
}
|
|
14275
14275
|
//#endregion
|
|
14276
14276
|
//#region package.json
|
|
14277
|
-
var version = "1.
|
|
14277
|
+
var version = "1.83.0";
|
|
14278
14278
|
//#endregion
|
|
14279
14279
|
//#region src-js/plugins/context.ts
|
|
14280
14280
|
const ObjectFreeze$1 = Object.freeze, ObjectCreate = Object.create, ObjectAssign = Object.assign, ObjectPreventExtensions = Object.preventExtensions;
|
|
@@ -17979,7 +17979,7 @@ function conformHookFn(hookFn, hookName) {
|
|
|
17979
17979
|
return hookFn;
|
|
17980
17980
|
}
|
|
17981
17981
|
//#endregion
|
|
17982
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
17982
|
+
//#region ../../node_modules/.pnpm/eslint@10.10.0/node_modules/eslint/lib/shared/assert.js
|
|
17983
17983
|
/**
|
|
17984
17984
|
* @fileoverview Assertion utilities equivalent to the Node.js node:asserts module.
|
|
17985
17985
|
* @author Josh Goldberg
|
|
@@ -18584,7 +18584,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
18584
18584
|
last >= 0 && segInternal.nodes[last] === nodeToString(node, "enter") ? segInternal.nodes[last] = nodeToString(node, void 0) : segInternal.nodes.push(nodeToString(node, "exit"));
|
|
18585
18585
|
} else segInternal.nodes.push(nodeToString(node, "enter"));
|
|
18586
18586
|
}
|
|
18587
|
-
debug(
|
|
18587
|
+
debug("%s) %s%s", state.currentSegments.map(getId).join(","), node.type, leaving ? ":exit" : "");
|
|
18588
18588
|
} : debug,
|
|
18589
18589
|
/**
|
|
18590
18590
|
* Dumps a DOT code of a given code path.
|
|
@@ -20165,11 +20165,11 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20165
20165
|
let codePath = analyzer.codePath, state = CodePath.getState(codePath), currentSegments = state.currentSegments, headSegments = state.headSegments, end = Math.max(currentSegments.length, headSegments.length), i, currentSegment, headSegment;
|
|
20166
20166
|
for (i = 0; i < end; ++i) if (currentSegment = currentSegments[i], headSegment = headSegments[i], currentSegment !== headSegment && currentSegment) {
|
|
20167
20167
|
let eventName = currentSegment.reachable ? "onCodePathSegmentEnd" : "onUnreachableCodePathSegmentEnd";
|
|
20168
|
-
debug.dump(
|
|
20168
|
+
debug.dump("%s %s", eventName, currentSegment.id), analyzer.emit(eventName, [currentSegment, node]);
|
|
20169
20169
|
}
|
|
20170
20170
|
for (state.currentSegments = headSegments, i = 0; i < end; ++i) if (currentSegment = currentSegments[i], headSegment = headSegments[i], currentSegment !== headSegment && headSegment) {
|
|
20171
20171
|
let eventName = headSegment.reachable ? "onCodePathSegmentStart" : "onUnreachableCodePathSegmentStart";
|
|
20172
|
-
debug.dump(
|
|
20172
|
+
debug.dump("%s %s", eventName, headSegment.id), CodePathSegment.markUsed(headSegment), analyzer.emit(eventName, [headSegment, node]);
|
|
20173
20173
|
}
|
|
20174
20174
|
}
|
|
20175
20175
|
/**
|
|
@@ -20183,7 +20183,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20183
20183
|
let state = CodePath.getState(analyzer.codePath), currentSegments = state.currentSegments;
|
|
20184
20184
|
for (let i = 0; i < currentSegments.length; ++i) {
|
|
20185
20185
|
let currentSegment = currentSegments[i], eventName = currentSegment.reachable ? "onCodePathSegmentEnd" : "onUnreachableCodePathSegmentEnd";
|
|
20186
|
-
debug.dump(
|
|
20186
|
+
debug.dump("%s %s", eventName, currentSegment.id), analyzer.emit(eventName, [currentSegment, node]);
|
|
20187
20187
|
}
|
|
20188
20188
|
state.currentSegments = [];
|
|
20189
20189
|
}
|
|
@@ -20258,7 +20258,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20258
20258
|
origin,
|
|
20259
20259
|
upper: codePath,
|
|
20260
20260
|
onLooped: analyzer.onLooped
|
|
20261
|
-
}), state = CodePath.getState(codePath), debug.dump(
|
|
20261
|
+
}), state = CodePath.getState(codePath), debug.dump("onCodePathStart %s", codePath.id), analyzer.emit("onCodePathStart", [codePath, node]);
|
|
20262
20262
|
}
|
|
20263
20263
|
switch (isPropertyDefinitionValue(node) && startCodePath("class-field-initializer"), node.type) {
|
|
20264
20264
|
case "Program":
|
|
@@ -20393,7 +20393,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20393
20393
|
*/
|
|
20394
20394
|
function endCodePath() {
|
|
20395
20395
|
let codePath = analyzer.codePath;
|
|
20396
|
-
CodePath.getState(codePath).makeFinal(), leaveFromCurrentSegment(analyzer, node), debug.dump(
|
|
20396
|
+
CodePath.getState(codePath).makeFinal(), leaveFromCurrentSegment(analyzer, node), debug.dump("onCodePathEnd %s", codePath.id), analyzer.emit("onCodePathEnd", [codePath, node]), debug.dumpDot(codePath), codePath = analyzer.codePath = analyzer.codePath.upper, codePath && debug.dumpState(node, CodePath.getState(codePath), !0);
|
|
20397
20397
|
}
|
|
20398
20398
|
switch (node.type) {
|
|
20399
20399
|
case "Program":
|
|
@@ -20444,7 +20444,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20444
20444
|
* @returns {void}
|
|
20445
20445
|
*/
|
|
20446
20446
|
onLooped(fromSegment, toSegment) {
|
|
20447
|
-
fromSegment.reachable && toSegment.reachable && (debug.dump(
|
|
20447
|
+
fromSegment.reachable && toSegment.reachable && (debug.dump("onCodePathSegmentLoop %s -> %s", fromSegment.id, toSegment.id), this.emit("onCodePathSegmentLoop", [
|
|
20448
20448
|
fromSegment,
|
|
20449
20449
|
toSegment,
|
|
20450
20450
|
this.currentNode
|