Skip to content

Commit 4798853

Browse files
committed
fix: resolve cookie header merging and align shrinkwrap with CI npm version
1 parent 1497598 commit 4798853

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

npm-shrinkwrap.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/test/helpers/mocha-bootstrap.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ global.Headers = nodeFetch.Headers;
1010
global.Request = nodeFetch.Request;
1111
global.Response = nodeFetch.Response;
1212

13+
if (typeof nodeFetch.Headers.prototype.getSetCookie !== "function") {
14+
nodeFetch.Headers.prototype.getSetCookie = function() {
15+
return this.raw()["set-cookie"] || [];
16+
};
17+
}
18+
1319
// Force nock to execute its side-effects (patching http/https) immediately on load
1420
void nock;
1521

0 commit comments

Comments
 (0)