Skip to content
This repository was archived by the owner on Aug 2, 2024. It is now read-only.

Commit f3ca06a

Browse files
authored
Fix import issue to unblock node-fetch update (#189)
* switch import to require
1 parent d1ae63d commit f3ca06a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/process-diff.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as parse from 'parse-diff';
2-
import fetch, {Headers} from 'node-fetch';
2+
const fetch = require('node-fetch');
3+
import {Headers} from 'node-fetch';
34

45
export async function processDiffUrl(
56
htmlUrl: string,

0 commit comments

Comments
 (0)