New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@middy/warmup

Package Overview
Dependencies
Maintainers
10
Versions
205
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@middy/warmup - npm Package Compare versions

Comparing version 1.0.0-alpha.55 to 1.0.0-alpha.56

6

package.json
{
"name": "@middy/warmup",
"version": "1.0.0-alpha.55",
"version": "1.0.0-alpha.56",
"description": "Warmup (cold start mitigation) middleware for the middy framework",

@@ -46,6 +46,6 @@ "engines": {

"devDependencies": {
"@middy/core": "^1.0.0-alpha.55",
"@middy/core": "^1.0.0-alpha.56",
"es6-promisify": "^6.0.2"
},
"gitHead": "9a77402a39ef6ed626c35ddad8db53a0478bb398"
"gitHead": "20e2be6bb2b6d19be493aec3434e2cb86dde45ac"
}

@@ -35,5 +35,11 @@ # Middy warmup middleware

If you use [`serverless-plugin-warmup`](https://www.npmjs.com/package/serverless-plugin-warmup) the scheduling part is done by the plugin and you just have to attach the middleware to your "middyfied" handler. If you don't want to use the plugin you have to create the schedule yourself and define the `isWarmingUp` function to define wether the current event is a warmup event or an actual business logic execution.
If you use [`serverless-plugin-warmup`](https://www.npmjs.com/package/serverless-plugin-warmup) the scheduling part is done by the plugin and you just have to attach the middleware to your "middyfied" handler. If you don't want to use the plugin you have to create the schedule yourself and define the `isWarmingUp` function to define whether the current event is a warmup event or an actual business logic execution.
**Important:** AWS recently announced Lambda [Provisioned Concurrency](https://aws.amazon.com/about-aws/whats-new/2019/12/aws-lambda-announces-provisioned-concurrency/). If you have this enabled, you do not need this middleware.
To update your code to use Provisioned Concurrency see:
- [AWS Console](https://aws.amazon.com/blogs/compute/new-for-aws-lambda-predictable-start-up-times-with-provisioned-concurrency/)
- [Serverless](https://serverless.com/blog/aws-lambda-provisioned-concurrency/)
- [Terraform](https://www.terraform.io/docs/providers/aws/r/lambda_provisioned_concurrency_config.html)
## Install

@@ -40,0 +46,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc