electron-builder-http
Advanced tools
Comparing version 15.3.0 to 15.5.0
@@ -57,3 +57,3 @@ declare module "electron-builder-http/out/CancellationToken" { | ||
/** | ||
* Can be specified in the [config](https://github.com/electron-userland/electron-builder/wiki/Options#configuration-options) or any platform- or target- specific options. | ||
* Can be specified in the [config](https://github.com/electron-userland/electron-builder/wiki/Options#Config) or any platform- or target- specific options. | ||
* | ||
@@ -81,3 +81,3 @@ * If `GH_TOKEN` is set — defaults to `[{provider: "github"}]`. | ||
/** | ||
* The repository name. [Detected automatically](https://github.com/electron-userland/electron-builder/wiki/Publishing-Artifacts#github-repository). | ||
* The repository name. [Detected automatically](#github-repository-and-bintray-package). | ||
*/ | ||
@@ -100,2 +100,6 @@ readonly repo?: string | null | ||
readonly protocol?: "https" | "http" | null | ||
/** | ||
* The access token to support auto-update from private github repositories. Never specify it in the configuration files. Only for [setFeedURL](module:electron-updater/out/AppUpdater.AppUpdater+setFeedURL). | ||
*/ | ||
readonly token?: string | null | ||
} | ||
@@ -173,2 +177,5 @@ | ||
export interface VersionInfo { | ||
/** | ||
* The version. | ||
*/ | ||
readonly version: string | ||
@@ -181,4 +188,13 @@ } | ||
readonly sha2: string | ||
/** | ||
* The release name. | ||
*/ | ||
readonly releaseName?: string | null | ||
/** | ||
* The release notes. | ||
*/ | ||
readonly releaseNotes?: string | null | ||
/** | ||
* The release date. | ||
*/ | ||
readonly releaseDate: string | ||
@@ -185,0 +201,0 @@ } |
@@ -127,3 +127,3 @@ "use strict"; | ||
} | ||
this.doApiRequest(Object.assign({}, options, (0, (_url || _load_url()).parse)(redirectUrl)), cancellationToken, requestProcessor, redirectCount).then(resolve).catch(reject); | ||
this.doApiRequest(Object.assign({}, removeAuthHeader(options), (0, (_url || _load_url()).parse)(redirectUrl)), cancellationToken, requestProcessor, redirectCount).then(resolve).catch(reject); | ||
return; | ||
@@ -167,3 +167,3 @@ } | ||
const parsedUrl = (0, (_url || _load_url()).parse)(redirectUrl); | ||
this.doDownload(Object.assign({}, requestOptions, { | ||
this.doDownload(Object.assign({}, removeAuthHeader(requestOptions), { | ||
hostname: parsedUrl.hostname, | ||
@@ -293,2 +293,12 @@ path: parsedUrl.path, | ||
} | ||
function removeAuthHeader(requestOptions) { | ||
const result = Object.assign({}, requestOptions); | ||
// github redirect to amazon s3 - avoid error "Only one auth mechanism allowed" | ||
if (result.headers != null) { | ||
result.headers = Object.assign({}, result.headers); | ||
delete result.headers.Authorization; | ||
delete result.headers.authorization; | ||
} | ||
return result; | ||
} | ||
//# sourceMappingURL=httpExecutor.js.map |
{ | ||
"name": "electron-builder-http", | ||
"version": "15.3.0", | ||
"version": "15.5.0", | ||
"main": "out/httpExecutor.js", | ||
@@ -15,3 +15,3 @@ "author": "Vladimir Krivosheev", | ||
"dependencies": { | ||
"debug": "2.6.2", | ||
"debug": "2.6.3", | ||
"fs-extra-p": "^4.0.2" | ||
@@ -18,0 +18,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
70216
774
+ Addeddebug@2.6.3(transitive)
- Removeddebug@2.6.2(transitive)
Updateddebug@2.6.3