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.0.0-rc12 to 1.0.0-rc13

.vscode/launch.json

23

package.json
{
"name": "serverless-api-gateway-caching",
"version": "1.0.0-rc12",
"description": "",
"version": "1.0.0-rc13",
"description": "A plugin for the serverless framework which helps with configuring caching for API Gateway endpoints.",
"main": "src/apiGatewayCachingPlugin.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "mocha --recursive test/**/*.js -t 5000"
},
"keywords": [
"serverless",
"api",
"gateway",
"caching"
],
"author": "Diana Ionita",
"license": "ISC",
"license": "MIT",
"dependencies": {
"aws-sdk": "^2.310.0",
"lodash.get": "^4.4.2",
"lodash.isempty": "^4.4.0"
},
"repository": {
"type": "git",
"url": "https://github.com/DianaIonita/serverless-api-gateway-caching"
},
"devDependencies": {
"chai": "^4.1.2",
"mocha": "^5.2.0"
}
}

3

src/ApiGatewayCachingSettings.js
const isEmpty = require('lodash.isempty');
const get = require('lodash.get');

@@ -20,3 +21,3 @@ class ApiGatewayEndpointCachingSettings {

constructor(serverless) {
if (!serverless.service.custom.apiGatewayCaching) {
if (!get(serverless, "service.custom.apiGatewayCaching")) {
this.cachingEnabled = false;

@@ -23,0 +24,0 @@ return;

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