@blocklet/sdk 1.16.23-beta-f85576a6 → 1.16.23-beta-aeb9f5bd

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.
@@ -44,8 +44,10 @@ function getResources({ scope, components: allComponents, types, skipRunningChec
44
44
  const env = (0, parse_env_file_1.parseEnvFile)(envFile);
45
45
  item.env = env;
46
46
  }
47
- catch (error) {
48
- console.error(error);
47
+ catch (err) {
48
+ if (process.env.NODE_ENV !== 'test') {
49
+ console.error(err);
50
+ }
49
51
  }
50
52
  list.push(item);
51
53
  }
@@ -74,7 +74,6 @@ class AuthService {
74
74
  'getUser',
75
75
  'getOwner',
76
76
  // 'removeUser',
77
- // 'updateUserRole',
78
77
  'updateUserApproval',
79
78
  'updateUserTags',
80
79
  'updateUserExtra',
@@ -133,7 +132,6 @@ class AuthService {
133
132
  return res;
134
133
  },
135
134
  // removeUser: apiConvertDid,
136
- // updateUserRole: (fn: Function) => (did: string, role: string) => fn({ input: { user: { did, role }, teamDid } }),
137
135
  updateUserApproval: (fn) => (did, approved) => fn({ input: { user: { did, approved }, teamDid } }),
138
136
  switchProfile: (fn) => (did, profile) => fn({ input: { teamDid, userDid: did, profile } }),
139
137
  getPermissionsByRole: (fn) => (name) => fn({ input: { role: { name }, teamDid } }),
@@ -158,8 +158,8 @@ const initClient = () => {
158
158
  });
159
159
  }
160
160
  });
161
- Object.keys(constant_1.BlockletInternalEvents).forEach((key) => {
162
- const event = constant_1.BlockletInternalEvents[key];
161
+ [...Object.keys(constant_1.BlockletInternalEvents), ...Object.keys(constant_1.TeamEvents)].forEach((key) => {
162
+ const event = constant_1.BlockletInternalEvents[key] || constant_1.TeamEvents[key];
163
163
  componentChannel.on(event, ({ status, response } = {}) => {
164
164
  if (status === 'ok') {
165
165
  const { data, sender, time } = response;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.23-beta-f85576a6",
6
+ "version": "1.16.23-beta-aeb9f5bd",
7
7
  "description": "graphql client to read/write data on abt node",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
@@ -26,15 +26,15 @@
26
26
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@abtnode/client": "1.16.23-beta-f85576a6",
30
- "@abtnode/constant": "1.16.23-beta-f85576a6",
29
+ "@abtnode/client": "1.16.23-beta-aeb9f5bd",
30
+ "@abtnode/constant": "1.16.23-beta-aeb9f5bd",
31
31
  "@arcblock/did": "1.18.108",
32
32
  "@arcblock/did-auth": "1.18.108",
33
33
  "@arcblock/jwt": "1.18.108",
34
34
  "@arcblock/ws": "1.18.108",
35
- "@blocklet/constant": "1.16.23-beta-f85576a6",
36
- "@blocklet/env": "1.16.23-beta-f85576a6",
37
- "@blocklet/meta": "1.16.23-beta-f85576a6",
35
+ "@blocklet/constant": "1.16.23-beta-aeb9f5bd",
36
+ "@blocklet/env": "1.16.23-beta-aeb9f5bd",
37
+ "@blocklet/meta": "1.16.23-beta-aeb9f5bd",
38
38
  "@did-connect/authenticator": "^2.2.1",
39
39
  "@did-connect/handler": "^2.2.1",
40
40
  "@nedb/core": "^2.1.5",
@@ -59,7 +59,7 @@
59
59
  "devDependencies": {
60
60
  "@arcblock/eslint-config-ts": "^0.2.4",
61
61
  "@types/express": "^4.17.14",
62
- "@types/jest": "^29.2.0",
62
+ "@types/jest": "^29.5.11",
63
63
  "@types/json-stable-stringify": "^1.0.34",
64
64
  "@types/lodash": "^4.14.186",
65
65
  "@types/node": "^18.11.0",
@@ -67,13 +67,13 @@
67
67
  "@typescript-eslint/parser": "^5.40.1",
68
68
  "detect-port": "^1.5.1",
69
69
  "eslint": "^8.25.0",
70
- "jest": "^27.5.1",
70
+ "jest": "^29.7.0",
71
71
  "joi-to-typescript": "^4.0.7",
72
72
  "json-stable-stringify": "^1.0.1",
73
73
  "prettier": "^2.7.1",
74
- "ts-jest": "^27.1.5",
74
+ "ts-jest": "^29.1.1",
75
75
  "ts-node": "^10.9.1",
76
76
  "typescript": "^5.0.4"
77
77
  },
78
- "gitHead": "bac83a74944b4cef3ccb386277023caf0e1d5cd4"
78
+ "gitHead": "418cacd970d373aecc8706f8992e57369d394577"
79
79
  }