Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serverless-api-gateway-caching

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-api-gateway-caching - npm Package Compare versions

Comparing version 1.7.2 to 1.7.3-rc1

0

.vscode/launch.json

@@ -0,0 +0,0 @@ {

2

package.json
{
"name": "serverless-api-gateway-caching",
"version": "1.7.2",
"version": "1.7.3-rc1",
"description": "A plugin for the serverless framework which helps with configuring caching for API Gateway endpoints.",

@@ -5,0 +5,0 @@ "main": "src/apiGatewayCachingPlugin.js",

@@ -0,0 +0,0 @@ # serverless-api-gateway-caching

@@ -26,4 +26,4 @@ 'use strict';

updateCloudFormationTemplate() {
this.thereIsARestApi = restApiExists(this.serverless, this.settings);
async updateCloudFormationTemplate() {
this.thereIsARestApi = await restApiExists(this.serverless, this.settings);
if (!this.thereIsARestApi) {

@@ -44,4 +44,4 @@ this.serverless.cli.log(`[serverless-api-gateway-caching] No REST API found. Caching settings will not be updated.`);

updateStage() {
this.thereIsARestApi = restApiExists(this.serverless, this.settings);
async updateStage() {
this.thereIsARestApi = await restApiExists(this.serverless, this.settings);
if (!this.thereIsARestApi) {

@@ -48,0 +48,0 @@ this.serverless.cli.log(`[serverless-api-gateway-caching] No REST API found. Caching settings will not be updated.`);

@@ -0,0 +0,0 @@ const get = require('lodash.get');

@@ -0,0 +0,0 @@ const getResourcesByName = (name, serverless) => {

@@ -10,3 +10,3 @@ 'use strict';

const restApiExists = (serverless, settings) => {
const restApiExists = async (serverless, settings) => {
if (get(settings, 'restApiId')) {

@@ -23,2 +23,7 @@ return true;

}
const restApiIdFromAlreadyDeployedStack = await retrieveRestApiId(serverless, settings);
if (restApiIdFromAlreadyDeployedStack) {
return true;
}
return false;

@@ -25,0 +30,0 @@ }

@@ -0,0 +0,0 @@ const isEmpty = require('lodash.isempty');

@@ -0,0 +0,0 @@ module.exports = {

Sorry, the diff of this file is not supported yet

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