Skip to content

Commit 47f87ba

Browse files
committed
switch to new cf response library
1 parent 9c6b988 commit 47f87ba

File tree

4 files changed

+28
-26
lines changed

4 files changed

+28
-26
lines changed

examples/ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"description": "Example setup of Lambda Wrapper using Typescript and the Serverless Framework",
55
"scripts": {
6-
"predeploy": "rimraf ../../node_modules && npm i",
6+
"predeploy": "npm i && rimraf ../../node_modules && rimraf node_modules package-lock.json && npm i",
77
"deploy": "sls deploy"
88
},
99
"dependencies": {

package-lock.json

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

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@manwaring/lambda-wrapper",
33
"description": "A lambda handler wrapper to abstract common functionality and provide useful defaults",
4-
"version": "1.0.10",
4+
"version": "1.1.0",
55
"scripts": {
66
"publish-please-dry-run": "publish-please --dry-run",
77
"publish-please": "publish-please",
@@ -12,7 +12,7 @@
1212
"codecov": "codecov -f coverage/*.json"
1313
},
1414
"dependencies": {
15-
"cfn-response": "^1.0.1"
15+
"cfn-custom-response": "0.0.3"
1616
},
1717
"devDependencies": {
1818
"@babel/core": "^7.6.0",
@@ -22,7 +22,6 @@
2222
"@iopipe/iopipe": "^1.15.1",
2323
"@serverless/event-mocks": "^1.1.1",
2424
"@types/aws-lambda": "^8.10.31",
25-
"@types/cfn-response": "^1.0.0",
2625
"@types/jest": "^24.0.18",
2726
"@types/node": "^12.7.4",
2827
"aws-lambda": "^0.1.2",

src/cloudformation/responses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Context, CloudFormationCustomResourceEvent } from 'aws-lambda';
2-
import { send, SUCCESS, FAILED } from 'cfn-response';
2+
import { send, SUCCESS, FAILED } from 'cfn-custom-response';
33
import { Metrics } from '../common';
44

55
const metrics = new Metrics('Cloudformation');

0 commit comments

Comments
 (0)