-
Notifications
You must be signed in to change notification settings - Fork 105
Add ssdk typescript libraries #307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This adds the typescript libraries needed to support the SSDK as well as the library that provides apigateway support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from my side, just have a few questions and discussion points.
if (i === this.pathSegments.length - 1) { | ||
// greedy label at the end of pathSegments swallows the remaining path segments | ||
requestPathIdx = requestPathSegments.length; | ||
break path_loop; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ispath_loop
here and line 76 necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, it's a vestige of when this code was even harder to follow (hard to believe, I know). I kept it in case it made the flow of the break more understandable since there's a lot of nesting, not because the break was ambiguous.
This updates the node dependencies for the ssdk libs to node 14, which is the most recent version supported by Lambda.
ab0ffbe
to
800686e
Compare
This adds the typescript libraries needed to support the SSDK as well as the library that provides apigateway support.
There's two libraries here:
smithy-typescript/server-common
- Defines common interfaces used in generating the ssdk.smithy-typescript/server-apigateway
- Provides helpers to convert apigateway events toHttpRequest
s andHttpResponse
s to apigateway response format.Out of scope for this PR but still needs to be done:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.