Make node-fetch available

This commit is contained in:
Dan Michael O. Heggø
2023-01-07 00:38:19 +01:00
parent 311d596c3d
commit f34078a491
5 changed files with 35 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ import {RequestRequestOptions} from '@octokit/types'
import {callAsyncFunction} from './async-function'
import {getRetryOptions, parseNumberArray, RetryOptions} from './retry-options'
import {wrapRequire} from './wrap-require'
import fetch from 'node-fetch'
process.on('unhandledRejection', handleError)
main().catch(handleError)
@@ -56,7 +57,8 @@ async function main(): Promise<void> {
core,
exec,
glob,
io
io,
fetch
},
script
)