imagemin-svgo
Advanced tools
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 @@ }; |
{ | ||
"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" | ||
} | ||
} |
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
2906
16
Updatedis-svg@^5.0.1
Updatedsvgo@^3.3.2