@productboard/svg-componentify
Advanced tools
Comparing version 2.4.0 to 2.5.0
{ | ||
"name": "@productboard/svg-componentify", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -1,4 +0,1 @@ | ||
const { parse, transform } = require("@babel/core"); | ||
const REMOVE_ATTRS = ["clipRule", "fillRule"]; | ||
// specific remove | ||
@@ -73,6 +70,5 @@ const PATH_REMOVE_ATTRS = []; | ||
JSXOpeningElement(path) { | ||
const removeAttrs = [...REMOVE_ATTRS]; | ||
path.node.attributes = [ | ||
...path.node.attributes.filter( | ||
a => t.isJSXAttribute(a) && !removeAttrs.includes(a.name.name) | ||
a => t.isJSXAttribute(a) | ||
) | ||
@@ -79,0 +75,0 @@ ]; |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
19105
439
2