Skip to content

Commit 191e20f

Browse files
feat: Update aws-node-http-api-typescript to v3 and Node 14 (#679)
1 parent d6379cd commit 191e20f

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

aws-node-http-api-typescript/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!--
22
title: 'AWS Simple HTTP Endpoint example in NodeJS with Typescript'
3-
description: 'This template demonstrates how to make a simple HTTP API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v1.'
3+
description: 'This template demonstrates how to make a simple HTTP API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v3.'
44
layout: Doc
5-
framework: v1
5+
framework: v3
66
platform: AWS
77
language: nodeJS
88
authorLink: 'https://github.com/serverless'
@@ -12,7 +12,7 @@ authorAvatar: 'https://avatars1.githubusercontent.com/u/13742415?s=200&v=4'
1212

1313
# Serverless Framework Node with Typescript HTTP API on AWS
1414

15-
This template demonstrates how to make a simple HTTP API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v1.
15+
This template demonstrates how to make a simple HTTP API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v3.
1616

1717
This template does not include any kind of persistence (database). For more advanced examples, check out the [serverless/examples repository](https://github.com/serverless/examples) which includes Typescript, Mongo, DynamoDB and other examples.
1818

aws-node-http-api-typescript/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const hello: Handler = (event: any) => {
55
statusCode: 200,
66
body: JSON.stringify(
77
{
8-
message: 'Go Serverless v1.0! Your function executed successfully!',
8+
message: 'Go Serverless v3.0! Your function executed successfully!',
99
input: event,
1010
},
1111
null,

aws-node-http-api-typescript/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
"version": "0.1.0",
55
"dependencies": {},
66
"devDependencies": {
7-
"@types/aws-lambda": "^8.10.61",
8-
"serverless": "^1.78.1",
9-
"serverless-offline": "^6.5.0",
10-
"serverless-plugin-typescript": "^1.1.9",
11-
"typescript": "^3.9.7"
7+
"@types/aws-lambda": "^8.10.92",
8+
"serverless": "^3.1.1",
9+
"serverless-plugin-typescript": "^2.1.1",
10+
"typescript": "^4.5.5"
1211
}
1312
}

aws-node-http-api-typescript/serverless.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
service: serverless-http-api-typescript
2-
frameworkVersion: '2'
2+
frameworkVersion: '3'
33

44
provider:
55
name: aws
6-
runtime: nodejs12.x
7-
lambdaHashingVersion: '20201221'
6+
runtime: nodejs14.x
87

98
functions:
109
hello:

0 commit comments

Comments
 (0)