Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ethersproject/bignumber

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/bignumber - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

2

lib.esm/_version.d.ts

@@ -1,1 +0,1 @@

export declare const version = "bignumber/5.0.1";
export declare const version = "bignumber/5.0.2";

@@ -1,1 +0,1 @@

export const version = "bignumber/5.0.1";
export const version = "bignumber/5.0.2";

@@ -26,2 +26,3 @@ import { BytesLike } from "@ethersproject/bytes";

round(decimals?: number): FixedNumber;
isZero(): boolean;
toString(): string;

@@ -28,0 +29,0 @@ toHexString(width?: number): string;

@@ -108,2 +108,7 @@ "use strict";

constructor(constructorGuard, signed, width, decimals) {
if (constructorGuard !== _constructorGuard) {
logger.throwError("cannot use FixedFormat constructor; use FixedFormat.from", Logger.errors.UNSUPPORTED_OPERATION, {
operation: "new FixedFormat"
});
}
this.signed = signed;

@@ -166,2 +171,7 @@ this.width = width;

logger.checkNew(new.target, FixedNumber);
if (constructorGuard !== _constructorGuard) {
logger.throwError("cannot use FixedNumber constructor; use FixedNumber.from", Logger.errors.UNSUPPORTED_OPERATION, {
operation: "new FixedFormat"
});
}
this.format = format;

@@ -221,2 +231,5 @@ this._hex = hex;

}
isZero() {
return (this._value === "0.0");
}
toString() { return this._value; }

@@ -223,0 +236,0 @@ toHexString(width) {

@@ -1,1 +0,1 @@

export declare const version = "bignumber/5.0.1";
export declare const version = "bignumber/5.0.2";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "bignumber/5.0.1";
exports.version = "bignumber/5.0.2";

@@ -26,2 +26,3 @@ import { BytesLike } from "@ethersproject/bytes";

round(decimals?: number): FixedNumber;
isZero(): boolean;
toString(): string;

@@ -28,0 +29,0 @@ toHexString(width?: number): string;

@@ -111,2 +111,7 @@ "use strict";

function FixedFormat(constructorGuard, signed, width, decimals) {
if (constructorGuard !== _constructorGuard) {
logger.throwError("cannot use FixedFormat constructor; use FixedFormat.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
operation: "new FixedFormat"
});
}
this.signed = signed;

@@ -172,2 +177,7 @@ this.width = width;

logger.checkNew(_newTarget, FixedNumber);
if (constructorGuard !== _constructorGuard) {
logger.throwError("cannot use FixedNumber constructor; use FixedNumber.from", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
operation: "new FixedFormat"
});
}
this.format = format;

@@ -227,2 +237,5 @@ this._hex = hex;

};
FixedNumber.prototype.isZero = function () {
return (this._value === "0.0");
};
FixedNumber.prototype.toString = function () { return this._value; };

@@ -229,0 +242,0 @@ FixedNumber.prototype.toHexString = function (width) {

@@ -30,5 +30,5 @@ {

},
"tarballHash": "0x27f10bb3223b3a6cbf2411df19d8f0773123c78b05d68c0c257ea131b01ac471",
"tarballHash": "0x37ad907aba5434a60a53d14305328846d4021e20f5b7406fa68a8993e8e48b4f",
"types": "./lib/index.d.ts",
"version": "5.0.1"
"version": "5.0.2"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc