Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
intercept: (body, send) => {
body = JSON.parse(body) // eslint-disable-line no-param-reassign
if (body && body.data) {
body.data = crunch(body.data) // eslint-disable-line no-param-reassign
}
send(JSON.stringify(body))
},
})
intercept: (body, send) => {
body = JSON.parse(body) // eslint-disable-line no-param-reassign
if (body) {
body = crunch(body) // eslint-disable-line no-param-reassign
res.set("X-Crunch", "true")
}
send(JSON.stringify(body))
},
})