@zimic/interceptor 1.1.2-canary.6 → 1.1.3-canary.0
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/dist/{chunk-AMKVGJZN.mjs → chunk-LGABNBRQ.mjs} +3 -3
- package/dist/chunk-LGABNBRQ.mjs.map +1 -0
- package/dist/{chunk-RQ2YYT5B.js → chunk-MCFX6AGX.js} +3 -3
- package/dist/chunk-MCFX6AGX.js.map +1 -0
- package/dist/cli.js +18 -18
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/http.js +1 -1
- package/dist/http.js.map +1 -1
- package/dist/http.mjs +1 -1
- package/dist/http.mjs.map +1 -1
- package/dist/server.js +6 -6
- package/dist/server.mjs +1 -1
- package/package.json +2 -2
- package/src/http/interceptorWorker/HttpInterceptorWorker.ts +1 -0
- package/dist/chunk-AMKVGJZN.mjs.map +0 -1
- package/dist/chunk-RQ2YYT5B.js.map +0 -1
package/dist/http.mjs
CHANGED
|
@@ -1112,7 +1112,7 @@ var HttpInterceptorWorker = class _HttpInterceptorWorker {
|
|
|
1112
1112
|
if (!canHaveBody) {
|
|
1113
1113
|
return new Response(null, { headers, status });
|
|
1114
1114
|
}
|
|
1115
|
-
if (typeof declaration.body === "string" || declaration.body === void 0 || declaration.body instanceof FormData || declaration.body instanceof URLSearchParams || declaration.body instanceof Blob || declaration.body instanceof ArrayBuffer || declaration.body instanceof ReadableStream) {
|
|
1115
|
+
if (typeof declaration.body === "string" || declaration.body === null || declaration.body === void 0 || declaration.body instanceof FormData || declaration.body instanceof URLSearchParams || declaration.body instanceof Blob || declaration.body instanceof ArrayBuffer || declaration.body instanceof ReadableStream) {
|
|
1116
1116
|
return new Response(declaration.body ?? null, { headers, status });
|
|
1117
1117
|
}
|
|
1118
1118
|
return Response.json(declaration.body, { headers, status });
|