@blocklet/store 1.16.39-beta-20250213-123635-cabff5af → 1.16.39-beta-20250218-110004-a308c501

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/dist/index.cjs CHANGED
@@ -152,12 +152,18 @@ async function createConnect({
152
152
  source,
153
153
  ...restParams
154
154
  };
155
+ const connectInfo = new URL(connectUrl);
155
156
  const res = await request({
156
157
  url: ufo.joinURL(connectUrl, ENDPOINT_CREATE_SESSION),
157
158
  params: mergeParams,
158
159
  // for sensitive info encryption
159
160
  method: "GET",
160
- timeout: fetchTimeout
161
+ timeout: fetchTimeout,
162
+ headers: {
163
+ "x-real-port": connectInfo.port,
164
+ "x-real-hostname": connectInfo.hostname,
165
+ "x-real-protocol": connectInfo.protocol
166
+ }
161
167
  });
162
168
  const { url, token } = res.data;
163
169
  const pageUrl = ufo.withQuery(ufo.joinURL(connectUrl, DID_CONNECT_URL), {
package/dist/index.mjs CHANGED
@@ -132,12 +132,18 @@ async function createConnect({
132
132
  source,
133
133
  ...restParams
134
134
  };
135
+ const connectInfo = new URL(connectUrl);
135
136
  const res = await request({
136
137
  url: joinURL(connectUrl, ENDPOINT_CREATE_SESSION),
137
138
  params: mergeParams,
138
139
  // for sensitive info encryption
139
140
  method: "GET",
140
- timeout: fetchTimeout
141
+ timeout: fetchTimeout,
142
+ headers: {
143
+ "x-real-port": connectInfo.port,
144
+ "x-real-hostname": connectInfo.hostname,
145
+ "x-real-protocol": connectInfo.protocol
146
+ }
141
147
  });
142
148
  const { url, token } = res.data;
143
149
  const pageUrl = withQuery(joinURL(connectUrl, DID_CONNECT_URL), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/store",
3
- "version": "1.16.39-beta-20250213-123635-cabff5af",
3
+ "version": "1.16.39-beta-20250218-110004-a308c501",
4
4
  "description": "Connect Store and upload blocklet to Store",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,11 +27,11 @@
27
27
  "author": "",
28
28
  "license": "ISC",
29
29
  "dependencies": {
30
- "@abtnode/constant": "1.16.39-beta-20250213-123635-cabff5af",
31
- "@abtnode/util": "1.16.39-beta-20250213-123635-cabff5af",
30
+ "@abtnode/constant": "1.16.39-beta-20250218-110004-a308c501",
31
+ "@abtnode/util": "1.16.39-beta-20250218-110004-a308c501",
32
32
  "@arcblock/did": "1.19.9",
33
- "@blocklet/constant": "1.16.39-beta-20250213-123635-cabff5af",
34
- "@blocklet/meta": "1.16.39-beta-20250213-123635-cabff5af",
33
+ "@blocklet/constant": "1.16.39-beta-20250218-110004-a308c501",
34
+ "@blocklet/meta": "1.16.39-beta-20250218-110004-a308c501",
35
35
  "@ocap/client": "^1.19.9",
36
36
  "@ocap/util": "1.19.9",
37
37
  "@ocap/wallet": "1.19.9",
@@ -62,5 +62,5 @@
62
62
  "typescript": "^5.6.3",
63
63
  "unbuild": "^2.0.0"
64
64
  },
65
- "gitHead": "026b776b588cdae21750570de1102bb24f1ad3d6"
65
+ "gitHead": "f47632e1ce0cc8295dd3fa1131bcc6252d6adaf9"
66
66
  }