You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// ping the npm registry
|
|
// used by the ping and doctor commands
|
|
const fetch = require('npm-registry-fetch')
|
|
module.exports = async (flatOptions) => {
|
|
const res = await fetch('/-/ping?write=true', flatOptions)
|
|
return res.json().catch(() => ({}))
|
|
}
|