var log = require('npmlog')
var ping = require('../ping.js')
function checkPing (cb) {
var tracker = log.newItem('checkPing', 1)
tracker.info('checkPing', 'Pinging registry')
ping({}, true, (err, pong) => {
if (err && err.code && err.code.match(/^E\d{3}$/)) {
return cb(null, [err.code.substr(1), 'failed'])
} else {
cb(null, [200, 'ok'])
}
})
}
module.exports = checkPing
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| check-files-permission.js | File | 1.93 KB | 0644 |
|
| check-ping.js | File | 407 B | 0644 |
|
| get-git-path.js | File | 300 B | 0644 |
|
| get-latest-nodejs-version.js | File | 800 B | 0644 |
|
| get-latest-npm-version.js | File | 444 B | 0644 |
|
| verify-cached-files.js | File | 929 B | 0644 |
|