@leafer/plugin
Advanced tools
+3
-3
| { | ||
| "name": "@leafer/plugin", | ||
| "version": "1.0.0-rc.6", | ||
| "version": "1.0.0-rc.7", | ||
| "description": "@leafer/plugin", | ||
@@ -25,7 +25,7 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/debug": "1.0.0-rc.6" | ||
| "@leafer/debug": "1.0.0-rc.7" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-rc.6" | ||
| "@leafer/interface": "1.0.0-rc.7" | ||
| } | ||
| } |
+2
-2
@@ -1,2 +0,2 @@ | ||
| import { IPlugin, IObject, ILeafer } from '@leafer/interface' | ||
| import { IPlugin, IObject, ILeaferBase } from '@leafer/interface' | ||
| import { Debug } from '@leafer/debug' | ||
@@ -10,3 +10,3 @@ | ||
| list: [] as IPlugin[], | ||
| onLeafer(leafer: ILeafer): void { | ||
| onLeafer(leafer: ILeaferBase): void { | ||
| PluginManager.list.forEach(plugin => { | ||
@@ -13,0 +13,0 @@ if (plugin.onLeafer) plugin.onLeafer(leafer) |
+2
-2
@@ -1,2 +0,2 @@ | ||
| import { IObject, IPlugin, ILeafer } from '@leafer/interface'; | ||
| import { IObject, IPlugin, ILeaferBase } from '@leafer/interface'; | ||
@@ -6,3 +6,3 @@ declare const PluginManager: { | ||
| list: IPlugin[]; | ||
| onLeafer(leafer: ILeafer): void; | ||
| onLeafer(leafer: ILeaferBase): void; | ||
| }; | ||
@@ -9,0 +9,0 @@ declare function usePlugin(plugin: IPlugin, config?: IObject): void; |
3178
0.51%+ Added
+ Added
- Removed
- Removed
Updated