@internationalized/message
Advanced tools
Comparing version 3.0.1-nightly.2730 to 3.0.1-nightly.2731
@@ -0,1 +1,2 @@ | ||
import { FormatXMLElementFn, PrimitiveType } from "intl-messageformat/src/formatters"; | ||
export type LocalizedStrings = { | ||
@@ -19,5 +20,5 @@ [lang: string]: { | ||
constructor(locale: string, messages: MessageDictionary); | ||
format(key: string, variables: object): string; | ||
format<T = void>(key: string, variables: Record<string, PrimitiveType | T | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined): string | T | (string | T)[]; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@internationalized/message", | ||
"version": "3.0.1-nightly.2730+a4831e5fb", | ||
"version": "3.0.1-nightly.2731+a60427fdf", | ||
"description": "Internationalized message formatting and locale negotiation", | ||
@@ -21,3 +21,3 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"intl-messageformat": "^2.2.0" | ||
"intl-messageformat": "^9.6.12" | ||
}, | ||
@@ -27,3 +27,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "a4831e5fba17cf0a740c4c601e0c298d99960de3" | ||
"gitHead": "a60427fdf8cb7a1b53b4da562cca5f24e39fe766" | ||
} |
@@ -13,2 +13,3 @@ /* | ||
import {FormatXMLElementFn, PrimitiveType} from 'intl-messageformat/src/formatters'; | ||
import IntlMessageFormat from 'intl-messageformat'; | ||
@@ -31,3 +32,3 @@ import {MessageDictionary} from './MessageDictionary'; | ||
format(key: string, variables: object) { | ||
format<T = void>(key: string, variables: Record<string, PrimitiveType | T | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined) { | ||
let message = this.cache[key]; | ||
@@ -34,0 +35,0 @@ if (!message) { |
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
40919
337
+ Added@formatjs/ecma402-abstract@1.11.4(transitive)
+ Added@formatjs/fast-memoize@1.2.1(transitive)
+ Added@formatjs/icu-messageformat-parser@2.1.0(transitive)
+ Added@formatjs/icu-skeleton-parser@1.3.6(transitive)
+ Added@formatjs/intl-localematcher@0.2.25(transitive)
+ Addedintl-messageformat@9.13.0(transitive)
+ Addedtslib@2.7.0(transitive)
- Removedintl-messageformat@2.2.0(transitive)
- Removedintl-messageformat-parser@1.4.0(transitive)
Updatedintl-messageformat@^9.6.12