@verdaccio/types
Advanced tools
Comparing version 8.5.0 to 8.5.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [8.5.1](https://github.com/verdaccio/monorepo/compare/v8.5.0...v8.5.1) (2019-12-24) | ||
### Bug Fixes | ||
* add new types for local storage ([#306](https://github.com/verdaccio/monorepo/issues/306)) ([e715e24](https://github.com/verdaccio/monorepo/commit/e715e24ec7b7e7b3dca31a3321714ebccadf2a8d)) | ||
# [8.5.0](https://github.com/verdaccio/monorepo/compare/v8.4.2...v8.5.0) (2019-12-22) | ||
@@ -8,0 +19,0 @@ |
@@ -8,2 +8,3 @@ import { PassThrough } from 'stream'; | ||
type Callback = Function; | ||
type CallbackAction = (err?: string) => void; | ||
type CallbackError = (err: NodeJS.ErrnoException) => void; | ||
@@ -371,2 +372,21 @@ interface Author { | ||
/** | ||
* This method expect return a Package object | ||
* eg: | ||
* { | ||
* name: string; | ||
* time: number; | ||
* ... and other props | ||
* } | ||
* | ||
* The `cb` callback object will be executed if: | ||
* - it might return object (truly) | ||
* - it might reutrn null | ||
*/ | ||
type onSearchPackage = (item: Package, cb: CallbackAction) => void; | ||
// FIXME: error should be export type `VerdaccioError = HttpError & { code: number };` | ||
// but this type is on @verdaccio/commons-api and cannot be used here yet | ||
type onEndSearchPackage = (error?: any) => void; | ||
type onValidatePackage = (name: string) => boolean; | ||
interface ILocalData<T> extends IPlugin<T>, ITokenActions { | ||
@@ -381,3 +401,3 @@ logger: Logger; | ||
getPackageStorage(packageInfo: string): IPackageStorage; | ||
search(onPackage: Callback, onEnd: Callback, validateName: Function): void; | ||
search(onPackage: onSearchPackage, onEnd: onEndSearchPackage, validateName: onValidatePackage): void; | ||
} | ||
@@ -384,0 +404,0 @@ |
{ | ||
"name": "@verdaccio/types", | ||
"version": "8.5.0", | ||
"version": "8.5.1", | ||
"description": "verdaccio types definitions", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "a404d4afcdc885f9db544a5f84273d835deeed02" | ||
"gitHead": "f0887bdc71a239e013fb4142d5e23e3cae9068b7" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35164
464