browserslist
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -0,1 +1,4 @@ | ||
## 0.3.3 | ||
* Fix DynJS compatibility (by Nick Howes). | ||
## 0.3.2 | ||
@@ -2,0 +5,0 @@ * Fix joined versions on versions query (by Vincent De Oliveira). |
@@ -64,3 +64,10 @@ var caniuse = require('caniuse-db/data').agents; | ||
if ( name1[0] === name2[0] ) { | ||
return parseFloat(name2[1]) - parseFloat(name1[1]); | ||
var d = parseFloat(name2[1]) - parseFloat(name1[1]); | ||
if ( d > 0 ) { | ||
return 1; | ||
} else if ( d < 0 ) { | ||
return -1; | ||
} else { | ||
return 0; | ||
} | ||
} else { | ||
@@ -67,0 +74,0 @@ return name1[0].localeCompare(name2[0]); |
{ | ||
"name": "browserslist", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Get browsers versions that matches given criterias like in Autoprefixer", | ||
@@ -13,8 +13,8 @@ "keywords": ["caniuse", "browsers"], | ||
"dependencies": { | ||
"caniuse-db": "^1.0.30000113" | ||
"caniuse-db": "^1.0.30000127" | ||
}, | ||
"devDependencies": { | ||
"gulp-eslint": "0.6.0", | ||
"gulp-eslint": "0.9.0", | ||
"gulp-mocha": "2.0.1", | ||
"mocha": "2.2.1", | ||
"mocha": "2.2.4", | ||
"chai": "2.2.0", | ||
@@ -21,0 +21,0 @@ "gulp": "3.8.11" |
@@ -14,4 +14,4 @@ # Browserslist [![Build Status](https://travis-ci.org/ai/browserslist.svg)](https://travis-ci.org/ai/browserslist) | ||
browserslist('last 1 version, > 5%'); | ||
//=> ['and_chr 40', 'chrome 40', 'chrome 39', 'firefox 36', 'firefox 34', | ||
// 'ie 11', 'ie_mob 11', 'ios_saf 8.1', 'opera 27', 'safari 8'] | ||
//=> ['and_chr 41', 'chrome 41', 'chrome 40', 'firefox 37', 'firefox 36', | ||
// 'ie 11', 'ie_mob 11', 'ios_saf 8.1-8.3', 'opera 27', 'safari 8'] | ||
``` | ||
@@ -18,0 +18,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
16741
303
Updatedcaniuse-db@^1.0.30000127