@tinycloud/cli 1.4.0-beta.4 → 1.5.0-beta.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.
package/dist/index.js CHANGED
@@ -6674,7 +6674,8 @@ async function assertPendingRemoteLogoutSession(name, expected) {
6674
6674
  }
6675
6675
  async function clearProfileCredentials(name, syncDirectory = false, legacyCleanup = false) {
6676
6676
  const profile = await ProfileManager.getProfile(name);
6677
- await ProfileManager.setProfileDurable(name, { ...profile, authSignedOut: true, ...legacyCleanup ? { legacyReplicaCleanup: true } : {} });
6677
+ const { namedKeys: _namedKeys, ...signedOutProfile } = profile;
6678
+ await ProfileManager.setProfileDurable(name, { ...signedOutProfile, authSignedOut: true, ...legacyCleanup ? { legacyReplicaCleanup: true } : {} });
6678
6679
  let failed = false;
6679
6680
  let error;
6680
6681
  try {
@@ -7106,7 +7107,8 @@ async function bootstrapDelegatedSession(ctx, delegation) {
7106
7107
  jwk,
7107
7108
  verificationMethod: sessionDid
7108
7109
  };
7109
- const profile = { ...previousProfile, sessionDid, spaceId: delegation.spaceId };
7110
+ const { namedKeys: _namedKeys, ...previousFields } = previousProfile;
7111
+ const profile = { ...previousFields, sessionDid, spaceId: delegation.spaceId };
7110
7112
  try {
7111
7113
  await ProfileManager.setSession(ctx.profile, session);
7112
7114
  await ProfileManager.setProfile(ctx.profile, profile);