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.
Files changed (3) hide show
  1. package/lib/bn.js +7 -1
  2. package/package.json +1 -1
  3. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bn.js",
3
- "version": "4.11.8",
3
+ "version": "4.11.9",
4
4
  "description": "Big number implementation in pure javascript",
5
5
  "main": "lib/bn.js",
6
6
  "scripts": {
package/.npmignore DELETED
@@ -1,8 +0,0 @@
1
- benchmarks/
2
- coverage/
3
- test/
4
- node_modules/
5
- npm-debug.log
6
- 1.js
7
- logo.png
8
- .travis.yml