@depay/local-currency
Advanced tools
Comparing version 3.5.0 to 3.5.1
@@ -431,3 +431,3 @@ var timezoneToCurrency = { | ||
this.amount = amount; | ||
this.code = code || Currency.code || Currency.getCode(timeZone); | ||
this.code = code || window._LocalCurrencyCode || Currency.getCode(timeZone); | ||
this.timeZone = timeZone; | ||
@@ -434,0 +434,0 @@ } |
@@ -437,3 +437,3 @@ (function (global, factory) { | ||
this.amount = amount; | ||
this.code = code || Currency.code || Currency.getCode(timeZone); | ||
this.code = code || window._LocalCurrencyCode || Currency.getCode(timeZone); | ||
this.timeZone = timeZone; | ||
@@ -440,0 +440,0 @@ } |
{ | ||
"name": "@depay/local-currency", | ||
"moduleName": "LocalCurrency", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"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", |
@@ -84,8 +84,8 @@ ## Quickstart | ||
### set currency | ||
### set currency globally | ||
Globally (e.g. tests etc.): | ||
e.g. in tests etc.: | ||
```javascript | ||
Currency.code = 'EUR' | ||
window._LocalCurrencyCode = 'EUR' | ||
``` | ||
@@ -92,0 +92,0 @@ |
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
32944