browserslist 4.28.1 → 4.28.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/LICENSE +1 -1
- package/README.md +16 -17
- package/index.js +5 -1
- package/package.json +16 -16
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright 2014 Andrey Sitnik <andrey@sitnik.
|
|
3
|
+
Copyright 2014 Andrey Sitnik <andrey@sitnik.es> and other contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
package/README.md
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
The config to share target browsers and Node.js versions between different
|
|
7
7
|
front-end tools. It is used in:
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
- [Autoprefixer]
|
|
10
|
+
- [Babel]
|
|
11
|
+
- [postcss-preset-env]
|
|
12
|
+
- [eslint-plugin-compat]
|
|
13
|
+
- [stylelint-no-unsupported-browser-features]
|
|
14
|
+
- [postcss-normalize]
|
|
15
|
+
- [obsolete-webpack-plugin]
|
|
16
16
|
|
|
17
17
|
All tools will find target browsers automatically,
|
|
18
18
|
when you add the following to `package.json`:
|
|
@@ -50,16 +50,15 @@ You can check how config works at our playground: [`browsersl.ist`](https://brow
|
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
[stylelint-no-unsupported-browser-features]: https://github.com/ismay/stylelint-no-unsupported-browser-features
|
|
53
|
-
[obsolete-webpack-plugin]:
|
|
54
|
-
[eslint-plugin-compat]:
|
|
55
|
-
[
|
|
56
|
-
[postcss-
|
|
57
|
-
[
|
|
58
|
-
[`
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
[Babel]: https://github.com/babel/babel/tree/master/packages/babel-preset-env
|
|
53
|
+
[obsolete-webpack-plugin]: https://github.com/ElemeFE/obsolete-webpack-plugin
|
|
54
|
+
[eslint-plugin-compat]: https://github.com/amilajack/eslint-plugin-compat
|
|
55
|
+
[postcss-preset-env]: https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env
|
|
56
|
+
[postcss-normalize]: https://github.com/csstools/postcss-normalize
|
|
57
|
+
[`browsersl.ist`]: https://browsersl.ist/
|
|
58
|
+
[`caniuse-lite`]: https://github.com/ben-eb/caniuse-lite
|
|
59
|
+
[Autoprefixer]: https://github.com/postcss/autoprefixer
|
|
60
|
+
[Can I Use]: https://caniuse.com/
|
|
61
|
+
[Babel]: https://github.com/babel/babel/tree/master/packages/babel-preset-env
|
|
63
62
|
|
|
64
63
|
## Docs
|
|
65
64
|
Read full docs **[here](https://github.com/browserslist/browserslist#readme)**.
|
package/index.js
CHANGED
|
@@ -255,10 +255,14 @@ function normalizeAndroidVersions(androidVersions, chromeVersions) {
|
|
|
255
255
|
.concat(chromeVersions.slice(iFirstEvergreen))
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
+
var DANGEROUS_KEYS = ['__proto__', 'constructor', 'prototype']
|
|
259
|
+
|
|
258
260
|
function copyObject(obj) {
|
|
259
261
|
var copy = {}
|
|
260
262
|
for (var key in obj) {
|
|
261
|
-
|
|
263
|
+
if (DANGEROUS_KEYS.indexOf(key) === -1) {
|
|
264
|
+
copy[key] = obj[key]
|
|
265
|
+
}
|
|
262
266
|
}
|
|
263
267
|
return copy
|
|
264
268
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browserslist",
|
|
3
|
-
"version": "4.28.
|
|
3
|
+
"version": "4.28.2",
|
|
4
4
|
"description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"caniuse",
|
|
7
6
|
"browsers",
|
|
7
|
+
"caniuse",
|
|
8
8
|
"target"
|
|
9
9
|
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"author": "Andrey Sitnik <andrey@sitnik.es>",
|
|
12
|
+
"repository": "browserslist/browserslist",
|
|
10
13
|
"funding": [
|
|
11
14
|
{
|
|
12
15
|
"type": "opencollective",
|
|
@@ -21,25 +24,22 @@
|
|
|
21
24
|
"url": "https://github.com/sponsors/ai"
|
|
22
25
|
}
|
|
23
26
|
],
|
|
24
|
-
"author": "Andrey Sitnik <andrey@sitnik.ru>",
|
|
25
|
-
"license": "MIT",
|
|
26
|
-
"repository": "browserslist/browserslist",
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"baseline-browser-mapping": "^2.9.0",
|
|
29
|
-
"caniuse-lite": "^1.0.30001759",
|
|
30
|
-
"electron-to-chromium": "^1.5.263",
|
|
31
|
-
"node-releases": "^2.0.27",
|
|
32
|
-
"update-browserslist-db": "^1.2.0"
|
|
33
|
-
},
|
|
34
|
-
"engines": {
|
|
35
|
-
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
|
|
36
|
-
},
|
|
37
27
|
"bin": {
|
|
38
28
|
"browserslist": "cli.js"
|
|
39
29
|
},
|
|
40
|
-
"types": "./index.d.ts",
|
|
41
30
|
"browser": {
|
|
42
31
|
"./node.js": "./browser.js",
|
|
43
32
|
"path": false
|
|
33
|
+
},
|
|
34
|
+
"types": "./index.d.ts",
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"baseline-browser-mapping": "^2.10.12",
|
|
37
|
+
"caniuse-lite": "^1.0.30001782",
|
|
38
|
+
"electron-to-chromium": "^1.5.328",
|
|
39
|
+
"node-releases": "^2.0.36",
|
|
40
|
+
"update-browserslist-db": "^1.2.3"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
|
|
44
44
|
}
|
|
45
45
|
}
|