From 91ac38c7a496a895ddc7606919055f92d13b7ca3 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Fri, 30 Jul 2021 20:49:31 +0200 Subject: [PATCH] Update quickstart plugin skeleton --- .github/quickstart/plugin/index.mjs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/quickstart/plugin/index.mjs b/.github/quickstart/plugin/index.mjs index a8d78e65..defb82a8 100644 --- a/.github/quickstart/plugin/index.mjs +++ b/.github/quickstart/plugin/index.mjs @@ -1,15 +1,15 @@ //Setup - export default async function({login, q, imports, data, computed, rest, graphql, queries, account}, {enabled = false} = {}) { - //Plugin execution - try { - //Check if plugin is enabled and requirements are met - if ((!enabled)||(!q.<%= name %>)) - return null - //Results - return {} - } - //Handle errors - catch (error) { - throw {error:{message:"An error occured", instance:error}} - } - } \ No newline at end of file +export default async function({login, q, imports, data, computed, rest, graphql, queries, account}, {enabled = false} = {}) { + //Plugin execution + try { + //Check if plugin is enabled and requirements are met + if ((!enabled)||(!q.<%= name %>)) + return null + //Results + return {} + } + //Handle errors + catch (error) { + throw {error:{message:"An error occured", instance:error}} + } +} \ No newline at end of file