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

imagemin-svgo

Package Overview
Dependencies
Maintainers
6
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagemin-svgo - npm Package Compare versions

Comparing version 11.0.0 to 11.0.1

10

index.js

@@ -11,11 +11,9 @@ import {Buffer} from 'node:buffer';

if (!isSvg(buffer)) {
const normalizedInput = Buffer.isBuffer(buffer) ? buffer.toString() : buffer;
if (!isSvg(normalizedInput)) {
return buffer;
}
if (Buffer.isBuffer(buffer)) {
buffer = buffer.toString();
}
const {data} = optimize(buffer, options);
const {data} = optimize(normalizedInput, options);
return Buffer.from(data);

@@ -22,0 +20,0 @@ };

8

package.json
{
"name": "imagemin-svgo",
"version": "11.0.0",
"version": "11.0.1",
"description": "SVGO imagemin plugin",

@@ -31,9 +31,9 @@ "license": "MIT",

"dependencies": {
"is-svg": "^5.0.0",
"svgo": "^3.2.0"
"is-svg": "^5.0.1",
"svgo": "^3.3.2"
},
"devDependencies": {
"ava": "^6.1.2",
"ava": "^6.1.3",
"xo": "^0.58.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