core-js-compat 3.21.0 → 3.21.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/data.json CHANGED
@@ -3653,6 +3653,7 @@
3653
3653
  "electron": "0.20",
3654
3654
  "firefox": "27",
3655
3655
  "ios": "10.3",
3656
+ "node": "17.5",
3656
3657
  "opera": "10.5",
3657
3658
  "opera_mobile": "10.5",
3658
3659
  "safari": "10.1",
@@ -3667,6 +3668,7 @@
3667
3668
  "firefox": "1",
3668
3669
  "ie": "10",
3669
3670
  "ios": "1.0",
3671
+ "node": "17.5",
3670
3672
  "opera": "10.5",
3671
3673
  "opera_mobile": "10.5",
3672
3674
  "phantom": "1.9",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core-js-compat",
3
3
  "description": "core-js compat",
4
- "version": "3.21.0",
4
+ "version": "3.21.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zloirock/core-js.git",
@@ -17,5 +17,5 @@
17
17
  "url": "https://opencollective.com/core-js"
18
18
  },
19
19
  "license": "MIT",
20
- "gitHead": "32492dc5f55ea9bbd21b8fa8145cedd36d68c160"
20
+ "gitHead": "eb9229ae88428edea6b2be250c98a518fd2c22e3"
21
21
  }
package/targets-parser.js CHANGED
@@ -29,12 +29,17 @@ const validTargets = new Set([
29
29
  'samsung',
30
30
  ]);
31
31
 
32
+ const toLowerKeys = function (object) {
33
+ return Object.entries(object).reduce((accumulator, [key, value]) => {
34
+ accumulator[key.toLowerCase()] = value;
35
+ return accumulator;
36
+ }, {});
37
+ };
38
+
32
39
  module.exports = function (targets) {
33
- if (typeof targets != 'object' || Array.isArray(targets)) {
34
- targets = { browsers: targets };
35
- }
40
+ const { browsers, esmodules, node, ...rest } = (typeof targets != 'object' || Array.isArray(targets))
41
+ ? { browsers: targets } : toLowerKeys(targets);
36
42
 
37
- const { browsers, esmodules, node, ...rest } = targets;
38
43
  const list = Object.entries(rest);
39
44
 
40
45
  if (browsers) {