File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
import urljoin from "url-join" ;
2
2
import { HttpProxyAgent } from "http-proxy-agent" ;
3
3
import { HttpsProxyAgent } from "https-proxy-agent" ;
4
+ import nodeFetch from "node-fetch" ;
4
5
5
6
import SemanticReleaseOctokit from "./semantic-release-octokit.js" ;
6
7
@@ -15,6 +16,10 @@ export default function getClient({
15
16
auth : `token ${ githubToken } ` ,
16
17
baseUrl,
17
18
request : {
19
+ // TODO: we temporary use use `node-fetch` because `nock` does not support
20
+ // mocking Node's native fetch yet. The plan is to replace nock with `fetch-mock`
21
+ // before merging this PR.
22
+ fetch : nodeFetch ,
18
23
agent : proxy
19
24
? baseUrl && new URL ( baseUrl ) . protocol . replace ( ":" , "" ) === "http"
20
25
? // Some `proxy.headers` need to be passed as second arguments since version 6 or 7
You can’t perform that action at this time.
0 commit comments