UNPKG

@verdaccio/local-storage

Version:

Local storage implementation

13 lines (12 loc) 503 B
import low from 'lowdb'; import { ITokenActions, Config, Token, TokenFilter } from '@verdaccio/types'; export default class TokenActions implements ITokenActions { config: Config; tokenDb: low.LowdbAsync<any> | null; constructor(config: Config); _dbGenPath(dbName: string, config: Config): string; private getTokenDb; saveToken(token: Token): Promise<void>; deleteToken(user: string, tokenKey: string): Promise<void>; readTokens(filter: TokenFilter): Promise<Token[]>; }