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

escomplex

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

escomplex - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

7

package.json
{
"name": "escomplex",
"version": "0.2.5",
"version": "0.2.6",
"description": "Software complexity analysis of JavaScript-family abstract syntax trees.",

@@ -30,3 +30,3 @@ "homepage": "https://github.com/philbooth/escomplex",

"dependencies": {
"check-types": "1.1.x",
"check-types": "2.1.x",
"matrix-utilities": "1.2.x"

@@ -39,4 +39,3 @@ },

"escomplex-ast-moz": "0.1.x",
"esprima": "1.0.x",
"coffee-script-redux": "2.0.x"
"esprima": "1.0.x"
},

@@ -43,0 +42,0 @@ "scripts": {

@@ -466,4 +466,2 @@ # escomplex

[acorn]: http://marijnhaverbeke.nl/acorn
[escomplex-ast-csr]: https://github.com/philbooth/escomplex-ast-csr
[coffeescriptredux]: https://github.com/michaelficarra/CoffeeScriptRedux
[mccabe]: http://www.literateprogramming.com/mccabe.pdf

@@ -470,0 +468,0 @@ [gillkemerer]: http://www.pitt.edu/~ckemerer/CK%20research%20papers/CyclomaticComplexityDensity_GillKemerer91.pdf

@@ -14,5 +14,5 @@ /*globals exports, require */

check.verify.object(ast, 'Invalid syntax tree');
check.verify.object(walker, 'Invalid walker');
check.verify.fn(walker.walk, 'Invalid walker.walk method');
check.assert.object(ast, 'Invalid syntax tree');
check.assert.object(walker, 'Invalid walker');
check.assert.function(walker.walk, 'Invalid walker.walk method');

@@ -132,3 +132,3 @@ if (check.object(options)) {

incrementFn(currentReport, amount);
} else if (check.fn(amount)) {
} else if (check.function(amount)) {
incrementFn(currentReport, amount(node));

@@ -171,3 +171,3 @@ }

if (check.fn(s.identifier)) {
if (check.function(s.identifier)) {
identifier = s.identifier(node);

@@ -178,3 +178,3 @@ } else {

if (check.fn(s.filter) === false || s.filter(node) === true) {
if (check.function(s.filter) === false || s.filter(node) === true) {
halsteadItemEncountered(currentReport, metric, identifier);

@@ -230,3 +230,3 @@ }

if (check.fn(syntax.dependencies)) {
if (check.function(syntax.dependencies)) {
dependencies = syntax.dependencies(node, clearDependencies);

@@ -233,0 +233,0 @@ if (check.object(dependencies) || check.array(dependencies)) {

@@ -19,3 +19,3 @@ /*globals exports, require */

check.verify.array(modules, 'Invalid modules');
check.assert.array(modules, 'Invalid modules');

@@ -25,3 +25,3 @@ reports = modules.map(function (m) {

check.verify.unemptyString(m.path, 'Invalid path');
check.assert.unemptyString(m.path, 'Invalid path');

@@ -228,3 +228,3 @@ try {

if (check.oddNumber(values.length)) {
if (check.odd(values.length)) {
return values[(values.length - 1) / 2];

@@ -231,0 +231,0 @@ }

Sorry, the diff of this file is too big to display

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