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
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/ping.js')
-rw-r--r--lib/utils/ping.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils/ping.js b/lib/utils/ping.js
index f5f7fcc6a..00956d0c1 100644
--- a/lib/utils/ping.js
+++ b/lib/utils/ping.js
@@ -1,7 +1,7 @@
// ping the npm registry
// used by the ping and doctor commands
const fetch = require('npm-registry-fetch')
-module.exports = async (opts) => {
- const res = await fetch('/-/ping?write=true', opts)
+module.exports = async (flatOptions) => {
+ const res = await fetch('/-/ping?write=true', flatOptions)
return res.json().catch(() => ({}))
}