@abtnode/core 1.16.47-beta-20250801-094129-1ba43aaa → 1.16.47-beta-20250805-140707-3a4df7fd
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/api/team.js
CHANGED
|
@@ -1645,18 +1645,16 @@ class TeamAPI extends EventEmitter {
|
|
|
1645
1645
|
|
|
1646
1646
|
const sanitized = withoutTrailingSlash(await StoreUtil.getStoreUrl(url));
|
|
1647
1647
|
const storeList = await this.teamManager.getStoreList(teamDid);
|
|
1648
|
-
const did = context?.user?.did;
|
|
1649
1648
|
const exists = storeList.some((x) => {
|
|
1650
|
-
if (x.url
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
if (!x.scope || x.scope === 'studio') {
|
|
1657
|
-
return true;
|
|
1649
|
+
if (x.url === sanitized) {
|
|
1650
|
+
if (!x.scope) {
|
|
1651
|
+
return true;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
return x.scope === scope;
|
|
1658
1655
|
}
|
|
1659
|
-
|
|
1656
|
+
|
|
1657
|
+
return false;
|
|
1660
1658
|
});
|
|
1661
1659
|
|
|
1662
1660
|
if (exists) {
|
|
@@ -38918,7 +38918,7 @@ module.exports = require("zlib");
|
|
|
38918
38918
|
/***/ ((module) => {
|
|
38919
38919
|
|
|
38920
38920
|
"use strict";
|
|
38921
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@abtnode/core","publishConfig":{"access":"public"},"version":"1.16.46","description":"","main":"lib/index.js","files":["lib"],"scripts":{"lint":"eslint tests lib --ignore-pattern \'tests/assets/*\'","lint:fix":"eslint --fix tests lib","test":"node tools/jest.js","coverage":"npm run test -- --coverage"},"keywords":[],"author":"wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)","license":"Apache-2.0","dependencies":{"@abtnode/analytics":"1.16.46","@abtnode/auth":"1.16.46","@abtnode/certificate-manager":"1.16.46","@abtnode/client":"1.16.46","@abtnode/constant":"1.16.46","@abtnode/cron":"1.16.46","@abtnode/db-cache":"1.16.46","@abtnode/docker-utils":"1.16.46","@abtnode/logger":"1.16.46","@abtnode/models":"1.16.46","@abtnode/queue":"1.16.46","@abtnode/rbac":"1.16.46","@abtnode/router-provider":"1.16.46","@abtnode/static-server":"1.16.46","@abtnode/timemachine":"1.16.46","@abtnode/util":"1.16.46","@aigne/aigne-hub":"^0.2.2","@arcblock/did":"1.21.0","@arcblock/did-auth":"1.21.0","@arcblock/did-ext":"1.21.0","@arcblock/did-motif":"^1.1.14","@arcblock/did-util":"1.21.0","@arcblock/event-hub":"1.21.0","@arcblock/jwt":"1.21.0","@arcblock/pm2-events":"^0.0.5","@arcblock/validator":"1.21.0","@arcblock/vc":"1.21.0","@blocklet/constant":"1.16.46","@blocklet/did-space-js":"^1.1.
|
|
38921
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@abtnode/core","publishConfig":{"access":"public"},"version":"1.16.46","description":"","main":"lib/index.js","files":["lib"],"scripts":{"lint":"eslint tests lib --ignore-pattern \'tests/assets/*\'","lint:fix":"eslint --fix tests lib","test":"node tools/jest.js","coverage":"npm run test -- --coverage"},"keywords":[],"author":"wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)","license":"Apache-2.0","dependencies":{"@abtnode/analytics":"1.16.46","@abtnode/auth":"1.16.46","@abtnode/certificate-manager":"1.16.46","@abtnode/client":"1.16.46","@abtnode/constant":"1.16.46","@abtnode/cron":"1.16.46","@abtnode/db-cache":"1.16.46","@abtnode/docker-utils":"1.16.46","@abtnode/logger":"1.16.46","@abtnode/models":"1.16.46","@abtnode/queue":"1.16.46","@abtnode/rbac":"1.16.46","@abtnode/router-provider":"1.16.46","@abtnode/static-server":"1.16.46","@abtnode/timemachine":"1.16.46","@abtnode/util":"1.16.46","@aigne/aigne-hub":"^0.2.2","@arcblock/did":"1.21.0","@arcblock/did-auth":"1.21.0","@arcblock/did-ext":"1.21.0","@arcblock/did-motif":"^1.1.14","@arcblock/did-util":"1.21.0","@arcblock/event-hub":"1.21.0","@arcblock/jwt":"1.21.0","@arcblock/pm2-events":"^0.0.5","@arcblock/validator":"1.21.0","@arcblock/vc":"1.21.0","@blocklet/constant":"1.16.46","@blocklet/did-space-js":"^1.1.13","@blocklet/env":"1.16.46","@blocklet/error":"^0.2.5","@blocklet/meta":"1.16.46","@blocklet/resolver":"1.16.46","@blocklet/sdk":"1.16.46","@blocklet/store":"1.16.46","@blocklet/theme":"^3.0.37","@fidm/x509":"^1.2.1","@ocap/mcrypto":"1.21.0","@ocap/util":"1.21.0","@ocap/wallet":"1.21.0","@slack/webhook":"^5.0.4","archiver":"^7.0.1","axios":"^1.7.9","axon":"^2.0.3","chalk":"^4.1.2","cross-spawn":"^7.0.3","dayjs":"^1.11.13","deep-diff":"^1.0.2","detect-port":"^1.5.1","envfile":"^7.1.0","escape-string-regexp":"^4.0.0","fast-glob":"^3.3.2","filesize":"^10.1.1","flat":"^5.0.2","fs-extra":"^11.2.0","get-port":"^5.1.1","hasha":"^5.2.2","is-base64":"^1.1.0","is-cidr":"4","is-ip":"3","is-url":"^1.2.4","joi":"17.12.2","joi-extension-semver":"^5.0.0","js-yaml":"^4.1.0","kill-port":"^2.0.1","lodash":"^4.17.21","node-stream-zip":"^1.15.0","p-all":"^3.0.0","p-limit":"^3.1.0","p-map":"^4.0.0","p-retry":"^4.6.2","p-wait-for":"^3.2.0","rate-limiter-flexible":"^5.0.5","read-last-lines":"^1.8.0","semver":"^7.6.3","sequelize":"^6.35.0","shelljs":"^0.8.5","slugify":"^1.6.6","ssri":"^8.0.1","stream-throttle":"^0.1.3","stream-to-promise":"^3.0.0","systeminformation":"^5.23.3","tail":"^2.2.4","tar":"^6.1.11","transliteration":"^2.3.5","ua-parser-js":"^1.0.2","ufo":"^1.5.3","uuid":"^11.1.0","valid-url":"^1.0.9","which":"^2.0.2","xbytes":"^1.8.0"},"devDependencies":{"expand-tilde":"^2.0.2","express":"^4.18.2","jest":"^29.7.0","unzipper":"^0.10.11"},"gitHead":"e5764f753181ed6a7c615cd4fc6682aacf0cb7cd"}');
|
|
38922
38922
|
|
|
38923
38923
|
/***/ }),
|
|
38924
38924
|
|
|
@@ -374,9 +374,9 @@ class NotificationState extends BaseState {
|
|
|
374
374
|
return {
|
|
375
375
|
list: processedRows,
|
|
376
376
|
paging: {
|
|
377
|
-
total,
|
|
377
|
+
total: Number(total),
|
|
378
378
|
pageSize: curPageSize,
|
|
379
|
-
pageCount: Math.ceil(total / curPageSize),
|
|
379
|
+
pageCount: Math.ceil(Number(total) / curPageSize),
|
|
380
380
|
page,
|
|
381
381
|
},
|
|
382
382
|
};
|
|
@@ -917,8 +917,7 @@ class NotificationState extends BaseState {
|
|
|
917
917
|
replacements,
|
|
918
918
|
type: Sequelize.QueryTypes.SELECT,
|
|
919
919
|
});
|
|
920
|
-
|
|
921
|
-
return countResult.total;
|
|
920
|
+
return Number(countResult.total);
|
|
922
921
|
}
|
|
923
922
|
}
|
|
924
923
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.47-beta-
|
|
6
|
+
"version": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,22 +19,22 @@
|
|
|
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.47-beta-
|
|
23
|
-
"@abtnode/auth": "1.16.47-beta-
|
|
24
|
-
"@abtnode/certificate-manager": "1.16.47-beta-
|
|
25
|
-
"@abtnode/client": "1.16.47-beta-
|
|
26
|
-
"@abtnode/constant": "1.16.47-beta-
|
|
27
|
-
"@abtnode/cron": "1.16.47-beta-
|
|
28
|
-
"@abtnode/db-cache": "1.16.47-beta-
|
|
29
|
-
"@abtnode/docker-utils": "1.16.47-beta-
|
|
30
|
-
"@abtnode/logger": "1.16.47-beta-
|
|
31
|
-
"@abtnode/models": "1.16.47-beta-
|
|
32
|
-
"@abtnode/queue": "1.16.47-beta-
|
|
33
|
-
"@abtnode/rbac": "1.16.47-beta-
|
|
34
|
-
"@abtnode/router-provider": "1.16.47-beta-
|
|
35
|
-
"@abtnode/static-server": "1.16.47-beta-
|
|
36
|
-
"@abtnode/timemachine": "1.16.47-beta-
|
|
37
|
-
"@abtnode/util": "1.16.47-beta-
|
|
22
|
+
"@abtnode/analytics": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
23
|
+
"@abtnode/auth": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
24
|
+
"@abtnode/certificate-manager": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
25
|
+
"@abtnode/client": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
26
|
+
"@abtnode/constant": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
27
|
+
"@abtnode/cron": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
28
|
+
"@abtnode/db-cache": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
29
|
+
"@abtnode/docker-utils": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
30
|
+
"@abtnode/logger": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
31
|
+
"@abtnode/models": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
32
|
+
"@abtnode/queue": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
33
|
+
"@abtnode/rbac": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
34
|
+
"@abtnode/router-provider": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
35
|
+
"@abtnode/static-server": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
36
|
+
"@abtnode/timemachine": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
37
|
+
"@abtnode/util": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
38
38
|
"@aigne/aigne-hub": "^0.2.2",
|
|
39
39
|
"@arcblock/did": "1.21.0",
|
|
40
40
|
"@arcblock/did-auth": "1.21.0",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"@arcblock/pm2-events": "^0.0.5",
|
|
47
47
|
"@arcblock/validator": "1.21.0",
|
|
48
48
|
"@arcblock/vc": "1.21.0",
|
|
49
|
-
"@blocklet/constant": "1.16.47-beta-
|
|
50
|
-
"@blocklet/did-space-js": "^1.1.
|
|
51
|
-
"@blocklet/env": "1.16.47-beta-
|
|
49
|
+
"@blocklet/constant": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
50
|
+
"@blocklet/did-space-js": "^1.1.13",
|
|
51
|
+
"@blocklet/env": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
52
52
|
"@blocklet/error": "^0.2.5",
|
|
53
|
-
"@blocklet/meta": "1.16.47-beta-
|
|
54
|
-
"@blocklet/resolver": "1.16.47-beta-
|
|
55
|
-
"@blocklet/sdk": "1.16.47-beta-
|
|
56
|
-
"@blocklet/store": "1.16.47-beta-
|
|
53
|
+
"@blocklet/meta": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
54
|
+
"@blocklet/resolver": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
55
|
+
"@blocklet/sdk": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
56
|
+
"@blocklet/store": "1.16.47-beta-20250805-140707-3a4df7fd",
|
|
57
57
|
"@blocklet/theme": "^3.0.37",
|
|
58
58
|
"@fidm/x509": "^1.2.1",
|
|
59
59
|
"@ocap/mcrypto": "1.21.0",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"jest": "^29.7.0",
|
|
118
118
|
"unzipper": "^0.10.11"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "eee7c229e99cc764a20be2ce0347d6895766a8a0"
|
|
121
121
|
}
|