prior-cli 1.4.4 → 1.4.5
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/tools.js +3 -3
- package/package.json +1 -1
package/lib/tools.js
CHANGED
|
@@ -328,10 +328,10 @@ const TOOLS = {
|
|
|
328
328
|
return {
|
|
329
329
|
output: [
|
|
330
330
|
`Username : @${u.username || '?'}`,
|
|
331
|
-
`Display Name : ${u.display_name || u.username || '?'}`,
|
|
331
|
+
`Display Name : ${u.display_name || u.displayName || u.username || '?'}`,
|
|
332
332
|
`Bio : ${u.bio || '(none)'}`,
|
|
333
|
-
`Posts : ${u.post_count ?? 0}`,
|
|
334
|
-
`Friends : ${u.friend_count ?? 0}`,
|
|
333
|
+
`Posts : ${u.post_count ?? u.posts_count ?? 0}`,
|
|
334
|
+
`Friends : ${u.friend_count ?? u.friends_count ?? 0}`,
|
|
335
335
|
`Joined : ${u.created_at ? new Date(u.created_at).toLocaleDateString() : 'unknown'}`,
|
|
336
336
|
].join('\n'),
|
|
337
337
|
summary: `@${u.username || '?'}`,
|