mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-07-28 14:58:28 -06:00
8 lines
262 B
JavaScript
8 lines
262 B
JavaScript
// 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', { ...flatOptions, cache: false })
|
|
return res.json().catch(() => ({}))
|
|
}
|