New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 1.2.0-rc3 to 1.2.0-rc4

2

package.json
{
"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 @@

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