@interncom/diplomatic 0.0.71 → 0.0.73

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.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -11629,8 +11629,12 @@ var DiplomaticClient = class {
11629
11629
  await this.store.storeOp(sha256, cipher);
11630
11630
  await this.store.dequeueDownload(sha256);
11631
11631
  this.emitXferUpdate();
11632
- } catch {
11633
- const transient = true;
11632
+ } catch (err) {
11633
+ console.error("Processing download", err, item);
11634
+ let transient = true;
11635
+ if (err instanceof Error && err.message === "wrong secret key for the given ciphertext") {
11636
+ transient = false;
11637
+ }
11634
11638
  if (!transient) {
11635
11639
  await this.store.dequeueDownload(item.sha256);
11636
11640
  this.emitXferUpdate();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interncom/diplomatic",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "type": "module",
5
5
  "description": "Secure sync layer",
6
6
  "main": "dist/index.mjs",