@blocklet/store 1.16.39-beta-20250215-130252-43410928 → 1.16.39-beta-20250218-132815-6baaf20e
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 +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +6 -6
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-
|
|
3
|
+
"version": "1.16.39-beta-20250218-132815-6baaf20e",
|
|
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-
|
|
31
|
-
"@abtnode/util": "1.16.39-beta-
|
|
30
|
+
"@abtnode/constant": "1.16.39-beta-20250218-132815-6baaf20e",
|
|
31
|
+
"@abtnode/util": "1.16.39-beta-20250218-132815-6baaf20e",
|
|
32
32
|
"@arcblock/did": "1.19.9",
|
|
33
|
-
"@blocklet/constant": "1.16.39-beta-
|
|
34
|
-
"@blocklet/meta": "1.16.39-beta-
|
|
33
|
+
"@blocklet/constant": "1.16.39-beta-20250218-132815-6baaf20e",
|
|
34
|
+
"@blocklet/meta": "1.16.39-beta-20250218-132815-6baaf20e",
|
|
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": "
|
|
65
|
+
"gitHead": "731bfe1a4ad07e92bd9e28fa1627648fbf485326"
|
|
66
66
|
}
|