@ocap/util 1.24.4 → 1.24.6

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 CHANGED
@@ -1,5 +1,6 @@
1
- import BN from 'bn.js';
2
- declare class WrapBN extends BN {
3
- constructor(value: number | string | number[] | Uint8Array | Buffer | BN | null | undefined, base?: number | 'hex', endian?: BN.Endianness);
1
+ import BaseBN from 'bn.js';
2
+ export interface BN extends BaseBN {
3
+ }
4
+ export declare class BN extends BaseBN {
5
+ constructor(value: number | string | number[] | Uint8Array | Buffer | BaseBN | null | undefined, base?: number | 'hex', endian?: BaseBN.Endianness);
4
6
  }
5
- export { WrapBN as BN };
package/esm/bn.js CHANGED
@@ -1,7 +1,6 @@
1
- import BN from 'bn.js';
2
- class WrapBN extends BN {
1
+ import BaseBN from 'bn.js';
2
+ export class BN extends BaseBN {
3
3
  constructor(value, base, endian) {
4
4
  super(value === null ? '0' : value, base, endian);
5
5
  }
6
6
  }
7
- export { WrapBN as BN };
package/lib/bn.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import BN from 'bn.js';
2
- declare class WrapBN extends BN {
3
- constructor(value: number | string | number[] | Uint8Array | Buffer | BN | null | undefined, base?: number | 'hex', endian?: BN.Endianness);
1
+ import BaseBN from 'bn.js';
2
+ export interface BN extends BaseBN {
3
+ }
4
+ export declare class BN extends BaseBN {
5
+ constructor(value: number | string | number[] | Uint8Array | Buffer | BaseBN | null | undefined, base?: number | 'hex', endian?: BaseBN.Endianness);
4
6
  }
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 WrapBN extends bn_js_1.default {
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 = WrapBN;
13
+ exports.BN = BN;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocap/util",
3
- "version": "1.24.4",
3
+ "version": "1.24.6",
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.4"
19
+ "@ocap/types": "^1.24.6"
20
20
  },
21
21
  "resolutions": {
22
22
  "elliptic": "6.5.3"