Skip to content

Commit 9907139

Browse files
committed
add rawpath to httpapi wrapper signature
1 parent 3e4e1cd commit 9907139

File tree

7 files changed

+1655
-528
lines changed

7 files changed

+1655
-528
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ 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+
## [4.2.0]  (2020-11-13)
8+
9+
### Added
10+
11+
- Added rawPath as parsed param to http api wrapper
12+
13+
### Changed
14+
15+
- Update dependencies
16+
717
## [4.1.1]  (2020-10-31)
818

919
### Changed
@@ -313,6 +323,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/),
313323
- Update older libraries
314324
- Now publish from Git tags instead of master pushes
315325

326+
[4.2.0]: https://github.com/manwaring/lambda-wrapper/compare/v4.1.1...v4.2.0
316327
[4.1.1]: https://github.com/manwaring/lambda-wrapper/compare/v4.1.0...v4.1.1
317328
[4.1.0]: https://github.com/manwaring/lambda-wrapper/compare/v4.0.6...v4.1.0
318329
[4.0.6]: https://github.com/manwaring/lambda-wrapper/compare/v4.0.5...v4.0.6

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,7 @@ Note that all properties are undefined if not present on the original request.
732732
export interface HttpApiSignature<T = any> {
733733
event: HttpApiEvent; // original event provided by AWS
734734
body: T; // body payload parsed according to content-type headers (or raw if no content-type headers found) and cast as T if provided (defaults to `any`)
735+
rawPath: string; // the endpoint path used to invoke this Lambda
735736
path: { [name: string]: string }; // path params as key-value pairs
736737
query: { [name: string]: string }; // query params as key-value pairs
737738
headers: { [name: string]: string }; // headers as key-value pairs

0 commit comments

Comments
 (0)