@signalapp/libsignal-client 0.63.0 → 0.64.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/Native.d.ts CHANGED
@@ -160,9 +160,10 @@ export function AuthCredentialPresentation_GetRedemptionTime(presentationBytes:
160
160
  export function AuthCredentialPresentation_GetUuidCiphertext(presentationBytes: Buffer): Serialized<UuidCiphertext>;
161
161
  export function AuthCredentialWithPniResponse_CheckValidContents(bytes: Buffer): void;
162
162
  export function AuthCredentialWithPni_CheckValidContents(bytes: Buffer): void;
163
- export function AuthenticatedChatConnection_connect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, username: string, password: string, receiveStories: boolean, listener: ChatListener | null): CancellablePromise<AuthenticatedChatConnection>;
163
+ export function AuthenticatedChatConnection_connect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, username: string, password: string, receiveStories: boolean): CancellablePromise<AuthenticatedChatConnection>;
164
164
  export function AuthenticatedChatConnection_disconnect(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthenticatedChatConnection>): CancellablePromise<void>;
165
165
  export function AuthenticatedChatConnection_info(chat: Wrapper<AuthenticatedChatConnection>): ConnectionInfo;
166
+ export function AuthenticatedChatConnection_init_listener(chat: Wrapper<AuthenticatedChatConnection>, listener: ChatListener): void;
166
167
  export function AuthenticatedChatConnection_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthenticatedChatConnection>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): CancellablePromise<ChatResponse>;
167
168
  export function BackupAuthCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void;
168
169
  export function BackupAuthCredentialPresentation_GetBackupId(presentationBytes: Buffer): Buffer;
@@ -569,9 +570,10 @@ export function TESTING_ServerMessageAck_Create(): ServerMessageAck;
569
570
  export function TESTING_TestingHandleType_getValue(handle: Wrapper<TestingHandleType>): number;
570
571
  export function TokioAsyncContext_cancel(context: Wrapper<TokioAsyncContext>, rawCancellationId: bigint): void;
571
572
  export function TokioAsyncContext_new(): TokioAsyncContext;
572
- export function UnauthenticatedChatConnection_connect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>, listener: ChatListener | null): CancellablePromise<UnauthenticatedChatConnection>;
573
+ export function UnauthenticatedChatConnection_connect(asyncRuntime: Wrapper<TokioAsyncContext>, connectionManager: Wrapper<ConnectionManager>): CancellablePromise<UnauthenticatedChatConnection>;
573
574
  export function UnauthenticatedChatConnection_disconnect(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthenticatedChatConnection>): CancellablePromise<void>;
574
575
  export function UnauthenticatedChatConnection_info(chat: Wrapper<UnauthenticatedChatConnection>): ConnectionInfo;
576
+ export function UnauthenticatedChatConnection_init_listener(chat: Wrapper<UnauthenticatedChatConnection>, listener: ChatListener): void;
575
577
  export function UnauthenticatedChatConnection_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthenticatedChatConnection>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): CancellablePromise<ChatResponse>;
576
578
  export function UnidentifiedSenderMessageContent_Deserialize(data: Buffer): UnidentifiedSenderMessageContent;
577
579
  export function UnidentifiedSenderMessageContent_GetContentHint(m: Wrapper<UnidentifiedSenderMessageContent>): number;
@@ -2117,7 +2117,7 @@ limitations under the License.
2117
2117
 
2118
2118
  ```
2119
2119
 
2120
- ## boring 4.9.0
2120
+ ## boring 4.13.0
2121
2121
 
2122
2122
  ```
2123
2123
  Copyright 2011-2017 Google Inc.
@@ -2586,7 +2586,7 @@ express Statement of Purpose.
2586
2586
  CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2587
2587
  ```
2588
2588
 
2589
- ## boring-sys 4.9.0
2589
+ ## boring-sys 4.13.0
2590
2590
 
2591
2591
  ```
