commander 2.17.0 → 2.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 2.17.1 / 2018-08-07
3
+ ==================
4
+
5
+ * Fix bug in command emit (#844)
6
+
2
7
  2.17.0 / 2018-08-03
3
8
  ==================
4
9
 
package/index.js CHANGED
@@ -660,7 +660,8 @@ Command.prototype.parseArgs = function(args, unknown) {
660
660
  if (unknown.length > 0) {
661
661
  this.unknownOption(unknown[0]);
662
662
  }
663
- if (this._args.filter(a => a.required).length === 0) {
663
+ if (this.commands.length === 0 &&
664
+ this._args.filter(function(a) { return a.required }).length === 0) {
664
665
  this.emit('command:*');
665
666
  }
666
667
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commander",
3
- "version": "2.17.0",
3
+ "version": "2.17.1",
4
4
  "description": "the complete solution for node.js command-line programs",
5
5
  "keywords": [
6
6
  "commander",
@@ -26,8 +26,8 @@
26
26
  ],
27
27
  "dependencies": {},
28
28
  "devDependencies": {
29
- "@types/node": "^10.5.5",
30
- "eslint": "^5.2.0",
29
+ "@types/node": "^10.5.7",
30
+ "eslint": "^5.3.0",
31
31
  "should": "^13.2.3",
32
32
  "sinon": "^6.1.4",
33
33
  "standard": "^11.0.1",