get-function-params
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -13,5 +13,6 @@ var patterns = require('./src/patterns') | ||
var params = encode(cache, fnString, patterns.prePatterns) | ||
.match(/(?:function\s*\((.*)\)|\((.*)\))/) | ||
.replace(/\n/g, '') | ||
.match(/(?:function\s*\((.*)\)|\((.*)\))|(.*)\s*=>/) | ||
params = params[1] || params[2] || '' | ||
params = params[1] || params[2] || params[3] || '' | ||
@@ -18,0 +19,0 @@ return encode(cache, params, patterns.postPatterns) |
{ | ||
"name": "get-function-params", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Get list of function params, including default values (if any)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
3589
67
8