2592
2592
  /* Copyright (c) 2015, Google Inc.
@@ -2957,7 +2957,7 @@ DEALINGS IN THE SOFTWARE.
2957
2957
 
2958
2958
  ```
2959
2959
 
2960
- ## boring-sys 4.9.0
2960
+ ## boring-sys 4.13.0
2961
2961
 
2962
2962
  ```
2963
2963
  Copyright (c) 2014 Alex Crichton
@@ -3626,7 +3626,7 @@ DEALINGS IN THE SOFTWARE.
3626
3626
 
3627
3627
  ```
3628
3628
 
3629
- ## boring-sys 4.9.0
3629
+ ## boring-sys 4.13.0
3630
3630
 
3631
3631
  ```
3632
3632
  Copyright (c) 2015-2016 the fiat-crypto authors (see
@@ -4165,7 +4165,7 @@ SOFTWARE.
4165
4165
 
4166
4166
  ```
4167
4167
 
4168
- ## tokio-boring 4.9.0
4168
+ ## tokio-boring 4.13.0
4169
4169
 
4170
4170
  ```
4171
4171
  Copyright (c) 2016 Tokio contributors
@@ -5862,6 +5862,31 @@ SOFTWARE.
5862
5862
 
5863
5863
  ```
5864
5864
 
5865
+ ## openssl-macros 0.1.1
5866
+
5867
+ ```
5868
+ Copyright (c) 2022 Steven Fackler
5869
+
5870
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5871
+ of this software and associated documentation files (the "Software"), to deal
5872
+ in the Software without restriction, including without limitation the rights
5873
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5874
+ copies of the Software, and to permit persons to whom the Software is
5875
+ furnished to do so, subject to the following conditions:
5876
+
5877
+ The above copyright notice and this permission notice shall be included in all
5878
+ copies or substantial portions of the Software.
5879
+
5880
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5881
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5882
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5883
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5884
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5885
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5886
+ SOFTWARE.
5887
+
5888
+ ```
5889
+
5865
5890
  ## inout 0.1.3
5866
5891
 
5867
5892
  ```
@@ -7743,7 +7768,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
7743
7768
  SOFTWARE.
7744
7769
  ```
7745
7770
 
7746
- ## boring-sys 4.9.0, ring 0.17.8
7771
+ ## boring-sys 4.13.0, ring 0.17.8
7747
7772
 
7748
7773
  ```
7749
7774
  /* ====================================================================
package/dist/net.js CHANGED
@@ -79,9 +79,11 @@ class ConnectionInfoImpl {
79
79
  class UnauthenticatedChatConnection {
80
80
  static async connect(asyncContext, connectionManager, listener, options) {
81
81
  const nativeChatListener = makeNativeChatListener(asyncContext, listener);
82
- const connect = Native.UnauthenticatedChatConnection_connect(asyncContext, connectionManager, new WeakListenerWrapper(nativeChatListener));
82
+ const connect = Native.UnauthenticatedChatConnection_connect(asyncContext, connectionManager);
83
83
  const chat = await asyncContext.makeCancellable(options?.abortSignal, connect);
84
- return new UnauthenticatedChatConnection(asyncContext, newNativeHandle(chat), nativeChatListener);
84
+ const connection = newNativeHandle(chat);
85
+ Native.UnauthenticatedChatConnection_init_listener(connection, new WeakListenerWrapper(nativeChatListener));
86
+ return new UnauthenticatedChatConnection(asyncContext, connection, nativeChatListener);
85
87
  }
86
88
  constructor(asyncContext, chatService,
87
89
  // Unused except to keep the listener alive since the Rust code only holds a
@@ -105,9 +107,11 @@ exports.UnauthenticatedChatConnection = UnauthenticatedChatConnection;
105
107
  class AuthenticatedChatConnection {
106
108
  static async connect(asyncContext, connectionManager, username, password, receiveStories, listener, options) {
107
109
  const nativeChatListener = makeNativeChatListener(asyncContext, listener);
108
- const connect = Native.AuthenticatedChatConnection_connect(asyncContext, connectionManager, username, password, receiveStories, new WeakListenerWrapper(nativeChatListener));
110
+ const connect = Native.AuthenticatedChatConnection_connect(asyncContext, connectionManager, username, password, receiveStories);
109
111
  const chat = await asyncContext.makeCancellable(options?.abortSignal, connect);
110
- return new AuthenticatedChatConnection(asyncContext, newNativeHandle(chat), nativeChatListener);
112
+ const connection = newNativeHandle(chat);
113
+ Native.AuthenticatedChatConnection_init_listener(connection, new WeakListenerWrapper(nativeChatListener));
114
+ return new AuthenticatedChatConnection(asyncContext, connection, nativeChatListener);
111
115
  }
112
116
  constructor(asyncContext, chatService,
113
117
  // Unused except to keep the listener alive since the Rust code only holds a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/libsignal-client",
3
- "version": "0.63.0",
3
+ "version": "0.64.1",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",