@formatjs/intl-displaynames 2.2.4 → 2.2.9

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/CHANGELOG.md CHANGED
@@ -3,6 +3,46 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.2.9](https://github.com/formatjs/formatjs/compare/@formatjs/intl-displaynames@2.2.8...@formatjs/intl-displaynames@2.2.9) (2020-07-01)
7
+
8
+ **Note:** Version bump only for package @formatjs/intl-displaynames
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.2.8](https://github.com/formatjs/formatjs/compare/@formatjs/intl-displaynames@2.2.7...@formatjs/intl-displaynames@2.2.8) (2020-06-23)
15
+
16
+ **Note:** Version bump only for package @formatjs/intl-displaynames
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.2.7](https://github.com/formatjs/formatjs/compare/@formatjs/intl-displaynames@2.2.6...@formatjs/intl-displaynames@2.2.7) (2020-06-20)
23
+
24
+ **Note:** Version bump only for package @formatjs/intl-displaynames
25
+
26
+
27
+
28
+
29
+
30
+ ## [2.2.6](https://github.com/formatjs/formatjs/compare/@formatjs/intl-displaynames@2.2.5...@formatjs/intl-displaynames@2.2.6) (2020-06-06)
31
+
32
+ **Note:** Version bump only for package @formatjs/intl-displaynames
33
+
34
+
35
+
36
+
37
+
38
+ ## [2.2.5](https://github.com/formatjs/formatjs/compare/@formatjs/intl-displaynames@2.2.4...@formatjs/intl-displaynames@2.2.5) (2020-06-06)
39
+
40
+ **Note:** Version bump only for package @formatjs/intl-displaynames
41
+
42
+
43
+
44
+
45
+
6
46
  ## [2.2.4](https://github.com/formatjs/formatjs/compare/@formatjs/intl-displaynames@2.2.3...@formatjs/intl-displaynames@2.2.4) (2020-06-04)
7
47
 
8
48
  **Note:** Version bump only for package @formatjs/intl-displaynames
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=polyfill-force.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polyfill-force.d.ts","sourceRoot":"","sources":["../src/polyfill-force.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var _1 = require(".");
4
+ Object.defineProperty(Intl, 'DisplayNames', {
5
+ value: _1.DisplayNames,
6
+ enumerable: false,
7
+ writable: true,
8
+ configurable: true,
9
+ });
10
+ //# sourceMappingURL=polyfill-force.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polyfill-force.js","sourceRoot":"","sources":["../src/polyfill-force.ts"],"names":[],"mappings":";;AAAA,sBAA+B;AAE/B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,EAAE;IAC1C,KAAK,EAAE,eAAY;IACnB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,IAAI;IACd,YAAY,EAAE,IAAI;CACnB,CAAC,CAAC"}
@@ -171,7 +171,7 @@
171
171
  const keyLocaleData = foundLocaleData[key];
172
172
  invariant(Array.isArray(keyLocaleData), `keyLocaleData for ${key} must be an array`);
173
173
  let value = keyLocaleData[0];
174
- invariant(typeof value === 'string' || value === null, 'value must be string or null');
174
+ invariant(typeof value === 'string' || value === null, `value must be string or null but got ${typeof value} in key ${key}`);
175
175
  let supportedExtensionAddition = '';
176
176
  if (r.extension) {
177
177
  const requestedValue = unicodeExtensionValue(r.extension, key);
@@ -549,14 +549,12 @@
549
549
  }
550
550
  }
551
551
 
552
- if (!Intl.DisplayNames) {
553
- Object.defineProperty(Intl, 'DisplayNames', {
554
- value: DisplayNames,
555
- enumerable: false,
556
- writable: true,
557
- configurable: true,
558
- });
559
- }
552
+ Object.defineProperty(Intl, 'DisplayNames', {
553
+ value: DisplayNames,
554
+ enumerable: false,
555
+ writable: true,
556
+ configurable: true,
557
+ });
560
558
 
561
559
  if (Intl.DisplayNames && typeof Intl.DisplayNames.__addLocaleData === 'function') {
562
560
  Intl.DisplayNames.__addLocaleData(