electron-builder-http
Advanced tools
Comparing version 15.6.3 to 16.4.0
@@ -77,2 +77,5 @@ declare module "electron-builder-http/out/CancellationToken" { | ||
* GitHub options. | ||
* | ||
* GitHub [personal access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/) is required. You can generate by going to [https://github.com/settings/tokens/new](https://github.com/settings/tokens/new). The access token should have the repo scope/permission. | ||
* Define `GH_TOKEN` environment variable. | ||
*/ | ||
@@ -103,2 +106,7 @@ export interface GithubOptions extends PublishConfiguration { | ||
readonly token?: string | null | ||
/** | ||
* Whether to use private github auto-update provider if `GH_TOKEN` environment variable is set. | ||
* @see https://github.com/electron-userland/electron-builder/wiki/Auto-Update#private-github-update-repo | ||
*/ | ||
readonly private?: boolean | null | ||
} | ||
@@ -125,3 +133,5 @@ | ||
* Amazon S3 options. `https` must be used, so, if you use direct Amazon S3 endpoints, format `https://s3.amazonaws.com/bucket_name` [must be used](http://stackoverflow.com/a/11203685/1910191). And do not forget to make files/directories public. | ||
* @see [Getting your credentials](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/getting-your-credentials.html). | ||
* | ||
* AWS credentials are required, please see [getting your credentials](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/getting-your-credentials.html). | ||
* Define `AWS_SECRET_ACCESS_KEY` and `AWS_ACCESS_KEY_ID` [environment variables](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-environment.html). Or in the [~/.aws/credentials](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.html). | ||
*/ | ||
@@ -260,3 +270,2 @@ export interface S3Options extends PublishConfiguration { | ||
protected readonly maxRedirects: number | ||
protected readonly debug: debug.Debugger | ||
request<T>(options: RequestOptions, cancellationToken: CancellationToken, data?: { | ||
@@ -263,0 +272,0 @@ [name: string]: any |
@@ -62,2 +62,3 @@ "use strict"; | ||
const debug = (0, (_debug2 || _load_debug()).default)("electron-builder"); | ||
class HttpExecutorHolder { | ||
@@ -93,3 +94,2 @@ get httpExecutor() { | ||
this.maxRedirects = 10; | ||
this.debug = (0, (_debug2 || _load_debug()).default)("electron-builder"); | ||
} | ||
@@ -107,4 +107,4 @@ request(options, cancellationToken, data) { | ||
handleResponse(response, options, cancellationToken, resolve, reject, redirectCount, requestProcessor) { | ||
if (this.debug.enabled) { | ||
this.debug(`Response status: ${response.statusCode} ${response.statusMessage}, request options: ${dumpRequestOptions(options)}`); | ||
if (debug.enabled) { | ||
debug(`Response status: ${response.statusCode} ${response.statusMessage}, request options: ${dumpRequestOptions(options)}`); | ||
} | ||
@@ -111,0 +111,0 @@ // we handle any other >= 400 error on request end (read detailed message in the response body) |
{ | ||
"name": "electron-builder-http", | ||
"version": "15.6.3", | ||
"version": "16.4.0", | ||
"main": "out/httpExecutor.js", | ||
@@ -5,0 +5,0 @@ "author": "Vladimir Krivosheev", |
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
74247
798