@depay/local-currency
Advanced tools
Comparing version 3.5.5 to 3.6.0
@@ -464,2 +464,7 @@ var timezoneToCurrency = { | ||
toString(options = {}) { | ||
if(options.minimumFractionDigits == undefined && (this.amount % 1 === 0) && this.amount >= 100) { | ||
options.minimumFractionDigits = 0; | ||
} else if(options.minimumFractionDigits == undefined) { | ||
options.minimumFractionDigits = 2; | ||
} | ||
return new Intl.NumberFormat(navigator.language, {...options, | ||
@@ -466,0 +471,0 @@ style: 'currency', |
@@ -470,2 +470,7 @@ (function (global, factory) { | ||
toString(options = {}) { | ||
if(options.minimumFractionDigits == undefined && (this.amount % 1 === 0) && this.amount >= 100) { | ||
options.minimumFractionDigits = 0; | ||
} else if(options.minimumFractionDigits == undefined) { | ||
options.minimumFractionDigits = 2; | ||
} | ||
return new Intl.NumberFormat(navigator.language, {...options, | ||
@@ -472,0 +477,0 @@ style: 'currency', |
{ | ||
"name": "@depay/local-currency", | ||
"moduleName": "LocalCurrency", | ||
"version": "3.5.5", | ||
"version": "3.6.0", | ||
"description": "JavaScript library that detects user's local currency and provides functionalities to convert between multiple currencies.", | ||
@@ -6,0 +6,0 @@ "main": "dist/umd/index.js", |
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
33448
945
428