node-pluginsmanager-plugin 0.1.0 → 0.1.3
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/lib/index.d.ts +6 -4
- package/lib/main.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
declare module "node-pluginsmanager-plugin" {
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import Events from "events";
|
|
6
|
+
|
|
7
|
+
class Plugin extends Events {
|
|
6
8
|
|
|
7
9
|
// params
|
|
8
10
|
public directory: string;
|
|
@@ -16,7 +18,7 @@ declare module "node-pluginsmanager-plugin" {
|
|
|
16
18
|
public license: string;
|
|
17
19
|
public main: string;
|
|
18
20
|
public scripts: string;
|
|
19
|
-
public name:
|
|
21
|
+
public name: string;
|
|
20
22
|
public version: string;
|
|
21
23
|
|
|
22
24
|
// specifics
|
|
@@ -28,12 +30,12 @@ declare module "node-pluginsmanager-plugin" {
|
|
|
28
30
|
|
|
29
31
|
// read
|
|
30
32
|
|
|
31
|
-
public loadDataFromPackageFile(): Promise<
|
|
33
|
+
public loadDataFromPackageFile(): Promise<void>;
|
|
32
34
|
|
|
33
35
|
// load
|
|
34
36
|
|
|
35
37
|
public load(): Promise<void>;
|
|
36
|
-
public unload(): Promise<void>;
|
|
38
|
+
public unload(destroy?: boolean = false): Promise<void>;
|
|
37
39
|
|
|
38
40
|
// write
|
|
39
41
|
|
package/lib/main.js
CHANGED