serverless-api-gateway-throttling
Advanced tools
Comparing version 1.2.0-rc2 to 1.2.0-rc3
{ | ||
"name": "serverless-api-gateway-throttling", | ||
"version": "1.2.0-rc2", | ||
"version": "1.2.0-rc3", | ||
"description": "A plugin for the Serverless framework which configures throttling for API Gateway endpoints.", | ||
@@ -30,3 +30,3 @@ "main": "src/apiGatewayThrottlingPlugin.js", | ||
"chance": "^1.0.16", | ||
"mocha": "^5.2.0", | ||
"mocha": "^9.1.3", | ||
"mocha-circleci-reporter": "0.0.3" | ||
@@ -33,0 +33,0 @@ }, |
@@ -18,5 +18,8 @@ 'use strict'; | ||
} | ||
const resource = serverless.service.provider.compiledCloudFormationTemplate.Resources['ApiGatewayRestApi']; | ||
if (resource) { | ||
return true; | ||
if (serverless.service.provider.compiledCloudFormationTemplate) { | ||
const resource = serverless.service.provider.compiledCloudFormationTemplate.Resources['ApiGatewayRestApi']; | ||
if (resource) { | ||
return true; | ||
} | ||
} | ||
@@ -23,0 +26,0 @@ |
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
20843
441