@unavatar/core 3.32.20 → 3.32.22
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/README.md +4 -4
- package/package.json +1 -1
- package/src/providers/x.js +2 -1
package/README.md
CHANGED
|
@@ -398,13 +398,13 @@ Unavatar pricing is simple: you can start on the anonymous free tier, then authe
|
|
|
398
398
|
|
|
399
399
|
For higher usage, the **[PRO](https://unavatar.io/checkout)** plan is usage-based billing that includes the 50 free daily origin requests, metered overage, and custom TTL.
|
|
400
400
|
|
|
401
|
-
Every request has a cost in tokens (**\$0.
|
|
401
|
+
Every request has a cost in tokens (**\$0.010 per token**) based on the proxy tier needed to resolve the avatar:
|
|
402
402
|
|
|
403
403
|
| Proxy tier | Tokens | Cost |
|
|
404
404
|
| ----------- | :----: | :-----: |
|
|
405
|
-
| Origin | 1 | \$0.
|
|
406
|
-
| Datacenter | +2 | \$0.
|
|
407
|
-
| Residential | +4 | \$0.
|
|
405
|
+
| Origin | 1 | \$0.010 |
|
|
406
|
+
| Datacenter | +2 | \$0.030 |
|
|
407
|
+
| Residential | +4 | \$0.050 |
|
|
408
408
|
|
|
409
409
|
The proxy tier used is returned in the `x-proxy-tier` response header, and the total cost in the `x-unavatar-cost` header.
|
|
410
410
|
|
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.32.
|
|
5
|
+
"version": "3.32.22",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./src/index.js",
|
package/src/providers/x.js
CHANGED
|
@@ -18,7 +18,8 @@ const getAvatar = ($, getOgImage) =>
|
|
|
18
18
|
module.exports = ({ createHtmlProvider, getOgImage }) =>
|
|
19
19
|
createHtmlProvider({
|
|
20
20
|
name: 'x',
|
|
21
|
-
url: input =>
|
|
21
|
+
url: input =>
|
|
22
|
+
`https://x.com/intent/user?screen_name=${encodeURIComponent(input)}`,
|
|
22
23
|
getter: $ => getAvatar($, getOgImage)
|
|
23
24
|
})
|
|
24
25
|
|