@secrecy/lib 1.69.0-feat-anonymous-upload.3 → 1.69.0

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.
@@ -141,8 +141,9 @@ export class SecrecyCloudClient {
141
141
  const uploadData = await uploadDataCaller.mutate(uploadDataArgs, {
142
142
  signal,
143
143
  });
144
- if (uploadData.type === 'authed' && uploadData.parts.length === 0) {
145
- if (uploadData.keyPair.pub !== this.#keys.publicKey) {
144
+ if (uploadData.parts.length === 0) {
145
+ if (uploadData.type === 'authed' &&
146
+ uploadData.keyPair.pub !== this.#keys.publicKey) {
146
147
  throw new Error('The public key does not match with cached key!');
147
148
  }
148
149
  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.69.0-feat-anonymous-upload.3",
5
+ "version": "1.69.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"