@iconify/tools 2.2.3 → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,6 +65,11 @@ function runSVGO(svg, options = {}) {
65
65
  ...options,
66
66
  animated
67
67
  });
68
+ if (code.includes("filter=") && code.includes("transform=")) {
69
+ plugins = plugins.filter(
70
+ (item) => item !== "moveElemsAttrsToGroup"
71
+ );
72
+ }
68
73
  }
69
74
  const pluginOptions = {
70
75
  plugins,
@@ -63,6 +63,11 @@ function runSVGO(svg, options = {}) {
63
63
  ...options,
64
64
  animated
65
65
  });
66
+ if (code.includes("filter=") && code.includes("transform=")) {
67
+ plugins = plugins.filter(
68
+ (item) => item !== "moveElemsAttrsToGroup"
69
+ );
70
+ }
66
71
  }
67
72
  const pluginOptions = {
68
73
  plugins,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "description": "Collection of functions for cleaning up and parsing SVG for Iconify project",
5
5
  "author": "Vjacheslav Trushkin",
6
- "version": "2.2.3",
6
+ "version": "2.2.5",
7
7
  "license": "MIT",
8
8
  "bugs": "https://github.com/iconify/tools/issues",
9
9
  "homepage": "https://github.com/iconify/tools",