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

babel-plugin-transform-react-remove-prop-types

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-react-remove-prop-types - npm Package Compare versions

Comparing version 0.4.22 to 0.4.23

2

lib/index.js

@@ -230,3 +230,3 @@ "use strict";

return currentNode.get('callee').node.name === globalOptions.createReactClassName || currentNode.get('callee').node.property.name === 'createClass';
return currentNode.get('callee').node.name === globalOptions.createReactClassName || currentNode.get('callee').node.property && currentNode.get('callee').node.property.name === 'createClass';
});

@@ -233,0 +233,0 @@

{
"name": "babel-plugin-transform-react-remove-prop-types",
"version": "0.4.22",
"version": "0.4.23",
"description": "Remove unnecessary React propTypes from the production build",

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

@@ -227,3 +227,4 @@ /* eslint-disable global-require, import/no-dynamic-require */

currentNode.get('callee').node.name === globalOptions.createReactClassName ||
currentNode.get('callee').node.property.name === 'createClass'
(currentNode.get('callee').node.property &&
currentNode.get('callee').node.property.name === 'createClass')
)

@@ -230,0 +231,0 @@ })

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