broccoli-svg-optimizer
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -31,2 +31,4 @@ 'use strict'; | ||
SVGOFilter.prototype.processString = function(svgContent) { | ||
var svgo = this.svgo; | ||
if (!svgContent) { | ||
@@ -36,4 +38,2 @@ return ''; | ||
var svgo = this.svgo; | ||
return new RSVP.Promise(function(resolve, reject) { | ||
@@ -59,6 +59,6 @@ svgo.optimize(svgContent, function(result) { | ||
SVGOFilter.prototype.cacheKeyProcessString = function(string, relativePath) { | ||
return this.optionsHash() + | ||
Filter.prototype.cacheKeyProcessString.call(this, string, relativePath); | ||
return Filter.prototype.cacheKeyProcessString.call( | ||
this, string + this.optionsHash(), relativePath); | ||
}; | ||
module.exports = SVGOFilter; |
{ | ||
"name": "broccoli-svg-optimizer", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Broccoli plugin for optimizing SVG files with SVGO", | ||
@@ -5,0 +5,0 @@ "scripts": { |
# broccoli-svg-optimizer | ||
[![Build Status](https://travis-ci.org/ivanvotti/broccoli-svg-optimizer.svg?branch=master)](https://travis-ci.org/ivanvotti/broccoli-svg-optimizer) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/26lyufkk6ueam952/branch/master?svg=true)](https://ci.appveyor.com/project/ivanvotti/broccoli-svg-optimizer) | ||
@@ -5,0 +6,0 @@ Broccoli plugin for optimizing SVG files by [SVGO](https://github.com/svg/svgo) with a persistent cache for fast restarts. |
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
5295
70