From d6d16d72a5ce7d1f71d5dc459b40be68fa74f295 Mon Sep 17 00:00:00 2001 From: manushak Date: Fri, 2 Aug 2024 20:45:57 +0400 Subject: [PATCH] fix(lib): spread object params to be arguments of the plugin --- src/if-run/lib/initialize.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/if-run/lib/initialize.ts b/src/if-run/lib/initialize.ts index 956bb30d6..5cae80310 100644 --- a/src/if-run/lib/initialize.ts +++ b/src/if-run/lib/initialize.ts @@ -9,11 +9,7 @@ import {pluginStorage} from '../util/plugin-storage'; import {CONFIG, STRINGS} from '../config'; import {PluginInterface} from '../types/interface'; -import { - GlobalPlugins, - PluginOptions, - PluginSettings, -} from '../../common/types/manifest'; +import {GlobalPlugins, PluginOptions} from '../../common/types/manifest'; import {PluginStorageInterface} from '../types/plugin-storage'; const { @@ -103,12 +99,7 @@ const initPlugin = async ( const plugin = await handModule(method, path); - const pluginOptions: PluginSettings = { - 'global-config': globalConfig, - 'parameter-metadata': parameterMetadata, - mapping, - }; - return plugin(pluginOptions); + return plugin(globalConfig, parameterMetadata, mapping); }; /**