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 CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  declare module "node-pluginsmanager-plugin" {
4
4
 
5
- class Plugin {
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: object;
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<Plugin>;
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
@@ -155,7 +155,7 @@ module.exports = class Plugin extends require("events") {
155
155
 
156
156
  }
157
157
 
158
- return Promise.resolve(this);
158
+ return Promise.resolve();
159
159
 
160
160
  });
161
161
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-pluginsmanager-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "An abstract parent plugin for node-pluginsmanager",
5
5
  "main": "lib/main.js",
6
6
  "typings": "lib/index.d.ts",