@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mherod/get-cookie",
3
- "version": "2.0.0-rc.17",
3
+ "version": "2.0.0-rc.18",
4
4
  "description": "Node.js module for querying a local user's Chrome cookie",
5
5
  "source": "src/index.ts",
6
6
  "bin": "dist/cli.js",
@@ -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);