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

@signalapp/mock-server

Package Overview
Dependencies
Maintainers
0
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 10.0.0 to 10.0.1

2

package.json
{
"name": "@signalapp/mock-server",
"version": "10.0.0",
"version": "10.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,7 +14,7 @@ import { AciString, DeviceId, PniString, RegistrationId } from '../types';

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

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

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

@@ -41,7 +42,7 @@ }>;

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

@@ -53,8 +54,8 @@ pqPreKeys: z.ZodOptional<z.ZodArray<z.ZodObject<{

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

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

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

@@ -81,8 +82,8 @@ }>>;

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

@@ -92,18 +93,18 @@ }>>;

preKeys: {
publicKey: string;
keyId: number;
publicKey: string;
}[];
pqPreKeys?: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;
}[] | undefined;
pqLastResortPreKey?: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;
} | undefined;
signedPreKey?: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;

@@ -113,18 +114,18 @@ } | undefined;

preKeys: {
publicKey: string;
keyId: number;
publicKey: string;
}[];
pqPreKeys?: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;
}[] | undefined;
pqLastResortPreKey?: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;
} | undefined;
signedPreKey?: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;

@@ -140,2 +141,3 @@ } | undefined;

}, "strip", z.ZodTypeAny, {
content: string;
type: number;

@@ -148,8 +150,7 @@ destinationDeviceId: number & {

};
}, {
content: string;
}, {
type: number;
destinationDeviceId: number;
destinationRegistrationId: number;
content: string;
}>;

@@ -164,2 +165,3 @@ export type Message = z.infer<typeof MessageSchema>;

}, "strip", z.ZodTypeAny, {
content: string;
type: number;

@@ -172,12 +174,13 @@ destinationDeviceId: number & {

};
}, {
content: string;
}, {
type: number;
destinationDeviceId: number;
destinationRegistrationId: number;
content: string;
}>, "many">;
timestamp: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
timestamp: number;
messages: {
content: string;
type: number;

@@ -190,13 +193,11 @@ destinationDeviceId: number & {

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

@@ -231,8 +232,8 @@ export type MessageList = z.infer<typeof MessageListSchema>;

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

@@ -245,8 +246,8 @@ }>;

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

@@ -259,8 +260,8 @@ }>;

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

@@ -273,8 +274,8 @@ }>;

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

@@ -295,19 +296,19 @@ }>;

aciSignedPreKey: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;
};
pniSignedPreKey: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;
};
aciPqLastResortPreKey: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;
};
pniPqLastResortPreKey: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;

@@ -324,19 +325,19 @@ };

aciSignedPreKey: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;
};
pniSignedPreKey: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;
};
aciPqLastResortPreKey: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;
};
pniPqLastResortPreKey: {
publicKey: string;
keyId: number;
publicKey: string;
signature: string;

@@ -491,7 +492,7 @@ };

}, "strip", z.ZodTypeAny, {
cdn: number;
key: string;
}, {
cdn: number;
}, {
key: string;
cdn: number;
}>;

@@ -504,4 +505,4 @@ objectLength: z.ZodNumber;

sourceAttachment: {
cdn: number;
key: string;
cdn: number;
};

@@ -514,4 +515,4 @@ objectLength: number;

sourceAttachment: {
cdn: number;
key: string;
cdn: number;
};

@@ -526,4 +527,4 @@ objectLength: number;

sourceAttachment: {
cdn: number;
key: string;
cdn: number;
};

@@ -538,4 +539,4 @@ objectLength: number;

sourceAttachment: {
cdn: number;
key: string;
cdn: number;
};

@@ -542,0 +543,0 @@ objectLength: number;

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

sourceUserId: sourceAci.serialize(),
groupId: (0, util_1.fromBase64)(this.id),
};

@@ -61,0 +62,0 @@ assert_1.default.ok(actions.version, 'Actions should have a new version');

@@ -369,2 +369,5 @@ "use strict";

const actions = compiled_1.signalservice.GroupChange.Actions.decode(buffer_1.Buffer.from(await (0, micro_1.buffer)(req)));
if (actions.groupId.length) {
return (0, micro_1.send)(res, 400, { error: 'Bad Request' });
}
const { group, aciCiphertext, pniCiphertext } = auth;

@@ -371,0 +374,0 @@ try {

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

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

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