@ocap/util 1.24.4 → 1.24.5
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/esm/bn.d.ts +3 -4
- package/esm/bn.js +2 -3
- package/lib/bn.d.ts +3 -4
- package/lib/bn.js +2 -2
- package/package.json +2 -2
package/esm/bn.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare class
|
|
3
|
-
constructor(value: number | string | number[] | Uint8Array | Buffer |
|
|
1
|
+
import BaseBN from 'bn.js';
|
|
2
|
+
export declare class BN extends BaseBN {
|
|
3
|
+
constructor(value: number | string | number[] | Uint8Array | Buffer | BaseBN | null | undefined, base?: number | 'hex', endian?: BaseBN.Endianness);
|
|
4
4
|
}
|
|
5
|
-
export { WrapBN as BN };
|
package/esm/bn.js
CHANGED
package/lib/bn.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare class
|
|
3
|
-
constructor(value: number | string | number[] | Uint8Array | Buffer |
|
|
1
|
+
import BaseBN from 'bn.js';
|
|
2
|
+
export declare class BN extends BaseBN {
|
|
3
|
+
constructor(value: number | string | number[] | Uint8Array | Buffer | BaseBN | null | undefined, base?: number | 'hex', endian?: BaseBN.Endianness);
|
|
4
4
|
}
|
|
5
|
-
export { WrapBN as BN };
|
package/lib/bn.js
CHANGED
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.BN = void 0;
|
|
7
7
|
const bn_js_1 = __importDefault(require("bn.js"));
|
|
8
|
-
class
|
|
8
|
+
class BN extends bn_js_1.default {
|
|
9
9
|
constructor(value, base, endian) {
|
|
10
10
|
super(value === null ? '0' : value, base, endian);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
exports.BN =
|
|
13
|
+
exports.BN = BN;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/util",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.5",
|
|
4
4
|
"description": "utils shared across multiple forge js libs, works in both node.js and browser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arcblock",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"bs58": "^5.0.0",
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
18
|
"utf8": "^3.0.0",
|
|
19
|
-
"@ocap/types": "^1.24.
|
|
19
|
+
"@ocap/types": "^1.24.5"
|
|
20
20
|
},
|
|
21
21
|
"resolutions": {
|
|
22
22
|
"elliptic": "6.5.3"
|