Removed the Requirement to Install Python and NodeJS (Now Bundled with Borealis)
This commit is contained in:
7
Dependencies/NodeJS/node_modules/npm/lib/utils/ping.js
generated
vendored
Normal file
7
Dependencies/NodeJS/node_modules/npm/lib/utils/ping.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
// 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(() => ({}))
|
||||
}
|
Reference in New Issue
Block a user