Socket
Socket
Sign inDemoInstall

commander

Package Overview
Dependencies
1
Maintainers
4
Versions
115
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.7.0 to 2.7.1

7

History.md
2.7.0 / 2015-03-07
2.7.1 / 2015-03-11
==================
* Revert #347 (fix collisions when option and first arg have same name) which causes a bug in #367.
2.7.0 / 2015-03-09
==================
* Fix git-style bug when installed globally. Close #335 #349 @zhiyelee

@@ -6,0 +11,0 @@ * Fix collisions when option and first arg have same name. Close #346 #347 @tonylukasavage

8

index.js

@@ -291,4 +291,4 @@

};
this.parent.on('action_' + this._name, listener);
if (this._alias) this.parent.on('action_' + this._alias, listener);
this.parent.on(this._name, listener);
if (this._alias) this.parent.on(this._alias, listener);
return this;

@@ -572,4 +572,4 @@ };

name = args[0];
if (this.listeners('action_' + name).length) {
this.emit('action_' + args.shift(), args, unknown);
if (this.listeners(name).length) {
this.emit(args.shift(), args, unknown);
} else {

@@ -576,0 +576,0 @@ this.emit('*', args);

{
"name": "commander",
"version": "2.7.0",
"version": "2.7.1",
"description": "the complete solution for node.js command-line programs",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc