@vodafoneuk/aim-mocking
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -10,2 +10,4 @@ import bodyParser from 'body-parser'; | ||
import isEmpty from 'lodash/isEmpty.js'; | ||
import get from 'lodash/get.js'; | ||
import unset from 'lodash/unset.js'; | ||
import md5 from 'blueimp-md5'; | ||
@@ -299,5 +301,5 @@ import fs from 'fs'; | ||
for (const ignoredKey of hashIgnoredReqBodyKeys) { | ||
if (typeof req.body[ignoredKey] !== "undefined") { | ||
if (typeof get(req.body, ignoredKey) !== "undefined") { | ||
logger.debug("cache").yarn.whisper(`delete body key: ${ignoredKey}`); | ||
delete req.body[ignoredKey]; | ||
unset(req.body, ignoredKey); | ||
} | ||
@@ -304,0 +306,0 @@ } |
{ | ||
"name": "@vodafoneuk/aim-mocking", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Api Interceptor Middleware - localized cache lib and middleware for dalmatian and other api calls", | ||
@@ -73,3 +73,3 @@ "author": "Radoslaw Swiat", | ||
}, | ||
"gitHead": "02ef0c30c69ae8aab7536a58852e03e4db56f9c7" | ||
"gitHead": "69924bf80b42cbf414b89681a408fcfb5a9a2ab3" | ||
} |
@@ -186,3 +186,3 @@ <img width="165" height="45" src="https://upload.wikimedia.org/wikipedia/en/thumb/c/cc/Vodafone_2017_logo.svg/1280px-Vodafone_2017_logo.svg.png" alt="Vodafone"> | ||
ignoredPaths: [], | ||
hashIgnoredReqBodyKeys: ['customerId', 'time'], | ||
hashIgnoredReqBodyKeys: ['customerId', 'time', 'customer.name', 'customer.type'], | ||
hashIgnoredReqQueryKeys: ['perpage'], | ||
@@ -189,0 +189,0 @@ hashIgnoredReqPathPatterns: [], |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79486
1822