@formatjs/intl-getcanonicallocales 1.9.1 → 1.9.2

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/lib/polyfill.js CHANGED
@@ -5,8 +5,10 @@ if (typeof Intl === 'undefined') {
5
5
  Object.defineProperty(window, 'Intl', {
6
6
  value: {},
7
7
  });
8
+ // @ts-ignore we don't include @types/node so global isn't a thing
8
9
  }
9
10
  else if (typeof global !== 'undefined') {
11
+ // @ts-ignore we don't include @types/node so global isn't a thing
10
12
  Object.defineProperty(global, 'Intl', {
11
13
  value: {},
12
14
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-getcanonicallocales",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Intl.getCanonicalLocales polyfill",
5
5
  "keywords": [
6
6
  "intl",
@@ -26,13 +26,5 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "tslib": "^2.1.0"
29
- },
30
- "peerDependencies": {
31
- "@types/node": "14 || 16 || 17"
32
- },
33
- "peerDependenciesMeta": {
34
- "@types/node": {
35
- "optional": true
36
- }
37
29
  }
38
30
  }
package/polyfill.js CHANGED
@@ -7,8 +7,10 @@ if (typeof Intl === 'undefined') {
7
7
  Object.defineProperty(window, 'Intl', {
8
8
  value: {},
9
9
  });
10
+ // @ts-ignore we don't include @types/node so global isn't a thing
10
11
  }
11
12
  else if (typeof global !== 'undefined') {
13
+ // @ts-ignore we don't include @types/node so global isn't a thing
12
14
  Object.defineProperty(global, 'Intl', {
13
15
  value: {},
14
16
  });