instance method vulnerable_packages

Ruby on Rails 2.2.3

Since v1.1.6 Last seen in v2.2.3

Available in: v1.1.6 v1.2.3 v2.0.3 v2.1.0 v2.2.3

Signature

vulnerable_packages()

No documentation comment.

Source
# File lib/importmap/npm.rb, line 38
  def vulnerable_packages
    get_audit.flat_map do |package, vulnerabilities|
      vulnerabilities.map do |vulnerability|
        VulnerablePackage.new(
          name: package,
          severity: vulnerability['severity'],
          vulnerable_versions: vulnerability['vulnerable_versions'],
          vulnerability: vulnerability['title']
        )
      end
    end.sort_by { |p| [p.name, p.severity] }
  end

Defined in lib/importmap/npm.rb line 38 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Importmap::Npm

Type at least 2 characters to search.

↑↓ navigate · open · esc close