@abtnode/core 1.17.8-beta-20260108-120904-21cb5fb6 → 1.17.8-beta-20260109-075740-5f484e08
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/lib/router/helper.js +5 -1
- package/lib/team/manager.js +13 -0
- package/package.json +22 -22
package/lib/router/helper.js
CHANGED
|
@@ -646,7 +646,11 @@ const getStaticRoot = (component) => {
|
|
|
646
646
|
}
|
|
647
647
|
|
|
648
648
|
const main = component.meta?.main;
|
|
649
|
-
|
|
649
|
+
const root = main ? path.join(appDir, main) : appDir;
|
|
650
|
+
if (root?.endsWith('index.html') || root?.endsWith('index.htm')) {
|
|
651
|
+
return path.dirname(root);
|
|
652
|
+
}
|
|
653
|
+
return root;
|
|
650
654
|
};
|
|
651
655
|
|
|
652
656
|
/**
|
package/lib/team/manager.js
CHANGED
|
@@ -710,12 +710,25 @@ class TeamManager extends EventEmitter {
|
|
|
710
710
|
this.cache[pid] = getDefaultTeamState();
|
|
711
711
|
}
|
|
712
712
|
|
|
713
|
+
// Reinitialize cache if deleted during async operations
|
|
714
|
+
if (!this.cache[pid]) {
|
|
715
|
+
logger.warn('Cache entry was deleted, reinitializing before checking state', { teamDid, pid, key });
|
|
716
|
+
this.cache[pid] = getDefaultTeamState();
|
|
717
|
+
}
|
|
718
|
+
|
|
713
719
|
if (this.cache[pid][key]) {
|
|
714
720
|
return this.cache[pid][key];
|
|
715
721
|
}
|
|
716
722
|
|
|
717
723
|
const state = await this.createState(teamDid, upperFirst(key));
|
|
718
724
|
logger.info(`${key} state created`, { teamDid });
|
|
725
|
+
|
|
726
|
+
// Reinitialize cache if deleted during state creation
|
|
727
|
+
if (!this.cache[pid]) {
|
|
728
|
+
logger.warn('Cache entry was deleted during state creation, reinitializing', { teamDid, pid, key });
|
|
729
|
+
this.cache[pid] = getDefaultTeamState();
|
|
730
|
+
}
|
|
731
|
+
|
|
719
732
|
this.cache[pid][key] = state;
|
|
720
733
|
return state;
|
|
721
734
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.8-beta-
|
|
6
|
+
"version": "1.17.8-beta-20260109-075740-5f484e08",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -17,19 +17,19 @@
|
|
|
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-
|
|
21
|
-
"@abtnode/auth": "1.17.8-beta-
|
|
22
|
-
"@abtnode/certificate-manager": "1.17.8-beta-
|
|
23
|
-
"@abtnode/constant": "1.17.8-beta-
|
|
24
|
-
"@abtnode/cron": "1.17.8-beta-
|
|
25
|
-
"@abtnode/db-cache": "1.17.8-beta-
|
|
26
|
-
"@abtnode/docker-utils": "1.17.8-beta-
|
|
27
|
-
"@abtnode/logger": "1.17.8-beta-
|
|
28
|
-
"@abtnode/models": "1.17.8-beta-
|
|
29
|
-
"@abtnode/queue": "1.17.8-beta-
|
|
30
|
-
"@abtnode/rbac": "1.17.8-beta-
|
|
31
|
-
"@abtnode/router-provider": "1.17.8-beta-
|
|
32
|
-
"@abtnode/util": "1.17.8-beta-
|
|
20
|
+
"@abtnode/analytics": "1.17.8-beta-20260109-075740-5f484e08",
|
|
21
|
+
"@abtnode/auth": "1.17.8-beta-20260109-075740-5f484e08",
|
|
22
|
+
"@abtnode/certificate-manager": "1.17.8-beta-20260109-075740-5f484e08",
|
|
23
|
+
"@abtnode/constant": "1.17.8-beta-20260109-075740-5f484e08",
|
|
24
|
+
"@abtnode/cron": "1.17.8-beta-20260109-075740-5f484e08",
|
|
25
|
+
"@abtnode/db-cache": "1.17.8-beta-20260109-075740-5f484e08",
|
|
26
|
+
"@abtnode/docker-utils": "1.17.8-beta-20260109-075740-5f484e08",
|
|
27
|
+
"@abtnode/logger": "1.17.8-beta-20260109-075740-5f484e08",
|
|
28
|
+
"@abtnode/models": "1.17.8-beta-20260109-075740-5f484e08",
|
|
29
|
+
"@abtnode/queue": "1.17.8-beta-20260109-075740-5f484e08",
|
|
30
|
+
"@abtnode/rbac": "1.17.8-beta-20260109-075740-5f484e08",
|
|
31
|
+
"@abtnode/router-provider": "1.17.8-beta-20260109-075740-5f484e08",
|
|
32
|
+
"@abtnode/util": "1.17.8-beta-20260109-075740-5f484e08",
|
|
33
33
|
"@aigne/aigne-hub": "^0.10.15",
|
|
34
34
|
"@arcblock/did": "^1.28.4",
|
|
35
35
|
"@arcblock/did-connect-js": "^1.28.4",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"@arcblock/pm2-events": "^0.0.5",
|
|
42
42
|
"@arcblock/validator": "^1.28.4",
|
|
43
43
|
"@arcblock/vc": "^1.28.4",
|
|
44
|
-
"@blocklet/constant": "1.17.8-beta-
|
|
44
|
+
"@blocklet/constant": "1.17.8-beta-20260109-075740-5f484e08",
|
|
45
45
|
"@blocklet/did-space-js": "^1.2.14",
|
|
46
|
-
"@blocklet/env": "1.17.8-beta-
|
|
46
|
+
"@blocklet/env": "1.17.8-beta-20260109-075740-5f484e08",
|
|
47
47
|
"@blocklet/error": "^0.3.5",
|
|
48
|
-
"@blocklet/meta": "1.17.8-beta-
|
|
49
|
-
"@blocklet/resolver": "1.17.8-beta-
|
|
50
|
-
"@blocklet/sdk": "1.17.8-beta-
|
|
51
|
-
"@blocklet/server-js": "1.17.8-beta-
|
|
52
|
-
"@blocklet/store": "1.17.8-beta-
|
|
48
|
+
"@blocklet/meta": "1.17.8-beta-20260109-075740-5f484e08",
|
|
49
|
+
"@blocklet/resolver": "1.17.8-beta-20260109-075740-5f484e08",
|
|
50
|
+
"@blocklet/sdk": "1.17.8-beta-20260109-075740-5f484e08",
|
|
51
|
+
"@blocklet/server-js": "1.17.8-beta-20260109-075740-5f484e08",
|
|
52
|
+
"@blocklet/store": "1.17.8-beta-20260109-075740-5f484e08",
|
|
53
53
|
"@blocklet/theme": "^3.4.5",
|
|
54
54
|
"@fidm/x509": "^1.2.1",
|
|
55
55
|
"@ocap/mcrypto": "^1.28.4",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"express": "^4.18.2",
|
|
115
115
|
"unzipper": "^0.10.11"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "14240868d6efc2e698a804c6ee48deb8a7d10ee1"
|
|
118
118
|
}
|