@versatiles/versatiles-rs 4.13.0 → 4.14.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.
Files changed (4) hide show
  1. package/index.cjs +81 -82
  2. package/index.d.ts +1 -0
  3. package/index.js +81 -82
  4. package/package.json +12 -12
package/index.cjs CHANGED
@@ -1,4 +1,3 @@
1
- // prettier-ignore
2
1
  /* eslint-disable */
3
2
  // @ts-nocheck
4
3
  /* auto-generated by NAPI-RS */
@@ -63,7 +62,7 @@ const isMuslFromChildProcess = () => {
63
62
  function requireNative() {
64
63
  if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
65
64
  try {
66
- return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
65
+ return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)
67
66
  } catch (err) {
68
67
  loadErrors.push(err)
69
68
  }
@@ -77,8 +76,8 @@ function requireNative() {
77
76
  try {
78
77
  const binding = require('@versatiles/versatiles-rs-android-arm64')
79
78
  const bindingPackageVersion = require('@versatiles/versatiles-rs-android-arm64/package.json').version
80
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
79
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
80
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
82
81
  }
83
82
  return binding
84
83
  } catch (e) {
@@ -93,8 +92,8 @@ function requireNative() {
93
92
  try {
94
93
  const binding = require('@versatiles/versatiles-rs-android-arm-eabi')
95
94
  const bindingPackageVersion = require('@versatiles/versatiles-rs-android-arm-eabi/package.json').version
96
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
95
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
96
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
98
97
  }
99
98
  return binding
100
99
  } catch (e) {
@@ -107,36 +106,36 @@ function requireNative() {
107
106
  if (process.arch === 'x64') {
108
107
  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')) {
109
108
  try {
110
- return require('./versatiles.win32-x64-gnu.node')
111
- } catch (e) {
112
- loadErrors.push(e)
113
- }
114
- try {
115
- const binding = require('@versatiles/versatiles-rs-win32-x64-gnu')
116
- const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-x64-gnu/package.json').version
117
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
109
+ return require('./versatiles.win32-x64-gnu.node')
110
+ } catch (e) {
111
+ loadErrors.push(e)
112
+ }
113
+ try {
114
+ const binding = require('@versatiles/versatiles-rs-win32-x64-gnu')
115
+ const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-x64-gnu/package.json').version
116
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
117
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
118
+ }
119
+ return binding
120
+ } catch (e) {
121
+ loadErrors.push(e)
119
122
  }
120
- return binding
121
- } catch (e) {
122
- loadErrors.push(e)
123
- }
124
123
  } else {
125
124
  try {
126
- return require('./versatiles.win32-x64-msvc.node')
127
- } catch (e) {
128
- loadErrors.push(e)
129
- }
130
- try {
131
- const binding = require('@versatiles/versatiles-rs-win32-x64-msvc')
132
- const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-x64-msvc/package.json').version
133
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
125
+ return require('./versatiles.win32-x64-msvc.node')
126
+ } catch (e) {
127
+ loadErrors.push(e)
128
+ }
129
+ try {
130
+ const binding = require('@versatiles/versatiles-rs-win32-x64-msvc')
131
+ const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-x64-msvc/package.json').version
132
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
133
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
134
+ }
135
+ return binding
136
+ } catch (e) {
137
+ loadErrors.push(e)
135
138
  }
136
- return binding
137
- } catch (e) {
138
- loadErrors.push(e)
139
- }
140
139
  }
