Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

license-report

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

license-report - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

7

CHANGELOG.md

@@ -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 @@

4

lib/getInstalledVersions.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc