@abtnode/util 1.16.31-beta-4246ab25 → 1.16.31-beta-a0cc72cf

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.
Files changed (2) hide show
  1. package/lib/user.js +4 -0
  2. package/package.json +6 -6
package/lib/user.js CHANGED
@@ -178,6 +178,10 @@ function updateConnectedAccount(connectedAccounts = [], connectedAccount = {}) {
178
178
  }
179
179
 
180
180
  const getAvatarByUrl = async (url) => {
181
+ if (url.startsWith('bn:')) {
182
+ return url;
183
+ }
184
+
181
185
  try {
182
186
  const { data } = await axios.get(url, {
183
187
  responseType: 'arraybuffer',
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.31-beta-4246ab25",
6
+ "version": "1.16.31-beta-a0cc72cf",
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.31-beta-4246ab25",
22
- "@abtnode/logger": "1.16.31-beta-4246ab25",
21
+ "@abtnode/constant": "1.16.31-beta-a0cc72cf",
22
+ "@abtnode/logger": "1.16.31-beta-a0cc72cf",
23
23
  "@arcblock/pm2": "^5.4.0",
24
- "@blocklet/constant": "1.16.31-beta-4246ab25",
25
- "@blocklet/meta": "1.16.31-beta-4246ab25",
24
+ "@blocklet/constant": "1.16.31-beta-a0cc72cf",
25
+ "@blocklet/meta": "1.16.31-beta-a0cc72cf",
26
26
  "@ocap/client": "1.18.135",
27
27
  "@ocap/mcrypto": "1.18.135",
28
28
  "@ocap/util": "1.18.135",
@@ -82,5 +82,5 @@
82
82
  "fs-extra": "^11.2.0",
83
83
  "jest": "^29.7.0"
84
84
  },
85
- "gitHead": "ef93705b89033e4cd5fed458b64521d0a994a1d0"
85
+ "gitHead": "d1eec814979a4086fc5efd7c719687b76c972ec6"
86
86
  }