Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i18n-number

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n-number - npm Package Compare versions

Comparing version 4.0.0-pre.1 to 4.0.0-pre.2

7

i18n-number.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc