@electron-forge/publisher-base
Advanced tools
Comparing version 6.0.0-beta.5 to 6.0.0-beta.6
@@ -1,2 +0,2 @@ | ||
import { ForgePlatform, ForgeConfig, ForgeMakeResult } from "@electron-forge/shared-types"; | ||
import { ForgePlatform, ForgeConfig, ForgeMakeResult } from '@electron-forge/shared-types'; | ||
export interface PublisherOptions { | ||
@@ -20,7 +20,7 @@ /** | ||
config: C; | ||
protected _platforms: ForgePlatform[] | undefined; | ||
protected providedPlatforms: ForgePlatform[] | undefined; | ||
abstract name: string; | ||
defaultPlatforms?: ForgePlatform[]; | ||
__isElectronForgePublisher: true; | ||
constructor(config: C, _platforms?: ForgePlatform[] | undefined); | ||
constructor(config: C, providedPlatforms?: ForgePlatform[] | undefined); | ||
readonly platforms: string[]; | ||
@@ -27,0 +27,0 @@ /** |
@@ -8,9 +8,13 @@ "use strict"; | ||
require("source-map-support/register"); | ||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _next(value) { step("next", value); } function _throw(err) { step("throw", err); } _next(); }); }; } | ||
/* eslint-disable no-unused-vars */ | ||
class Publisher { | ||
constructor(config, _platforms) { | ||
/* tslint:disable variable-name */ | ||
/* tslint:enable variable-name */ | ||
constructor(config, providedPlatforms) { | ||
this.config = config; | ||
this._platforms = _platforms; | ||
this.providedPlatforms = providedPlatforms; | ||
Object.defineProperty(this, "name", { | ||
@@ -43,3 +47,3 @@ configurable: true, | ||
get platforms() { | ||
if (this._platforms) return this._platforms; | ||
if (this.providedPlatforms) return this.providedPlatforms; | ||
if (this.defaultPlatforms) return this.defaultPlatforms; | ||
@@ -72,2 +76,2 @@ return ['win32', 'linux', 'darwin', 'mas']; | ||
exports.default = Publisher; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozL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3QgaW1wbGVtZW50IHRoZSBwdWJsaXNoIG1ldGhvZGApO1xuICB9XG59XG4iXX0= |
{ | ||
"name": "@electron-forge/publisher-base", | ||
"version": "6.0.0-beta.5", | ||
"version": "6.0.0-beta.6", | ||
"description": "Base publisher for Electron Forge", | ||
@@ -14,3 +14,3 @@ "repository": "https://github.com/electron-userland/electron-forge", | ||
"devDependencies": { | ||
"@electron-forge/shared-types": "6.0.0-beta.5", | ||
"@electron-forge/shared-types": "6.0.0-beta.6", | ||
"chai": "^4.0.0", | ||
@@ -17,0 +17,0 @@ "mocha": "^5.0.0" |
@@ -1,2 +0,2 @@ | ||
import { ForgePlatform, ForgeConfig, ForgeArch, ForgeMakeResult } from "@electron-forge/shared-types"; | ||
import { ForgePlatform, ForgeConfig, ForgeArch, ForgeMakeResult } from '@electron-forge/shared-types'; | ||
@@ -25,5 +25,7 @@ /* eslint-disable no-unused-vars */ | ||
public defaultPlatforms?: ForgePlatform[]; | ||
/* tslint:disable variable-name */ | ||
__isElectronForgePublisher!: true; | ||
/* tslint:enable variable-name */ | ||
constructor(public config: C, protected _platforms?: ForgePlatform[]) { | ||
constructor(public config: C, protected providedPlatforms?: ForgePlatform[]) { | ||
this.config = config; | ||
@@ -38,3 +40,3 @@ Object.defineProperty(this, '__isElectronForgePublisher', { | ||
get platforms() { | ||
if (this._platforms) return this._platforms; | ||
if (this.providedPlatforms) return this.providedPlatforms; | ||
if (this.defaultPlatforms) return this.defaultPlatforms; | ||
@@ -41,0 +43,0 @@ return ['win32', 'linux', 'darwin', 'mas']; |
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
357898
19
1420