@ThreadSafe public class NodeAuditSearch extends Object
| Constructor and Description |
|---|
NodeAuditSearch(Settings settings)
Creates a NodeAuditSearch for the given repository URL.
|
| Modifier and Type | Method and Description |
|---|---|
List<Advisory> |
submitPackage(javax.json.JsonObject packageJson)
Submits the package.json file to the Node Audit API and returns a list of
zero or more Advisories.
|
public NodeAuditSearch(Settings settings) throws MalformedURLException
settings - the configured settingsMalformedURLException - thrown if the configured URL is
invalidpublic List<Advisory> submitPackage(javax.json.JsonObject packageJson) throws SearchException, IOException
packageJson - the package.json file retrieved from the DependencySearchException - if Node Audit API is unable to analyze the
packageIOException - if it's unable to connect to Node Audit APICopyright © 2012–2020 OWASP. All rights reserved.