@signalapp/mock-server
Advanced tools
Comparing version 9.0.0 to 9.0.1
{ | ||
"name": "@signalapp/mock-server", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "Mock Signal Server for writing tests", | ||
@@ -46,3 +46,3 @@ "main": "src/index.js", | ||
"@indutny/parallel-prettier": "^3.0.0", | ||
"@signalapp/libsignal-client": "^0.60.0", | ||
"@signalapp/libsignal-client": "^0.60.1", | ||
"@tus/file-store": "^1.4.0", | ||
@@ -49,0 +49,0 @@ "@tus/server": "^1.7.0", |
@@ -478,3 +478,4 @@ "use strict"; | ||
macKey: item.hmacKey, | ||
iv: item.iv, | ||
// Deterministic value | ||
iv: Buffer.alloc(16), | ||
}); | ||
@@ -481,0 +482,0 @@ await promises_1.default.writeFile(finalPath, reencrypted.blob); |
@@ -482,3 +482,2 @@ import z from 'zod'; | ||
encryptionKey: z.ZodEffects<z.ZodString, Buffer, string>; | ||
iv: z.ZodEffects<z.ZodString, Buffer, string>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -493,3 +492,2 @@ sourceAttachment: { | ||
encryptionKey: Buffer; | ||
iv: Buffer; | ||
}, { | ||
@@ -504,3 +502,2 @@ sourceAttachment: { | ||
encryptionKey: string; | ||
iv: string; | ||
}>, "many">; | ||
@@ -517,3 +514,2 @@ }, "strip", z.ZodTypeAny, { | ||
encryptionKey: Buffer; | ||
iv: Buffer; | ||
}[]; | ||
@@ -530,3 +526,2 @@ }, { | ||
encryptionKey: string; | ||
iv: string; | ||
}[]; | ||
@@ -533,0 +528,0 @@ }>; |
@@ -127,5 +127,4 @@ "use strict"; | ||
encryptionKey: zod_1.default.string().transform(util_1.fromBase64), | ||
iv: zod_1.default.string().transform(util_1.fromBase64), | ||
}) | ||
.array(), | ||
}); |
@@ -11,4 +11,2 @@ "use strict"; | ||
const zkgroup_1 = require("@signalapp/libsignal-client/zkgroup"); | ||
// TODO(indutny): wait for libsignal release | ||
const BackupCredentialType_1 = __importDefault(require("@signalapp/libsignal-client/dist/zkgroup/backups/BackupCredentialType")); | ||
const assert_1 = __importDefault(require("assert")); | ||
@@ -894,6 +892,6 @@ const crypto_1 = __importDefault(require("crypto")); | ||
const messages = this.issueCredentials(range, (redemptionTime) => { | ||
return req.messages.issueCredential(redemptionTime, zkgroup_1.BackupLevel.Free, BackupCredentialType_1.default.Messages, this.backupServerSecret); | ||
return req.messages.issueCredential(redemptionTime, zkgroup_1.BackupLevel.Free, zkgroup_1.BackupCredentialType.Messages, this.backupServerSecret); | ||
}); | ||
const media = this.issueCredentials(range, (redemptionTime) => { | ||
return req.media.issueCredential(redemptionTime, backupLevel, BackupCredentialType_1.default.Media, this.backupServerSecret); | ||
return req.media.issueCredential(redemptionTime, backupLevel, zkgroup_1.BackupCredentialType.Media, this.backupServerSecret); | ||
}); | ||
@@ -900,0 +898,0 @@ return { |
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
3946217
72784