Skip to content

Commit

Permalink
fix: check for req function onPluginInit in isCactusPlugin
Browse files Browse the repository at this point in the history
interface i-cactus-plugin in the function isICactusPlugin is not
checking for required onPluginInit

Closes: #1277
Signed-off-by: Michael Courtin <michael.courtin@accenture.com>
  • Loading branch information
m-courtin authored and petermetz committed Aug 31, 2021
1 parent 4745df0 commit f5ffb92
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export function isICactusPlugin(x: unknown): x is ICactusPlugin {
return (
!!x &&
typeof (x as ICactusPlugin).getPackageName === "function" &&
typeof (x as ICactusPlugin).getInstanceId === "function"
typeof (x as ICactusPlugin).getInstanceId === "function" &&
typeof (x as ICactusPlugin).onPluginInit === "function"
);
}

0 comments on commit f5ffb92

Please sign in to comment.