UNPKG

verdaccio

Version:

A lightweight private npm proxy registry

17 lines (16 loc) • 650 B
import { Storage as BaseStorage } from '@verdaccio/store'; import { Config } from '@verdaccio/types'; /** * `@verdaccio/store` Storage, with one change: it loads the storage plugin * through {@link CompatLocalStorage} so legacy callback plugins keep working. * * The base `init()` only creates its internal `LocalStorage` when * `this.localStorage` is still null; by pre-populating it we reuse the entire * rest of the upstream Storage implementation (including filter loading via * `super.init`) unchanged. */ declare class Storage extends BaseStorage { init(config: Config): Promise<void>; } export default Storage; export { Storage };