@abtnode/core 1.17.2-beta-20251112-085154-0103b877 → 1.17.2-beta-20251113-121338-9c917e68
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
|
@@ -2412,20 +2412,35 @@ class TeamAPI extends EventEmitter {
|
|
|
2412
2412
|
}
|
|
2413
2413
|
|
|
2414
2414
|
async getPassportFromFederated({ site, passportId, teamDid }) {
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2415
|
+
try {
|
|
2416
|
+
const blocklet = await getBlocklet({
|
|
2417
|
+
did: teamDid,
|
|
2418
|
+
states: this.states,
|
|
2419
|
+
dataDirs: this.dataDirs,
|
|
2420
|
+
useCache: true,
|
|
2421
|
+
});
|
|
2422
|
+
const nodeInfo = await this.node.read();
|
|
2423
|
+
const { permanentWallet } = getBlockletInfo(blocklet, nodeInfo.sk);
|
|
2418
2424
|
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2425
|
+
const result = await callFederated({
|
|
2426
|
+
action: 'getPassport',
|
|
2427
|
+
data: {
|
|
2428
|
+
passportId,
|
|
2429
|
+
},
|
|
2430
|
+
permanentWallet,
|
|
2431
|
+
site,
|
|
2432
|
+
requestOptions: {
|
|
2433
|
+
// 缩短查询通行证的请求时间,这个请求不会很复杂
|
|
2434
|
+
timeout: 3 * 1000,
|
|
2435
|
+
},
|
|
2436
|
+
});
|
|
2427
2437
|
|
|
2428
|
-
|
|
2438
|
+
return result;
|
|
2439
|
+
} catch (error) {
|
|
2440
|
+
// 吞没错误,查询失败也不会影响整个快捷登录流程
|
|
2441
|
+
logger.error('Failed to getPassportFromFederated', { site, passportId, teamDid, error });
|
|
2442
|
+
return null;
|
|
2443
|
+
}
|
|
2429
2444
|
}
|
|
2430
2445
|
|
|
2431
2446
|
/**
|
|
@@ -39024,7 +39024,7 @@ module.exports = require("zlib");
|
|
|
39024
39024
|
/***/ ((module) => {
|
|
39025
39025
|
|
|
39026
39026
|
"use strict";
|
|
39027
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@abtnode/core","publishConfig":{"access":"public"},"version":"1.17.1","description":"","main":"lib/index.js","files":["lib"],"scripts":{"lint":"eslint tests lib --ignore-pattern \'tests/assets/*\'","lint:fix":"eslint --fix tests lib"},"keywords":[],"author":"wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)","license":"Apache-2.0","dependencies":{"@abtnode/analytics":"1.17.1","@abtnode/auth":"1.17.1","@abtnode/certificate-manager":"1.17.1","@abtnode/constant":"1.17.1","@abtnode/cron":"1.17.1","@abtnode/db-cache":"1.17.1","@abtnode/docker-utils":"1.17.1","@abtnode/logger":"1.17.1","@abtnode/models":"1.17.1","@abtnode/queue":"1.17.1","@abtnode/rbac":"1.17.1","@abtnode/router-provider":"1.17.1","@abtnode/static-server":"1.17.1","@abtnode/timemachine":"1.17.1","@abtnode/util":"1.17.1","@aigne/aigne-hub":"^0.10.5","@arcblock/did":"^1.27.4","@arcblock/did-connect-js":"^1.27.4","@arcblock/did-ext":"^1.27.4","@arcblock/did-motif":"^1.1.14","@arcblock/did-util":"^1.27.4","@arcblock/event-hub":"^1.27.4","@arcblock/jwt":"^1.27.4","@arcblock/pm2-events":"^0.0.5","@arcblock/validator":"^1.27.4","@arcblock/vc":"^1.27.4","@blocklet/constant":"1.17.1","@blocklet/did-space-js":"^1.2.2","@blocklet/env":"1.17.1","@blocklet/error":"^0.3.2","@blocklet/meta":"1.17.1","@blocklet/resolver":"1.17.1","@blocklet/sdk":"1.17.1","@blocklet/server-js":"1.17.1","@blocklet/store":"1.17.1","@blocklet/theme":"^3.2.3","@fidm/x509":"^1.2.1","@ocap/mcrypto":"^1.27.4","@ocap/util":"^1.27.4","@ocap/wallet":"^1.27.4","@slack/webhook":"^
|
|
39027
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@abtnode/core","publishConfig":{"access":"public"},"version":"1.17.1","description":"","main":"lib/index.js","files":["lib"],"scripts":{"lint":"eslint tests lib --ignore-pattern \'tests/assets/*\'","lint:fix":"eslint --fix tests lib"},"keywords":[],"author":"wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)","license":"Apache-2.0","dependencies":{"@abtnode/analytics":"1.17.1","@abtnode/auth":"1.17.1","@abtnode/certificate-manager":"1.17.1","@abtnode/constant":"1.17.1","@abtnode/cron":"1.17.1","@abtnode/db-cache":"1.17.1","@abtnode/docker-utils":"1.17.1","@abtnode/logger":"1.17.1","@abtnode/models":"1.17.1","@abtnode/queue":"1.17.1","@abtnode/rbac":"1.17.1","@abtnode/router-provider":"1.17.1","@abtnode/static-server":"1.17.1","@abtnode/timemachine":"1.17.1","@abtnode/util":"1.17.1","@aigne/aigne-hub":"^0.10.5","@arcblock/did":"^1.27.4","@arcblock/did-connect-js":"^1.27.4","@arcblock/did-ext":"^1.27.4","@arcblock/did-motif":"^1.1.14","@arcblock/did-util":"^1.27.4","@arcblock/event-hub":"^1.27.4","@arcblock/jwt":"^1.27.4","@arcblock/pm2-events":"^0.0.5","@arcblock/validator":"^1.27.4","@arcblock/vc":"^1.27.4","@blocklet/constant":"1.17.1","@blocklet/did-space-js":"^1.2.2","@blocklet/env":"1.17.1","@blocklet/error":"^0.3.2","@blocklet/meta":"1.17.1","@blocklet/resolver":"1.17.1","@blocklet/sdk":"1.17.1","@blocklet/server-js":"1.17.1","@blocklet/store":"1.17.1","@blocklet/theme":"^3.2.3","@fidm/x509":"^1.2.1","@ocap/mcrypto":"^1.27.4","@ocap/util":"^1.27.4","@ocap/wallet":"^1.27.4","@slack/webhook":"^7.0.6","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","private-ip":"^2.3.4","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":{"axios-mock-adapter":"^2.1.0","expand-tilde":"^2.0.2","express":"^4.18.2","unzipper":"^0.10.11"},"gitHead":"e5764f753181ed6a7c615cd4fc6682aacf0cb7cd"}');
|
|
39028
39028
|
|
|
39029
39029
|
/***/ }),
|
|
39030
39030
|
|
|
@@ -157,7 +157,9 @@ class SlackSender extends BaseSender {
|
|
|
157
157
|
text: 'ok',
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
const webhook = new IncomingWebhook(url
|
|
160
|
+
const webhook = new IncomingWebhook(url, {
|
|
161
|
+
timeout: 60 * 1000, // 1 minutes
|
|
162
|
+
});
|
|
161
163
|
const res = await webhook.send({
|
|
162
164
|
blocks,
|
|
163
165
|
username: sender.name,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.2-beta-
|
|
6
|
+
"version": "1.17.2-beta-20251113-121338-9c917e68",
|
|
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.2-beta-
|
|
21
|
-
"@abtnode/auth": "1.17.2-beta-
|
|
22
|
-
"@abtnode/certificate-manager": "1.17.2-beta-
|
|
23
|
-
"@abtnode/constant": "1.17.2-beta-
|
|
24
|
-
"@abtnode/cron": "1.17.2-beta-
|
|
25
|
-
"@abtnode/db-cache": "1.17.2-beta-
|
|
26
|
-
"@abtnode/docker-utils": "1.17.2-beta-
|
|
27
|
-
"@abtnode/logger": "1.17.2-beta-
|
|
28
|
-
"@abtnode/models": "1.17.2-beta-
|
|
29
|
-
"@abtnode/queue": "1.17.2-beta-
|
|
30
|
-
"@abtnode/rbac": "1.17.2-beta-
|
|
31
|
-
"@abtnode/router-provider": "1.17.2-beta-
|
|
32
|
-
"@abtnode/static-server": "1.17.2-beta-
|
|
33
|
-
"@abtnode/timemachine": "1.17.2-beta-
|
|
34
|
-
"@abtnode/util": "1.17.2-beta-
|
|
20
|
+
"@abtnode/analytics": "1.17.2-beta-20251113-121338-9c917e68",
|
|
21
|
+
"@abtnode/auth": "1.17.2-beta-20251113-121338-9c917e68",
|
|
22
|
+
"@abtnode/certificate-manager": "1.17.2-beta-20251113-121338-9c917e68",
|
|
23
|
+
"@abtnode/constant": "1.17.2-beta-20251113-121338-9c917e68",
|
|
24
|
+
"@abtnode/cron": "1.17.2-beta-20251113-121338-9c917e68",
|
|
25
|
+
"@abtnode/db-cache": "1.17.2-beta-20251113-121338-9c917e68",
|
|
26
|
+
"@abtnode/docker-utils": "1.17.2-beta-20251113-121338-9c917e68",
|
|
27
|
+
"@abtnode/logger": "1.17.2-beta-20251113-121338-9c917e68",
|
|
28
|
+
"@abtnode/models": "1.17.2-beta-20251113-121338-9c917e68",
|
|
29
|
+
"@abtnode/queue": "1.17.2-beta-20251113-121338-9c917e68",
|
|
30
|
+
"@abtnode/rbac": "1.17.2-beta-20251113-121338-9c917e68",
|
|
31
|
+
"@abtnode/router-provider": "1.17.2-beta-20251113-121338-9c917e68",
|
|
32
|
+
"@abtnode/static-server": "1.17.2-beta-20251113-121338-9c917e68",
|
|
33
|
+
"@abtnode/timemachine": "1.17.2-beta-20251113-121338-9c917e68",
|
|
34
|
+
"@abtnode/util": "1.17.2-beta-20251113-121338-9c917e68",
|
|
35
35
|
"@aigne/aigne-hub": "^0.10.5",
|
|
36
36
|
"@arcblock/did": "^1.27.4",
|
|
37
37
|
"@arcblock/did-connect-js": "^1.27.4",
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"@arcblock/pm2-events": "^0.0.5",
|
|
44
44
|
"@arcblock/validator": "^1.27.4",
|
|
45
45
|
"@arcblock/vc": "^1.27.4",
|
|
46
|
-
"@blocklet/constant": "1.17.2-beta-
|
|
46
|
+
"@blocklet/constant": "1.17.2-beta-20251113-121338-9c917e68",
|
|
47
47
|
"@blocklet/did-space-js": "^1.2.2",
|
|
48
|
-
"@blocklet/env": "1.17.2-beta-
|
|
48
|
+
"@blocklet/env": "1.17.2-beta-20251113-121338-9c917e68",
|
|
49
49
|
"@blocklet/error": "^0.3.2",
|
|
50
|
-
"@blocklet/meta": "1.17.2-beta-
|
|
51
|
-
"@blocklet/resolver": "1.17.2-beta-
|
|
52
|
-
"@blocklet/sdk": "1.17.2-beta-
|
|
53
|
-
"@blocklet/server-js": "1.17.2-beta-
|
|
54
|
-
"@blocklet/store": "1.17.2-beta-
|
|
50
|
+
"@blocklet/meta": "1.17.2-beta-20251113-121338-9c917e68",
|
|
51
|
+
"@blocklet/resolver": "1.17.2-beta-20251113-121338-9c917e68",
|
|
52
|
+
"@blocklet/sdk": "1.17.2-beta-20251113-121338-9c917e68",
|
|
53
|
+
"@blocklet/server-js": "1.17.2-beta-20251113-121338-9c917e68",
|
|
54
|
+
"@blocklet/store": "1.17.2-beta-20251113-121338-9c917e68",
|
|
55
55
|
"@blocklet/theme": "^3.2.3",
|
|
56
56
|
"@fidm/x509": "^1.2.1",
|
|
57
57
|
"@ocap/mcrypto": "^1.27.4",
|
|
58
58
|
"@ocap/util": "^1.27.4",
|
|
59
59
|
"@ocap/wallet": "^1.27.4",
|
|
60
|
-
"@slack/webhook": "^
|
|
60
|
+
"@slack/webhook": "^7.0.6",
|
|
61
61
|
"archiver": "^7.0.1",
|
|
62
62
|
"axios": "^1.7.9",
|
|
63
63
|
"axon": "^2.0.3",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"express": "^4.18.2",
|
|
117
117
|
"unzipper": "^0.10.11"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "82362ffba5d50f01774b257b9cd8143adeb7a898"
|
|
120
120
|
}
|