Upgrade node-fetch to latest version, v2.6.0
This commit is contained in:
parent
4df52c5349
commit
b32445cd20
5 changed files with 230 additions and 20 deletions
36
patches/node-fetch+2.6.0.patch
Normal file
36
patches/node-fetch+2.6.0.patch
Normal file
|
@ -0,0 +1,36 @@
|
|||
diff --git a/node_modules/node-fetch/lib/index.es.js b/node_modules/node-fetch/lib/index.es.js
|
||||
index 37d022c..d3199df 100644
|
||||
--- a/node_modules/node-fetch/lib/index.es.js
|
||||
+++ b/node_modules/node-fetch/lib/index.es.js
|
||||
@@ -1398,6 +1398,7 @@ function fetch(url, opts) {
|
||||
// build request object
|
||||
const request = new Request(url, opts);
|
||||
const options = getNodeRequestOptions(request);
|
||||
+ options.ca = opts.ca;
|
||||
|
||||
const send = (options.protocol === 'https:' ? https : http).request;
|
||||
const signal = request.signal;
|
||||
diff --git a/node_modules/node-fetch/lib/index.js b/node_modules/node-fetch/lib/index.js
|
||||
index daa44bc..9edbbd3 100644
|
||||
--- a/node_modules/node-fetch/lib/index.js
|
||||
+++ b/node_modules/node-fetch/lib/index.js
|
||||
@@ -1402,6 +1402,7 @@ function fetch(url, opts) {
|
||||
// build request object
|
||||
const request = new Request(url, opts);
|
||||
const options = getNodeRequestOptions(request);
|
||||
+ options.ca = opts.ca;
|
||||
|
||||
const send = (options.protocol === 'https:' ? https : http).request;
|
||||
const signal = request.signal;
|
||||
diff --git a/node_modules/node-fetch/lib/index.mjs b/node_modules/node-fetch/lib/index.mjs
|
||||
index e571ea6..67399a0 100644
|
||||
--- a/node_modules/node-fetch/lib/index.mjs
|
||||
+++ b/node_modules/node-fetch/lib/index.mjs
|
||||
@@ -1396,6 +1396,7 @@ function fetch(url, opts) {
|
||||
// build request object
|
||||
const request = new Request(url, opts);
|
||||
const options = getNodeRequestOptions(request);
|
||||
+ options.ca = opts.ca;
|
||||
|
||||
const send = (options.protocol === 'https:' ? https : http).request;
|
||||
const signal = request.signal;
|
Loading…
Add table
Add a link
Reference in a new issue