File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,12 @@ try {
4949const version = computed (() => resolvedVersion .value ?? pkg .value ?.[' dist-tags' ]?.latest ?? ' ' )
5050const isLatest = computed (() => pkg .value ?.[' dist-tags' ]?.latest === version .value )
5151const description = computed (() => pkg .value ?.description ?? ' ' )
52- const license = computed (() => ( pkg .value ?.license as string | undefined ) ?? ' ' )
53- const hasTypes = computed (() => !! (displayVersion .value ?.types || displayVersion .value ?.typings ))
52+ const license = computed (() => pkg .value ?.license ?? ' ' )
53+ const hasTypes = computed (() => Boolean (displayVersion .value ?.types || displayVersion .value ?.typings ))
5454const moduleFormat = computed (() => (displayVersion .value ?.type === ' module' ? ' ESM' : ' CJS' ))
5555const depsCount = computed (() => Object .keys (displayVersion .value ?.dependencies ?? {}).length )
56- // eslint-disable-next-line @typescript-eslint/no-explicit-any
57- const unpackedSize = computed (() => (displayVersion .value ?.dist as any )?.unpackedSize ?? 0 )
58- const publishedAt = computed (
59- () => pkg .value ?.time ?.[version .value ] ?? pkg .value ?.time ?.modified ?? ' ' ,
60- )
56+ const unpackedSize = computed (() => displayVersion .value ?.dist ?.unpackedSize ?? 0 )
57+ const publishedAt = computed (() => pkg .value ?.time ?.[version .value ] ?? ' ' )
6158const weeklyDownloads = computed (() => downloads .value ?.downloads ?? 0 )
6259const repoSlug = computed (() => {
6360 const ref = repoRef .value
You can’t perform that action at this time.
0 commit comments