UNPKG

@verdaccio/web

Version:
19 lines (18 loc) 679 B
import { Router } from 'express'; import { Auth } from '@verdaccio/auth'; import { $NextFunctionVer, $RequestExtend, $ResponseExtend } from '@verdaccio/middleware'; import { Storage } from '@verdaccio/store'; import { Config, Manifest, Version } from '@verdaccio/types'; import { AuthorAvatar } from '../web-utils'; export { $RequestExtend, $ResponseExtend, $NextFunctionVer }; export type PackageExt = Manifest & { author: AuthorAvatar; dist?: { tarball: string; }; }; export type $SidebarPackage = Manifest & { latest: Version; }; declare function addSidebarWebApi(config: Config, storage: Storage, auth: Auth): Router; export default addSidebarWebApi;