oxlint 1.45.0 → 1.47.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
@@ -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.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
39
+ if (bindingPackageVersion !== "1.47.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.47.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.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
52
+ if (bindingPackageVersion !== "1.47.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.47.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);
@@ -63,7 +63,7 @@ function requireNative() {
63
63
  }
64
64
  try {
65
65
  let binding = require("@oxlint/binding-win32-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-win32-x64-gnu/package.json").version;
66
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
66
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
67
67
  return binding;
68
68
  } catch (e) {
69
69
  loadErrors.push(e);
@@ -76,7 +76,7 @@ function requireNative() {
76
76
  }
77
77
  try {
78
78
  let binding = require("@oxlint/binding-win32-x64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-x64-msvc/package.json").version;
79
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
79
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
80
80
  return binding;
81
81
  } catch (e) {
82
82
  loadErrors.push(e);
@@ -90,7 +90,7 @@ function requireNative() {
90
90
  }
91
91
  try {
92
92
  let binding = require("@oxlint/binding-win32-ia32-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-ia32-msvc/package.json").version;
93
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
93
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
94
94
  return binding;
95
95
  } catch (e) {
96
96
  loadErrors.push(e);
@@ -103,7 +103,7 @@ function requireNative() {
103
103
  }
104
104
  try {
105
105
  let binding = require("@oxlint/binding-win32-arm64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-arm64-msvc/package.json").version;
106
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
106
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
107
  return binding;
108
108
  } catch (e) {
109
109
  loadErrors.push(e);
@@ -117,7 +117,7 @@ function requireNative() {
117
117
  }
118
118
  try {
119
119
  let binding = require("@oxlint/binding-darwin-universal"), bindingPackageVersion = require("@oxlint/binding-darwin-universal/package.json").version;
120
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
120
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
121
121
  return binding;
122
122
  } catch (e) {
123
123
  loadErrors.push(e);
@@ -130,7 +130,7 @@ function requireNative() {
130
130
  }
131
131
  try {
132
132
  let binding = require("@oxlint/binding-darwin-x64"), bindingPackageVersion = require("@oxlint/binding-darwin-x64/package.json").version;
133
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
133
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
134
134
  return binding;
135
135
  } catch (e) {
136
136
  loadErrors.push(e);
@@ -143,7 +143,7 @@ function requireNative() {
143
143
  }
144
144
  try {
145
145
  let binding = require("@oxlint/binding-darwin-arm64"), bindingPackageVersion = require("@oxlint/binding-darwin-arm64/package.json").version;
146
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
146
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
147
147
  return binding;
148
148
  } catch (e) {
149
149
  loadErrors.push(e);
@@ -157,7 +157,7 @@ function requireNative() {
157
157
  }
158
158
  try {
159
159
  let binding = require("@oxlint/binding-freebsd-x64"), bindingPackageVersion = require("@oxlint/binding-freebsd-x64/package.json").version;
160
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
160
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
161
161
  return binding;
162
162
  } catch (e) {
163
163
  loadErrors.push(e);
@@ -170,7 +170,7 @@ function requireNative() {
170
170
  }
171
171
  try {
172
172
  let binding = require("@oxlint/binding-freebsd-arm64"), bindingPackageVersion = require("@oxlint/binding-freebsd-arm64/package.json").version;
173
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
173
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
174
174
  return binding;
175
175
  } catch (e) {
176
176
  loadErrors.push(e);
@@ -184,7 +184,7 @@ function requireNative() {
184
184
  }
185
185
  try {
186
186
  let binding = require("@oxlint/binding-linux-x64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-x64-musl/package.json").version;
187
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
187
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
188
188
  return binding;
189
189
  } catch (e) {
190
190
  loadErrors.push(e);
@@ -197,7 +197,7 @@ function requireNative() {
197
197
  }
198
198
  try {
199
199
  let binding = require("@oxlint/binding-linux-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-x64-gnu/package.json").version;
200
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
200
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
201
201
  return binding;
202
202
  } catch (e) {
203
203
  loadErrors.push(e);
@@ -211,7 +211,7 @@ function requireNative() {
211
211
  }
212
212
  try {
213
213
  let binding = require("@oxlint/binding-linux-arm64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-musl/package.json").version;
214
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
214
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
215
215
  return binding;
216
216
  } catch (e) {
217
217
  loadErrors.push(e);
@@ -224,7 +224,7 @@ function requireNative() {
224
224
  }
225
225
  try {
226
226
  let binding = require("@oxlint/binding-linux-arm64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-gnu/package.json").version;
227
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
227
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
228
228
  return binding;
229
229
  } catch (e) {
230
230
  loadErrors.push(e);
@@ -238,7 +238,7 @@ function requireNative() {
238
238
  }
239
239
  try {
240
240
  let binding = require("@oxlint/binding-linux-arm-musleabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-musleabihf/package.json").version;
241
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
241
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
242
242
  return binding;
243
243
  } catch (e) {
244
244
  loadErrors.push(e);
@@ -251,7 +251,7 @@ function requireNative() {
251
251
  }
252
252
  try {
253
253
  let binding = require("@oxlint/binding-linux-arm-gnueabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-gnueabihf/package.json").version;
254
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
254
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
255
255
  return binding;
256
256
  } catch (e) {
257
257
  loadErrors.push(e);
@@ -265,7 +265,7 @@ function requireNative() {
265
265
  }
266
266
  try {
267
267
  let binding = require("@oxlint/binding-linux-loong64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-musl/package.json").version;
268
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
268
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
269
269
  return binding;
270
270
  } catch (e) {
271
271
  loadErrors.push(e);
@@ -278,7 +278,7 @@ function requireNative() {
278
278
  }
279
279
  try {
280
280
  let binding = require("@oxlint/binding-linux-loong64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-gnu/package.json").version;
281
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
281
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
282
282
  return binding;
283
283
  } catch (e) {
284
284
  loadErrors.push(e);
@@ -292,7 +292,7 @@ function requireNative() {
292
292
  }
293
293
  try {
294
294
  let binding = require("@oxlint/binding-linux-riscv64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-musl/package.json").version;
295
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
295
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
296
296
  return binding;
297
297
  } catch (e) {
298
298
  loadErrors.push(e);
@@ -305,7 +305,7 @@ function requireNative() {
305
305
  }
306
306
  try {
307
307
  let binding = require("@oxlint/binding-linux-riscv64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-gnu/package.json").version;
308
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
308
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
309
  return binding;
310
310
  } catch (e) {
311
311
  loadErrors.push(e);
@@ -319,7 +319,7 @@ function requireNative() {
319
319
  }
320
320
  try {
321
321
  let binding = require("@oxlint/binding-linux-ppc64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-ppc64-gnu/package.json").version;
322
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
322
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
323
323
  return binding;
324
324
  } catch (e) {
325
325
  loadErrors.push(e);
@@ -332,7 +332,7 @@ function requireNative() {
332
332
  }
333
333
  try {
334
334
  let binding = require("@oxlint/binding-linux-s390x-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-s390x-gnu/package.json").version;
335
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
335
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
336
336
  return binding;
337
337
  } catch (e) {
338
338
  loadErrors.push(e);
@@ -346,7 +346,7 @@ function requireNative() {
346
346
  }
347
347
  try {
348
348
  let binding = require("@oxlint/binding-openharmony-arm64"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm64/package.json").version;
349
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
349
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
350
350
  return binding;
351
351
  } catch (e) {
352
352
  loadErrors.push(e);
@@ -359,7 +359,7 @@ function requireNative() {
359
359
  }
360
360
  try {
361
361
  let binding = require("@oxlint/binding-openharmony-x64"), bindingPackageVersion = require("@oxlint/binding-openharmony-x64/package.json").version;
362
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
362
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
363
363
  return binding;
364
364
  } catch (e) {
365
365
  loadErrors.push(e);
@@ -372,7 +372,7 @@ function requireNative() {
372
372
  }
373
373
  try {
374
374
  let binding = require("@oxlint/binding-openharmony-arm"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm/package.json").version;
375
- if (bindingPackageVersion !== "1.44.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.44.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
375
+ if (bindingPackageVersion !== "1.47.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.47.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
376
376
  return binding;
377
377
  } catch (e) {
378
378
  loadErrors.push(e);
package/dist/cli.js CHANGED
@@ -18,5 +18,6 @@ function destroyWorkspaceWrapper(workspace) {
18
18
  function loadJsConfigsWrapper(paths) {
19
19
  return loadJsConfigs === null ? import("./js_config.js").then((mod) => (loadJsConfigs = mod.loadJsConfigs, loadJsConfigs(paths))) : loadJsConfigs(paths);
20
20
  }
21
- await lint(process.argv.slice(2), loadPluginWrapper, setupRuleConfigsWrapper, lintFileWrapper, createWorkspaceWrapper, destroyWorkspaceWrapper, loadJsConfigsWrapper) || (process.exitCode = 1);
21
+ const args = process.argv.slice(2);
22
+ process.stdout.isTTY || (process.stdin._handle?.setBlocking?.(!0), process.stdout._handle?.setBlocking?.(!0)), await lint(args, loadPluginWrapper, setupRuleConfigsWrapper, lintFileWrapper, createWorkspaceWrapper, destroyWorkspaceWrapper, loadJsConfigsWrapper) || (process.exitCode = 1);
22
23
  export {};
package/dist/lint.js CHANGED
@@ -987,7 +987,7 @@ function deserializeProgram(pos) {
987
987
  __proto__: NodeProto,
988
988
  type: "Program",
989
989
  body: null,
990
- sourceType: deserializeModuleKind(pos + 125),
990
+ sourceType: deserializeModuleKind(pos + 137),
991
991
  hashbang: null,
992
992
  get comments() {
993
993
  if (localAstId !== astId) throw Error("Comments are only accessible while linting the file");
@@ -1014,8 +1014,8 @@ function deserializeProgram(pos) {
1014
1014
  parent: null
1015
1015
  };
1016
1016
  program.hashbang = deserializeOptionHashbang(pos + 48);
1017
- let body = program.body = deserializeVecDirective(pos + 72);
1018
- body.push(...deserializeVecStatement(pos + 96));
1017
+ let body = program.body = deserializeVecDirective(pos + 80);
1018
+ body.push(...deserializeVecStatement(pos + 104));
1019
1019
  {
1020
1020
  let start;
1021
1021
  if (body.length > 0) {
@@ -1239,12 +1239,12 @@ function deserializeObjectProperty(pos) {
1239
1239
  let start, end, previousParent = parent, node = parent = {
1240
1240
  __proto__: NodeProto,
1241
1241
  type: "Property",
1242
- kind: deserializePropertyKind(pos + 40),
1242
+ kind: deserializePropertyKind(pos + 44),
1243
1243
  key: null,
1244
1244
  value: null,
1245
- method: deserializeBool(pos + 41),
1246
- shorthand: deserializeBool(pos + 42),
1247
- computed: deserializeBool(pos + 43),
1245
+ method: deserializeBool(pos + 45),
1246
+ shorthand: deserializeBool(pos + 46),
1247
+ computed: deserializeBool(pos + 47),
1248
1248
  optional: null,
1249
1249
  start: start = deserializeU32(pos),
1250
1250
  end: end = deserializeU32(pos + 4),
@@ -1339,8 +1339,8 @@ function deserializeTaggedTemplateExpression(pos) {
1339
1339
  return node.tag = deserializeExpression(pos + 8), node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 24), node.quasi = deserializeTemplateLiteral(pos + 32), parent = previousParent, node;
1340
1340
  }
1341
1341
  function deserializeTemplateElement(pos) {
1342
- let tail = deserializeBool(pos + 40), start = deserializeU32(pos) - 1, end = deserializeU32(pos + 4) + 2 - tail, value = deserializeTemplateElementValue(pos + 8);
1343
- return value.cooked !== null && deserializeBool(pos + 41) && (value.cooked = value.cooked.replace(/\uFFFD(.{4})/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16)))), {
1342
+ let tail = deserializeBool(pos + 44), start = deserializeU32(pos) - 1, end = deserializeU32(pos + 4) + 2 - tail, value = deserializeTemplateElementValue(pos + 8);
1343
+ return value.cooked !== null && deserializeBool(pos + 45) && (value.cooked = value.cooked.replace(/\uFFFD(.{4})/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16)))), {
1344
1344
  __proto__: NodeProto,
1345
1345
  type: "TemplateElement",
1346
1346
  value,
@@ -1363,7 +1363,7 @@ function deserializeComputedMemberExpression(pos) {
1363
1363
  type: "MemberExpression",
1364
1364
  object: null,
1365
1365
  property: null,
1366
- optional: deserializeBool(pos + 40),
1366
+ optional: deserializeBool(pos + 44),
1367
1367
  computed: null,
1368
1368
  start: start = deserializeU32(pos),
1369
1369
  end: end = deserializeU32(pos + 4),
@@ -1378,7 +1378,7 @@ function deserializeStaticMemberExpression(pos) {
1378
1378
  type: "MemberExpression",
1379
1379
  object: null,
1380
1380
  property: null,
1381
- optional: deserializeBool(pos + 48),
1381
+ optional: deserializeBool(pos + 60),
1382
1382
  computed: null,
1383
1383
  start: start = deserializeU32(pos),
1384
1384
  end: end = deserializeU32(pos + 4),
@@ -1393,7 +1393,7 @@ function deserializePrivateFieldExpression(pos) {
1393
1393
  type: "MemberExpression",
1394
1394
  object: null,
1395
1395
  property: null,
1396
- optional: deserializeBool(pos + 48),
1396
+ optional: deserializeBool(pos + 60),
1397
1397
  computed: null,
1398
1398
  start: start = deserializeU32(pos),
1399
1399
  end: end = deserializeU32(pos + 4),
@@ -1409,7 +1409,7 @@ function deserializeCallExpression(pos) {
1409
1409
  callee: null,
1410
1410
  typeArguments: null,
1411
1411
  arguments: null,
1412
- optional: deserializeBool(pos + 56),
1412
+ optional: deserializeBool(pos + 60),
1413
1413
  start: start = deserializeU32(pos),
1414
1414
  end: end = deserializeU32(pos + 4),
1415
1415
  range: [start, end],
@@ -1442,7 +1442,7 @@ function deserializeMetaProperty(pos) {
1442
1442
  range: [start, end],
1443
1443
  parent
1444
1444
  };
1445
- return node.meta = deserializeIdentifierName(pos + 8), node.property = deserializeIdentifierName(pos + 32), parent = previousParent, node;
1445
+ return node.meta = deserializeIdentifierName(pos + 8), node.property = deserializeIdentifierName(pos + 40), parent = previousParent, node;
1446
1446
  }
1447
1447
  function deserializeSpreadElement(pos) {
1448
1448
  let start, end, previousParent = parent, node = parent = {
@@ -1509,8 +1509,8 @@ function deserializeUpdateExpression(pos) {
1509
1509
  let start, end, previousParent = parent, node = parent = {
1510
1510
  __proto__: NodeProto,
1511
1511
  type: "UpdateExpression",
1512
- operator: deserializeUpdateOperator(pos + 24),
1513
- prefix: deserializeBool(pos + 25),
1512
+ operator: deserializeUpdateOperator(pos + 28),
1513
+ prefix: deserializeBool(pos + 29),
1514
1514
  argument: null,
1515
1515
  start: start = deserializeU32(pos),
1516
1516
  end: end = deserializeU32(pos + 4),
@@ -1523,7 +1523,7 @@ function deserializeUnaryExpression(pos) {
1523
1523
  let start, end, previousParent = parent, node = parent = {
1524
1524
  __proto__: NodeProto,
1525
1525
  type: "UnaryExpression",
1526
- operator: deserializeUnaryOperator(pos + 24),
1526
+ operator: deserializeUnaryOperator(pos + 28),
1527
1527
  argument: null,
1528
1528
  prefix: null,
1529
1529
  start: start = deserializeU32(pos),
@@ -1538,7 +1538,7 @@ function deserializeBinaryExpression(pos) {
1538
1538
  __proto__: NodeProto,
1539
1539
  type: "BinaryExpression",
1540
1540
  left: null,
1541
- operator: deserializeBinaryOperator(pos + 40),
1541
+ operator: deserializeBinaryOperator(pos + 44),
1542
1542
  right: null,
1543
1543
  start: start = deserializeU32(pos),
1544
1544
  end: end = deserializeU32(pos + 4),
@@ -1559,14 +1559,14 @@ function deserializePrivateInExpression(pos) {
1559
1559
  range: [start, end],
1560
1560
  parent
1561
1561
  };
1562
- return node.left = deserializePrivateIdentifier(pos + 8), node.operator = "in", node.right = deserializeExpression(pos + 32), parent = previousParent, node;
1562
+ return node.left = deserializePrivateIdentifier(pos + 8), node.operator = "in", node.right = deserializeExpression(pos + 40), parent = previousParent, node;
1563
1563
  }
1564
1564
  function deserializeLogicalExpression(pos) {
1565
1565
  let start, end, previousParent = parent, node = parent = {
1566
1566
  __proto__: NodeProto,
1567
1567
  type: "LogicalExpression",
1568
1568
  left: null,
1569
- operator: deserializeLogicalOperator(pos + 40),
1569
+ operator: deserializeLogicalOperator(pos + 44),
1570
1570
  right: null,
1571
1571
  start: start = deserializeU32(pos),
1572
1572
  end: end = deserializeU32(pos + 4),
@@ -1593,7 +1593,7 @@ function deserializeAssignmentExpression(pos) {
1593
1593
  let start, end, previousParent = parent, node = parent = {
1594
1594
  __proto__: NodeProto,
1595
1595
  type: "AssignmentExpression",
1596
- operator: deserializeAssignmentOperator(pos + 40),
1596
+ operator: deserializeAssignmentOperator(pos + 44),
1597
1597
  left: null,
1598
1598
  right: null,
1599
1599
  start: start = deserializeU32(pos),
@@ -1770,7 +1770,7 @@ function deserializeAssignmentTargetPropertyProperty(pos) {
1770
1770
  value: null,
1771
1771
  method: null,
1772
1772
  shorthand: null,
1773
- computed: deserializeBool(pos + 40),
1773
+ computed: deserializeBool(pos + 44),
1774
1774
  optional: null,
1775
1775
  start: start = deserializeU32(pos),
1776
1776
  end: end = deserializeU32(pos + 4),
@@ -1933,9 +1933,9 @@ function deserializeVariableDeclaration(pos) {
1933
1933
  let start, end, previousParent = parent, node = parent = {
1934
1934
  __proto__: NodeProto,
1935
1935
  type: "VariableDeclaration",
1936
- kind: deserializeVariableDeclarationKind(pos + 32),
1936
+ kind: deserializeVariableDeclarationKind(pos + 36),
1937
1937
  declarations: null,
1938
- declare: deserializeBool(pos + 33),
1938
+ declare: deserializeBool(pos + 37),
1939
1939
  start: start = deserializeU32(pos),
1940
1940
  end: end = deserializeU32(pos + 4),
1941
1941
  range: [start, end],
@@ -1969,7 +1969,7 @@ function deserializeVariableDeclarator(pos) {
1969
1969
  {
1970
1970
  parent = variableDeclarator.id;
1971
1971
  let typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 24);
1972
- variableDeclarator.id.typeAnnotation = typeAnnotation, typeAnnotation !== null && (variableDeclarator.id.end = typeAnnotation.end, variableDeclarator.id.range[1] = typeAnnotation.end), parent = variableDeclarator, variableDeclarator.definite = deserializeBool(pos + 49);
1972
+ variableDeclarator.id.typeAnnotation = typeAnnotation, typeAnnotation !== null && (variableDeclarator.id.end = typeAnnotation.end, variableDeclarator.id.range[1] = typeAnnotation.end), parent = variableDeclarator, variableDeclarator.definite = deserializeBool(pos + 53);
1973
1973
  }
1974
1974
  return variableDeclarator.init = deserializeOptionExpression(pos + 32), parent = previousParent, variableDeclarator;
1975
1975
  }
@@ -2135,7 +2135,7 @@ function deserializeForOfStatement(pos) {
2135
2135
  let start, end, previousParent = parent, node = parent = {
2136
2136
  __proto__: NodeProto,
2137
2137
  type: "ForOfStatement",
2138
- await: deserializeBool(pos + 60),
2138
+ await: deserializeBool(pos + 64),
2139
2139
  left: null,
2140
2140
  right: null,
2141
2141
  body: null,
@@ -2232,7 +2232,7 @@ function deserializeLabeledStatement(pos) {
2232
2232
  range: [start, end],
2233
2233
  parent
2234
2234
  };
2235
- return node.label = deserializeLabelIdentifier(pos + 8), node.body = deserializeStatement(pos + 32), parent = previousParent, node;
2235
+ return node.label = deserializeLabelIdentifier(pos + 8), node.body = deserializeStatement(pos + 40), parent = previousParent, node;
2236
2236
  }
2237
2237
  function deserializeThrowStatement(pos) {
2238
2238
  let start, end, previousParent = parent, node = parent = {
@@ -2271,7 +2271,7 @@ function deserializeCatchClause(pos) {
2271
2271
  range: [start, end],
2272
2272
  parent
2273
2273
  };
2274
- return node.param = deserializeOptionCatchParameter(pos + 8), node.body = deserializeBoxBlockStatement(pos + 40), parent = previousParent, node;
2274
+ return node.param = deserializeOptionCatchParameter(pos + 8), node.body = deserializeBoxBlockStatement(pos + 48), parent = previousParent, node;
2275
2275
  }
2276
2276
  function deserializeCatchParameter(pos) {
2277
2277
  let previousParent = parent, pattern = deserializeBindingPattern(pos + 8);
@@ -2341,8 +2341,8 @@ function deserializeBindingProperty(pos) {
2341
2341
  key: null,
2342
2342
  value: null,
2343
2343
  method: null,
2344
- shorthand: deserializeBool(pos + 40),
2345
- computed: deserializeBool(pos + 41),
2344
+ shorthand: deserializeBool(pos + 44),
2345
+ computed: deserializeBool(pos + 45),
2346
2346
  optional: null,
2347
2347
  start: start = deserializeU32(pos),
2348
2348
  end: end = deserializeU32(pos + 4),
@@ -2385,11 +2385,11 @@ function deserializeBindingRestElement(pos) {
2385
2385
  function deserializeFunction(pos) {
2386
2386
  let start, end, previousParent = parent, node = parent = {
2387
2387
  __proto__: NodeProto,
2388
- type: deserializeFunctionType(pos + 84),
2388
+ type: deserializeFunctionType(pos + 88),
2389
2389
  id: null,
2390
- generator: deserializeBool(pos + 85),
2391
- async: deserializeBool(pos + 86),
2392
- declare: deserializeBool(pos + 87),
2390
+ generator: deserializeBool(pos + 89),
2391
+ async: deserializeBool(pos + 90),
2392
+ declare: deserializeBool(pos + 91),
2393
2393
  typeParameters: null,
2394
2394
  params: null,
2395
2395
  returnType: null,
@@ -2432,16 +2432,16 @@ function deserializeFormalParameters(pos) {
2432
2432
  range: [start, end],
2433
2433
  parent: previousParent
2434
2434
  };
2435
- rest.argument = deserializeBindingPattern(pos + 40), rest.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 56), rest.typeAnnotation !== null && (end = rest.typeAnnotation.end, rest.end = end, rest.range[1] = end), params.push(rest), parent = previousParent;
2435
+ rest.argument = deserializeBindingPattern(pos + 40), rest.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 64), rest.typeAnnotation !== null && (end = rest.typeAnnotation.end, rest.end = end, rest.range[1] = end), params.push(rest), parent = previousParent;
2436
2436
  }
2437
2437
  return params;
2438
2438
  }
2439
2439
  function deserializeFormalParameter(pos) {
2440
2440
  let param, previousParent = parent, hasInitializer = uint32[pos + 56 >> 2] !== 0 && uint32[pos + 60 >> 2] !== 0;
2441
2441
  {
2442
- let accessibility = deserializeOptionTSAccessibility(pos + 65), readonly = deserializeBool(pos + 66), override = deserializeBool(pos + 67);
2442
+ let accessibility = deserializeOptionTSAccessibility(pos + 69), readonly = deserializeBool(pos + 70), override = deserializeBool(pos + 71);
2443
2443
  if (accessibility === null && !readonly && !override) {
2444
- let optional = deserializeBool(pos + 64);
2444
+ let optional = deserializeBool(pos + 68);
2445
2445
  if (hasInitializer) {
2446
2446
  let start, end;
2447
2447
  param = parent = {
@@ -2498,7 +2498,7 @@ function deserializeFormalParameter(pos) {
2498
2498
  pattern.typeAnnotation = patternTypeAnnotation, patternTypeAnnotation !== null && (pattern.end = patternTypeAnnotation.end, pattern.range[1] = patternTypeAnnotation.end), parent = assignParam, assignParam.right = initializer, initializer !== null && (initializer.parent = assignParam), param.parameter = assignParam;
2499
2499
  } else {
2500
2500
  param.parameter = deserializeBindingPattern(pos + 32), param.parameter.decorators = [];
2501
- let paramOptional = deserializeBool(pos + 64);
2501
+ let paramOptional = deserializeBool(pos + 68);
2502
2502
  param.parameter.optional = paramOptional, parent = param.parameter;
2503
2503
  let paramTypeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 48);
2504
2504
  if (param.parameter.typeAnnotation = paramTypeAnnotation, paramTypeAnnotation !== null) param.parameter.end = paramTypeAnnotation.end, param.parameter.range[1] = paramTypeAnnotation.end;
@@ -2525,11 +2525,11 @@ function deserializeFunctionBody(pos) {
2525
2525
  return body.push(...deserializeVecStatement(pos + 32)), node.body = body, parent = previousParent, node;
2526
2526
  }
2527
2527
  function deserializeArrowFunctionExpression(pos) {
2528
- let expression = deserializeBool(pos + 44), start, end, previousParent = parent, node = parent = {
2528
+ let expression = deserializeBool(pos + 48), start, end, previousParent = parent, node = parent = {
2529
2529
  __proto__: NodeProto,
2530
2530
  type: "ArrowFunctionExpression",
2531
2531
  expression,
2532
- async: deserializeBool(pos + 45),
2532
+ async: deserializeBool(pos + 49),
2533
2533
  typeParameters: null,
2534
2534
  params: null,
2535
2535
  returnType: null,
@@ -2547,7 +2547,7 @@ function deserializeYieldExpression(pos) {
2547
2547
  let start, end, previousParent = parent, node = parent = {
2548
2548
  __proto__: NodeProto,
2549
2549
  type: "YieldExpression",
2550
- delegate: deserializeBool(pos + 24),
2550
+ delegate: deserializeBool(pos + 28),
2551
2551
  argument: null,
2552
2552
  start: start = deserializeU32(pos),
2553
2553
  end: end = deserializeU32(pos + 4),
@@ -2559,7 +2559,7 @@ function deserializeYieldExpression(pos) {
2559
2559
  function deserializeClass(pos) {
2560
2560
  let start, end, previousParent = parent, node = parent = {
2561
2561
  __proto__: NodeProto,
2562
- type: deserializeClassType(pos + 132),
2562
+ type: deserializeClassType(pos + 136),
2563
2563
  decorators: null,
2564
2564
  id: null,
2565
2565
  typeParameters: null,
@@ -2567,8 +2567,8 @@ function deserializeClass(pos) {
2567
2567
  superTypeArguments: null,
2568
2568
  implements: null,
2569
2569
  body: null,
2570
- abstract: deserializeBool(pos + 133),
2571
- declare: deserializeBool(pos + 134),
2570
+ abstract: deserializeBool(pos + 137),
2571
+ declare: deserializeBool(pos + 138),
2572
2572
  start: start = deserializeU32(pos),
2573
2573
  end: end = deserializeU32(pos + 4),
2574
2574
  range: [start, end],
@@ -2608,16 +2608,16 @@ function deserializeClassElement(pos) {
2608
2608
  function deserializeMethodDefinition(pos) {
2609
2609
  let start, end, previousParent = parent, node = parent = {
2610
2610
  __proto__: NodeProto,
2611
- type: deserializeMethodDefinitionType(pos + 56),
2611
+ type: deserializeMethodDefinitionType(pos + 60),
2612
2612
  decorators: null,
2613
2613
  key: null,
2614
2614
  value: null,
2615
- kind: deserializeMethodDefinitionKind(pos + 57),
2616
- computed: deserializeBool(pos + 58),
2617
- static: deserializeBool(pos + 59),
2618
- override: deserializeBool(pos + 60),
2619
- optional: deserializeBool(pos + 61),
2620
- accessibility: deserializeOptionTSAccessibility(pos + 62),
2615
+ kind: deserializeMethodDefinitionKind(pos + 61),
2616
+ computed: deserializeBool(pos + 62),
2617
+ static: deserializeBool(pos + 63),
2618
+ override: deserializeBool(pos + 64),
2619
+ optional: deserializeBool(pos + 65),
2620
+ accessibility: deserializeOptionTSAccessibility(pos + 66),
2621
2621
  start: start = deserializeU32(pos),
2622
2622
  end: end = deserializeU32(pos + 4),
2623
2623
  range: [start, end],
@@ -2635,19 +2635,19 @@ function deserializeMethodDefinitionType(pos) {
2635
2635
  function deserializePropertyDefinition(pos) {
2636
2636
  let start, end, previousParent = parent, node = parent = {
2637
2637
  __proto__: NodeProto,
2638
- type: deserializePropertyDefinitionType(pos + 72),
2638
+ type: deserializePropertyDefinitionType(pos + 76),
2639
2639
  decorators: null,
2640
2640
  key: null,
2641
2641
  typeAnnotation: null,
2642
2642
  value: null,
2643
- computed: deserializeBool(pos + 73),
2644
- static: deserializeBool(pos + 74),
2645
- declare: deserializeBool(pos + 75),
2646
- override: deserializeBool(pos + 76),
2647
- optional: deserializeBool(pos + 77),
2648
- definite: deserializeBool(pos + 78),
2649
- readonly: deserializeBool(pos + 79),
2650
- accessibility: deserializeOptionTSAccessibility(pos + 80),
2643
+ computed: deserializeBool(pos + 77),
2644
+ static: deserializeBool(pos + 78),
2645
+ declare: deserializeBool(pos + 79),
2646
+ override: deserializeBool(pos + 80),
2647
+ optional: deserializeBool(pos + 81),
2648
+ definite: deserializeBool(pos + 82),
2649
+ readonly: deserializeBool(pos + 83),
2650
+ accessibility: deserializeOptionTSAccessibility(pos + 84),
2651
2651
  start: start = deserializeU32(pos),
2652
2652
  end: end = deserializeU32(pos + 4),
2653
2653
  range: [start, end],
@@ -2705,16 +2705,16 @@ function deserializeAccessorPropertyType(pos) {
2705
2705
  function deserializeAccessorProperty(pos) {
2706
2706
  let start, end, previousParent = parent, node = parent = {
2707
2707
  __proto__: NodeProto,
2708
- type: deserializeAccessorPropertyType(pos + 72),
2708
+ type: deserializeAccessorPropertyType(pos + 76),
2709
2709
  decorators: null,
2710
2710
  key: null,
2711
2711
  typeAnnotation: null,
2712
2712
  value: null,
2713
- computed: deserializeBool(pos + 73),
2714
- static: deserializeBool(pos + 74),
2715
- override: deserializeBool(pos + 75),
2716
- definite: deserializeBool(pos + 76),
2717
- accessibility: deserializeOptionTSAccessibility(pos + 77),
2713
+ computed: deserializeBool(pos + 77),
2714
+ static: deserializeBool(pos + 78),
2715
+ override: deserializeBool(pos + 79),
2716
+ definite: deserializeBool(pos + 80),
2717
+ accessibility: deserializeOptionTSAccessibility(pos + 81),
2718
2718
  declare: null,
2719
2719
  optional: null,
2720
2720
  readonly: null,
@@ -2731,7 +2731,7 @@ function deserializeImportExpression(pos) {
2731
2731
  type: "ImportExpression",
2732
2732
  source: null,
2733
2733
  options: null,
2734
- phase: deserializeOptionImportPhase(pos + 40),
2734
+ phase: deserializeOptionImportPhase(pos + 44),
2735
2735
  start: start = deserializeU32(pos),
2736
2736
  end: end = deserializeU32(pos + 4),
2737
2737
  range: [start, end],
@@ -2745,9 +2745,9 @@ function deserializeImportDeclaration(pos) {
2745
2745
  type: "ImportDeclaration",
2746
2746
  specifiers: null,
2747
2747
  source: null,
2748
- phase: deserializeOptionImportPhase(pos + 88),
2748
+ phase: deserializeOptionImportPhase(pos + 92),
2749
2749
  attributes: null,
2750
- importKind: deserializeImportOrExportKind(pos + 89),
2750
+ importKind: deserializeImportOrExportKind(pos + 93),
2751
2751
  start: start = deserializeU32(pos),
2752
2752
  end: end = deserializeU32(pos + 4),
2753
2753
  range: [start, end],
@@ -2778,7 +2778,7 @@ function deserializeImportSpecifier(pos) {
2778
2778
  type: "ImportSpecifier",
2779
2779
  imported: null,
2780
2780
  local: null,
2781
- importKind: deserializeImportOrExportKind(pos + 96),
2781
+ importKind: deserializeImportOrExportKind(pos + 100),
2782
2782
  start: start = deserializeU32(pos),
2783
2783
  end: end = deserializeU32(pos + 4),
2784
2784
  range: [start, end],
@@ -2811,7 +2811,14 @@ function deserializeImportNamespaceSpecifier(pos) {
2811
2811
  return node.local = deserializeBindingIdentifier(pos + 8), parent = previousParent, node;
2812
2812
  }
2813
2813
  function deserializeWithClause(pos) {
2814
- return { attributes: deserializeVecImportAttribute(pos + 8) };
2814
+ let start, end;
2815
+ return {
2816
+ __proto__: NodeProto,
2817
+ attributes: deserializeVecImportAttribute(pos + 8),
2818
+ start: start = deserializeU32(pos),
2819
+ end: end = deserializeU32(pos + 4),
2820
+ range: [start, end]
2821
+ };
2815
2822
  }
2816
2823
  function deserializeImportAttribute(pos) {
2817
2824
  let start, end, previousParent = parent, node = parent = {
@@ -2840,7 +2847,7 @@ function deserializeExportNamedDeclaration(pos) {
2840
2847
  declaration: null,
2841
2848
  specifiers: null,
2842
2849
  source: null,
2843
- exportKind: deserializeImportOrExportKind(pos + 104),
2850
+ exportKind: deserializeImportOrExportKind(pos + 108),
2844
2851
  attributes: null,
2845
2852
  start: start = deserializeU32(pos),
2846
2853
  end: end = deserializeU32(pos + 4),
@@ -2869,7 +2876,7 @@ function deserializeExportAllDeclaration(pos) {
2869
2876
  exported: null,
2870
2877
  source: null,
2871
2878
  attributes: null,
2872
- exportKind: deserializeImportOrExportKind(pos + 120),
2879
+ exportKind: deserializeImportOrExportKind(pos + 124),
2873
2880
  start: start = deserializeU32(pos),
2874
2881
  end: end = deserializeU32(pos + 4),
2875
2882
  range: [start, end],
@@ -2883,7 +2890,7 @@ function deserializeExportSpecifier(pos) {
2883
2890
  type: "ExportSpecifier",
2884
2891
  local: null,
2885
2892
  exported: null,
2886
- exportKind: deserializeImportOrExportKind(pos + 120),
2893
+ exportKind: deserializeImportOrExportKind(pos + 124),
2887
2894
  start: start = deserializeU32(pos),
2888
2895
  end: end = deserializeU32(pos + 4),
2889
2896
  range: [start, end],
@@ -2961,10 +2968,10 @@ function deserializeV8IntrinsicExpression(pos) {
2961
2968
  range: [start, end],
2962
2969
  parent
2963
2970
  };
2964
- return node.name = deserializeIdentifierName(pos + 8), node.arguments = deserializeVecArgument(pos + 32), parent = previousParent, node;
2971
+ return node.name = deserializeIdentifierName(pos + 8), node.arguments = deserializeVecArgument(pos + 40), parent = previousParent, node;
2965
2972
  }
2966
2973
  function deserializeBooleanLiteral(pos) {
2967
- let value = deserializeBool(pos + 8), start = deserializeU32(pos), end = deserializeU32(pos + 4), previousParent = parent, node = parent = {
2974
+ let value = deserializeBool(pos + 12), start = deserializeU32(pos), end = deserializeU32(pos + 4), previousParent = parent, node = parent = {
2968
2975
  __proto__: NodeProto,
2969
2976
  type: "Literal",
2970
2977
  value,
@@ -3013,7 +3020,7 @@ function deserializeStringLiteral(pos) {
3013
3020
  range: [start, end],
3014
3021
  parent
3015
3022
  }, value = deserializeStr(pos + 8);
3016
- return deserializeBool(pos + 40) && (value = value.replace(/\uFFFD(.{4})/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16)))), node.value = value, parent = previousParent, node;
3023
+ return deserializeBool(pos + 44) && (value = value.replace(/\uFFFD(.{4})/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16)))), node.value = value, parent = previousParent, node;
3017
3024
  }
3018
3025
  function deserializeBigIntLiteral(pos) {
3019
3026
  let start, end, previousParent = parent, node = parent = {
@@ -3109,7 +3116,7 @@ function deserializeJSXFragment(pos) {
3109
3116
  range: [start, end],
3110
3117
  parent
3111
3118
  };
3112
- return node.openingFragment = deserializeJSXOpeningFragment(pos + 8), node.children = deserializeVecJSXChild(pos + 16), node.closingFragment = deserializeJSXClosingFragment(pos + 40), parent = previousParent, node;
3119
+ return node.openingFragment = deserializeJSXOpeningFragment(pos + 8), node.children = deserializeVecJSXChild(pos + 24), node.closingFragment = deserializeJSXClosingFragment(pos + 48), parent = previousParent, node;
3113
3120
  }
3114
3121
  function deserializeJSXOpeningFragment(pos) {
3115
3122
  let start, end, previousParent = parent, node = parent = {
@@ -3174,7 +3181,7 @@ function deserializeJSXNamespacedName(pos) {
3174
3181
  range: [start, end],
3175
3182
  parent
3176
3183
  };
3177
- return node.namespace = deserializeJSXIdentifier(pos + 8), node.name = deserializeJSXIdentifier(pos + 32), parent = previousParent, node;
3184
+ return node.namespace = deserializeJSXIdentifier(pos + 8), node.name = deserializeJSXIdentifier(pos + 40), parent = previousParent, node;
3178
3185
  }
3179
3186
  function deserializeJSXMemberExpression(pos) {
3180
3187
  let start, end, previousParent = parent, node = parent = {
@@ -3405,8 +3412,8 @@ function deserializeTSEnumDeclaration(pos) {
3405
3412
  type: "TSEnumDeclaration",
3406
3413
  id: null,
3407
3414
  body: null,
3408
- const: deserializeBool(pos + 80),
3409
- declare: deserializeBool(pos + 81),
3415
+ const: deserializeBool(pos + 84),
3416
+ declare: deserializeBool(pos + 85),
3410
3417
  start: start = deserializeU32(pos),
3411
3418
  end: end = deserializeU32(pos + 4),
3412
3419
  range: [start, end],
@@ -3573,7 +3580,7 @@ function deserializeTSTypeOperator(pos) {
3573
3580
  let start, end, previousParent = parent, node = parent = {
3574
3581
  __proto__: NodeProto,
3575
3582
  type: "TSTypeOperator",
3576
- operator: deserializeTSTypeOperatorOperator(pos + 24),
3583
+ operator: deserializeTSTypeOperatorOperator(pos + 28),
3577
3584
  typeAnnotation: null,
3578
3585
  start: start = deserializeU32(pos),
3579
3586
  end: end = deserializeU32(pos + 4),
@@ -3633,13 +3640,13 @@ function deserializeTSNamedTupleMember(pos) {
3633
3640
  type: "TSNamedTupleMember",
3634
3641
  label: null,
3635
3642
  elementType: null,
3636
- optional: deserializeBool(pos + 48),
3643
+ optional: deserializeBool(pos + 60),
3637
3644
  start: start = deserializeU32(pos),
3638
3645
  end: end = deserializeU32(pos + 4),
3639
3646
  range: [start, end],
3640
3647
  parent
3641
3648
  };
3642
- return node.label = deserializeIdentifierName(pos + 8), node.elementType = deserializeTSTupleElement(pos + 32), parent = previousParent, node;
3649
+ return node.label = deserializeIdentifierName(pos + 8), node.elementType = deserializeTSTupleElement(pos + 40), parent = previousParent, node;
3643
3650
  }
3644
3651
  function deserializeTSOptionalType(pos) {
3645
3652
  let start, end, previousParent = parent, node = parent = {
@@ -3916,9 +3923,9 @@ function deserializeTSTypeParameter(pos) {
3916
3923
  name: null,
3917
3924
  constraint: null,
3918
3925
  default: null,
3919
- in: deserializeBool(pos + 72),
3920
- out: deserializeBool(pos + 73),
3921
- const: deserializeBool(pos + 74),
3926
+ in: deserializeBool(pos + 76),
3927
+ out: deserializeBool(pos + 77),
3928
+ const: deserializeBool(pos + 78),
3922
3929
  start: start = deserializeU32(pos),
3923
3930
  end: end = deserializeU32(pos + 4),
3924
3931
  range: [start, end],
@@ -3945,7 +3952,7 @@ function deserializeTSTypeAliasDeclaration(pos) {
3945
3952
  id: null,
3946
3953
  typeParameters: null,
3947
3954
  typeAnnotation: null,
3948
- declare: deserializeBool(pos + 68),
3955
+ declare: deserializeBool(pos + 72),
3949
3956
  start: start = deserializeU32(pos),
3950
3957
  end: end = deserializeU32(pos + 4),
3951
3958
  range: [start, end],
@@ -4015,7 +4022,7 @@ function deserializeTSInterfaceDeclaration(pos) {
4015
4022
  typeParameters: null,
4016
4023
  extends: null,
4017
4024
  body: null,
4018
- declare: deserializeBool(pos + 84),
4025
+ declare: deserializeBool(pos + 88),
4019
4026
  start: start = deserializeU32(pos),
4020
4027
  end: end = deserializeU32(pos + 4),
4021
4028
  range: [start, end],
@@ -4039,9 +4046,9 @@ function deserializeTSPropertySignature(pos) {
4039
4046
  let start, end, previousParent = parent, node = parent = {
4040
4047
  __proto__: NodeProto,
4041
4048
  type: "TSPropertySignature",
4042
- computed: deserializeBool(pos + 32),
4043
- optional: deserializeBool(pos + 33),
4044
- readonly: deserializeBool(pos + 34),
4049
+ computed: deserializeBool(pos + 36),
4050
+ optional: deserializeBool(pos + 37),
4051
+ readonly: deserializeBool(pos + 38),
4045
4052
  key: null,
4046
4053
  typeAnnotation: null,
4047
4054
  accessibility: null,
@@ -4069,8 +4076,8 @@ function deserializeTSIndexSignature(pos) {
4069
4076
  type: "TSIndexSignature",
4070
4077
  parameters: null,
4071
4078
  typeAnnotation: null,
4072
- readonly: deserializeBool(pos + 40),
4073
- static: deserializeBool(pos + 41),
4079
+ readonly: deserializeBool(pos + 44),
4080
+ static: deserializeBool(pos + 45),
4074
4081
  accessibility: null,
4075
4082
  start: start = deserializeU32(pos),
4076
4083
  end: end = deserializeU32(pos + 4),
@@ -4106,9 +4113,9 @@ function deserializeTSMethodSignature(pos) {
4106
4113
  __proto__: NodeProto,
4107
4114
  type: "TSMethodSignature",
4108
4115
  key: null,
4109
- computed: deserializeBool(pos + 60),
4110
- optional: deserializeBool(pos + 61),
4111
- kind: deserializeTSMethodSignatureKind(pos + 62),
4116
+ computed: deserializeBool(pos + 64),
4117
+ optional: deserializeBool(pos + 65),
4118
+ kind: deserializeTSMethodSignatureKind(pos + 66),
4112
4119
  typeParameters: null,
4113
4120
  params: null,
4114
4121
  returnType: null,
@@ -4169,14 +4176,14 @@ function deserializeTSTypePredicate(pos) {
4169
4176
  __proto__: NodeProto,
4170
4177
  type: "TSTypePredicate",
4171
4178
  parameterName: null,
4172
- asserts: deserializeBool(pos + 32),
4179
+ asserts: deserializeBool(pos + 44),
4173
4180
  typeAnnotation: null,
4174
4181
  start: start = deserializeU32(pos),
4175
4182
  end: end = deserializeU32(pos + 4),
4176
4183
  range: [start, end],
4177
4184
  parent
4178
4185
  };
4179
- return node.parameterName = deserializeTSTypePredicateName(pos + 8), node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 24), parent = previousParent, node;
4186
+ return node.parameterName = deserializeTSTypePredicateName(pos + 8), node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 32), parent = previousParent, node;
4180
4187
  }
4181
4188
  function deserializeTSTypePredicateName(pos) {
4182
4189
  switch (uint8[pos]) {
@@ -4186,7 +4193,7 @@ function deserializeTSTypePredicateName(pos) {
4186
4193
  }
4187
4194
  }
4188
4195
  function deserializeTSModuleDeclaration(pos) {
4189
- let kind = deserializeTSModuleDeclarationKind(pos + 84), start = deserializeU32(pos), end = deserializeU32(pos + 4), declare = deserializeBool(pos + 85), node, previousParent = parent, body = deserializeOptionTSModuleDeclarationBody(pos + 64);
4196
+ let kind = deserializeTSModuleDeclarationKind(pos + 88), start = deserializeU32(pos), end = deserializeU32(pos + 4), declare = deserializeBool(pos + 89), node, previousParent = parent, body = deserializeOptionTSModuleDeclarationBody(pos + 64);
4190
4197
  if (body === null) node = parent = {
4191
4198
  __proto__: NodeProto,
4192
4199
  type: "TSModuleDeclaration",
@@ -4278,7 +4285,7 @@ function deserializeTSGlobalDeclaration(pos) {
4278
4285
  id: null,
4279
4286
  body: null,
4280
4287
  kind: null,
4281
- declare: deserializeBool(pos + 76),
4288
+ declare: deserializeBool(pos + 88),
4282
4289
  global: null,
4283
4290
  start: start = deserializeU32(pos),
4284
4291
  end: end = deserializeU32(pos + 4),
@@ -4409,7 +4416,7 @@ function deserializeTSConstructorType(pos) {
4409
4416
  let start, end, previousParent = parent, node = parent = {
4410
4417
  __proto__: NodeProto,
4411
4418
  type: "TSConstructorType",
4412
- abstract: deserializeBool(pos + 36),
4419
+ abstract: deserializeBool(pos + 40),
4413
4420
  typeParameters: null,
4414
4421
  params: null,
4415
4422
  returnType: null,
@@ -4429,12 +4436,12 @@ function deserializeTSMappedType(pos) {
4429
4436
  nameType: null,
4430
4437
  typeAnnotation: null,
4431
4438
  optional: null,
4432
- readonly: deserializeOptionTSMappedTypeModifierOperator(pos + 93),
4439
+ readonly: deserializeOptionTSMappedTypeModifierOperator(pos + 97),
4433
4440
  start: start = deserializeU32(pos),
4434
4441
  end: end = deserializeU32(pos + 4),
4435
4442
  range: [start, end],
4436
4443
  parent
4437
- }, optional = deserializeOptionTSMappedTypeModifierOperator(pos + 92);
4444
+ }, optional = deserializeOptionTSMappedTypeModifierOperator(pos + 96);
4438
4445
  return optional === null && (optional = !1), node.key = deserializeBindingIdentifier(pos + 8), node.constraint = deserializeTSType(pos + 40), node.nameType = deserializeOptionTSType(pos + 56), node.typeAnnotation = deserializeOptionTSType(pos + 72), node.optional = optional, parent = previousParent, node;
4439
4446
  }
4440
4447
  function deserializeTSMappedTypeModifierOperator(pos) {
@@ -4503,7 +4510,7 @@ function deserializeTSImportEqualsDeclaration(pos) {
4503
4510
  type: "TSImportEqualsDeclaration",
4504
4511
  id: null,
4505
4512
  moduleReference: null,
4506
- importKind: deserializeImportOrExportKind(pos + 56),
4513
+ importKind: deserializeImportOrExportKind(pos + 60),
4507
4514
  start: start = deserializeU32(pos),
4508
4515
  end: end = deserializeU32(pos + 4),
4509
4516
  range: [start, end],
@@ -4604,7 +4611,7 @@ function deserializeJSDocNullableType(pos) {
4604
4611
  __proto__: NodeProto,
4605
4612
  type: "TSJSDocNullableType",
4606
4613
  typeAnnotation: null,
4607
- postfix: deserializeBool(pos + 24),
4614
+ postfix: deserializeBool(pos + 28),
4608
4615
  start: start = deserializeU32(pos),
4609
4616
  end: end = deserializeU32(pos + 4),
4610
4617
  range: [start, end],
@@ -4617,7 +4624,7 @@ function deserializeJSDocNonNullableType(pos) {
4617
4624
  __proto__: NodeProto,
4618
4625
  type: "TSJSDocNonNullableType",
4619
4626
  typeAnnotation: null,
4620
- postfix: deserializeBool(pos + 24),
4627
+ postfix: deserializeBool(pos + 28),
4621
4628
  start: start = deserializeU32(pos),
4622
4629
  end: end = deserializeU32(pos + 4),
4623
4630
  range: [start, end],
@@ -4773,8 +4780,8 @@ function deserializeOptionHashbang(pos) {
4773
4780
  function deserializeVecDirective(pos) {
4774
4781
  let arr = [], pos32 = pos >> 2;
4775
4782
  pos = uint32[pos32];
4776
- let endPos = pos + uint32[pos32 + 2] * 72;
4777
- for (; pos !== endPos;) arr.push(deserializeDirective(pos)), pos += 72;
4783
+ let endPos = pos + uint32[pos32 + 2] * 80;
4784
+ for (; pos !== endPos;) arr.push(deserializeDirective(pos)), pos += 80;
4778
4785
  return arr;
4779
4786
  }
4780
4787
  function deserializeVecStatement(pos) {
@@ -4907,8 +4914,8 @@ function deserializeBoxV8IntrinsicExpression(pos) {
4907
4914
  function deserializeVecArrayExpressionElement(pos) {
4908
4915
  let arr = [], pos32 = pos >> 2;
4909
4916
  pos = uint32[pos32];
4910
- let endPos = pos + uint32[pos32 + 2] * 16;
4911
- for (; pos !== endPos;) arr.push(deserializeArrayExpressionElement(pos)), pos += 16;
4917
+ let endPos = pos + uint32[pos32 + 2] * 24;
4918
+ for (; pos !== endPos;) arr.push(deserializeArrayExpressionElement(pos)), pos += 24;
4912
4919
  return arr;
4913
4920
  }
4914
4921
  function deserializeBoxSpreadElement(pos) {
@@ -5113,8 +5120,8 @@ function deserializeOptionLabelIdentifier(pos) {
5113
5120
  function deserializeVecSwitchCase(pos) {
5114
5121
  let arr = [], pos32 = pos >> 2;
5115
5122
  pos = uint32[pos32];
5116
- let endPos = pos + uint32[pos32 + 2] * 48;
5117
- for (; pos !== endPos;) arr.push(deserializeSwitchCase(pos)), pos += 48;
5123
+ let endPos = pos + uint32[pos32 + 2] * 56;
5124
+ for (; pos !== endPos;) arr.push(deserializeSwitchCase(pos)), pos += 56;
5118
5125
  return arr;
5119
5126
  }
5120
5127
  function deserializeBoxCatchClause(pos) {
@@ -5198,8 +5205,8 @@ function deserializeVecFormalParameter(pos) {
5198
5205
  function deserializeVecDecorator(pos) {
5199
5206
  let arr = [], pos32 = pos >> 2;
5200
5207
  pos = uint32[pos32];
5201
- let endPos = pos + uint32[pos32 + 2] * 24;
5202
- for (; pos !== endPos;) arr.push(deserializeDecorator(pos)), pos += 24;
5208
+ let endPos = pos + uint32[pos32 + 2] * 32;
5209
+ for (; pos !== endPos;) arr.push(deserializeDecorator(pos)), pos += 32;
5203
5210
  return arr;
5204
5211
  }
5205
5212
  function deserializeBoxExpression(pos) {
@@ -5214,8 +5221,8 @@ function deserializeOptionTSAccessibility(pos) {
5214
5221
  function deserializeVecTSClassImplements(pos) {
5215
5222
  let arr = [], pos32 = pos >> 2;
5216
5223
  pos = uint32[pos32];
5217
- let endPos = pos + uint32[pos32 + 2] * 32;
5218
- for (; pos !== endPos;) arr.push(deserializeTSClassImplements(pos)), pos += 32;
5224
+ let endPos = pos + uint32[pos32 + 2] * 40;
5225
+ for (; pos !== endPos;) arr.push(deserializeTSClassImplements(pos)), pos += 40;
5219
5226
  return arr;
5220
5227
  }
5221
5228
  function deserializeBoxClassBody(pos) {
@@ -5292,8 +5299,8 @@ function deserializeBoxImportNamespaceSpecifier(pos) {
5292
5299
  function deserializeVecImportAttribute(pos) {
5293
5300
  let arr = [], pos32 = pos >> 2;
5294
5301
  pos = uint32[pos32];
5295
- let endPos = pos + uint32[pos32 + 2] * 112;
5296
- for (; pos !== endPos;) arr.push(deserializeImportAttribute(pos)), pos += 112;
5302
+ let endPos = pos + uint32[pos32 + 2] * 120;
5303
+ for (; pos !== endPos;) arr.push(deserializeImportAttribute(pos)), pos += 120;
5297
5304
  return arr;
5298
5305
  }
5299
5306
  function deserializeOptionDeclaration(pos) {
@@ -5307,7 +5314,7 @@ function deserializeVecExportSpecifier(pos) {
5307
5314
  return arr;
5308
5315
  }
5309
5316
  function deserializeOptionStringLiteral(pos) {
5310
- return uint8[pos + 40] === 2 ? null : deserializeStringLiteral(pos);
5317
+ return uint8[pos + 44] === 2 ? null : deserializeStringLiteral(pos);
5311
5318
  }
5312
5319
  function deserializeOptionModuleExportName(pos) {
5313
5320
  return uint8[pos] === 3 ? null : deserializeModuleExportName(pos);
@@ -5368,8 +5375,8 @@ function deserializeBoxJSXSpreadChild(pos) {
5368
5375
  function deserializeVecTSEnumMember(pos) {
5369
5376
  let arr = [], pos32 = pos >> 2;
5370
5377
  pos = uint32[pos32];
5371
- let endPos = pos + uint32[pos32 + 2] * 40;
5372
- for (; pos !== endPos;) arr.push(deserializeTSEnumMember(pos)), pos += 40;
5378
+ let endPos = pos + uint32[pos32 + 2] * 48;
5379
+ for (; pos !== endPos;) arr.push(deserializeTSEnumMember(pos)), pos += 48;
5373
5380
  return arr;
5374
5381
  }
5375
5382
  function deserializeBoxTSAnyKeyword(pos) {
@@ -5519,8 +5526,8 @@ function deserializeVecTSTypeParameter(pos) {
5519
5526
  function deserializeVecTSInterfaceHeritage(pos) {
5520
5527
  let arr = [], pos32 = pos >> 2;
5521
5528
  pos = uint32[pos32];
5522
- let endPos = pos + uint32[pos32 + 2] * 32;
5523
- for (; pos !== endPos;) arr.push(deserializeTSInterfaceHeritage(pos)), pos += 32;
5529
+ let endPos = pos + uint32[pos32 + 2] * 40;
5530
+ for (; pos !== endPos;) arr.push(deserializeTSInterfaceHeritage(pos)), pos += 40;
5524
5531
  return arr;
5525
5532
  }
5526
5533
  function deserializeBoxTSInterfaceBody(pos) {
@@ -5548,8 +5555,8 @@ function deserializeBoxTSMethodSignature(pos) {
5548
5555
  function deserializeVecTSIndexSignatureName(pos) {
5549
5556
  let arr = [], pos32 = pos >> 2;
5550
5557
  pos = uint32[pos32];
5551
- let endPos = pos + uint32[pos32 + 2] * 32;
5552
- for (; pos !== endPos;) arr.push(deserializeTSIndexSignatureName(pos)), pos += 32;
5558
+ let endPos = pos + uint32[pos32 + 2] * 40;
5559
+ for (; pos !== endPos;) arr.push(deserializeTSIndexSignatureName(pos)), pos += 40;
5553
5560
  return arr;
5554
5561
  }
5555
5562
  function deserializeOptionTSModuleDeclarationBody(pos) {
@@ -12201,8 +12208,9 @@ function validateAndConvertFix(fix) {
12201
12208
  throw Error(`Fix has invalid range: ${JSONStringify(fix, null, 2)}`);
12202
12209
  }
12203
12210
  const diagnostics = [], PLACEHOLDER_REGEX = /\{\{([^{}]+)\}\}/gu;
12204
- function report(diagnostic, ruleDetails) {
12211
+ function report(diagnostic, extraArgs, ruleDetails) {
12205
12212
  if (filePath === null) throw Error("Cannot report errors in `createOnce`");
12213
+ extraArgs.length > 0 && (diagnostic = convertLegacyCallArgs(diagnostic, extraArgs));
12206
12214
  let { message, messageId } = getMessage(ObjectHasOwn(diagnostic, "message") ? diagnostic.message : null, diagnostic, ruleDetails), start, end, loc;
12207
12215
  if (ObjectHasOwn(diagnostic, "loc") && (loc = diagnostic.loc) != null) {
12208
12216
  if (typeof loc != "object") throw TypeError("`loc` must be an object if provided");
@@ -12231,6 +12239,22 @@ function report(diagnostic, ruleDetails) {
12231
12239
  suggestions: getSuggestions(diagnostic, ruleDetails)
12232
12240
  });
12233
12241
  }
12242
+ function convertLegacyCallArgs(node, extraArgs) {
12243
+ let firstExtraArg = extraArgs[0];
12244
+ return typeof firstExtraArg == "string" ? {
12245
+ message: firstExtraArg,
12246
+ node,
12247
+ loc: void 0,
12248
+ data: extraArgs[1],
12249
+ fix: extraArgs[2]
12250
+ } : {
12251
+ message: extraArgs[1],
12252
+ node,
12253
+ loc: firstExtraArg,
12254
+ data: extraArgs[2],
12255
+ fix: extraArgs[3]
12256
+ };
12257
+ }
12234
12258
  function getMessage(message, descriptor, ruleDetails) {
12235
12259
  let messageId = null;
12236
12260
  if (ObjectHasOwn(descriptor, "messageId") && (messageId = descriptor.messageId ?? null), messageId !== null) {
@@ -12448,21 +12472,11 @@ function createContext(ruleDetails) {
12448
12472
  if (filePath === null) throw Error("Cannot access `context.options` in `createOnce`");
12449
12473
  return ruleDetails.options;
12450
12474
  },
12451
- report(diagnostic) {
12452
- report(normalizeReportCallArgs(diagnostic, arguments), ruleDetails);
12475
+ report(diagnostic, ...extraArgs) {
12476
+ report(diagnostic, extraArgs, ruleDetails);
12453
12477
  }
12454
12478
  });
12455
12479
  }
12456
- function normalizeReportCallArgs(diagnostic, args) {
12457
- if (args.length <= 1) return diagnostic;
12458
- let node = diagnostic, loc, message, data, fix;
12459
- typeof args[1] == "string" ? (message = args[1], data = args[2], fix = args[3]) : (loc = args[1], message = args[2], data = args[3], fix = args[4]);
12460
- let descriptor = {
12461
- node,
12462
- message
12463
- };
12464
- return loc !== void 0 && (descriptor.loc = loc), data !== void 0 && (descriptor.data = data), fix !== void 0 && (descriptor.fix = fix), descriptor;
12465
- }
12466
12480
  var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12467
12481
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
12468
12482
  (function(global, factory) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint",
3
- "version": "1.45.0",
3
+ "version": "1.47.0",
4
4
  "description": "Linter for the JavaScript Oxidation Compiler",
5
5
  "keywords": [
6
6
  "eslint",
@@ -81,24 +81,24 @@
81
81
  "node": "^20.19.0 || >=22.12.0"
82
82
  },
83
83
  "optionalDependencies": {
84
- "@oxlint/binding-darwin-arm64": "1.45.0",
85
- "@oxlint/binding-android-arm64": "1.45.0",
86
- "@oxlint/binding-win32-arm64-msvc": "1.45.0",
87
- "@oxlint/binding-linux-arm64-gnu": "1.45.0",
88
- "@oxlint/binding-linux-arm64-musl": "1.45.0",
89
- "@oxlint/binding-openharmony-arm64": "1.45.0",
90
- "@oxlint/binding-android-arm-eabi": "1.45.0",
91
- "@oxlint/binding-linux-arm-gnueabihf": "1.45.0",
92
- "@oxlint/binding-linux-arm-musleabihf": "1.45.0",
93
- "@oxlint/binding-win32-ia32-msvc": "1.45.0",
94
- "@oxlint/binding-linux-ppc64-gnu": "1.45.0",
95
- "@oxlint/binding-linux-riscv64-gnu": "1.45.0",
96
- "@oxlint/binding-linux-riscv64-musl": "1.45.0",
97
- "@oxlint/binding-linux-s390x-gnu": "1.45.0",
98
- "@oxlint/binding-darwin-x64": "1.45.0",
99
- "@oxlint/binding-win32-x64-msvc": "1.45.0",
100
- "@oxlint/binding-freebsd-x64": "1.45.0",
101
- "@oxlint/binding-linux-x64-gnu": "1.45.0",
102
- "@oxlint/binding-linux-x64-musl": "1.45.0"
84
+ "@oxlint/binding-darwin-arm64": "1.47.0",
85
+ "@oxlint/binding-android-arm64": "1.47.0",
86
+ "@oxlint/binding-win32-arm64-msvc": "1.47.0",
87
+ "@oxlint/binding-linux-arm64-gnu": "1.47.0",
88
+ "@oxlint/binding-linux-arm64-musl": "1.47.0",
89
+ "@oxlint/binding-openharmony-arm64": "1.47.0",
90
+ "@oxlint/binding-android-arm-eabi": "1.47.0",
91
+ "@oxlint/binding-linux-arm-gnueabihf": "1.47.0",
92
+ "@oxlint/binding-linux-arm-musleabihf": "1.47.0",
93
+ "@oxlint/binding-win32-ia32-msvc": "1.47.0",
94
+ "@oxlint/binding-linux-ppc64-gnu": "1.47.0",
95
+ "@oxlint/binding-linux-riscv64-gnu": "1.47.0",
96
+ "@oxlint/binding-linux-riscv64-musl": "1.47.0",
97
+ "@oxlint/binding-linux-s390x-gnu": "1.47.0",
98
+ "@oxlint/binding-darwin-x64": "1.47.0",
99
+ "@oxlint/binding-win32-x64-msvc": "1.47.0",
100
+ "@oxlint/binding-freebsd-x64": "1.47.0",
101
+ "@oxlint/binding-linux-x64-gnu": "1.47.0",
102
+ "@oxlint/binding-linux-x64-musl": "1.47.0"
103
103
  }
104
104
  }