Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
payload: (action, state, response) => {
const { headers } = response
return getJSON(response).then(data => ({
data,
headers: {
location: headers.get('location'),
correlationSocket: headers.get('x-correlation-socket'),
},
}))
},
},