@secrecy/lib 1.68.0-feat-anonymous-upload.1 → 1.68.0-feat-anonymous-upload.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -148,7 +148,8 @@ export class SecrecyCloudClient {
|
|
|
148
148
|
signal,
|
|
149
149
|
});
|
|
150
150
|
if (uploadData.parts.length === 0) {
|
|
151
|
-
if (uploadData.keyPair
|
|
151
|
+
if (uploadData.keyPair &&
|
|
152
|
+
uploadData.keyPair.pub !== this.#keys.publicKey) {
|
|
152
153
|
throw new Error('The public key does not match with cached key!');
|
|
153
154
|
}
|
|
154
155
|
await uploadProgress?.({
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@secrecy/lib",
|
|
3
3
|
"author": "Anonymize <anonymize@gmail.com>",
|
|
4
4
|
"description": "Anonymize Secrecy Library",
|
|
5
|
-
"version": "1.68.0-feat-anonymous-upload.
|
|
5
|
+
"version": "1.68.0-feat-anonymous-upload.2",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|