electron-builder-http
Advanced tools
Comparing version 18.7.0 to 18.8.0
@@ -31,2 +31,5 @@ "use strict"; | ||
} | ||
setRequestHeaders(value) { | ||
this.requestHeaders = value; | ||
} | ||
bintrayRequest(path, auth) { | ||
@@ -37,3 +40,3 @@ let data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | ||
return this.httpExecutor.request((0, (_httpExecutor || _load_httpExecutor()).configureRequestOptions)({ hostname: "api.bintray.com", path: path }, auth, method), cancellationToken, data); | ||
return this.httpExecutor.request((0, (_httpExecutor || _load_httpExecutor()).configureRequestOptions)({ hostname: "api.bintray.com", path: path, headers: this.requestHeaders || undefined }, auth, method), cancellationToken, data); | ||
} | ||
@@ -40,0 +43,0 @@ getVersion(version) { |
@@ -292,3 +292,3 @@ declare module "electron-builder-http/out/CancellationToken" { | ||
import { CancellationToken } from "electron-builder-http/out/CancellationToken" | ||
import { HttpExecutor } from "electron-builder-http" | ||
import { HttpExecutor, RequestHeaders } from "electron-builder-http" | ||
import { BintrayOptions } from "electron-builder-http/out/publishOptions" | ||
@@ -317,2 +317,4 @@ | ||
readonly packageName: string | ||
private requestHeaders | ||
setRequestHeaders(value: RequestHeaders | null): void | ||
constructor(options: BintrayOptions, httpExecutor: HttpExecutor<any>, cancellationToken: CancellationToken, apiKey?: string | null) | ||
@@ -319,0 +321,0 @@ private bintrayRequest<T>(path, auth, data, cancellationToken, method?) |
{ | ||
"name": "electron-builder-http", | ||
"version": "18.7.0", | ||
"version": "18.8.0", | ||
"main": "out/httpExecutor.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
72304
784