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

get-function-params

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-function-params - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

5

index.js

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

2

package.json
{
"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",

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