intl-messageformat 11.2.10 → 11.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +6 -7
- package/intl-messageformat.iife.js +2 -2
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MessageFormatElement, ParserOptions, parse } from "@formatjs/icu-messageformat-parser";
|
|
2
|
-
|
|
3
2
|
//#region packages/ecma402-abstract/types/number.d.ts
|
|
4
3
|
type NumberFormatNotation = "standard" | "scientific" | "engineering" | "compact";
|
|
5
4
|
type RoundingPriorityType = "auto" | "morePrecision" | "lessPrecision";
|
|
@@ -120,12 +119,12 @@ declare enum ErrorCode {
|
|
|
120
119
|
declare class FormatError extends Error {
|
|
121
120
|
readonly code: ErrorCode;
|
|
122
121
|
/**
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
122
|
+
* Original message we're trying to format
|
|
123
|
+
* `undefined` if we're only dealing w/ AST
|
|
124
|
+
*
|
|
125
|
+
* @type {(string | undefined)}
|
|
126
|
+
* @memberof FormatError
|
|
127
|
+
*/
|
|
129
128
|
readonly originalMessage: string | undefined;
|
|
130
129
|
constructor(msg: string, code: ErrorCode, originalMessage?: string);
|
|
131
130
|
toString(): string;
|
|
@@ -122,7 +122,7 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
122
122
|
"long",
|
|
123
123
|
"narrow",
|
|
124
124
|
"short"
|
|
125
|
-
][len -
|
|
125
|
+
][len - 3];
|
|
126
126
|
break;
|
|
127
127
|
case "c":
|
|
128
128
|
if (len < 4) throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
@@ -131,7 +131,7 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
131
131
|
"long",
|
|
132
132
|
"narrow",
|
|
133
133
|
"short"
|
|
134
|
-
][len -
|
|
134
|
+
][len - 3];
|
|
135
135
|
break;
|
|
136
136
|
case "a":
|
|
137
137
|
result.hour12 = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intl-messageformat",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.12",
|
|
4
4
|
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"globalization",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
".": "./index.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@formatjs/fast-memoize": "3.1.
|
|
38
|
-
"@formatjs/icu-messageformat-parser": "3.5.
|
|
37
|
+
"@formatjs/fast-memoize": "3.1.7",
|
|
38
|
+
"@formatjs/icu-messageformat-parser": "3.5.15"
|
|
39
39
|
}
|
|
40
40
|
}
|