@electron-forge/plugin-base
Advanced tools
Comparing version 6.0.3 to 6.0.4
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "StartOptions", { | ||
enumerable: true, | ||
get: function() { | ||
return _sharedTypes.StartOptions; | ||
} | ||
}); | ||
exports.namedHookWithTaskFn = exports.PluginBase = exports.default = void 0; | ||
var _sharedTypes = require("@electron-forge/shared-types"); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PluginBase = exports.namedHookWithTaskFn = void 0; | ||
class Plugin { | ||
constructor(config){ | ||
constructor(config) { | ||
this.config = config; | ||
/** @internal */ this._resolvedHooks = {}; | ||
/** @internal */ | ||
this._resolvedHooks = {}; | ||
Object.defineProperty(this, '__isElectronForgePlugin', { | ||
value: true, | ||
enumerable: false, | ||
configurable: false | ||
configurable: false, | ||
}); | ||
@@ -27,4 +19,3 @@ } | ||
this._resolvedHooks = this.getHooks(); | ||
this.getHooks = ()=>this._resolvedHooks | ||
; | ||
this.getHooks = () => this._resolvedHooks; | ||
} | ||
@@ -40,3 +31,11 @@ getHooks() { | ||
exports.PluginBase = Plugin; | ||
const namedHookWithTaskFn = (hookFn, name)=>{ | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
// This is a filthy hack around typescript to allow internal hooks in our | ||
// internal plugins to have some level of access to the "Task" that listr runs. | ||
// Specifically the ability to set a custom task name and receive the task | ||
// instance as a parameter | ||
// | ||
// This method is not type safe internally, but is type safe for consumers | ||
// @internal | ||
const namedHookWithTaskFn = (hookFn, name) => { | ||
function namedHookWithTaskInner(...args) { | ||
@@ -50,3 +49,2 @@ return hookFn(this, ...args); | ||
exports.namedHookWithTaskFn = namedHookWithTaskFn; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9QbHVnaW4udHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgRm9yZ2VIb29rR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0U7QUFDL0UsMEVBQTBFO0FBQzFFLDBCQUEwQjtBQUMxQixFQUFFO0FBQ0YsMEVBQTBFO0FBQzFFLFlBQVk7QUFDTCxNQUFNLG1CQUFtQixHQUFHLENBQ2pDLE1BQXFILEVBQ3JILElBQVksRUFDTyxFQUFFO0lBQ3JCLFNBQVMsc0JBQXNCLENBQW1DLEdBQUcsSUFBVztRQUM5RSxPQUFRLE1BQWMsQ0FBQyxJQUFJLEVBQUUsR0FBRyxJQUFJLENBQUMsQ0FBQztJQUN4QyxDQUFDO0lBQ0QsTUFBTSxFQUFFLEdBQUcsc0JBQTZCLENBQUM7SUFDekMsRUFBRSxDQUFDLFVBQVUsR0FBRyxJQUFJLENBQUM7SUFDckIsT0FBTyxFQUFFLENBQUM7QUFDWixDQUFDLENBQUM7QUFWVyxRQUFBLG1CQUFtQix1QkFVOUIifQ== |
{ | ||
"name": "@electron-forge/plugin-base", | ||
"version": "6.0.3", | ||
"version": "6.0.4", | ||
"description": "Base plugin for Electron Forge", | ||
@@ -18,3 +18,3 @@ "repository": "https://github.com/electron/forge", | ||
"dependencies": { | ||
"@electron-forge/shared-types": "^6.0.3" | ||
"@electron-forge/shared-types": "^6.0.4" | ||
}, | ||
@@ -24,3 +24,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "5f6ec685539a8fe93cbf025fb6bf6510323de0de" | ||
"gitHead": "7c936956968ecbe55eece3bb897989e6aa58dbde" | ||
} |
{ | ||
"//": "⚠️ AUTOGENERATED ⚠️ This file was automatically generated by tools/gen-tsconfigs.ts, do not edit manually.", | ||
"compilerOptions": { | ||
@@ -11,3 +10,3 @@ "module": "commonjs", | ||
], | ||
"sourceMap": true, | ||
"inlineSourceMap": true, | ||
"rootDir": "src", | ||
@@ -14,0 +13,0 @@ "experimentalDecorators": true, |
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
90812
160