Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

Commit

Permalink
fix: update new plugin types flow
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado committed Jul 15, 2018
1 parent 05dc498 commit b0c5398
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ A memory based **storage plugin**.

### Requirements

This plugin won't work with versiones minimum as `3.0.0-alpha.7`
This plugin won't work with versions minimum as `3.0.0`

```
npm install -g verdaccio@3.0.0-alpha.7
npm install -g verdaccio@latest
```

Complete configuration example:
Expand Down
4 changes: 2 additions & 2 deletions src/local-memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import MemoryHandler from './memory-handler';
import type { Logger, Callback, Config } from '@verdaccio/types';
import type { ILocalData } from '@verdaccio/local-storage';
import type { IPluginStorage } from '@verdaccio/local-storage';

export type ConfigMemory = Config & { limit?: number };
export type MemoryLocalStorage = { files: any, secret: string, list: any };

const DEFAULT_LIMIT: number = 1000;
class LocalMemory implements ILocalData {
class LocalMemory implements IPluginStorage {
path: string;
limit: number;
logger: Logger;
Expand Down
4 changes: 2 additions & 2 deletions src/memory-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { UploadTarball, ReadTarball } from '@verdaccio/streams';

import type { HttpError } from 'http-errors';
import type { Callback, Logger } from '@verdaccio/types';
import type { ILocalPackageManager } from '@verdaccio/local-storage';
import type { IPackageStorageManager } from '@verdaccio/local-storage';

export const noSuchFile: string = 'ENOENT';
export const fileExist: string = 'EEXISTS';
Expand All @@ -30,7 +30,7 @@ const noPackageFoundError = function(message = 'no such package') {

const fs = new MemoryFileSystem();

class MemoryHandler implements ILocalPackageManager {
class MemoryHandler implements IPackageStorageManager {
data: any;
name: string;
path: string;
Expand Down

0 comments on commit b0c5398

Please sign in to comment.