@blocklet/did-space-js 1.0.7 → 1.0.9

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.
@@ -34,7 +34,7 @@ class IncrementalBackupBlockletCommand extends base_1.BaseCommand {
34
34
  signerDid: this.input.signerDid,
35
35
  }, this.context).request()).data;
36
36
  incrementalSyncPushInstance = new incremental_sync_1.IncrementalSyncPushCommand({
37
- target: (0, path_1.join)('.did-objects', this.input.appDid, '/'),
37
+ target: (0, path_1.join)('.did-objects', this.input.appPid, '/'),
38
38
  ...this.input,
39
39
  }, this.context);
40
40
  const res = await incrementalSyncPushInstance.request();
@@ -31,7 +31,7 @@ class RestoreBlockletCommand extends base_1.BaseCommand {
31
31
  serverDid: this.input.serverDid,
32
32
  }, this.context).request()).data;
33
33
  const res = await new sync_1.SyncFolderPullCommand({
34
- source: (0, path_1.join)('.did-objects', this.input.appDid, '/'),
34
+ source: (0, path_1.join)('.did-objects', this.input.appPid, '/'),
35
35
  ...this.input,
36
36
  }, this.context).request();
37
37
  if (res.data.errorCount !== 0) {
@@ -1,5 +1,10 @@
1
1
  import { IncrementalSyncBaseCommandInput, IncrementalSyncBaseCommandOutput } from '../sync';
2
2
  export interface IncrementalBackupBlockletCommandInput extends Omit<IncrementalSyncBaseCommandInput, 'target'> {
3
+ /**
4
+ *
5
+ * @description 应用的 appPid,永久不变
6
+ */
7
+ appPid: string;
3
8
  appDid: string;
4
9
  /**
5
10
  *
@@ -1,5 +1,10 @@
1
1
  import { SyncFolderBaseCommandInput, SyncFolderBaseCommandOutput } from '../sync/sync-folder-base-command';
2
2
  export interface RestoreBlockletCommandInput extends Omit<SyncFolderBaseCommandInput, 'source'> {
3
+ /**
4
+ *
5
+ * @description 应用的 appPid,永久不变
6
+ */
7
+ appPid: string;
3
8
  appDid: string;
4
9
  /**
5
10
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/did-space-js",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,7 +33,7 @@
33
33
  "@arcblock/jwt": "^1.19.6",
34
34
  "@arcblock/validator": "^1.19.6",
35
35
  "@blocklet/env": "^1.16.38-beta-20250118-033334-2da05ae8",
36
- "@did-space/core": "^1.0.7",
36
+ "@did-space/core": "^1.0.9",
37
37
  "@ocap/mcrypto": "^1.19.6",
38
38
  "@ocap/util": "^1.19.6",
39
39
  "@ocap/wallet": "^1.19.6",
@@ -76,5 +76,5 @@
76
76
  "ts-jest": "^28.0.8",
77
77
  "typescript": "^4.9.5"
78
78
  },
79
- "gitHead": "0f7d5c99f838bae2839d704628fcf61eb9efa96c"
79
+ "gitHead": "f9d7a27fdaa977cf9666b6288ed6cf890ad03e73"
80
80
  }