feat(server): optimized command for importing commits from other servers (#1113)
This commit is contained in:
committed by
GitHub
parent
0379d370d5
commit
5f48ae8086
@@ -1,5 +1,7 @@
|
||||
// Since Node v<18 does not provide fetch, we need to pass it in the options object. Note that fetch must return a WHATWG compliant stream, so cross-fetch won't work, but node/undici's implementation will.
|
||||
import { fetch } from 'undici'
|
||||
/**
|
||||
* Since Node v<18 does not provide fetch, we need to pass it in the options object. Popular fetch implementations like cross-fetch or node-fetch should work
|
||||
*/
|
||||
import fetch from 'cross-fetch'
|
||||
import ObjectLoader from '../../dist/objectloader.js'
|
||||
|
||||
const loader = new ObjectLoader({
|
||||
|
||||
Reference in New Issue
Block a user