Socket
Socket
Sign inDemoInstall

@glif/filecoin-number

Package Overview
Dependencies
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glif/filecoin-number - npm Package Compare versions

Comparing version 2.0.65 to 2.0.66

58

dist/FilecoinNumber.d.ts

@@ -106,11 +106,61 @@ /// <reference types="node" />

* Returns a copy of this FilecoinNumber increased by the supplied value n
* @param n Should be a FilecoinNumber to prevent denomination errors
* @param n Must be a FilecoinNumber to prevent denomination errors
*/
plus(n: BigNumber.Value | FilecoinNumber): FilecoinNumber;
plus(n: FilecoinNumber): FilecoinNumber;
/**
* Returns a copy of this FilecoinNumber decreased by the supplied value n
* @param n Should be a FilecoinNumber to prevent denomination errors
* @param n Must be a FilecoinNumber to prevent denomination errors
*/
minus(n: BigNumber.Value | FilecoinNumber): FilecoinNumber;
minus(n: FilecoinNumber): FilecoinNumber;
/**
* Returns `true` if the value of this BigNumber is equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
eq(n: FilecoinNumber | 0): boolean;
/**
* Returns `true` if the value of this BigNumber is greater than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
gt(n: FilecoinNumber | 0): boolean;
/**
* Returns `true` if the value of this BigNumber is greater than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
gte(n: FilecoinNumber | 0): boolean;
/**
* Returns `true` if the value of this BigNumber is less than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
lt(n: FilecoinNumber | 0): boolean;
/**
* Returns `true` if the value of this BigNumber is less than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
lte(n: FilecoinNumber | 0): boolean;
/**
* Returns `true` if the value of this BigNumber is equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
isEqualTo(n: FilecoinNumber | 0): boolean;
/**
* Returns `true` if the value of this BigNumber is greater than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
isGreaterThan(n: FilecoinNumber | 0): boolean;
/**
* Returns `true` if the value of this BigNumber is greater than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
isGreaterThanOrEqualTo(n: FilecoinNumber | 0): boolean;
/**
* Returns `true` if the value of this BigNumber is less than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
isLessThan(n: FilecoinNumber | 0): boolean;
/**
* Returns `true` if the value of this BigNumber is less than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
isLessThanOrEqualTo(n: FilecoinNumber | 0): boolean;
}
//# sourceMappingURL=FilecoinNumber.d.ts.map

@@ -313,3 +313,3 @@ "use strict";

* Returns a copy of this FilecoinNumber increased by the supplied value n
* @param n Should be a FilecoinNumber to prevent denomination errors
* @param n Must be a FilecoinNumber to prevent denomination errors
*/

@@ -320,4 +320,2 @@

value: function plus(n) {
if (!FilecoinNumber.isFilecoinNumber(n)) // tslint:disable-next-line:no-console
console.warn('FilecoinNumber.plus(n) should be passed a FilecoinNumber');
return new FilecoinNumber((0, _get2["default"])((0, _getPrototypeOf2["default"])(FilecoinNumber.prototype), "plus", this).call(this, n), 'fil', this._coinType, this._unit);

@@ -327,3 +325,3 @@ }

* Returns a copy of this FilecoinNumber decreased by the supplied value n
* @param n Should be a FilecoinNumber to prevent denomination errors
* @param n Must be a FilecoinNumber to prevent denomination errors
*/

@@ -334,7 +332,105 @@

value: function minus(n) {
if (!FilecoinNumber.isFilecoinNumber(n)) // tslint:disable-next-line:no-console
console.warn('FilecoinNumber.minus(n) should be passed a FilecoinNumber');
return new FilecoinNumber((0, _get2["default"])((0, _getPrototypeOf2["default"])(FilecoinNumber.prototype), "minus", this).call(this, n), 'fil', this._coinType, this._unit);
}
/**
* Returns `true` if the value of this BigNumber is equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "eq",
value: function eq(n) {
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(FilecoinNumber.prototype), "eq", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is greater than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "gt",
value: function gt(n) {
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(FilecoinNumber.prototype), "gt", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is greater than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "gte",
value: function gte(n) {
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(FilecoinNumber.prototype), "gte", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is less than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "lt",
value: function lt(n) {
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(FilecoinNumber.prototype), "lt", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is less than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "lte",
value: function lte(n) {
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(FilecoinNumber.prototype), "lte", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "isEqualTo",
value: function isEqualTo(n) {
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(FilecoinNumber.prototype), "isEqualTo", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is greater than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "isGreaterThan",
value: function isGreaterThan(n) {
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(FilecoinNumber.prototype), "isGreaterThan", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is greater than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "isGreaterThanOrEqualTo",
value: function isGreaterThanOrEqualTo(n) {
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(FilecoinNumber.prototype), "isGreaterThanOrEqualTo", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is less than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "isLessThan",
value: function isLessThan(n) {
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(FilecoinNumber.prototype), "isLessThan", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is less than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "isLessThanOrEqualTo",
value: function isLessThanOrEqualTo(n) {
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(FilecoinNumber.prototype), "isLessThanOrEqualTo", this).call(this, n);
}
}, {
key: "unit",

@@ -341,0 +437,0 @@

@@ -297,3 +297,3 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";

* Returns a copy of this FilecoinNumber increased by the supplied value n
* @param n Should be a FilecoinNumber to prevent denomination errors
* @param n Must be a FilecoinNumber to prevent denomination errors
*/

@@ -304,4 +304,2 @@

