Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serverless-autoprune-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-autoprune-plugin - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

lib/AutoPrunePlugin.js

@@ -295,4 +295,4 @@ 'use strict';

return BbPromise.join(
persistentRequest( () => _this.aws.request('Lambda', 'listAliases', { FunctionName: lambdaName }, _this.evt.options.stage, _this.evt.options.region) ),
persistentRequest( () => _this.aws.request('Lambda', 'listVersionsByFunction', { FunctionName: lambdaName }, _this.evt.options.stage, _this.evt.options.region) )
persistentRequest( () => _this.aws.request('Lambda', 'listAliases', { FunctionName: lambdaName }, _this.evt.options.stage, region) ),
persistentRequest( () => _this.aws.request('Lambda', 'listVersionsByFunction', { FunctionName: lambdaName }, _this.evt.options.stage, region) )
).spread((aliases, versions) => {

@@ -340,3 +340,3 @@ S.utils.sDebug( `Pruning ${func.name}, found ${aliases.Aliases.length} aliases and ${versions.Versions.length} versions` );

Qualifier: v.Version
}, _this.evt.options.stage, _this.evt.options.region) );
}, _this.evt.options.stage, region) );
}

@@ -343,0 +343,0 @@ else {

{
"name": "serverless-autoprune-plugin",
"version": "0.2.0",
"version": "0.2.1",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=4.0"

@@ -78,4 +78,8 @@ # serverless-autoprune-plugin

### 0.2.1
* You can run the plugin without specifying a target region now. It will automatically prune
your Lambda functions in all deployed regions.
### 0.2.0
* Finally the plugin deserves it's name: Auto-Pruning! Passin in `--prune` to your
* Finally the plugin deserves it's name: Auto-Pruning! Passing `--prune` to your
`serverless function deploy` will automatically delete previous Lambda versions.

@@ -98,3 +102,2 @@ * Handle AWS Rate Limit responses using a temporary fix until Serverless 0.5.6 is released

### To Dos
* Optionally prune during `function deploy`
* Pruning of API Gateway Deploments (https://github.com/Nopik/serverless-lambda-prune-plugin/pull/6)
* Pruning of API Gateway Deployments (https://github.com/Nopik/serverless-lambda-prune-plugin/pull/6)
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