Skip to content

Commit

Permalink
chore(deps): upgrade to [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
SethFalco committed Jun 11, 2024
1 parent 88a74eb commit f2e8e38
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 25 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"ofetch": "^1.3.4",
"pathe": "^1.1.2",
"sharp": "^0.33.3",
"svgo": "^3.2.0",
"svgo": "^4.0.0-rc.0",
"ufo": "^1.5.3",
"unstorage": "^1.10.2",
"xss": "^1.0.15"
Expand All @@ -69,4 +69,4 @@
"vitest": "^1.5.2"
},
"packageManager": "[email protected]"
}
}
61 changes: 39 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/ipx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export function createIPX(userOptions: IPXOptions): IPX {
const { optimize } = await getSVGO();
const svg = optimize(sourceData.toString("utf8"), {
...options.svgo,
plugins: ["removeScriptElement", ...(options.svgo?.plugins || [])],
plugins: ["removeScripts", ...(options.svgo?.plugins || [])],

Check warning on line 183 in src/ipx.ts

View check run for this annotation

Codecov / codecov/patch

src/ipx.ts#L183

Added line #L183 was not covered by tests
}).data;
return {
data: svg,
Expand Down

0 comments on commit f2e8e38

Please sign in to comment.