Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-react-inline-svg-unique-id

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-react-inline-svg-unique-id - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

4

lib/plugin.js

@@ -82,3 +82,5 @@ "use strict";

var nameNode = attribute.get('name');
return nameNode.isJSXNamespacedName() && nameNode.node.namespace.name === 'xlink' && nameNode.node.name.name === 'href';
return nameNode.isJSXIdentifier({
name: 'xlinkHref'
}) || nameNode.isJSXNamespacedName() && nameNode.node.namespace.name === 'xlink' && nameNode.node.name.name === 'href';
};

@@ -85,0 +87,0 @@

{
"name": "babel-plugin-react-inline-svg-unique-id",
"version": "1.3.0",
"version": "1.3.1",
"description": "Babel plugin for applying generated ids to inline React SVG components",

@@ -39,3 +39,3 @@ "author": "Laurynas Aleksiūnas <laurynas.aleksiunas@gmail.com>",

},
"gitHead": "17cff0f6b1d7e9daa5e5c372407a77a3f8918911"
"gitHead": "dd6aa00f6673008ec5830f70bdebc341e142f83b"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc