From 48a21954e688c00bfb7b7a86235a3b6ea6603527 Mon Sep 17 00:00:00 2001 From: hzbdesigner Date: Wed, 3 Oct 2018 10:54:56 +0800 Subject: [PATCH] update fetch --- package.json | 2 +- src/common/request.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 54d5c05..c7b2201 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "ledgerco": "1.2.1", "lodash": "4.17.5", "socket.io-client": "2.0.4", - "whatwg-fetch": "^2.0.4" + "isomorphic-fetch": "2.2.1" }, "devDependencies": { "babel-core": "^6.26.3", diff --git a/src/common/request.js b/src/common/request.js index c815e64..9cafc32 100644 --- a/src/common/request.js +++ b/src/common/request.js @@ -1,4 +1,4 @@ -import 'whatwg-fetch'; +import 'isomorphic-fetch'; import crypto from 'crypto'; const headers = {