value: function plus(n) {
if (!FilecoinNumber.isFilecoinNumber(n)) // tslint:disable-next-line:no-console
console.warn('FilecoinNumber.plus(n) should be passed a FilecoinNumber');
return new FilecoinNumber(_get(_getPrototypeOf(FilecoinNumber.prototype), "plus", this).call(this, n), 'fil', this._coinType, this._unit);

@@ -311,3 +309,3 @@ }

* Returns a copy of this FilecoinNumber decreased by the supplied value n
* @param n Should be a FilecoinNumber to prevent denomination errors
* @param n Must be a FilecoinNumber to prevent denomination errors
*/

@@ -318,7 +316,105 @@

value: function minus(n) {
if (!FilecoinNumber.isFilecoinNumber(n)) // tslint:disable-next-line:no-console
console.warn('FilecoinNumber.minus(n) should be passed a FilecoinNumber');
return new FilecoinNumber(_get(_getPrototypeOf(FilecoinNumber.prototype), "minus", this).call(this, n), 'fil', this._coinType, this._unit);
}
/**
* Returns `true` if the value of this BigNumber is equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "eq",
value: function eq(n) {
return _get(_getPrototypeOf(FilecoinNumber.prototype), "eq", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is greater than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "gt",
value: function gt(n) {
return _get(_getPrototypeOf(FilecoinNumber.prototype), "gt", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is greater than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "gte",
value: function gte(n) {
return _get(_getPrototypeOf(FilecoinNumber.prototype), "gte", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is less than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "lt",
value: function lt(n) {
return _get(_getPrototypeOf(FilecoinNumber.prototype), "lt", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is less than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "lte",
value: function lte(n) {
return _get(_getPrototypeOf(FilecoinNumber.prototype), "lte", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "isEqualTo",
value: function isEqualTo(n) {
return _get(_getPrototypeOf(FilecoinNumber.prototype), "isEqualTo", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is greater than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "isGreaterThan",
value: function isGreaterThan(n) {
return _get(_getPrototypeOf(FilecoinNumber.prototype), "isGreaterThan", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is greater than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "isGreaterThanOrEqualTo",
value: function isGreaterThanOrEqualTo(n) {
return _get(_getPrototypeOf(FilecoinNumber.prototype), "isGreaterThanOrEqualTo", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is less than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "isLessThan",
value: function isLessThan(n) {
return _get(_getPrototypeOf(FilecoinNumber.prototype), "isLessThan", this).call(this, n);
}
/**
* Returns `true` if the value of this BigNumber is less than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
}, {
key: "isLessThanOrEqualTo",
value: function isLessThanOrEqualTo(n) {
return _get(_getPrototypeOf(FilecoinNumber.prototype), "isLessThanOrEqualTo", this).call(this, n);
}
}, {
key: "unit",

@@ -325,0 +421,0 @@

@@ -280,3 +280,3 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";

* Returns a copy of this FilecoinNumber increased by the supplied value n
* @param n Should be a FilecoinNumber to prevent denomination errors
* @param n Must be a FilecoinNumber to prevent denomination errors
*/

@@ -286,4 +286,2 @@

plus(n) {
if (!FilecoinNumber.isFilecoinNumber(n)) // tslint:disable-next-line:no-console
console.warn('FilecoinNumber.plus(n) should be passed a FilecoinNumber');
return new FilecoinNumber(super.plus(n), 'fil', this._coinType, this._unit);

@@ -293,3 +291,3 @@ }

* Returns a copy of this FilecoinNumber decreased by the supplied value n
* @param n Should be a FilecoinNumber to prevent denomination errors
* @param n Must be a FilecoinNumber to prevent denomination errors
*/

@@ -299,7 +297,95 @@

minus(n) {
if (!FilecoinNumber.isFilecoinNumber(n)) // tslint:disable-next-line:no-console
console.warn('FilecoinNumber.minus(n) should be passed a FilecoinNumber');
return new FilecoinNumber(super.minus(n), 'fil', this._coinType, this._unit);
}
/**
* Returns `true` if the value of this BigNumber is equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
eq(n) {
return super.eq(n);
}
/**
* Returns `true` if the value of this BigNumber is greater than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
gt(n) {
return super.gt(n);
}
/**
* Returns `true` if the value of this BigNumber is greater than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
gte(n) {
return super.gte(n);
}
/**
* Returns `true` if the value of this BigNumber is less than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
lt(n) {
return super.lt(n);
}
/**
* Returns `true` if the value of this BigNumber is less than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
lte(n) {
return super.lte(n);
}
/**
* Returns `true` if the value of this BigNumber is equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
isEqualTo(n) {
return super.isEqualTo(n);
}
/**
* Returns `true` if the value of this BigNumber is greater than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
isGreaterThan(n) {
return super.isGreaterThan(n);
}
/**
* Returns `true` if the value of this BigNumber is greater than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
isGreaterThanOrEqualTo(n) {
return super.isGreaterThanOrEqualTo(n);
}
/**
* Returns `true` if the value of this BigNumber is less than the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
isLessThan(n) {
return super.isLessThan(n);
}
/**
* Returns `true` if the value of this BigNumber is less than or equal to the value of `n`, otherwise returns `false`.
* @param n Must be a FilecoinNumber or 0 to prevent denomination errors
*/
isLessThanOrEqualTo(n) {
return super.isLessThanOrEqualTo(n);
}
}

@@ -306,0 +392,0 @@

4

package.json
{
"name": "@glif/filecoin-number",
"version": "2.0.65",
"version": "2.0.66",
"description": "a javascript package to handle Filecoin numbers like Fil and AttoFil",

@@ -50,3 +50,3 @@ "main": "./dist/index.js",

},
"gitHead": "27ee89edc837ac09443951f892d2a8abeab3961d"
"gitHead": "44398ea1fb6bdad169edffbf68720d05bdb2cc2b"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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