@depay/local-currency
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -443,3 +443,7 @@ var timezoneToCurrency = { | ||
.then((response) => response.json()) | ||
.then((data) => parseFloat(data)); | ||
.then((data) => parseFloat(data)) | ||
.catch(()=>{ | ||
currency.code = "USD"; | ||
return 1 | ||
}); | ||
currency.amount = currency.amount * rate; | ||
@@ -446,0 +450,0 @@ return currency |
@@ -449,3 +449,7 @@ (function (global, factory) { | ||
.then((response) => response.json()) | ||
.then((data) => parseFloat(data)); | ||
.then((data) => parseFloat(data)) | ||
.catch(()=>{ | ||
currency.code = "USD"; | ||
return 1 | ||
}); | ||
currency.amount = currency.amount * rate; | ||
@@ -452,0 +456,0 @@ return currency |
{ | ||
"name": "@depay/local-currency", | ||
"moduleName": "LocalCurrency", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"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
31795
923