Socket
Socket
Sign inDemoInstall

commander

Package Overview
Dependencies
0
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 11.1.0 to 12.0.0-0

10

index.js

@@ -7,9 +7,7 @@ const { Argument } = require('./lib/argument.js');

/**
* Expose the root command.
*/
exports.program = new Command();
exports = module.exports = new Command();
exports.program = exports; // More explicit access to global command.
// createArgument, createCommand, and createOption are implicitly available as they are methods on program.
exports.createCommand = (name) => new Command(name);
exports.createOption = (flags, description) => new Option(flags, description);
exports.createArgument = (name, description) => new Argument(name, description);

@@ -16,0 +14,0 @@ /**

4

lib/argument.js

@@ -53,3 +53,3 @@ const { InvalidArgumentError } = require('./error.js');

/**
* @api private
* @package internal use only
*/

@@ -134,3 +134,3 @@

* @return {string}
* @api private
* @private
*/

@@ -137,0 +137,0 @@

@@ -161,3 +161,3 @@ const { InvalidArgumentError } = require('./error.js');

/**
* @api private
* @package internal use only
*/

@@ -212,3 +212,2 @@

* @return {string}
* @api private
*/

@@ -225,3 +224,3 @@

* @return {boolean}
* @api private
* @package internal use only
*/

@@ -239,3 +238,3 @@

* @return {boolean}
* @api private
* @package internal use only
*/

@@ -300,3 +299,3 @@

* @return {string}
* @api private
* @private
*/

@@ -313,3 +312,3 @@

*
* @api private
* @private
*/

@@ -316,0 +315,0 @@

{
"name": "commander",
"version": "11.1.0",
"version": "12.0.0-0",
"description": "the complete solution for node.js command-line programs",

@@ -61,14 +61,14 @@ "keywords": [

"@types/node": "^20.2.5",
"@typescript-eslint/eslint-plugin": "^5.47.1",
"@typescript-eslint/parser": "^5.47.1",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"eslint": "^8.30.0",
"eslint-config-standard": "^17.0.0",
"eslint-config-standard-with-typescript": "^33.0.0",
"eslint-config-standard-with-typescript": "^39.1.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.7",
"eslint-plugin-n": "^15.6.0",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-promise": "^6.1.1",
"jest": "^29.3.1",
"ts-jest": "^29.0.3",
"tsd": "^0.28.1",
"tsd": "^0.29.0",
"typescript": "^5.0.4"

@@ -78,5 +78,5 @@ },

"engines": {
"node": ">=16"
"node": ">=18"
},
"support": true
}

@@ -970,2 +970,4 @@ # Commander.js

If you want to parse multiple times, create a new program each time. Calling parse does not clear out any previous state.
### Parsing Configuration

@@ -1140,3 +1142,3 @@

The current version of Commander is fully supported on Long Term Support versions of Node.js, and requires at least v16.
The current version of Commander is fully supported on Long Term Support versions of Node.js, and requires at least v18.
(For older versions of Node.js, use an older version of Commander.)

@@ -1143,0 +1145,0 @@

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc