license-report
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -5,2 +5,9 @@ # Changelog | ||
### [5.0.2](https://github.com/ironSource/license-report/compare/v5.0.1...v5.0.2) (2022-03-11) | ||
### Bug Fixes | ||
* issue [#72](https://github.com/ironSource/license-report/issues/72) (Cannot read property 'version' of undefined) ([dec72d1](https://github.com/ironSource/license-report/commit/dec72d1c5828f89219dacdd2c2e8c9b808c63142)) | ||
## [5.0.1](https://github.com/ironSource/license-report/compare/v5.0.0...v5.0.1) (2022-02-20) | ||
@@ -7,0 +14,0 @@ |
@@ -6,3 +6,3 @@ const debug = require('debug')('license-report:getInstalledVersions') | ||
/** | ||
* Get the installed verions from package-lock.json. | ||
* Get the installed versions from package-lock.json. | ||
* If package-lock.json file does not exits, an empty object is returned | ||
@@ -20,3 +20,3 @@ * @param {object} packageLockContent - content of package-lock.json | ||
let installedVersion | ||
if ((packageLockDependency !== undefined) || (packageLockDependency.version !== undefined)) { | ||
if ((packageLockDependency !== undefined) && (packageLockDependency.version !== undefined)) { | ||
installedVersion = packageLockDependency.version | ||
@@ -23,0 +23,0 @@ } else { |
{ | ||
"name": "license-report", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "creates a short report about project's dependencies (license, url etc)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# license report tool | ||
![Version](https://img.shields.io/badge/version-5.0.1-blue.svg?cacheSeconds=2592000) | ||
![Version](https://img.shields.io/badge/version-5.0.2-blue.svg?cacheSeconds=2592000) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/kefranabg/readme-md-generator/blob/master/LICENSE) | ||
@@ -4,0 +4,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
461881