New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

function-extractor

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

function-extractor - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

19

index.js

@@ -28,2 +28,3 @@ (function() {

var parent;
if (node.type === 'FunctionDeclaration') {

@@ -35,3 +36,4 @@ return list.push({

blockStart: node.body.range[0],
end: node.body.range[1]
end: node.body.range[1],
loc: node.loc.start
});

@@ -119,3 +121,4 @@ } else if (node.type === 'FunctionExpression') {

blockStart: node.body.range[0],
end: node.body.range[1]
end: node.body.range[1],
loc: node.loc.start
});

@@ -130,3 +133,4 @@ }

blockStart: node.body.range[0],
end: node.body.range[1]
end: node.body.range[1],
loc: node.loc.start
});

@@ -139,3 +143,4 @@ } else if (parent.type === 'CallExpression') {

blockStart: node.body.range[0],
end: node.body.range[1]
end: node.body.range[1],
loc: node.loc.start
});

@@ -148,3 +153,4 @@ } else if (typeof parent.length === 'number') {

blockStart: node.body.range[0],
end: node.body.range[1]
end: node.body.range[1],
loc: node.loc.start
});

@@ -159,3 +165,4 @@ } else if (typeof parent.key !== 'undefined') {

blockStart: node.body.range[0],
end: node.body.range[1]
end: node.body.range[1],
loc: node.loc.start
});

@@ -162,0 +169,0 @@ }

{
"name": "function-extractor",
"version" : "0.0.1",
"version" : "0.0.2",
"description": "Extracts all the functions from a Javascript file into an array of objects.",

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