Skip to content

Commit

Permalink
Fixed README.md typo within execute(handler) example
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetikonline committed Jun 11, 2022
1 parent 5a79ae5 commit 0299ce3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function myTest() {
.addRequestHttpHeader('X-Fancy-Header','apples');

const resp = await vReq.execute(
// example edge function
// example Lambda@Edge function
async function(event) {
return event.Records[0].cf.request;
}
Expand Down Expand Up @@ -124,7 +124,7 @@ async function myTest() {
.setOriginS3('mybucket.s3.ap-southeast-2.amazonaws.com','ap-southeast-2');

const resp = await oReq.execute(
// example edge function
// example Lambda@Edge function
async function(event) {
return event.Records[0].cf.request;
}
Expand Down Expand Up @@ -191,7 +191,7 @@ async function myTest() {
.addResponseHttpHeader('X-Fancy-Header','oranges');

const resp = await oRsp.execute(
// example edge function
// example Lambda@Edge function
async function(event) {
return event.Records[0].cf.response;
}
Expand Down Expand Up @@ -249,7 +249,7 @@ async function myTest() {
.addResponseHttpHeader('X-Fancy-Header','oranges');

const resp = await vRsp.execute(
// example edge function
// example Lambda@Edge function
async function(event) {
return event.Records[0].cf.response;
}
Expand Down Expand Up @@ -624,15 +624,15 @@ After successful execution:
```js
const harness = new edgy.EVENT_TYPE_CONSTRUCTOR();

// --- construct Lambda@Edge event payload using instance methods ---
// -- construct event payload using instance methods --
// .setHttpMethod()
// .setUri()
// .setQuerystring()
// etc.

// execute function against payload
const resp = await vRsp.execute(
// example edge function
const resp = await harness.execute(
// example Lambda@Edge function
async function(event) {
return event.Records[0].cf.response;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magnetikonline/edgy",
"version": "1.2.0",
"version": "1.2.1",
"description": "Harness for authoring tests against AWS CloudFront Lambda@Edge functions.",
"keywords": [
"aws",
Expand Down

0 comments on commit 0299ce3

Please sign in to comment.