@pid7/ashwa 0.2.1 → 0.2.2
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.
|
Binary file
|
package/native/index.js
CHANGED
|
@@ -93,12 +93,12 @@ function requireNative() {
|
|
|
93
93
|
require("@pid7/ashwa-native-android-arm64/package.json").version;
|
|
94
94
|
|
|
95
95
|
if (
|
|
96
|
-
bindingPackageVersion !== "0.2.
|
|
96
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
97
97
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
98
98
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
99
99
|
) {
|
|
100
100
|
throw new Error(
|
|
101
|
-
`Native binding package version mismatch, expected 0.2.
|
|
101
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
102
102
|
);
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -119,12 +119,12 @@ function requireNative() {
|
|
|
119
119
|
require("@pid7/ashwa-native-android-arm-eabi/package.json").version;
|
|
120
120
|
|
|
121
121
|
if (
|
|
122
|
-
bindingPackageVersion !== "0.2.
|
|
122
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
123
123
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
124
124
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
125
125
|
) {
|
|
126
126
|
throw new Error(
|
|
127
|
-
`Native binding package version mismatch, expected 0.2.
|
|
127
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
128
128
|
);
|
|
129
129
|
}
|
|
130
130
|
|
|
@@ -159,12 +159,12 @@ function requireNative() {
|
|
|
159
159
|
require("@pid7/ashwa-native-win32-x64-gnu/package.json").version;
|
|
160
160
|
|
|
161
161
|
if (
|
|
162
|
-
bindingPackageVersion !== "0.2.
|
|
162
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
163
163
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
164
164
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
165
165
|
) {
|
|
166
166
|
throw new Error(
|
|
167
|
-
`Native binding package version mismatch, expected 0.2.
|
|
167
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
168
168
|
);
|
|
169
169
|
}
|
|
170
170
|
|
|
@@ -185,12 +185,12 @@ function requireNative() {
|
|
|
185
185
|
require("@pid7/ashwa-native-win32-x64-msvc/package.json").version;
|
|
186
186
|
|
|
187
187
|
if (
|
|
188
|
-
bindingPackageVersion !== "0.2.
|
|
188
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
189
189
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
190
190
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
191
191
|
) {
|
|
192
192
|
throw new Error(
|
|
193
|
-
`Native binding package version mismatch, expected 0.2.
|
|
193
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
194
194
|
);
|
|
195
195
|
}
|
|
196
196
|
|
|
@@ -212,12 +212,12 @@ function requireNative() {
|
|
|
212
212
|
require("@pid7/ashwa-native-win32-ia32-msvc/package.json").version;
|
|
213
213
|
|
|
214
214
|
if (
|
|
215
|
-
bindingPackageVersion !== "0.2.
|
|
215
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
216
216
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
217
217
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
218
218
|
) {
|
|
219
219
|
throw new Error(
|
|
220
|
-
`Native binding package version mismatch, expected 0.2.
|
|
220
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
221
221
|
);
|
|
222
222
|
}
|
|
223
223
|
|
|
@@ -238,12 +238,12 @@ function requireNative() {
|
|
|
238
238
|
require("@pid7/ashwa-native-win32-arm64-msvc/package.json").version;
|
|
239
239
|
|
|
240
240
|
if (
|
|
241
|
-
bindingPackageVersion !== "0.2.
|
|
241
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
242
242
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
243
243
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
244
244
|
) {
|
|
245
245
|
throw new Error(
|
|
246
|
-
`Native binding package version mismatch, expected 0.2.
|
|
246
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
247
247
|
);
|
|
248
248
|
}
|
|
249
249
|
|
|
@@ -269,12 +269,12 @@ function requireNative() {
|
|
|
269
269
|
require("@pid7/ashwa-native-darwin-universal/package.json").version;
|
|
270
270
|
|
|
271
271
|
if (
|
|
272
|
-
bindingPackageVersion !== "0.2.
|
|
272
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
273
273
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
274
274
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
275
275
|
) {
|
|
276
276
|
throw new Error(
|
|
277
|
-
`Native binding package version mismatch, expected 0.2.
|
|
277
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
278
278
|
);
|
|
279
279
|
}
|
|
280
280
|
|
|
@@ -294,12 +294,12 @@ function requireNative() {
|
|
|
294
294
|
const bindingPackageVersion =
|
|
295
295
|
require("@pid7/ashwa-native-darwin-x64/package.json").version;
|
|
296
296
|
if (
|
|
297
|
-
bindingPackageVersion !== "0.2.
|
|
297
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
298
298
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
299
299
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
300
300
|
) {
|
|
301
301
|
throw new Error(
|
|
302
|
-
`Native binding package version mismatch, expected 0.2.
|
|
302
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
303
303
|
);
|
|
304
304
|
}
|
|
305
305
|
|
|
@@ -320,12 +320,12 @@ function requireNative() {
|
|
|
320
320
|
require("@pid7/ashwa-native-darwin-arm64/package.json").version;
|
|
321
321
|
|
|
322
322
|
if (
|
|
323
|
-
bindingPackageVersion !== "0.2.
|
|
323
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
324
324
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
325
325
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
326
326
|
) {
|
|
327
327
|
throw new Error(
|
|
328
|
-
`Native binding package version mismatch, expected 0.2.
|
|
328
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
329
329
|
);
|
|
330
330
|
}
|
|
331
331
|
|
|
@@ -352,12 +352,12 @@ function requireNative() {
|
|
|
352
352
|
require("@pid7/ashwa-native-freebsd-x64/package.json").version;
|
|
353
353
|
|
|
354
354
|
if (
|
|
355
|
-
bindingPackageVersion !== "0.2.
|
|
355
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
356
356
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
357
357
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
358
358
|
) {
|
|
359
359
|
throw new Error(
|
|
360
|
-
`Native binding package version mismatch, expected 0.2.
|
|
360
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
361
361
|
);
|
|
362
362
|
}
|
|
363
363
|
|
|
@@ -378,12 +378,12 @@ function requireNative() {
|
|
|
378
378
|
require("@pid7/ashwa-native-freebsd-arm64/package.json").version;
|
|
379
379
|
|
|
380
380
|
if (
|
|
381
|
-
bindingPackageVersion !== "0.2.
|
|
381
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
382
382
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
383
383
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
384
384
|
) {
|
|
385
385
|
throw new Error(
|
|
386
|
-
`Native binding package version mismatch, expected 0.2.
|
|
386
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
|
|
@@ -411,12 +411,12 @@ function requireNative() {
|
|
|
411
411
|
require("@pid7/ashwa-native-linux-x64-musl/package.json").version;
|
|
412
412
|
|
|
413
413
|
if (
|
|
414
|
-
bindingPackageVersion !== "0.2.
|
|
414
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
415
415
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
416
416
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
417
417
|
) {
|
|
418
418
|
throw new Error(
|
|
419
|
-
`Native binding package version mismatch, expected 0.2.
|
|
419
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
420
420
|
);
|
|
421
421
|
}
|
|
422
422
|
|
|
@@ -437,12 +437,12 @@ function requireNative() {
|
|
|
437
437
|
require("@pid7/ashwa-native-linux-x64-gnu/package.json").version;
|
|
438
438
|
|
|
439
439
|
if (
|
|
440
|
-
bindingPackageVersion !== "0.2.
|
|
440
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
441
441
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
442
442
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
443
443
|
) {
|
|
444
444
|
throw new Error(
|
|
445
|
-
`Native binding package version mismatch, expected 0.2.
|
|
445
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
446
446
|
);
|
|
447
447
|
}
|
|
448
448
|
|
|
@@ -465,12 +465,12 @@ function requireNative() {
|
|
|
465
465
|
require("@pid7/ashwa-native-linux-arm64-musl/package.json").version;
|
|
466
466
|
|
|
467
467
|
if (
|
|
468
|
-
bindingPackageVersion !== "0.2.
|
|
468
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
469
469
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
470
470
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
471
471
|
) {
|
|
472
472
|
throw new Error(
|
|
473
|
-
`Native binding package version mismatch, expected 0.2.
|
|
473
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
474
474
|
);
|
|
475
475
|
}
|
|
476
476
|
|
|
@@ -491,12 +491,12 @@ function requireNative() {
|
|
|
491
491
|
require("@pid7/ashwa-native-linux-arm64-gnu/package.json").version;
|
|
492
492
|
|
|
493
493
|
if (
|
|
494
|
-
bindingPackageVersion !== "0.2.
|
|
494
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
495
495
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
496
496
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
497
497
|
) {
|
|
498
498
|
throw new Error(
|
|
499
|
-
`Native binding package version mismatch, expected 0.2.
|
|
499
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
500
500
|
);
|
|
501
501
|
}
|
|
502
502
|
|
|
@@ -518,12 +518,12 @@ function requireNative() {
|
|
|
518
518
|
const bindingPackageVersion =
|
|
519
519
|
require("@pid7/ashwa-native-linux-arm-musleabihf/package.json").version;
|
|
520
520
|
if (
|
|
521
|
-
bindingPackageVersion !== "0.2.
|
|
521
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
522
522
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
523
523
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
524
524
|
) {
|
|
525
525
|
throw new Error(
|
|
526
|
-
`Native binding package version mismatch, expected 0.2.
|
|
526
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
527
527
|
);
|
|
528
528
|
}
|
|
529
529
|
return binding;
|
|
@@ -541,12 +541,12 @@ function requireNative() {
|
|
|
541
541
|
const bindingPackageVersion =
|
|
542
542
|
require("@pid7/ashwa-native-linux-arm-gnueabihf/package.json").version;
|
|
543
543
|
if (
|
|
544
|
-
bindingPackageVersion !== "0.2.
|
|
544
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
545
545
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
546
546
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
547
547
|
) {
|
|
548
548
|
throw new Error(
|
|
549
|
-
`Native binding package version mismatch, expected 0.2.
|
|
549
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
550
550
|
);
|
|
551
551
|
}
|
|
552
552
|
return binding;
|
|
@@ -566,12 +566,12 @@ function requireNative() {
|
|
|
566
566
|
const bindingPackageVersion =
|
|
567
567
|
require("@pid7/ashwa-native-linux-loong64-musl/package.json").version;
|
|
568
568
|
if (
|
|
569
|
-
bindingPackageVersion !== "0.2.
|
|
569
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
570
570
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
571
571
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
572
572
|
) {
|
|
573
573
|
throw new Error(
|
|
574
|
-
`Native binding package version mismatch, expected 0.2.
|
|
574
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
575
575
|
);
|
|
576
576
|
}
|
|
577
577
|
return binding;
|
|
@@ -589,12 +589,12 @@ function requireNative() {
|
|
|
589
589
|
const bindingPackageVersion =
|
|
590
590
|
require("@pid7/ashwa-native-linux-loong64-gnu/package.json").version;
|
|
591
591
|
if (
|
|
592
|
-
bindingPackageVersion !== "0.2.
|
|
592
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
593
593
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
594
594
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
595
595
|
) {
|
|
596
596
|
throw new Error(
|
|
597
|
-
`Native binding package version mismatch, expected 0.2.
|
|
597
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
598
598
|
);
|
|
599
599
|
}
|
|
600
600
|
return binding;
|
|
@@ -614,12 +614,12 @@ function requireNative() {
|
|
|
614
614
|
const bindingPackageVersion =
|
|
615
615
|
require("@pid7/ashwa-native-linux-riscv64-musl/package.json").version;
|
|
616
616
|
if (
|
|
617
|
-
bindingPackageVersion !== "0.2.
|
|
617
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
618
618
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
619
619
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
620
620
|
) {
|
|
621
621
|
throw new Error(
|
|
622
|
-
`Native binding package version mismatch, expected 0.2.
|
|
622
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
623
623
|
);
|
|
624
624
|
}
|
|
625
625
|
return binding;
|
|
@@ -637,12 +637,12 @@ function requireNative() {
|
|
|
637
637
|
const bindingPackageVersion =
|
|
638
638
|
require("@pid7/ashwa-native-linux-riscv64-gnu/package.json").version;
|
|
639
639
|
if (
|
|
640
|
-
bindingPackageVersion !== "0.2.
|
|
640
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
641
641
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
642
642
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
643
643
|
) {
|
|
644
644
|
throw new Error(
|
|
645
|
-
`Native binding package version mismatch, expected 0.2.
|
|
645
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
646
646
|
);
|
|
647
647
|
}
|
|
648
648
|
return binding;
|
|
@@ -661,12 +661,12 @@ function requireNative() {
|
|
|
661
661
|
const bindingPackageVersion =
|
|
662
662
|
require("@pid7/ashwa-native-linux-ppc64-gnu/package.json").version;
|
|
663
663
|
if (
|
|
664
|
-
bindingPackageVersion !== "0.2.
|
|
664
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
665
665
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
666
666
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
667
667
|
) {
|
|
668
668
|
throw new Error(
|
|
669
|
-
`Native binding package version mismatch, expected 0.2.
|
|
669
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
670
670
|
);
|
|
671
671
|
}
|
|
672
672
|
return binding;
|
|
@@ -684,12 +684,12 @@ function requireNative() {
|
|
|
684
684
|
const bindingPackageVersion =
|
|
685
685
|
require("@pid7/ashwa-native-linux-s390x-gnu/package.json").version;
|
|
686
686
|
if (
|
|
687
|
-
bindingPackageVersion !== "0.2.
|
|
687
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
688
688
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
689
689
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
690
690
|
) {
|
|
691
691
|
throw new Error(
|
|
692
|
-
`Native binding package version mismatch, expected 0.2.
|
|
692
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
693
693
|
);
|
|
694
694
|
}
|
|
695
695
|
return binding;
|
|
@@ -713,12 +713,12 @@ function requireNative() {
|
|
|
713
713
|
const bindingPackageVersion =
|
|
714
714
|
require("@pid7/ashwa-native-openharmony-arm64/package.json").version;
|
|
715
715
|
if (
|
|
716
|
-
bindingPackageVersion !== "0.2.
|
|
716
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
717
717
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
718
718
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
719
719
|
) {
|
|
720
720
|
throw new Error(
|
|
721
|
-
`Native binding package version mismatch, expected 0.2.
|
|
721
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
722
722
|
);
|
|
723
723
|
}
|
|
724
724
|
return binding;
|
|
@@ -736,12 +736,12 @@ function requireNative() {
|
|
|
736
736
|
const bindingPackageVersion =
|
|
737
737
|
require("@pid7/ashwa-native-openharmony-x64/package.json").version;
|
|
738
738
|
if (
|
|
739
|
-
bindingPackageVersion !== "0.2.
|
|
739
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
740
740
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
741
741
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
742
742
|
) {
|
|
743
743
|
throw new Error(
|
|
744
|
-
`Native binding package version mismatch, expected 0.2.
|
|
744
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
745
745
|
);
|
|
746
746
|
}
|
|
747
747
|
return binding;
|
|
@@ -759,12 +759,12 @@ function requireNative() {
|
|
|
759
759
|
const bindingPackageVersion =
|
|
760
760
|
require("@pid7/ashwa-native-openharmony-arm/package.json").version;
|
|
761
761
|
if (
|
|
762
|
-
bindingPackageVersion !== "0.2.
|
|
762
|
+
bindingPackageVersion !== "0.2.2" &&
|
|
763
763
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
764
764
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
|
|
765
765
|
) {
|
|
766
766
|
throw new Error(
|
|
767
|
-
`Native binding package version mismatch, expected 0.2.
|
|
767
|
+
`Native binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
768
768
|
);
|
|
769
769
|
}
|
|
770
770
|
return binding;
|
|
@@ -927,9 +927,9 @@ if (!nativeBinding || forceWasi) {
|
|
|
927
927
|
) {
|
|
928
928
|
const bindingPackageVersion =
|
|
929
929
|
require("@pid7/ashwa-native-wasm32-wasi/package.json").version;
|
|
930
|
-
if (bindingPackageVersion !== "0.2.
|
|
930
|
+
if (bindingPackageVersion !== "0.2.2") {
|
|
931
931
|
throw new Error(
|
|
932
|
-
`WASI binding package version mismatch, expected 0.2.
|
|
932
|
+
`WASI binding package version mismatch, expected 0.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
933
933
|
);
|
|
934
934
|
}
|
|
935
935
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|