eslint ignore

merge-requests/12/head
Matthew 2020-05-03 14:59:35 -04:00 committed by Bsian
parent 6d0a1fa357
commit 44d44ec043
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ export default class NPM extends Command {
license = data.license;
}
let dependencies: string = 'None';
// eslint-disable-next-line no-prototype-builtins
if (version !== 'Unknown' && data.versions[version].hasOwnProperty('dependencies') && Object.keys(data.versions[version].dependencies).length > 0) {
dependencies = Object.keys(data.versions[version].dependencies).join(', ');
}