checkPkgUpdate
约 93 字小于 1 分钟
2025-10-13
Karin API Docs / checkPkgUpdate
函数: checkPkgUpdate()
checkPkgUpdate(
name
):Promise
<{local
:string
;remote
:string
;status
:"yes"
; } | {local
:string
;status
:"no"
; } | {error
:Error
;status
:"error"
; }>
定义于: packages/core/src/utils/system/update.ts:18
参数
name
string
包名
返回
Promise
<{ local
: string
; remote
: string
; status
: "yes"
; } | { local
: string
; status
: "no"
; } | { error
: Error
; status
: "error"
; }>
是否存在更新 true: 存在更新 false: 无更新
Description
传入npm包名 检查是否存在更新