You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

babel-plugin-react-pure-component

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-react-pure-component - npm Package Compare versions

Comparing version
0.1.4
to
0.1.5
+1
-1
lib/index.js

@@ -17,3 +17,3 @@ /**

VariableDeclarator: function VariableDeclarator(node) {
if (node.init.type === 'CallExpression' && node.init.callee.type === 'Identifier' && node.init.callee.name === 'pure') {
if (node.init && node.init.type === 'CallExpression' && node.init.callee.type === 'Identifier' && node.init.callee.name === 'pure') {
var displayName = node.id.name;

@@ -20,0 +20,0 @@ return [node, t.expressionStatement(t.assignmentExpression('=', t.memberExpression(t.identifier(displayName), t.identifier('displayName')), t.literal(displayName)))];

{
"name": "babel-plugin-react-pure-component",
"version": "0.1.4",
"version": "0.1.5",
"description": "Add displayName to components created with react-pure-component",

@@ -5,0 +5,0 @@ "license": "MIT",