141
140
  } else if (process.arch === 'ia32') {
142
141
  try {
@@ -147,8 +146,8 @@ function requireNative() {
147
146
  try {
148
147
  const binding = require('@versatiles/versatiles-rs-win32-ia32-msvc')
149
148
  const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-ia32-msvc/package.json').version
150
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
149
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
150
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
151
  }
153
152
  return binding
154
153
  } catch (e) {
@@ -163,8 +162,8 @@ function requireNative() {
163
162
  try {
164
163
  const binding = require('@versatiles/versatiles-rs-win32-arm64-msvc')
165
164
  const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-arm64-msvc/package.json').version
166
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
165
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
166
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
168
167
  }
169
168
  return binding
170
169
  } catch (e) {
@@ -182,8 +181,8 @@ function requireNative() {
182
181
  try {
183
182
  const binding = require('@versatiles/versatiles-rs-darwin-universal')
184
183
  const bindingPackageVersion = require('@versatiles/versatiles-rs-darwin-universal/package.json').version
185
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
184
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
185
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
187
186
  }
188
187
  return binding
189
188
  } catch (e) {
@@ -198,8 +197,8 @@ function requireNative() {
198
197
  try {
199
198
  const binding = require('@versatiles/versatiles-rs-darwin-x64')
200
199
  const bindingPackageVersion = require('@versatiles/versatiles-rs-darwin-x64/package.json').version
201
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
200
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
201
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
203
202
  }
204
203
  return binding
205
204
  } catch (e) {
@@ -214,8 +213,8 @@ function requireNative() {
214
213
  try {
215
214
  const binding = require('@versatiles/versatiles-rs-darwin-arm64')
216
215
  const bindingPackageVersion = require('@versatiles/versatiles-rs-darwin-arm64/package.json').version
217
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
216
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
217
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
219
218
  }
220
219
  return binding
221
220
  } catch (e) {
@@ -234,8 +233,8 @@ function requireNative() {
234
233
  try {
235
234
  const binding = require('@versatiles/versatiles-rs-freebsd-x64')
236
235
  const bindingPackageVersion = require('@versatiles/versatiles-rs-freebsd-x64/package.json').version
237
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
236
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
237
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
239
238
  }
240
239
  return binding
241
240
  } catch (e) {
@@ -250,8 +249,8 @@ function requireNative() {
250
249
  try {
251
250
  const binding = require('@versatiles/versatiles-rs-freebsd-arm64')
252
251
  const bindingPackageVersion = require('@versatiles/versatiles-rs-freebsd-arm64/package.json').version
253
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
252
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
253
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
255
254
  }
256
255
  return binding
257
256
  } catch (e) {
@@ -271,8 +270,8 @@ function requireNative() {
271
270
  try {
272
271
  const binding = require('@versatiles/versatiles-rs-linux-x64-musl')
273
272
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-x64-musl/package.json').version
274
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
273
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
274
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
276
275
  }
277
276
  return binding
278
277
  } catch (e) {
@@ -287,8 +286,8 @@ function requireNative() {
287
286
  try {
288
287
  const binding = require('@versatiles/versatiles-rs-linux-x64-gnu')
289
288
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-x64-gnu/package.json').version
290
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
289
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
290
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
292
291
  }
293
292
  return binding
294
293
  } catch (e) {
@@ -305,8 +304,8 @@ function requireNative() {
305
304
  try {
306
305
  const binding = require('@versatiles/versatiles-rs-linux-arm64-musl')
307
306
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-arm64-musl/package.json').version
308
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
307
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
308
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
310
309
  }
311
310
  return binding
312
311
  } catch (e) {
@@ -321,8 +320,8 @@ function requireNative() {
321
320
  try {
322
321
  const binding = require('@versatiles/versatiles-rs-linux-arm64-gnu')
323
322
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-arm64-gnu/package.json').version
324
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
323
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
324
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
326
325
  }
327
326
  return binding
328
327
  } catch (e) {
@@ -339,8 +338,8 @@ function requireNative() {
339
338
  try {
340
339
  const binding = require('@versatiles/versatiles-rs-linux-arm-musleabihf')
341
340
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-arm-musleabihf/package.json').version
342
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
341
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
342
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
344
343
  }
345
344
  return binding
346
345
  } catch (e) {
@@ -355,8 +354,8 @@ function requireNative() {
355
354
  try {
356
355
  const binding = require('@versatiles/versatiles-rs-linux-arm-gnueabihf')
357
356
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-arm-gnueabihf/package.json').version
358
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
357
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
358
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
360
359
  }
361
360
  return binding
362
361
  } catch (e) {
@@ -373,8 +372,8 @@ function requireNative() {
373
372
  try {
374
373
  const binding = require('@versatiles/versatiles-rs-linux-loong64-musl')
375
374
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-loong64-musl/package.json').version
376
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
375
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
376
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
378
377
  }
379
378
  return binding
380
379
  } catch (e) {
@@ -389,8 +388,8 @@ function requireNative() {
389
388
  try {
390
389
  const binding = require('@versatiles/versatiles-rs-linux-loong64-gnu')
391
390
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-loong64-gnu/package.json').version
392
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
391
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
392
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
394
393
  }
395
394
  return binding
396
395
  } catch (e) {
@@ -407,8 +406,8 @@ function requireNative() {
407
406
  try {
408
407
  const binding = require('@versatiles/versatiles-rs-linux-riscv64-musl')
409
408
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-riscv64-musl/package.json').version
410
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
409
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
410
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
412
411
  }
413
412
  return binding
414
413
  } catch (e) {
@@ -423,8 +422,8 @@ function requireNative() {
423
422
  try {
424
423
  const binding = require('@versatiles/versatiles-rs-linux-riscv64-gnu')
425
424
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-riscv64-gnu/package.json').version
426
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
425
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
426
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
428
427
  }
429
428
  return binding
430
429
  } catch (e) {
@@ -440,8 +439,8 @@ function requireNative() {
440
439
  try {
441
440
  const binding = require('@versatiles/versatiles-rs-linux-ppc64-gnu')
442
441
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-ppc64-gnu/package.json').version
443
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
442
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
443
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
445
444
  }
446
445
  return binding
447
446
  } catch (e) {
@@ -456,8 +455,8 @@ function requireNative() {
456
455
  try {
457
456
  const binding = require('@versatiles/versatiles-rs-linux-s390x-gnu')
458
457
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-s390x-gnu/package.json').version
459
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
458
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
459
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
460
  }
462
461
  return binding
463
462
  } catch (e) {
@@ -476,8 +475,8 @@ function requireNative() {
476
475
  try {
477
476
  const binding = require('@versatiles/versatiles-rs-openharmony-arm64')
478
477
  const bindingPackageVersion = require('@versatiles/versatiles-rs-openharmony-arm64/package.json').version
479
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
478
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
479
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
481
480
  }
482
481
  return binding
483
482
  } catch (e) {
@@ -492,8 +491,8 @@ function requireNative() {
492
491
  try {
493
492
  const binding = require('@versatiles/versatiles-rs-openharmony-x64')
494
493
  const bindingPackageVersion = require('@versatiles/versatiles-rs-openharmony-x64/package.json').version
495
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
494
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
495
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
497
496
  }
498
497
  return binding
499
498
  } catch (e) {
@@ -508,8 +507,8 @@ function requireNative() {
508
507
  try {
509
508
  const binding = require('@versatiles/versatiles-rs-openharmony-arm')
510
509
  const bindingPackageVersion = require('@versatiles/versatiles-rs-openharmony-arm/package.json').version
511
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
510
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
511
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
512
  }
514
513
  return binding
515
514
  } catch (e) {
@@ -550,7 +549,7 @@ function createLoadErrorChain(errors) {
550
549
  //
551
550
  // NAPI_RS_WASI_FLAVOR selects one exact generated flavor and implies strict
552
551
  // WASI loading. It never crosses into another flavor or falls back to native.
553
- const __napiWasiFlavors = ["wasm32-wasi"]
552
+ const __napiWasiFlavors = ['wasm32-wasi']
554
553
  const __napiWasiFlavor = process.env.NAPI_RS_WASI_FLAVOR
555
554
  const __napiWasiFlavorRequested =
556
555
  typeof __napiWasiFlavor === 'string' && __napiWasiFlavor.length > 0
@@ -619,11 +618,11 @@ if (!nativeBinding || forceWasi) {
619
618
  }
620
619
  return null
621
620
  }
622
- if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === "wasm32-wasi")) {
621
+ if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
623
622
  let candidateError = null
624
623
  let candidateFailed = false
625
624
  try {
626
- candidateError = __napiWasiResolveCandidate('./versatiles.wasi.cjs', false, ["./versatiles.wasm32-wasi.debug.wasm","./versatiles.wasm32-wasi.wasm"])
625
+ candidateError = __napiWasiResolveCandidate('./versatiles.wasi.cjs', false, ['./versatiles.wasm32-wasi.debug.wasm', './versatiles.wasm32-wasi.wasm'])
627
626
  candidateFailed = candidateError !== null
628
627
  if (!candidateFailed) {
629
628
  wasiBinding = require('./versatiles.wasi.cjs')
@@ -639,7 +638,7 @@ if (!nativeBinding || forceWasi) {
639
638
  loadErrors.push(candidateError)
640
639
  }
641
640
  }
642
- if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === "wasm32-wasi")) {
641
+ if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
643
642
  let candidateError = null
644
643
  let candidateFailed = false
645
644
  try {
@@ -648,8 +647,8 @@ if (!nativeBinding || forceWasi) {
648
647
  if (!candidateFailed) {
649
648
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
650
649
  const bindingPackageVersion = require('@versatiles/versatiles-rs-wasm32-wasi/package.json').version
651
- if (bindingPackageVersion !== '4.13.0') {
652
- throw new Error(`WASI binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
650
+ if (bindingPackageVersion !== '4.14.0') {
651
+ throw new Error(`WASI binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
653
652
  }
654
653
  }
655
654
  wasiBinding = require('@versatiles/versatiles-rs-wasm32-wasi')
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
+
3
4
  /**
4
5
  * Progress monitor for long-running operations
5
6
  *
package/index.js CHANGED
@@ -1,4 +1,3 @@
1
- // prettier-ignore
2
1
  /* eslint-disable */
3
2
  // @ts-nocheck
4
3
  /* auto-generated by NAPI-RS */
@@ -66,7 +65,7 @@ const isMuslFromChildProcess = () => {
66
65
  function requireNative() {
67
66
  if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
68
67
  try {
69
- return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
68
+ return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)
70
69
  } catch (err) {
71
70
  loadErrors.push(err)
72
71
  }
@@ -80,8 +79,8 @@ function requireNative() {
80
79
  try {
81
80
  const binding = require('@versatiles/versatiles-rs-android-arm64')
82
81
  const bindingPackageVersion = require('@versatiles/versatiles-rs-android-arm64/package.json').version
83
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
84
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
82
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
83
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
85
84
  }
86
85
  return binding
87
86
  } catch (e) {
@@ -96,8 +95,8 @@ function requireNative() {
96
95
  try {
97
96
  const binding = require('@versatiles/versatiles-rs-android-arm-eabi')
98
97
  const bindingPackageVersion = require('@versatiles/versatiles-rs-android-arm-eabi/package.json').version
99
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
100
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
98
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
99
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
101
100
  }
102
101
  return binding
103
102
  } catch (e) {
@@ -110,36 +109,36 @@ function requireNative() {
110
109
  if (process.arch === 'x64') {
111
110
  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')) {
112
111
  try {
113
- return require('./versatiles.win32-x64-gnu.node')
114
- } catch (e) {
115
- loadErrors.push(e)
116
- }
117
- try {
118
- const binding = require('@versatiles/versatiles-rs-win32-x64-gnu')
119
- const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-x64-gnu/package.json').version
120
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
121
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
112
+ return require('./versatiles.win32-x64-gnu.node')
113
+ } catch (e) {
114
+ loadErrors.push(e)
115
+ }
116
+ try {
117
+ const binding = require('@versatiles/versatiles-rs-win32-x64-gnu')
118
+ const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-x64-gnu/package.json').version
119
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
120
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
121
+ }
122
+ return binding
123
+ } catch (e) {
124
+ loadErrors.push(e)
122
125
  }
123
- return binding
124
- } catch (e) {
125
- loadErrors.push(e)
126
- }
127
126
  } else {
128
127
  try {
129
- return require('./versatiles.win32-x64-msvc.node')
130
- } catch (e) {
131
- loadErrors.push(e)
132
- }
133
- try {
134
- const binding = require('@versatiles/versatiles-rs-win32-x64-msvc')
135
- const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-x64-msvc/package.json').version
136
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
137
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
128
+ return require('./versatiles.win32-x64-msvc.node')
129
+ } catch (e) {
130
+ loadErrors.push(e)
131
+ }
132
+ try {
133
+ const binding = require('@versatiles/versatiles-rs-win32-x64-msvc')
134
+ const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-x64-msvc/package.json').version
135
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
136
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
137
+ }
138
+ return binding
139
+ } catch (e) {
140
+ loadErrors.push(e)
138
141
  }
139
- return binding
140
- } catch (e) {
141
- loadErrors.push(e)
142
- }
143
142
  }
144
143
  } else if (process.arch === 'ia32') {
145
144
  try {
@@ -150,8 +149,8 @@ function requireNative() {
150
149
  try {
151
150
  const binding = require('@versatiles/versatiles-rs-win32-ia32-msvc')
152
151
  const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-ia32-msvc/package.json').version
153
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
154
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
153
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
155
154
  }
156
155
  return binding
157
156
  } catch (e) {
@@ -166,8 +165,8 @@ function requireNative() {
166
165
  try {
167
166
  const binding = require('@versatiles/versatiles-rs-win32-arm64-msvc')
168
167
  const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-arm64-msvc/package.json').version
169
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
170
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
168
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
169
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
171
170
  }
172
171
  return binding
173
172
  } catch (e) {
@@ -185,8 +184,8 @@ function requireNative() {
185
184
  try {
186
185
  const binding = require('@versatiles/versatiles-rs-darwin-universal')
187
186
  const bindingPackageVersion = require('@versatiles/versatiles-rs-darwin-universal/package.json').version
188
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
189
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
187
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
188
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
190
189
  }
191
190
  return binding
192
191
  } catch (e) {
@@ -201,8 +200,8 @@ function requireNative() {
201
200
  try {
202
201
  const binding = require('@versatiles/versatiles-rs-darwin-x64')
203
202
  const bindingPackageVersion = require('@versatiles/versatiles-rs-darwin-x64/package.json').version
204
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
205
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
203
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
204
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
206
205
  }
207
206
  return binding
208
207
  } catch (e) {
@@ -217,8 +216,8 @@ function requireNative() {
217
216
  try {
218
217
  const binding = require('@versatiles/versatiles-rs-darwin-arm64')
219
218
  const bindingPackageVersion = require('@versatiles/versatiles-rs-darwin-arm64/package.json').version
220
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
221
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
219
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
220
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
222
221
  }
223
222
  return binding
224
223
  } catch (e) {
@@ -237,8 +236,8 @@ function requireNative() {
237
236
  try {
238
237
  const binding = require('@versatiles/versatiles-rs-freebsd-x64')
239
238
  const bindingPackageVersion = require('@versatiles/versatiles-rs-freebsd-x64/package.json').version
240
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
241
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
239
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
240
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
242
241
  }
243
242
  return binding
244
243
  } catch (e) {
@@ -253,8 +252,8 @@ function requireNative() {
253
252
  try {
254
253
  const binding = require('@versatiles/versatiles-rs-freebsd-arm64')
255
254
  const bindingPackageVersion = require('@versatiles/versatiles-rs-freebsd-arm64/package.json').version
256
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
257
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
255
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
256
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
258
257
  }
259
258
  return binding
260
259
  } catch (e) {
@@ -274,8 +273,8 @@ function requireNative() {
274
273
  try {
275
274
  const binding = require('@versatiles/versatiles-rs-linux-x64-musl')
276
275
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-x64-musl/package.json').version
277
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
278
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
276
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
277
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
279
278
  }
280
279
  return binding
281
280
  } catch (e) {
@@ -290,8 +289,8 @@ function requireNative() {
290
289
  try {
291
290
  const binding = require('@versatiles/versatiles-rs-linux-x64-gnu')
292
291
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-x64-gnu/package.json').version
293
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
294
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
292
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
293
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
295
294
  }
296
295
  return binding
297
296
  } catch (e) {
@@ -308,8 +307,8 @@ function requireNative() {
308
307
  try {
309
308
  const binding = require('@versatiles/versatiles-rs-linux-arm64-musl')
310
309
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-arm64-musl/package.json').version
311
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
312
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
310
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
311
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
313
312
  }
314
313
  return binding
315
314
  } catch (e) {
@@ -324,8 +323,8 @@ function requireNative() {
324
323
  try {
325
324
  const binding = require('@versatiles/versatiles-rs-linux-arm64-gnu')
326
325
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-arm64-gnu/package.json').version
327
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
328
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
326
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
327
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
329
328
  }
330
329
  return binding
331
330
  } catch (e) {
@@ -342,8 +341,8 @@ function requireNative() {
342
341
  try {
343
342
  const binding = require('@versatiles/versatiles-rs-linux-arm-musleabihf')
344
343
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-arm-musleabihf/package.json').version
345
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
346
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
344
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
345
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
347
346
  }
348
347
  return binding
349
348
  } catch (e) {
@@ -358,8 +357,8 @@ function requireNative() {
358
357
  try {
359
358
  const binding = require('@versatiles/versatiles-rs-linux-arm-gnueabihf')
360
359
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-arm-gnueabihf/package.json').version
361
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
362
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
360
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
361
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
363
362
  }
364
363
  return binding
365
364
  } catch (e) {
@@ -376,8 +375,8 @@ function requireNative() {
376
375
  try {
377
376
  const binding = require('@versatiles/versatiles-rs-linux-loong64-musl')
378
377
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-loong64-musl/package.json').version
379
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
380
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
378
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
379
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
381
380
  }
382
381
  return binding
383
382
  } catch (e) {
@@ -392,8 +391,8 @@ function requireNative() {
392
391
  try {
393
392
  const binding = require('@versatiles/versatiles-rs-linux-loong64-gnu')
394
393
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-loong64-gnu/package.json').version
395
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
396
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
394
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
395
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
397
396
  }
398
397
  return binding
399
398
  } catch (e) {
@@ -410,8 +409,8 @@ function requireNative() {
410
409
  try {
411
410
  const binding = require('@versatiles/versatiles-rs-linux-riscv64-musl')
412
411
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-riscv64-musl/package.json').version
413
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
414
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
412
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
413
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
415
414
  }
416
415
  return binding
417
416
  } catch (e) {
@@ -426,8 +425,8 @@ function requireNative() {
426
425
  try {
427
426
  const binding = require('@versatiles/versatiles-rs-linux-riscv64-gnu')
428
427
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-riscv64-gnu/package.json').version
429
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
430
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
428
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
429
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
431
430
  }
432
431
  return binding
433
432
  } catch (e) {
@@ -443,8 +442,8 @@ function requireNative() {
443
442
  try {
444
443
  const binding = require('@versatiles/versatiles-rs-linux-ppc64-gnu')
445
444
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-ppc64-gnu/package.json').version
446
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
447
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
445
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
446
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
448
447
  }
449
448
  return binding
450
449
  } catch (e) {
@@ -459,8 +458,8 @@ function requireNative() {
459
458
  try {
460
459
  const binding = require('@versatiles/versatiles-rs-linux-s390x-gnu')
461
460
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-s390x-gnu/package.json').version
462
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
463
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
462
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
464
463
  }
465
464
  return binding
466
465
  } catch (e) {
@@ -479,8 +478,8 @@ function requireNative() {
479
478
  try {
480
479
  const binding = require('@versatiles/versatiles-rs-openharmony-arm64')
481
480
  const bindingPackageVersion = require('@versatiles/versatiles-rs-openharmony-arm64/package.json').version
482
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
483
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
481
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
482
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
484
483
  }
485
484
  return binding
486
485
  } catch (e) {
@@ -495,8 +494,8 @@ function requireNative() {
495
494
  try {
496
495
  const binding = require('@versatiles/versatiles-rs-openharmony-x64')
497
496
  const bindingPackageVersion = require('@versatiles/versatiles-rs-openharmony-x64/package.json').version
498
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
499
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
497
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
498
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
500
499
  }
501
500
  return binding
502
501
  } catch (e) {
@@ -511,8 +510,8 @@ function requireNative() {
511
510
  try {
512
511
  const binding = require('@versatiles/versatiles-rs-openharmony-arm')
513
512
  const bindingPackageVersion = require('@versatiles/versatiles-rs-openharmony-arm/package.json').version
514
- if (bindingPackageVersion !== '4.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
515
- throw new Error(`Native binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
+ if (bindingPackageVersion !== '4.14.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
514
+ throw new Error(`Native binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
516
515
  }
517
516
  return binding
518
517
  } catch (e) {
@@ -553,7 +552,7 @@ function createLoadErrorChain(errors) {
553
552
  //
554
553
  // NAPI_RS_WASI_FLAVOR selects one exact generated flavor and implies strict
555
554
  // WASI loading. It never crosses into another flavor or falls back to native.
556
- const __napiWasiFlavors = ["wasm32-wasi"]
555
+ const __napiWasiFlavors = ['wasm32-wasi']
557
556
  const __napiWasiFlavor = process.env.NAPI_RS_WASI_FLAVOR
558
557
  const __napiWasiFlavorRequested =
559
558
  typeof __napiWasiFlavor === 'string' && __napiWasiFlavor.length > 0
@@ -622,11 +621,11 @@ if (!nativeBinding || forceWasi) {
622
621
  }
623
622
  return null
624
623
  }
625
- if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === "wasm32-wasi")) {
624
+ if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
626
625
  let candidateError = null
627
626
  let candidateFailed = false
628
627
  try {
629
- candidateError = __napiWasiResolveCandidate('./versatiles.wasi.cjs', false, ["./versatiles.wasm32-wasi.debug.wasm","./versatiles.wasm32-wasi.wasm"])
628
+ candidateError = __napiWasiResolveCandidate('./versatiles.wasi.cjs', false, ['./versatiles.wasm32-wasi.debug.wasm', './versatiles.wasm32-wasi.wasm'])
630
629
  candidateFailed = candidateError !== null
631
630
  if (!candidateFailed) {
632
631
  wasiBinding = require('./versatiles.wasi.cjs')
@@ -642,7 +641,7 @@ if (!nativeBinding || forceWasi) {
642
641
  loadErrors.push(candidateError)
643
642
  }
644
643
  }
645
- if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === "wasm32-wasi")) {
644
+ if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
646
645
  let candidateError = null
647
646
  let candidateFailed = false
648
647
  try {
@@ -651,8 +650,8 @@ if (!nativeBinding || forceWasi) {
651
650
  if (!candidateFailed) {
652
651
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
653
652
  const bindingPackageVersion = require('@versatiles/versatiles-rs-wasm32-wasi/package.json').version
654
- if (bindingPackageVersion !== '4.13.0') {
655
- throw new Error(`WASI binding package version mismatch, expected 4.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
653
+ if (bindingPackageVersion !== '4.14.0') {
654
+ throw new Error(`WASI binding package version mismatch, expected 4.14.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
656
655
  }
657
656
  }
658
657
  wasiBinding = require('@versatiles/versatiles-rs-wasm32-wasi')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versatiles/versatiles-rs",
3
- "version": "4.13.0",
3
+ "version": "4.14.0",
4
4
  "description": "Node.js bindings for VersaTiles - convert, serve, and process map tiles",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -87,8 +87,8 @@
87
87
  },
88
88
  "devDependencies": {
89
89
  "@eslint/js": "^10.0.1",
90
- "@napi-rs/cli": "^3.9.0",
91
- "@types/node": "^26.4.1",
90
+ "@napi-rs/cli": "^3.9.1",
91
+ "@types/node": "^26.5.1",
92
92
  "@vitest/ui": "^5.0.0",
93
93
  "chalk": "^6.0.0",
94
94
  "eslint": "^10.10.0",
@@ -98,18 +98,18 @@
98
98
  "tsx": "^4.23.13",
99
99
  "typedoc": "^0.28.20",
100
100
  "typescript": "^6.0.3",
101
- "typescript-eslint": "^8.69.0",
101
+ "typescript-eslint": "^8.70.0",
102
102
  "vitest": "^5.0.0"
103
103
  },
104
104
  "optionalDependencies": {
105
- "@versatiles/versatiles-rs-darwin-arm64": "4.13.0",
106
- "@versatiles/versatiles-rs-darwin-x64": "4.13.0",
107
- "@versatiles/versatiles-rs-linux-arm64-gnu": "4.13.0",
108
- "@versatiles/versatiles-rs-linux-arm64-musl": "4.13.0",
109
- "@versatiles/versatiles-rs-linux-x64-gnu": "4.13.0",
110
- "@versatiles/versatiles-rs-linux-x64-musl": "4.13.0",
111
- "@versatiles/versatiles-rs-win32-arm64-msvc": "4.13.0",
112
- "@versatiles/versatiles-rs-win32-x64-msvc": "4.13.0"
105
+ "@versatiles/versatiles-rs-darwin-arm64": "4.14.0",
106
+ "@versatiles/versatiles-rs-darwin-x64": "4.14.0",
107
+ "@versatiles/versatiles-rs-linux-arm64-gnu": "4.14.0",
108
+ "@versatiles/versatiles-rs-linux-arm64-musl": "4.14.0",
109
+ "@versatiles/versatiles-rs-linux-x64-gnu": "4.14.0",
110
+ "@versatiles/versatiles-rs-linux-x64-musl": "4.14.0",
111
+ "@versatiles/versatiles-rs-win32-arm64-msvc": "4.14.0",
112
+ "@versatiles/versatiles-rs-win32-x64-msvc": "4.14.0"
113
113
  },
114
114
  "allowScripts": {
115
115
  "esbuild": true,