@co0ontty/wand 1.59.0 → 1.60.1-beta.ga0e7d62

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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "commit": "f9941efb4b12db89d7d656a0e0ed9db48ffe54cc",
3
- "builtAt": "2026-06-13T01:14:27.823Z",
4
- "version": "1.59.0",
5
- "channel": "stable"
2
+ "commit": "a0e7d628ead6c77cf91dddcb933f51f2eeef86dc",
3
+ "builtAt": "2026-06-13T06:04:48.400Z",
4
+ "version": "1.60.1-beta.ga0e7d62",
5
+ "channel": "beta"
6
6
  }
package/dist/server.js CHANGED
@@ -89,8 +89,8 @@ const DISPLAY_VERSION = BUILD_INFO.version || PKG_VERSION;
89
89
  let cachedGitHubApk = null;
90
90
  let gitHubApkCacheTs = 0;
91
91
  const GITHUB_APK_CACHE_TTL = 10 * 60 * 1000; // 10 minutes
92
- // 客户端代码没变时 CI 会跳过该平台的构建,最新 release 上可能没有 .apk/.dmg;
93
- // 因此不能只查 /releases/latest,要按时间倒序遍历最近的 releases,取第一个带对应产物的。
92
+ // 按时间倒序遍历最近的 releases,取第一个带对应产物的。正常 tag release
93
+ // 会为每个平台出包;这里保留回退以兼容旧 release 或某次平台构建失败。
94
94
  async function fetchGitHubReleaseAssetByExt(ext) {
95
95
  const apiUrl = PKG_REPO_URL.replace("github.com", "api.github.com/repos") + "/releases?per_page=30";
96
96
  const resp = await fetch(apiUrl, {
@@ -118,8 +118,8 @@ async function fetchGitHubLatestApk(forceRefresh = false) {
118
118
  const hit = await fetchGitHubReleaseAssetByExt(".apk");
119
119
  if (!hit)
120
120
  return cachedGitHubApk ?? null;
121
- // 版本号优先从文件名提取:未变化的平台沿用老包,挂它的 release tag 可能更新,
122
- // 用 tag 当版本会让客户端「提示新版、下载到旧包」死循环。
121
+ // 版本号优先从文件名提取;回退到旧 release asset 时不能把当前 release tag
122
+ // 误当成产物版本。
123
123
  const version = extractAndroidApkVersion(hit.asset.name)
124
124
  ?? extractAndroidApkVersion(hit.tagName)
125
125
  ?? hit.tagName.replace(/^v/, "");
@@ -193,7 +193,7 @@ async function fetchGitHubLatestDmg(forceRefresh = false) {
193
193
  const hit = await fetchGitHubReleaseAssetByExt(".dmg");
194
194
  if (!hit)
195
195
  return cachedGitHubDmg ?? null;
196
- // 同 APK:版本号优先从文件名提取,避免沿用老包时把 release tag 当成新版本。
196
+ // 同 APK:版本号优先从文件名提取,避免回退到旧 asset 时把 release tag 当成新版本。
197
197
  const version = extractMacosDmgVersion(hit.asset.name)
198
198
  ?? extractMacosDmgVersion(hit.tagName)
199
199
  ?? hit.tagName.replace(/^v/, "");