@secrecy/lib 1.73.1 → 1.73.2-fix-save-in-cloud-sharing.1

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.
@@ -619,6 +619,7 @@ export class SecrecyCloudClient {
619
619
  });
620
620
  const node = await apiNodeToExternalNodeFull(saveInCloud, this.#keys);
621
621
  const me = node.parent?.users.find(([u]) => u.id === this.#client.app.userId);
622
+ console.log('SAVE IN CLOUD', { me, node });
622
623
  // TODO: ??
623
624
  if (me !== undefined && ['delete', 'write'].includes(me[1].rights)) {
624
625
  const others = node.parent?.users.filter(([u]) => u.id !== this.#client.app.userId) ??
@@ -626,7 +627,6 @@ export class SecrecyCloudClient {
626
627
  if (others.length > 0) {
627
628
  await this.shareNode(others.map(([user, permissions]) => ({
628
629
  userId: user.id,
629
- permissions,
630
630
  nodeId: node.id,
631
631
  ...permissions,
632
632
  })));
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.73.1",
5
+ "version": "1.73.2-fix-save-in-cloud-sharing.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"