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

intl-messageformat

Package Overview
Dependencies
Maintainers
3
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intl-messageformat - npm Package Compare versions

Comparing version
11.0.9
to
11.1.0
+0
-5
index.d.ts

@@ -1,6 +0,1 @@

/*
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
Copyrights licensed under the New BSD License.
See the accompanying LICENSE file for terms.
*/
import { IntlMessageFormat } from "./src/core.js";

@@ -7,0 +2,0 @@ export * from "./src/core.js";

+5
-5
{
"name": "intl-messageformat",
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.",
"version": "11.0.9",
"version": "11.1.0",
"license": "BSD-3-Clause",

@@ -14,6 +14,6 @@ "author": "Eric Ferraiuolo <eferraiuolo@gmail.com>",

"dependencies": {
"tslib": "^2.8.0",
"@formatjs/ecma402-abstract": "3.0.8",
"@formatjs/fast-memoize": "3.0.3",
"@formatjs/icu-messageformat-parser": "3.3.0"
"tslib": "^2.8.1",
"@formatjs/fast-memoize": "3.1.0",
"@formatjs/ecma402-abstract": "3.1.0",
"@formatjs/icu-messageformat-parser": "3.4.0"
},

@@ -20,0 +20,0 @@ "bugs": "https://github.com/formatjs/formatjs/issues",

@@ -25,6 +25,3 @@ import { type MessageFormatElement, parse, type ParserOptions } from "@formatjs/icu-messageformat-parser";

static __parse: typeof parse | undefined;
// Default format options used as the prototype of the `formats` provided to the
// constructor. These are used when constructing the internal Intl.NumberFormat
// and Intl.DateTimeFormat instances.
static formats: Formats;
}
export declare enum ErrorCode {
// When we have a placeholder but no value to format
MISSING_VALUE = "MISSING_VALUE",
// When value supplied is invalid
INVALID_VALUE = "INVALID_VALUE",
// When we need specific Intl API but it's not available
MISSING_INTL_API = "MISSING_INTL_API"

@@ -8,0 +5,0 @@ }

@@ -41,3 +41,2 @@ import { type NumberFormatOptions } from "@formatjs/ecma402-abstract";

export declare function isFormatXMLElementFn<T>(el: PrimitiveType | T | FormatXMLElementFn<T>): el is FormatXMLElementFn<T>;
// TODO(skeleton): add skeleton support
export declare function formatToParts<T>(els: MessageFormatElement[], locales: string | string[], formatters: Formatters, formats: Formats, values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T>>, currentPluralValue?: number, originalMessage?: string): MessageFormatPart<T>[];

@@ -44,0 +43,0 @@ export type FormatXMLElementFn<