grunt-svgstore
Advanced tools
Comparing version 0.5.0 to 1.0.0
{ | ||
"name": "grunt-svgstore", | ||
"description": "Merge SVGs from a folder.", | ||
"version": "0.5.0", | ||
"homepage": "https://github.com/FWeinb/grunt-svgstore", | ||
"author": { | ||
"name": "Fabrice Weinberg", | ||
"email": "Fabrice@weinberg.me" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/FWeinb/grunt-svgstore.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/FWeinb/grunt-svgstore/issues" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/FWeinb/grunt-svgstore/blob/master/LICENSE-MIT" | ||
} | ||
], | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
}, | ||
"scripts": { | ||
"test": "grunt test" | ||
}, | ||
"version": "1.0.0", | ||
"description": "Merge SVGs from a folder", | ||
"devDependencies": { | ||
@@ -37,5 +13,5 @@ "grunt": "~0.4.5", | ||
"dependencies": { | ||
"chalk": "^0.4.0", | ||
"cheerio": "^0.18.0", | ||
"js-beautify": "^1.5.1", | ||
"chalk": "^1.0.0", | ||
"cheerio": "^0.20.0", | ||
"js-beautify": "~1.5.10", | ||
"multiline": "^0.3.4", | ||
@@ -45,4 +21,11 @@ "handlebars": "^2.0.0" | ||
"peerDependencies": { | ||
"grunt": "~0.4.5" | ||
"grunt": ">=0.4.0" | ||
}, | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
}, | ||
"scripts": { | ||
"test": "grunt test" | ||
}, | ||
"repository": "FWeinb/grunt-svgstore", | ||
"keywords": [ | ||
@@ -53,3 +36,7 @@ "svg", | ||
"gruntplugin" | ||
] | ||
], | ||
"author": "Fabrice Weinberg <Fabrice@weinberg.me> (http://blog.weinberg.me)", | ||
"license": "MIT", | ||
"bugs": "https://github.com/FWeinb/grunt-svgstore/issues", | ||
"homepage": "https://github.com/FWeinb/grunt-svgstore#readme" | ||
} |
@@ -5,2 +5,5 @@ # grunt-svgstore [![NPM version](https://badge.fury.io/js/grunt-svgstore.svg)](http://badge.fury.io/js/grunt-svgstore) [![Build Status](https://travis-ci.org/FWeinb/grunt-svgstore.svg?branch=master)](https://travis-ci.org/FWeinb/grunt-svgstore) | ||
## Want to help? | ||
I am looking for a maintainer who would like to take over this plugin. | ||
## Why? | ||
@@ -133,3 +136,3 @@ Because [Chris Coyier](http://shoptalkshow.com/episodes/103-louis-lazaris/#t=33:52) asked. | ||
Since `0.3.5` you can customise this by passing in a `string` that will be compiled via `handlebars` and used as a tempalte. If it is a function this function is expeced to take one parameter and return a string. | ||
Since `0.3.5` you can customise this by passing in a `string` that will be compiled via `handlebars` and used as a tempalte. If it is a function this function is expected to take one parameter and return a string. | ||
@@ -136,0 +139,0 @@ The data passed to the template looks like this: |
@@ -149,3 +149,3 @@ /* | ||
var value = attrs[key]; | ||
var id, match, preservedKey = ''; | ||
var id, match, isFillCurrentColor, isStrokeCurrentColor, preservedKey = ''; | ||
@@ -181,2 +181,5 @@ while ( (match = urlPattern.exec(value)) !== null){ | ||
isFillCurrentColor = key === 'fill' && $elem.attr('fill') === 'currentColor'; | ||
isStrokeCurrentColor = key === 'stroke' && $elem.attr('stroke') === 'currentColor'; | ||
if (preservedKey && preservedKey.length) { | ||
@@ -189,5 +192,5 @@ //Add the new key preserving value | ||
} | ||
else if (!(key === 'fill' && $elem.attr('fill') === 'currentColor')) { | ||
else if (!(isFillCurrentColor || isStrokeCurrentColor)) { | ||
// Letting fill inherit the `currentColor` allows shared inline defs to | ||
// be styled differently based on an xlink element's `color` so we leave these | ||
// be styled differently based on an SVG element's `color` so we leave these | ||
$elem.removeAttr(key); | ||
@@ -194,0 +197,0 @@ } |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
150118
59
844
0
376
2
1
1
+ Addedabab@1.0.4(transitive)
+ Addedacorn@2.7.0(transitive)
+ Addedacorn-globals@1.0.9(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedarray-each@1.0.1(transitive)
+ Addedarray-slice@1.1.0(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedasync@3.2.6(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedboolbase@1.0.0(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedchalk@1.1.34.1.2(transitive)
+ Addedcheerio@0.20.0(transitive)
+ Addedcolors@1.1.2(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addedcss-select@1.2.0(transitive)
+ Addedcss-what@2.1.3(transitive)
+ Addedcssom@0.3.8(transitive)
+ Addedcssstyle@0.2.37(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddateformat@4.6.3(transitive)
+ Addeddeep-is@0.1.4(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addeddetect-file@1.0.0(transitive)
+ Addeddom-serializer@0.1.1(transitive)
+ Addeddomelementtype@1.3.1(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedescodegen@1.14.3(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedestraverse@4.3.0(transitive)
+ Addedesutils@2.0.3(transitive)
+ Addedexpand-tilde@2.0.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedfast-levenshtein@2.0.6(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedfindup-sync@4.0.05.0.0(transitive)
+ Addedfined@1.2.0(transitive)
+ Addedflagged-respawn@1.0.1(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfor-own@1.0.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedgetobject@1.0.2(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedglob@7.1.7(transitive)
+ Addedglobal-modules@1.0.0(transitive)
+ Addedglobal-prefix@1.0.2(transitive)
+ Addedgrunt@1.6.1(transitive)
+ Addedgrunt-cli@1.4.3(transitive)
+ Addedgrunt-known-options@2.0.0(transitive)
+ Addedgrunt-legacy-log@3.0.0(transitive)
+ Addedgrunt-legacy-log-utils@2.1.0(transitive)
+ Addedgrunt-legacy-util@2.0.1(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhomedir-polyfill@1.0.3(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinterpret@1.1.0(transitive)
+ Addedis-absolute@1.0.0(transitive)
+ Addedis-core-module@2.16.1(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedis-relative@1.0.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedis-unc-path@1.0.0(transitive)
+ Addedis-windows@1.0.2(transitive)
+ Addedisobject@3.0.1(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjs-beautify@1.5.10(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjsdom@7.2.2(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedkind-of@6.0.3(transitive)
+ Addedlevn@0.3.0(transitive)
+ Addedliftup@3.0.1(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedmake-iterator@1.0.1(transitive)
+ Addedmap-cache@0.2.2(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedminimatch@3.0.8(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addednopt@3.0.64.0.3(transitive)
+ Addednth-check@1.0.2(transitive)
+ Addednwmatcher@1.4.4(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedobject.defaults@1.1.0(transitive)
+ Addedobject.map@1.0.1(transitive)
+ Addedobject.pick@1.3.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedoptionator@0.8.3(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedosenv@0.1.5(transitive)
+ Addedparse-filepath@1.0.2(transitive)
+ Addedparse-passwd@1.0.0(transitive)
+ Addedparse5@1.5.1(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-root@0.1.1(transitive)
+ Addedpath-root-regex@0.1.2(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedprelude-ls@1.1.2(transitive)
+ Addedpsl@1.15.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrechoir@0.7.1(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedresolve@1.22.10(transitive)
+ Addedresolve-dir@1.0.1(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsax@1.4.1(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedsprintf-js@1.0.31.1.3(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.07.2.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedsymbol-tree@3.2.4(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addedtype-check@0.3.2(transitive)
+ Addedunc-path-regex@0.1.2(transitive)
+ Addedunderscore.string@3.3.6(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedv8flags@3.2.0(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedwebidl-conversions@2.0.1(transitive)
+ Addedwhatwg-url-compat@0.6.5(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedword-wrap@1.2.5(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxml-name-validator@2.0.1(transitive)
- Removed@isaacs/cliui@8.0.2(transitive)
- Removed@one-ini/wasm@0.1.1(transitive)
- Removed@pkgjs/parseargs@0.11.0(transitive)
- RemovedCSSselect@0.4.1(transitive)
- RemovedCSSwhat@0.4.7(transitive)
- Removedabbrev@2.0.0(transitive)
- Removedansi-regex@5.0.16.1.0(transitive)
- Removedansi-styles@1.0.06.2.1(transitive)
- Removedargparse@0.1.16(transitive)
- Removedasync@0.1.22(transitive)
- Removedbrace-expansion@2.0.1(transitive)
- Removedchalk@0.4.0(transitive)
- Removedcheerio@0.18.0(transitive)
- Removedcoffee-script@1.3.3(transitive)
- Removedcolors@0.6.2(transitive)
- Removedcommander@10.0.1(transitive)
- Removedcross-spawn@7.0.6(transitive)
- Removeddateformat@1.0.2-1.2.3(transitive)
- Removeddom-serializer@0.0.1(transitive)
- Removeddomelementtype@1.1.3(transitive)
- Removeddomutils@1.4.3(transitive)
- Removedeastasianwidth@0.2.0(transitive)
- Removededitorconfig@1.0.4(transitive)
- Removedemoji-regex@8.0.09.2.2(transitive)
- Removedesprima@1.0.4(transitive)
- Removedfindup-sync@0.1.3(transitive)
- Removedforeground-child@3.3.0(transitive)
- Removedgetobject@0.1.0(transitive)
- Removedglob@10.4.53.1.213.2.11(transitive)
- Removedgraceful-fs@1.2.3(transitive)
- Removedgrunt@0.4.5(transitive)
- Removedgrunt-legacy-log@0.1.3(transitive)
- Removedgrunt-legacy-log-utils@0.1.1(transitive)
- Removedgrunt-legacy-util@0.2.0(transitive)
- Removedhas-color@0.1.7(transitive)
- Removediconv-lite@0.2.11(transitive)
- Removedinherits@1.0.2(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedjackspeak@3.4.3(transitive)
- Removedjs-beautify@1.15.1(transitive)
- Removedjs-cookie@3.0.5(transitive)
- Removedjs-yaml@2.0.5(transitive)
- Removedlodash@0.9.22.4.2(transitive)
- Removedlru-cache@10.4.32.7.3(transitive)
- Removedminimatch@0.2.140.3.09.0.19.0.5(transitive)
- Removedminipass@7.1.2(transitive)
- Removednopt@1.0.107.2.1(transitive)
- Removedpackage-json-from-dist@1.0.1(transitive)
- Removedpath-key@3.1.1(transitive)
- Removedpath-scurry@1.11.1(transitive)
- Removedrimraf@2.2.8(transitive)
- Removedsemver@7.6.3(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsigmund@1.0.1(transitive)
- Removedsignal-exit@4.1.0(transitive)
- Removedstring-width@4.2.35.1.2(transitive)
- Removedstrip-ansi@0.1.16.0.17.1.0(transitive)
- Removedunderscore@1.7.0(transitive)
- Removedunderscore.string@2.2.12.3.32.4.0(transitive)
- Removedwhich@1.0.9(transitive)
- Removedwrap-ansi@7.0.08.1.0(transitive)
Updatedchalk@^1.0.0
Updatedcheerio@^0.20.0
Updatedjs-beautify@~1.5.10