browserslist
Advanced tools
Comparing version 1.7.3 to 1.7.4
@@ -0,1 +1,4 @@ | ||
## 1.7.4 | ||
* Speed up browser sorting (by Aarni Koskela). | ||
## 1.7.3 | ||
@@ -2,0 +5,0 @@ * Fix config finding when directory was passed to `path` (by Aarni Koskela). |
11
index.js
@@ -127,2 +127,8 @@ var path = require('path'); | ||
function compareStrings(a, b) { | ||
if (a < b) return -1; | ||
if (a > b) return +1; | ||
return 0; | ||
} | ||
/** | ||
@@ -216,3 +222,2 @@ * Return array of browsers by selection queries. | ||
}); | ||
result = result.map(function (i) { | ||
@@ -234,6 +239,6 @@ var parts = i.split(' '); | ||
} else { | ||
return name2[1].localeCompare(name1[1]); | ||
return compareStrings(name2[1], name1[1]); | ||
} | ||
} else { | ||
return name1[0].localeCompare(name2[0]); | ||
return compareStrings(name1[0], name2[0]); | ||
} | ||
@@ -240,0 +245,0 @@ }); |
{ | ||
"name": "browserslist", | ||
"version": "1.7.3", | ||
"version": "1.7.4", | ||
"description": "Share browsers list between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset", | ||
@@ -13,3 +13,3 @@ "keywords": [ | ||
"dependencies": { | ||
"caniuse-db": "^1.0.30000623", | ||
"caniuse-db": "^1.0.30000624", | ||
"electron-to-chromium": "^1.2.2" | ||
@@ -16,0 +16,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35951
639
Updatedcaniuse-db@^1.0.30000624