New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-styled-components-remove-prop-types

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-styled-components-remove-prop-types - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

5

index.js

@@ -99,8 +99,7 @@ const fs = require('fs');

if (node.name !== 'propTypes') {
if (node.name !== 'propTypes' || !t.isMemberExpression(path.parent)) {
return;
}
const expressionIdentifier = path.findParent(t.isMemberExpression).node
.object.name;
const expressionIdentifier = path.parent.object.name;
if (!names.includes(expressionIdentifier)) {

@@ -107,0 +106,0 @@ return;

2

package.json
{
"name": "babel-plugin-transform-styled-components-remove-prop-types",
"version": "0.0.1",
"version": "0.0.2",
"description": "Remove unnecessary React propTypes from styled-components",

@@ -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