diff --git a/package.json b/package.json index aa673d72..253b4a3a 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "debug": "^2.6.8", "detect-node": "^2.0.3", "ecurve": "^1.0.5", - "isomorphic-fetch": "^2.2.1", + "fetch-ponyfill": "^4.1.0", "lodash": "^4.16.4", "postinstall-build": "^5.0.1", "secure-random": "^1.1.1", diff --git a/src/api/transports/http.js b/src/api/transports/http.js index 9ae0fd5f..835f4b70 100644 --- a/src/api/transports/http.js +++ b/src/api/transports/http.js @@ -1,8 +1,9 @@ -import fetch from 'isomorphic-fetch'; +import fetchPonyfill from 'fetch-ponyfill'; +import Promise from 'bluebird'; import newDebug from 'debug'; - import Transport from './base'; +const { fetch } = fetchPonyfill(Promise); const debug = newDebug('steem:http'); export default class HttpTransport extends Transport {