Skip to content

Commit

Permalink
Update quickstart plugin skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Jul 30, 2021
1 parent 2312985 commit 91ac38c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/quickstart/plugin/index.mjs
Original file line number Diff line number Diff line change
@@ -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}}
}
}
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}}
}
}

0 comments on commit 91ac38c

Please sign in to comment.