Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-svgstore

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-svgstore - npm Package Compare versions

Comparing version 0.5.0 to 1.0.0

CHANGELOG.md

49

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc