lib/licensed/sources/npm.rb in licensed-2.9.2 vs lib/licensed/sources/npm.rb in licensed-2.10.0

- old
+ new

@@ -46,9 +46,10 @@ # Recursively parse dependency JSON data. Returns a hash mapping the # package name to it's metadata def recursive_dependencies(dependencies, result = {}) dependencies.each do |name, dependency| + next if dependency["peerMissing"] next if yarn_lock_present && dependency["missing"] (result[name] ||= []) << dependency recursive_dependencies(dependency["dependencies"] || {}, result) end result