Update axios to latest, in order to pick up vulnerability fix
Don't default to null for POST data, since axios will JSON.stringify that as "null" (instead of sending an empty payload, as before)
I verified locally with my app. When only updating axios to 0.21.4 (using yarn's resolutions feature), my app was broken as one of my POST requests was sending "null" as the payload body. With this PR, it's working as expected: an empty payload instead.
axios
to latest, in order to pick up vulnerability fixnull
for POSTdata
, sinceaxios
will JSON.stringify that as "null" (instead of sending an empty payload, as before)I verified locally with my app. When only updating
axios
to 0.21.4 (using yarn'sresolutions
feature), my app was broken as one of my POST requests was sending "null" as the payload body. With this PR, it's working as expected: an empty payload instead.Fixes https://github.com/infinitered/apisauce/issues/276