babel-plugin-react-defaultprops
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -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 && |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61515
1072