From 37ddef170f802fe85ab912ee6a42e9546f3f81c4 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Sun, 16 Apr 2023 14:13:17 -0500 Subject: [PATCH] chore: remove deprecated support for plugins --- src/core/operators.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/core/operators.ts b/src/core/operators.ts index 039e47b..5b355bd 100644 --- a/src/core/operators.ts +++ b/src/core/operators.ts @@ -8,8 +8,6 @@ import { concatMap, defaultIfEmpty, EMPTY, every, map, of, OperatorFunction, pip import type { AnyModule } from '../types/module'; import { nameOrFilename } from './utilities/functions'; import type { PluginResult, VoidResult } from '../types/plugin'; -import { guayin } from './plugins'; -import { controller } from '../../sern'; import { Result } from 'ts-results-es'; import { ImportPayload } from '../types/handler'; /** @@ -31,15 +29,10 @@ export function callPlugin(args: unknown): OperatorFunction< VoidResult > { return concatMap(async plugin => { - const isNewPlugin = Reflect.has(plugin, guayin); - if (isNewPlugin) { - if (Array.isArray(args)) { - return plugin.execute(...args); - } - return plugin.execute(args); - } else { - return plugin.execute(args, controller); + if (Array.isArray(args)) { + return plugin.execute(...args); } + return plugin.execute(args); }); }