serverless-api-gateway-throttling
Advanced tools
Comparing version 2.0.1-rc3 to 2.0.1-rc5
{ | ||
"name": "serverless-api-gateway-throttling", | ||
"version": "2.0.1-rc3", | ||
"version": "2.0.1-rc5", | ||
"description": "A plugin for the Serverless framework which configures throttling for API Gateway endpoints.", | ||
@@ -5,0 +5,0 @@ "main": "src/apiGatewayThrottlingPlugin.js", |
@@ -35,6 +35,7 @@ 'use strict'; | ||
const HttpApiId = await retrieveHttpApiIdFromAlreadyDeployedStack(serverless, settings); | ||
if (!HttpApiId) { | ||
const httpApiId = await retrieveHttpApiIdFromAlreadyDeployedStack(serverless, settings); | ||
if (!httpApiId) { | ||
serverless.cli.log(`[serverless-api-gateway-throttling] Could not find stack output variable named ${HTTP_API_ID_KEY}.`); | ||
} | ||
return httpApiId; | ||
}; | ||
@@ -64,2 +65,5 @@ | ||
const stack = await getAlreadyDeployedStack(serverless, settings); | ||
if (!stack) { | ||
return; | ||
} | ||
const outputs = stack.Stacks[0].Outputs; | ||
@@ -66,0 +70,0 @@ const HttpApiKey = outputs.find(({ OutputKey }) => OutputKey === HTTP_API_ID_KEY) |
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
30861
638