intl-messageformat
Advanced tools
Comparing version 10.3.1 to 10.3.2
@@ -15,3 +15,3 @@ 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)[]; | ||
format: <T = void>(values?: Record<string, T | PrimitiveType | 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>[]; | ||
@@ -18,0 +18,0 @@ resolvedOptions: () => { |
@@ -8,3 +8,3 @@ /* | ||
import { parse, } from '@formatjs/icu-messageformat-parser'; | ||
import memoize, { strategies } from '@formatjs/fast-memoize'; | ||
import { memoize, strategies } from '@formatjs/fast-memoize'; | ||
import { formatToParts, PART_TYPE, } from './formatters'; | ||
@@ -11,0 +11,0 @@ // -- MessageFormat -------------------------------------------------------- |
{ | ||
"name": "intl-messageformat", | ||
"version": "10.3.1", | ||
"version": "10.3.2", | ||
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"@formatjs/ecma402-abstract": "1.14.3", | ||
"@formatjs/fast-memoize": "1.2.8", | ||
"@formatjs/fast-memoize": "2.0.0", | ||
"@formatjs/icu-messageformat-parser": "2.3.0", | ||
@@ -38,0 +38,0 @@ "tslib": "^2.4.0" |
@@ -15,3 +15,3 @@ 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)[]; | ||
format: <T = void>(values?: Record<string, T | PrimitiveType | 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>[]; | ||
@@ -18,0 +18,0 @@ resolvedOptions: () => { |
@@ -11,3 +11,3 @@ "use strict"; | ||
var icu_messageformat_parser_1 = require("@formatjs/icu-messageformat-parser"); | ||
var fast_memoize_1 = tslib_1.__importStar(require("@formatjs/fast-memoize")); | ||
var fast_memoize_1 = require("@formatjs/fast-memoize"); | ||
var formatters_1 = require("./formatters"); | ||
@@ -54,3 +54,3 @@ // -- MessageFormat -------------------------------------------------------- | ||
return { | ||
getNumberFormat: (0, fast_memoize_1.default)(function () { | ||
getNumberFormat: (0, fast_memoize_1.memoize)(function () { | ||
var _a; | ||
@@ -66,3 +66,3 @@ var args = []; | ||
}), | ||
getDateTimeFormat: (0, fast_memoize_1.default)(function () { | ||
getDateTimeFormat: (0, fast_memoize_1.memoize)(function () { | ||
var _a; | ||
@@ -78,3 +78,3 @@ var args = []; | ||
}), | ||
getPluralRules: (0, fast_memoize_1.default)(function () { | ||
getPluralRules: (0, fast_memoize_1.memoize)(function () { | ||
var _a; | ||
@@ -81,0 +81,0 @@ var args = []; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
261622
+ Added@formatjs/fast-memoize@2.0.0(transitive)
- Removed@formatjs/fast-memoize@1.2.8(transitive)
Updated@formatjs/fast-memoize@2.0.0