Bump packages to fix linter

This commit is contained in:
Henry Mercer 2023-01-18 20:50:03 +00:00
parent ed9506bbaf
commit 0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions

2
node_modules/yargs/build/index.cjs generated vendored

File diff suppressed because one or more lines are too long

View file

@ -133,13 +133,16 @@ export function usage(yargs, shim) {
wrapSet = true;
wrap = cols;
};
function getWrap() {
self.getWrap = () => {
if (shim.getEnv('YARGS_DISABLE_WRAP')) {
return null;
}
if (!wrapSet) {
wrap = windowWidth();
wrapSet = true;
}
return wrap;
}
};
const deferY18nLookupPrefix = '__yargsString__:';
self.deferY18nLookup = str => deferY18nLookupPrefix + str;
self.help = function help() {
@ -165,7 +168,7 @@ export function usage(yargs, shim) {
acc[key] = true;
return acc;
}, {}));
const theWrap = getWrap();
const theWrap = self.getWrap();
const ui = shim.cliui({
width: theWrap,
wrap: !!theWrap,

View file

@ -667,7 +667,11 @@ export class YargsInstance {
this.skipValidation(key);
}
const desc = opt.describe || opt.description || opt.desc;
this.describe(key, desc);
const descriptions = __classPrivateFieldGet(this, _YargsInstance_usage, "f").getDescriptions();
if (!Object.prototype.hasOwnProperty.call(descriptions, key) ||
typeof desc === 'string') {
this.describe(key, desc);
}
if (opt.hidden) {
this.hide(key);
}