@secrecy/lib 1.49.0-feat-report-data.3 → 1.49.0-feat-report-data.4

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.
@@ -558,7 +558,9 @@ export class SecrecyCloudClient {
558
558
  return this.#apiClient.cloud.reportData.mutate({
559
559
  id: id,
560
560
  reasons: reasons,
561
- encryptedDataKey: data.key,
561
+ encryptedDataKey: data.key
562
+ ? sodium.to_hex(encryptCryptoBox(sodium.from_hex(data.key), secrecy.publicKey, this.#keys.privateKey))
563
+ : null,
562
564
  });
563
565
  }
564
566
  }
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.49.0-feat-report-data.3",
5
+ "version": "1.49.0-feat-report-data.4",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"