Skip to content

Commit 065917a

Browse files
committed
revert cloudformation library
1 parent 3ce1363 commit 065917a

File tree

8 files changed

+71
-90
lines changed

8 files changed

+71
-90
lines changed

.circleci/config.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ jobs:
5959
name: Publish on npm
6060
command: npm run publish-please
6161

62+
deploy-example-app:
63+
<<: *container-config
64+
steps:
65+
- checkout
66+
- *load-cache
67+
- run:
68+
name: Deploy example app
69+
command: npm run deploy-example-app
70+
6271
workflows:
6372
version: 2
6473

@@ -90,12 +99,12 @@ workflows:
9099
ignore: /.*/
91100
tags:
92101
only: /v.*/
93-
# - test-default-example:
94-
# context: manwaring-aws
95-
# requires:
96-
# - publish
97-
# filters:
98-
# branches:
99-
# ignore: /.*/
100-
# tags:
101-
# only: /v.*/
102+
- deploy-default-example:
103+
context: manwaring-aws
104+
requires:
105+
- publish
106+
filters:
107+
branches:
108+
ignore: /.*/
109+
tags:
110+
only: /v.*/

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)
66

7+
## [1.1.3]&nbsp;&nbsp;(2019-09-10)
8+
9+
### Changed
10+
11+
- Reverted CloudFormation Custom Resource responder library - realized that issue was with async function instead of lib
12+
713
## [1.1.2]&nbsp;&nbsp;(2019-09-09)
814

915
### Changed
@@ -78,9 +84,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/),
7884
- Update older libraries
7985
- Now publish from Git tags instead of master pushes
8086

87+
[1.1.3]: https://github.com/manwaring/lambda-wrapper/compare/v1.1.2...v1.1.3
8188
[1.1.2]: https://github.com/manwaring/lambda-wrapper/compare/v1.1.1...v1.1.2
8289
[1.1.1]: https://github.com/manwaring/lambda-wrapper/compare/v1.1.0...v1.1.1
83-
[1.1.0]: https://github.com/manwaring/lambda-wrapper/compare/v1.0.9...v1.1.0
90+
[1.1.0]: https://github.com/manwaring/lambda-wrapper/compare/v1.0.10...v1.1.0
91+
[1.0.10]: https://github.com/manwaring/lambda-wrapper/compare/v1.0.9...v1.0.10
8492
[1.0.9]: https://github.com/manwaring/lambda-wrapper/compare/v1.0.8...v1.0.9
8593
[1.0.8]: https://github.com/manwaring/lambda-wrapper/compare/v1.0.7...v1.0.8
8694
[1.0.7]: https://github.com/manwaring/lambda-wrapper/compare/v1.0.1...v1.0.7

examples/ts/app/cloudformation.ts

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
import { cloudFormation } from '@manwaring/lambda-wrapper';
22
import 'source-map-support/register';
3-
// import { send, SUCCESS } from './send';
4-
import { sendResponse } from './native-send';
53

6-
// export const handler = cloudFormation(async ({ event, success, failure }) => {
7-
// try {
8-
// success(event);
9-
// } catch (err) {
10-
// failure(err);
11-
// }
12-
// });
13-
14-
export const handler = (event, context, callback) => {
4+
export const handler = cloudFormation(({ success, failure }) => {
155
try {
16-
// send(event, context, SUCCESS);
17-
sendResponse(event, context);
6+
success();
187
} catch (err) {
19-
console.log('Error', err);
20-
// send(event, context, SUCCESS);
21-
sendResponse(event, context);
8+
failure(err);
229
}
23-
};
10+
});

examples/ts/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
"version": "0.0.1",
44
"description": "Example setup of Lambda Wrapper using Typescript and the Serverless Framework",
55
"scripts": {
6-
"predeploy": "npm i && rimraf ../../node_modules && rimraf node_modules package-lock.json && npm i",
76
"deploy": "sls deploy"
87
},
98
"dependencies": {
109
"@manwaring/lambda-wrapper": "*",
11-
"async-retry": "^1.2.3",
12-
"axios": "^0.19.0",
1310
"source-map-support": "^0.5.10"
1411
},
1512
"devDependencies": {

package-lock.json

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

0 commit comments

Comments
 (0)