Socket
Socket
Sign inDemoInstall

@signalapp/libsignal-client

Package Overview
Dependencies
Maintainers
6
Versions
73
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.39.1 to 0.39.2

dist/SealedSenderMultiRecipientMessage.d.ts

3

dist/WebpSanitizer.js

@@ -17,3 +17,2 @@ "use strict";

const Native = require("../Native");
const BigIntUtil_1 = require("./zkgroup/internal/BigIntUtil");
/**

@@ -29,5 +28,5 @@ * Sanitize a WebP input.

function sanitize(input) {
Native.WebpSanitizer_Sanitize(input, (0, BigIntUtil_1.bufferFromBigUInt64BE)(BigInt(input.length)));
Native.WebpSanitizer_Sanitize(input);
}
exports.sanitize = sanitize;
//# sourceMappingURL=WebpSanitizer.js.map

@@ -21,2 +21,17 @@ //

interface SealedSenderMultiRecipientMessageRecipient {
deviceIds: number[];
registrationIds: number[];
rangeOffset: number;
rangeLen: number;
}
interface SealedSenderMultiRecipientMessage {
recipientMap: {
[serviceId: string]: SealedSenderMultiRecipientMessageRecipient;
};
excludedRecipients: string[];
offsetOfSharedData: number;
}
export abstract class IdentityKeyStore {

@@ -26,3 +41,7 @@ _getIdentityKey(): Promise<PrivateKey>;

_saveIdentity(name: ProtocolAddress, key: PublicKey): Promise<boolean>;
_isTrustedIdentity(name: ProtocolAddress, key: PublicKey, sending: boolean): Promise<boolean>;
_isTrustedIdentity(
name: ProtocolAddress,
key: PublicKey,
sending: boolean
): Promise<boolean>;
_getIdentity(name: ProtocolAddress): Promise<PublicKey | null>;

@@ -43,3 +62,6 @@ }

export abstract class SignedPreKeyStore {
_saveSignedPreKey(signedPreKeyId: number, record: SignedPreKeyRecord): Promise<void>;
_saveSignedPreKey(
signedPreKeyId: number,
record: SignedPreKeyRecord
): Promise<void>;
_getSignedPreKey(signedPreKeyId: number): Promise<SignedPreKeyRecord>;

@@ -49,3 +71,6 @@ }

export abstract class KyberPreKeyStore {
_saveKyberPreKey(kyberPreKeyId: number, record: KyberPreKeyRecord): Promise<void>;
_saveKyberPreKey(
kyberPreKeyId: number,
record: KyberPreKeyRecord
): Promise<void>;
_getKyberPreKey(kyberPreKeyId: number): Promise<KyberPreKeyRecord>;

@@ -56,4 +81,11 @@ _markKyberPreKeyUsed(kyberPreKeyId: number): Promise<void>;

export abstract class SenderKeyStore {
_saveSenderKey(sender: ProtocolAddress, distributionId: Uuid, record: SenderKeyRecord): Promise<void>;
_getSenderKey(sender: ProtocolAddress, distributionId: Uuid): Promise<SenderKeyRecord | null>;
_saveSenderKey(
sender: ProtocolAddress,
distributionId: Uuid,
record: SenderKeyRecord
): Promise<void>;
_getSenderKey(
sender: ProtocolAddress,
distributionId: Uuid
): Promise<SenderKeyRecord | null>;
}

@@ -66,7 +98,6 @@

export abstract class SyncInputStream extends Buffer {
}
export abstract class SyncInputStream extends Buffer {}
interface Wrapper<T> {
readonly _nativeHandle: T
readonly _nativeHandle: T;
}

@@ -289,2 +320,3 @@

export function SealedSenderDecryptionResult_Message(obj: Wrapper<SealedSenderDecryptionResult>): Buffer;
export function SealedSenderMultiRecipientMessage_Parse(buffer: Buffer): SealedSenderMultiRecipientMessage;
export function SealedSender_DecryptMessage(message: Buffer, trustRoot: Wrapper<PublicKey>, timestamp: Timestamp, localE164: string | null, localUuid: string, localDeviceId: number, sessionStore: SessionStore, identityStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore, kyberPrekeyStore: KyberPreKeyStore): Promise<SealedSenderDecryptionResult>;

@@ -440,3 +472,3 @@ export function SealedSender_DecryptToUsmc(ctext: Buffer, identityStore: IdentityKeyStore): Promise<UnidentifiedSenderMessageContent>;

export function ValidatingMac_Update(mac: Wrapper<ValidatingMac>, bytes: Buffer, offset: number, length: number): number;
export function WebpSanitizer_Sanitize(input: SyncInputStream, len: Buffer): void;
export function WebpSanitizer_Sanitize(input: SyncInputStream): void;
export function initLogger(maxLevel: LogLevel, callback: (level: LogLevel, target: string, file: string | null, line: number | null, message: string) => void): void

@@ -443,0 +475,0 @@ interface Aes256GcmSiv { readonly __type: unique symbol; }

{
"name": "@signalapp/libsignal-client",
"version": "0.39.1",
"version": "0.39.2",
"license": "AGPL-3.0-only",

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

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

@@ -56,4 +56,4 @@ },

"node-gyp": "^10.0.0",
"prebuildify": "^5.0.1",
"prettier": "^2.7.1",
"prebuildify": "^5.0.1",
"rimraf": "^3.0.1",

@@ -60,0 +60,0 @@ "source-map-support": "^0.5.19",

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