msw 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -798,9 +798,10 @@ function prepareRequest(request) {
798
798
  import { objectToHeaders as objectToHeaders2 } from "headers-polyfill";
799
799
  function prepareResponse(res) {
800
800
  const responseHeaders = objectToHeaders2(res.headers);
801
+ const parsedBody = parseBody(res.body, responseHeaders);
801
802
  return {
802
803
  ...res,
803
- body: parseBody(res.body, responseHeaders)
804
+ body: parsedBody
804
805
  };
805
806
  }
806
807