mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-30 04:52:04 -04:00
fix(fetch): import node-fetch-unix correctly
This commit is contained in:
5
.changeset/purple-sloths-appear.md
Normal file
5
.changeset/purple-sloths-appear.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/fetch": patch
|
||||
---
|
||||
|
||||
Import node-fetch-unix correctly.
|
||||
@@ -1,7 +1,7 @@
|
||||
import { requestRetryLogger } from '@pnpm/core-loggers'
|
||||
import { operation, RetryTimeoutOptions } from '@zkochan/retry'
|
||||
import { Request, RequestInit as NodeRequestInit, Response } from 'node-fetch'
|
||||
import fetch = require('node-fetch-unix')
|
||||
import fetch from 'node-fetch-unix'
|
||||
|
||||
// retry settings
|
||||
const MIN_TIMEOUT = 10
|
||||
|
||||
Reference in New Issue
Block a user