i18n-number
Advanced tools
Comparing version 4.0.0-pre.1 to 4.0.0-pre.2
@@ -65,3 +65,3 @@ /** | ||
*/ | ||
this.lang = this.DEFAULT_LANG; | ||
Promise.resolve().then(() => this.lang = this.DEFAULT_LANG); | ||
/** | ||
@@ -240,3 +240,3 @@ * Offset for number | ||
_langChanged(lang) { | ||
if (!lang) { | ||
if (!lang || lang === 'null') { | ||
this.lang = this.DEFAULT_LANG; | ||
@@ -301,2 +301,5 @@ lang = this.lang; | ||
_getNumberFormatObject(lang, options) { | ||
if (!lang || lang === 'null') { | ||
lang = this.DEFAULT_LANG; | ||
} | ||
let formatId = lang + JSON.stringify(options); | ||
@@ -303,0 +306,0 @@ let formatObject = formatCache.get(formatId); |
@@ -18,3 +18,3 @@ { | ||
"name": "i18n-number", | ||
"version": "4.0.0-pre.1", | ||
"version": "4.0.0-pre.2", | ||
"main": "i18n-number.js", | ||
@@ -21,0 +21,0 @@ "directories": { |
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
262823
5412