@mherod/get-cookie 2.0.0-rc.17 → 2.0.0-rc.18
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/index.js +6 -0
- package/package.json +1 -1
- package/src/fetchWithCookies.ts +6 -0
package/dist/index.js
CHANGED
|
@@ -842,6 +842,12 @@ async function $cfc07ae4aa2c7e44$export$b24a545a0b39f491(url, options = {}, fetc
|
|
|
842
842
|
(0, $7oI3p$lodash.merge)(newOptions2, newOptions1, {
|
|
843
843
|
method: "GET"
|
|
844
844
|
});
|
|
845
|
+
newOptions2.body = undefined; // TODO: is this needed?
|
|
846
|
+
break;
|
|
847
|
+
case "HEAD":
|
|
848
|
+
case "GET":
|
|
849
|
+
(0, $7oI3p$lodash.merge)(newOptions2, newOptions1);
|
|
850
|
+
newOptions2.body = undefined; // TODO: is this needed?
|
|
845
851
|
break;
|
|
846
852
|
default:
|
|
847
853
|
(0, $7oI3p$lodash.merge)(newOptions2, newOptions1);
|
package/package.json
CHANGED
package/src/fetchWithCookies.ts
CHANGED
|
@@ -84,6 +84,12 @@ export async function fetchWithCookies(
|
|
|
84
84
|
case "PUT":
|
|
85
85
|
case "DELETE":
|
|
86
86
|
merge(newOptions2, newOptions1, { method: "GET" });
|
|
87
|
+
newOptions2.body = undefined; // TODO: is this needed?
|
|
88
|
+
break;
|
|
89
|
+
case "HEAD":
|
|
90
|
+
case "GET":
|
|
91
|
+
merge(newOptions2, newOptions1);
|
|
92
|
+
newOptions2.body = undefined; // TODO: is this needed?
|
|
87
93
|
break;
|
|
88
94
|
default:
|
|
89
95
|
merge(newOptions2, newOptions1);
|