Socket
Socket
Sign inDemoInstall

svg-sprite

Package Overview
Dependencies
Maintainers
2
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-sprite - npm Package Compare versions

Comparing version 3.0.0-alpha2 to 3.0.0-beta1

18

lib/svg-sprite/transform/svgo.js

@@ -30,11 +30,15 @@ 'use strict';

config.plugins.push({
if (!spriter.config.svg.xmlDeclaration) {
// remove xml declaration if config.svg.xmlDeclaration is falsy
name: 'removeXMLProcInst',
active: !spriter.config.svg.xmlDeclaration
}, {
config.plugins.push({
name: 'removeXMLProcInst'
});
}
if (!spriter.config.svg.doctypeDeclaration) {
// remove docType if config.svg.doctypeDeclaration is falsy
name: 'removeDoctype',
active: !spriter.config.svg.doctypeDeclaration
});
config.plugins.push({
name: 'removeDoctype'
});
}

@@ -41,0 +45,0 @@ const svg = shape.getSVG(false);

{
"name": "svg-sprite",
"version": "3.0.0-alpha2",
"version": "3.0.0-beta1",
"author": "Joschi Kuphal <joschi@kuphal.net> (https://jkphl.is)",

@@ -41,3 +41,3 @@ "description": "SVG sprites & stacks galore — A low-level Node.js module that takes a bunch of SVG files, optimizes them and bakes them into SVG sprites of several types along with suitable stylesheet resources (e.g. CSS, Sass, LESS, Stylus, etc.)",

"css-selector-parser": "^1.4.1",
"csso": "^4.2.0",
"csso": "^5.0.5",
"cssom": "^0.5.0",

@@ -51,3 +51,3 @@ "glob": "^7.2.3",

"prettysize": "^2.0.0",
"svgo": "^2.8.0",
"svgo": "^3.0.2",
"vinyl": "^3.0.0",

@@ -54,0 +54,0 @@ "winston": "^3.8.2",

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