@yjdyamv/rar-rs 0.15.2 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.js +113 -113
- package/package.json +1 -1
- package/rar-rs-napi.darwin-arm64.node +0 -0
- package/rar-rs-napi.linux-arm-gnueabihf.node +0 -0
- package/rar-rs-napi.linux-arm64-gnu.node +0 -0
- package/rar-rs-napi.linux-arm64-musl.node +0 -0
- package/rar-rs-napi.linux-x64-gnu.node +0 -0
- package/rar-rs-napi.linux-x64-musl.node +0 -0
- package/rar-rs-napi.wasi.cjs +2 -2
- package/rar-rs-napi.wasm32-wasi.wasm +0 -0
- package/rar-rs-napi.win32-arm64-msvc.node +0 -0
- package/rar-rs-napi.win32-ia32-msvc.node +0 -0
- package/rar-rs-napi.win32-x64-msvc.node +0 -0
package/binding.js
CHANGED
|
@@ -92,10 +92,10 @@ function requireNative() {
|
|
|
92
92
|
loadErrors.push(e)
|
|
93
93
|
}
|
|
94
94
|
try {
|
|
95
|
-
const binding = require('rar-rs-android-arm64')
|
|
96
|
-
const bindingPackageVersion = require('rar-rs-android-arm64/package.json').version
|
|
97
|
-
if (bindingPackageVersion !== '0.15.
|
|
98
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
95
|
+
const binding = require('@yjdyamv/rar-rs-android-arm64')
|
|
96
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-android-arm64/package.json').version
|
|
97
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
98
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
99
99
|
}
|
|
100
100
|
return binding
|
|
101
101
|
} catch (e) {
|
|
@@ -108,10 +108,10 @@ function requireNative() {
|
|
|
108
108
|
loadErrors.push(e)
|
|
109
109
|
}
|
|
110
110
|
try {
|
|
111
|
-
const binding = require('rar-rs-android-arm-eabi')
|
|
112
|
-
const bindingPackageVersion = require('rar-rs-android-arm-eabi/package.json').version
|
|
113
|
-
if (bindingPackageVersion !== '0.15.
|
|
114
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
111
|
+
const binding = require('@yjdyamv/rar-rs-android-arm-eabi')
|
|
112
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-android-arm-eabi/package.json').version
|
|
113
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
114
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
115
115
|
}
|
|
116
116
|
return binding
|
|
117
117
|
} catch (e) {
|
|
@@ -129,10 +129,10 @@ function requireNative() {
|
|
|
129
129
|
loadErrors.push(e)
|
|
130
130
|
}
|
|
131
131
|
try {
|
|
132
|
-
const binding = require('rar-rs-win32-x64-gnu')
|
|
133
|
-
const bindingPackageVersion = require('rar-rs-win32-x64-gnu/package.json').version
|
|
134
|
-
if (bindingPackageVersion !== '0.15.
|
|
135
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
132
|
+
const binding = require('@yjdyamv/rar-rs-win32-x64-gnu')
|
|
133
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-win32-x64-gnu/package.json').version
|
|
134
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
135
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
136
136
|
}
|
|
137
137
|
return binding
|
|
138
138
|
} catch (e) {
|
|
@@ -145,10 +145,10 @@ function requireNative() {
|
|
|
145
145
|
loadErrors.push(e)
|
|
146
146
|
}
|
|
147
147
|
try {
|
|
148
|
-
const binding = require('rar-rs-win32-x64-msvc')
|
|
149
|
-
const bindingPackageVersion = require('rar-rs-win32-x64-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '0.15.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
148
|
+
const binding = require('@yjdyamv/rar-rs-win32-x64-msvc')
|
|
149
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-win32-x64-msvc/package.json').version
|
|
150
|
+
if (bindingPackageVersion !== '0.15.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 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
152
|
}
|
|
153
153
|
return binding
|
|
154
154
|
} catch (e) {
|
|
@@ -162,10 +162,10 @@ function requireNative() {
|
|
|
162
162
|
loadErrors.push(e)
|
|
163
163
|
}
|
|
164
164
|
try {
|
|
165
|
-
const binding = require('rar-rs-win32-ia32-msvc')
|
|
166
|
-
const bindingPackageVersion = require('rar-rs-win32-ia32-msvc/package.json').version
|
|
167
|
-
if (bindingPackageVersion !== '0.15.
|
|
168
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
165
|
+
const binding = require('@yjdyamv/rar-rs-win32-ia32-msvc')
|
|
166
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-win32-ia32-msvc/package.json').version
|
|
167
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
168
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
169
169
|
}
|
|
170
170
|
return binding
|
|
171
171
|
} catch (e) {
|
|
@@ -178,10 +178,10 @@ function requireNative() {
|
|
|
178
178
|
loadErrors.push(e)
|
|
179
179
|
}
|
|
180
180
|
try {
|
|
181
|
-
const binding = require('rar-rs-win32-arm64-msvc')
|
|
182
|
-
const bindingPackageVersion = require('rar-rs-win32-arm64-msvc/package.json').version
|
|
183
|
-
if (bindingPackageVersion !== '0.15.
|
|
184
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
181
|
+
const binding = require('@yjdyamv/rar-rs-win32-arm64-msvc')
|
|
182
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-win32-arm64-msvc/package.json').version
|
|
183
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
184
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
185
185
|
}
|
|
186
186
|
return binding
|
|
187
187
|
} catch (e) {
|
|
@@ -197,10 +197,10 @@ function requireNative() {
|
|
|
197
197
|
loadErrors.push(e)
|
|
198
198
|
}
|
|
199
199
|
try {
|
|
200
|
-
const binding = require('rar-rs-darwin-universal')
|
|
201
|
-
const bindingPackageVersion = require('rar-rs-darwin-universal/package.json').version
|
|
202
|
-
if (bindingPackageVersion !== '0.15.
|
|
203
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
200
|
+
const binding = require('@yjdyamv/rar-rs-darwin-universal')
|
|
201
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-darwin-universal/package.json').version
|
|
202
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
203
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
204
204
|
}
|
|
205
205
|
return binding
|
|
206
206
|
} catch (e) {
|
|
@@ -213,10 +213,10 @@ function requireNative() {
|
|
|
213
213
|
loadErrors.push(e)
|
|
214
214
|
}
|
|
215
215
|
try {
|
|
216
|
-
const binding = require('rar-rs-darwin-x64')
|
|
217
|
-
const bindingPackageVersion = require('rar-rs-darwin-x64/package.json').version
|
|
218
|
-
if (bindingPackageVersion !== '0.15.
|
|
219
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
216
|
+
const binding = require('@yjdyamv/rar-rs-darwin-x64')
|
|
217
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-darwin-x64/package.json').version
|
|
218
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
219
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
220
220
|
}
|
|
221
221
|
return binding
|
|
222
222
|
} catch (e) {
|
|
@@ -229,10 +229,10 @@ function requireNative() {
|
|
|
229
229
|
loadErrors.push(e)
|
|
230
230
|
}
|
|
231
231
|
try {
|
|
232
|
-
const binding = require('rar-rs-darwin-arm64')
|
|
233
|
-
const bindingPackageVersion = require('rar-rs-darwin-arm64/package.json').version
|
|
234
|
-
if (bindingPackageVersion !== '0.15.
|
|
235
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
232
|
+
const binding = require('@yjdyamv/rar-rs-darwin-arm64')
|
|
233
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-darwin-arm64/package.json').version
|
|
234
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
235
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
236
236
|
}
|
|
237
237
|
return binding
|
|
238
238
|
} catch (e) {
|
|
@@ -249,10 +249,10 @@ function requireNative() {
|
|
|
249
249
|
loadErrors.push(e)
|
|
250
250
|
}
|
|
251
251
|
try {
|
|
252
|
-
const binding = require('rar-rs-freebsd-x64')
|
|
253
|
-
const bindingPackageVersion = require('rar-rs-freebsd-x64/package.json').version
|
|
254
|
-
if (bindingPackageVersion !== '0.15.
|
|
255
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
252
|
+
const binding = require('@yjdyamv/rar-rs-freebsd-x64')
|
|
253
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-freebsd-x64/package.json').version
|
|
254
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
255
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
256
256
|
}
|
|
257
257
|
return binding
|
|
258
258
|
} catch (e) {
|
|
@@ -265,10 +265,10 @@ function requireNative() {
|
|
|
265
265
|
loadErrors.push(e)
|
|
266
266
|
}
|
|
267
267
|
try {
|
|
268
|
-
const binding = require('rar-rs-freebsd-arm64')
|
|
269
|
-
const bindingPackageVersion = require('rar-rs-freebsd-arm64/package.json').version
|
|
270
|
-
if (bindingPackageVersion !== '0.15.
|
|
271
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
268
|
+
const binding = require('@yjdyamv/rar-rs-freebsd-arm64')
|
|
269
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-freebsd-arm64/package.json').version
|
|
270
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
271
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
272
272
|
}
|
|
273
273
|
return binding
|
|
274
274
|
} catch (e) {
|
|
@@ -281,10 +281,10 @@ function requireNative() {
|
|
|
281
281
|
loadErrors.push(e)
|
|
282
282
|
}
|
|
283
283
|
try {
|
|
284
|
-
const binding = require('rar-rs-freebsd-ppc64')
|
|
285
|
-
const bindingPackageVersion = require('rar-rs-freebsd-ppc64/package.json').version
|
|
286
|
-
if (bindingPackageVersion !== '0.15.
|
|
287
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
284
|
+
const binding = require('@yjdyamv/rar-rs-freebsd-ppc64')
|
|
285
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-freebsd-ppc64/package.json').version
|
|
286
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
287
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
288
288
|
}
|
|
289
289
|
return binding
|
|
290
290
|
} catch (e) {
|
|
@@ -302,10 +302,10 @@ function requireNative() {
|
|
|
302
302
|
loadErrors.push(e)
|
|
303
303
|
}
|
|
304
304
|
try {
|
|
305
|
-
const binding = require('rar-rs-linux-x64-musl')
|
|
306
|
-
const bindingPackageVersion = require('rar-rs-linux-x64-musl/package.json').version
|
|
307
|
-
if (bindingPackageVersion !== '0.15.
|
|
308
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
305
|
+
const binding = require('@yjdyamv/rar-rs-linux-x64-musl')
|
|
306
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-linux-x64-musl/package.json').version
|
|
307
|
+
if (bindingPackageVersion !== '0.15.3' && 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 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
309
309
|
}
|
|
310
310
|
return binding
|
|
311
311
|
} catch (e) {
|
|
@@ -318,10 +318,10 @@ function requireNative() {
|
|
|
318
318
|
loadErrors.push(e)
|
|
319
319
|
}
|
|
320
320
|
try {
|
|
321
|
-
const binding = require('rar-rs-linux-x64-gnu')
|
|
322
|
-
const bindingPackageVersion = require('rar-rs-linux-x64-gnu/package.json').version
|
|
323
|
-
if (bindingPackageVersion !== '0.15.
|
|
324
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
321
|
+
const binding = require('@yjdyamv/rar-rs-linux-x64-gnu')
|
|
322
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-linux-x64-gnu/package.json').version
|
|
323
|
+
if (bindingPackageVersion !== '0.15.3' && 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 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
325
325
|
}
|
|
326
326
|
return binding
|
|
327
327
|
} catch (e) {
|
|
@@ -336,10 +336,10 @@ function requireNative() {
|
|
|
336
336
|
loadErrors.push(e)
|
|
337
337
|
}
|
|
338
338
|
try {
|
|
339
|
-
const binding = require('rar-rs-linux-arm64-musl')
|
|
340
|
-
const bindingPackageVersion = require('rar-rs-linux-arm64-musl/package.json').version
|
|
341
|
-
if (bindingPackageVersion !== '0.15.
|
|
342
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
339
|
+
const binding = require('@yjdyamv/rar-rs-linux-arm64-musl')
|
|
340
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-linux-arm64-musl/package.json').version
|
|
341
|
+
if (bindingPackageVersion !== '0.15.3' && 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 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
343
343
|
}
|
|
344
344
|
return binding
|
|
345
345
|
} catch (e) {
|
|
@@ -352,10 +352,10 @@ function requireNative() {
|
|
|
352
352
|
loadErrors.push(e)
|
|
353
353
|
}
|
|
354
354
|
try {
|
|
355
|
-
const binding = require('rar-rs-linux-arm64-gnu')
|
|
356
|
-
const bindingPackageVersion = require('rar-rs-linux-arm64-gnu/package.json').version
|
|
357
|
-
if (bindingPackageVersion !== '0.15.
|
|
358
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
355
|
+
const binding = require('@yjdyamv/rar-rs-linux-arm64-gnu')
|
|
356
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-linux-arm64-gnu/package.json').version
|
|
357
|
+
if (bindingPackageVersion !== '0.15.3' && 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 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
359
359
|
}
|
|
360
360
|
return binding
|
|
361
361
|
} catch (e) {
|
|
@@ -370,10 +370,10 @@ function requireNative() {
|
|
|
370
370
|
loadErrors.push(e)
|
|
371
371
|
}
|
|
372
372
|
try {
|
|
373
|
-
const binding = require('rar-rs-linux-arm-musleabihf')
|
|
374
|
-
const bindingPackageVersion = require('rar-rs-linux-arm-musleabihf/package.json').version
|
|
375
|
-
if (bindingPackageVersion !== '0.15.
|
|
376
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
373
|
+
const binding = require('@yjdyamv/rar-rs-linux-arm-musleabihf')
|
|
374
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-linux-arm-musleabihf/package.json').version
|
|
375
|
+
if (bindingPackageVersion !== '0.15.3' && 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 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
377
377
|
}
|
|
378
378
|
return binding
|
|
379
379
|
} catch (e) {
|
|
@@ -386,10 +386,10 @@ function requireNative() {
|
|
|
386
386
|
loadErrors.push(e)
|
|
387
387
|
}
|
|
388
388
|
try {
|
|
389
|
-
const binding = require('rar-rs-linux-arm-gnueabihf')
|
|
390
|
-
const bindingPackageVersion = require('rar-rs-linux-arm-gnueabihf/package.json').version
|
|
391
|
-
if (bindingPackageVersion !== '0.15.
|
|
392
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
389
|
+
const binding = require('@yjdyamv/rar-rs-linux-arm-gnueabihf')
|
|
390
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-linux-arm-gnueabihf/package.json').version
|
|
391
|
+
if (bindingPackageVersion !== '0.15.3' && 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 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
393
393
|
}
|
|
394
394
|
return binding
|
|
395
395
|
} catch (e) {
|
|
@@ -404,10 +404,10 @@ function requireNative() {
|
|
|
404
404
|
loadErrors.push(e)
|
|
405
405
|
}
|
|
406
406
|
try {
|
|
407
|
-
const binding = require('rar-rs-linux-loong64-musl')
|
|
408
|
-
const bindingPackageVersion = require('rar-rs-linux-loong64-musl/package.json').version
|
|
409
|
-
if (bindingPackageVersion !== '0.15.
|
|
410
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
407
|
+
const binding = require('@yjdyamv/rar-rs-linux-loong64-musl')
|
|
408
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-linux-loong64-musl/package.json').version
|
|
409
|
+
if (bindingPackageVersion !== '0.15.3' && 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 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
411
411
|
}
|
|
412
412
|
return binding
|
|
413
413
|
} catch (e) {
|
|
@@ -420,10 +420,10 @@ function requireNative() {
|
|
|
420
420
|
loadErrors.push(e)
|
|
421
421
|
}
|
|
422
422
|
try {
|
|
423
|
-
const binding = require('rar-rs-linux-loong64-gnu')
|
|
424
|
-
const bindingPackageVersion = require('rar-rs-linux-loong64-gnu/package.json').version
|
|
425
|
-
if (bindingPackageVersion !== '0.15.
|
|
426
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
423
|
+
const binding = require('@yjdyamv/rar-rs-linux-loong64-gnu')
|
|
424
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-linux-loong64-gnu/package.json').version
|
|
425
|
+
if (bindingPackageVersion !== '0.15.3' && 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 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
427
427
|
}
|
|
428
428
|
return binding
|
|
429
429
|
} catch (e) {
|
|
@@ -438,10 +438,10 @@ function requireNative() {
|
|
|
438
438
|
loadErrors.push(e)
|
|
439
439
|
}
|
|
440
440
|
try {
|
|
441
|
-
const binding = require('rar-rs-linux-riscv64-musl')
|
|
442
|
-
const bindingPackageVersion = require('rar-rs-linux-riscv64-musl/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '0.15.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
441
|
+
const binding = require('@yjdyamv/rar-rs-linux-riscv64-musl')
|
|
442
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-linux-riscv64-musl/package.json').version
|
|
443
|
+
if (bindingPackageVersion !== '0.15.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 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
445
|
}
|
|
446
446
|
return binding
|
|
447
447
|
} catch (e) {
|
|
@@ -454,10 +454,10 @@ function requireNative() {
|
|
|
454
454
|
loadErrors.push(e)
|
|
455
455
|
}
|
|
456
456
|
try {
|
|
457
|
-
const binding = require('rar-rs-linux-riscv64-gnu')
|
|
458
|
-
const bindingPackageVersion = require('rar-rs-linux-riscv64-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '0.15.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
457
|
+
const binding = require('@yjdyamv/rar-rs-linux-riscv64-gnu')
|
|
458
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-linux-riscv64-gnu/package.json').version
|
|
459
|
+
if (bindingPackageVersion !== '0.15.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 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
461
|
}
|
|
462
462
|
return binding
|
|
463
463
|
} catch (e) {
|
|
@@ -471,10 +471,10 @@ function requireNative() {
|
|
|
471
471
|
loadErrors.push(e)
|
|
472
472
|
}
|
|
473
473
|
try {
|
|
474
|
-
const binding = require('rar-rs-linux-ppc64-gnu')
|
|
475
|
-
const bindingPackageVersion = require('rar-rs-linux-ppc64-gnu/package.json').version
|
|
476
|
-
if (bindingPackageVersion !== '0.15.
|
|
477
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
474
|
+
const binding = require('@yjdyamv/rar-rs-linux-ppc64-gnu')
|
|
475
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-linux-ppc64-gnu/package.json').version
|
|
476
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
477
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
478
478
|
}
|
|
479
479
|
return binding
|
|
480
480
|
} catch (e) {
|
|
@@ -487,10 +487,10 @@ function requireNative() {
|
|
|
487
487
|
loadErrors.push(e)
|
|
488
488
|
}
|
|
489
489
|
try {
|
|
490
|
-
const binding = require('rar-rs-linux-s390x-gnu')
|
|
491
|
-
const bindingPackageVersion = require('rar-rs-linux-s390x-gnu/package.json').version
|
|
492
|
-
if (bindingPackageVersion !== '0.15.
|
|
493
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
490
|
+
const binding = require('@yjdyamv/rar-rs-linux-s390x-gnu')
|
|
491
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-linux-s390x-gnu/package.json').version
|
|
492
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
493
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
494
494
|
}
|
|
495
495
|
return binding
|
|
496
496
|
} catch (e) {
|
|
@@ -507,10 +507,10 @@ function requireNative() {
|
|
|
507
507
|
loadErrors.push(e)
|
|
508
508
|
}
|
|
509
509
|
try {
|
|
510
|
-
const binding = require('rar-rs-openharmony-arm64')
|
|
511
|
-
const bindingPackageVersion = require('rar-rs-openharmony-arm64/package.json').version
|
|
512
|
-
if (bindingPackageVersion !== '0.15.
|
|
513
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
510
|
+
const binding = require('@yjdyamv/rar-rs-openharmony-arm64')
|
|
511
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-openharmony-arm64/package.json').version
|
|
512
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
513
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
514
514
|
}
|
|
515
515
|
return binding
|
|
516
516
|
} catch (e) {
|
|
@@ -523,10 +523,10 @@ function requireNative() {
|
|
|
523
523
|
loadErrors.push(e)
|
|
524
524
|
}
|
|
525
525
|
try {
|
|
526
|
-
const binding = require('rar-rs-openharmony-x64')
|
|
527
|
-
const bindingPackageVersion = require('rar-rs-openharmony-x64/package.json').version
|
|
528
|
-
if (bindingPackageVersion !== '0.15.
|
|
529
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
526
|
+
const binding = require('@yjdyamv/rar-rs-openharmony-x64')
|
|
527
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-openharmony-x64/package.json').version
|
|
528
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
529
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
530
530
|
}
|
|
531
531
|
return binding
|
|
532
532
|
} catch (e) {
|
|
@@ -539,10 +539,10 @@ function requireNative() {
|
|
|
539
539
|
loadErrors.push(e)
|
|
540
540
|
}
|
|
541
541
|
try {
|
|
542
|
-
const binding = require('rar-rs-openharmony-arm')
|
|
543
|
-
const bindingPackageVersion = require('rar-rs-openharmony-arm/package.json').version
|
|
544
|
-
if (bindingPackageVersion !== '0.15.
|
|
545
|
-
throw new Error(`Native binding package version mismatch, expected 0.15.
|
|
542
|
+
const binding = require('@yjdyamv/rar-rs-openharmony-arm')
|
|
543
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-openharmony-arm/package.json').version
|
|
544
|
+
if (bindingPackageVersion !== '0.15.3' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
545
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
546
546
|
}
|
|
547
547
|
return binding
|
|
548
548
|
} catch (e) {
|
|
@@ -678,16 +678,16 @@ if (!nativeBinding || forceWasi) {
|
|
|
678
678
|
let candidateError = null
|
|
679
679
|
let candidateFailed = false
|
|
680
680
|
try {
|
|
681
|
-
candidateError = __napiWasiResolveCandidate('rar-rs-wasm32-wasi', true, undefined)
|
|
681
|
+
candidateError = __napiWasiResolveCandidate('@yjdyamv/rar-rs-wasm32-wasi', true, undefined)
|
|
682
682
|
candidateFailed = candidateError !== null
|
|
683
683
|
if (!candidateFailed) {
|
|
684
684
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
685
|
-
const bindingPackageVersion = require('rar-rs-wasm32-wasi/package.json').version
|
|
686
|
-
if (bindingPackageVersion !== '0.15.
|
|
687
|
-
throw new Error(`WASI binding package version mismatch, expected 0.15.
|
|
685
|
+
const bindingPackageVersion = require('@yjdyamv/rar-rs-wasm32-wasi/package.json').version
|
|
686
|
+
if (bindingPackageVersion !== '0.15.3') {
|
|
687
|
+
throw new Error(`WASI binding package version mismatch, expected 0.15.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
wasiBinding = require('rar-rs-wasm32-wasi')
|
|
690
|
+
wasiBinding = require('@yjdyamv/rar-rs-wasm32-wasi')
|
|
691
691
|
nativeBinding = wasiBinding
|
|
692
692
|
__napiLoadedBindingTarget = 'wasm32-wasi'
|
|
693
693
|
wasiBindingLoaded = true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yjdyamv/rar-rs",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.3",
|
|
4
4
|
"description": "Pure-Rust RAR archive toolkit for Node.js — create, read, extract, test, modify and repair RAR5/RAR7 and legacy RAR 1.3–4.x archives, with no external rar/unrar binary",
|
|
5
5
|
"license": "BSD-2-Clause",
|
|
6
6
|
"main": "rar-rs.js",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/rar-rs-napi.wasi.cjs
CHANGED
|
@@ -647,14 +647,14 @@ const __wasmDebugFilePath = __nodePath.join(__dirname, 'rar-rs-napi.wasm32-wasi.
|
|
|
647
647
|
if (__nodeFs.existsSync(__wasmDebugFilePath)) {
|
|
648
648
|
__wasmFilePath = __wasmDebugFilePath
|
|
649
649
|
} else if (!__nodeFs.existsSync(__wasmFilePath)) {
|
|
650
|
-
const __wasiPackageEntry = require.resolve('rar-rs-wasm32-wasi')
|
|
650
|
+
const __wasiPackageEntry = require.resolve('@yjdyamv/rar-rs-wasm32-wasi')
|
|
651
651
|
const __packagedWasmFilePath = __nodePath.join(
|
|
652
652
|
__nodePath.dirname(__wasiPackageEntry),
|
|
653
653
|
'rar-rs-napi.wasm32-wasi.wasm',
|
|
654
654
|
)
|
|
655
655
|
if (!__nodeFs.existsSync(__packagedWasmFilePath)) {
|
|
656
656
|
throw new Error(
|
|
657
|
-
'rar-rs-wasm32-wasi is installed but is missing rar-rs-napi.wasm32-wasi.wasm.',
|
|
657
|
+
'@yjdyamv/rar-rs-wasm32-wasi is installed but is missing rar-rs-napi.wasm32-wasi.wasm.',
|
|
658
658
|
)
|
|
659
659
|
}
|
|
660
660
|
__wasmFilePath = __packagedWasmFilePath
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|