Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-builder-http

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-builder-http - npm Package Compare versions

Comparing version 15.3.0 to 15.5.0

20

out/electron-builder-http.d.ts

@@ -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

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc