@internationalized/string
Advanced tools
Comparing version 3.2.2-nightly.4513 to 3.2.2-nightly.4514
@@ -63,5 +63,4 @@ | ||
// Clone messages so we don't modify the original object. | ||
this.strings = { | ||
...messages | ||
}; | ||
// Filter out entries with falsy values which may have been caused by applying optimize-locales-plugin. | ||
this.strings = Object.fromEntries(Object.entries(messages).filter(([, v])=>v)); | ||
this.defaultLocale = defaultLocale; | ||
@@ -68,0 +67,0 @@ } |
@@ -56,5 +56,4 @@ /* | ||
// Clone messages so we don't modify the original object. | ||
this.strings = { | ||
...messages | ||
}; | ||
// Filter out entries with falsy values which may have been caused by applying optimize-locales-plugin. | ||
this.strings = Object.fromEntries(Object.entries(messages).filter(([, v])=>v)); | ||
this.defaultLocale = defaultLocale; | ||
@@ -61,0 +60,0 @@ } |
{ | ||
"name": "@internationalized/string", | ||
"version": "3.2.2-nightly.4513+1697a7fef", | ||
"version": "3.2.2-nightly.4514+f6a664ba9", | ||
"description": "Internationalized string formatting and locale negotiation", | ||
@@ -30,3 +30,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "1697a7fef3516f7a194f43b75edb858589ef6535" | ||
"gitHead": "f6a664ba900c3e6307a0f9461241aa3b2397efeb" | ||
} |
@@ -33,3 +33,6 @@ /* | ||
// Clone messages so we don't modify the original object. | ||
this.strings = {...messages}; | ||
// Filter out entries with falsy values which may have been caused by applying optimize-locales-plugin. | ||
this.strings = Object.fromEntries( | ||
Object.entries(messages).filter(([, v]) => v) | ||
); | ||
this.defaultLocale = defaultLocale; | ||
@@ -36,0 +39,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
69335