Skip to content

Commit 6b710a1

Browse files
authored
fix: fix check info log (#52)
1 parent f7be2e3 commit 6b710a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/origin/checkUpdate.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ import { PackageName } from '#common/constants/question.const.js'
1212
const { timestamp, hasShow } = (await getStore('checkResult')) ?? {}
1313
if (Date.now() - timestamp <= Day || hasShow) process.exit(0)
1414

15-
const { localVersion, remoteVersion, isCliUpdate } = await checkUpdate()
15+
const { localVersion, npmVersion, isCliUpdate } = await checkUpdate()
1616
const needShow = false
1717
if (isCliUpdate) {
1818
const installInfo = [NpmInstall, YarnInstall, PnpmInstall]
1919
.map((fun) => fun(PackageName, true, true)) // 暂时先默认为全局
2020
.join('\n')
2121
logger.warn(
22-
`[leetcode-practice] 检测到新版本[ ${remoteVersion} ]已经发布! 您当前的版本为[ ${localVersion} ]! 您可以执行对应的指令进行手动更新~`
22+
`[leetcode-practice] 检测到新版本[ ${npmVersion} ]已经发布! 您当前的版本为[ ${localVersion} ]! 您可以执行对应的指令进行手动更新~`
2323
)
2424
logger.info(`${installInfo}`)
2525
}

0 commit comments

Comments
 (0)