Comparing version 0.3.2 to 0.3.3
@@ -41,3 +41,3 @@ var Detector, SourceMapConsumer, doiuse, featureData, missingSupport, _; | ||
}; | ||
message = ((_ref1 = (_ref2 = loc.original.start.source) != null ? _ref2 : loc.file) != null ? _ref1 : loc.id) + ':' + loc.original.start.line + ':' + loc.original.start.column + ': ' + features[feature].title + ' not supported by: ' + features[feature].missing; | ||
message = ((_ref1 = (_ref2 = loc.original.start.source) != null ? _ref2 : loc.input.file) != null ? _ref1 : loc.input.from) + ':' + loc.original.start.line + ':' + loc.original.start.column + ': ' + features[feature].title + ' not supported by: ' + features[feature].missing; | ||
return cb({ | ||
@@ -44,0 +44,0 @@ feature: feature, |
{ | ||
"name": "doiuse", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Lint CSS for browser support against caniuse database.", | ||
@@ -27,5 +27,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"browserslist": "^0.1.0", | ||
"caniuse-db": "^1.0.30000023", | ||
"concat-stream": "^1.4.6", | ||
"browserslist": "^0.3.1", | ||
"caniuse-db": "^1.0.30000090", | ||
"concat-stream": "^1.4.7", | ||
"css-rule-stream": "^1.1.0", | ||
@@ -35,18 +35,17 @@ "duplexer2": "0.0.2", | ||
"ldjson-stream": "^1.2.1", | ||
"lodash": "^2.4.1", | ||
"postcss": "^3.0.2", | ||
"source-map": "^0.1.41", | ||
"lodash": "^3.5.0", | ||
"postcss": "^4.1.8", | ||
"source-map": "^0.4.2", | ||
"through2": "^0.6.3", | ||
"yargs": "^1.3.3" | ||
"yargs": "^3.5.4" | ||
}, | ||
"devDependencies": { | ||
"chai": "^1.10.0", | ||
"coffee-script": "^1.8.0", | ||
"del": "^0.1.3", | ||
"gulp": "^3.8.10", | ||
"gulp-coffee": "^2.2.0", | ||
"gulp-mocha": "^1.1.1", | ||
"gulp-util": "^3.0.1", | ||
"postcss": "^3.0.0" | ||
"chai": "^2.1.1", | ||
"coffee-script": "^1.9.1", | ||
"del": "^1.1.1", | ||
"gulp": "^3.8.11", | ||
"gulp-coffee": "^2.3.1", | ||
"gulp-mocha": "^2.0.0", | ||
"gulp-util": "^3.0.4" | ||
} | ||
} |
@@ -20,6 +20,6 @@ | ||
var processor = postcss(doiuse({ | ||
var processor = postcss([doiuse({ | ||
browsers: browsers, | ||
onFeatureUsage: pushUsage | ||
})); | ||
})]); | ||
@@ -47,4 +47,7 @@ var out = through.obj(function(rule, enc, next) { | ||
processor.process(rule.content, {map: {prev: mapper.toString() } }); | ||
next(); | ||
processor.process(rule.content, {map: {prev: mapper.toString() } }) | ||
.then(function (result) { | ||
next() | ||
}) | ||
.catch(next) | ||
} | ||
@@ -51,0 +54,0 @@ catch(e) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
64598
7
1237
+ Addedansi-regex@2.1.1(transitive)
+ Addedbrowserslist@0.3.3(transitive)
+ Addedcamelcase@2.1.1(transitive)
+ Addedcliui@3.2.0(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addedes6-promise@2.3.0(transitive)
+ Addedinvert-kv@1.0.0(transitive)
+ Addedis-fullwidth-code-point@1.0.0(transitive)
+ Addedlcid@1.0.0(transitive)
+ Addedlodash@3.10.1(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedos-locale@1.4.0(transitive)
+ Addedpostcss@4.1.16(transitive)
+ Addedsource-map@0.4.4(transitive)
+ Addedstring-width@1.0.2(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedwindow-size@0.1.4(transitive)
+ Addedwrap-ansi@2.1.0(transitive)
+ Addedy18n@3.2.2(transitive)
+ Addedyargs@3.32.0(transitive)
- Removedbrowserslist@0.1.3(transitive)
- Removedlodash@2.4.2(transitive)
- Removedpostcss@3.0.7(transitive)
- Removedsource-map@0.1.43(transitive)
- Removedyargs@1.3.3(transitive)
Updatedbrowserslist@^0.3.1
Updatedcaniuse-db@^1.0.30000090
Updatedconcat-stream@^1.4.7
Updatedlodash@^3.5.0
Updatedpostcss@^4.1.8
Updatedsource-map@^0.4.2
Updatedyargs@^3.5.4