Socket
Socket
Sign inDemoInstall

browserslist

Package Overview
Dependencies
2
Maintainers
1
Versions
188
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.7.3 to 1.7.4

3

CHANGELOG.md

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc