oxlint 1.69.0 → 1.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bindings.js CHANGED
@@ -1,8 +1,8 @@
1
- import { createRequire } from "node:module";
1
+ import { createRequire } from "module";
2
2
  //#region src-js/bindings.js
3
3
  const ArrayIsArray = Array.isArray, require = createRequire(import.meta.url);
4
4
  new URL(".", import.meta.url).pathname;
5
- const { readFileSync } = require("node:fs");
5
+ const { readFileSync } = require("fs");
6
6
  let nativeBinding = null;
7
7
  const loadErrors = [], isMusl = () => {
8
8
  let musl = !1;
@@ -15,7 +15,7 @@ const loadErrors = [], isMusl = () => {
15
15
  }
16
16
  }, isMuslFromReport = () => {
17
17
  let report = null;
18
- return typeof process.report?.getReport == "function" && (process.report.excludeNetwork = !0, report = process.report.getReport()), report ? report.header && report.header.glibcVersionRuntime ? !1 : !!(ArrayIsArray(report.sharedObjects) && report.sharedObjects.some(isFileMusl)) : null;
18
+ return process.report && typeof process.report.getReport == "function" && (process.report.excludeNetwork = !0, report = process.report.getReport()), report ? report.header && report.header.glibcVersionRuntime ? !1 : !!(ArrayIsArray(report.sharedObjects) && report.sharedObjects.some(isFileMusl)) : null;
19
19
  }, isMuslFromChildProcess = () => {
20
20
  try {
21
21
  return require("child_process").execSync("ldd --version", { encoding: "utf8" }).includes("musl");
@@ -37,7 +37,7 @@ function requireNative() {
37
37
  }
38
38
  try {
39
39
  let binding = require("@oxlint/binding-android-arm64"), bindingPackageVersion = require("@oxlint/binding-android-arm64/package.json").version;
40
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
40
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
41
41
  return binding;
42
42
  } catch (e) {
43
43
  loadErrors.push(e);
@@ -50,13 +50,13 @@ function requireNative() {
50
50
  }
51
51
  try {
52
52
  let binding = require("@oxlint/binding-android-arm-eabi"), bindingPackageVersion = require("@oxlint/binding-android-arm-eabi/package.json").version;
53
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
53
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
54
54
  return binding;
55
55
  } catch (e) {
56
56
  loadErrors.push(e);
57
57
  }
58
58
  } else loadErrors.push(/* @__PURE__ */ Error(`Unsupported architecture on Android ${process.arch}`));
59
- else if (process.platform === "win32") if (process.arch === "x64") if (process.config?.variables?.shlib_suffix === "dll.a" || process.config?.variables?.node_target_type === "shared_library") {
59
+ 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") {
60
60
  try {
61
61
  return require("./oxlint.win32-x64-gnu.node");
62
62
  } catch (e) {
@@ -64,7 +64,7 @@ function requireNative() {
64
64
  }
65
65
  try {
66
66
  let binding = require("@oxlint/binding-win32-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-win32-x64-gnu/package.json").version;
67
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
67
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
68
68
  return binding;
69
69
  } catch (e) {
70
70
  loadErrors.push(e);
@@ -77,7 +77,7 @@ function requireNative() {
77
77
  }
78
78
  try {
79
79
  let binding = require("@oxlint/binding-win32-x64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-x64-msvc/package.json").version;
80
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
80
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
81
81
  return binding;
82
82
  } catch (e) {
83
83
  loadErrors.push(e);
@@ -91,7 +91,7 @@ function requireNative() {
91
91
  }
92
92
  try {
93
93
  let binding = require("@oxlint/binding-win32-ia32-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-ia32-msvc/package.json").version;
94
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
94
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
95
95
  return binding;
96
96
  } catch (e) {
97
97
  loadErrors.push(e);
@@ -104,7 +104,7 @@ function requireNative() {
104
104
  }
105
105
  try {
106
106
  let binding = require("@oxlint/binding-win32-arm64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-arm64-msvc/package.json").version;
107
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
108
108
  return binding;
109
109
  } catch (e) {
110
110
  loadErrors.push(e);
@@ -118,7 +118,7 @@ function requireNative() {
118
118
  }
119
119
  try {
120
120
  let binding = require("@oxlint/binding-darwin-universal"), bindingPackageVersion = require("@oxlint/binding-darwin-universal/package.json").version;
121
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
121
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
122
122
  return binding;
123
123
  } catch (e) {
124
124
  loadErrors.push(e);
@@ -131,7 +131,7 @@ function requireNative() {
131
131
  }
132
132
  try {
133
133
  let binding = require("@oxlint/binding-darwin-x64"), bindingPackageVersion = require("@oxlint/binding-darwin-x64/package.json").version;
134
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
134
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
135
135
  return binding;
136
136
  } catch (e) {
137
137
  loadErrors.push(e);
@@ -144,7 +144,7 @@ function requireNative() {
144
144
  }
145
145
  try {
146
146
  let binding = require("@oxlint/binding-darwin-arm64"), bindingPackageVersion = require("@oxlint/binding-darwin-arm64/package.json").version;
147
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
147
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
148
148
  return binding;
149
149
  } catch (e) {
150
150
  loadErrors.push(e);
@@ -158,7 +158,7 @@ function requireNative() {
158
158
  }
159
159
  try {
160
160
  let binding = require("@oxlint/binding-freebsd-x64"), bindingPackageVersion = require("@oxlint/binding-freebsd-x64/package.json").version;
161
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
161
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
162
  return binding;
163
163
  } catch (e) {
164
164
  loadErrors.push(e);
@@ -171,7 +171,7 @@ function requireNative() {
171
171
  }
172
172
  try {
173
173
  let binding = require("@oxlint/binding-freebsd-arm64"), bindingPackageVersion = require("@oxlint/binding-freebsd-arm64/package.json").version;
174
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
174
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
175
175
  return binding;
176
176
  } catch (e) {
177
177
  loadErrors.push(e);
@@ -185,7 +185,7 @@ function requireNative() {
185
185
  }
186
186
  try {
187
187
  let binding = require("@oxlint/binding-linux-x64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-x64-musl/package.json").version;
188
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
188
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
189
189
  return binding;
190
190
  } catch (e) {
191
191
  loadErrors.push(e);
@@ -198,7 +198,7 @@ function requireNative() {
198
198
  }
199
199
  try {
200
200
  let binding = require("@oxlint/binding-linux-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-x64-gnu/package.json").version;
201
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
201
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
202
202
  return binding;
203
203
  } catch (e) {
204
204
  loadErrors.push(e);
@@ -212,7 +212,7 @@ function requireNative() {
212
212
  }
213
213
  try {
214
214
  let binding = require("@oxlint/binding-linux-arm64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-musl/package.json").version;
215
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
215
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
216
216
  return binding;
217
217
  } catch (e) {
218
218
  loadErrors.push(e);
@@ -225,7 +225,7 @@ function requireNative() {
225
225
  }
226
226
  try {
227
227
  let binding = require("@oxlint/binding-linux-arm64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-gnu/package.json").version;
228
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
228
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
229
229
  return binding;
230
230
  } catch (e) {
231
231
  loadErrors.push(e);
@@ -239,7 +239,7 @@ function requireNative() {
239
239
  }
240
240
  try {
241
241
  let binding = require("@oxlint/binding-linux-arm-musleabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-musleabihf/package.json").version;
242
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
242
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
243
243
  return binding;
244
244
  } catch (e) {
245
245
  loadErrors.push(e);
@@ -252,7 +252,7 @@ function requireNative() {
252
252
  }
253
253
  try {
254
254
  let binding = require("@oxlint/binding-linux-arm-gnueabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-gnueabihf/package.json").version;
255
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
255
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
256
256
  return binding;
257
257
  } catch (e) {
258
258
  loadErrors.push(e);
@@ -266,7 +266,7 @@ function requireNative() {
266
266
  }
267
267
  try {
268
268
  let binding = require("@oxlint/binding-linux-loong64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-musl/package.json").version;
269
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
269
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
270
270
  return binding;
271
271
  } catch (e) {
272
272
  loadErrors.push(e);
@@ -279,7 +279,7 @@ function requireNative() {
279
279
  }
280
280
  try {
281
281
  let binding = require("@oxlint/binding-linux-loong64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-gnu/package.json").version;
282
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
282
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
283
283
  return binding;
284
284
  } catch (e) {
285
285
  loadErrors.push(e);
@@ -293,7 +293,7 @@ function requireNative() {
293
293
  }
294
294
  try {
295
295
  let binding = require("@oxlint/binding-linux-riscv64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-musl/package.json").version;
296
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
296
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
297
297
  return binding;
298
298
  } catch (e) {
299
299
  loadErrors.push(e);
@@ -306,7 +306,7 @@ function requireNative() {
306
306
  }
307
307
  try {
308
308
  let binding = require("@oxlint/binding-linux-riscv64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-gnu/package.json").version;
309
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
310
310
  return binding;
311
311
  } catch (e) {
312
312
  loadErrors.push(e);
@@ -320,7 +320,7 @@ function requireNative() {
320
320
  }
321
321
  try {
322
322
  let binding = require("@oxlint/binding-linux-ppc64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-ppc64-gnu/package.json").version;
323
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
323
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
324
324
  return binding;
325
325
  } catch (e) {
326
326
  loadErrors.push(e);
@@ -333,7 +333,7 @@ function requireNative() {
333
333
  }
334
334
  try {
335
335
  let binding = require("@oxlint/binding-linux-s390x-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-s390x-gnu/package.json").version;
336
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
336
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
337
337
  return binding;
338
338
  } catch (e) {
339
339
  loadErrors.push(e);
@@ -347,7 +347,7 @@ function requireNative() {
347
347
  }
348
348
  try {
349
349
  let binding = require("@oxlint/binding-openharmony-arm64"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm64/package.json").version;
350
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
350
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
351
351
  return binding;
352
352
  } catch (e) {
353
353
  loadErrors.push(e);
@@ -360,7 +360,7 @@ function requireNative() {
360
360
  }
361
361
  try {
362
362
  let binding = require("@oxlint/binding-openharmony-x64"), bindingPackageVersion = require("@oxlint/binding-openharmony-x64/package.json").version;
363
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
363
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
364
364
  return binding;
365
365
  } catch (e) {
366
366
  loadErrors.push(e);
@@ -373,7 +373,7 @@ function requireNative() {
373
373
  }
374
374
  try {
375
375
  let binding = require("@oxlint/binding-openharmony-arm"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm/package.json").version;
376
- if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
376
+ if (bindingPackageVersion !== "1.71.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.71.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
377
377
  return binding;
378
378
  } catch (e) {
379
379
  loadErrors.push(e);
@@ -400,7 +400,13 @@ if (!nativeBinding || forceWasi) {
400
400
  throw error.cause = wasiBindingError, error;
401
401
  }
402
402
  }
403
- if (!nativeBinding) throw loadErrors.length > 0 ? 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.", { cause: loadErrors.reduce((err, cur) => (cur.cause = err, cur)) }) : Error("Failed to load native binding");
403
+ if (!nativeBinding) {
404
+ if (loadErrors.length > 0) {
405
+ let error = /* @__PURE__ */ 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.");
406
+ throw error.cause = loadErrors.reduce((err, cur) => (cur.cause = err, cur)), error;
407
+ }
408
+ throw Error("Failed to load native binding");
409
+ }
404
410
  const { Severity, applyFixes, getBufferOffset, lint, parseRawSync, rawTransferSupported } = nativeBinding;
405
411
  //#endregion
406
412
  export { rawTransferSupported as a, parseRawSync as i, getBufferOffset as n, lint as r, applyFixes as t };