serverless-api-gateway-throttling
Advanced tools
Comparing version 1.2.0-rc3 to 1.2.0-rc4
{ | ||
"name": "serverless-api-gateway-throttling", | ||
"version": "1.2.0-rc3", | ||
"version": "1.2.0-rc4", | ||
"description": "A plugin for the Serverless framework which configures throttling for API Gateway endpoints.", | ||
@@ -5,0 +5,0 @@ "main": "src/apiGatewayThrottlingPlugin.js", |
@@ -35,4 +35,4 @@ 'use strict'; | ||
updateCloudFormationTemplate() { | ||
this.thereIsARestApi = restApiExists(this.serverless); | ||
async updateCloudFormationTemplate() { | ||
this.thereIsARestApi = await restApiExists(this.serverless); | ||
if (!this.thereIsARestApi) { | ||
@@ -43,6 +43,6 @@ this.serverless.cli.log(`[serverless-api-gateway-throttling] No REST API found. Throttling settings will be ignored.`); | ||
outputRestApiIdTo(this.serverless); | ||
await outputRestApiIdTo(this.serverless); | ||
} | ||
updateStage() { | ||
async updateStage() { | ||
if (!this.settings) { | ||
@@ -52,3 +52,3 @@ this.createSettings(); | ||
this.thereIsARestApi = restApiExists(this.serverless); | ||
this.thereIsARestApi = await restApiExists(this.serverless); | ||
if (!this.thereIsARestApi) { | ||
@@ -59,10 +59,10 @@ this.serverless.cli.log('[serverless-api-gateway-throttling] No Rest API found. Throttling settings will be ignored.'); | ||
return updateStageThrottling(this.settings, this.serverless); | ||
await updateStageThrottling(this.settings, this.serverless); | ||
} | ||
resetEndpointSettings() { | ||
async resetEndpointSettings() { | ||
if (!this.settings) { | ||
this.createSettings(); | ||
} | ||
this.thereIsARestApi = restApiExists(this.serverless); | ||
this.thereIsARestApi = await restApiExists(this.serverless); | ||
if (!this.thereIsARestApi) { | ||
@@ -73,3 +73,3 @@ this.serverless.cli.log('[serverless-api-gateway-throttling] No Rest API found. Command will be ignored.'); | ||
return resetEndpointSpecificSettings(this.settings, this.serverless); | ||
await resetEndpointSpecificSettings(this.settings, this.serverless); | ||
} | ||
@@ -76,0 +76,0 @@ |
20883