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

serverless-api-gateway-throttling

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-api-gateway-throttling - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1-rc1

2

package.json
{
"name": "serverless-api-gateway-throttling",
"version": "2.0.0",
"version": "2.0.1-rc1",
"description": "A plugin for the Serverless framework which configures throttling for API Gateway endpoints.",

@@ -5,0 +5,0 @@ "main": "src/apiGatewayThrottlingPlugin.js",

@@ -0,0 +0,0 @@ # serverless-api-gateway-throttling

'use strict';
const ApiGatewayThrottlingSettings = require('./ApiGatewayThrottlingSettings');
const updateStageThrottling = require('./updateStageThrottling');
const { restApiExists, outputRestApiIdTo } = require('./restApiId');
const { httpApiExists, outputHttpApiIdTo } = require('./httpApiId');
const resetEndpointSpecificSettings = require('./resetEndpointSpecificSettings');
const { updateRestApi } = require('./updateRestApiStageThrottling');
const { updateHttpApi } = require('./updateHttpApiStageThrottling');

@@ -60,8 +61,10 @@ class ApiGatewayThrottlingPlugin {

this.thereIsARestApi = await restApiExists(this.serverless, this.settings);
if (!this.thereIsARestApi) {
this.serverless.cli.log('[serverless-api-gateway-throttling] No Rest API found. Throttling settings will be ignored.');
return;
this.thereIsAHttpApi = await httpApiExists(this.serverless, this.settings);
if (this.thereIsARestApi) {
await updateRestApi(this.settings, this.serverless);
}
await updateStageThrottling(this.serverless, this.settings);
if (this.thereIsAHttpApi) {
await updateHttpApi(this.settings, this.serverless);
}
}

@@ -68,0 +71,0 @@

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ String.prototype.replaceAll = function (search, replacement) {

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ const isEmpty = require('lodash.isempty');

@@ -0,0 +0,0 @@ const isEmpty = require('lodash.isempty');

Sorry, the diff of this file is not supported yet

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