Stop erroring for packages with large deps
parent
0a35b339f4
commit
55e602d619
|
@ -36,6 +36,7 @@ export default class NPM extends Command {
|
||||||
let dependencies: string = 'None';
|
let dependencies: string = 'None';
|
||||||
if (version !== 'Unknown' && data.versions[version].dependencies !== undefined && Object.keys(data.versions[version].dependencies).length > 0) {
|
if (version !== 'Unknown' && data.versions[version].dependencies !== undefined && Object.keys(data.versions[version].dependencies).length > 0) {
|
||||||
dependencies = Object.keys(data.versions[version].dependencies).join(', ');
|
dependencies = Object.keys(data.versions[version].dependencies).join(', ');
|
||||||
|
if (dependencies.length > 1024) dependencies = `${dependencies.substr(0, 1021)}...`;
|
||||||
}
|
}
|
||||||
const name: string = data.name || 'None';
|
const name: string = data.name || 'None';
|
||||||
const repository: string = bugs.replace('/issues', '') || '';
|
const repository: string = bugs.replace('/issues', '') || '';
|
||||||
|
|
Loading…
Reference in New Issue