Skip to content

Commit 396541e

Browse files
Update to Node 10 (#8)
1 parent 23a3014 commit 396541e

File tree

8 files changed

+384
-363
lines changed

8 files changed

+384
-363
lines changed

lambda-src/node_modules/cfn-response/package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

module.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ Resources:
109109
Properties:
110110
Parameters:
111111
Handler: 'custom-resource-deployment.handler'
112-
Runtime: 'nodejs8.10'
112+
Runtime: 'nodejs10.x'
113113
Timeout: '30'
114114
ManagedPolicyArns: !Ref DeploymentFunctionPolicy
115115
TemplateURL: './node_modules/@cfn-modules/lambda-function/module.yml'
116116
Outputs:
117117
ModuleId:
118118
Value: 'lambda-event-source-webhook'
119119
ModuleVersion:
120-
Value: '1.1.1'
120+
Value: '1.2.0'
121121
StackName:
122122
Value: !Ref 'AWS::StackName'
123123
Url:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cfn-modules/lambda-event-source-webhook",
3-
"version": "1.1.1",
3+
"version": "1.2.0",
44
"description": "Webhook event source for AWS Lambda function",
55
"author": "Michael Wittig <michael@widdix.de>",
66
"license": "Apache-2.0",

test/defaults.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Resources:
1313
Properties:
1414
Parameters:
1515
Handler: 'defaults.handler'
16-
Runtime: 'nodejs8.10'
16+
Runtime: 'nodejs10.x'
1717
TemplateURL: './node_modules/@cfn-modules/lambda-function/module.yml'
1818
Outputs:
1919
Url:

test/package-lock.json

Lines changed: 373 additions & 350 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
22
"private": true,
33
"dependencies": {
4-
"eslint": "6.2.2",
5-
"ava": "2.3.0",
6-
"axios": "0.19.0",
7-
"@cfn-modules/test": "0.5.1",
4+
"eslint": "6.6.0",
5+
"ava": "2.4.0",
6+
"@cfn-modules/test": "0.7.3",
87
"@cfn-modules/lambda-event-source-webhook": "file:../",
9-
"@cfn-modules/lambda-function": "2.4.1"
8+
"@cfn-modules/lambda-function": "2.5.0"
109
},
1110
"scripts": {
1211
"test": "eslint . && ava -c 4 *.js"

test/test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
const test = require('ava');
22
const cfntest = require('@cfn-modules/test');
3-
const axios = require('axios');
43

54
test.serial('defaults', async t => {
65
const stackName = cfntest.stackName();
76
try {
87
t.log(await cfntest.createStack(`${__dirname}/defaults.yml`, stackName, {}));
98
const outputs = await cfntest.getStackOutputs(stackName);
10-
const res = await axios.post(outputs.Url);
9+
const res = await cfntest.probeHttpPost(outputs.Url);
1110
t.is(res.status, 204);
1211
} finally {
1312
t.log(await cfntest.deleteStack(stackName));

0 commit comments

Comments
 (0)