commander 12.0.0-1 → 12.0.0

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.
Files changed (2) hide show
  1. package/Readme.md +3 -2
  2. package/package.json +2 -2
package/Readme.md CHANGED
@@ -1098,8 +1098,9 @@ program.error('Custom processing has failed', { exitCode: 2, code: 'my.custom.er
1098
1098
  By default, Commander calls `process.exit` when it detects errors, or after displaying the help or version. You can override
1099
1099
  this behaviour and optionally supply a callback. The default override throws a `CommanderError`.
1100
1100
 
1101
- The override callback is passed a `CommanderError` with properties `exitCode` number, `code` string, and `message`. The default override behaviour is to throw the error, except for async handling of executable subcommand completion which carries on. The normal display of error messages or version or help
1102
- is not affected by the override which is called after the display.
1101
+ The override callback is passed a `CommanderError` with properties `exitCode` number, `code` string, and `message`.
1102
+ Commander expects the callback to terminate the normal program flow, and will call `process.exit` if the callback returns.
1103
+ The normal display of error messages or version or help is not affected by the override which is called after the display.
1103
1104
 
1104
1105
  ```js
1105
1106
  program.exitOverride();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commander",
3
- "version": "12.0.0-1",
3
+ "version": "12.0.0",
4
4
  "description": "the complete solution for node.js command-line programs",
5
5
  "keywords": [
6
6
  "commander",
@@ -69,7 +69,7 @@
69
69
  "eslint-plugin-promise": "^6.1.1",
70
70
  "jest": "^29.3.1",
71
71
  "ts-jest": "^29.0.3",
72
- "tsd": "^0.29.0",
72
+ "tsd": "^0.30.4",
73
73
  "typescript": "^5.0.4"
74
74
  },
75
75
  "types": "typings/index.d.ts",