@jonathanleelx/meddle 0.4.0-beta.6 → 0.4.0-beta.7

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.
@@ -69,8 +69,11 @@ async function resolveLatest({ force = false, notify = true, channel = 'stable'
69
69
  if (notify) {
70
70
  if (info.outdated) {
71
71
  output.info(`发现新版本 ${info.latest} (当前 ${info.current})`)
72
- } else {
72
+ } else if (info.latest === info.current) {
73
73
  output.success(`已是最新版本 (${info.current})`)
74
+ } else {
75
+ const channelLabel = info.channel === 'beta' ? 'beta' : '稳定'
76
+ output.info(`当前 ${info.current} 已超过${channelLabel}频道最新版本 ${info.latest}`)
74
77
  }
75
78
  }
76
79
  return info
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jonathanleelx/meddle",
3
- "version": "0.4.0-beta.6",
3
+ "version": "0.4.0-beta.7",
4
4
  "description": "A simple development proxy server with custom routing rules, mock responses, HTTPS interception, and a plugin system",
5
5
  "type": "commonjs",
6
6
  "main": "index.js",