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

babel-plugin-react-defaultprops

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-react-defaultprops - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

lib/utils/get-props.js

@@ -7,2 +7,4 @@ "use strict";

exports.getProps = (path, func, componentName, restricted) => {
if (!func.params)
return undefined;
const firstParam = func.params.length && func.params[0];

@@ -9,0 +11,0 @@ if (firstParam &&

2

package.json
{
"name": "babel-plugin-react-defaultprops",
"version": "1.0.7",
"version": "1.0.8",
"description": "A plugin to extract es6 default parameters",

@@ -5,0 +5,0 @@ "source": "src/plugin.ts",

@@ -10,2 +10,4 @@ import { getPropsFromParams, getObjectExpression, getPropsFormBody } from '.';

) => {
if (!func.params) return undefined;
const firstParam = func.params.length && func.params[0];

@@ -12,0 +14,0 @@

Sorry, the diff of this file is not supported yet

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