From 0ee44660df02f1e804d71b20cc84c8b3ca53d99a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Quixada=CC=81?= Date: Thu, 2 Nov 2017 15:23:39 -0200 Subject: [PATCH] Dropped isomorphic-fetch in favor of cross-fetch (React Native compatible). --- lib/HTTPStore/index.js | 2 +- lib/__tests__/fixtures/createFlux.js | 2 +- package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/HTTPStore/index.js b/lib/HTTPStore/index.js index e2beb0c..1467863 100755 --- a/lib/HTTPStore/index.js +++ b/lib/HTTPStore/index.js @@ -1,6 +1,6 @@ import 'setimmediate'; import _ from 'lodash'; -import fetch from 'isomorphic-fetch'; +import fetch from 'cross-fetch'; import url from 'url'; import Store from '../Store'; diff --git a/lib/__tests__/fixtures/createFlux.js b/lib/__tests__/fixtures/createFlux.js index 094cf4b..0d229f9 100755 --- a/lib/__tests__/fixtures/createFlux.js +++ b/lib/__tests__/fixtures/createFlux.js @@ -1,6 +1,6 @@ import url from 'url'; -import fetch from 'isomorphic-fetch'; +import fetch from 'cross-fetch'; import { Flux, MemoryStore, HTTPStore, Action } from '../../'; diff --git a/package.json b/package.json index a6241bd..543e479 100644 --- a/package.json +++ b/package.json @@ -119,12 +119,12 @@ "babel-polyfill": "^6.3.14", "babel-runtime": "^6.3.19", "bluebird": "^3.1.1", + "cross-fetch": "^1.1.0", "deep-equal": "^1.0.1", - "isomorphic-fetch": "^2.2.1", "lodash": "^4.0.0", "path-to-regexp": "^1.2.1", - "setimmediate": "^1.0.4", "prop-types": "^15.6.0", + "setimmediate": "^1.0.4", "shallowequal": "^1.0.2" }, "peerDependencies": {