dsh-go-workbuddy 1.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/lib/index.js +1 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -327,6 +327,7 @@ async function buildPatch(zh) {
327
327
  totalText: credits === null ? '—' : fmt(total),
328
328
  totalTone: credits === null ? 'warn' : total <= 0 ? 'bad' : 'good',
329
329
  totalCaption: credits === null ? (zh ? '还没读到' : 'not read') : zh ? `共 ${packages.length} 个积分包` : `${packages.length} packages`,
330
+ regionText: region === 'cn' ? (zh ? '国内版' : 'CN') : (zh ? '国际版' : 'Global'),
330
331
  accountText: sel === undefined ? '—' : clip(String(sel.accountName || sel.id || '—'), 18),
331
332
  checkinText: checkin === null ? '—' : checkin.todayCheckedIn === true ? (zh ? '已签' : 'done') : (zh ? '未签' : 'pending'),
332
333
  streakText: checkin === null ? '—' : `${Number(checkin.streakDays ?? 0)} 天`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-go-workbuddy",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "dsh": {