@abtnode/core 1.17.7-beta-20251224-045844-3c7f459a → 1.17.7-beta-20251225-073259-cb6ecf68
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.
|
@@ -290,7 +290,7 @@ const getWalletAppNotification = async (blocklet, tempBlockletInfo) => {
|
|
|
290
290
|
data: {
|
|
291
291
|
url: blockletInfo.appUrl,
|
|
292
292
|
appDID: blocklet.appPid,
|
|
293
|
-
logo: appLogo,
|
|
293
|
+
logo: joinURL(blockletInfo.appUrl, appLogo),
|
|
294
294
|
title: blockletInfo.name,
|
|
295
295
|
desc: blockletInfo.description,
|
|
296
296
|
},
|
|
@@ -373,7 +373,7 @@ class SpacesBackup extends BaseBackup {
|
|
|
373
373
|
appDid: this.blocklet.appDid,
|
|
374
374
|
appName: getAppName(this.blocklet),
|
|
375
375
|
appDescription: getAppDescription(this.blocklet),
|
|
376
|
-
userDid: this.input.userDid,
|
|
376
|
+
userDid: isValid(this.input.userDid) ? this.input.userDid : process.env.ABT_NODE_DID,
|
|
377
377
|
referrer: this.input.referrer,
|
|
378
378
|
serverDid,
|
|
379
379
|
signerDid: this.securityContext.signer.address,
|
package/lib/event/index.js
CHANGED
|
@@ -533,11 +533,20 @@ module.exports = ({
|
|
|
533
533
|
if ([BlockletEvents.started, BlockletEvents.stopped].includes(eventName)) {
|
|
534
534
|
try {
|
|
535
535
|
const nodeInfo = await node.getNodeInfo();
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
536
|
+
updateDidDocument({ did: blocklet.appPid, nodeInfo, teamManager, states })
|
|
537
|
+
.then(() => {
|
|
538
|
+
logger.info('updated blocklet DID document after state change', {
|
|
539
|
+
did: blocklet.meta.did,
|
|
540
|
+
event: eventName,
|
|
541
|
+
});
|
|
542
|
+
})
|
|
543
|
+
.catch((error) => {
|
|
544
|
+
logger.error('update blocklet DID document failed after state change', {
|
|
545
|
+
did: blocklet.meta.did,
|
|
546
|
+
event: eventName,
|
|
547
|
+
error,
|
|
548
|
+
});
|
|
549
|
+
});
|
|
541
550
|
} catch (error) {
|
|
542
551
|
logger.error('update blocklet DID document failed after state change', {
|
|
543
552
|
did: blocklet.meta.did,
|
package/lib/validators/backup.js
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
const { Joi } = require('@arcblock/validator');
|
|
2
|
+
const { isValid } = require('@arcblock/did');
|
|
2
3
|
|
|
3
4
|
const validateBackupStart = Joi.object({
|
|
4
5
|
appPid: Joi.DID().required(),
|
|
5
|
-
userDid: Joi.
|
|
6
|
+
userDid: Joi.string()
|
|
7
|
+
.custom((value, helper) => {
|
|
8
|
+
if (isValid(value)) {
|
|
9
|
+
return value;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// value 不一定是一个 did,可能是用户名或者 @blocklet/cli,此时都会 fallback 到 ABT_NODE_DID
|
|
13
|
+
if (isValid(process.env.ABT_NODE_DID)) {
|
|
14
|
+
return process.env.ABT_NODE_DID;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return helper.message('Expect "userDid" to be valid did');
|
|
18
|
+
})
|
|
19
|
+
.required(),
|
|
6
20
|
strategy: Joi.number().valid(0, 1).optional().default(0),
|
|
7
21
|
|
|
8
22
|
sourceUrl: Joi.string().required(),
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.7-beta-
|
|
6
|
+
"version": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@abtnode/analytics": "1.17.7-beta-
|
|
21
|
-
"@abtnode/auth": "1.17.7-beta-
|
|
22
|
-
"@abtnode/certificate-manager": "1.17.7-beta-
|
|
23
|
-
"@abtnode/constant": "1.17.7-beta-
|
|
24
|
-
"@abtnode/cron": "1.17.7-beta-
|
|
25
|
-
"@abtnode/db-cache": "1.17.7-beta-
|
|
26
|
-
"@abtnode/docker-utils": "1.17.7-beta-
|
|
27
|
-
"@abtnode/logger": "1.17.7-beta-
|
|
28
|
-
"@abtnode/models": "1.17.7-beta-
|
|
29
|
-
"@abtnode/queue": "1.17.7-beta-
|
|
30
|
-
"@abtnode/rbac": "1.17.7-beta-
|
|
31
|
-
"@abtnode/router-provider": "1.17.7-beta-
|
|
32
|
-
"@abtnode/static-server": "1.17.7-beta-
|
|
33
|
-
"@abtnode/timemachine": "1.17.7-beta-
|
|
34
|
-
"@abtnode/util": "1.17.7-beta-
|
|
20
|
+
"@abtnode/analytics": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
21
|
+
"@abtnode/auth": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
22
|
+
"@abtnode/certificate-manager": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
23
|
+
"@abtnode/constant": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
24
|
+
"@abtnode/cron": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
25
|
+
"@abtnode/db-cache": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
26
|
+
"@abtnode/docker-utils": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
27
|
+
"@abtnode/logger": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
28
|
+
"@abtnode/models": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
29
|
+
"@abtnode/queue": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
30
|
+
"@abtnode/rbac": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
31
|
+
"@abtnode/router-provider": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
32
|
+
"@abtnode/static-server": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
33
|
+
"@abtnode/timemachine": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
34
|
+
"@abtnode/util": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
35
35
|
"@aigne/aigne-hub": "^0.10.15",
|
|
36
36
|
"@arcblock/did": "^1.27.15",
|
|
37
37
|
"@arcblock/did-connect-js": "^1.27.15",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"@arcblock/pm2-events": "^0.0.5",
|
|
44
44
|
"@arcblock/validator": "^1.27.15",
|
|
45
45
|
"@arcblock/vc": "^1.27.15",
|
|
46
|
-
"@blocklet/constant": "1.17.7-beta-
|
|
46
|
+
"@blocklet/constant": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
47
47
|
"@blocklet/did-space-js": "^1.2.11",
|
|
48
|
-
"@blocklet/env": "1.17.7-beta-
|
|
48
|
+
"@blocklet/env": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
49
49
|
"@blocklet/error": "^0.3.5",
|
|
50
|
-
"@blocklet/meta": "1.17.7-beta-
|
|
51
|
-
"@blocklet/resolver": "1.17.7-beta-
|
|
52
|
-
"@blocklet/sdk": "1.17.7-beta-
|
|
53
|
-
"@blocklet/server-js": "1.17.7-beta-
|
|
54
|
-
"@blocklet/store": "1.17.7-beta-
|
|
50
|
+
"@blocklet/meta": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
51
|
+
"@blocklet/resolver": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
52
|
+
"@blocklet/sdk": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
53
|
+
"@blocklet/server-js": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
54
|
+
"@blocklet/store": "1.17.7-beta-20251225-073259-cb6ecf68",
|
|
55
55
|
"@blocklet/theme": "^3.2.19",
|
|
56
56
|
"@fidm/x509": "^1.2.1",
|
|
57
57
|
"@ocap/mcrypto": "^1.27.15",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"express": "^4.18.2",
|
|
117
117
|
"unzipper": "^0.10.11"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "16715912460ed534e1e023d7e968714e3990051d"
|
|
120
120
|
}
|