browserslist 4.28.4 → 4.28.5
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/index.js +4 -5
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -81,22 +81,21 @@ function fillUsage(result, name, data) {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
function generateFilter(sign, version) {
|
|
84
|
-
version = parseFloat(version)
|
|
85
84
|
if (sign === '>') {
|
|
86
85
|
return function (v) {
|
|
87
|
-
return parseLatestFloat(v) > version
|
|
86
|
+
return parseLatestFloat(v) > parseLatestFloat(version)
|
|
88
87
|
}
|
|
89
88
|
} else if (sign === '>=') {
|
|
90
89
|
return function (v) {
|
|
91
|
-
return parseLatestFloat(v) >= version
|
|
90
|
+
return parseLatestFloat(v) >= parseLatestFloat(version)
|
|
92
91
|
}
|
|
93
92
|
} else if (sign === '<') {
|
|
94
93
|
return function (v) {
|
|
95
|
-
return parseFloat(v) < version
|
|
94
|
+
return parseFloat(v) < parseFloat(version)
|
|
96
95
|
}
|
|
97
96
|
} else {
|
|
98
97
|
return function (v) {
|
|
99
|
-
return parseFloat(v) <= version
|
|
98
|
+
return parseFloat(v) <= parseFloat(version)
|
|
100
99
|
}
|
|
101
100
|
}
|
|
102
101
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browserslist",
|
|
3
|
-
"version": "4.28.
|
|
3
|
+
"version": "4.28.5",
|
|
4
4
|
"description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"browsers",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
},
|
|
34
34
|
"types": "./index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"baseline-browser-mapping": "^2.10.
|
|
37
|
-
"caniuse-lite": "^1.0.
|
|
38
|
-
"electron-to-chromium": "^1.5.
|
|
39
|
-
"node-releases": "^2.0.
|
|
36
|
+
"baseline-browser-mapping": "^2.10.42",
|
|
37
|
+
"caniuse-lite": "^1.0.30001800",
|
|
38
|
+
"electron-to-chromium": "^1.5.387",
|
|
39
|
+
"node-releases": "^2.0.50",
|
|
40
40
|
"update-browserslist-db": "^1.2.3"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|