@blocklet/sdk 1.16.52 → 1.16.53-beta-20251009-103017-c7694a7e
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/service/blocklet.d.ts +4 -3
- package/lib/service/blocklet.js +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +9 -9
|
@@ -3,7 +3,8 @@ import { LOGIN_PROVIDER } from '@blocklet/constant';
|
|
|
3
3
|
type PartialDeep<T> = {
|
|
4
4
|
[K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
|
|
5
5
|
};
|
|
6
|
-
type OmitTeamDid<T> = PartialDeep<Omit<T, 'teamDid'
|
|
6
|
+
type OmitTeamDid<T> = PartialDeep<Omit<T, 'teamDid'>>;
|
|
7
|
+
type OmitDid<T> = PartialDeep<Omit<T, 'did'>>;
|
|
7
8
|
type RequestHeaders = {
|
|
8
9
|
headers: {
|
|
9
10
|
cookie: string;
|
|
@@ -90,7 +91,7 @@ interface BlockletService {
|
|
|
90
91
|
getOrgResource(params: OmitTeamDid<Client.RequestGetOrgResourceInput>): Promise<Client.ResponseGetOrgResource>;
|
|
91
92
|
addOrgResource(params: OmitTeamDid<Client.RequestAddOrgResourceInput>): Promise<Client.ResponseOrgResourceOperation>;
|
|
92
93
|
migrateOrgResource(params: OmitTeamDid<Client.RequestMigrateOrgResourceInput>): Promise<Client.ResponseOrgResourceOperation>;
|
|
93
|
-
configBlocklet(params:
|
|
94
|
-
configNavigations(params:
|
|
94
|
+
configBlocklet(params: OmitDid<Client.RequestConfigBlockletInput>): Promise<Client.ResponseBlocklet>;
|
|
95
|
+
configNavigations(params: OmitDid<Client.RequestConfigNavigationsInput>): Promise<Client.ResponseBlocklet>;
|
|
95
96
|
}
|
|
96
97
|
export = BlockletService;
|
package/lib/service/blocklet.js
CHANGED
|
@@ -78,6 +78,7 @@ class BlockletClient extends server_js_1.default {
|
|
|
78
78
|
const headers = super._getAuthHeaders();
|
|
79
79
|
// BLOCKLET_DID is always same as BLOCKLET_APP_PID in structV2 application
|
|
80
80
|
headers['x-access-blocklet'] = process.env.BLOCKLET_DID;
|
|
81
|
+
headers['x-access-component'] = process.env.BLOCKLET_COMPONENT_DID;
|
|
81
82
|
return headers;
|
|
82
83
|
}
|
|
83
84
|
}
|
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.53-beta-20251009-103017-c7694a7e",
|
|
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",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@abtnode/constant": "1.16.
|
|
31
|
-
"@abtnode/db-cache": "1.16.
|
|
32
|
-
"@abtnode/util": "1.16.
|
|
30
|
+
"@abtnode/constant": "1.16.53-beta-20251009-103017-c7694a7e",
|
|
31
|
+
"@abtnode/db-cache": "1.16.53-beta-20251009-103017-c7694a7e",
|
|
32
|
+
"@abtnode/util": "1.16.53-beta-20251009-103017-c7694a7e",
|
|
33
33
|
"@arcblock/did": "1.25.6",
|
|
34
34
|
"@arcblock/did-connect-js": "1.25.6",
|
|
35
35
|
"@arcblock/jwt": "1.25.6",
|
|
36
36
|
"@arcblock/ws": "1.25.6",
|
|
37
|
-
"@blocklet/constant": "1.16.
|
|
38
|
-
"@blocklet/env": "1.16.
|
|
37
|
+
"@blocklet/constant": "1.16.53-beta-20251009-103017-c7694a7e",
|
|
38
|
+
"@blocklet/env": "1.16.53-beta-20251009-103017-c7694a7e",
|
|
39
39
|
"@blocklet/error": "^0.2.5",
|
|
40
|
-
"@blocklet/meta": "1.16.
|
|
41
|
-
"@blocklet/server-js": "1.16.
|
|
40
|
+
"@blocklet/meta": "1.16.53-beta-20251009-103017-c7694a7e",
|
|
41
|
+
"@blocklet/server-js": "1.16.53-beta-20251009-103017-c7694a7e",
|
|
42
42
|
"@blocklet/theme": "^3.1.45",
|
|
43
43
|
"@did-connect/authenticator": "^2.2.8",
|
|
44
44
|
"@did-connect/handler": "^2.2.8",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"ts-node": "^10.9.1",
|
|
86
86
|
"typescript": "^5.6.3"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "092a23ac8eaef355ce922cf764fb0f104a99d3ad"
|
|
89
89
|
}
|