@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/lib/cjs/node.cjs
CHANGED
|
@@ -1417,7 +1417,7 @@ class Command {
|
|
|
1417
1417
|
return this.#options.some(option => option.long === long);
|
|
1418
1418
|
}
|
|
1419
1419
|
#supportsBuiltinVersion() {
|
|
1420
|
-
return this.#
|
|
1420
|
+
return this.#version !== undefined && this.#builtin.option.version;
|
|
1421
1421
|
}
|
|
1422
1422
|
#resolveOptionPolicy() {
|
|
1423
1423
|
const optionMap = new Map();
|
package/lib/esm/browser.mjs
CHANGED
|
@@ -1402,7 +1402,7 @@ class Command {
|
|
|
1402
1402
|
return this.#options.some(option => option.long === long);
|
|
1403
1403
|
}
|
|
1404
1404
|
#supportsBuiltinVersion() {
|
|
1405
|
-
return this.#
|
|
1405
|
+
return this.#version !== undefined && this.#builtin.option.version;
|
|
1406
1406
|
}
|
|
1407
1407
|
#resolveOptionPolicy() {
|
|
1408
1408
|
const optionMap = new Map();
|