Socket
Socket
Sign inDemoInstall

@productboard/svg-componentify

Package Overview
Dependencies
196
Maintainers
10
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.0 to 2.5.0

2

package.json
{
"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 @@ ];

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc