Socket
Socket
Sign inDemoInstall

svgo

Package Overview
Dependencies
4
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.6 to 0.3.7

lcov.info

10

CHANGELOG.md
### [ [>](https://github.com/svg/svgo/tree/v0.3.7) ] 0.3.7 / 24.06.2013
* do not remove `result` attribute from filter primitives (fix [#122](https://github.com/svg/svgo/issues/122))
* plugins/cleanupAttrs: replace newline with space when needed (fix [#119](https://github.com/svg/svgo/issues/119))
* lib/coa: look for config file in current folder
* lib/coa: always traverse all files in the given folder
* deprecate svgo-grunt in favor of [grunt-svgmin](https://github.com/sindresorhus/grunt-svgmin)
* re-enable node-coveralls
### [ [>](https://github.com/svg/svgo/tree/v0.3.6) ] 0.3.6 / 06.06.2013
* plugins/removeNonInheritableGroupAttrs: more attrs groups to exclude (fix [#116](https://github.com/svg/svgo/issues/116) & [#118](https://github.com/svg/svgo/issues/118))
* lib/coa: optimize folder file by file (temp fix #114](https://github.com/svg/svgo/issues/114))
* lib/coa: optimize folder file by file (temp fix [#114](https://github.com/svg/svgo/issues/114))
* `.jshintrc`: JSHint 2.0

@@ -6,0 +14,0 @@ * temporarily disable node-coveralls

12

lib/svgo/coa.js

@@ -124,3 +124,3 @@ 'use strict';

} else {
config = require(opts.config);
config = require(PATH.resolve(opts.config));
}

@@ -357,3 +357,3 @@

// absoluted folder path
path = PATH.resolve(process.cwd(), path);
path = PATH.resolve(path);

@@ -410,6 +410,2 @@ UTIL.puts('\n' + path + ':\n');

if (++i < files.length) {
optimizeFile(files[i]);
}
});

@@ -423,2 +419,6 @@

if (++i < files.length) {
optimizeFile(files[i]);
}
}

@@ -425,0 +425,0 @@

{
"name": "svgo",
"version": "0.3.6",
"version": "0.3.7",
"description": "Nodejs-based tool for optimizing SVG vector graphics files",

@@ -48,3 +48,4 @@ "keywords": [ "svgo", "svg", "optimize", "minify" ],

"istanbul": "~0.1.0",
"mocha-istanbul": ""
"mocha-istanbul": "",
"coveralls": ""
},

@@ -51,0 +52,0 @@ "engines": {

@@ -31,3 +31,3 @@ 'use strict';

documentEvent: ['onunload', 'onabort', 'onerror', 'onresize', 'onscroll', 'onzoom'],
filterPrimitive: ['x', 'y', 'width', 'height'],
filterPrimitive: ['x', 'y', 'width', 'height', 'result'],
transferFunction: ['type', 'tableValues', 'slope', 'intercept', 'amplitude', 'exponent', 'offset']

@@ -34,0 +34,0 @@ };

@@ -13,3 +13,4 @@ 'use strict';

var regNewlines = /\n/g,
var regNewlinesNeedSpace = /(\S)\n(\S)/g,
regNewlines = /\n/g,
regSpaces = /\s{2,}/g;

@@ -33,2 +34,8 @@

if (params.newlines) {
// new line which requires a space instead of themselve
attr.value = attr.value.replace(regNewlinesNeedSpace, function(match, p1, p2) {
return p1 + ' ' + p2;
});
// simple new line
attr.value = attr.value.replace(regNewlines, '');

@@ -35,0 +42,0 @@ }

@@ -116,3 +116,3 @@ **english** | [русский](https://github.com/svg/svgo/blob/master/README.ru.md)

* as a Nodejs module – [examples](https://github.com/svg/svgo/tree/master/examples)
* as a Grunt task – [svgo-grunt](https://github.com/svg/svgo-grunt)
* as a Grunt task – [grunt-svgmin](https://github.com/sindresorhus/grunt-svgmin)
* as an OSX Folder Action – [svgo-osx-folder-action](https://github.com/svg/svgo-osx-folder-action)

@@ -119,0 +119,0 @@

@@ -116,3 +116,3 @@ [english](https://github.com/svg/svgo/blob/master/README.md) | **русский**

* как модуль Node.js – [examples](https://github.com/svg/svgo/tree/master/examples)
* как таск для Grunt – [svgo-grunt](https://github.com/svg/svgo-grunt)
* как таск для Grunt – [grunt-svgmin](https://github.com/sindresorhus/grunt-svgmin)
* как действие папки в OSX – [svgo-osx-folder-action](https://github.com/svg/svgo-osx-folder-action)

@@ -119,0 +119,0 @@

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