mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Make info embed deps only use npm
This commit is contained in:
@@ -46,12 +46,6 @@ module.exports = class InfoCommand extends Command {
|
||||
}
|
||||
|
||||
parseDependencies(deps) {
|
||||
return Object.entries(deps).map(dep => {
|
||||
if (dep[1].startsWith('github:')) {
|
||||
const repo = dep[1].replace('github:', '').split('/');
|
||||
return `[${dep[0]}](https://github.com/${repo[0]}/${repo[1].replace(/#(.+)/, '/tree/$1')})`;
|
||||
}
|
||||
return `[${dep[0]}](https://npmjs.com/${dep[0]})`;
|
||||
}).join(' ');
|
||||
return Object.keys(deps).map(dep => `[${dep}](https://npmjs.com/${dep})`).join(', ');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user