From e4c2cece16d3e4d1aadbba35196947a4846b074c Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Fri, 15 Feb 2019 16:11:22 +0000 Subject: [PATCH] Remove the unneeded isomorphic fetch. --- package.json | 2 -- src/api/EteSync.test.ts | 1 - src/api/EteSync.ts | 2 -- yarn.lock | 7 +------ 4 files changed, 1 insertion(+), 11 deletions(-) diff --git a/package.json b/package.json index e1ea727..94c639f 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "@material-ui/icons": "^3.0.2", "ical.js": "^1.2.2", "immutable": "^4.0.0-rc.12", - "isomorphic-fetch": "^2.2.1", "localforage": "^1.7.3", "moment": "^2.24.0", "node-rsa": "^1.0.3", @@ -37,7 +36,6 @@ "eject": "react-scripts eject" }, "devDependencies": { - "@types/isomorphic-fetch": "^0.0.35", "@types/jest": "^24.0.4", "@types/node": "^11.9.3", "@types/node-rsa": "^1.0.0", diff --git a/src/api/EteSync.test.ts b/src/api/EteSync.test.ts index 3e3106f..92308ab 100644 --- a/src/api/EteSync.test.ts +++ b/src/api/EteSync.test.ts @@ -1,6 +1,5 @@ import * as EteSync from './EteSync'; -import * as fetch from 'isomorphic-fetch'; import * as sjcl from 'sjcl'; const testApiBase = 'http://localhost:8000'; diff --git a/src/api/EteSync.ts b/src/api/EteSync.ts index a6a3709..93e0141 100644 --- a/src/api/EteSync.ts +++ b/src/api/EteSync.ts @@ -3,8 +3,6 @@ import URI from 'urijs'; import * as Constants from './Constants'; -import fetch from 'isomorphic-fetch'; - import { byte, base64, stringToByteArray } from './Helpers'; import { CryptoManager, AsymmetricKeyPair, HMAC_SIZE_BYTES } from './Crypto'; export { CryptoManager, AsymmetricCryptoManager, AsymmetricKeyPair, deriveKey, genUid } from './Crypto'; diff --git a/yarn.lock b/yarn.lock index 602c716..d7917df 100644 --- a/yarn.lock +++ b/yarn.lock @@ -943,11 +943,6 @@ resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.2.tgz#0e670ea254d559241b6eeb3894f8754991e73220" integrity sha512-ui3WwXmjTaY73fOQ3/m3nnajU/Orhi6cEu5rzX+BrAAJxa3eITXZ5ch9suPqtM03OWhAHhPSyBGCN4UKoxO20Q== -"@types/isomorphic-fetch@^0.0.35": - version "0.0.35" - resolved "https://registry.yarnpkg.com/@types/isomorphic-fetch/-/isomorphic-fetch-0.0.35.tgz#c1c0d402daac324582b6186b91f8905340ea3361" - integrity sha512-DaZNUvLDCAnCTjgwxgiL1eQdxIKEpNLOlTNtAgnZc50bG2copGhRrFN9/PxPBuJe+tZVLCbQ7ls0xveXVRPkvw== - "@types/jest-diff@*": version "20.0.1" resolved "https://registry.yarnpkg.com/@types/jest-diff/-/jest-diff-20.0.1.tgz#35cc15b9c4f30a18ef21852e255fdb02f6d59b89" @@ -5403,7 +5398,7 @@ isobject@^3.0.0, isobject@^3.0.1: resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= -isomorphic-fetch@^2.1.1, isomorphic-fetch@^2.2.1: +isomorphic-fetch@^2.1.1: version "2.2.1" resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" integrity sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=