babel-plugin-react-inline-svg-unique-id
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17184
266