fix(fetch): import node-fetch-unix correctly

This commit is contained in:
Zoltan Kochan
2020-11-19 00:59:11 +02:00
parent 86d5ef16e9
commit 263f5d813f
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/fetch": patch
---
Import node-fetch-unix correctly.

View File

@@ -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