spray-client
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -40,3 +40,3 @@ /** | ||
info(token, callback) { | ||
let request = new SprayLib.SprayRequest('get', 'user/info', { | ||
let request = new SprayLib.SprayRequest('get', 'user/get', { | ||
'Application-Key': this.options.apiKey, | ||
@@ -59,1 +59,3 @@ 'API-Version': this.options.apiVersion, | ||
} | ||
module.exports = SprayClient; |
@@ -8,3 +8,3 @@ const RP = require('request-promise'); | ||
this.method = method; | ||
this.headers = headers; | ||
this.headers = headers || {}; | ||
} | ||
@@ -17,3 +17,3 @@ | ||
json: true, | ||
headers: headers, | ||
headers: this.headers, | ||
body: body | ||
@@ -20,0 +20,0 @@ }; |
{ | ||
"name": "spray-client", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"description": "Utility Access for Spray API", | ||
@@ -23,3 +23,6 @@ "main": "index.js", | ||
"request-promise": "^4.1.1" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.5.0" | ||
} | ||
} |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
43419
8
114
1
1
3