@formatjs/intl-getcanonicallocales 1.9.0 → 2.0.1

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.0",
3
+ "version": "2.0.1",
4
4
  "description": "Intl.getCanonicalLocales polyfill",
5
5
  "keywords": [
6
6
  "intl",
@@ -25,9 +25,6 @@
25
25
  "url": "https://github.com/formatjs/formatjs/issues"
26
26
  },
27
27
  "dependencies": {
28
- "tslib": "^2.1.0"
29
- },
30
- "peerDependencies": {
31
- "@types/node": "14 || 16 || 17"
28
+ "tslib": "2.4.0"
32
29
  }
33
30
  }
package/polyfill.iife.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function() {
2
- // node_modules/tslib/tslib.es6.js
2
+ // bazel-out/darwin-fastbuild/bin/external/npm/node_modules/tslib/tslib.es6.js
3
3
  var __assign = function() {
4
4
  __assign = Object.assign || function __assign2(t) {
5
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -3509,18 +3509,4 @@
3509
3509
  });
3510
3510
  }
3511
3511
  })();
3512
- /*! *****************************************************************************
3513
- Copyright (c) Microsoft Corporation.
3514
-
3515
- Permission to use, copy, modify, and/or distribute this software for any
3516
- purpose with or without fee is hereby granted.
3517
-
3518
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3519
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3520
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3521
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3522
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3523
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3524
- PERFORMANCE OF THIS SOFTWARE.
3525
- ***************************************************************************** */
3526
3512
  //# sourceMappingURL=polyfill.iife.js.map
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
  });