@formatjs/intl-displaynames 6.3.1 → 6.4.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.
@@ -1,2 +1 @@
1
1
  export declare function CanonicalCodeForDisplayNames(type: 'language' | 'region' | 'script' | 'calendar' | 'dateTimeField' | 'currency', code: string): string;
2
- //# sourceMappingURL=CanonicalCodeForDisplayNames.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function IsValidDateTimeFieldCode(field: string): boolean;
2
- //# sourceMappingURL=IsValidDateTimeFieldCode.d.ts.map
package/index.d.ts CHANGED
@@ -25,4 +25,3 @@ export declare class DisplayNames {
25
25
  private static getDefaultLocale;
26
26
  static readonly polyfilled = true;
27
27
  }
28
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function CanonicalCodeForDisplayNames(type: 'language' | 'region' | 'script' | 'calendar' | 'dateTimeField' | 'currency', code: string): string;
2
- //# sourceMappingURL=CanonicalCodeForDisplayNames.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function IsValidDateTimeFieldCode(field: string): boolean;
2
- //# sourceMappingURL=IsValidDateTimeFieldCode.d.ts.map
package/lib/index.d.ts CHANGED
@@ -25,4 +25,3 @@ export declare class DisplayNames {
25
25
  private static getDefaultLocale;
26
26
  static readonly polyfilled = true;
27
27
  }
28
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=polyfill-force.d.ts.map
package/lib/polyfill.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=polyfill.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare function _shouldPolyfillWithoutLocale(): boolean;
2
2
  export declare function shouldPolyfill(locale?: string): string | true | undefined;
3
- //# sourceMappingURL=should-polyfill.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare const supportedLocales: string[];
2
- //# sourceMappingURL=supported-locales.generated.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-displaynames",
3
- "version": "6.3.1",
3
+ "version": "6.4.0",
4
4
  "description": "Polyfill for: https://tc39.es/proposal-intl-displaynames",
5
5
  "keywords": [
6
6
  "i18n",
@@ -16,18 +16,46 @@
16
16
  "license": "MIT",
17
17
  "main": "index.js",
18
18
  "types": "index.d.js",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./index.d.ts",
22
+ "import": "./lib/index.js",
23
+ "default": "./index.js"
24
+ },
25
+ "./polyfill": {
26
+ "types": "./polyfill.d.ts",
27
+ "import": "./lib/polyfill.js",
28
+ "default": "./polyfill.js"
29
+ },
30
+ "./polyfill-force": {
31
+ "types": "./polyfill-force.d.ts",
32
+ "import": "./lib/polyfill-force.js",
33
+ "default": "./polyfill-force.js"
34
+ },
35
+ "./should-polyfill": {
36
+ "types": "./should-polyfill.d.ts",
37
+ "import": "./lib/should-polyfill.js",
38
+ "default": "./should-polyfill.js"
39
+ },
40
+ "./locale-data/*": {
41
+ "types": "./locale-data/*.d.ts",
42
+ "default": "./locale-data/*.js"
43
+ },
44
+ "./polyfill.iife.js": "./polyfill.iife.js",
45
+ "./package.json": "./package.json"
46
+ },
19
47
  "repository": {
20
48
  "type": "git",
21
49
  "url": "git+https://github.com/formatjs/formatjs.git"
22
50
  },
23
51
  "dependencies": {
24
- "@formatjs/ecma402-abstract": "1.14.3",
25
- "@formatjs/intl-localematcher": "0.2.32",
52
+ "@formatjs/ecma402-abstract": "1.16.0",
53
+ "@formatjs/intl-localematcher": "0.3.0",
26
54
  "tslib": "^2.4.0"
27
55
  },
28
56
  "devDependencies": {
29
- "@formatjs/intl-getcanonicallocales": "2.1.0",
30
- "@formatjs/intl-locale": "3.2.1"
57
+ "@formatjs/intl-getcanonicallocales": "2.2.1",
58
+ "@formatjs/intl-locale": "3.3.1"
31
59
  },
32
60
  "bugs": {
33
61
  "url": "https://github.com/formatjs/formatjs/issues"
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=polyfill-force.d.ts.map
package/polyfill.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=polyfill.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare function _shouldPolyfillWithoutLocale(): boolean;
2
2
  export declare function shouldPolyfill(locale?: string): string | true | undefined;
3
- //# sourceMappingURL=should-polyfill.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare const supportedLocales: string[];
2
- //# sourceMappingURL=supported-locales.generated.d.ts.map