Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@signalapp/libsignal-client

Package Overview
Dependencies
Maintainers
6
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@signalapp/libsignal-client - npm Package Compare versions

Comparing version 0.58.0 to 0.58.1

4

dist/net.d.ts

@@ -140,3 +140,3 @@ /// <reference types="node" />

private readonly asyncContext;
readonly chatService: Wrapper<Native.Chat>;
readonly chatService: Wrapper<Native.AuthChat>;
constructor(asyncContext: TokioAsyncContext, connectionManager: ConnectionManager, username: string, password: string, receiveStories: boolean, listener: ChatServiceListener);

@@ -159,3 +159,3 @@ disconnect(): Promise<void>;

private readonly asyncContext;
readonly chatService: Wrapper<Native.Chat>;
readonly chatService: Wrapper<Native.UnauthChat>;
constructor(asyncContext: TokioAsyncContext, connectionManager: ConnectionManager, listener: ConnectionEventsListener);

@@ -162,0 +162,0 @@ disconnect(): Promise<void>;

@@ -68,3 +68,3 @@ "use strict";

this.asyncContext = asyncContext;
this.chatService = newNativeHandle(Native.ChatService_new(connectionManager, username, password, receiveStories));
this.chatService = newNativeHandle(Native.ChatService_new_auth(connectionManager, username, password, receiveStories));
const nativeChatListener = {

@@ -84,3 +84,3 @@ _incoming_message(envelope, timestamp, ack) {

disconnect() {
return Native.ChatService_disconnect(this.asyncContext, this.chatService);
return Native.ChatService_disconnect_auth(this.asyncContext, this.chatService);
}

@@ -104,3 +104,3 @@ connect(options) {

this.asyncContext = asyncContext;
this.chatService = newNativeHandle(Native.ChatService_new(connectionManager, '', '', false));
this.chatService = newNativeHandle(Native.ChatService_new_unauth(connectionManager));
const nativeChatListener = {

@@ -120,3 +120,3 @@ _incoming_message(_envelope, _timestamp, _ack) {

disconnect() {
return Native.ChatService_disconnect(this.asyncContext, this.chatService);
return Native.ChatService_disconnect_unauth(this.asyncContext, this.chatService);
}

@@ -123,0 +123,0 @@ connect(options) {

@@ -185,12 +185,14 @@ //

export function CdsiLookup_token(lookup: Wrapper<CdsiLookup>): Buffer;
export function ChatService_SetListenerAuth(runtime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>, makeListener: MakeChatListener | null): void;
export function ChatService_SetListenerUnauth(runtime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>, makeListener: MakeChatListener | null): void;
export function ChatService_auth_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): Promise<ChatResponse>;
export function ChatService_auth_send_and_debug(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): Promise<ResponseAndDebugInfo>;
export function ChatService_connect_auth(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>): Promise<ChatServiceDebugInfo>;
export function ChatService_connect_unauth(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>): Promise<ChatServiceDebugInfo>;
export function ChatService_disconnect(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>): Promise<void>;
export function ChatService_new(connectionManager: Wrapper<ConnectionManager>, username: string, password: string, receiveStories: boolean): Chat;
export function ChatService_unauth_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): Promise<ChatResponse>;
export function ChatService_unauth_send_and_debug(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): Promise<ResponseAndDebugInfo>;
export function ChatService_SetListenerAuth(runtime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthChat>, makeListener: MakeChatListener | null): void;
export function ChatService_SetListenerUnauth(runtime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthChat>, makeListener: MakeChatListener | null): void;
export function ChatService_auth_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthChat>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): Promise<ChatResponse>;
export function ChatService_auth_send_and_debug(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthChat>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): Promise<ResponseAndDebugInfo>;
export function ChatService_connect_auth(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthChat>): Promise<ChatServiceDebugInfo>;
export function ChatService_connect_unauth(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthChat>): Promise<ChatServiceDebugInfo>;
export function ChatService_disconnect_auth(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<AuthChat>): Promise<void>;
export function ChatService_disconnect_unauth(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthChat>): Promise<void>;
export function ChatService_new_auth(connectionManager: Wrapper<ConnectionManager>, username: string, password: string, receiveStories: boolean): AuthChat;
export function ChatService_new_unauth(connectionManager: Wrapper<ConnectionManager>): UnauthChat;
export function ChatService_unauth_send(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthChat>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): Promise<ChatResponse>;
export function ChatService_unauth_send_and_debug(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<UnauthChat>, httpRequest: Wrapper<HttpRequest>, timeoutMillis: number): Promise<ResponseAndDebugInfo>;
export function CiphertextMessage_FromPlaintextContent(m: Wrapper<PlaintextContent>): CiphertextMessage;

@@ -504,5 +506,5 @@ export function CiphertextMessage_Serialize(obj: Wrapper<CiphertextMessage>): Buffer;

export function TESTING_ChatServiceResponseConvert(bodyPresent: boolean): ChatResponse;
export function TESTING_ChatService_InjectConnectionInterrupted(chat: Wrapper<Chat>): void;
export function TESTING_ChatService_InjectIntentionalDisconnect(chat: Wrapper<Chat>): void;
export function TESTING_ChatService_InjectRawServerRequest(chat: Wrapper<Chat>, bytes: Buffer): void;
export function TESTING_ChatService_InjectConnectionInterrupted(chat: Wrapper<AuthChat>): void;
export function TESTING_ChatService_InjectIntentionalDisconnect(chat: Wrapper<AuthChat>): void;
export function TESTING_ChatService_InjectRawServerRequest(chat: Wrapper<AuthChat>, bytes: Buffer): void;
export function TESTING_ErrorOnBorrowAsync(_input: null): Promise<void>;

@@ -563,4 +565,4 @@ export function TESTING_ErrorOnBorrowIo(asyncRuntime: Wrapper<NonSuspendingBackgroundThreadRuntime>, _input: null): Promise<void>;

interface Aes256GcmSiv { readonly __type: unique symbol; }
interface AuthChat { readonly __type: unique symbol; }
interface CdsiLookup { readonly __type: unique symbol; }
interface Chat { readonly __type: unique symbol; }
interface CiphertextMessage { readonly __type: unique symbol; }

@@ -621,4 +623,5 @@ interface ComparableBackup { readonly __type: unique symbol; }

interface TokioAsyncContext { readonly __type: unique symbol; }
interface UnauthChat { readonly __type: unique symbol; }
interface UnidentifiedSenderMessageContent { readonly __type: unique symbol; }
interface UuidCiphertext { readonly __type: unique symbol; }
interface ValidatingMac { readonly __type: unique symbol; }
{
"name": "@signalapp/libsignal-client",
"version": "0.58.0",
"version": "0.58.1",
"license": "AGPL-3.0-only",

@@ -28,2 +28,3 @@ "main": "dist/index.js",

"format": "p() { prettier ${@:- --write} '**/*.{css,js,json,md,scss,ts,tsx}' ../rust/bridge/node/bin/Native.d.ts.in; }; p",
"format-check": "p() { prettier ${@:- --check} '**/*.{css,js,json,md,scss,ts,tsx}' ../rust/bridge/node/bin/Native.d.ts.in; }; p",
"prepack": "cp ../acknowledgments/acknowledgments.md dist"

@@ -30,0 +31,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc