@abtnode/core 1.16.26-beta-346cba92 → 1.16.26-beta-818ea1c5
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.
|
@@ -240,7 +240,11 @@ class SpacesBackup extends BaseBackup {
|
|
|
240
240
|
delegation: this.securityContext.delegation,
|
|
241
241
|
});
|
|
242
242
|
|
|
243
|
-
const {
|
|
243
|
+
const {
|
|
244
|
+
data: { errorCount },
|
|
245
|
+
statusCode,
|
|
246
|
+
statusMessage,
|
|
247
|
+
} = await spaceClient.send(
|
|
244
248
|
new IncrementalBackupBlockletCommand({
|
|
245
249
|
appDid: this.blocklet.appDid,
|
|
246
250
|
appName: getAppName(this.blocklet),
|
|
@@ -291,7 +295,7 @@ class SpacesBackup extends BaseBackup {
|
|
|
291
295
|
if (statusCode === 403) {
|
|
292
296
|
throw new Error(translate(locale, 'backup.space.error.forbidden'));
|
|
293
297
|
}
|
|
294
|
-
throw new Error(
|
|
298
|
+
throw new Error(statusMessage);
|
|
295
299
|
}
|
|
296
300
|
}
|
|
297
301
|
|
|
@@ -118,7 +118,10 @@ class SpacesRestore extends BaseRestore {
|
|
|
118
118
|
wallet,
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
const {
|
|
121
|
+
const {
|
|
122
|
+
data: { errorCount },
|
|
123
|
+
statusMessage,
|
|
124
|
+
} = await spaceClient.send(
|
|
122
125
|
new RestoreBlockletCommand({
|
|
123
126
|
appDid: this.input.appDid,
|
|
124
127
|
target: join(this.restoreDir, '/'),
|
|
@@ -142,7 +145,7 @@ class SpacesRestore extends BaseRestore {
|
|
|
142
145
|
);
|
|
143
146
|
|
|
144
147
|
if (errorCount !== 0) {
|
|
145
|
-
throw new Error(
|
|
148
|
+
throw new Error(statusMessage);
|
|
146
149
|
}
|
|
147
150
|
}
|
|
148
151
|
|
package/lib/util/launcher.js
CHANGED
|
@@ -96,15 +96,15 @@ const reportComponentsEvent = async ({ blocklet, dids, type, time }) => {
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
const notifyBlockletUpdated = async (blocklet) => {
|
|
99
|
-
|
|
99
|
+
try {
|
|
100
|
+
const { controller } = blocklet;
|
|
100
101
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
if (!controller) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
104
105
|
|
|
105
|
-
|
|
106
|
+
logger.info('notify blocklet updated', { controller, blockletPid: blocklet.appPid });
|
|
106
107
|
|
|
107
|
-
try {
|
|
108
108
|
const info = await states.node.read();
|
|
109
109
|
|
|
110
110
|
const blockletInfo = getBlockletInfo(blocklet, info.sk);
|
|
@@ -139,8 +139,7 @@ const notifyBlockletUpdated = async (blocklet) => {
|
|
|
139
139
|
result,
|
|
140
140
|
});
|
|
141
141
|
} catch (error) {
|
|
142
|
-
logger.error('notify blocklet updated failed', {
|
|
143
|
-
throw new Error(`notify blocklet updated failed ${blocklet.appPid}`);
|
|
142
|
+
logger.error('notify blocklet updated failed', { blockletPid: blocklet?.appPid, error });
|
|
144
143
|
}
|
|
145
144
|
};
|
|
146
145
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.26-beta-
|
|
6
|
+
"version": "1.16.26-beta-818ea1c5",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/analytics": "1.16.26-beta-
|
|
23
|
-
"@abtnode/auth": "1.16.26-beta-
|
|
24
|
-
"@abtnode/certificate-manager": "1.16.26-beta-
|
|
25
|
-
"@abtnode/constant": "1.16.26-beta-
|
|
26
|
-
"@abtnode/cron": "1.16.26-beta-
|
|
27
|
-
"@abtnode/logger": "1.16.26-beta-
|
|
28
|
-
"@abtnode/models": "1.16.26-beta-
|
|
29
|
-
"@abtnode/queue": "1.16.26-beta-
|
|
30
|
-
"@abtnode/rbac": "1.16.26-beta-
|
|
31
|
-
"@abtnode/router-provider": "1.16.26-beta-
|
|
32
|
-
"@abtnode/static-server": "1.16.26-beta-
|
|
33
|
-
"@abtnode/timemachine": "1.16.26-beta-
|
|
34
|
-
"@abtnode/util": "1.16.26-beta-
|
|
22
|
+
"@abtnode/analytics": "1.16.26-beta-818ea1c5",
|
|
23
|
+
"@abtnode/auth": "1.16.26-beta-818ea1c5",
|
|
24
|
+
"@abtnode/certificate-manager": "1.16.26-beta-818ea1c5",
|
|
25
|
+
"@abtnode/constant": "1.16.26-beta-818ea1c5",
|
|
26
|
+
"@abtnode/cron": "1.16.26-beta-818ea1c5",
|
|
27
|
+
"@abtnode/logger": "1.16.26-beta-818ea1c5",
|
|
28
|
+
"@abtnode/models": "1.16.26-beta-818ea1c5",
|
|
29
|
+
"@abtnode/queue": "1.16.26-beta-818ea1c5",
|
|
30
|
+
"@abtnode/rbac": "1.16.26-beta-818ea1c5",
|
|
31
|
+
"@abtnode/router-provider": "1.16.26-beta-818ea1c5",
|
|
32
|
+
"@abtnode/static-server": "1.16.26-beta-818ea1c5",
|
|
33
|
+
"@abtnode/timemachine": "1.16.26-beta-818ea1c5",
|
|
34
|
+
"@abtnode/util": "1.16.26-beta-818ea1c5",
|
|
35
35
|
"@arcblock/did": "1.18.115",
|
|
36
36
|
"@arcblock/did-auth": "1.18.115",
|
|
37
37
|
"@arcblock/did-ext": "^1.18.115",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"@arcblock/pm2-events": "^0.0.5",
|
|
43
43
|
"@arcblock/validator": "^1.18.115",
|
|
44
44
|
"@arcblock/vc": "1.18.115",
|
|
45
|
-
"@blocklet/constant": "1.16.26-beta-
|
|
46
|
-
"@blocklet/env": "1.16.26-beta-
|
|
47
|
-
"@blocklet/meta": "1.16.26-beta-
|
|
48
|
-
"@blocklet/resolver": "1.16.26-beta-
|
|
49
|
-
"@blocklet/sdk": "1.16.26-beta-
|
|
50
|
-
"@blocklet/store": "1.16.26-beta-
|
|
51
|
-
"@did-space/client": "^0.
|
|
45
|
+
"@blocklet/constant": "1.16.26-beta-818ea1c5",
|
|
46
|
+
"@blocklet/env": "1.16.26-beta-818ea1c5",
|
|
47
|
+
"@blocklet/meta": "1.16.26-beta-818ea1c5",
|
|
48
|
+
"@blocklet/resolver": "1.16.26-beta-818ea1c5",
|
|
49
|
+
"@blocklet/sdk": "1.16.26-beta-818ea1c5",
|
|
50
|
+
"@blocklet/store": "1.16.26-beta-818ea1c5",
|
|
51
|
+
"@did-space/client": "^0.4.1",
|
|
52
52
|
"@fidm/x509": "^1.2.1",
|
|
53
53
|
"@ocap/mcrypto": "1.18.115",
|
|
54
54
|
"@ocap/util": "1.18.115",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"jest": "^29.7.0",
|
|
104
104
|
"unzipper": "^0.10.11"
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "94aded9a2c0f4b5a57f0ca0fa2493ec417ef3339"
|
|
107
107
|
}
|