@blocklet/store 1.16.42-beta-20250412-084444-20b0cf19 → 1.16.42-beta-20250415-222652-04c5d2fe

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
@@ -63,9 +63,7 @@ const fetchConfigs = async ({
63
63
  const ENDPOINT_CHECK_SESSION = `/api/did/${connectAction}/status`;
64
64
  const ENDPOINT_INVALIDATE_SESSION = `/api/did/${connectAction}/timeout`;
65
65
  const fetchSessionStatus = async () => {
66
- const url = ufo.withQuery(ufo.joinURL(connectUrl, ENDPOINT_CHECK_SESSION), {
67
- _t_: sessionId
68
- });
66
+ const url = ufo.withQuery(ufo.joinURL(connectUrl, ENDPOINT_CHECK_SESSION), { _t_: sessionId });
69
67
  const { data } = await request({
70
68
  url,
71
69
  method: "GET",
@@ -184,7 +182,7 @@ async function createConnect({
184
182
  fetchTimeout: retry * fetchInterval,
185
183
  fetchInterval: retry
186
184
  });
187
- const decryptData = enableEncrypt ? decrypt(fetchData) : fetchData;
185
+ const decryptData = enableEncrypt && fetchData ? decrypt(fetchData) : fetchData;
188
186
  return decryptData;
189
187
  });
190
188
  } catch (e) {
package/dist/index.mjs CHANGED
@@ -43,9 +43,7 @@ const fetchConfigs = async ({
43
43
  const ENDPOINT_CHECK_SESSION = `/api/did/${connectAction}/status`;
44
44
  const ENDPOINT_INVALIDATE_SESSION = `/api/did/${connectAction}/timeout`;
45
45
  const fetchSessionStatus = async () => {
46
- const url = withQuery(joinURL(connectUrl, ENDPOINT_CHECK_SESSION), {
47
- _t_: sessionId
48
- });
46
+ const url = withQuery(joinURL(connectUrl, ENDPOINT_CHECK_SESSION), { _t_: sessionId });
49
47
  const { data } = await request({
50
48
  url,
51
49
  method: "GET",
@@ -164,7 +162,7 @@ async function createConnect({
164
162
  fetchTimeout: retry * fetchInterval,
165
163
  fetchInterval: retry
166
164
  });
167
- const decryptData = enableEncrypt ? decrypt(fetchData) : fetchData;
165
+ const decryptData = enableEncrypt && fetchData ? decrypt(fetchData) : fetchData;
168
166
  return decryptData;
169
167
  });
170
168
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/store",
3
- "version": "1.16.42-beta-20250412-084444-20b0cf19",
3
+ "version": "1.16.42-beta-20250415-222652-04c5d2fe",
4
4
  "description": "Connect Store and upload blocklet to Store",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,14 +27,14 @@
27
27
  "author": "",
28
28
  "license": "ISC",
29
29
  "dependencies": {
30
- "@abtnode/constant": "1.16.42-beta-20250412-084444-20b0cf19",
31
- "@abtnode/util": "1.16.42-beta-20250412-084444-20b0cf19",
32
- "@arcblock/did": "1.19.19",
33
- "@blocklet/constant": "1.16.42-beta-20250412-084444-20b0cf19",
34
- "@blocklet/meta": "1.16.42-beta-20250412-084444-20b0cf19",
35
- "@ocap/client": "^1.19.19",
36
- "@ocap/util": "1.19.19",
37
- "@ocap/wallet": "1.19.19",
30
+ "@abtnode/constant": "1.16.42-beta-20250415-222652-04c5d2fe",
31
+ "@abtnode/util": "1.16.42-beta-20250415-222652-04c5d2fe",
32
+ "@arcblock/did": "1.19.20",
33
+ "@blocklet/constant": "1.16.42-beta-20250415-222652-04c5d2fe",
34
+ "@blocklet/meta": "1.16.42-beta-20250415-222652-04c5d2fe",
35
+ "@ocap/client": "^1.19.20",
36
+ "@ocap/util": "1.19.20",
37
+ "@ocap/wallet": "1.19.20",
38
38
  "form-data": "^4.0.0",
39
39
  "fs-extra": "^11.2.0",
40
40
  "js-yaml": "^4.1.0",
@@ -62,5 +62,5 @@
62
62
  "typescript": "^5.6.3",
63
63
  "unbuild": "^2.0.0"
64
64
  },
65
- "gitHead": "39162da666c4968344db44fc26c0b76bdf6193db"
65
+ "gitHead": "4458b1e7e92d62d93c70de7f636a0f6ae9a59f26"
66
66
  }