builder-util-runtime
Advanced tools
Comparing version 8.5.0 to 8.6.0
@@ -193,2 +193,3 @@ "use strict"; | ||
let data = ""; | ||
response.on("error", reject); | ||
response.on("data", chunk => data += chunk); | ||
@@ -281,5 +282,8 @@ response.on("end", () => { | ||
return; | ||
} // this code not relevant for Electron (redirect event instead handled) | ||
} // It is possible for the response stream to fail, e.g. when a network is lost while | ||
// response stream is in progress. Stop waiting and reject so consumer can catch the error. | ||
response.on("error", options.callback); // this code not relevant for Electron (redirect event instead handled) | ||
const redirectUrl = safeGetHeader(response, "location"); | ||
@@ -483,9 +487,5 @@ | ||
let headers = options.headers; | ||
options.headers = Object.assign({}, options.headers); | ||
const headers = options.headers; | ||
if (headers == null) { | ||
headers = {}; | ||
options.headers = headers; | ||
} | ||
if (token != null) { | ||
@@ -492,0 +492,0 @@ headers.authorization = token.startsWith("Basic") ? token : `token ${token}`; |
{ | ||
"name": "builder-util-runtime", | ||
"version": "8.5.0", | ||
"version": "8.6.0", | ||
"main": "out/index.js", | ||
@@ -5,0 +5,0 @@ "author": "Vladimir Krivosheev", |
Sorry, the diff of this file is not supported yet
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
141215