@wireapp/core 34.1.0 → 34.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,14 +3,14 @@
3
3
  "./src/main/cryptography/AssetCryptography/crypto.node": "./src/main/cryptography/AssetCryptography/crypto.browser.js"
4
4
  },
5
5
  "dependencies": {
6
- "@wireapp/api-client": "^21.0.2",
6
+ "@wireapp/api-client": "^21.0.3",
7
7
  "@wireapp/commons": "^4.4.10",
8
8
  "@wireapp/core-crypto": "0.5.2",
9
9
  "@wireapp/cryptobox": "12.8.0",
10
10
  "@wireapp/promise-queue": "^1.3.4",
11
11
  "@wireapp/protocol-messaging": "1.39.0",
12
- "@wireapp/store-engine-dexie": "^1.7.10",
13
- "axios": "^0.27.2",
12
+ "@wireapp/store-engine-dexie": "^1.7.11",
13
+ "axios": "^1.1.3",
14
14
  "bazinga64": "5.11.10",
15
15
  "hash.js": "1.1.7",
16
16
  "http-status-codes": "2.2.0",
@@ -64,6 +64,6 @@
64
64
  "test": "jest",
65
65
  "watch": "tsc ---watch"
66
66
  },
67
- "version": "34.1.0",
68
- "gitHead": "d1769e7914896e9a730f264b8c4f90004d9986d9"
67
+ "version": "34.1.1",
68
+ "gitHead": "097af2ac03f7edafca8c09724286cd6722f0a452"
69
69
  }
@@ -80,6 +80,7 @@ const encryptedStore_1 = require("./util/encryptedStore");
80
80
  const bazinga64_1 = require("bazinga64");
81
81
  const mls_1 = require("./mls");
82
82
  const messageSender_1 = require("./conversation/message/messageSender");
83
+ const axios_1 = __importDefault(require("axios"));
83
84
  var TOPIC;
84
85
  (function (TOPIC) {
85
86
  TOPIC["ERROR"] = "Account.TOPIC.ERROR";
@@ -233,7 +234,7 @@ class Account extends events_1.EventEmitter {
233
234
  error.constructor.name === 'CryptoboxError' ||
234
235
  error instanceof store_engine_1.error.RecordNotFoundError ||
235
236
  error.constructor.name === store_engine_1.error.RecordNotFoundError.name;
236
- const notFoundOnBackend = ((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === http_status_codes_1.StatusCodes.NOT_FOUND;
237
+ const notFoundOnBackend = axios_1.default.isAxiosError(error) ? ((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === http_status_codes_1.StatusCodes.NOT_FOUND : false;
237
238
  if (notFoundInDatabase) {
238
239
  this.logger.log(`Could not find valid client in database "${(_b = this.storeEngine) === null || _b === void 0 ? void 0 : _b.storeName}".`);
239
240
  return this.registerClient(loginData, clientInfo, entropyData);