dsh-aupdate 0.4.0 → 0.4.1

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 (3) hide show
  1. package/client.js +1 -1
  2. package/index.js +3 -1
  3. package/package.json +1 -1
package/client.js CHANGED
@@ -751,7 +751,7 @@ window.__ModuleLoader__.load({
751
751
  ? h('span', { style: S.status }, T.logsEmpty)
752
752
  : h('pre', { style: S.logBox, title: data?.path || '' },
753
753
  rows.map((row, index) => h('div', { key: index },
754
- row.at ? h('span', { style: S.logTime }, row.at.replace('T', ' ').replace('Z', '') + ' ') : null,
754
+ row.at ? h('span', { style: S.logTime }, formatWhen(row.at) + ' ') : null,
755
755
  h('span', { style: S.logText }, row.text),
756
756
  )),
757
757
  ),
package/index.js CHANGED
@@ -1218,7 +1218,9 @@ async function runCycle(mode, ctxRef) {
1218
1218
  name: dep.name,
1219
1219
  current,
1220
1220
  target,
1221
- why: '上次安装失败,' + until.toISOString().slice(0, 16).replace('T', ' ') + ' 前不再重试',
1221
+ // 这里是服务端拼的纯文本,拿不到浏览器时区,所以显式写 UTC,
1222
+ // 免得把一个 UTC 时刻当成本地时间读。
1223
+ why: '上次安装失败,' + until.toISOString().slice(0, 16).replace('T', ' ') + ' UTC 前不再重试',
1222
1224
  }
1223
1225
  }
1224
1226
  return { name: dep.name, current, target, tag }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-aupdate",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "description": "定时检查 DSH 插件更新,串行安装后就地生效,不重启;支持多种调度节奏、失败抑制、按包回滚,并在动手前留快照、忙时自动让开;设置页里可直接查看运行日志。",
6
6
  "license": "MIT",