This repository was archived by the owner on Jan 16, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import React from 'react';
22import BugReport from '@material-ui/icons/BugReport' ;
33import Grid from '@material-ui/core/Grid' ;
44import HomeIcon from '@material-ui/icons/Home' ;
5- import { PackageMetaInterface , Author as PackageAuthor } from 'types/packageMeta' ;
65
6+ import { PackageMetaInterface , Author as PackageAuthor } from '../../../types/packageMeta' ;
77import Tag from '../Tag' ;
88import fileSizeSI from '../../utils/file-size' ;
99import { formatDate , formatDateDistance } from '../../utils/package' ;
Original file line number Diff line number Diff line change 1- import { PackageMetaInterface } from 'types/packageMeta' ;
1+ import { PackageMetaInterface } from '../../ types/packageMeta' ;
22
33import API from './api' ;
44
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import isString from 'lodash/isString';
55import format from 'date-fns/format' ;
66import distanceInWordsToNow from 'date-fns/distance_in_words_to_now' ;
77
8+ import { Time } from '../../types/packageMeta' ;
9+
810export const TIMEFORMAT = 'DD.MM.YYYY, HH:mm:ss' ;
911
1012/**
@@ -82,8 +84,8 @@ export function getLastUpdatedPackageTime(uplinks: UpLinks = {}): string {
8284 * @param {Object } time
8385 * @returns {Array } last 3 releases
8486 */
85- export function getRecentReleases ( time = { } ) : unknown {
86- const recent = Object . keys ( time ) . map ( ( version ) : unknown => ( {
87+ export function getRecentReleases ( time : Time = { } ) : Time [ ] {
88+ const recent = Object . keys ( time ) . map ( version => ( {
8789 version,
8890 time : formatDate ( time [ version ] ) ,
8991 } ) ) ;
Original file line number Diff line number Diff line change 1212 "resolveJsonModule" : true ,
1313 "checkJs" : false ,
1414 "esModuleInterop" : true ,
15- "baseUrl" : " ."
1615 },
1716 "include" : [
1817 " src" ,
You can’t perform that action at this time.
0 commit comments