Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

codestop-js-proof

Package Overview
Dependencies
7
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.5 to 1.0.6

13

dist/Nodes.js

@@ -52,2 +52,15 @@ "use strict";

}
else if (_.has(node, 'object') && _.has(node['object'], subNode) && (node['object'][subNode] instanceof Array || node['object'][subNode] instanceof Object)) {
if (subNode == 'arguments') {
nodes = [...nodes, ...node['object'][subNode]];
}
else {
nodes.push(node['object'][subNode]);
}
}
else if (_.has(node, 'type') && node['type'] == 'MemberExpression' && _.has(node, 'property') && (node['property'] instanceof Array || node['property'] instanceof Object)) {
if (subNode == 'identifier' && node['property']['type'] == 'Identifier') {
nodes.push(node['property']);
}
}
}

@@ -54,0 +67,0 @@ return new Nodes(nodes);

2

package.json
{
"name": "codestop-js-proof",
"version": "1.0.5",
"version": "1.0.6",
"description": "## Usage",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -55,2 +55,12 @@ import * as _ from 'lodash';

}
} else if (_.has(node, 'object') && _.has(node['object'], subNode) && (node['object'][subNode] instanceof Array || node['object'][subNode] instanceof Object)) {
if (subNode == 'arguments') {
nodes = [...nodes, ...node['object'][subNode]];
} else {
nodes.push(node['object'][subNode]);
}
} else if (_.has(node, 'type') && node['type'] == 'MemberExpression' && _.has(node, 'property') && (node['property'] instanceof Array || node['property'] instanceof Object)) {
if (subNode == 'identifier' && node['property']['type'] == 'Identifier') {
nodes.push(node['property']);
}
}

@@ -57,0 +67,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc