File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
const { getGlobalDispatcher } = require ( './lib/global' )
4
- const fetchImpl = require ( './lib/fetch' )
4
+ const fetchImpl = require ( './lib/fetch' ) . fetch
5
5
6
6
module . exports . fetch = async function fetch ( resource ) {
7
7
const dispatcher = ( arguments [ 1 ] && arguments [ 1 ] . dispatcher ) || getGlobalDispatcher ( )
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if (nodeMajor > 16 || (nodeMajor === 16 && nodeMinor >= 8)) {
89
89
let fetchImpl = null
90
90
module . exports . fetch = async function fetch ( resource ) {
91
91
if ( ! fetchImpl ) {
92
- fetchImpl = require ( './lib/fetch' )
92
+ fetchImpl = require ( './lib/fetch' ) . fetch
93
93
}
94
94
const dispatcher = ( arguments [ 1 ] && arguments [ 1 ] . dispatcher ) || getGlobalDispatcher ( )
95
95
try {
Original file line number Diff line number Diff line change @@ -2039,4 +2039,9 @@ async function httpNetworkFetch (
2039
2039
}
2040
2040
}
2041
2041
2042
- module . exports = fetch
2042
+ module . exports = {
2043
+ fetch,
2044
+ Fetch,
2045
+ fetching,
2046
+ finalizeAndReportTiming
2047
+ }
You can’t perform that action at this time.
0 commit comments