@abtnode/util 1.16.37 → 1.16.38-beta-20250110-003414-d3c1bfbd
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/logo-middleware.js +4 -0
- package/package.json +5 -5
package/lib/logo-middleware.js
CHANGED
|
@@ -137,6 +137,9 @@ const ensureCustomSplashPortrait = (req, res, next) => {
|
|
|
137
137
|
const ensureCustomSplashLandscape = (req, res, next) => {
|
|
138
138
|
return ensureCustomLogo(req, res, next, 'BLOCKLET_APP_SPLASH_LANDSCAPE');
|
|
139
139
|
};
|
|
140
|
+
const ensureCustomOgImage = (req, res, next) => {
|
|
141
|
+
return ensureCustomLogo(req, res, next, 'BLOCKLET_APP_OG_IMAGE');
|
|
142
|
+
};
|
|
140
143
|
|
|
141
144
|
/**
|
|
142
145
|
*
|
|
@@ -278,6 +281,7 @@ module.exports = {
|
|
|
278
281
|
ensureCustomRectLogo,
|
|
279
282
|
ensureCustomSplashPortrait,
|
|
280
283
|
ensureCustomSplashLandscape,
|
|
284
|
+
ensureCustomOgImage,
|
|
281
285
|
ensureDefaultLogo,
|
|
282
286
|
fallbackLogo,
|
|
283
287
|
cacheError,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.
|
|
6
|
+
"version": "1.16.38-beta-20250110-003414-d3c1bfbd",
|
|
7
7
|
"description": "ArcBlock's JavaScript utility",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"author": "polunzh <polunzh@gmail.com> (http://github.com/polunzh)",
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@abtnode/constant": "1.16.
|
|
21
|
+
"@abtnode/constant": "1.16.38-beta-20250110-003414-d3c1bfbd",
|
|
22
22
|
"@arcblock/did": "^1.19.2",
|
|
23
23
|
"@arcblock/pm2": "^5.4.0",
|
|
24
|
-
"@blocklet/constant": "1.16.
|
|
25
|
-
"@blocklet/meta": "1.16.
|
|
24
|
+
"@blocklet/constant": "1.16.38-beta-20250110-003414-d3c1bfbd",
|
|
25
|
+
"@blocklet/meta": "1.16.38-beta-20250110-003414-d3c1bfbd",
|
|
26
26
|
"@ocap/client": "1.19.2",
|
|
27
27
|
"@ocap/mcrypto": "1.19.2",
|
|
28
28
|
"@ocap/util": "1.19.2",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"fs-extra": "^11.2.0",
|
|
83
83
|
"jest": "^29.7.0"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "56883ef3e5f208f18c3fe4eedfb664be8e2b4fa7"
|
|
86
86
|
}
|