svg-sprite
Advanced tools
Comparing version 3.0.0-alpha2 to 3.0.0-beta1
@@ -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", |
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
212332
3736
+ Addedcss-select@5.1.0(transitive)
+ Addedcss-tree@2.2.12.3.1(transitive)
+ Addedcsso@5.0.5(transitive)
+ Addeddom-serializer@2.0.0(transitive)
+ Addeddomhandler@5.0.3(transitive)
+ Addeddomutils@3.1.0(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedmdn-data@2.0.282.0.30(transitive)
+ Addedsource-map-js@1.2.1(transitive)
+ Addedsvgo@3.3.2(transitive)
- Removedcss-select@4.3.0(transitive)
- Removedcss-tree@1.1.3(transitive)
- Removedcsso@4.2.0(transitive)
- Removeddom-serializer@1.4.1(transitive)
- Removeddomhandler@4.3.1(transitive)
- Removeddomutils@2.8.0(transitive)
- Removedentities@2.2.0(transitive)
- Removedmdn-data@2.0.14(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedstable@0.1.8(transitive)
- Removedsvgo@2.8.0(transitive)
Updatedcsso@^5.0.5
Updatedsvgo@^3.0.2