hackerone-client
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "hackerone-client", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A node.js client to interact with the Hackerone api", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -24,2 +24,15 @@ const request = require("request-promise-native"); | ||
async getPrograms() { | ||
const options = Object.assign({}, this.options); | ||
options.uri += "me/programs"; | ||
const result = await request(options).catch(function(err) { | ||
throw new Error(err); | ||
}); | ||
return result; | ||
} | ||
async verifyAccess() { | ||
@@ -33,2 +46,15 @@ const options = Object.assign({}, this.options); | ||
async swag(programId) { | ||
const options = Object.assign({}, this.options); | ||
options.uri += "programs/" + programId + "/swag"; | ||
const result = await request(options).catch(function(err) { | ||
throw new Error(err); | ||
}); | ||
return result; | ||
} | ||
async readReport(reportNumber) { | ||
@@ -52,3 +78,3 @@ const options = Object.assign({}, this.options); | ||
let value = additionalFilters[key]; | ||
options.uri += key + "=" + value + "&"; | ||
options.uri += key + "=" + value; | ||
} | ||
@@ -83,2 +109,2 @@ } else { | ||
module.exports = HackeroneClient; | ||
module.exports = HackeroneClient; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23523
102