1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Merge pull request #169 from oceanprotocol/fix/fetch

revert fetch require
This commit is contained in:
Matthias Kretschmann 2020-07-17 14:09:37 +02:00 committed by GitHub
commit f3ecb170fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,10 @@
import fetch, { BodyInit, RequestInit, Response } from 'node-fetch'
import { BodyInit, RequestInit, Response } from 'node-fetch'
import fs from 'fs'
import { Logger } from '../../utils'
import save from 'save-file'
const fetch = require('node-fetch')
/**
* Provides a common interface to web services.
*/