webext-buildtools-chrome-webstore-builder
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -109,3 +109,3 @@ "use strict"; | ||
if (shouldUpload) { | ||
newExtensionResource = await upload_1.upload(this._inputZipBuffer, this._options.upload || {}, apiFacade, this._inputManifest); | ||
newExtensionResource = await upload_1.upload(this._inputZipBuffer, this._options.upload || {}, oldExtensionResource.crxVersion, apiFacade, this._inputManifest); | ||
} | ||
@@ -112,0 +112,0 @@ result.getAssets().uploadedExt = new buildResult_1.ChromeWebstoreUploadedExtAsset({ |
@@ -6,2 +6,2 @@ /// <reference types="node" /> | ||
import { WebstoreResource } from "typed-chrome-webstore-api"; | ||
export declare function upload(inputZipBuffer: Buffer, options: IChromeWebstoreUploadOptions, apiFacade: ChromeWebstoreApiFacade, inputManifest?: IManifestObject): Promise<WebstoreResource>; | ||
export declare function upload(inputZipBuffer: Buffer, options: IChromeWebstoreUploadOptions, currentWebstoreVersion: string | undefined, apiFacade: ChromeWebstoreApiFacade, inputManifest?: IManifestObject): Promise<WebstoreResource>; |
@@ -5,3 +5,3 @@ "use strict"; | ||
const errors_1 = require("../errors"); | ||
async function upload(inputZipBuffer, options, apiFacade, inputManifest) { | ||
async function upload(inputZipBuffer, options, currentWebstoreVersion, apiFacade, inputManifest) { | ||
let uploadResult; | ||
@@ -26,3 +26,3 @@ try { | ||
if (uploadResult.isFailedBecauseOfPendingReview()) { | ||
throw new errors_1.UploadInReviewError(uploadErrorMsg); | ||
throw new errors_1.UploadInReviewError(uploadErrorMsg, currentWebstoreVersion); | ||
} | ||
@@ -29,0 +29,0 @@ throw new Error(uploadErrorMsg); |
export declare class UploadInReviewError extends Error { | ||
private readonly _currentVersion; | ||
constructor(message: string, currentVersion: string | undefined); | ||
readonly currentVersion: string | undefined; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class UploadInReviewError extends Error { | ||
constructor(message, currentVersion) { | ||
super(message); | ||
this._currentVersion = currentVersion; | ||
} | ||
get currentVersion() { | ||
return this._currentVersion; | ||
} | ||
} | ||
exports.UploadInReviewError = UploadInReviewError; | ||
//# sourceMappingURL=uploadInReviewError.js.map |
{ | ||
"name": "webext-buildtools-chrome-webstore-builder", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "webext-buildtools builder for deploying to Chrome Webstore. Based on chrome-webstore-upload", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
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
43739
778