builder-util-runtime
Advanced tools
Comparing version 2.5.0 to 3.0.0
export { CancellationToken, CancellationError } from "./CancellationToken"; | ||
export { HttpError, HttpExecutor, DownloadOptions, DigestTransform, RequestHeaders, safeGetHeader, configureRequestOptions, configureRequestOptionsFromUrl, safeStringifyJson, parseJson } from "./httpExecutor"; | ||
export { BintrayOptions, GenericServerOptions, GithubOptions, PublishConfiguration, S3Options, SpacesOptions, BaseS3Options, getS3LikeProviderBaseUrl, Publish, githubUrl, PublishProvider, AllPublishOptions } from "./publishOptions"; | ||
export { UpdateInfo, WindowsUpdateInfo, AppImageUpdateInfo, BlockMapDataHolder, PackageFileInfo, ReleaseNoteInfo } from "./updateInfo"; | ||
export { UpdateInfo, UpdateFileInfo, WindowsUpdateInfo, BlockMapDataHolder, PackageFileInfo, ReleaseNoteInfo } from "./updateInfo"; | ||
export { parseDn } from "./rfc2253Parser"; | ||
@@ -6,0 +6,0 @@ export { UUID } from "./uuid"; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
export interface ReleaseNoteInfo { | ||
@@ -12,11 +13,33 @@ /** | ||
export interface BlockMapDataHolder { | ||
size: number; | ||
blockMapSize: number; | ||
/** | ||
* The file size. Used when block map data is embedded into the file (appimage, windows web installer package). | ||
*/ | ||
size?: number; | ||
/** | ||
* The block map file size. Used when block map data is embedded into the file (appimage, windows web installer package). | ||
* This information can be obtained from the file itself, but it requires additional HTTP request, | ||
* so, to reduce request count, block map size is specified in the update metadata too. | ||
*/ | ||
blockMapSize?: number; | ||
/** | ||
* The file checksum. | ||
*/ | ||
readonly sha512: string; | ||
} | ||
export interface PackageFileInfo extends BlockMapDataHolder { | ||
readonly size: number; | ||
readonly path: string; | ||
/** | ||
* The header size. This number of bytes are downloaded as is and not included into the block map. | ||
*/ | ||
headerSize?: number; | ||
blockMapData?: string; | ||
/** | ||
* Used and not null only during build time. | ||
* We cannot pack blockMap file as part of package file because of chicken and egg problem — we build blockMap for package file (and we don't to complicate). | ||
*/ | ||
blockMapData?: Buffer; | ||
} | ||
export interface UpdateFileInfo extends BlockMapDataHolder { | ||
url: string; | ||
} | ||
export interface UpdateInfo { | ||
@@ -27,9 +50,7 @@ /** | ||
readonly version: string; | ||
/** | ||
* @deprecated | ||
*/ | ||
readonly files: Array<UpdateFileInfo>; | ||
/** @deprecated */ | ||
readonly path: string; | ||
readonly url: string | Array<string>; | ||
/** @deprecated */ | ||
readonly sha512: string; | ||
githubArtifactName?: string | null; | ||
/** | ||
@@ -46,3 +67,3 @@ * The release name. | ||
*/ | ||
readonly releaseDate: string; | ||
releaseDate: string; | ||
/** | ||
@@ -53,4 +74,2 @@ * The [staged rollout](auto-update.md#staged-rollouts) percentage, 0-100. | ||
} | ||
export interface AppImageUpdateInfo extends UpdateInfo, BlockMapDataHolder { | ||
} | ||
export interface WindowsUpdateInfo extends UpdateInfo { | ||
@@ -57,0 +76,0 @@ packages?: { |
{ | ||
"name": "builder-util-runtime", | ||
"version": "2.5.0", | ||
"version": "3.0.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
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
144556
1651