Skip to content

Commit

Permalink
chore: update svgo
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberalien committed Dec 11, 2023
1 parent ae960d7 commit f25a602
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 9 deletions.
4 changes: 2 additions & 2 deletions @iconify/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"description": "Collection of functions for cleaning up and parsing SVG for Iconify project",
"author": "Vjacheslav Trushkin",
"version": "4.0.0-beta.7",
"version": "4.0.0-beta.9",
"publishConfig": {
"tag": "next"
},
Expand Down Expand Up @@ -36,7 +36,7 @@
"extract-zip": "^2.0.1",
"local-pkg": "^0.4.3",
"pathe": "^1.1.1",
"svgo": "3.0.3",
"svgo": "^3.1.0",
"tar": "^6.2.0"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions @iconify/tools/tests/fixtures/apache-original-wordmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion @iconify/tools/tests/optimise/scale-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Scaling icon', () => {

scaleSVG(svg, 1 / 40);
expect(svg.toMinifiedString()).toBe(
'<svg width="24" height="24" viewBox="0 0 24 24"><path d="M12 15h1.5v-2.25L15.25 15h1.825l-2.325-3 2.325-3H15.25l-1.75 2.25V9H12v6Zm-3.5 0H10V9H7v1.5h1.5V15ZM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21H5Zm0-2h14V5H5v14ZM5 5v14V5Z"/></svg>'
'<svg width="24" height="24" viewBox="0 0 24 24"><path d="M12 15h1.5v-2.25L15.25 15h1.825l-2.325-3 2.325-3H15.25l-1.75 2.25V9H12zm-3.5 0H10V9H7v1.5h1.5zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5H5zM5 5v14z"/></svg>'
);
expect(svg.viewBox).toEqual({
left: 0,
Expand Down
Loading

0 comments on commit f25a602

Please sign in to comment.