@wireapp/core 34.1.1 → 34.1.3

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,15 +3,15 @@
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.3",
7
- "@wireapp/commons": "^4.4.10",
6
+ "@wireapp/api-client": "^21.0.5",
7
+ "@wireapp/commons": "^4.5.0",
8
8
  "@wireapp/core-crypto": "0.5.2",
9
9
  "@wireapp/cryptobox": "12.8.0",
10
- "@wireapp/promise-queue": "^1.3.4",
11
- "@wireapp/protocol-messaging": "1.39.0",
12
- "@wireapp/store-engine-dexie": "^1.7.11",
13
- "axios": "^1.1.3",
14
- "bazinga64": "5.11.10",
10
+ "@wireapp/promise-queue": "^1.3.5",
11
+ "@wireapp/protocol-messaging": "^1.39.0",
12
+ "@wireapp/store-engine-dexie": "^1.7.12",
13
+ "axios": "1.1.2",
14
+ "bazinga64": "5.11.11",
15
15
  "hash.js": "1.1.7",
16
16
  "http-status-codes": "2.2.0",
17
17
  "idb": "7.1.0",
@@ -24,19 +24,18 @@
24
24
  "@babel/preset-env": "^7.19.1",
25
25
  "@babel/preset-typescript": "^7.18.6",
26
26
  "@faker-js/faker": "^7.6.0",
27
+ "@swc/core": "^1.3.10",
28
+ "@swc/jest": "^0.2.23",
27
29
  "@types/babel__core": "^7",
28
- "@types/jest": "29.2.0",
30
+ "@types/jest": "^29.2.0",
29
31
  "@types/long": "4.0.1",
30
- "@types/node": "^18.11.2",
31
32
  "@types/tough-cookie": "4.0.2",
32
33
  "@wireapp/commons": "workspace:^",
33
34
  "@wireapp/store-engine-dexie": "workspace:^",
34
35
  "commander": "9.4.1",
35
36
  "cross-env": "7.0.3",
36
37
  "dotenv-defaults": "5.0.2",
37
- "fake-indexeddb": "4.0.0",
38
- "jest": "29.2.1",
39
- "jest-jasmine2": "29.2.1",
38
+ "jest": "^29.2.1",
40
39
  "jest-websocket-mock": "2.4.0",
41
40
  "mock-socket": "9.1.5",
42
41
  "nock": "13.2.9"
@@ -62,8 +61,9 @@
62
61
  "start:echo": "cross-env NODE_DEBUG='@wireapp/core*' node src/demo/echo.js",
63
62
  "start:sender": "cross-env NODE_DEBUG='@wireapp/core*' node src/demo/sender.js",
64
63
  "test": "jest",
65
- "watch": "tsc ---watch"
64
+ "test:coverage": "jest --coverage",
65
+ "watch": "tsc --watch"
66
66
  },
67
- "version": "34.1.1",
68
- "gitHead": "097af2ac03f7edafca8c09724286cd6722f0a452"
67
+ "version": "34.1.3",
68
+ "gitHead": "1944c0993e0b7117d3334ffb381556d08a049ddf"
69
69
  }
@@ -2,6 +2,7 @@ import { AddProposalArgs, ConversationConfiguration, ConversationId, CoreCrypto,
2
2
  import { APIClient } from '@wireapp/api-client';
3
3
  import { QualifiedUsers } from '../../conversation';
4
4
  import { MLSCallbacks, MLSConfig } from '../types';
5
+ import { PostMlsMessageResponse } from '@wireapp/api-client/src/conversation';
5
6
  export declare const optionalToUint8Array: (array: Uint8Array | []) => Uint8Array;
6
7
  export declare class MLSService {
7
8
  readonly config: MLSConfig | undefined;
@@ -11,7 +12,7 @@ export declare class MLSService {
11
12
  constructor(config: MLSConfig | undefined, apiClient: APIClient, coreCryptoClientProvider: () => CoreCrypto | undefined);
12
13
  private get coreCryptoClient();
13
14
  private uploadCommitBundle;
14
- addUsersToExistingConversation(groupId: Uint8Array, invitee: Invitee[]): Promise<import("@wireapp/api-client/src/conversation").PostMlsMessageResponse | null>;
15
+ addUsersToExistingConversation(groupId: Uint8Array, invitee: Invitee[]): Promise<PostMlsMessageResponse | null>;
15
16
  configureMLSCallbacks({ groupIdFromConversationId, ...coreCryptoCallbacks }: MLSCallbacks): void;
16
17
  getKeyPackagesPayload(qualifiedUsers: QualifiedUsers[]): Promise<Invitee[]>;
17
18
  getEpoch(groupId: Uint8Array): Promise<number>;
@@ -31,9 +32,9 @@ export declare class MLSService {
31
32
  * @param generateCommit The function that will generate a coreCrypto CommitBundle
32
33
  */
33
34
  private processCommitAction;
34
- updateKeyingMaterial(conversationId: ConversationId): Promise<import("@wireapp/api-client/src/conversation").PostMlsMessageResponse | null>;
35
+ updateKeyingMaterial(conversationId: ConversationId): Promise<PostMlsMessageResponse | null>;
35
36
  createConversation(conversationId: ConversationId, configuration?: ConversationConfiguration): Promise<any>;
36
- removeClientsFromConversation(conversationId: ConversationId, clientIds: Uint8Array[]): Promise<import("@wireapp/api-client/src/conversation").PostMlsMessageResponse | null>;
37
+ removeClientsFromConversation(conversationId: ConversationId, clientIds: Uint8Array[]): Promise<PostMlsMessageResponse | null>;
37
38
  commitPendingProposals(groupId: ConversationId): Promise<void>;
38
39
  conversationExists(conversationId: ConversationId): Promise<boolean>;
39
40
  clientValidKeypackagesCount(): Promise<number>;