@blocklet/sdk 1.16.15 → 1.16.16-beta-e038cde7
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/config.js +3 -3
- package/lib/service/auth.d.ts +1 -0
- package/lib/service/auth.js +1 -0
- package/lib/service/notification.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +7 -7
package/lib/config.js
CHANGED
|
@@ -231,8 +231,8 @@ const _handleComponentConfigUpdate = (data) => {
|
|
|
231
231
|
exports._handleComponentConfigUpdate = _handleComponentConfigUpdate;
|
|
232
232
|
let blockletJs = '';
|
|
233
233
|
const fetchBlockletJs = async () => {
|
|
234
|
+
const componentDid = process.env.BLOCKLET_COMPONENT_DID;
|
|
234
235
|
try {
|
|
235
|
-
const componentDid = process.env.BLOCKLET_COMPONENT_DID;
|
|
236
236
|
const { mountPoint } = componentStore.find((x) => x.did === componentDid);
|
|
237
237
|
const res = await axios_1.default.get((0, url_join_1.default)(env.appUrl, mountPoint === '/' ? '' : mountPoint, `__blocklet__.js?t=${Date.now()}`), {
|
|
238
238
|
timeout: 8000,
|
|
@@ -241,11 +241,11 @@ const fetchBlockletJs = async () => {
|
|
|
241
241
|
},
|
|
242
242
|
});
|
|
243
243
|
blockletJs = res.data;
|
|
244
|
-
logger.info(
|
|
244
|
+
logger.info(`Fetch blocklet.js succeed: ${env.appPid}/${componentDid}`);
|
|
245
245
|
return res.data;
|
|
246
246
|
}
|
|
247
247
|
catch (err) {
|
|
248
|
-
logger.error(
|
|
248
|
+
logger.error(`Fetch blocklet.js failed: ${env.appPid}/${componentDid}`, err.message);
|
|
249
249
|
return null;
|
|
250
250
|
}
|
|
251
251
|
};
|
package/lib/service/auth.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ interface AuthService {
|
|
|
42
42
|
issuePassportToUser(args: OmitTeamDid<Client.RequestIssuePassportToUserInput>): Promise<Client.ResponseUser>;
|
|
43
43
|
enableUserPassport(args: OmitTeamDid<Client.RequestRevokeUserPassportInput>): Promise<Client.ResponseUser>;
|
|
44
44
|
revokeUserPassport(args: OmitTeamDid<Client.RequestRevokeUserPassportInput>): Promise<Client.ResponseUser>;
|
|
45
|
+
removeUserPassport(args: OmitTeamDid<Client.RequestRevokeUserPassportInput>): Promise<Client.GeneralResponse>;
|
|
45
46
|
getPermissionsByRole(role: string): Promise<Client.ResponsePermissions>;
|
|
46
47
|
getRoles(): Promise<Client.ResponseRoles>;
|
|
47
48
|
createRole(args: OmitTeamDid<Client.RequestCreateRoleInput>): Promise<Client.ResponseRole>;
|
package/lib/service/auth.js
CHANGED
|
@@ -161,7 +161,7 @@ const initClient = () => {
|
|
|
161
161
|
if (event === constant_1.BlockletInternalEvents.componentsUpdated) {
|
|
162
162
|
return;
|
|
163
163
|
}
|
|
164
|
-
if (!time || new Date(time).
|
|
164
|
+
if (!time || new Date(time).getTime() < new Date(process.env.BLOCKLET_START_AT).getTime()) {
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
167
|
// verify sender is server
|
package/lib/version.d.ts
CHANGED
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.
|
|
6
|
+
"version": "1.16.16-beta-e038cde7",
|
|
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.
|
|
30
|
-
"@abtnode/constant": "1.16.
|
|
29
|
+
"@abtnode/client": "1.16.16-beta-e038cde7",
|
|
30
|
+
"@abtnode/constant": "1.16.16-beta-e038cde7",
|
|
31
31
|
"@arcblock/did": "1.18.89",
|
|
32
32
|
"@arcblock/did-auth": "1.18.89",
|
|
33
33
|
"@arcblock/jwt": "1.18.89",
|
|
34
34
|
"@arcblock/ws": "1.18.89",
|
|
35
|
-
"@blocklet/constant": "1.16.
|
|
36
|
-
"@blocklet/env": "1.16.
|
|
37
|
-
"@blocklet/meta": "1.16.
|
|
35
|
+
"@blocklet/constant": "1.16.16-beta-e038cde7",
|
|
36
|
+
"@blocklet/env": "1.16.16-beta-e038cde7",
|
|
37
|
+
"@blocklet/meta": "1.16.16-beta-e038cde7",
|
|
38
38
|
"@did-connect/authenticator": "^2.2.0",
|
|
39
39
|
"@did-connect/handler": "^2.2.0",
|
|
40
40
|
"@nedb/core": "^2.1.5",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"ts-node": "^10.9.1",
|
|
75
75
|
"typescript": "^5.0.4"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "688b1c7ae0f6652094100c101f5d218266dd86ac"
|
|
78
78
|
}
|