Socket
Socket
Sign inDemoInstall

jscs

Package Overview
Dependencies
Maintainers
3
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jscs - npm Package Compare versions

Comparing version 1.5.3 to 1.5.4

42

lib/cli.js

@@ -23,2 +23,7 @@ /**

var args = program.args;
var returnArgs = {
checker: checker,
reporter: program.reporter,
promise: promise
};

@@ -35,7 +40,3 @@ promise.always(function(status) {

return {
checker: checker,
reporter: program.reporter,
promise: promise
};
return returnArgs;
}

@@ -56,7 +57,3 @@

return {
checker: checker,
reporter: program.reporter,
promise: promise
};
return returnArgs;
}

@@ -68,7 +65,3 @@

return {
checker: checker,
reporter: program.reporter,
promise: promise
};
return returnArgs;
}

@@ -80,7 +73,3 @@

return {
checker: checker,
reporter: program.reporter,
promise: promise
};
return returnArgs;
}

@@ -98,2 +87,3 @@

reporterPath = path.resolve(process.cwd(), program.reporter);
returnArgs.reporter = reporterPath;

@@ -115,7 +105,3 @@ if (!fs.existsSync(reporterPath)) {

return {
checker: checker,
reporter: reporterPath,
promise: promise
};
return returnArgs;
}

@@ -146,7 +132,3 @@

return {
checker: checker,
reporter: reporterPath,
promise: promise
};
return returnArgs;
};

@@ -215,6 +215,11 @@ var assert = require('assert');

if (children.length > 1 || children[0].type !== 'BlockStatement') {
if (children.length > 1 ||
(children[0] && children[0].type !== 'BlockStatement')) {
markChildren(node);
markPop(node, 1, true);
markPushAndCheck(node, 1);
} else if (children.length === 0) {
linesToCheck[node.loc.start.line - 1].push = 1;
linesToCheck[node.loc.start.line - 1].check = true;
markPop(node, 1, true);
}

@@ -221,0 +226,0 @@ });

@@ -5,3 +5,3 @@ {

"name": "jscs",
"version": "1.5.3",
"version": "1.5.4",
"main": "lib/checker",

@@ -8,0 +8,0 @@ "homepage": "https://github.com/mdevils/node-jscs",

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