@leafer/plugin
Advanced tools
+3
-3
| { | ||
| "name": "@leafer/plugin", | ||
| "version": "1.0.0-beta.6", | ||
| "version": "1.0.0-beta.7", | ||
| "description": "@leafer/plugin", | ||
@@ -22,7 +22,7 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/debug": "1.0.0-beta.6" | ||
| "@leafer/debug": "1.0.0-beta.7" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-beta.6" | ||
| "@leafer/interface": "1.0.0-beta.7" | ||
| } | ||
| } |
+3
-3
@@ -12,5 +12,5 @@ import { IPlugin, IObject } from '@leafer/interface' | ||
| export function usePlugin(plugin: IPlugin, power?: IObject) { | ||
| export function usePlugin(plugin: IPlugin, config?: IObject) { | ||
| if (!power) power = PluginManager.power | ||
| const { power } = PluginManager | ||
| PluginManager.list.push(plugin) | ||
@@ -33,3 +33,3 @@ | ||
| try { | ||
| plugin.run(realParams) | ||
| plugin.run(realParams, config) | ||
| } catch (e) { | ||
@@ -36,0 +36,0 @@ debug.error(e) |
2495
0.04%+ Added
+ Added
- Removed
- Removed
Updated