yargs
Advanced tools
Comparing version 17.7.0 to 17.7.1
@@ -134,2 +134,3 @@ import { assertNotStrictEqual, } from './typings/common-types.js'; | ||
if (isCommandBuilderCallback(builder)) { | ||
yargs.getInternalMethods().getUsageInstance().freeze(); | ||
const builderOutput = builder(yargs.getInternalMethods().reset(aliases), helpOrVersionSet); | ||
@@ -144,2 +145,3 @@ if (isPromise(builderOutput)) { | ||
else if (isCommandBuilderOptionDefinitions(builder)) { | ||
yargs.getInternalMethods().getUsageInstance().freeze(); | ||
innerYargs = yargs.getInternalMethods().reset(aliases); | ||
@@ -146,0 +148,0 @@ Object.keys(commandHandler.builder).forEach(key => { |
{ | ||
"name": "yargs", | ||
"version": "17.7.0", | ||
"version": "17.7.1", | ||
"description": "yargs the modern, pirate-themed, successor to optimist.", | ||
@@ -5,0 +5,0 @@ "main": "./index.cjs", |
Sorry, the diff of this file is not supported yet
292404
5275