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

@signalapp/mock-server

Package Overview
Dependencies
Maintainers
6
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@signalapp/mock-server - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

package.json
{
"name": "@signalapp/mock-server",
"version": "4.0.0",
"version": "4.0.1",
"description": "Mock Signal Server for writing tests",

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

@@ -0,1 +1,2 @@

/// <reference types="node" />
import z from 'zod';

@@ -13,8 +14,8 @@ import { AciString, DeviceId, PniString, RegistrationId } from '../types';

}, "strip", z.ZodTypeAny, {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
}, {
keyId: number;
publicKey: string;
keyId: number;
signature: string;

@@ -29,7 +30,7 @@ }>;

}, "strip", z.ZodTypeAny, {
keyId: number;
publicKey: string;
}, {
keyId: number;
}, {
publicKey: string;
keyId: number;
}>, "many">;

@@ -41,8 +42,8 @@ pqPreKeys: z.ZodOptional<z.ZodArray<z.ZodObject<{

}, "strip", z.ZodTypeAny, {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
}, {
keyId: number;
publicKey: string;
keyId: number;
signature: string;

@@ -55,8 +56,8 @@ }>, "many">>;

}, "strip", z.ZodTypeAny, {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
}, {
keyId: number;
publicKey: string;
keyId: number;
signature: string;

@@ -69,52 +70,52 @@ }>>;

}, "strip", z.ZodTypeAny, {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
}, {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
}>>;
}, "strip", z.ZodTypeAny, {
identityKey: string;
preKeys: {
publicKey: string;
pqPreKeys?: {
keyId: number;
}[];
pqPreKeys?: {
publicKey: string;
keyId: number;
signature: string;
}[] | undefined;
pqLastResortPreKey?: {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
} | undefined;
signedPreKey?: {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
} | undefined;
}, {
identityKey: string;
preKeys: {
keyId: number;
publicKey: string;
keyId: number;
}[];
}, {
pqPreKeys?: {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
}[] | undefined;
pqLastResortPreKey?: {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
} | undefined;
signedPreKey?: {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
} | undefined;
identityKey: string;
preKeys: {
keyId: number;
publicKey: string;
}[];
}>;

@@ -128,15 +129,11 @@ export type DeviceKeys = z.infer<typeof DeviceKeysSchema>;

}, "strip", z.ZodTypeAny, {
type: number;
destinationDeviceId: DeviceId;
destinationRegistrationId: RegistrationId;
content: string;
type: number;
destinationDeviceId: number & {
__device_id: never;
};
destinationRegistrationId: number & {
__reg_id: never;
};
}, {
content: string;
type: number;
destinationDeviceId: number;
destinationRegistrationId: number;
content: string;
}>;

@@ -151,15 +148,11 @@ export type Message = z.infer<typeof MessageSchema>;

}, "strip", z.ZodTypeAny, {
type: number;
destinationDeviceId: DeviceId;
destinationRegistrationId: RegistrationId;
content: string;
type: number;
destinationDeviceId: number & {
__device_id: never;
};
destinationRegistrationId: number & {
__reg_id: never;
};
}, {
content: string;
type: number;
destinationDeviceId: number;
destinationRegistrationId: number;
content: string;
}>, "many">;

@@ -169,10 +162,6 @@ timestamp: z.ZodNumber;

messages: {
type: number;
destinationDeviceId: DeviceId;
destinationRegistrationId: RegistrationId;
content: string;
type: number;
destinationDeviceId: number & {
__device_id: never;
};
destinationRegistrationId: number & {
__reg_id: never;
};
}[];

@@ -182,6 +171,6 @@ timestamp: number;

messages: {
content: string;
type: number;
destinationDeviceId: number;
destinationRegistrationId: number;
content: string;
}[];

@@ -195,8 +184,4 @@ timestamp: number;

}, "strip", z.ZodTypeAny, {
registrationId: number & {
__reg_id: never;
};
pniRegistrationId: number & {
__reg_id: never;
};
registrationId: RegistrationId;
pniRegistrationId: RegistrationId;
}, {

@@ -214,8 +199,8 @@ registrationId: number;

}, "strip", z.ZodTypeAny, {
attributes: number;
members: number;
attributes: number;
addFromInviteLink: number;
}, {
attributes: number;
members: number;
attributes: number;
addFromInviteLink: number;

@@ -226,17 +211,17 @@ }>;

publicKey: Uint8Array;
version: 0;
accessControl: {
attributes: number;
members: number;
attributes: number;
addFromInviteLink: number;
};
version: 0;
members: unknown[];
}, {
publicKey: Uint8Array;
version: 0;
accessControl: {
attributes: number;
members: number;
attributes: number;
addFromInviteLink: number;
};
version: 0;
members: unknown[];

@@ -257,9 +242,9 @@ }>;

}, "strip", z.ZodTypeAny, {
encryptedUsername?: Buffer | undefined;
usernameHash: Buffer;
zkProof: Buffer;
encryptedUsername?: Buffer | undefined;
}, {
encryptedUsername?: string | undefined;
usernameHash: string;
zkProof: string;
encryptedUsername?: string | undefined;
}>;

@@ -266,0 +251,0 @@ export type UsernameConfirmation = z.infer<typeof UsernameConfirmationSchema>;

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

}),
pni: device.pni,
pni: (0, types_1.untagPni)(device.pni),
},

@@ -279,0 +279,0 @@ ];

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