@lazycatcloud/lzc-cli 1.2.57 → 1.2.58
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.
- package/changelog.md +5 -0
- package/lib/debug_bridge.js +1 -1
- package/lib/utils.js +1 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
package/lib/debug_bridge.js
CHANGED
package/lib/utils.js
CHANGED
|
@@ -56,7 +56,7 @@ export async function getLatestVersion(controller, pkgName = pkgInfo.name) {
|
|
|
56
56
|
})
|
|
57
57
|
const content = await data.json()
|
|
58
58
|
const latestVersion = content["tags"]["latest"]
|
|
59
|
-
if (
|
|
59
|
+
if (semver.lt(pkgInfo.version, latestVersion)) {
|
|
60
60
|
logger.warn(
|
|
61
61
|
`检测到 ${pkgName} 最新版本为 ${latestVersion},使用 'npm i -g ${pkgName}@${latestVersion}' 升级到最新版本!`
|
|
62
62
|
)
|