intl-messageformat
Advanced tools
Comparing version 10.3.3 to 10.3.4
@@ -15,4 +15,4 @@ import { parse, MessageFormatElement, ParserOptions } from '@formatjs/icu-messageformat-parser'; | ||
constructor(message: string | MessageFormatElement[], locales?: string | string[], overrideFormats?: Partial<Formats>, opts?: Options); | ||
format: <T = void>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined) => string | T | (string | T)[]; | ||
formatToParts: <T>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined) => MessageFormatPart<T>[]; | ||
format: <T = void>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T>> | undefined) => string | T | (string | T)[]; | ||
formatToParts: <T>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T>> | undefined) => MessageFormatPart<T>[]; | ||
resolvedOptions: () => { | ||
@@ -19,0 +19,0 @@ locale: string; |
@@ -85,3 +85,3 @@ /* | ||
} | ||
var IntlMessageFormat = /** @class */ (function () { | ||
export var IntlMessageFormat = /** @class */ (function () { | ||
function IntlMessageFormat(message, locales, overrideFormats, opts) { | ||
@@ -239,2 +239,1 @@ if (locales === void 0) { locales = IntlMessageFormat.defaultLocale; } | ||
}()); | ||
export { IntlMessageFormat }; |
{ | ||
"name": "intl-messageformat", | ||
"version": "10.3.3", | ||
"version": "10.3.4", | ||
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
"@formatjs/fast-memoize": "2.0.1", | ||
"@formatjs/icu-messageformat-parser": "2.3.0", | ||
"@formatjs/icu-messageformat-parser": "2.3.1", | ||
"tslib": "^2.4.0" | ||
@@ -39,0 +39,0 @@ }, |
@@ -15,4 +15,4 @@ import { parse, MessageFormatElement, ParserOptions } from '@formatjs/icu-messageformat-parser'; | ||
constructor(message: string | MessageFormatElement[], locales?: string | string[], overrideFormats?: Partial<Formats>, opts?: Options); | ||
format: <T = void>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined) => string | T | (string | T)[]; | ||
formatToParts: <T>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined) => MessageFormatPart<T>[]; | ||
format: <T = void>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T>> | undefined) => string | T | (string | T)[]; | ||
formatToParts: <T>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T>> | undefined) => MessageFormatPart<T>[]; | ||
resolvedOptions: () => { | ||
@@ -19,0 +19,0 @@ locale: string; |
@@ -88,3 +88,3 @@ "use strict"; | ||
} | ||
var IntlMessageFormat = /** @class */ (function () { | ||
var IntlMessageFormat = exports.IntlMessageFormat = /** @class */ (function () { | ||
function IntlMessageFormat(message, locales, overrideFormats, opts) { | ||
@@ -242,2 +242,1 @@ if (locales === void 0) { locales = IntlMessageFormat.defaultLocale; } | ||
}()); | ||
exports.IntlMessageFormat = IntlMessageFormat; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
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
231242
7620
+ Added@formatjs/icu-messageformat-parser@2.3.1(transitive)
- Removed@formatjs/icu-messageformat-parser@2.3.0(transitive)