Comparing version 17.1.0 to 17.1.1-candidate.0
@@ -331,2 +331,3 @@ import { assertNotStrictEqual, } from './typings/common-types.js'; | ||
}); | ||
const defaults = yargs.getOptions().default; | ||
Object.keys(parsed.argv).forEach(key => { | ||
@@ -336,3 +337,4 @@ if (positionalKeys.includes(key)) { | ||
positionalMap[key] = parsed.argv[key]; | ||
if (Object.prototype.hasOwnProperty.call(argv, key) && | ||
if (!Object.prototype.hasOwnProperty.call(defaults, key) && | ||
Object.prototype.hasOwnProperty.call(argv, key) && | ||
Object.prototype.hasOwnProperty.call(parsed.argv, key) && | ||
@@ -339,0 +341,0 @@ (Array.isArray(argv[key]) || Array.isArray(parsed.argv[key]))) { |
{ | ||
"name": "yargs", | ||
"version": "17.1.0", | ||
"version": "17.1.1-candidate.0", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
286501
4933
2