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

0

.vscode/launch.json

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

2

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

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

@@ -66,2 +66,4 @@ # serverless-api-gateway-caching

The setting `endpointsInheritCloudWatchSettingsFromStage` makes sure that settings like `Log Level` and whether to `Enable detailed CloudWatch metrics` are copied over from the stage to each endpoint's settings. It is `true` by default.
```yml

@@ -80,2 +82,3 @@ plugins:

handleUnauthorizedRequests: Ignore # default is "IgnoreWithWarning".
endpointsInheritCloudWatchSettingsFromStage: true # default is true
```

@@ -107,2 +110,3 @@

dataEncrypted: true # default is false
inheritCloudWatchSettingsFromStage: false # default is true
perKeyInvalidation:

@@ -109,0 +113,0 @@ requireAuthorization: true # default is true

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

@@ -96,3 +96,8 @@ const get = require('lodash.get');

this.inheritCloudWatchSettingsFromStage = globalSettings.endpointsInheritCloudWatchSettingsFromStage;
if (event.http.caching && event.http.caching.inheritCloudWatchSettingsFromStage != undefined) {
this.inheritCloudWatchSettingsFromStage = event.http.caching.inheritCloudWatchSettingsFromStage;
}
else {
this.inheritCloudWatchSettingsFromStage = globalSettings.endpointsInheritCloudWatchSettingsFromStage;
}

@@ -121,3 +126,3 @@ if (!event.http.caching) {

this.path = path;
this.gatewayResourceName = getApiGatewayResourceNameFor(this.path, this.method);

@@ -168,6 +173,7 @@

this.dataEncrypted = cachingSettings.dataEncrypted || DEFAULT_DATA_ENCRYPTED;
this.perKeyInvalidation = new PerKeyInvalidationSettings(cachingSettings);
this.endpointsInheritCloudWatchSettingsFromStage = cachingSettings.endpointsInheritCloudWatchSettingsFromStage || DEFAULT_INHERIT_CLOUDWATCH_SETTINGS_FROM_STAGE;
this.endpointsInheritCloudWatchSettingsFromStage = cachingSettings.endpointsInheritCloudWatchSettingsFromStage == undefined ?
DEFAULT_INHERIT_CLOUDWATCH_SETTINGS_FROM_STAGE : cachingSettings.endpointsInheritCloudWatchSettingsFromStage;

@@ -174,0 +180,0 @@ for (let functionName in serverless.service.functions) {

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

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

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

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