From 20fed45aee018c60bb633e1d81bdac69859e756f Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 2 Sep 2020 11:23:35 +0300 Subject: [PATCH] Update etebase dep. --- package.json | 2 +- src/LoginPage.tsx | 2 +- src/sync/SyncManager.ts | 2 +- yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 08c2c2c..4f39a78 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "@material-ui/lab": "^4.0.0-alpha.47", "@material-ui/pickers": "^3.2.10", "@material-ui/styles": "^4.6.0", - "etebase": "^0.10.1", + "etebase": "^0.10.2", "fuse.js": "^5.0.9-beta", "ical.js": "^1.4.0", "immutable": "^4.0.0-rc.12", diff --git a/src/LoginPage.tsx b/src/LoginPage.tsx index c885449..9ad0e81 100644 --- a/src/LoginPage.tsx +++ b/src/LoginPage.tsx @@ -53,7 +53,7 @@ export default function LoginPage() { dispatch(login(etebase)); } catch (e) { console.log(e); - if ((e instanceof Etebase.HTTPError) && (e.status === 404)) { + if ((e instanceof Etebase.HttpError) && (e.status === 404)) { setFetchError(new Error("Etebase server not found: are you sure the server URL is correct?")); } else { setFetchError(e); diff --git a/src/sync/SyncManager.ts b/src/sync/SyncManager.ts index 9857e7b..8185a4f 100644 --- a/src/sync/SyncManager.ts +++ b/src/sync/SyncManager.ts @@ -100,7 +100,7 @@ export class SyncManager { if (e instanceof Etebase.NetworkError) { // Ignore network errors return null; - } else if (e instanceof Etebase.HTTPError) { + } else if (e instanceof Etebase.HttpError) { switch (e.status) { case 401: // INVALID TOKEN case 403: // FORBIDDEN diff --git a/yarn.lock b/yarn.lock index 75a15d4..827ac9e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4644,10 +4644,10 @@ etag@~1.8.1: resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= -etebase@^0.10.1: - version "0.10.1" - resolved "https://registry.yarnpkg.com/etebase/-/etebase-0.10.1.tgz#a988149fbee607d23740df1bbce3f639e4d79abf" - integrity sha512-UQU90LPl5Vyx6Rb9NAB7Tp5EJCpHZG9EJhLWRBubXvhn7ToCxzMRBcB4KJNPY69N2bPqQRkUO9kNdypMkm3Jkg== +etebase@^0.10.2: + version "0.10.2" + resolved "https://registry.yarnpkg.com/etebase/-/etebase-0.10.2.tgz#66fa2a7deaca51b4694604be8ae04200b6fb3354" + integrity sha512-XxeSfhqpVngsznuySchQtIGgsmdfDKWXVmFvjKPWonzbQt3UdrX9Zxhrz2DrJWmavpb3HUZ8c5Y0Z4s+Pd3UgA== dependencies: "@msgpack/msgpack" "^1.12.2" libsodium-wrappers "0.7.6"