@blocklet/sdk 1.16.19-beta-ba354e01 → 1.16.19-beta-630ac853
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/component/index.d.ts
CHANGED
package/lib/component/index.js
CHANGED
|
@@ -37,13 +37,14 @@ const constant_1 = require("@blocklet/constant");
|
|
|
37
37
|
const config_1 = require("../config");
|
|
38
38
|
const verify_sign_1 = require("../util/verify-sign");
|
|
39
39
|
const Util = __importStar(require("./util"));
|
|
40
|
-
const doCall = async ({ url, ...options }) => {
|
|
40
|
+
const doCall = async ({ url, headers = {}, ...options }) => {
|
|
41
41
|
try {
|
|
42
42
|
const resp = await (0, axios_1.default)({
|
|
43
43
|
url,
|
|
44
44
|
timeout: 60 * 1000,
|
|
45
45
|
...options,
|
|
46
46
|
headers: {
|
|
47
|
+
...(headers || {}),
|
|
47
48
|
'x-component-sig': (0, verify_sign_1.sign)(options.data),
|
|
48
49
|
'x-component-did': process.env.BLOCKLET_COMPONENT_DID,
|
|
49
50
|
},
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.19-beta-
|
|
6
|
+
"version": "1.16.19-beta-630ac853",
|
|
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.19-beta-
|
|
30
|
-
"@abtnode/constant": "1.16.19-beta-
|
|
29
|
+
"@abtnode/client": "1.16.19-beta-630ac853",
|
|
30
|
+
"@abtnode/constant": "1.16.19-beta-630ac853",
|
|
31
31
|
"@arcblock/did": "1.18.95",
|
|
32
32
|
"@arcblock/did-auth": "1.18.95",
|
|
33
33
|
"@arcblock/jwt": "1.18.95",
|
|
34
34
|
"@arcblock/ws": "1.18.95",
|
|
35
|
-
"@blocklet/constant": "1.16.19-beta-
|
|
36
|
-
"@blocklet/env": "1.16.19-beta-
|
|
37
|
-
"@blocklet/meta": "1.16.19-beta-
|
|
35
|
+
"@blocklet/constant": "1.16.19-beta-630ac853",
|
|
36
|
+
"@blocklet/env": "1.16.19-beta-630ac853",
|
|
37
|
+
"@blocklet/meta": "1.16.19-beta-630ac853",
|
|
38
38
|
"@did-connect/authenticator": "^2.2.1",
|
|
39
39
|
"@did-connect/handler": "^2.2.1",
|
|
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": "a4feb519d9122ef75873dd8d657486afca2d4ac9"
|
|
78
78
|
}
|