Upgrade node-fetch to 2.6.7
This commit is contained in:
99
patches/node-fetch+2.6.7.patch
Normal file
99
patches/node-fetch+2.6.7.patch
Normal file
@@ -0,0 +1,99 @@
|
||||
diff --git a/node_modules/node-fetch/lib/index.es.js b/node_modules/node-fetch/lib/index.es.js
|
||||
index 4852f7c..ae9611f 100644
|
||||
--- a/node_modules/node-fetch/lib/index.es.js
|
||||
+++ b/node_modules/node-fetch/lib/index.es.js
|
||||
@@ -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;
|
||||
+
|
||||
+ // Custom Signal Desktop option
|
||||
+ this.ca = init.ca || input.ca;
|
||||
}
|
||||
|
||||
get method() {
|
||||
@@ -1372,7 +1375,7 @@ function getNodeRequestOptions(request) {
|
||||
method: request.method,
|
||||
headers: exportNodeCompatibleHeaders(headers),
|
||||
agent
|
||||
- });
|
||||
+ }, request.ca ? { ca: request.ca } : {});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1556,7 +1559,8 @@ function fetch(url, opts) {
|
||||
body: request.body,
|
||||
signal: request.signal,
|
||||
timeout: request.timeout,
|
||||
- size: request.size
|
||||
+ size: request.size,
|
||||
+ ca: request.ca,
|
||||
};
|
||||
|
||||
if (!isDomainOrSubdomain(request.url, locationURL)) {
|
||||
diff --git a/node_modules/node-fetch/lib/index.js b/node_modules/node-fetch/lib/index.js
|
||||
index e5b04f1..ed8d34a 100644
|
||||
--- a/node_modules/node-fetch/lib/index.js
|
||||
+++ b/node_modules/node-fetch/lib/index.js
|
||||
@@ -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;
|
||||
+
|
||||
+ // Custom Signal Desktop option
|
||||
+ this.ca = init.ca || input.ca;
|
||||
}
|
||||
|
||||
get method() {
|
||||
@@ -1376,7 +1379,7 @@ function getNodeRequestOptions(request) {
|
||||
method: request.method,
|
||||
headers: exportNodeCompatibleHeaders(headers),
|
||||
agent
|
||||
- });
|
||||
+ }, request.ca ? { ca: request.ca } : {});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1560,7 +1563,8 @@ function fetch(url, opts) {
|
||||
body: request.body,
|
||||
signal: request.signal,
|
||||
timeout: request.timeout,
|
||||
- size: request.size
|
||||
+ size: request.size,
|
||||
+ ca: request.ca,
|
||||
};
|
||||
|
||||
if (!isDomainOrSubdomain(request.url, locationURL)) {
|
||||
diff --git a/node_modules/node-fetch/lib/index.mjs b/node_modules/node-fetch/lib/index.mjs
|
||||
index 49ee05e..bc639aa 100644
|
||||
--- a/node_modules/node-fetch/lib/index.mjs
|
||||
+++ b/node_modules/node-fetch/lib/index.mjs
|
||||
@@ -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;
|
||||
+
|
||||
+ // Custom Signal Desktop option
|
||||
+ this.ca = init.ca || input.ca;
|
||||
}
|
||||
|
||||
get method() {
|
||||
@@ -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,
|
||||
- size: request.size
|
||||
+ size: request.size,
|
||||
+ ca: request.ca,
|
||||
};
|
||||
|
||||
if (!isDomainOrSubdomain(request.url, locationURL)) {
|
Reference in New Issue
Block a user