builder-util-runtime
Advanced tools
Comparing version 8.3.0 to 8.4.0
@@ -129,3 +129,3 @@ "use strict"; | ||
constructor() { | ||
super("Cancelled"); | ||
super("cancelled"); | ||
} | ||
@@ -132,0 +132,0 @@ |
@@ -95,2 +95,3 @@ "use strict"; | ||
this.name = "HttpError"; | ||
this.code = `HTTP_ERROR_${statusCode}`; | ||
} | ||
@@ -238,4 +239,4 @@ | ||
if (size > 0) { | ||
if (size > 5242880) { | ||
callback(new Error("Maximum allowed size is 5 MB")); | ||
if (size > 52428800) { | ||
callback(new Error("Maximum allowed size is 50 MB")); | ||
return; | ||
@@ -256,4 +257,4 @@ } | ||
} else { | ||
if (result.length > 5242880) { | ||
callback(new Error("Maximum allowed size is 5 MB")); | ||
if (result.length > 52428800) { | ||
callback(new Error("Maximum allowed size is 50 MB")); | ||
return; | ||
@@ -260,0 +261,0 @@ } |
export { CancellationToken, CancellationError } from "./CancellationToken"; | ||
export { HttpError, createHttpError, HttpExecutor, DownloadOptions, DigestTransform, RequestHeaders, safeGetHeader, configureRequestOptions, configureRequestOptionsFromUrl, safeStringifyJson, parseJson, configureRequestUrl } from "./httpExecutor"; | ||
export { BintrayOptions, GenericServerOptions, GithubOptions, PublishConfiguration, S3Options, SpacesOptions, BaseS3Options, getS3LikeProviderBaseUrl, Publish, githubUrl, PublishProvider, AllPublishOptions } from "./publishOptions"; | ||
export { BintrayOptions, GenericServerOptions, GithubOptions, 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"; |
@@ -32,3 +32,3 @@ "use strict"; | ||
if (this.cancellationToken.cancelled) { | ||
callback(new Error("Cancelled"), null); | ||
callback(new Error("cancelled"), null); | ||
return; | ||
@@ -60,3 +60,3 @@ } | ||
if (this.cancellationToken.cancelled) { | ||
callback(new Error("Cancelled")); | ||
callback(new Error("cancelled")); | ||
return; | ||
@@ -63,0 +63,0 @@ } |
@@ -1,4 +0,5 @@ | ||
export declare type PublishProvider = "github" | "bintray" | "s3" | "spaces" | "generic" | "custom"; | ||
/// <reference types="node" /> | ||
import { OutgoingHttpHeaders } from "http"; | ||
export declare type PublishProvider = "github" | "bintray" | "s3" | "spaces" | "generic" | "custom" | "snapStore"; | ||
export declare type AllPublishOptions = string | GithubOptions | S3Options | SpacesOptions | GenericServerOptions | BintrayOptions | CustomPublishOptions; | ||
export declare type Publish = AllPublishOptions | Array<AllPublishOptions> | null; | ||
export interface PublishConfiguration { | ||
@@ -28,2 +29,6 @@ /** | ||
readonly publishAutoUpdate?: boolean; | ||
/** | ||
* Any custom request headers | ||
*/ | ||
readonly requestHeaders?: OutgoingHttpHeaders; | ||
} | ||
@@ -30,0 +35,0 @@ export interface CustomPublishOptions extends PublishConfiguration { |
@@ -29,4 +29,6 @@ "use strict"; | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
class XElement { | ||
@@ -33,0 +35,0 @@ constructor(name) { |
{ | ||
"name": "builder-util-runtime", | ||
"version": "8.3.0", | ||
"version": "8.4.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
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
140540
1763
96
1
1
1
7