webext-buildtools-chrome-webstore-builder
Advanced tools
Comparing version 1.0.6 to 1.0.7
import { PublishStatus, PublishTarget } from 'typed-chrome-webstore-api'; | ||
import { DownloadCrx } from 'typed-chrome-webstore-api'; | ||
// noinspection TypeScriptPreferShortImport | ||
import { IWaitForWebstoreOptions } from '../declarations/waitForWebstoreOptions'; | ||
import { IWaitForWebstoreOptions } from './waitForWebstoreOptions'; | ||
@@ -49,3 +49,3 @@ export interface IChromeWebstoreApiAccessOptions { | ||
*/ | ||
allowedStatuses?: Array<PublishStatus | string>; | ||
allowedStatuses?: (PublishStatus | string)[]; | ||
@@ -83,3 +83,3 @@ /** | ||
*/ | ||
acceptFormat?: Array<DownloadCrx.CrxAcceptFormat | string>; | ||
acceptFormat?: (DownloadCrx.CrxAcceptFormat | string)[]; | ||
@@ -86,0 +86,0 @@ /** |
@@ -57,2 +57,3 @@ "use strict"; | ||
requirePublishedCrxFile(temporary = false) { | ||
// noinspection PointlessBooleanExpressionJS | ||
this._publishedCrxFileRequirement = !!temporary; | ||
@@ -76,3 +77,9 @@ return this; | ||
if ((this._uploadedExtRequired || this._publishedExtRequired) && this._options.apiAccess) { | ||
const apiFacade = await chromeWebstoreApiFacade_1.ChromeWebstoreApiFacade.authorize(this._options.apiAccess.clientId, this._options.apiAccess.clientSecret, this._options.apiAccess.refreshToken, this._options.extensionId); | ||
let apiFacade; | ||
try { | ||
apiFacade = await chromeWebstoreApiFacade_1.ChromeWebstoreApiFacade.authorize(this._options.apiAccess.clientId, this._options.apiAccess.clientSecret, this._options.apiAccess.refreshToken, this._options.extensionId); | ||
} | ||
catch (error) { | ||
throw new Error(error.message + ': ' + JSON.stringify(error.response.data)); | ||
} | ||
apiFacade.setLogMethod(this._logWrapper.logMethod); | ||
@@ -79,0 +86,0 @@ if (this._uploadedExtRequired) { |
{ | ||
"name": "webext-buildtools-chrome-webstore-builder", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "webext-buildtools builder for deploying to Chrome Webstore. Based on chrome-webstore-upload", | ||
@@ -33,3 +33,3 @@ "main": "dist", | ||
"semver": "^5.6.0", | ||
"typed-chrome-webstore-api": "^0.3.4", | ||
"typed-chrome-webstore-api": "^0.3.6", | ||
"webext-buildtools-utils": "^1.0.5" | ||
@@ -36,0 +36,0 @@ }, |
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
36228
640