@unavatar/core 3.45.1 → 3.45.2

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/bin/index.js CHANGED
@@ -154,7 +154,16 @@ module.exports = ({ baseUrl }) => {
154
154
  })
155
155
  .then(({ buffer, imageUrl }) => {
156
156
  console.error()
157
- console.error(termImg(buffer, { width: '15%' }))
157
+ try {
158
+ console.error(
159
+ termImg(buffer, {
160
+ width: '15%',
161
+ fallback: () => imageUrl
162
+ })
163
+ )
164
+ } catch (_) {
165
+ console.error(`Avatar preview unavailable. URL: ${imageUrl}`)
166
+ }
158
167
 
159
168
  console.error(`
160
169
  input: ${apiUrl.toString()}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@unavatar/core",
3
3
  "description": "Get unified user avatar from social networks, including Instagram, SoundCloud, Telegram, Twitter, YouTube & more.",
4
4
  "homepage": "https://unavatar.io",
5
- "version": "3.45.1",
5
+ "version": "3.45.2",
6
6
  "main": "src/index.js",
7
7
  "exports": {
8
8
  ".": "./src/index.js",
@@ -44,6 +44,7 @@ const providersBy = {
44
44
  'primal',
45
45
  'producthunt',
46
46
  'psnprofiles',
47
+ 'qq',
47
48
  'raycast',
48
49
  'reddit',
49
50
  'revolut',
@@ -65,13 +66,14 @@ const providersBy = {
65
66
  'venmo',
66
67
  'vimeo',
67
68
  'weibo',
69
+ 'whatsapp',
68
70
  'wise',
69
71
  'x',
70
72
  'xboxgamertag',
71
73
  'youtube',
72
74
  'zhihu'
73
75
  ],
74
- domain: ['microlink']
76
+ domain: ['duckduckgo', 'google', 'microlink']
75
77
  }
76
78
 
77
79
  module.exports = ctx => {