oxlint 1.19.0 → 1.21.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.
@@ -48,7 +48,7 @@
48
48
  }
49
49
  },
50
50
  "jsPlugins": {
51
- "description": "JS plugins.",
51
+ "description": "JS plugins.\n\nNote: JS plugins are experimental and not subject to semver.\nThey are not supported in language server at present.",
52
52
  "default": null,
53
53
  "type": [
54
54
  "array",
@@ -440,7 +440,7 @@
440
440
  ]
441
441
  },
442
442
  "jsPlugins": {
443
- "description": "JS plugins for this override.",
443
+ "description": "JS plugins for this override.\n\nNote: JS plugins are experimental and not subject to semver.\nThey are not supported in language server at present.",
444
444
  "type": [
445
445
  "array",
446
446
  "null"
package/dist/cli.js CHANGED
@@ -36,7 +36,7 @@ function requireNative() {
36
36
  }
37
37
  try {
38
38
  let binding = require("@oxlint/android-arm64"), bindingPackageVersion = require("@oxlint/android-arm64/package.json").version;
39
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
39
+ if (bindingPackageVersion !== "1.21.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.21.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,13 +49,26 @@ function requireNative() {
49
49
  }
50
50
  try {
51
51
  let binding = require("@oxlint/android-arm-eabi"), bindingPackageVersion = require("@oxlint/android-arm-eabi/package.json").version;
52
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
52
+ if (bindingPackageVersion !== "1.21.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.21.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);
56
56
  }
57
57
  } else loadErrors.push(/* @__PURE__ */ Error(`Unsupported architecture on Android ${process.arch}`));
58
- else if (process.platform === "win32") if (process.arch === "x64") {
58
+ else if (process.platform === "win32") if (process.arch === "x64") if (process.report?.getReport?.()?.header?.osName?.startsWith?.("MINGW")) {
59
+ try {
60
+ return require("./oxlint.win32-x64-gnu.node");
61
+ } catch (e) {
62
+ loadErrors.push(e);
63
+ }
64
+ try {
65
+ let binding = require("@oxlint/win32-x64-gnu"), bindingPackageVersion = require("@oxlint/win32-x64-gnu/package.json").version;
66
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
67
+ return binding;
68
+ } catch (e) {
69
+ loadErrors.push(e);
70
+ }
71
+ } else {
59
72
  try {
60
73
  return require("./oxlint.win32-x64-msvc.node");
61
74
  } catch (e) {
@@ -63,12 +76,13 @@ function requireNative() {
63
76
  }
64
77
  try {
65
78
  let binding = require("@oxlint/win32-x64"), bindingPackageVersion = require("@oxlint/win32-x64/package.json").version;
66
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
79
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
67
80
  return binding;
68
81
  } catch (e) {
69
82
  loadErrors.push(e);
70
83
  }
71
- } else if (process.arch === "ia32") {
84
+ }
85
+ else if (process.arch === "ia32") {
72
86
  try {
73
87
  return require("./oxlint.win32-ia32-msvc.node");
74
88
  } catch (e) {
@@ -76,7 +90,7 @@ function requireNative() {
76
90
  }
77
91
  try {
78
92
  let binding = require("@oxlint/win32-ia32"), bindingPackageVersion = require("@oxlint/win32-ia32/package.json").version;
79
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
93
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
80
94
  return binding;
81
95
  } catch (e) {
82
96
  loadErrors.push(e);
@@ -89,7 +103,7 @@ function requireNative() {
89
103
  }
90
104
  try {
91
105
  let binding = require("@oxlint/win32-arm64"), bindingPackageVersion = require("@oxlint/win32-arm64/package.json").version;
92
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
106
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
93
107
  return binding;
94
108
  } catch (e) {
95
109
  loadErrors.push(e);
@@ -103,7 +117,7 @@ function requireNative() {
103
117
  }
104
118
  try {
105
119
  let binding = require("@oxlint/darwin-universal"), bindingPackageVersion = require("@oxlint/darwin-universal/package.json").version;
106
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
120
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
121
  return binding;
108
122
  } catch (e) {
109
123
  loadErrors.push(e);
@@ -116,7 +130,7 @@ function requireNative() {
116
130
  }
117
131
  try {
118
132
  let binding = require("@oxlint/darwin-x64"), bindingPackageVersion = require("@oxlint/darwin-x64/package.json").version;
119
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
133
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
120
134
  return binding;
121
135
  } catch (e) {
122
136
  loadErrors.push(e);
@@ -129,7 +143,7 @@ function requireNative() {
129
143
  }
130
144
  try {
131
145
  let binding = require("@oxlint/darwin-arm64"), bindingPackageVersion = require("@oxlint/darwin-arm64/package.json").version;
132
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
146
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
133
147
  return binding;
134
148
  } catch (e) {
135
149
  loadErrors.push(e);
@@ -143,7 +157,7 @@ function requireNative() {
143
157
  }
144
158
  try {
145
159
  let binding = require("@oxlint/freebsd-x64"), bindingPackageVersion = require("@oxlint/freebsd-x64/package.json").version;
146
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
160
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
147
161
  return binding;
148
162
  } catch (e) {
149
163
  loadErrors.push(e);
@@ -156,7 +170,7 @@ function requireNative() {
156
170
  }
157
171
  try {
158
172
  let binding = require("@oxlint/freebsd-arm64"), bindingPackageVersion = require("@oxlint/freebsd-arm64/package.json").version;
159
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
173
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
160
174
  return binding;
161
175
  } catch (e) {
162
176
  loadErrors.push(e);
@@ -170,7 +184,7 @@ function requireNative() {
170
184
  }
171
185
  try {
172
186
  let binding = require("@oxlint/linux-x64-musl"), bindingPackageVersion = require("@oxlint/linux-x64-musl/package.json").version;
173
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
187
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
174
188
  return binding;
175
189
  } catch (e) {
176
190
  loadErrors.push(e);
@@ -183,7 +197,7 @@ function requireNative() {
183
197
  }
184
198
  try {
185
199
  let binding = require("@oxlint/linux-x64-gnu"), bindingPackageVersion = require("@oxlint/linux-x64-gnu/package.json").version;
186
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
200
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
187
201
  return binding;
188
202
  } catch (e) {
189
203
  loadErrors.push(e);
@@ -197,7 +211,7 @@ function requireNative() {
197
211
  }
198
212
  try {
199
213
  let binding = require("@oxlint/linux-arm64-musl"), bindingPackageVersion = require("@oxlint/linux-arm64-musl/package.json").version;
200
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
214
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
201
215
  return binding;
202
216
  } catch (e) {
203
217
  loadErrors.push(e);
@@ -210,7 +224,7 @@ function requireNative() {
210
224
  }
211
225
  try {
212
226
  let binding = require("@oxlint/linux-arm64-gnu"), bindingPackageVersion = require("@oxlint/linux-arm64-gnu/package.json").version;
213
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
227
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
214
228
  return binding;
215
229
  } catch (e) {
216
230
  loadErrors.push(e);
@@ -224,7 +238,7 @@ function requireNative() {
224
238
  }
225
239
  try {
226
240
  let binding = require("@oxlint/linux-arm-musleabihf"), bindingPackageVersion = require("@oxlint/linux-arm-musleabihf/package.json").version;
227
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
241
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
228
242
  return binding;
229
243
  } catch (e) {
230
244
  loadErrors.push(e);
@@ -237,7 +251,7 @@ function requireNative() {
237
251
  }
238
252
  try {
239
253
  let binding = require("@oxlint/linux-arm-gnueabihf"), bindingPackageVersion = require("@oxlint/linux-arm-gnueabihf/package.json").version;
240
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
254
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
241
255
  return binding;
242
256
  } catch (e) {
243
257
  loadErrors.push(e);
@@ -251,7 +265,7 @@ function requireNative() {
251
265
  }
252
266
  try {
253
267
  let binding = require("@oxlint/linux-loong64-musl"), bindingPackageVersion = require("@oxlint/linux-loong64-musl/package.json").version;
254
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
268
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
255
269
  return binding;
256
270
  } catch (e) {
257
271
  loadErrors.push(e);
@@ -264,7 +278,7 @@ function requireNative() {
264
278
  }
265
279
  try {
266
280
  let binding = require("@oxlint/linux-loong64-gnu"), bindingPackageVersion = require("@oxlint/linux-loong64-gnu/package.json").version;
267
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
281
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
268
282
  return binding;
269
283
  } catch (e) {
270
284
  loadErrors.push(e);
@@ -278,7 +292,7 @@ function requireNative() {
278
292
  }
279
293
  try {
280
294
  let binding = require("@oxlint/linux-riscv64-musl"), bindingPackageVersion = require("@oxlint/linux-riscv64-musl/package.json").version;
281
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
295
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
282
296
  return binding;
283
297
  } catch (e) {
284
298
  loadErrors.push(e);
@@ -291,7 +305,7 @@ function requireNative() {
291
305
  }
292
306
  try {
293
307
  let binding = require("@oxlint/linux-riscv64-gnu"), bindingPackageVersion = require("@oxlint/linux-riscv64-gnu/package.json").version;
294
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
308
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
295
309
  return binding;
296
310
  } catch (e) {
297
311
  loadErrors.push(e);
@@ -305,7 +319,7 @@ function requireNative() {
305
319
  }
306
320
  try {
307
321
  let binding = require("@oxlint/linux-ppc64-gnu"), bindingPackageVersion = require("@oxlint/linux-ppc64-gnu/package.json").version;
308
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
322
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
323
  return binding;
310
324
  } catch (e) {
311
325
  loadErrors.push(e);
@@ -318,7 +332,7 @@ function requireNative() {
318
332
  }
319
333
  try {
320
334
  let binding = require("@oxlint/linux-s390x-gnu"), bindingPackageVersion = require("@oxlint/linux-s390x-gnu/package.json").version;
321
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
335
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
322
336
  return binding;
323
337
  } catch (e) {
324
338
  loadErrors.push(e);
@@ -332,7 +346,7 @@ function requireNative() {
332
346
  }
333
347
  try {
334
348
  let binding = require("@oxlint/openharmony-arm64"), bindingPackageVersion = require("@oxlint/openharmony-arm64/package.json").version;
335
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
349
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
336
350
  return binding;
337
351
  } catch (e) {
338
352
  loadErrors.push(e);
@@ -345,7 +359,7 @@ function requireNative() {
345
359
  }
346
360
  try {
347
361
  let binding = require("@oxlint/openharmony-x64"), bindingPackageVersion = require("@oxlint/openharmony-x64/package.json").version;
348
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
362
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
349
363
  return binding;
350
364
  } catch (e) {
351
365
  loadErrors.push(e);
@@ -358,7 +372,7 @@ function requireNative() {
358
372
  }
359
373
  try {
360
374
  let binding = require("@oxlint/openharmony-arm"), bindingPackageVersion = require("@oxlint/openharmony-arm/package.json").version;
361
- if (bindingPackageVersion !== "1.19.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.19.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
375
+ if (bindingPackageVersion !== "1.21.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.21.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
362
376
  return binding;
363
377
  } catch (e) {
364
378
  loadErrors.push(e);