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.1.0 to 1.1.1-rc1

0

.vscode/launch.json

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

4

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

@@ -21,3 +21,2 @@ "main": "src/apiGatewayCachingPlugin.js",

"dependencies": {
"aws-sdk": "^2.310.0",
"lodash.get": "^4.4.2",

@@ -34,3 +33,2 @@ "lodash.isempty": "^4.4.0"

"devDependencies": {
"aws-sdk-mock": "^4.1.0",
"chai": "^4.1.2",

@@ -37,0 +35,0 @@ "chance": "^1.0.16",

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

@@ -0,0 +0,0 @@ 'use strict';

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

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

const isEmpty = require('lodash.isempty');
const AWS = require('aws-sdk');

@@ -125,6 +124,2 @@ const getRestApiId = async (settings, serverless) => {

AWS.config.update({
region: settings.region,
});
let patchOps = createPatchForStage(settings);

@@ -141,3 +136,2 @@

}
const apiGateway = new AWS.APIGateway();
let params = {

@@ -150,3 +144,3 @@ restApiId,

serverless.cli.log(`[serverless-api-gateway-caching] Updating API Gateway cache settings.`);
await apiGateway.updateStage(params).promise();
await serverless.providers.aws.request('APIGateway', 'updateStage', params, settings.stage, settings.region);
serverless.cli.log(`[serverless-api-gateway-caching] Done updating API Gateway cache settings.`);

@@ -153,0 +147,0 @@ }

@@ -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