node-pluginsmanager-plugin 0.1.1 → 0.1.4

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +4 -2
  2. 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
- class Plugin {
5
+ import Events from "events";
6
+
7
+ class Plugin extends Events {
6
8
 
7
9
  // params
8
10
  public directory: string;
@@ -33,7 +35,7 @@ declare module "node-pluginsmanager-plugin" {
33
35
  // load
34
36
 
35
37
  public load(): Promise<void>;
36
- public unload(): Promise<void>;
38
+ public unload(destroy?: boolean): Promise<void>;
37
39
 
38
40
  // write
39
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-pluginsmanager-plugin",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "description": "An abstract parent plugin for node-pluginsmanager",
5
5
  "main": "lib/main.js",
6
6
  "typings": "lib/index.d.ts",