in scripts/link-checker.js [189:208]
function linkValidate(link) {
console.log('checking external link: ', link.url);
return new Promise((resolve) => {
axios.get(link.url)
.then((res) => {
resolve({
...link,
status: res.status,
statusText: res.statusText,
});
})
.catch(() => {
resolve({
...link,
status: 0,
statusText: 'FAIL',
});
});
});
}