@abtnode/core 1.17.8-beta-20260113-015027-32a1cec4 → 1.17.8-beta-20260115-003043-5e15c08a

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.
@@ -107,8 +107,8 @@ module.exports = ({
107
107
  const did = get(data, 'meta.did');
108
108
  if (did) {
109
109
  logger.info(`delete blocklet cache on ${name}`, { did });
110
- deleteBlockletCache(did);
111
- clearBlockletInfoCache(did);
110
+ deleteBlockletCache(did, logger);
111
+ clearBlockletInfoCache(did, logger);
112
112
  }
113
113
  });
114
114
  });
@@ -65,7 +65,9 @@ const getSlpDid = (serverDid, appPid) => {
65
65
  const getBlockletKnownAs = (blocklet) => {
66
66
  const alsoKnownAs = [blocklet.appDid];
67
67
  if (Array.isArray(blocklet.migratedFrom)) {
68
- blocklet.migratedFrom.filter((x) => x.appDid !== blocklet.appPid).forEach((x) => alsoKnownAs.push(x.appDid));
68
+ blocklet.migratedFrom
69
+ .filter((x) => x.appDid !== blocklet.appPid || blocklet.meta?.did)
70
+ .forEach((x) => alsoKnownAs.push(x.appDid));
69
71
  }
70
72
 
71
73
  return alsoKnownAs.filter(Boolean).map(toDid);
@@ -89,7 +91,7 @@ const publishDidDocument = async ({ blocklet, ownerInfo, nodeInfo }) => {
89
91
  let slpDid = null;
90
92
  const enableSlpDomain = shouldEnableSlpDomain(mode);
91
93
  if (enableSlpDomain) {
92
- slpDid = getSlpDid(serverDid, blocklet.appPid);
94
+ slpDid = getSlpDid(serverDid, blocklet.meta.did);
93
95
 
94
96
  if (alsoKnownAs.indexOf(slpDid) === -1) {
95
97
  alsoKnownAs.push(toDid(slpDid));
@@ -121,6 +123,10 @@ const publishDidDocument = async ({ blocklet, ownerInfo, nodeInfo }) => {
121
123
 
122
124
  const isPrimaryDomain = (d) => {
123
125
  const appUrl = blocklet.environments.find((x) => x.key === BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL)?.value;
126
+ if (!appUrl) {
127
+ return false;
128
+ }
129
+
124
130
  try {
125
131
  const url = new URL(appUrl);
126
132
  return url.hostname === d;
@@ -199,8 +205,8 @@ const updateDidDocument = async ({ did, nodeInfo, teamManager, states }) => {
199
205
  const ownerDid = blocklet.settings?.owner?.did;
200
206
  let ownerInfo;
201
207
  if (ownerDid) {
202
- logger.info('get owner info', { ownerDid, teamDid: blocklet.appPid });
203
- const userState = await teamManager.getUserState(blocklet.appPid);
208
+ logger.info('get owner info', { ownerDid, teamDid: blocklet.meta.did });
209
+ const userState = await teamManager.getUserState(blocklet.meta.did);
204
210
  ownerInfo = await userState.getUser(ownerDid);
205
211
  }
206
212
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.17.8-beta-20260113-015027-32a1cec4",
6
+ "version": "1.17.8-beta-20260115-003043-5e15c08a",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -17,44 +17,44 @@
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.8-beta-20260113-015027-32a1cec4",
21
- "@abtnode/auth": "1.17.8-beta-20260113-015027-32a1cec4",
22
- "@abtnode/certificate-manager": "1.17.8-beta-20260113-015027-32a1cec4",
23
- "@abtnode/constant": "1.17.8-beta-20260113-015027-32a1cec4",
24
- "@abtnode/cron": "1.17.8-beta-20260113-015027-32a1cec4",
25
- "@abtnode/db-cache": "1.17.8-beta-20260113-015027-32a1cec4",
26
- "@abtnode/docker-utils": "1.17.8-beta-20260113-015027-32a1cec4",
27
- "@abtnode/logger": "1.17.8-beta-20260113-015027-32a1cec4",
28
- "@abtnode/models": "1.17.8-beta-20260113-015027-32a1cec4",
29
- "@abtnode/queue": "1.17.8-beta-20260113-015027-32a1cec4",
30
- "@abtnode/rbac": "1.17.8-beta-20260113-015027-32a1cec4",
31
- "@abtnode/router-provider": "1.17.8-beta-20260113-015027-32a1cec4",
32
- "@abtnode/util": "1.17.8-beta-20260113-015027-32a1cec4",
20
+ "@abtnode/analytics": "1.17.8-beta-20260115-003043-5e15c08a",
21
+ "@abtnode/auth": "1.17.8-beta-20260115-003043-5e15c08a",
22
+ "@abtnode/certificate-manager": "1.17.8-beta-20260115-003043-5e15c08a",
23
+ "@abtnode/constant": "1.17.8-beta-20260115-003043-5e15c08a",
24
+ "@abtnode/cron": "1.17.8-beta-20260115-003043-5e15c08a",
25
+ "@abtnode/db-cache": "1.17.8-beta-20260115-003043-5e15c08a",
26
+ "@abtnode/docker-utils": "1.17.8-beta-20260115-003043-5e15c08a",
27
+ "@abtnode/logger": "1.17.8-beta-20260115-003043-5e15c08a",
28
+ "@abtnode/models": "1.17.8-beta-20260115-003043-5e15c08a",
29
+ "@abtnode/queue": "1.17.8-beta-20260115-003043-5e15c08a",
30
+ "@abtnode/rbac": "1.17.8-beta-20260115-003043-5e15c08a",
31
+ "@abtnode/router-provider": "1.17.8-beta-20260115-003043-5e15c08a",
32
+ "@abtnode/util": "1.17.8-beta-20260115-003043-5e15c08a",
33
33
  "@aigne/aigne-hub": "^0.10.15",
34
- "@arcblock/did": "^1.28.4",
35
- "@arcblock/did-connect-js": "^1.28.4",
36
- "@arcblock/did-ext": "^1.28.4",
34
+ "@arcblock/did": "^1.28.5",
35
+ "@arcblock/did-connect-js": "^1.28.5",
36
+ "@arcblock/did-ext": "^1.28.5",
37
37
  "@arcblock/did-motif": "^1.1.14",
38
- "@arcblock/did-util": "^1.28.4",
39
- "@arcblock/event-hub": "^1.28.4",
40
- "@arcblock/jwt": "^1.28.4",
38
+ "@arcblock/did-util": "^1.28.5",
39
+ "@arcblock/event-hub": "^1.28.5",
40
+ "@arcblock/jwt": "^1.28.5",
41
41
  "@arcblock/pm2-events": "^0.0.5",
42
- "@arcblock/validator": "^1.28.4",
43
- "@arcblock/vc": "^1.28.4",
44
- "@blocklet/constant": "1.17.8-beta-20260113-015027-32a1cec4",
45
- "@blocklet/did-space-js": "^1.2.14",
46
- "@blocklet/env": "1.17.8-beta-20260113-015027-32a1cec4",
42
+ "@arcblock/validator": "^1.28.5",
43
+ "@arcblock/vc": "^1.28.5",
44
+ "@blocklet/constant": "1.17.8-beta-20260115-003043-5e15c08a",
45
+ "@blocklet/did-space-js": "^1.2.15",
46
+ "@blocklet/env": "1.17.8-beta-20260115-003043-5e15c08a",
47
47
  "@blocklet/error": "^0.3.5",
48
- "@blocklet/meta": "1.17.8-beta-20260113-015027-32a1cec4",
49
- "@blocklet/resolver": "1.17.8-beta-20260113-015027-32a1cec4",
50
- "@blocklet/sdk": "1.17.8-beta-20260113-015027-32a1cec4",
51
- "@blocklet/server-js": "1.17.8-beta-20260113-015027-32a1cec4",
52
- "@blocklet/store": "1.17.8-beta-20260113-015027-32a1cec4",
53
- "@blocklet/theme": "^3.4.5",
48
+ "@blocklet/meta": "1.17.8-beta-20260115-003043-5e15c08a",
49
+ "@blocklet/resolver": "1.17.8-beta-20260115-003043-5e15c08a",
50
+ "@blocklet/sdk": "1.17.8-beta-20260115-003043-5e15c08a",
51
+ "@blocklet/server-js": "1.17.8-beta-20260115-003043-5e15c08a",
52
+ "@blocklet/store": "1.17.8-beta-20260115-003043-5e15c08a",
53
+ "@blocklet/theme": "^3.4.7",
54
54
  "@fidm/x509": "^1.2.1",
55
- "@ocap/mcrypto": "^1.28.4",
56
- "@ocap/util": "^1.28.4",
57
- "@ocap/wallet": "^1.28.4",
55
+ "@ocap/mcrypto": "^1.28.5",
56
+ "@ocap/util": "^1.28.5",
57
+ "@ocap/wallet": "^1.28.5",
58
58
  "@slack/webhook": "^7.0.6",
59
59
  "archiver": "^7.0.1",
60
60
  "axios": "^1.7.9",
@@ -114,5 +114,5 @@
114
114
  "express": "^4.18.2",
115
115
  "unzipper": "^0.10.11"
116
116
  },
117
- "gitHead": "a2bdf6146c5c94d7348fc87d5ebd2e95e548df07"
117
+ "gitHead": "b22c37d35c84211b50f9ca05176f2c6de59fb24d"
118
118
  }