Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

browserslist

Package Overview
Dependencies
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserslist - npm Package Compare versions

Comparing version 0.3.3 to 0.4.0

4

ChangeLog.md

@@ -0,1 +1,5 @@

## 0.4
* Add `config` option and `BROWSERSLIST_CONFIG` environment variable support.
* Add symlink config support.
## 0.3.3

@@ -2,0 +6,0 @@ * Fix DynJS compatibility (by Nick Howes).

@@ -23,2 +23,9 @@ var caniuse = require('caniuse-db/data').agents;

selections = process.env.BROWSERSLIST;
} else if ( opts.config || process.env.BROWSERSLIST_CONFIG ) {
var file = opts.config || process.env.BROWSERSLIST_CONFIG;
if ( fs.existsSync(file) && fs.statSync(file).isFile() ) {
selections = browserslist.parseConfig( fs.readFileSync(file) );
} else {
throw 'Can\'t read ' + file + ' config';
}
} else {

@@ -163,3 +170,3 @@ var config = browserslist.readConfig(opts.path);

if ( fs.existsSync(config) && fs.lstatSync(config).isFile() ) {
if ( fs.existsSync(config) && fs.statSync(config).isFile() ) {
return browserslist.parseConfig( fs.readFileSync(config) );

@@ -166,0 +173,0 @@ }

8

package.json
{
"name": "browserslist",
"version": "0.3.3",
"version": "0.4.0",
"description": "Get browsers versions that matches given criterias like in Autoprefixer",

@@ -13,9 +13,9 @@ "keywords": ["caniuse", "browsers"],

"dependencies": {
"caniuse-db": "^1.0.30000127"
"caniuse-db": "^1.0.30000153"
},
"devDependencies": {
"gulp-eslint": "0.9.0",
"gulp-eslint": "0.11.1",
"gulp-mocha": "2.0.1",
"mocha": "2.2.4",
"chai": "2.2.0",
"chai": "2.3.0",
"gulp": "3.8.11"

@@ -22,0 +22,0 @@ },

@@ -34,3 +34,3 @@ # Browserslist [![Build Status](https://travis-ci.org/ai/browserslist.svg)](https://travis-ci.org/ai/browserslist)

You can specify the browsers by queries (case insensitive):
You can specify the versions by queries (case insensitive):

@@ -51,2 +51,5 @@ * `last 2 versions`: the last 2 versions for each major browser.

Browserslist works with separated versions of browsers. To use all versions
of some browsers you can use `Firefox > 0`, but it is a very bad way.
[two-letter country code]: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements

@@ -105,1 +108,3 @@

```
You can specify direct path to config by `config` option.
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc