@unavatar/core 3.32.22 → 3.34.0

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 CHANGED
@@ -51,6 +51,7 @@
51
51
  - [Patreon](#patreon)
52
52
  - [Pinterest](#pinterest)
53
53
  - [Printables](#printables)
54
+ - [Primal](#primal)
54
55
  - [Product Hunt](#product-hunt)
55
56
  - [PSN Profiles](#psn-profiles)
56
57
  - [Reddit](#reddit)
@@ -809,6 +810,12 @@ Get any Printables user's profile picture by their username.
809
810
 
810
811
  e.g., [unavatar.io/printables/DukeDoks](https://unavatar.io/printables/DukeDoks)
811
812
 
813
+ ### Primal
814
+
815
+ Get any Primal user's profile picture by their username.
816
+
817
+ e.g., [unavatar.io/primal/jack](https://unavatar.io/primal/jack)
818
+
812
819
  ### Product Hunt
813
820
 
814
821
  Get profile pictures for Product Hunt users or logos for Product Hunt products.
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.22",
5
+ "version": "3.34.0",
6
6
  "main": "src/index.js",
7
7
  "exports": {
8
8
  ".": "./src/index.js",
@@ -0,0 +1,12 @@
1
+ 'use strict'
2
+
3
+ const getAvatarUrl = input => `https://hevy.com/user/${input}`
4
+
5
+ module.exports = ({ createHtmlProvider, getOgImage }) =>
6
+ createHtmlProvider({
7
+ name: 'hevy',
8
+ url: getAvatarUrl,
9
+ getter: getOgImage
10
+ })
11
+
12
+ module.exports.getAvatarUrl = getAvatarUrl
@@ -20,6 +20,7 @@ const providersBy = {
20
20
  'gitlab',
21
21
  'google-play',
22
22
  'huggingface',
23
+ 'hevy',
23
24
  'instagram',
24
25
  'ko-fi',
25
26
  'linkedin',
@@ -31,6 +32,7 @@ const providersBy = {
31
32
  'patreon',
32
33
  'pinterest',
33
34
  'printables',
35
+ 'primal',
34
36
  'producthunt',
35
37
  'psnprofiles',
36
38
  'reddit',
@@ -76,6 +78,7 @@ module.exports = ctx => {
76
78
  'google-play': require('./google-play')(ctx),
77
79
  gravatar: require('./gravatar')(ctx),
78
80
  huggingface: require('./huggingface')(ctx),
81
+ hevy: require('./hevy')(ctx),
79
82
  instagram: require('./instagram')(ctx),
80
83
  'ko-fi': require('./ko-fi')(ctx),
81
84
  linkedin: require('./linkedin')(ctx),
@@ -88,6 +91,7 @@ module.exports = ctx => {
88
91
  patreon: require('./patreon')(ctx),
89
92
  pinterest: require('./pinterest')(ctx),
90
93
  printables: require('./printables')(ctx),
94
+ primal: require('./primal')(ctx),
91
95
  producthunt: require('./producthunt')(ctx),
92
96
  psnprofiles: require('./psnprofiles')(ctx),
93
97
  reddit: require('./reddit')(ctx),
@@ -0,0 +1,12 @@
1
+ 'use strict'
2
+
3
+ const getAvatarUrl = input => `https://primal.net/${input}`
4
+
5
+ module.exports = ({ createHtmlProvider, getOgImage }) =>
6
+ createHtmlProvider({
7
+ name: 'primal',
8
+ url: getAvatarUrl,
9
+ getter: getOgImage
10
+ })
11
+
12
+ module.exports.getAvatarUrl = getAvatarUrl