Skip to content

Commit d2e2319

Browse files
@jotadevelopersergiohgz
authored andcommitted
fix: update new plugin types flow
1 parent e06829b commit d2e2319

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

plugins/memory/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ A memory based **storage plugin**.
88

99
### Requirements
1010

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

1313
```
14-
npm install -g verdaccio@3.0.0-alpha.7
14+
npm install -g verdaccio@latest
1515
```
1616

1717
Complete configuration example:

plugins/memory/src/local-memory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

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

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

1010
const DEFAULT_LIMIT: number = 1000;
11-
class LocalMemory implements ILocalData {
11+
class LocalMemory implements IPluginStorage {
1212
path: string;
1313
limit: number;
1414
logger: Logger;

plugins/memory/src/memory-handler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { UploadTarball, ReadTarball } from '@verdaccio/streams';
88

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

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

3131
const fs = new MemoryFileSystem();
3232

33-
class MemoryHandler implements ILocalPackageManager {
33+
class MemoryHandler implements IPackageStorageManager {
3434
data: any;
3535
name: string;
3636
path: string;

0 commit comments

Comments
 (0)