@blocklet/sdk 1.16.44-beta-20250601-083116-288e5ea5 → 1.16.44-beta-20250605-131649-6eaf56d9
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/fallback.js +2 -1
- package/package.json +16 -16
|
@@ -10,6 +10,7 @@ const crypto_1 = __importDefault(require("crypto"));
|
|
|
10
10
|
const constant_1 = require("@blocklet/constant");
|
|
11
11
|
const theme_1 = require("@blocklet/theme");
|
|
12
12
|
const config_1 = require("../config");
|
|
13
|
+
const constants_1 = require("../util/constants");
|
|
13
14
|
// Cache configurations
|
|
14
15
|
const DEFAULT_CACHE_TTL = 1 * 60 * 1000; // 1 minute
|
|
15
16
|
const cache = new Map();
|
|
@@ -106,7 +107,7 @@ const fallback = (file, options = {}) => {
|
|
|
106
107
|
validatePageData(pageData, options.maxLength || 1000);
|
|
107
108
|
pageData.title = (0, escape_1.default)(pageData.title || config_1.env.appName);
|
|
108
109
|
pageData.description = (0, escape_1.default)(pageData.description || config_1.env.appDescription);
|
|
109
|
-
pageData.ogImage = pageData.ogImage || (0, ufo_1.joinURL)(config_1.env.appUrl || '/', '
|
|
110
|
+
pageData.ogImage = pageData.ogImage || (0, ufo_1.joinURL)(config_1.env.appUrl || '/', constants_1.SERVICE_PREFIX, '/blocklet/og.png');
|
|
110
111
|
let source = await fs_1.default.promises.readFile(filePath, 'utf8');
|
|
111
112
|
// Optimize string replacements
|
|
112
113
|
if (pageData.title) {
|
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-20250605-131649-6eaf56d9",
|
|
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,24 +27,24 @@
|
|
|
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-20250605-131649-6eaf56d9",
|
|
31
|
+
"@abtnode/constant": "1.16.44-beta-20250605-131649-6eaf56d9",
|
|
32
|
+
"@abtnode/util": "1.16.44-beta-20250605-131649-6eaf56d9",
|
|
33
|
+
"@arcblock/did": "1.20.13",
|
|
34
|
+
"@arcblock/did-auth": "1.20.13",
|
|
35
|
+
"@arcblock/jwt": "1.20.13",
|
|
36
|
+
"@arcblock/ws": "1.20.13",
|
|
37
|
+
"@blocklet/constant": "1.16.44-beta-20250605-131649-6eaf56d9",
|
|
38
|
+
"@blocklet/env": "1.16.44-beta-20250605-131649-6eaf56d9",
|
|
39
39
|
"@blocklet/error": "^0.2.5",
|
|
40
|
-
"@blocklet/meta": "1.16.44-beta-
|
|
41
|
-
"@blocklet/theme": "^2.13.
|
|
40
|
+
"@blocklet/meta": "1.16.44-beta-20250605-131649-6eaf56d9",
|
|
41
|
+
"@blocklet/theme": "^2.13.61",
|
|
42
42
|
"@did-connect/authenticator": "^2.2.8",
|
|
43
43
|
"@did-connect/handler": "^2.2.8",
|
|
44
44
|
"@nedb/core": "^2.1.5",
|
|
45
|
-
"@ocap/mcrypto": "1.20.
|
|
46
|
-
"@ocap/util": "1.20.
|
|
47
|
-
"@ocap/wallet": "1.20.
|
|
45
|
+
"@ocap/mcrypto": "1.20.13",
|
|
46
|
+
"@ocap/util": "1.20.13",
|
|
47
|
+
"@ocap/wallet": "1.20.13",
|
|
48
48
|
"axios": "^1.7.9",
|
|
49
49
|
"cheerio": "1.0.0-rc.12",
|
|
50
50
|
"debug": "^4.3.7",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"ts-node": "^10.9.1",
|
|
85
85
|
"typescript": "^5.6.3"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "667899e10781e9fcc21c40c2a2f60f3fa2fecc88"
|
|
88
88
|
}
|