castle-api-client
Advanced tools
Comparing version 6.0.0 to 6.1.0
@@ -12,2 +12,3 @@ let apolloFetch = require('apollo-fetch'); | ||
function constructUploadOptions(requestOrRequests, options) { | ||
// Using an old version of extract-files https://github.com/jaydenseric/extract-files/tree/v4.0.0#function-extractfiles | ||
let files = extractFiles.extractFiles(requestOrRequests); | ||
@@ -54,2 +55,3 @@ | ||
}); | ||
this._headers = {}; | ||
@@ -59,2 +61,3 @@ // Add auth header | ||
options.headers = options.headers || {}; | ||
Object.assign(options.headers, this._headers); | ||
Object.assign(options.headers, await this._getRequestHeadersAsync()); | ||
@@ -74,2 +77,6 @@ next(); | ||
setRequestHeaders(headers) { | ||
this._headers = headers; | ||
} | ||
async _getRequestHeadersAsync() { | ||
@@ -76,0 +83,0 @@ let headers = {}; |
{ | ||
"name": "castle-api-client", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"description": "Castle API Client", | ||
@@ -5,0 +5,0 @@ "main": "CastleApiClient.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
179558
279
1