Comparing version 2.2.0 to 2.2.1
{ | ||
"name": "doiuse", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Lint CSS for browser support against caniuse database.", | ||
@@ -30,3 +30,3 @@ "main": "lib/doiuse.js", | ||
"dependencies": { | ||
"browserslist": "^0.5.0", | ||
"browserslist": "^1.0.1", | ||
"caniuse-db": "^1.0.30000187", | ||
@@ -33,0 +33,0 @@ "css-rule-stream": "^1.1.0", |
@@ -19,7 +19,3 @@ var through = require('through2') | ||
var processor = postcss([doiuse({ | ||
browsers: options.browsers, | ||
ignore: options.ignore, | ||
onFeatureUsage: pushUsage | ||
})]) | ||
var processor | ||
@@ -29,2 +25,16 @@ var out = through.obj(write) | ||
try { | ||
processor = postcss([doiuse({ | ||
browsers: options.browsers, | ||
ignore: options.ignore, | ||
onFeatureUsage: pushUsage | ||
})]) | ||
inp.pipe(out) | ||
} catch (e) { | ||
setImmediate(function () { duplex.emit('error', e) }) | ||
} | ||
return duplex | ||
function write (rule, enc, next) { | ||
@@ -72,5 +82,2 @@ try { | ||
} | ||
inp.pipe(out) | ||
return duplex | ||
} |
@@ -42,1 +42,9 @@ var stream = require('../stream') | ||
}) | ||
test('gracefully emit error on bad browsers list', function (t) { | ||
t.plan(1) | ||
stream({ browsers: 'Blargh!' }) | ||
.on('error', function (e) { | ||
t.ok(e) | ||
}) | ||
}) |
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
61457
1716
+ Addedbrowserslist@1.7.7(transitive)
+ Addedelectron-to-chromium@1.5.50(transitive)
- Removedbrowserslist@0.5.0(transitive)
Updatedbrowserslist@^1.0.1