Socket
Socket
Sign inDemoInstall

svgo

Package Overview
Dependencies
16
Maintainers
3
Versions
99
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

6

package.json
{
"packageManager": "yarn@2.4.3",
"name": "svgo",
"version": "3.0.1",
"version": "3.0.2",
"description": "Nodejs-based tool for optimizing SVG vector graphics files",

@@ -118,3 +118,3 @@ "license": "MIT",

"@rollup/plugin-node-resolve": "^14.1.0",
"@types/css-tree": "^1.0.7",
"@types/css-tree": "^2.0.0",
"@types/csso": "^5.0.0",

@@ -135,2 +135,2 @@ "@types/jest": "^29.1.1",

}
}
}

@@ -1,2 +0,1 @@

import type * as csso from 'csso';
import type {

@@ -87,13 +86,36 @@ Plugin as PluginDef,

};
minifyStyles: csso.MinifyOptions &
Omit<csso.CompressOptions, 'usage'> & {
usage?:
| boolean
| {
force?: boolean;
ids?: boolean;
classes?: boolean;
tags?: boolean;
};
};
minifyStyles: {
/**
* Disable or enable a structure optimisations.
* @default true
*/
restructure?: boolean | undefined;
/**
* Enables merging of @media rules with the same media query by splitted by other rules.
* The optimisation is unsafe in general, but should work fine in most cases. Use it on your own risk.
* @default false
*/
forceMediaMerge?: boolean | undefined;
/**
* Specify what comments to leave:
* - 'exclamation' or true – leave all exclamation comments
* - 'first-exclamation' – remove every comment except first one
* - false – remove all comments
* @default true
*/
comments?: string | boolean | undefined;
/**
* Advanced optimizations
*/
usage?:
| boolean
| {
force?: boolean;
ids?: boolean;
classes?: boolean;
tags?: boolean;
};
};
moveElemsAttrsToGroup: void;

@@ -100,0 +122,0 @@ moveGroupAttrsToElems: void;

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