Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "doiuse", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Lint CSS for browser support against caniuse database.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -13,8 +13,11 @@ | ||
var inp = rules(); | ||
var processor = postcss(doiuse({ | ||
browserSelection: browsers, | ||
onUnsupportedFeatureUse: pushUsage | ||
})); | ||
var out = through.obj(function(rule, enc, next) { | ||
try { | ||
postcss(doiuse({ | ||
browserSelection: browsers, | ||
onUnsupportedFeatureUse: this.push.bind(this) | ||
})).process(rule.content); | ||
processor.process(rule.content); | ||
} | ||
@@ -25,2 +28,6 @@ catch(e) { | ||
}); | ||
function pushUsage(usage) { | ||
out.push(usage); | ||
} | ||
@@ -27,0 +34,0 @@ inp.pipe(out); |
Sorry, the diff of this file is not supported yet
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
61712
1169