instance method
get_audit
Ruby on Rails 1.2.3
Since v1.1.6 Last seen in v2.2.3 PrivateSignature
get_audit()
No documentation comment.
Source
# File lib/importmap/npm.rb, line 103
def get_audit
uri = self.class.base_uri.dup
uri.path = "/-/npm/v1/security/advisories/bulk"
body = packages_with_versions.each.with_object({}) { |(package, version), data|
data[package] ||= []
data[package] << version
}
return {} if body.empty?
response = post_json(uri, body)
JSON.parse(response.body)
end
Defined in lib/importmap/npm.rb line 103
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Importmap::Npm