@formatjs/icu-messageformat-parser 2.4.0 → 2.5.0

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.
@@ -6,4 +6,3 @@
6
6
  * @param locale
7
7
  */
8
8
  export declare function getBestPattern(skeleton: string, locale: Intl.Locale): string;
9
- //# sourceMappingURL=date-time-pattern-generator.d.ts.map
package/error.d.ts CHANGED
@@ -66,4 +66,3 @@ export declare enum ErrorKind {
66
66
  /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
67
67
  UNCLOSED_TAG = 27
68
68
  }
69
- //# sourceMappingURL=error.d.ts.map
package/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { Parser, ParserOptions } from './parser';
2
2
  import { MessageFormatElement } from './types';
3
3
  export declare function parse(message: string, opts?: ParserOptions): MessageFormatElement[];
4
- export { ParserOptions };
4
+ export type { ParserOptions };
5
5
  export * from './types';
6
6
  export declare const _Parser: typeof Parser;
7
- //# sourceMappingURL=index.d.ts.map
@@ -6,4 +6,3 @@
6
6
  * @param locale
7
7
  */
8
8
  export declare function getBestPattern(skeleton: string, locale: Intl.Locale): string;
9
- //# sourceMappingURL=date-time-pattern-generator.d.ts.map
package/lib/error.d.ts CHANGED
@@ -66,4 +66,3 @@ export declare enum ErrorKind {
66
66
  /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
67
67
  UNCLOSED_TAG = 27
68
68
  }
69
- //# sourceMappingURL=error.d.ts.map
package/lib/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { Parser, ParserOptions } from './parser';
2
2
  import { MessageFormatElement } from './types';
3
3
  export declare function parse(message: string, opts?: ParserOptions): MessageFormatElement[];
4
- export { ParserOptions };
4
+ export type { ParserOptions };
5
5
  export * from './types';
6
6
  export declare const _Parser: typeof Parser;
7
- //# sourceMappingURL=index.d.ts.map
@@ -11,4 +11,3 @@ import { MessageFormatElement } from './types';
11
11
  * @param ast AST
12
12
  */
13
13
  export declare function hoistSelectors(ast: MessageFormatElement[]): MessageFormatElement[];
14
- //# sourceMappingURL=manipulator.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare function parse(): void;
2
2
  export * from './types';
3
3
  export declare const _Parser: undefined;
4
- //# sourceMappingURL=no-parser.d.ts.map
package/lib/parser.d.ts CHANGED
@@ -145,4 +145,3 @@ export declare class Parser {
145
145
  */
146
146
  private peek;
147
147
  }
148
- //# sourceMappingURL=parser.d.ts.map
package/lib/printer.d.ts CHANGED
@@ -2,4 +2,3 @@ import { MessageFormatElement, DateTimeSkeleton } from './types';
2
2
  export declare function printAST(ast: MessageFormatElement[]): string;
3
3
  export declare function doPrintAST(ast: MessageFormatElement[], isInPlural: boolean): string;
4
4
  export declare function printDateTimeSkeleton(style: DateTimeSkeleton): string;
5
- //# sourceMappingURL=printer.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare const SPACE_SEPARATOR_REGEX: RegExp;
2
2
  export declare const WHITE_SPACE_REGEX: RegExp;
3
- //# sourceMappingURL=regex.generated.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare const timeData: Record<string, string[]>;
2
- //# sourceMappingURL=time-data.generated.d.ts.map
package/lib/types.d.ts CHANGED
@@ -125,4 +125,3 @@ export type IntlLocaleLike = {
125
125
  readonly hourCycle?: Intl.LocaleHourCycleKey;
126
126
  readonly hourCycles?: Array<Intl.LocaleHourCycleKey>;
127
127
  };
128
- //# sourceMappingURL=types.d.ts.map
package/manipulator.d.ts CHANGED
@@ -11,4 +11,3 @@ import { MessageFormatElement } from './types';
11
11
  * @param ast AST
12
12
  */
13
13
  export declare function hoistSelectors(ast: MessageFormatElement[]): MessageFormatElement[];
14
- //# sourceMappingURL=manipulator.d.ts.map
package/no-parser.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export declare function parse(): void;
2
2
  export * from './types';
3
3
  export declare const _Parser: undefined;
4
- //# sourceMappingURL=no-parser.d.ts.map
package/package.json CHANGED
@@ -1,9 +1,32 @@
1
1
  {
2
2
  "name": "@formatjs/icu-messageformat-parser",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "main": "index.js",
5
5
  "module": "lib/index.js",
6
6
  "types": "index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./index.d.ts",
10
+ "import": "./lib/index.js",
11
+ "default": "./index.js"
12
+ },
13
+ "./no-parser": {
14
+ "types": "./no-parser.d.ts",
15
+ "import": "./lib/no-parser.js",
16
+ "default": "./no-parser.js"
17
+ },
18
+ "./printer": {
19
+ "types": "./printer.d.ts",
20
+ "import": "./lib/printer.js",
21
+ "default": "./printer.js"
22
+ },
23
+ "./manipulator": {
24
+ "types": "./manipulator.d.ts",
25
+ "import": "./lib/manipulator.js",
26
+ "default": "./manipulator.js"
27
+ },
28
+ "./package.json": "./package.json"
29
+ },
7
30
  "license": "MIT",
8
31
  "repository": {
9
32
  "type": "git",
@@ -11,8 +34,8 @@
11
34
  "directory": "packages/icu-messageformat-parser"
12
35
  },
13
36
  "dependencies": {
14
- "@formatjs/ecma402-abstract": "1.15.0",
15
- "@formatjs/icu-skeleton-parser": "1.4.0",
37
+ "@formatjs/ecma402-abstract": "1.16.0",
38
+ "@formatjs/icu-skeleton-parser": "1.5.0",
16
39
  "tslib": "^2.4.0"
17
40
  }
18
41
  }
package/parser.d.ts CHANGED
@@ -145,4 +145,3 @@ export declare class Parser {
145
145
  */
146
146
  private peek;
147
147
  }
148
- //# sourceMappingURL=parser.d.ts.map
package/printer.d.ts CHANGED
@@ -2,4 +2,3 @@ import { MessageFormatElement, DateTimeSkeleton } from './types';
2
2
  export declare function printAST(ast: MessageFormatElement[]): string;
3
3
  export declare function doPrintAST(ast: MessageFormatElement[], isInPlural: boolean): string;
4
4
  export declare function printDateTimeSkeleton(style: DateTimeSkeleton): string;
5
- //# sourceMappingURL=printer.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare const SPACE_SEPARATOR_REGEX: RegExp;
2
2
  export declare const WHITE_SPACE_REGEX: RegExp;
3
- //# sourceMappingURL=regex.generated.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare const timeData: Record<string, string[]>;
2
- //# sourceMappingURL=time-data.generated.d.ts.map
package/types.d.ts CHANGED
@@ -125,4 +125,3 @@ export type IntlLocaleLike = {
125
125
  readonly hourCycle?: Intl.LocaleHourCycleKey;
126
126
  readonly hourCycles?: Array<Intl.LocaleHourCycleKey>;
127
127
  };
128
- //# sourceMappingURL=types.d.ts.map