lambda-api
lambda-api copied to clipboard
Lightweight web framework for your serverless applications
The `REQUEST.rawBody` is the same as the lambda event body which should be `string | null` but is defined as `string` in the type definition. https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/aws-lambda/trigger/api-gateway-proxy.d.ts#L117 https://github.com/jeremydaly/lambda-api/blob/main/index.d.ts#L146 Can it be...
Fixed error handling middleware issue using suggestion from @Hulle107 Fixes #195
Hello everyone! I need to save some important data every time when the response is already available. I have tried 2 approaches: 1. `api.finally` - does not allow us to...
The LoggerFunction doesn't allow a additional info to be passed in LoggerFunction: https://github.com/jeremydaly/lambda-api/blob/main/index.d.ts#L62 Additional info in README: https://github.com/jeremydaly/lambda-api#adding-additional-detail This means that in my typescript project, I can't pass a string...
Hej love the package so far. But have found that you do not really do promise for `Error Handling Middleware` the same way as you do other middleware. This is...
When the error logging is enabled, it is called even when the error is handled in a custom error handler middleware. This is unintuitive for several reasons. Consider the following...
Accurately type Response.header to describe what is possible to pass to the method
Closes #204
When using `lambda-api` together with some code bundler like `rollup` class names are rewritten to avoid duplicates. The class `RouteError` will for example be rewritten to something like this: ```...
Docs show that we could add a second argument in the logger, it's working fine in JS but in TS the typing was only accepting string arguments