@electron-forge/plugin-base 7.10.0 → 7.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/dist/Plugin.d.ts +0 -27
- package/dist/Plugin.d.ts.map +0 -1
- package/dist/Plugin.js +0 -50
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@electron-forge/plugin-base",
|
|
3
|
-
"version": "7.10.
|
|
3
|
+
"version": "7.10.1",
|
|
4
4
|
"description": "Base plugin for Electron Forge",
|
|
5
5
|
"repository": "https://github.com/electron/forge",
|
|
6
6
|
"author": "Samuel Attard",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"node": ">= 16.4.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@electron-forge/shared-types": "7.10.
|
|
14
|
+
"@electron-forge/shared-types": "7.10.1"
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public"
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"dist",
|
|
21
21
|
"src"
|
|
22
22
|
],
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "a9c9eb7b8476e9c4bbcc4ef80f0ac16166effe94"
|
|
24
24
|
}
|
package/dist/Plugin.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ForgeHookFn, ForgeListrTask, ForgeMultiHookMap, IForgePlugin, ResolvedForgeConfig, StartOptions, StartResult } from '@electron-forge/shared-types';
|
|
2
|
-
export { StartOptions };
|
|
3
|
-
export default abstract class Plugin<C> implements IForgePlugin {
|
|
4
|
-
config: C;
|
|
5
|
-
abstract name: string;
|
|
6
|
-
/** @internal */
|
|
7
|
-
__isElectronForgePlugin: true;
|
|
8
|
-
/** @internal */
|
|
9
|
-
_resolvedHooks: ForgeMultiHookMap;
|
|
10
|
-
constructor(config: C);
|
|
11
|
-
init(_dir: string, _config: ResolvedForgeConfig): void;
|
|
12
|
-
getHooks(): ForgeMultiHookMap;
|
|
13
|
-
startLogic(_startOpts: StartOptions): Promise<StartResult>;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* This is a filthy hack around TypeScript to allow internal hooks in our
|
|
18
|
-
* internal plugins to have some level of access to the "Task" that Listr2 runs.
|
|
19
|
-
* Specifically the ability to set a custom task name and receive the task
|
|
20
|
-
*
|
|
21
|
-
* This method is not type-safe internally, but is type-safe for consumers.
|
|
22
|
-
*
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
25
|
-
export declare const namedHookWithTaskFn: <Hook extends keyof import("@electron-forge/shared-types").ForgeSimpleHookSignatures | keyof import("@electron-forge/shared-types").ForgeMutatingHookSignatures>(hookFn: <Ctx = never>(task: ForgeListrTask<Ctx> | null, ...args: Parameters<ForgeHookFn<Hook>>) => ReturnType<ForgeHookFn<Hook>>, name: string) => ForgeHookFn<Hook>;
|
|
26
|
-
export { Plugin as PluginBase };
|
|
27
|
-
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/Plugin.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAEX,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAAC,CAAC,CAAE,YAAW,YAAY;IAQ1C,MAAM,EAAE,CAAC;IAP5B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAE7B,gBAAgB;IAChB,uBAAuB,EAAG,IAAI,CAAC;IAC/B,gBAAgB;IAChB,cAAc,EAAE,iBAAiB,CAAM;gBAEpB,MAAM,EAAE,CAAC;IAQ5B,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,IAAI;IAOtD,QAAQ,IAAI,iBAAiB;IAIvB,UAAU,CAAC,UAAU,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;CAGjE;AAGD;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,oOAGnB,WAAW,YAAY,IAAI,CAAC,CAAC,KACnC,WAAW,YAAY,IAAI,CAAC,CAAC,QAC5B,MAAM,KACX,YAAY,IAAI,CAUlB,CAAC;AAGF,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,CAAC"}
|
package/dist/Plugin.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PluginBase = exports.namedHookWithTaskFn = void 0;
|
|
4
|
-
class Plugin {
|
|
5
|
-
constructor(config) {
|
|
6
|
-
this.config = config;
|
|
7
|
-
/** @internal */
|
|
8
|
-
this._resolvedHooks = {};
|
|
9
|
-
Object.defineProperty(this, '__isElectronForgePlugin', {
|
|
10
|
-
value: true,
|
|
11
|
-
enumerable: false,
|
|
12
|
-
configurable: false,
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
init(_dir, _config) {
|
|
16
|
-
// This logic ensures that we only call getHooks once regardless of how many
|
|
17
|
-
// times we trip hook logic in the PluginInterface.
|
|
18
|
-
this._resolvedHooks = this.getHooks();
|
|
19
|
-
this.getHooks = () => this._resolvedHooks;
|
|
20
|
-
}
|
|
21
|
-
getHooks() {
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
async startLogic(_startOpts) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.default = Plugin;
|
|
29
|
-
exports.PluginBase = Plugin;
|
|
30
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* This is a filthy hack around TypeScript to allow internal hooks in our
|
|
34
|
-
* internal plugins to have some level of access to the "Task" that Listr2 runs.
|
|
35
|
-
* Specifically the ability to set a custom task name and receive the task
|
|
36
|
-
*
|
|
37
|
-
* This method is not type-safe internally, but is type-safe for consumers.
|
|
38
|
-
*
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
const namedHookWithTaskFn = (hookFn, name) => {
|
|
42
|
-
function namedHookWithTaskInner(...args) {
|
|
43
|
-
return hookFn(this, ...args);
|
|
44
|
-
}
|
|
45
|
-
const fn = namedHookWithTaskInner;
|
|
46
|
-
fn.__hookName = name;
|
|
47
|
-
return fn;
|
|
48
|
-
};
|
|
49
|
-
exports.namedHookWithTaskFn = namedHookWithTaskFn;
|
|
50
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGx1Z2luLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL1BsdWdpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFhQSxNQUE4QixNQUFNO0lBUWxDLFlBQW1CLE1BQVM7UUFBVCxXQUFNLEdBQU4sTUFBTSxDQUFHO1FBSDVCLGdCQUFnQjtRQUNoQixtQkFBYyxHQUFzQixFQUFFLENBQUM7UUFHckMsTUFBTSxDQUFDLGNBQWMsQ0FBQyxJQUFJLEVBQUUseUJBQXlCLEVBQUU7WUFDckQsS0FBSyxFQUFFLElBQUk7WUFDWCxVQUFVLEVBQUUsS0FBSztZQUNqQixZQUFZLEVBQUUsS0FBSztTQUNwQixDQUFDLENBQUM7SUFDTCxDQUFDO0lBRUQsSUFBSSxDQUFDLElBQVksRUFBRSxPQUE0QjtRQUM3Qyw0RUFBNEU7UUFDNUUsbURBQW1EO1FBQ25ELElBQUksQ0FBQyxjQUFjLEdBQUcsSUFBSSxDQUFDLFFBQVEsRUFBRSxDQUFDO1F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