diff --git a/server/templates/js.zip b/server/templates/js.zip index fc9c670..afa9adc 100644 Binary files a/server/templates/js.zip and b/server/templates/js.zip differ diff --git a/server/templates/js/index.js b/server/templates/js/index.js index 350b08e..1cb3317 100755 --- a/server/templates/js/index.js +++ b/server/templates/js/index.js @@ -1,6 +1,6 @@ -function greet() { +function execute() { const name = Host.inputString() Host.outputString(`Hello, ${name}`) } -module.exports = { greet } \ No newline at end of file +module.exports = { execute } \ No newline at end of file diff --git a/server/templates/js/plugin.d.ts b/server/templates/js/plugin.d.ts index 20facbb..576cab0 100755 --- a/server/templates/js/plugin.d.ts +++ b/server/templates/js/plugin.d.ts @@ -5,5 +5,5 @@ DO NOT DELETE THIS FILE */ declare module 'main' { - export function greet(): I32; + export function execute(): I32; } \ No newline at end of file diff --git a/server/templates/ts.zip b/server/templates/ts.zip index e7c4f30..d99fc70 100644 Binary files a/server/templates/ts.zip and b/server/templates/ts.zip differ diff --git a/server/templates/ts/index.ts b/server/templates/ts/index.ts index 6d9619e..2c598c1 100755 --- a/server/templates/ts/index.ts +++ b/server/templates/ts/index.ts @@ -1,6 +1,6 @@ export declare var Host: any; -export function greet() { +export function execute() { let name = Host.inputString() as String; Host.outputString(`Hello, ${name}`); diff --git a/server/templates/ts/plugin.d.ts b/server/templates/ts/plugin.d.ts index c4d5555..45524cc 100755 --- a/server/templates/ts/plugin.d.ts +++ b/server/templates/ts/plugin.d.ts @@ -5,5 +5,5 @@ DO NOT DELETE THIS FILE */ declare module 'main' { - export function greet(): I32; + export function execute(): I32; } \ No newline at end of file