Comparing version 2.1.0 to 2.1.1
@@ -102,2 +102,3 @@ #!/usr/bin/env node | ||
.pipe(doiuse({ browsers: argv.browsers, ignore: argv.ignore }, file)) | ||
.on('error', function (err) { console.error(err) }) | ||
.pipe(out) | ||
@@ -108,3 +109,4 @@ }) | ||
.pipe(doiuse({ browsers: argv.browsers, ignore: argv.ignore })) | ||
.on('error', function (err) { console.error(err) }) | ||
.pipe(out) | ||
} |
{ | ||
"name": "doiuse", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Lint CSS for browser support against caniuse database.", | ||
@@ -5,0 +5,0 @@ "main": "lib/doiuse.js", |
@@ -25,4 +25,8 @@ var through = require('through2') | ||
var out = through.obj(function (rule, enc, next) { | ||
var out = through.obj(write) | ||
var duplex = duplexer(inp, out) | ||
function write (rule, enc, next) { | ||
try { | ||
console.log('rule') | ||
var mapper = new sourcemap.SourceMapGenerator() | ||
@@ -49,5 +53,3 @@ | ||
processor.process(rule.content, { map: { prev: mapper.toString() } }) | ||
.then(function (result) { | ||
next() | ||
}) | ||
.then(function (result) { next() }) | ||
.catch(handleError) | ||
@@ -60,3 +62,4 @@ } catch (e) { | ||
if (options.skipErrors) { | ||
out.emit('warning', error) | ||
duplex.emit('warning', error) | ||
next() | ||
} else { | ||
@@ -66,3 +69,3 @@ next(error) | ||
} | ||
}) | ||
} | ||
@@ -74,3 +77,3 @@ function pushUsage (usage) { | ||
inp.pipe(out) | ||
return duplexer(inp, out) | ||
return duplex | ||
} |
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
58978
1646