UNPKG

@bbachain/web3.js

Version:

BBAChain Javascript API

14 lines (12 loc) 382 B
import * as nodeFetch from 'node-fetch'; export * from 'node-fetch'; export default async function ( input: nodeFetch.RequestInfo, init?: nodeFetch.RequestInit, ): Promise<nodeFetch.Response> { const processedInput = typeof input === 'string' && input.slice(0, 2) === '//' ? 'https:' + input : input; return await nodeFetch.default(processedInput, init); }