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

babel-plugin-transform-react-es6-displayname

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-react-es6-displayname - npm Package Compare versions

Comparing version 1.0.0-beta1.3 to 1.0.0-beta1.4

11

index.js

@@ -15,7 +15,10 @@ module.exports = babelPluginTransformReactEs6ClassDisplayName;

if (
this.node.superClass.name === 'Component' ||
this.node.superClass &&
(
this.node.superClass.object &&
this.node.superClass.object.name === 'React' &&
this.node.superClass.property.name === 'Component'
this.node.superClass.name === 'Component' ||
(
this.node.superClass.object &&
this.node.superClass.object.name === 'React' &&
this.node.superClass.property.name === 'Component'
)
)

@@ -22,0 +25,0 @@ ) {

{
"name": "babel-plugin-transform-react-es6-displayname",
"version": "1.0.0-beta1.3",
"version": "1.0.0-beta1.4",
"description": "Babel transform to add the displayName property to component classes",

@@ -5,0 +5,0 @@ "main": "index.js",

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