serverless-api-gateway-caching
Advanced tools
Comparing version 1.0.0-rc12 to 1.0.0-rc13
{ | ||
"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" | ||
} | ||
} |
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; |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
11604
7
244
2
0
3
2
+ Addedlodash.get@^4.4.2
+ Addedlodash.get@4.4.2(transitive)