Switch back from node-fetch to isomorphic-fetch

node-fetch utilizes Node.js standard library to work, so it
cannot be used in browsers. So we need to switch back to
isomorphic-fetch which works both in browsers and Node.js.

Change-Id: Idc8d18021a3226fb8339c99e3009dc53cbc15b2a
This commit is contained in:
Vitaly Kramskikh
2016-07-25 12:55:52 +03:00
parent 81f50b8b99
commit 1b9d90f7c0
2 changed files with 3 additions and 3 deletions

View File

@@ -25,8 +25,8 @@
"homepage": "http://www.openstack.org/",
"dependencies": {
"babel-polyfill": "^6.9.1",
"loglevel": "^1.4.1",
"node-fetch": "^1.5.3"
"isomorphic-fetch": "^2.2.1",
"loglevel": "^1.4.1"
},
"devDependencies": {
"babel-cli": "^6.10.1",

View File

@@ -1,5 +1,5 @@
import 'babel-polyfill';
import fetch from 'node-fetch';
import fetch from 'isomorphic-fetch';
import log from 'loglevel';
log.setLevel('INFO');