Socket
Socket
Sign inDemoInstall

broccoli-svg-optimizer

Package Overview
Dependencies
91
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

8

index.js

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc