browserslist
Advanced tools
Comparing version 0.3.3 to 0.4.0
@@ -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 @@ } |
{ | ||
"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. |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
17448
310
108
6
Updatedcaniuse-db@^1.0.30000153