Skip to content

Commit

Permalink
Change pnpm format for versions
Browse files Browse the repository at this point in the history
  • Loading branch information
xtreme-shane-lattanzio committed May 6, 2024
1 parent c48ddb7 commit 5c1a611
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/license_finder/package_managers/pnpm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ def get_pnpm_packages(json_objects)
json_objects.map do |_, value|
value.each do |pkg|
name = pkg['name']
version = pkg['version']

if pkg['version']
version = pkg['version']
elsif pkg['versions']
version = pkg['versions'][0]
end

license = pkg['license']
homepage = pkg['vendorUrl']
author = pkg['vendorName']
Expand Down

0 comments on commit 5c1a611

Please sign in to comment.