Using embedURL in dependencies in info is too long

This commit is contained in:
Dragon Fire
2020-04-03 09:50:34 -04:00
parent 40c91e066f
commit 2e9d23d4e7
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -49,9 +49,9 @@ module.exports = class InfoCommand extends Command {
return Object.entries(deps).map(dep => {
if (dep[1].startsWith('github:')) {
const repo = dep[1].replace('github:', '').split('/');
return embedURL(dep[0], `https://github.com/${repo[0]}/${repo[1].replace(/#(.+)/, '/tree/$1')}`);
return `[${dep[0]}](https://github.com/${repo[0]}/${repo[1].replace(/#(.+)/, '/tree/$1')})`;
}
return embedURL(dep[0], `https://npmjs.com/${dep[0]}`);
return `[${dep[0]}](https://npmjs.com/${dep[0]})`;
}).join(', ');
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "112.19.8",
"version": "112.19.9",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {