@bobfrankston/gcards 0.1.26 → 0.1.28

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/gfix.ts +5 -5
  2. package/package.json +1 -1
package/gfix.ts CHANGED
@@ -1459,13 +1459,13 @@ async function runUndup(user: string): Promise<void> {
1459
1459
  }
1460
1460
 
1461
1461
  if (rowContacts.length > 0) {
1462
- const contactUrl = `https://contacts.google.com/person/${rowContacts[0].id}`;
1463
- const photoCells = rowContacts.map(c =>
1464
- `<td style="text-align: center;"><img src="${c.photoUrl}" alt="${entry.name}" loading="lazy"><br><code style="font-size: 10px;">${path.basename(c.filePath)}</code></td>`
1465
- ).join('');
1462
+ const photoCells = rowContacts.map(c => {
1463
+ const contactUrl = `https://contacts.google.com/person/${c.id}`;
1464
+ return `<td style="text-align: center;"><a href="${contactUrl}" target="_blank"><img src="${c.photoUrl}" alt="${entry.name}" loading="lazy"></a><br><code style="font-size: 10px;">${path.basename(c.filePath)}</code></td>`;
1465
+ }).join('');
1466
1466
 
1467
1467
  rows.push(` <tr>
1468
- <td><a href="${contactUrl}" target="_blank">${entry.name}</a><br><span style="font-size: 12px; color: #666;">${entry.emails.join(', ')}</span></td>
1468
+ <td>${entry.name}<br><span style="font-size: 12px; color: #666;">${entry.emails.join(', ')}</span></td>
1469
1469
  ${photoCells}
1470
1470
  </tr>`);
1471
1471
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/gcards",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "description": "Google Contacts cleanup and management tool",
5
5
  "type": "module",
6
6
  "main": "gcards.ts",