@signalapp/mock-server
Advanced tools
Comparing version 4.2.0 to 4.3.0
{ | ||
"name": "@signalapp/mock-server", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"description": "Mock Signal Server for writing tests", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -136,3 +136,2 @@ /// <reference types="node" /> | ||
private readonly syncStates; | ||
private readonly masterKey; | ||
private readonly storageKey; | ||
@@ -160,2 +159,3 @@ private readonly privateKey; | ||
readonly secondaryDevices: Device[]; | ||
readonly masterKey: Buffer; | ||
lastResortKeyId: number; | ||
@@ -162,0 +162,0 @@ readonly userAgent = "OWI"; |
@@ -203,3 +203,2 @@ "use strict"; | ||
syncStates = new WeakMap(); | ||
masterKey = crypto_1.default.randomBytes(16); | ||
storageKey; | ||
@@ -228,2 +227,3 @@ privateKey = libsignal_client_1.PrivateKey.generate(); | ||
secondaryDevices = new Array(); | ||
masterKey = crypto_1.default.randomBytes(16); | ||
lastResortKeyId = 1; | ||
@@ -230,0 +230,0 @@ // TODO(indutny): make primary device type configurable |
@@ -266,2 +266,3 @@ "use strict"; | ||
ProvisioningVersion: compiled_1.signalservice.ProvisioningVersion.CURRENT, | ||
masterKey: primaryDevice.masterKey, | ||
}).finish(); | ||
@@ -268,0 +269,0 @@ const { body, ephemeralKey } = (0, crypto_1.encryptProvisionMessage)(Buffer.from(envelopeData), publicKey); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3599836
66611