@guanghechen/commander 4.7.0 → 4.7.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 +7 -0
- package/lib/cjs/browser.cjs +1 -1
- package/lib/cjs/index.cjs +1237 -0
- package/lib/cjs/node.cjs +1 -1
- package/lib/esm/browser.mjs +1 -1
- package/lib/esm/index.mjs +1208 -0
- package/lib/esm/node.mjs +1 -1
- package/lib/types/browser.d.ts +1 -1
- package/lib/types/index.d.ts +384 -0
- package/lib/types/node.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/lib/cjs/browser.cjs
CHANGED
|
@@ -1404,7 +1404,7 @@ class Command {
|
|
|
1404
1404
|
return this.#options.some(option => option.long === long);
|
|
1405
1405
|
}
|
|
1406
1406
|
#supportsBuiltinVersion() {
|
|
1407
|
-
return this.#
|
|
1407
|
+
return this.#version !== undefined && this.#builtin.option.version;
|
|
1408
1408
|
}
|
|
1409
1409
|
#resolveOptionPolicy() {
|
|
1410
1410
|
const optionMap = new Map();
|