serverless-api-gateway-throttling
Advanced tools
Comparing version 2.0.3-rc1 to 2.0.3
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
29525
626