From 96843e989ad2be2a048fed8014c3c014eecd1baa Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Fri, 12 Apr 2019 12:49:00 +0200 Subject: [PATCH] Update other Node.js-based templates --- lib/plugins/create/templates/aws-nodejs-ecma-script/second.js | 2 +- lib/plugins/create/templates/aws-nodejs-typescript/handler.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/create/templates/aws-nodejs-ecma-script/second.js b/lib/plugins/create/templates/aws-nodejs-ecma-script/second.js index 8da564f9e..a932eac05 100644 --- a/lib/plugins/create/templates/aws-nodejs-ecma-script/second.js +++ b/lib/plugins/create/templates/aws-nodejs-ecma-script/second.js @@ -8,7 +8,7 @@ export const hello = (event, context, cb) => { body: JSON.stringify({ message: 'Go Serverless Webpack (Ecma Script) v1.0! Second module!', input: event, - }), + }, null, 2), }; p .then(() => cb(null, response)) diff --git a/lib/plugins/create/templates/aws-nodejs-typescript/handler.ts b/lib/plugins/create/templates/aws-nodejs-typescript/handler.ts index db1831f55..499e9d175 100644 --- a/lib/plugins/create/templates/aws-nodejs-typescript/handler.ts +++ b/lib/plugins/create/templates/aws-nodejs-typescript/handler.ts @@ -7,6 +7,6 @@ export const hello: APIGatewayProxyHandler = async (event, _context) => { body: JSON.stringify({ message: 'Go Serverless Webpack (Typescript) v1.0! Your function executed successfully!', input: event, - }), + }, null, 2), }; }