intl-messageformat
Advanced tools
+0
-5
@@ -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", |
+0
-3
@@ -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; | ||
| } |
+0
-3
| 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< |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
104624
-0.51%3644
-0.33%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated