gulp-svgmin
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -5,7 +5,7 @@ /* jshint node:true */ | ||
var es = require('event-stream'); | ||
var map = require('map-stream'); | ||
module.exports = function() { | ||
var svgo = new (require('svgo'))({ plugins: [arguments[0]] }); | ||
return es.map(function(file, cb) { | ||
return map(function(file, cb) { | ||
svgo.optimize(String(file.contents), function(result) { | ||
@@ -12,0 +12,0 @@ if (result.error) { |
{ | ||
"name": "gulp-svgmin", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Minify SVG files with gulp.", | ||
@@ -24,4 +24,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"event-stream": "3.0.20", | ||
"svgo": "0.4.2" | ||
"svgo": "0.4.2", | ||
"map-stream": "0.0.4" | ||
}, | ||
@@ -28,0 +28,0 @@ "devDependencies": { |
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
5080
+ Addedmap-stream@0.0.4
+ Addedmap-stream@0.0.4(transitive)
- Removedevent-stream@3.0.20
- Removedduplexer@0.1.2(transitive)
- Removedevent-stream@3.0.20(transitive)
- Removedfrom@0.1.7(transitive)
- Removedmap-stream@0.0.7(transitive)
- Removedpause-stream@0.0.11(transitive)
- Removedsplit@0.2.10(transitive)
- Removedstream-combiner@0.0.4(transitive)
- Removedthrough@2.3.8(transitive)