serverless-api-gateway-caching
Advanced tools
Comparing version 1.7.3 to 1.7.4
{ | ||
"name": "serverless-api-gateway-caching", | ||
"version": "1.7.3", | ||
"version": "1.7.4", | ||
"description": "A plugin for the serverless framework which helps with configuring caching for API Gateway endpoints.", | ||
@@ -5,0 +5,0 @@ "main": "src/apiGatewayCachingPlugin.js", |
@@ -109,3 +109,3 @@ const isEmpty = require('lodash.isempty'); | ||
return httpEvents.filter(e => e.path = endpointSettings.path || "/" + e.path === endpointSettings.path) | ||
return httpEvents.filter(e => (e.path === endpointSettings.path) || (`/${e.path}` === endpointSettings.path)) | ||
.filter(e => e.method.toUpperCase() == endpointSettings.method.toUpperCase()); | ||
@@ -112,0 +112,0 @@ } |
39267