@abtnode/core 1.16.23-beta-7b5b0175 → 1.16.23-beta-06c3a221
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
|
@@ -307,6 +307,18 @@ class TeamAPI extends EventEmitter {
|
|
|
307
307
|
);
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
+
/**
|
|
311
|
+
* @description
|
|
312
|
+
* @param {{
|
|
313
|
+
* teamDid: string,
|
|
314
|
+
* user: {
|
|
315
|
+
* did: string,
|
|
316
|
+
* },
|
|
317
|
+
* options: Record<string, any>
|
|
318
|
+
* }} { teamDid, user, options = {} }
|
|
319
|
+
* @return {Promise<import('@abtnode/models').UserState>}
|
|
320
|
+
* @memberof TeamAPI
|
|
321
|
+
*/
|
|
310
322
|
async getUser({ teamDid, user, options = {} }) {
|
|
311
323
|
const state = await this.getUserState(teamDid);
|
|
312
324
|
return state.getUser(user.did, options);
|
|
@@ -255,7 +255,7 @@ class SpacesBackup extends BaseBackup {
|
|
|
255
255
|
concurrency: 8,
|
|
256
256
|
retryCount: 10,
|
|
257
257
|
filter: (object) => {
|
|
258
|
-
// FIXME: @yejianchao
|
|
258
|
+
// FIXME: @yejianchao 这里需要更完整的黑名单,这一层应该内置于 @did-space/client
|
|
259
259
|
return object.name !== '.DS_Store';
|
|
260
260
|
},
|
|
261
261
|
onAfterUpload: async (data) => {
|
|
@@ -288,7 +288,6 @@ class SpacesBackup extends BaseBackup {
|
|
|
288
288
|
|
|
289
289
|
if (errorCount !== 0) {
|
|
290
290
|
const { locale } = this.input;
|
|
291
|
-
// @FIXME: get locale @jianchao
|
|
292
291
|
if (statusCode === 403) {
|
|
293
292
|
throw new Error(translate(locale, 'backup.space.error.forbidden'));
|
|
294
293
|
}
|
package/lib/index.js
CHANGED
|
@@ -41,6 +41,10 @@ const { clearCache } = require('./util/cache');
|
|
|
41
41
|
const getMetaFromUrl = require('./util/get-meta-from-url');
|
|
42
42
|
const getDynamicComponents = require('./util/get-dynamic-components');
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* @typedef {{} & import('./api/team')}} TNode
|
|
46
|
+
*/
|
|
47
|
+
|
|
44
48
|
/**
|
|
45
49
|
* @param {object} options
|
|
46
50
|
* nodeSk, nodePk, nodeDid, nodeOwner: {pk, did}
|
|
@@ -56,6 +60,7 @@ const getDynamicComponents = require('./util/get-dynamic-components');
|
|
|
56
60
|
* autoUpgrade
|
|
57
61
|
* registerUrl
|
|
58
62
|
* webWalletUrl
|
|
63
|
+
* @returns {TNode}
|
|
59
64
|
*/
|
|
60
65
|
function ABTNode(options) {
|
|
61
66
|
if (!options.dataDir) {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.23-beta-
|
|
6
|
+
"version": "1.16.23-beta-06c3a221",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,19 +19,19 @@
|
|
|
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.23-beta-
|
|
23
|
-
"@abtnode/auth": "1.16.23-beta-
|
|
24
|
-
"@abtnode/certificate-manager": "1.16.23-beta-
|
|
25
|
-
"@abtnode/constant": "1.16.23-beta-
|
|
26
|
-
"@abtnode/cron": "1.16.23-beta-
|
|
27
|
-
"@abtnode/logger": "1.16.23-beta-
|
|
28
|
-
"@abtnode/models": "1.16.23-beta-
|
|
29
|
-
"@abtnode/queue": "1.16.23-beta-
|
|
30
|
-
"@abtnode/rbac": "1.16.23-beta-
|
|
31
|
-
"@abtnode/router-provider": "1.16.23-beta-
|
|
32
|
-
"@abtnode/static-server": "1.16.23-beta-
|
|
33
|
-
"@abtnode/timemachine": "1.16.23-beta-
|
|
34
|
-
"@abtnode/util": "1.16.23-beta-
|
|
22
|
+
"@abtnode/analytics": "1.16.23-beta-06c3a221",
|
|
23
|
+
"@abtnode/auth": "1.16.23-beta-06c3a221",
|
|
24
|
+
"@abtnode/certificate-manager": "1.16.23-beta-06c3a221",
|
|
25
|
+
"@abtnode/constant": "1.16.23-beta-06c3a221",
|
|
26
|
+
"@abtnode/cron": "1.16.23-beta-06c3a221",
|
|
27
|
+
"@abtnode/logger": "1.16.23-beta-06c3a221",
|
|
28
|
+
"@abtnode/models": "1.16.23-beta-06c3a221",
|
|
29
|
+
"@abtnode/queue": "1.16.23-beta-06c3a221",
|
|
30
|
+
"@abtnode/rbac": "1.16.23-beta-06c3a221",
|
|
31
|
+
"@abtnode/router-provider": "1.16.23-beta-06c3a221",
|
|
32
|
+
"@abtnode/static-server": "1.16.23-beta-06c3a221",
|
|
33
|
+
"@abtnode/timemachine": "1.16.23-beta-06c3a221",
|
|
34
|
+
"@abtnode/util": "1.16.23-beta-06c3a221",
|
|
35
35
|
"@arcblock/did": "1.18.108",
|
|
36
36
|
"@arcblock/did-auth": "1.18.108",
|
|
37
37
|
"@arcblock/did-ext": "^1.18.108",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"@arcblock/pm2-events": "^0.0.5",
|
|
43
43
|
"@arcblock/validator": "^1.18.108",
|
|
44
44
|
"@arcblock/vc": "1.18.108",
|
|
45
|
-
"@blocklet/constant": "1.16.23-beta-
|
|
46
|
-
"@blocklet/env": "1.16.23-beta-
|
|
47
|
-
"@blocklet/meta": "1.16.23-beta-
|
|
48
|
-
"@blocklet/resolver": "1.16.23-beta-
|
|
49
|
-
"@blocklet/sdk": "1.16.23-beta-
|
|
45
|
+
"@blocklet/constant": "1.16.23-beta-06c3a221",
|
|
46
|
+
"@blocklet/env": "1.16.23-beta-06c3a221",
|
|
47
|
+
"@blocklet/meta": "1.16.23-beta-06c3a221",
|
|
48
|
+
"@blocklet/resolver": "1.16.23-beta-06c3a221",
|
|
49
|
+
"@blocklet/sdk": "1.16.23-beta-06c3a221",
|
|
50
50
|
"@did-space/client": "^0.3.55",
|
|
51
51
|
"@fidm/x509": "^1.2.1",
|
|
52
52
|
"@ocap/mcrypto": "1.18.108",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"jest": "^29.7.0",
|
|
103
103
|
"unzipper": "^0.10.11"
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "10d2351eb9a0a222781d803798e15390622e421b"
|
|
106
106
|
}
|