Socket
Socket
Sign inDemoInstall

@signalapp/libsignal-client

Package Overview
Dependencies
Maintainers
6
Versions
72
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.46.0 to 0.46.1

25

dist/net.d.ts

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

*
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()}.
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()} (as a
* rejection of the promise).
*/

@@ -87,5 +88,23 @@ unauthenticatedFetchAndDebug(chatRequest: ChatRequest): Promise<Native.ResponseAndDebugInfo>;

*
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()}.
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()} (as a
* rejection of the promise).
*/
unauthenticatedFetch(chatRequest: ChatRequest): Promise<Native.ChatResponse>;
/**
* Sends request to the Chat Service over an authenticated channel.
*
* In addition to the response, an object containing debug information about the request flow is
* returned.
*
* @throws {ChatServiceInactive} if you haven't called {@link #connectAuthenticated()} (as a
* rejection of the promise).
*/
authenticatedFetchAndDebug(chatRequest: ChatRequest): Promise<Native.ResponseAndDebugInfo>;
/**
* Sends request to the Chat Service over an authenticated channel.
*
* @throws {ChatServiceInactive} if you haven't called {@link #connectAuthenticated()} (as a
* rejection of the promise).
*/
authenticatedFetch(chatRequest: ChatRequest): Promise<Native.ChatResponse>;
static buildHttpRequest(chatRequest: ChatRequest): {

@@ -119,2 +138,4 @@ _nativeHandle: Native.HttpRequest;

* unset by calling {@link #clearProxy}.
*
* Throws if the host or port is structurally invalid, such as a port that doesn't fit in u16.
*/

@@ -121,0 +142,0 @@ setProxy(host: string, port: number): void;

@@ -70,3 +70,4 @@ "use strict";

*
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()}.
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()} (as a
* rejection of the promise).
*/

@@ -79,3 +80,4 @@ async unauthenticatedFetchAndDebug(chatRequest) {

*
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()}.
* @throws {ChatServiceInactive} if you haven't called {@link #connectUnauthenticated()} (as a
* rejection of the promise).
*/

@@ -85,2 +87,23 @@ async unauthenticatedFetch(chatRequest) {

}
/**
* Sends request to the Chat Service over an authenticated channel.
*
* In addition to the response, an object containing debug information about the request flow is
* returned.
*
* @throws {ChatServiceInactive} if you haven't called {@link #connectAuthenticated()} (as a
* rejection of the promise).
*/
async authenticatedFetchAndDebug(chatRequest) {
return await Native.ChatService_auth_send_and_debug(this.asyncContext, this.chatService, ChatService.buildHttpRequest(chatRequest), chatRequest.timeoutMillis ?? DEFAULT_CHAT_REQUEST_TIMEOUT_MILLIS);
}
/**
* Sends request to the Chat Service over an authenticated channel.
*
* @throws {ChatServiceInactive} if you haven't called {@link #connectAuthenticated()} (as a
* rejection of the promise).
*/
async authenticatedFetch(chatRequest) {
return await Native.ChatService_auth_send(this.asyncContext, this.chatService, ChatService.buildHttpRequest(chatRequest), chatRequest.timeoutMillis ?? DEFAULT_CHAT_REQUEST_TIMEOUT_MILLIS);
}
static buildHttpRequest(chatRequest) {

@@ -126,2 +149,4 @@ const { verb, path, body, headers } = chatRequest;

* unset by calling {@link #clearProxy}.
*
* Throws if the host or port is structurally invalid, such as a port that doesn't fit in u16.
*/

@@ -128,0 +153,0 @@ setProxy(host, port) {

@@ -171,2 +171,4 @@ //

export function CdsiLookup_token(lookup: Wrapper<CdsiLookup>): Buffer;
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>;

@@ -173,0 +175,0 @@ export function ChatService_connect_unauth(asyncRuntime: Wrapper<TokioAsyncContext>, chat: Wrapper<Chat>): Promise<ChatServiceDebugInfo>;

2

package.json
{
"name": "@signalapp/libsignal-client",
"version": "0.46.0",
"version": "0.46.1",
"license": "AGPL-3.0-only",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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