Comparing version 1.5.0 to 1.6.0
@@ -0,1 +1,8 @@ | ||
# [1.6.0](https://github.com/hiddentao/bigval/compare/v1.5.0...v1.6.0) (2023-11-06) | ||
### Features | ||
* add decimals getter ([9b3fbb0](https://github.com/hiddentao/bigval/commit/9b3fbb06d0fe9346437a37ced08a92899cc6ec96)) | ||
# [1.5.0](https://github.com/hiddentao/bigval/compare/v1.4.0...v1.5.0) (2022-03-02) | ||
@@ -2,0 +9,0 @@ |
@@ -123,2 +123,6 @@ import { Decimal } from 'decimal.js'; | ||
/** | ||
* Get no. of decimal places. | ||
*/ | ||
get decimals(): number; | ||
/** | ||
* Round to the nearest whole number. | ||
@@ -125,0 +129,0 @@ */ |
@@ -137,2 +137,8 @@ "use strict"; | ||
/** | ||
* Get no. of decimal places. | ||
*/ | ||
get decimals() { | ||
return this._n.decimalPlaces(); | ||
} | ||
/** | ||
* Round to the nearest whole number. | ||
@@ -139,0 +145,0 @@ */ |
@@ -123,2 +123,6 @@ import { Decimal } from 'decimal.js'; | ||
/** | ||
* Get no. of decimal places. | ||
*/ | ||
get decimals(): number; | ||
/** | ||
* Round to the nearest whole number. | ||
@@ -125,0 +129,0 @@ */ |
@@ -133,2 +133,8 @@ import { Decimal } from 'decimal.js'; | ||
/** | ||
* Get no. of decimal places. | ||
*/ | ||
get decimals() { | ||
return this._n.decimalPlaces(); | ||
} | ||
/** | ||
* Round to the nearest whole number. | ||
@@ -135,0 +141,0 @@ */ |
{ | ||
"name": "bigval", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Easier calculation and formatting of crypto values with decimals. Useful for smart contract interaction.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
412025
11803