@middy/warmup
Advanced tools
+4
-2
@@ -6,7 +6,9 @@ // Copyright 2017 - 2026 will Farrell, Luciano Mammino, and Middy contributors. | ||
| export interface Options { | ||
| isWarmingUp?: (event: any) => boolean; | ||
| isWarmingUp?: (event: unknown) => boolean; | ||
| } | ||
| declare function warmup(options?: Options): middy.MiddlewareObj; | ||
| declare function warmup( | ||
| options?: Options, | ||
| ): middy.MiddlewareObj<unknown, unknown, Error>; | ||
| export default warmup; |
+5
-5
| { | ||
| "name": "@middy/warmup", | ||
| "version": "7.1.2", | ||
| "version": "7.1.3", | ||
| "description": "Warmup (cold start mitigation) middleware for the middy framework", | ||
@@ -68,6 +68,6 @@ "type": "module", | ||
| "devDependencies": { | ||
| "@middy/core": "7.1.2", | ||
| "@types/aws-lambda": "^8.0.0" | ||
| }, | ||
| "gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431" | ||
| "@middy/core": "7.1.3", | ||
| "@types/aws-lambda": "^8.0.0", | ||
| "@types/node": "^22.0.0" | ||
| } | ||
| } |
+17
-0
@@ -33,2 +33,19 @@ <div align="center"> | ||
| ## Install | ||
| ```bash | ||
| npm install --save @middy/warmup | ||
| ``` | ||
| ## Documentation and examples | ||
| For documentation and examples, refer to the main [Middy monorepo on GitHub](https://github.com/middyjs/middy) or [Middy official website](https://middy.js.org/docs/middlewares/warmup). | ||
| ## Contributing | ||
| Everyone is very welcome to contribute to this repository. Feel free to [raise issues](https://github.com/middyjs/middy/issues) or to [submit Pull Requests](https://github.com/middyjs/middy/pulls). | ||
| ## License | ||
@@ -35,0 +52,0 @@ |
6780
7.96%27
8%57
42.5%3
50%