@blocklet/sdk 1.16.44-beta-20250513-030435-c2d99062 → 1.16.44-beta-20250518-020443-77ba168f
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 +1 -0
- package/lib/config.js +1 -1
- package/lib/middlewares/sitemap.js +2 -2
- package/package.json +17 -17
package/lib/component/index.d.ts
CHANGED
package/lib/config.js
CHANGED
|
@@ -268,7 +268,7 @@ const fetchBlockletJs = async () => {
|
|
|
268
268
|
const componentDid = process.env.BLOCKLET_COMPONENT_DID;
|
|
269
269
|
try {
|
|
270
270
|
const { mountPoint } = componentStore.find((x) => x.did === componentDid);
|
|
271
|
-
const res = await axios_1.default.get((0, ufo_1.joinURL)(env.appUrl, mountPoint === '/' ? '' : mountPoint, `__blocklet__.js?
|
|
271
|
+
const res = await axios_1.default.get((0, ufo_1.joinURL)(env.appUrl, mountPoint === '/' ? '' : mountPoint, `__blocklet__.js?nocache=1&t=${Date.now()}`), {
|
|
272
272
|
timeout: 8000,
|
|
273
273
|
headers: {
|
|
274
274
|
'User-Agent': `BlockletSDK/${version_1.version}`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const sitemap_1 = require("sitemap");
|
|
3
|
-
const
|
|
3
|
+
const error_1 = require("@blocklet/error");
|
|
4
4
|
const config_1 = require("../config");
|
|
5
5
|
const sitemap = (generatorFn) => {
|
|
6
6
|
return async (req, res) => {
|
|
@@ -14,7 +14,7 @@ const sitemap = (generatorFn) => {
|
|
|
14
14
|
}
|
|
15
15
|
catch (err) {
|
|
16
16
|
console.error('Failed to generate sitemap', err);
|
|
17
|
-
res.status((0,
|
|
17
|
+
res.status((0, error_1.getStatusFromError)(err)).send(err.message);
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.44-beta-
|
|
6
|
+
"version": "1.16.44-beta-20250518-020443-77ba168f",
|
|
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,23 +27,23 @@
|
|
|
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.44-beta-
|
|
31
|
-
"@abtnode/constant": "1.16.44-beta-
|
|
32
|
-
"@abtnode/util": "1.16.44-beta-
|
|
33
|
-
"@arcblock/did": "1.20.
|
|
34
|
-
"@arcblock/did-auth": "1.20.
|
|
35
|
-
"@arcblock/jwt": "1.20.
|
|
36
|
-
"@arcblock/ws": "1.20.
|
|
37
|
-
"@blocklet/constant": "1.16.44-beta-
|
|
38
|
-
"@blocklet/env": "1.16.44-beta-
|
|
30
|
+
"@abtnode/client": "1.16.44-beta-20250518-020443-77ba168f",
|
|
31
|
+
"@abtnode/constant": "1.16.44-beta-20250518-020443-77ba168f",
|
|
32
|
+
"@abtnode/util": "1.16.44-beta-20250518-020443-77ba168f",
|
|
33
|
+
"@arcblock/did": "1.20.11",
|
|
34
|
+
"@arcblock/did-auth": "1.20.11",
|
|
35
|
+
"@arcblock/jwt": "1.20.11",
|
|
36
|
+
"@arcblock/ws": "1.20.11",
|
|
37
|
+
"@blocklet/constant": "1.16.44-beta-20250518-020443-77ba168f",
|
|
38
|
+
"@blocklet/env": "1.16.44-beta-20250518-020443-77ba168f",
|
|
39
39
|
"@blocklet/error": "^0.2.4",
|
|
40
|
-
"@blocklet/meta": "1.16.44-beta-
|
|
41
|
-
"@did-connect/authenticator": "^2.2.
|
|
42
|
-
"@did-connect/handler": "^2.2.
|
|
40
|
+
"@blocklet/meta": "1.16.44-beta-20250518-020443-77ba168f",
|
|
41
|
+
"@did-connect/authenticator": "^2.2.8",
|
|
42
|
+
"@did-connect/handler": "^2.2.8",
|
|
43
43
|
"@nedb/core": "^2.1.5",
|
|
44
|
-
"@ocap/mcrypto": "1.20.
|
|
45
|
-
"@ocap/util": "1.20.
|
|
46
|
-
"@ocap/wallet": "1.20.
|
|
44
|
+
"@ocap/mcrypto": "1.20.11",
|
|
45
|
+
"@ocap/util": "1.20.11",
|
|
46
|
+
"@ocap/wallet": "1.20.11",
|
|
47
47
|
"axios": "^1.7.9",
|
|
48
48
|
"cheerio": "1.0.0-rc.12",
|
|
49
49
|
"debug": "^4.3.7",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"ts-node": "^10.9.1",
|
|
84
84
|
"typescript": "^5.6.3"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "8464d53e8d44b255afa6032e37d8d4ab7be76e67"
|
|
87
87
|
}
|