Socket
Socket
Sign inDemoInstall

svgo

Package Overview
Dependencies
104
Maintainers
3
Versions
102
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

2

package.json
{
"name": "svgo",
"version": "1.0.4",
"version": "1.0.5",
"description": "Nodejs-based tool for optimizing SVG vector graphics files",

@@ -5,0 +5,0 @@ "keywords": [

@@ -16,3 +16,3 @@ 'use strict';

csstree = require('css-tree'),
cssRx = require('css-url-regex')(),
cssRx = require('css-url-regex'),
unquote = require('unquote'),

@@ -41,3 +41,3 @@ collections = require('./_collections.js'),

var matchUrl = function(val) {
var urlMatches = cssRx.exec(val);
var urlMatches = cssRx().exec(val);
if (urlMatches === null) {

@@ -44,0 +44,0 @@ return false;

@@ -50,3 +50,3 @@ **english** | [русский](https://github.com/svg/svgo/blob/master/README.ru.md)

| [cleanupNumericValues](https://github.com/svg/svgo/blob/master/plugins/cleanupNumericValues.js) | round numeric values to the fixed precision, remove default `px` units |
| [cleanupListOfValues](https://github.com/svg/svgo/blob/master/plugins/cleanupListOfValues.js) | round numeric values in attributes that take a list of numbers (like `viewBox` or `enableBackground`) |
| [cleanupListOfValues](https://github.com/svg/svgo/blob/master/plugins/cleanupListOfValues.js) | round numeric values in attributes that take a list of numbers (like `viewBox` or `enable-background`) |
| [moveElemsAttrsToGroup](https://github.com/svg/svgo/blob/master/plugins/moveElemsAttrsToGroup.js) | move elements' attributes to their enclosing group |

@@ -93,4 +93,4 @@ | [moveGroupAttrsToElems](https://github.com/svg/svgo/blob/master/plugins/moveGroupAttrsToElems.js) | move some group attributes to the contained elements |

--config=CONFIG : Config file or JSON string to extend or replace default
--disable=DISABLE : Disable plugin by name
--enable=ENABLE : Enable plugin by name
--disable=PLUGIN : Disable plugin by name, "--disable={PLUGIN1,PLUGIN2}" for multiple plugins
--enable=PLUGIN : Enable plugin by name, "--enable={PLUGIN3,PLUGIN4}" for multiple plugins
--datauri=DATAURI : Output as Data URI string (base64, URI encoded or unencoded)

@@ -190,2 +190,3 @@ --multipass : Enable multipass

* as a PostCSS plugin - [postcss-svgo](https://github.com/ben-eb/postcss-svgo)
* as an Inkscape plugin - [inkscape-svgo](https://github.com/konsumer/inkscape-svgo)

@@ -192,0 +193,0 @@ ## License and Copyright

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc