diff options
author | Ruy Adorno <ruyadorno@hotmail.com> | 2021-03-23 01:10:01 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2021-03-23 01:10:01 +0300 |
commit | b7b4491bf1d9df70149f48bca6557e55acf5cee6 (patch) | |
tree | 523f8a071e6bce701624d55053494fa0f151a687 /lib | |
parent | 15ee1aec3675bc026fc360f81b04bae4db84d942 (diff) |
fix: which config
The default value for the `which` config option used in the `npm fund`
command is now `null` instead of the previously used `undefined`.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fund.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fund.js b/lib/fund.js index 217a21d1f..25d3462f6 100644 --- a/lib/fund.js +++ b/lib/fund.js @@ -63,7 +63,7 @@ class Fund extends BaseCommand { const fundingSourceNumber = numberArg && parseInt(numberArg, 10) const badFundingSourceNumber = - numberArg !== undefined && + numberArg !== null && (String(fundingSourceNumber) !== numberArg || fundingSourceNumber < 1) if (badFundingSourceNumber) { |