@abtnode/util 1.16.16-beta-d6c5ed65 → 1.16.16-beta-d11cb031
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/user.js +4 -0
- package/package.json +9 -9
package/lib/user.js
CHANGED
|
@@ -57,6 +57,10 @@ const getUserAvatarUrl = (baseUrl, avatar, info = {}, isServer = false) => {
|
|
|
57
57
|
return '';
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
if (avatar.startsWith('https://') || avatar.startsWith('http://')) {
|
|
61
|
+
return avatar;
|
|
62
|
+
}
|
|
63
|
+
|
|
60
64
|
if (!avatar.startsWith(USER_AVATAR_URL_PREFIX)) {
|
|
61
65
|
throw new Error('User avatar is not persisted on disk');
|
|
62
66
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.16-beta-
|
|
6
|
+
"version": "1.16.16-beta-d11cb031",
|
|
7
7
|
"description": "ArcBlock's JavaScript utility",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -18,13 +18,13 @@
|
|
|
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.16-beta-
|
|
22
|
-
"@abtnode/logger": "1.16.16-beta-
|
|
23
|
-
"@blocklet/constant": "1.16.16-beta-
|
|
24
|
-
"@ocap/client": "1.18.
|
|
25
|
-
"@ocap/mcrypto": "1.18.
|
|
26
|
-
"@ocap/util": "1.18.
|
|
27
|
-
"@ocap/wallet": "1.18.
|
|
21
|
+
"@abtnode/constant": "1.16.16-beta-d11cb031",
|
|
22
|
+
"@abtnode/logger": "1.16.16-beta-d11cb031",
|
|
23
|
+
"@blocklet/constant": "1.16.16-beta-d11cb031",
|
|
24
|
+
"@ocap/client": "1.18.90",
|
|
25
|
+
"@ocap/mcrypto": "1.18.90",
|
|
26
|
+
"@ocap/util": "1.18.90",
|
|
27
|
+
"@ocap/wallet": "1.18.90",
|
|
28
28
|
"archiver": "^5.3.1",
|
|
29
29
|
"axios": "^0.27.2",
|
|
30
30
|
"axios-mock-adapter": "^1.21.2",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"fs-extra": "^10.1.0",
|
|
72
72
|
"jest": "^27.5.1"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "0591985c51137cdebf382a515b17bb4f8bf829a6"
|
|
75
75
|
}
|