@blocklet/sdk 1.16.34-beta-20241129-100152-679bd732 → 1.16.34-beta-20241204-140321-4d75ca21
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/middlewares/sitemap.js +2 -2
- package/package.json +14 -14
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const sitemap_1 = require("sitemap");
|
|
3
|
+
const custom_error_1 = require("@abtnode/util/lib/custom-error");
|
|
3
4
|
const config_1 = require("../config");
|
|
4
5
|
const sitemap = (generatorFn) => {
|
|
5
6
|
return async (req, res) => {
|
|
@@ -13,8 +14,7 @@ const sitemap = (generatorFn) => {
|
|
|
13
14
|
}
|
|
14
15
|
catch (err) {
|
|
15
16
|
console.error('Failed to generate sitemap', err);
|
|
16
|
-
res.status(
|
|
17
|
-
res.send(err.message);
|
|
17
|
+
res.status((0, custom_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.34-beta-
|
|
6
|
+
"version": "1.16.34-beta-20241204-140321-4d75ca21",
|
|
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,21 +27,21 @@
|
|
|
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-
|
|
31
|
-
"@abtnode/constant": "1.16.34-beta-
|
|
32
|
-
"@abtnode/util": "1.16.34-beta-
|
|
33
|
-
"@arcblock/did": "1.18.
|
|
34
|
-
"@arcblock/did-auth": "1.18.
|
|
35
|
-
"@arcblock/jwt": "1.18.
|
|
36
|
-
"@arcblock/ws": "1.18.
|
|
37
|
-
"@blocklet/constant": "1.16.34-beta-
|
|
38
|
-
"@blocklet/env": "1.16.34-beta-
|
|
39
|
-
"@blocklet/meta": "1.16.34-beta-
|
|
30
|
+
"@abtnode/client": "1.16.34-beta-20241204-140321-4d75ca21",
|
|
31
|
+
"@abtnode/constant": "1.16.34-beta-20241204-140321-4d75ca21",
|
|
32
|
+
"@abtnode/util": "1.16.34-beta-20241204-140321-4d75ca21",
|
|
33
|
+
"@arcblock/did": "1.18.153",
|
|
34
|
+
"@arcblock/did-auth": "1.18.153",
|
|
35
|
+
"@arcblock/jwt": "1.18.153",
|
|
36
|
+
"@arcblock/ws": "1.18.153",
|
|
37
|
+
"@blocklet/constant": "1.16.34-beta-20241204-140321-4d75ca21",
|
|
38
|
+
"@blocklet/env": "1.16.34-beta-20241204-140321-4d75ca21",
|
|
39
|
+
"@blocklet/meta": "1.16.34-beta-20241204-140321-4d75ca21",
|
|
40
40
|
"@did-connect/authenticator": "^2.2.4",
|
|
41
41
|
"@did-connect/handler": "^2.2.4",
|
|
42
42
|
"@nedb/core": "^2.1.5",
|
|
43
|
-
"@ocap/mcrypto": "1.18.
|
|
44
|
-
"@ocap/wallet": "1.18.
|
|
43
|
+
"@ocap/mcrypto": "1.18.153",
|
|
44
|
+
"@ocap/wallet": "1.18.153",
|
|
45
45
|
"axios": "^1.7.5",
|
|
46
46
|
"cheerio": "1.0.0-rc.12",
|
|
47
47
|
"debug": "^4.3.7",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"ts-node": "^10.9.1",
|
|
81
81
|
"typescript": "^5.6.3"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "85435dd99298c727eb7bb6c361f9dee6ef11cf08"
|
|
84
84
|
}
|