@publier/native 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +56 -56
- package/package.json +1 -1
- package/publier-native.linux-x64-gnu.node +0 -0
package/index.js
CHANGED
|
@@ -93,8 +93,8 @@ function requireNative() {
|
|
|
93
93
|
try {
|
|
94
94
|
const binding = require('@publier/native-android-arm64')
|
|
95
95
|
const bindingPackageVersion = require('@publier/native-android-arm64/package.json').version
|
|
96
|
-
if (bindingPackageVersion !== '0.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
96
|
+
if (bindingPackageVersion !== '0.2.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 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
98
98
|
}
|
|
99
99
|
return binding
|
|
100
100
|
} catch (e) {
|
|
@@ -109,8 +109,8 @@ function requireNative() {
|
|
|
109
109
|
try {
|
|
110
110
|
const binding = require('@publier/native-android-arm-eabi')
|
|
111
111
|
const bindingPackageVersion = require('@publier/native-android-arm-eabi/package.json').version
|
|
112
|
-
if (bindingPackageVersion !== '0.
|
|
113
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
112
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
113
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
114
114
|
}
|
|
115
115
|
return binding
|
|
116
116
|
} catch (e) {
|
|
@@ -130,8 +130,8 @@ function requireNative() {
|
|
|
130
130
|
try {
|
|
131
131
|
const binding = require('@publier/native-win32-x64-gnu')
|
|
132
132
|
const bindingPackageVersion = require('@publier/native-win32-x64-gnu/package.json').version
|
|
133
|
-
if (bindingPackageVersion !== '0.
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
133
|
+
if (bindingPackageVersion !== '0.2.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 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
135
135
|
}
|
|
136
136
|
return binding
|
|
137
137
|
} catch (e) {
|
|
@@ -146,8 +146,8 @@ function requireNative() {
|
|
|
146
146
|
try {
|
|
147
147
|
const binding = require('@publier/native-win32-x64-msvc')
|
|
148
148
|
const bindingPackageVersion = require('@publier/native-win32-x64-msvc/package.json').version
|
|
149
|
-
if (bindingPackageVersion !== '0.
|
|
150
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
149
|
+
if (bindingPackageVersion !== '0.2.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 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
151
151
|
}
|
|
152
152
|
return binding
|
|
153
153
|
} catch (e) {
|
|
@@ -163,8 +163,8 @@ function requireNative() {
|
|
|
163
163
|
try {
|
|
164
164
|
const binding = require('@publier/native-win32-ia32-msvc')
|
|
165
165
|
const bindingPackageVersion = require('@publier/native-win32-ia32-msvc/package.json').version
|
|
166
|
-
if (bindingPackageVersion !== '0.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
166
|
+
if (bindingPackageVersion !== '0.2.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 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
168
168
|
}
|
|
169
169
|
return binding
|
|
170
170
|
} catch (e) {
|
|
@@ -179,8 +179,8 @@ function requireNative() {
|
|
|
179
179
|
try {
|
|
180
180
|
const binding = require('@publier/native-win32-arm64-msvc')
|
|
181
181
|
const bindingPackageVersion = require('@publier/native-win32-arm64-msvc/package.json').version
|
|
182
|
-
if (bindingPackageVersion !== '0.
|
|
183
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
182
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
183
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
184
184
|
}
|
|
185
185
|
return binding
|
|
186
186
|
} catch (e) {
|
|
@@ -198,8 +198,8 @@ function requireNative() {
|
|
|
198
198
|
try {
|
|
199
199
|
const binding = require('@publier/native-darwin-universal')
|
|
200
200
|
const bindingPackageVersion = require('@publier/native-darwin-universal/package.json').version
|
|
201
|
-
if (bindingPackageVersion !== '0.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
201
|
+
if (bindingPackageVersion !== '0.2.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 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
203
203
|
}
|
|
204
204
|
return binding
|
|
205
205
|
} catch (e) {
|
|
@@ -214,8 +214,8 @@ function requireNative() {
|
|
|
214
214
|
try {
|
|
215
215
|
const binding = require('@publier/native-darwin-x64')
|
|
216
216
|
const bindingPackageVersion = require('@publier/native-darwin-x64/package.json').version
|
|
217
|
-
if (bindingPackageVersion !== '0.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
217
|
+
if (bindingPackageVersion !== '0.2.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 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
219
219
|
}
|
|
220
220
|
return binding
|
|
221
221
|
} catch (e) {
|
|
@@ -230,8 +230,8 @@ function requireNative() {
|
|
|
230
230
|
try {
|
|
231
231
|
const binding = require('@publier/native-darwin-arm64')
|
|
232
232
|
const bindingPackageVersion = require('@publier/native-darwin-arm64/package.json').version
|
|
233
|
-
if (bindingPackageVersion !== '0.
|
|
234
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
233
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
234
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
235
235
|
}
|
|
236
236
|
return binding
|
|
237
237
|
} catch (e) {
|
|
@@ -250,8 +250,8 @@ function requireNative() {
|
|
|
250
250
|
try {
|
|
251
251
|
const binding = require('@publier/native-freebsd-x64')
|
|
252
252
|
const bindingPackageVersion = require('@publier/native-freebsd-x64/package.json').version
|
|
253
|
-
if (bindingPackageVersion !== '0.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
253
|
+
if (bindingPackageVersion !== '0.2.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 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
255
255
|
}
|
|
256
256
|
return binding
|
|
257
257
|
} catch (e) {
|
|
@@ -266,8 +266,8 @@ function requireNative() {
|
|
|
266
266
|
try {
|
|
267
267
|
const binding = require('@publier/native-freebsd-arm64')
|
|
268
268
|
const bindingPackageVersion = require('@publier/native-freebsd-arm64/package.json').version
|
|
269
|
-
if (bindingPackageVersion !== '0.
|
|
270
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
269
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
270
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
271
271
|
}
|
|
272
272
|
return binding
|
|
273
273
|
} catch (e) {
|
|
@@ -282,8 +282,8 @@ function requireNative() {
|
|
|
282
282
|
try {
|
|
283
283
|
const binding = require('@publier/native-freebsd-ppc64')
|
|
284
284
|
const bindingPackageVersion = require('@publier/native-freebsd-ppc64/package.json').version
|
|
285
|
-
if (bindingPackageVersion !== '0.
|
|
286
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
285
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
286
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
287
287
|
}
|
|
288
288
|
return binding
|
|
289
289
|
} catch (e) {
|
|
@@ -303,8 +303,8 @@ function requireNative() {
|
|
|
303
303
|
try {
|
|
304
304
|
const binding = require('@publier/native-linux-x64-musl')
|
|
305
305
|
const bindingPackageVersion = require('@publier/native-linux-x64-musl/package.json').version
|
|
306
|
-
if (bindingPackageVersion !== '0.
|
|
307
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
306
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
307
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
308
308
|
}
|
|
309
309
|
return binding
|
|
310
310
|
} catch (e) {
|
|
@@ -319,8 +319,8 @@ function requireNative() {
|
|
|
319
319
|
try {
|
|
320
320
|
const binding = require('@publier/native-linux-x64-gnu')
|
|
321
321
|
const bindingPackageVersion = require('@publier/native-linux-x64-gnu/package.json').version
|
|
322
|
-
if (bindingPackageVersion !== '0.
|
|
323
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
322
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
323
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
324
324
|
}
|
|
325
325
|
return binding
|
|
326
326
|
} catch (e) {
|
|
@@ -337,8 +337,8 @@ function requireNative() {
|
|
|
337
337
|
try {
|
|
338
338
|
const binding = require('@publier/native-linux-arm64-musl')
|
|
339
339
|
const bindingPackageVersion = require('@publier/native-linux-arm64-musl/package.json').version
|
|
340
|
-
if (bindingPackageVersion !== '0.
|
|
341
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
340
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
341
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
342
342
|
}
|
|
343
343
|
return binding
|
|
344
344
|
} catch (e) {
|
|
@@ -353,8 +353,8 @@ function requireNative() {
|
|
|
353
353
|
try {
|
|
354
354
|
const binding = require('@publier/native-linux-arm64-gnu')
|
|
355
355
|
const bindingPackageVersion = require('@publier/native-linux-arm64-gnu/package.json').version
|
|
356
|
-
if (bindingPackageVersion !== '0.
|
|
357
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
356
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
357
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
358
358
|
}
|
|
359
359
|
return binding
|
|
360
360
|
} catch (e) {
|
|
@@ -371,8 +371,8 @@ function requireNative() {
|
|
|
371
371
|
try {
|
|
372
372
|
const binding = require('@publier/native-linux-arm-musleabihf')
|
|
373
373
|
const bindingPackageVersion = require('@publier/native-linux-arm-musleabihf/package.json').version
|
|
374
|
-
if (bindingPackageVersion !== '0.
|
|
375
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
374
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
375
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
376
376
|
}
|
|
377
377
|
return binding
|
|
378
378
|
} catch (e) {
|
|
@@ -387,8 +387,8 @@ function requireNative() {
|
|
|
387
387
|
try {
|
|
388
388
|
const binding = require('@publier/native-linux-arm-gnueabihf')
|
|
389
389
|
const bindingPackageVersion = require('@publier/native-linux-arm-gnueabihf/package.json').version
|
|
390
|
-
if (bindingPackageVersion !== '0.
|
|
391
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
390
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
391
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
392
392
|
}
|
|
393
393
|
return binding
|
|
394
394
|
} catch (e) {
|
|
@@ -405,8 +405,8 @@ function requireNative() {
|
|
|
405
405
|
try {
|
|
406
406
|
const binding = require('@publier/native-linux-loong64-musl')
|
|
407
407
|
const bindingPackageVersion = require('@publier/native-linux-loong64-musl/package.json').version
|
|
408
|
-
if (bindingPackageVersion !== '0.
|
|
409
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
408
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
409
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
410
410
|
}
|
|
411
411
|
return binding
|
|
412
412
|
} catch (e) {
|
|
@@ -421,8 +421,8 @@ function requireNative() {
|
|
|
421
421
|
try {
|
|
422
422
|
const binding = require('@publier/native-linux-loong64-gnu')
|
|
423
423
|
const bindingPackageVersion = require('@publier/native-linux-loong64-gnu/package.json').version
|
|
424
|
-
if (bindingPackageVersion !== '0.
|
|
425
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
424
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
425
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
426
426
|
}
|
|
427
427
|
return binding
|
|
428
428
|
} catch (e) {
|
|
@@ -439,8 +439,8 @@ function requireNative() {
|
|
|
439
439
|
try {
|
|
440
440
|
const binding = require('@publier/native-linux-riscv64-musl')
|
|
441
441
|
const bindingPackageVersion = require('@publier/native-linux-riscv64-musl/package.json').version
|
|
442
|
-
if (bindingPackageVersion !== '0.
|
|
443
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
442
|
+
if (bindingPackageVersion !== '0.2.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 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
444
444
|
}
|
|
445
445
|
return binding
|
|
446
446
|
} catch (e) {
|
|
@@ -455,8 +455,8 @@ function requireNative() {
|
|
|
455
455
|
try {
|
|
456
456
|
const binding = require('@publier/native-linux-riscv64-gnu')
|
|
457
457
|
const bindingPackageVersion = require('@publier/native-linux-riscv64-gnu/package.json').version
|
|
458
|
-
if (bindingPackageVersion !== '0.
|
|
459
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
458
|
+
if (bindingPackageVersion !== '0.2.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 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
460
460
|
}
|
|
461
461
|
return binding
|
|
462
462
|
} catch (e) {
|
|
@@ -472,8 +472,8 @@ function requireNative() {
|
|
|
472
472
|
try {
|
|
473
473
|
const binding = require('@publier/native-linux-ppc64-gnu')
|
|
474
474
|
const bindingPackageVersion = require('@publier/native-linux-ppc64-gnu/package.json').version
|
|
475
|
-
if (bindingPackageVersion !== '0.
|
|
476
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
475
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
476
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
477
477
|
}
|
|
478
478
|
return binding
|
|
479
479
|
} catch (e) {
|
|
@@ -488,8 +488,8 @@ function requireNative() {
|
|
|
488
488
|
try {
|
|
489
489
|
const binding = require('@publier/native-linux-s390x-gnu')
|
|
490
490
|
const bindingPackageVersion = require('@publier/native-linux-s390x-gnu/package.json').version
|
|
491
|
-
if (bindingPackageVersion !== '0.
|
|
492
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
491
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
492
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
493
493
|
}
|
|
494
494
|
return binding
|
|
495
495
|
} catch (e) {
|
|
@@ -508,8 +508,8 @@ function requireNative() {
|
|
|
508
508
|
try {
|
|
509
509
|
const binding = require('@publier/native-openharmony-arm64')
|
|
510
510
|
const bindingPackageVersion = require('@publier/native-openharmony-arm64/package.json').version
|
|
511
|
-
if (bindingPackageVersion !== '0.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
511
|
+
if (bindingPackageVersion !== '0.2.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 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
514
514
|
return binding
|
|
515
515
|
} catch (e) {
|
|
@@ -524,8 +524,8 @@ function requireNative() {
|
|
|
524
524
|
try {
|
|
525
525
|
const binding = require('@publier/native-openharmony-x64')
|
|
526
526
|
const bindingPackageVersion = require('@publier/native-openharmony-x64/package.json').version
|
|
527
|
-
if (bindingPackageVersion !== '0.
|
|
528
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
527
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
528
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
529
529
|
}
|
|
530
530
|
return binding
|
|
531
531
|
} catch (e) {
|
|
@@ -540,8 +540,8 @@ function requireNative() {
|
|
|
540
540
|
try {
|
|
541
541
|
const binding = require('@publier/native-openharmony-arm')
|
|
542
542
|
const bindingPackageVersion = require('@publier/native-openharmony-arm/package.json').version
|
|
543
|
-
if (bindingPackageVersion !== '0.
|
|
544
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
543
|
+
if (bindingPackageVersion !== '0.2.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
544
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
545
545
|
}
|
|
546
546
|
return binding
|
|
547
547
|
} catch (e) {
|
|
@@ -682,8 +682,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
682
682
|
if (!candidateFailed) {
|
|
683
683
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
684
684
|
const bindingPackageVersion = require('@publier/native-wasm32-wasi/package.json').version
|
|
685
|
-
if (bindingPackageVersion !== '0.
|
|
686
|
-
throw new Error(`WASI binding package version mismatch, expected 0.
|
|
685
|
+
if (bindingPackageVersion !== '0.2.0') {
|
|
686
|
+
throw new Error(`WASI binding package version mismatch, expected 0.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
wasiBinding = require('@publier/native-wasm32-wasi')
|
package/package.json
CHANGED
|
Binary file
|