Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@formatjs/intl

Package Overview
Dependencies
Maintainers
3
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formatjs/intl - npm Package Compare versions

Comparing version
4.1.0
to
4.1.1
+3
-3
package.json
{
"name": "@formatjs/intl",
"description": "Internationalize JS apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.",
"version": "4.1.0",
"version": "4.1.1",
"license": "MIT",

@@ -17,4 +17,4 @@ "author": "Long Ho <holevietlong@gmail.com>",

"@formatjs/fast-memoize": "3.1.0",
"intl-messageformat": "11.1.0",
"@formatjs/icu-messageformat-parser": "3.4.0"
"@formatjs/icu-messageformat-parser": "3.5.0",
"intl-messageformat": "11.1.1"
},

@@ -21,0 +21,0 @@ "peerDependencies": {

@@ -54,6 +54,2 @@ import "./types.js";

}
// IMPORTANT: Hot path straight lookup for performance
if (!values && message && typeof message === "string" && !defaultRichTextElements) {
return message.replace(/'\{(.*?)\}'/gi, `{$1}`);
}
values = {

@@ -60,0 +56,0 @@ ...defaultRichTextElements,