builder-util-runtime
Advanced tools
Comparing version 8.8.1 to 8.9.0
# builder-util-runtime | ||
## 8.9.0 | ||
### Minor Changes | ||
- [#6228](https://github.com/electron-userland/electron-builder/pull/6228) [`a9453216`](https://github.com/electron-userland/electron-builder/commit/a94532164709a545c0f6551fdc336dbc5377bda8) Thanks [@mmaietta](https://github.com/mmaietta)! - feat: adding Bitbucket publisher and autoupdater | ||
## 8.8.1 | ||
@@ -4,0 +10,0 @@ |
@@ -28,3 +28,3 @@ /// <reference types="node" /> | ||
abort: () => void; | ||
end: () => void; | ||
end: (data?: Buffer) => void; | ||
} | ||
@@ -71,4 +71,4 @@ export declare abstract class HttpExecutor<T extends Request> { | ||
export declare function safeGetHeader(response: any, headerKey: string): any; | ||
export declare function configureRequestOptions(options: RequestOptions, token?: string | null, method?: "GET" | "DELETE" | "PUT"): RequestOptions; | ||
export declare function configureRequestOptions(options: RequestOptions, token?: string | null, method?: "GET" | "DELETE" | "PUT" | "POST"): RequestOptions; | ||
export declare function safeStringifyJson(data: any, skippedNames?: Set<string>): string; | ||
export {}; |
@@ -73,6 +73,3 @@ "use strict"; | ||
} | ||
return this.doApiRequest(options, cancellationToken, it => { | ||
; | ||
it.end(encodedData); | ||
}); | ||
return this.doApiRequest(options, cancellationToken, it => it.end(encodedData)); | ||
} | ||
@@ -79,0 +76,0 @@ doApiRequest(options, cancellationToken, requestProcessor, redirectCount = 0) { |
export { CancellationToken, CancellationError } from "./CancellationToken"; | ||
export { HttpError, createHttpError, HttpExecutor, DownloadOptions, DigestTransform, RequestHeaders, safeGetHeader, configureRequestOptions, configureRequestOptionsFromUrl, safeStringifyJson, parseJson, configureRequestUrl, } from "./httpExecutor"; | ||
export { BintrayOptions, CustomPublishOptions, GenericServerOptions, GithubOptions, KeygenOptions, SnapStoreOptions, PublishConfiguration, S3Options, SpacesOptions, BaseS3Options, getS3LikeProviderBaseUrl, githubUrl, PublishProvider, AllPublishOptions, } from "./publishOptions"; | ||
export { BintrayOptions, CustomPublishOptions, GenericServerOptions, GithubOptions, KeygenOptions, BitbucketOptions, SnapStoreOptions, PublishConfiguration, S3Options, SpacesOptions, BaseS3Options, getS3LikeProviderBaseUrl, githubUrl, PublishProvider, AllPublishOptions, } from "./publishOptions"; | ||
export { UpdateInfo, UpdateFileInfo, WindowsUpdateInfo, BlockMapDataHolder, PackageFileInfo, ReleaseNoteInfo } from "./updateInfo"; | ||
@@ -5,0 +5,0 @@ export { parseDn } from "./rfc2253Parser"; |
/// <reference types="node" /> | ||
import { OutgoingHttpHeaders } from "http"; | ||
export declare type PublishProvider = "github" | "bintray" | "s3" | "spaces" | "generic" | "custom" | "snapStore" | "keygen"; | ||
export declare type AllPublishOptions = string | GithubOptions | S3Options | SpacesOptions | GenericServerOptions | BintrayOptions | CustomPublishOptions | KeygenOptions | SnapStoreOptions; | ||
export declare type PublishProvider = "github" | "bintray" | "s3" | "spaces" | "generic" | "custom" | "snapStore" | "keygen" | "bitbucket"; | ||
export declare type AllPublishOptions = string | GithubOptions | S3Options | SpacesOptions | GenericServerOptions | BintrayOptions | CustomPublishOptions | KeygenOptions | SnapStoreOptions | BitbucketOptions; | ||
export interface PublishConfiguration { | ||
@@ -150,2 +150,34 @@ /** | ||
/** | ||
* Bitbucket options. | ||
* https://bitbucket.org/ | ||
* Define `BITBUCKET_TOKEN` environment variable. | ||
* | ||
* For converting an app password to a usable token, you can utilize this | ||
```typescript | ||
convertAppPassword(owner: string, token: string) { | ||
const base64encodedData = Buffer.from(`${owner}:${token.trim()}`).toString("base64") | ||
return `Basic ${base64encodedData}` | ||
} | ||
``` | ||
*/ | ||
export interface BitbucketOptions extends PublishConfiguration { | ||
/** | ||
* The provider. Must be `bitbucket`. | ||
*/ | ||
readonly provider: "bitbucket"; | ||
/** | ||
* Repository owner | ||
*/ | ||
readonly owner: string; | ||
/** | ||
* Repository slug/name | ||
*/ | ||
readonly slug: string; | ||
/** | ||
* The channel. | ||
* @default latest | ||
*/ | ||
readonly channel?: string | null; | ||
} | ||
/** | ||
* [Snap Store](https://snapcraft.io/) options. | ||
@@ -186,2 +218,21 @@ */ | ||
} | ||
/** | ||
* [Amazon S3](https://aws.amazon.com/s3/) options. | ||
* 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_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` [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). | ||
* | ||
* Example configuration: | ||
* | ||
```json | ||
{ | ||
"build": | ||
"publish": { | ||
"provider": "s3", | ||
"bucket": "bucket-name" | ||
} | ||
} | ||
} | ||
``` | ||
*/ | ||
export interface S3Options extends BaseS3Options { | ||
@@ -188,0 +239,0 @@ /** |
{ | ||
"name": "builder-util-runtime", | ||
"version": "8.8.1", | ||
"version": "8.9.0", | ||
"main": "out/index.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
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
160790
1772