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.3-rc1 to 2.0.3

2

package.json
{
"name": "serverless-api-gateway-throttling",
"version": "2.0.3-rc1",
"version": "2.0.3",
"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

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

@@ -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';

@@ -50,20 +50,4 @@ const isEmpty = require('lodash.isempty');

let { path, method } = httpApiEvent;
// let routeSettings = {};
// if (method.toUpperCase() == 'ANY') {
// let httpMethodsToConfigureThrottlingFor = ['GET', 'DELETE', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT'];
// for (let methodWithThrottlingSettings of httpMethodsToConfigureThrottlingFor) {
// routeSettings = {
// ...routeSettings,
// ...routeSettingsForMethod(path, methodWithThrottlingSettings, endpointSettings)
// }
// };
// }
// else {
// routeSettings = {
// ...routeSettings,
// ...routeSettingsForMethod(path, method, endpointSettings),
// }
// }
return routeSettingsForMethod(path, method, endpointSettings);
//Throttling route setting should be created with the same method type as defined in the httpApi.
return routeSettingsForMethod(path, method.toUpperCase(), endpointSettings);
}

@@ -70,0 +54,0 @@

@@ -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