msw 1.2.1 → 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.
- package/README.md +38 -9
- package/lib/iife/index.js +11 -10
- package/lib/iife/index.js.map +1 -1
- package/lib/index.js +11 -10
- package/lib/index.js.map +1 -1
- package/lib/mockServiceWorker.js +1 -1
- package/lib/native/index.js +2 -1
- package/lib/native/index.mjs +2 -1
- package/lib/node/index.js +2 -1
- package/lib/node/index.js.map +1 -1
- package/lib/node/index.mjs +2 -1
- package/lib/node/index.mjs.map +1 -1
- package/package.json +2 -2
package/lib/node/index.mjs
CHANGED
|
@@ -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:
|
|
804
|
+
body: parsedBody
|
|
804
805
|
};
|
|
805
806
|
}
|
|
806
807
|
|