@blocklet/sdk 1.16.34-beta-20241207-004652-f10ad343 → 1.16.34-beta-20241207-134904-3c3d9a35
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.
|
@@ -18,10 +18,15 @@ function parseDockerComponentHost(component) {
|
|
|
18
18
|
return '127.0.0.1';
|
|
19
19
|
}
|
|
20
20
|
function parseDockerComponentEndpoint(endpoint, component) {
|
|
21
|
-
if (process.env.BLOCKLET_DOCKER_NETWORK && process.env.BLOCKLET_DOCKER_NETWORK !== 'host') {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
if (endpoint && process.env.BLOCKLET_DOCKER_NETWORK && process.env.BLOCKLET_DOCKER_NETWORK !== 'host') {
|
|
22
|
+
try {
|
|
23
|
+
const url = new URL(endpoint);
|
|
24
|
+
url.host = parseDockerHost(`${process.env.BLOCKLET_DOCKER_NETWORK}-${component.name || component.did}`);
|
|
25
|
+
return url.toString();
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
return endpoint;
|
|
29
|
+
}
|
|
25
30
|
}
|
|
26
31
|
return endpoint;
|
|
27
32
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.34-beta-20241207-
|
|
6
|
+
"version": "1.16.34-beta-20241207-134904-3c3d9a35",
|
|
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,16 +27,16 @@
|
|
|
27
27
|
"author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@abtnode/client": "1.16.34-beta-20241207-
|
|
31
|
-
"@abtnode/constant": "1.16.34-beta-20241207-
|
|
32
|
-
"@abtnode/util": "1.16.34-beta-20241207-
|
|
30
|
+
"@abtnode/client": "1.16.34-beta-20241207-134904-3c3d9a35",
|
|
31
|
+
"@abtnode/constant": "1.16.34-beta-20241207-134904-3c3d9a35",
|
|
32
|
+
"@abtnode/util": "1.16.34-beta-20241207-134904-3c3d9a35",
|
|
33
33
|
"@arcblock/did": "1.18.156",
|
|
34
34
|
"@arcblock/did-auth": "1.18.156",
|
|
35
35
|
"@arcblock/jwt": "1.18.156",
|
|
36
36
|
"@arcblock/ws": "1.18.156",
|
|
37
|
-
"@blocklet/constant": "1.16.34-beta-20241207-
|
|
38
|
-
"@blocklet/env": "1.16.34-beta-20241207-
|
|
39
|
-
"@blocklet/meta": "1.16.34-beta-20241207-
|
|
37
|
+
"@blocklet/constant": "1.16.34-beta-20241207-134904-3c3d9a35",
|
|
38
|
+
"@blocklet/env": "1.16.34-beta-20241207-134904-3c3d9a35",
|
|
39
|
+
"@blocklet/meta": "1.16.34-beta-20241207-134904-3c3d9a35",
|
|
40
40
|
"@did-connect/authenticator": "^2.2.4",
|
|
41
41
|
"@did-connect/handler": "^2.2.4",
|
|
42
42
|
"@nedb/core": "^2.1.5",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"ts-node": "^10.9.1",
|
|
81
81
|
"typescript": "^5.6.3"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "75e87cd61f4978a8fc0e6f335492abc891aed082"
|
|
84
84
|
}
|