bn.js 4.11.8 → 4.11.9
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/lib/bn.js +7 -1
- package/package.json +1 -1
- package/.npmignore +0 -8
package/lib/bn.js
CHANGED
|
@@ -2972,7 +2972,13 @@
|
|
|
2972
2972
|
} else if (cmp > 0) {
|
|
2973
2973
|
r.isub(this.p);
|
|
2974
2974
|
} else {
|
|
2975
|
-
r.strip
|
|
2975
|
+
if (r.strip !== undefined) {
|
|
2976
|
+
// r is BN v4 instance
|
|
2977
|
+
r.strip();
|
|
2978
|
+
} else {
|
|
2979
|
+
// r is BN v5 instance
|
|
2980
|
+
r._strip();
|
|
2981
|
+
}
|
|
2976
2982
|
}
|
|
2977
2983
|
|
|
2978
2984
|
return r;
|
package/package.json
CHANGED