@leafer/plugin
Advanced tools
+3
-3
| { | ||
| "name": "@leafer/plugin", | ||
| "version": "1.0.0-beta.7", | ||
| "version": "1.0.0-beta.8", | ||
| "description": "@leafer/plugin", | ||
@@ -22,7 +22,7 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/debug": "1.0.0-beta.7" | ||
| "@leafer/debug": "1.0.0-beta.8" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-beta.7" | ||
| "@leafer/interface": "1.0.0-beta.8" | ||
| } | ||
| } |
+7
-2
@@ -1,2 +0,2 @@ | ||
| import { IPlugin, IObject } from '@leafer/interface' | ||
| import { IPlugin, IObject, ILeafer } from '@leafer/interface' | ||
| import { Debug } from '@leafer/debug' | ||
@@ -9,3 +9,8 @@ | ||
| power: {} as IObject, | ||
| list: [] as IPlugin[] | ||
| list: [] as IPlugin[], | ||
| onLeafer(leafer: ILeafer): void { | ||
| PluginManager.list.forEach(plugin => { | ||
| if (plugin.onLeafer) plugin.onLeafer(leafer) | ||
| }) | ||
| } | ||
| } | ||
@@ -12,0 +17,0 @@ |
2664
6.77%32
18.52%+ Added
+ Added
- Removed
- Removed
Updated