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.3.0 to 4.4.0

2

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

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

@@ -12,7 +12,7 @@ import z from 'zod';

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

@@ -25,8 +25,8 @@ export type ServerPreKey = z.infer<typeof PreKeySchema>;

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

@@ -36,3 +36,2 @@ }>;

export declare const DeviceKeysSchema: z.ZodObject<{
identityKey: z.ZodString;
preKeys: z.ZodArray<z.ZodObject<{

@@ -42,7 +41,7 @@ keyId: z.ZodNumber;

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

@@ -54,8 +53,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;

@@ -68,8 +67,8 @@ }>, "many">>;

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

@@ -82,51 +81,49 @@ }>>;

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

@@ -141,11 +138,11 @@ }>;

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

@@ -160,11 +157,11 @@ export type Message = z.infer<typeof MessageSchema>;

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

@@ -174,6 +171,6 @@ timestamp: z.ZodNumber;

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

@@ -183,6 +180,6 @@ timestamp: number;

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

@@ -200,11 +197,11 @@ timestamp: number;

}, "strip", z.ZodTypeAny, {
fetchesMessages: boolean;
registrationId: RegistrationId;
pniRegistrationId: RegistrationId;
name: string;
}, {
fetchesMessages: boolean;
}, {
registrationId: number;
pniRegistrationId: number;
name: string;
fetchesMessages: boolean;
}>;

@@ -216,8 +213,8 @@ aciSignedPreKey: z.ZodObject<{

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

@@ -230,8 +227,8 @@ }>;

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

@@ -244,8 +241,8 @@ }>;

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

@@ -258,8 +255,8 @@ }>;

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

@@ -270,25 +267,25 @@ }>;

accountAttributes: {
fetchesMessages: boolean;
registrationId: RegistrationId;
pniRegistrationId: RegistrationId;
name: string;
fetchesMessages: boolean;
};
aciSignedPreKey: {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
};
pniSignedPreKey: {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
};
aciPqLastResortPreKey: {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
};
pniPqLastResortPreKey: {
keyId: number;
publicKey: string;
keyId: number;
signature: string;

@@ -299,25 +296,25 @@ };

accountAttributes: {
fetchesMessages: boolean;
registrationId: number;
pniRegistrationId: number;
name: string;
fetchesMessages: boolean;
};
aciSignedPreKey: {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
};
pniSignedPreKey: {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
};
aciPqLastResortPreKey: {
keyId: number;
publicKey: string;
keyId: number;
signature: string;
};
pniPqLastResortPreKey: {
keyId: number;
publicKey: string;
keyId: number;
signature: string;

@@ -334,8 +331,8 @@ };

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

@@ -346,17 +343,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[];

@@ -363,0 +360,0 @@ }>;

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

exports.DeviceKeysSchema = zod_1.default.object({
identityKey: zod_1.default.string(),
preKeys: PreKeySchema.array(),

@@ -32,0 +31,0 @@ pqPreKeys: SignedPreKeySchema.array().optional(),

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