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

n-cli

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n-cli - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

12

lib/index.js

@@ -101,7 +101,11 @@ "use strict";

CLI.prototype.on = function (commandName, commandFunction) {
if (this.argv._ && this.argv._[0] === commandName){
if (typeof(commandFunction) !== "function"){
throw new E("excepted-type-is-function", commandFunction);
if (typeof(commandName) === "function"){
commandName.bind(this)();
} else {
if (this.argv._ && this.argv._[0] === commandName){
if (typeof(commandFunction) !== "function"){
throw new E("excepted-type-is-function", commandFunction);
}
commandFunction.bind(this)();
}
commandFunction.bind(this)();
}

@@ -108,0 +112,0 @@ };

{
"name": "n-cli",
"version": "1.0.5",
"version": "1.0.6",
"description": "a usefull toolset for node commandline applications",

@@ -5,0 +5,0 @@ "homepage": "",

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