Upgrade node-fetch to 2.6.7
This commit is contained in:
parent
eed3e8e316
commit
028b4a4ce8
3 changed files with 49 additions and 15 deletions
|
@ -1,8 +1,8 @@
|
|||
diff --git a/node_modules/node-fetch/lib/index.es.js b/node_modules/node-fetch/lib/index.es.js
|
||||
index 61906c9..f09f5bd 100644
|
||||
index 4852f7c..ae9611f 100644
|
||||
--- a/node_modules/node-fetch/lib/index.es.js
|
||||
+++ b/node_modules/node-fetch/lib/index.es.js
|
||||
@@ -1231,6 +1231,9 @@ class Request {
|
||||
@@ -1253,6 +1253,9 @@ class Request {
|
||||
this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;
|
||||
this.counter = init.counter || input.counter || 0;
|
||||
this.agent = init.agent || input.agent;
|
||||
|
@ -12,7 +12,7 @@ index 61906c9..f09f5bd 100644
|
|||
}
|
||||
|
||||
get method() {
|
||||
@@ -1350,7 +1353,7 @@ function getNodeRequestOptions(request) {
|
||||
@@ -1372,7 +1375,7 @@ function getNodeRequestOptions(request) {
|
||||
method: request.method,
|
||||
headers: exportNodeCompatibleHeaders(headers),
|
||||
agent
|
||||
|
@ -21,7 +21,7 @@ index 61906c9..f09f5bd 100644
|
|||
}
|
||||
|
||||
/**
|
||||
@@ -1514,7 +1517,8 @@ function fetch(url, opts) {
|
||||
@@ -1556,7 +1559,8 @@ function fetch(url, opts) {
|
||||
body: request.body,
|
||||
signal: request.signal,
|
||||
timeout: request.timeout,
|
||||
|
@ -30,12 +30,12 @@ index 61906c9..f09f5bd 100644
|
|||
+ ca: request.ca,
|
||||
};
|
||||
|
||||
// HTTP-redirect fetch step 9
|
||||
if (!isDomainOrSubdomain(request.url, locationURL)) {
|
||||
diff --git a/node_modules/node-fetch/lib/index.js b/node_modules/node-fetch/lib/index.js
|
||||
index 4b241bf..23fa901 100644
|
||||
index e5b04f1..ed8d34a 100644
|
||||
--- a/node_modules/node-fetch/lib/index.js
|
||||
+++ b/node_modules/node-fetch/lib/index.js
|
||||
@@ -1235,6 +1235,9 @@ class Request {
|
||||
@@ -1257,6 +1257,9 @@ class Request {
|
||||
this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;
|
||||
this.counter = init.counter || input.counter || 0;
|
||||
this.agent = init.agent || input.agent;
|
||||
|
@ -45,7 +45,7 @@ index 4b241bf..23fa901 100644
|
|||
}
|
||||
|
||||
get method() {
|
||||
@@ -1354,7 +1357,7 @@ function getNodeRequestOptions(request) {
|
||||
@@ -1376,7 +1379,7 @@ function getNodeRequestOptions(request) {
|
||||
method: request.method,
|
||||
headers: exportNodeCompatibleHeaders(headers),
|
||||
agent
|
||||
|
@ -54,7 +54,7 @@ index 4b241bf..23fa901 100644
|
|||
}
|
||||
|
||||
/**
|
||||
@@ -1518,7 +1521,8 @@ function fetch(url, opts) {
|
||||
@@ -1560,7 +1563,8 @@ function fetch(url, opts) {
|
||||
body: request.body,
|
||||
signal: request.signal,
|
||||
timeout: request.timeout,
|
||||
|
@ -63,12 +63,12 @@ index 4b241bf..23fa901 100644
|
|||
+ ca: request.ca,
|
||||
};
|
||||
|
||||
// HTTP-redirect fetch step 9
|
||||
if (!isDomainOrSubdomain(request.url, locationURL)) {
|
||||
diff --git a/node_modules/node-fetch/lib/index.mjs b/node_modules/node-fetch/lib/index.mjs
|
||||
index ecf59af..b723a5c 100644
|
||||
index 49ee05e..bc639aa 100644
|
||||
--- a/node_modules/node-fetch/lib/index.mjs
|
||||
+++ b/node_modules/node-fetch/lib/index.mjs
|
||||
@@ -1229,6 +1229,9 @@ class Request {
|
||||
@@ -1251,6 +1251,9 @@ class Request {
|
||||
this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;
|
||||
this.counter = init.counter || input.counter || 0;
|
||||
this.agent = init.agent || input.agent;
|
||||
|
@ -78,7 +78,16 @@ index ecf59af..b723a5c 100644
|
|||
}
|
||||
|
||||
get method() {
|
||||
@@ -1512,7 +1515,8 @@ function fetch(url, opts) {
|
||||
@@ -1370,7 +1373,7 @@ function getNodeRequestOptions(request) {
|
||||
method: request.method,
|
||||
headers: exportNodeCompatibleHeaders(headers),
|
||||
agent
|
||||
- });
|
||||
+ }, request.ca ? { ca: request.ca } : {});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1554,7 +1557,8 @@ function fetch(url, opts) {
|
||||
body: request.body,
|
||||
signal: request.signal,
|
||||
timeout: request.timeout,
|
||||
|
@ -87,4 +96,4 @@ index ecf59af..b723a5c 100644
|
|||
+ ca: request.ca,
|
||||
};
|
||||
|
||||
// HTTP-redirect fetch step 9
|
||||
if (!isDomainOrSubdomain(request.url, locationURL)) {
|
Loading…
Add table
Add a link
Reference in a new issue