Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRuy Adorno <ruyadorno@hotmail.com>2021-03-23 01:10:01 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2021-03-23 01:10:01 +0300
commitb7b4491bf1d9df70149f48bca6557e55acf5cee6 (patch)
tree523f8a071e6bce701624d55053494fa0f151a687 /lib
parent15ee1aec3675bc026fc360f81b04bae4db84d942 (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.js2
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) {