@verdaccio/types
Advanced tools
Comparing version 9.7.0 to 9.7.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [9.7.2](https://github.com/verdaccio/monorepo/compare/v9.7.1...v9.7.2) (2020-07-20) | ||
### Bug Fixes | ||
* incorrect AuthAccessCallback and AuthCallback ([#374](https://github.com/verdaccio/monorepo/issues/374)) ([97538f8](https://github.com/verdaccio/monorepo/commit/97538f886271ccdbea7862957f65c4a17c4cd831)), closes [/github.com/verdaccio/verdaccio/blob/master/src/lib/auth.ts#L264](https://github.com//github.com/verdaccio/verdaccio/blob/master/src/lib/auth.ts/issues/L264) [/github.com/verdaccio/verdaccio/blob/master/src/lib/auth.ts#L114](https://github.com//github.com/verdaccio/verdaccio/blob/master/src/lib/auth.ts/issues/L114) | ||
# [9.7.0](https://github.com/verdaccio/monorepo/compare/v9.6.1...v9.7.0) (2020-06-24) | ||
@@ -8,0 +19,0 @@ |
@@ -499,5 +499,18 @@ import { PassThrough } from 'stream'; | ||
type AuthAccessCallback = (error: string | null, access: boolean) => void; | ||
type AuthCallback = (error: string | null, groups: string[] | false) => void; | ||
// FIXME: error should be export type `VerdaccioError = HttpError & { code: number };` instead of AuthError | ||
// but this type is on @verdaccio/commons-api and cannot be used here yet (I don't know why) | ||
interface HttpError extends Error { | ||
status: number; | ||
statusCode: number; | ||
expose: boolean; | ||
headers?: { | ||
[key: string]: string; | ||
}; | ||
[key: string]: any; | ||
} | ||
type AuthError = HttpError & { code: number }; | ||
type AuthAccessCallback = (error: AuthError | null, access: boolean) => void; | ||
type AuthCallback = (error: AuthError | null, groups: string[] | false) => void; | ||
interface IPluginAuth<T> extends IPlugin<T> { | ||
@@ -504,0 +517,0 @@ authenticate(user: string, password: string, cb: AuthCallback): void; |
{ | ||
"name": "@verdaccio/types", | ||
"version": "9.7.0", | ||
"version": "9.7.2", | ||
"description": "verdaccio types definitions", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "2e40ebb1eb8760c2cd4b5a239f648c79a3667a56" | ||
"gitHead": "5c7d3c5af1bf28da8ffe61f73dfc6380b5e91679" | ||
} |
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
38447
491