Comparing version 0.3.5 to 0.3.6
@@ -0,1 +1,8 @@ | ||
### [ [>](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)) | ||
* `.jshintrc`: JSHint 2.0 | ||
* temporarily disable node-coveralls | ||
### [ [>](https://github.com/svg/svgo/tree/v0.3.5) ] 0.3.5 / 07.05.2013 | ||
@@ -2,0 +9,0 @@ * plugins/transformsWithOnePath: fix curves bounding box calculation |
@@ -367,6 +367,8 @@ 'use strict'; | ||
files.forEach(function(filename) { | ||
var i = 0; | ||
function optimizeFile(file) { | ||
// absoluted file path | ||
var filepath = PATH.resolve(path, filename); | ||
var filepath = PATH.resolve(path, file); | ||
@@ -399,3 +401,3 @@ // check if file name matches *.svg | ||
UTIL.puts(filename + ':'); | ||
UTIL.puts(file + ':'); | ||
@@ -408,2 +410,6 @@ // print time info | ||
if (++i < files.length) { | ||
optimizeFile(files[i]); | ||
} | ||
}); | ||
@@ -417,6 +423,8 @@ | ||
}); | ||
} | ||
optimizeFile(files[i]); | ||
}); | ||
} |
{ | ||
"name": "svgo", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "Nodejs-based tool for optimizing SVG vector graphics files", | ||
@@ -48,4 +48,3 @@ "keywords": [ "svgo", "svg", "optimize", "minify" ], | ||
"istanbul": "~0.1.0", | ||
"mocha-istanbul": "", | ||
"coveralls": "" | ||
"mocha-istanbul": "" | ||
}, | ||
@@ -52,0 +51,0 @@ "engines": { |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var inheritableAttrs = require('./_collections').inheritableAttrs, | ||
presentationAttrs = require('./_collections').attrsGroups.presentation, | ||
attrsGroups = require('./_collections').attrsGroups, | ||
excludedAttrs = ['display', 'opacity']; | ||
@@ -26,5 +26,8 @@ | ||
if ( | ||
presentationAttrs.indexOf(attr.name) !== -1 && | ||
excludedAttrs.indexOf(attr.name) === -1 && | ||
inheritableAttrs.indexOf(attr.name) === -1 | ||
~attrsGroups.presentation.indexOf(attr.name) && | ||
~attrsGroups.graphicalEvent.indexOf(attr.name) && | ||
~attrsGroups.core.indexOf(attr.name) && | ||
~attrsGroups.conditionalProcessing.indexOf(attr.name) && | ||
!~excludedAttrs.indexOf(attr.name) && | ||
!~inheritableAttrs.indexOf(attr.name) | ||
) { | ||
@@ -31,0 +34,0 @@ item.removeAttr(attr.name); |
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
218613
4
6251