Socket
Socket
Sign inDemoInstall

fn-args

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fn-args - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

8

fn-args.js

@@ -11,3 +11,3 @@ /*!

var reFnArgs = /\(([^)]*)\)/;
var reFnArgs = /^function\s*[^(]*\(([^)]+)\)/;

@@ -19,5 +19,9 @@ var fnArgs = function (fn) {

if (fn.length === 0) {
return [];
}
var match = reFnArgs.exec(fn.toString());
return match && match[1].length > 0 ? match[1].split(',').map(function (el) {
return match ? match[1].split(',').map(function (el) {
return el.trim();

@@ -24,0 +28,0 @@ }) : [];

{
"name": "fn-args",
"version": "0.1.1",
"version": "0.1.2",
"description": "Get the arguments of a function",

@@ -5,0 +5,0 @@ "license": "MIT",

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