@versatiles/versatiles-rs 4.12.3 → 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 -83
  4. package/package.json +16 -16
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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3' && 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.12.3 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.12.3') {
652
- throw new Error(`WASI binding package version mismatch, expected 4.12.3 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,11 +1,9 @@
1
- // prettier-ignore
2
1
  /* eslint-disable */
3
2
  // @ts-nocheck
4
3
  /* auto-generated by NAPI-RS */
5
4
 
6
5
  import { createRequire } from 'module'
7
6
  const require = createRequire(import.meta.url)
8
- const __dirname = new URL('.', import.meta.url).pathname
9
7
 
10
8
  const { readFileSync } = require('fs')
11
9
  let nativeBinding = null
@@ -67,7 +65,7 @@ const isMuslFromChildProcess = () => {
67
65
  function requireNative() {
68
66
  if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
69
67
  try {
70
- return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
68
+ return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)
71
69
  } catch (err) {
72
70
  loadErrors.push(err)
73
71
  }
@@ -81,8 +79,8 @@ function requireNative() {
81
79
  try {
82
80
  const binding = require('@versatiles/versatiles-rs-android-arm64')
83
81
  const bindingPackageVersion = require('@versatiles/versatiles-rs-android-arm64/package.json').version
84
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
85
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
86
84
  }
87
85
  return binding
88
86
  } catch (e) {
@@ -97,8 +95,8 @@ function requireNative() {
97
95
  try {
98
96
  const binding = require('@versatiles/versatiles-rs-android-arm-eabi')
99
97
  const bindingPackageVersion = require('@versatiles/versatiles-rs-android-arm-eabi/package.json').version
100
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
101
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
102
100
  }
103
101
  return binding
104
102
  } catch (e) {
@@ -111,36 +109,36 @@ function requireNative() {
111
109
  if (process.arch === 'x64') {
112
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')) {
113
111
  try {
114
- return require('./versatiles.win32-x64-gnu.node')
115
- } catch (e) {
116
- loadErrors.push(e)
117
- }
118
- try {
119
- const binding = require('@versatiles/versatiles-rs-win32-x64-gnu')
120
- const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-x64-gnu/package.json').version
121
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
122
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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)
123
125
  }
124
- return binding
125
- } catch (e) {
126
- loadErrors.push(e)
127
- }
128
126
  } else {
129
127
  try {
130
- return require('./versatiles.win32-x64-msvc.node')
131
- } catch (e) {
132
- loadErrors.push(e)
133
- }
134
- try {
135
- const binding = require('@versatiles/versatiles-rs-win32-x64-msvc')
136
- const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-x64-msvc/package.json').version
137
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
138
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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)
139
141
  }
140
- return binding
141
- } catch (e) {
142
- loadErrors.push(e)
143
- }
144
142
  }
145
143
  } else if (process.arch === 'ia32') {
146
144
  try {
@@ -151,8 +149,8 @@ function requireNative() {
151
149
  try {
152
150
  const binding = require('@versatiles/versatiles-rs-win32-ia32-msvc')
153
151
  const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-ia32-msvc/package.json').version
154
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
155
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
156
154
  }
157
155
  return binding
158
156
  } catch (e) {
@@ -167,8 +165,8 @@ function requireNative() {
167
165
  try {
168
166
  const binding = require('@versatiles/versatiles-rs-win32-arm64-msvc')
169
167
  const bindingPackageVersion = require('@versatiles/versatiles-rs-win32-arm64-msvc/package.json').version
170
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
171
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
172
170
  }
173
171
  return binding
174
172
  } catch (e) {
@@ -186,8 +184,8 @@ function requireNative() {
186
184
  try {
187
185
  const binding = require('@versatiles/versatiles-rs-darwin-universal')
188
186
  const bindingPackageVersion = require('@versatiles/versatiles-rs-darwin-universal/package.json').version
189
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
190
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
191
189
  }
192
190
  return binding
193
191
  } catch (e) {
@@ -202,8 +200,8 @@ function requireNative() {
202
200
  try {
203
201
  const binding = require('@versatiles/versatiles-rs-darwin-x64')
204
202
  const bindingPackageVersion = require('@versatiles/versatiles-rs-darwin-x64/package.json').version
205
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
206
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
207
205
  }
208
206
  return binding
209
207
  } catch (e) {
@@ -218,8 +216,8 @@ function requireNative() {
218
216
  try {
219
217
  const binding = require('@versatiles/versatiles-rs-darwin-arm64')
220
218
  const bindingPackageVersion = require('@versatiles/versatiles-rs-darwin-arm64/package.json').version
221
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
222
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
223
221
  }
224
222
  return binding
225
223
  } catch (e) {
@@ -238,8 +236,8 @@ function requireNative() {
238
236
  try {
239
237
  const binding = require('@versatiles/versatiles-rs-freebsd-x64')
240
238
  const bindingPackageVersion = require('@versatiles/versatiles-rs-freebsd-x64/package.json').version
241
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
242
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
243
241
  }
244
242
  return binding
245
243
  } catch (e) {
@@ -254,8 +252,8 @@ function requireNative() {
254
252
  try {
255
253
  const binding = require('@versatiles/versatiles-rs-freebsd-arm64')
256
254
  const bindingPackageVersion = require('@versatiles/versatiles-rs-freebsd-arm64/package.json').version
257
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
258
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
259
257
  }
260
258
  return binding
261
259
  } catch (e) {
@@ -275,8 +273,8 @@ function requireNative() {
275
273
  try {
276
274
  const binding = require('@versatiles/versatiles-rs-linux-x64-musl')
277
275
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-x64-musl/package.json').version
278
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
279
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
280
278
  }
281
279
  return binding
282
280
  } catch (e) {
@@ -291,8 +289,8 @@ function requireNative() {
291
289
  try {
292
290
  const binding = require('@versatiles/versatiles-rs-linux-x64-gnu')
293
291
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-x64-gnu/package.json').version
294
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
295
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
296
294
  }
297
295
  return binding
298
296
  } catch (e) {
@@ -309,8 +307,8 @@ function requireNative() {
309
307
  try {
310
308
  const binding = require('@versatiles/versatiles-rs-linux-arm64-musl')
311
309
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-arm64-musl/package.json').version
312
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
313
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
314
312
  }
315
313
  return binding
316
314
  } catch (e) {
@@ -325,8 +323,8 @@ function requireNative() {
325
323
  try {
326
324
  const binding = require('@versatiles/versatiles-rs-linux-arm64-gnu')
327
325
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-arm64-gnu/package.json').version
328
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
329
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
330
328
  }
331
329
  return binding
332
330
  } catch (e) {
@@ -343,8 +341,8 @@ function requireNative() {
343
341
  try {
344
342
  const binding = require('@versatiles/versatiles-rs-linux-arm-musleabihf')
345
343
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-arm-musleabihf/package.json').version
346
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
347
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
348
346
  }
349
347
  return binding
350
348
  } catch (e) {
@@ -359,8 +357,8 @@ function requireNative() {
359
357
  try {
360
358
  const binding = require('@versatiles/versatiles-rs-linux-arm-gnueabihf')
361
359
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-arm-gnueabihf/package.json').version
362
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
363
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
364
362
  }
365
363
  return binding
366
364
  } catch (e) {
@@ -377,8 +375,8 @@ function requireNative() {
377
375
  try {
378
376
  const binding = require('@versatiles/versatiles-rs-linux-loong64-musl')
379
377
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-loong64-musl/package.json').version
380
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
381
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
382
380
  }
383
381
  return binding
384
382
  } catch (e) {
@@ -393,8 +391,8 @@ function requireNative() {
393
391
  try {
394
392
  const binding = require('@versatiles/versatiles-rs-linux-loong64-gnu')
395
393
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-loong64-gnu/package.json').version
396
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
397
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
398
396
  }
399
397
  return binding
400
398
  } catch (e) {
@@ -411,8 +409,8 @@ function requireNative() {
411
409
  try {
412
410
  const binding = require('@versatiles/versatiles-rs-linux-riscv64-musl')
413
411
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-riscv64-musl/package.json').version
414
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
415
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
416
414
  }
417
415
  return binding
418
416
  } catch (e) {
@@ -427,8 +425,8 @@ function requireNative() {
427
425
  try {
428
426
  const binding = require('@versatiles/versatiles-rs-linux-riscv64-gnu')
429
427
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-riscv64-gnu/package.json').version
430
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
431
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
432
430
  }
433
431
  return binding
434
432
  } catch (e) {
@@ -444,8 +442,8 @@ function requireNative() {
444
442
  try {
445
443
  const binding = require('@versatiles/versatiles-rs-linux-ppc64-gnu')
446
444
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-ppc64-gnu/package.json').version
447
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
448
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
449
447
  }
450
448
  return binding
451
449
  } catch (e) {
@@ -460,8 +458,8 @@ function requireNative() {
460
458
  try {
461
459
  const binding = require('@versatiles/versatiles-rs-linux-s390x-gnu')
462
460
  const bindingPackageVersion = require('@versatiles/versatiles-rs-linux-s390x-gnu/package.json').version
463
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
464
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
465
463
  }
466
464
  return binding
467
465
  } catch (e) {
@@ -480,8 +478,8 @@ function requireNative() {
480
478
  try {
481
479
  const binding = require('@versatiles/versatiles-rs-openharmony-arm64')
482
480
  const bindingPackageVersion = require('@versatiles/versatiles-rs-openharmony-arm64/package.json').version
483
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
484
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
485
483
  }
486
484
  return binding
487
485
  } catch (e) {
@@ -496,8 +494,8 @@ function requireNative() {
496
494
  try {
497
495
  const binding = require('@versatiles/versatiles-rs-openharmony-x64')
498
496
  const bindingPackageVersion = require('@versatiles/versatiles-rs-openharmony-x64/package.json').version
499
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
500
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
501
499
  }
502
500
  return binding
503
501
  } catch (e) {
@@ -512,8 +510,8 @@ function requireNative() {
512
510
  try {
513
511
  const binding = require('@versatiles/versatiles-rs-openharmony-arm')
514
512
  const bindingPackageVersion = require('@versatiles/versatiles-rs-openharmony-arm/package.json').version
515
- if (bindingPackageVersion !== '4.12.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
516
- throw new Error(`Native binding package version mismatch, expected 4.12.3 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.`)
517
515
  }
518
516
  return binding
519
517
  } catch (e) {
@@ -554,7 +552,7 @@ function createLoadErrorChain(errors) {
554
552
  //
555
553
  // NAPI_RS_WASI_FLAVOR selects one exact generated flavor and implies strict
556
554
  // WASI loading. It never crosses into another flavor or falls back to native.
557
- const __napiWasiFlavors = ["wasm32-wasi"]
555
+ const __napiWasiFlavors = ['wasm32-wasi']
558
556
  const __napiWasiFlavor = process.env.NAPI_RS_WASI_FLAVOR
559
557
  const __napiWasiFlavorRequested =
560
558
  typeof __napiWasiFlavor === 'string' && __napiWasiFlavor.length > 0
@@ -623,11 +621,11 @@ if (!nativeBinding || forceWasi) {
623
621
  }
624
622
  return null
625
623
  }
626
- if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === "wasm32-wasi")) {
624
+ if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
627
625
  let candidateError = null
628
626
  let candidateFailed = false
629
627
  try {
630
- 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'])
631
629
  candidateFailed = candidateError !== null
632
630
  if (!candidateFailed) {
633
631
  wasiBinding = require('./versatiles.wasi.cjs')
@@ -643,7 +641,7 @@ if (!nativeBinding || forceWasi) {
643
641
  loadErrors.push(candidateError)
644
642
  }
645
643
  }
646
- if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === "wasm32-wasi")) {
644
+ if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
647
645
  let candidateError = null
648
646
  let candidateFailed = false
649
647
  try {
@@ -652,8 +650,8 @@ if (!nativeBinding || forceWasi) {
652
650
  if (!candidateFailed) {
653
651
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
654
652
  const bindingPackageVersion = require('@versatiles/versatiles-rs-wasm32-wasi/package.json').version
655
- if (bindingPackageVersion !== '4.12.3') {
656
- throw new Error(`WASI binding package version mismatch, expected 4.12.3 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.`)
657
655
  }
658
656
  }
659
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.12.3",
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,29 +87,29 @@
87
87
  },
88
88
  "devDependencies": {
89
89
  "@eslint/js": "^10.0.1",
90
- "@napi-rs/cli": "^3.8.6",
91
- "@types/node": "^26.4.0",
92
- "@vitest/ui": "^4.1.11",
90
+ "@napi-rs/cli": "^3.9.1",
91
+ "@types/node": "^26.5.1",
92
+ "@vitest/ui": "^5.0.0",
93
93
  "chalk": "^6.0.0",
94
- "eslint": "^10.9.1",
94
+ "eslint": "^10.10.0",
95
95
  "eslint-config-prettier": "^10.1.8",
96
96
  "npm-check-updates": "^23.1.0",
97
97
  "prettier": "^3.9.6",
98
- "tsx": "^4.23.12",
98
+ "tsx": "^4.23.13",
99
99
  "typedoc": "^0.28.20",
100
100
  "typescript": "^6.0.3",
101
- "typescript-eslint": "^8.68.0",
102
- "vitest": "^4.1.11"
101
+ "typescript-eslint": "^8.70.0",
102
+ "vitest": "^5.0.0"
103
103
  },
104
104
  "optionalDependencies": {
105
- "@versatiles/versatiles-rs-darwin-arm64": "4.12.3",
106
- "@versatiles/versatiles-rs-darwin-x64": "4.12.3",
107
- "@versatiles/versatiles-rs-linux-arm64-gnu": "4.12.3",
108
- "@versatiles/versatiles-rs-linux-arm64-musl": "4.12.3",
109
- "@versatiles/versatiles-rs-linux-x64-gnu": "4.12.3",
110
- "@versatiles/versatiles-rs-linux-x64-musl": "4.12.3",
111
- "@versatiles/versatiles-rs-win32-arm64-msvc": "4.12.3",
112
- "@versatiles/versatiles-rs-win32-x64-msvc": "4.12.3"
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,