Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Object {
<span
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
>
2 years ago
3 years ago
</span>
</div>
</li>
Expand Down Expand Up @@ -186,7 +186,7 @@ Object {
<span
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
>
2 years ago
3 years ago
</span>
</div>
</li>
Expand Down
6 changes: 2 additions & 4 deletions src/utils/package.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { isObject } from 'util';

import { UpLinks } from '@verdaccio/types';
import dayjs from 'dayjs';
import localizedFormat from 'dayjs/plugin/localizedFormat';
Expand All @@ -25,7 +23,7 @@ export function formatLicense(license: any): string | undefined {
return license;
}

if (license && isObject(license) && license.type) {
if (license?.type) {
return license.type;
}

Expand All @@ -49,7 +47,7 @@ export function formatRepository(repository: any): string | null {
return repository;
}

if (repository && isObject(repository) && repository.url) {
if (repository?.url) {
return repository.url;
}

Expand Down