@wireapp/core 27.5.0 → 27.6.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [27.6.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@27.5.0...@wireapp/core@27.6.0) (2022-06-30)
7
+
8
+
9
+ ### Features
10
+
11
+ * Give proper database name to corecrypto db ([#4306](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/issues/4306)) ([50c7a7a](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/commit/50c7a7a6ca97a0e848a0bb7d9a781e5410909368))
12
+
13
+
14
+
15
+
16
+
6
17
  # [27.5.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@27.4.2...@wireapp/core@27.5.0) (2022-06-30)
7
18
 
8
19
 
package/package.json CHANGED
@@ -73,6 +73,6 @@
73
73
  "test:project": "yarn dist && yarn test",
74
74
  "test:node": "nyc jasmine --config=jasmine.json"
75
75
  },
76
- "version": "27.5.0",
77
- "gitHead": "6a092d1dd292a463e4af4b21f09e8748e5c90a77"
76
+ "version": "27.6.0",
77
+ "gitHead": "8bc302af20f400f4c0cb3e15edfcaebb4494f1d0"
78
78
  }
@@ -71,6 +71,7 @@ const user_1 = require("./user/");
71
71
  const account_1 = require("./account/");
72
72
  const linkPreview_1 = require("./linkPreview");
73
73
  const encryptedStore_1 = require("./util/encryptedStore");
74
+ const bazinga64_1 = require("bazinga64");
74
75
  var TOPIC;
75
76
  (function (TOPIC) {
76
77
  TOPIC["ERROR"] = "Account.TOPIC.ERROR";
@@ -278,8 +279,8 @@ class Account extends events_1.EventEmitter {
278
279
  }
279
280
  const { userId, domain } = this.apiClient.context;
280
281
  return CoreCrypto.init({
281
- path: 'path/to/database',
282
- key: new TextDecoder().decode(key),
282
+ path: `corecrypto-${this.generateDbName(context)}`,
283
+ key: bazinga64_1.Encoder.toBase64(key).asString,
283
284
  clientId: `${userId}:${client.id}@${domain}`,
284
285
  });
285
286
  }