From 1b9d90f7c090d2825a4e89d20ab105b5b0bf9cfd Mon Sep 17 00:00:00 2001 From: Vitaly Kramskikh Date: Mon, 25 Jul 2016 12:55:52 +0300 Subject: [PATCH] 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 --- package.json | 4 ++-- src/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 08dc042..a38f038 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.js b/src/index.js index 13a2dfd..b86fa54 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ import 'babel-polyfill'; -import fetch from 'node-fetch'; +import fetch from 'isomorphic-fetch'; import log from 'loglevel'; log.setLevel('INFO');