@verdaccio/types
Advanced tools
Comparing version 8.1.0 to 8.3.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [8.3.0](https://github.com/verdaccio/monorepo/compare/v8.2.0...v8.3.0) (2019-10-27) | ||
### Features | ||
* improve auth callback TS types ([#225](https://github.com/verdaccio/monorepo/issues/225)) ([ee442a0](https://github.com/verdaccio/monorepo/commit/ee442a0)) | ||
# [8.1.0](https://github.com/verdaccio/monorepo/compare/v8.0.1-next.1...v8.1.0) (2019-09-07) | ||
@@ -8,0 +19,0 @@ |
@@ -459,11 +459,13 @@ import { PassThrough } from 'stream'; | ||
type AuthCallback = (error: string | null, groups: string[] | false) => void; | ||
interface IPluginAuth<T> extends IPlugin<T> { | ||
authenticate(user: string, password: string, cb: Callback): void; | ||
adduser?(user: string, password: string, cb: Callback): void; | ||
changePassword?(user: string, password: string, newPassword: string, cb: Callback): void; | ||
allow_access?(user: RemoteUser, pkg: T & PackageAccess, cb: Callback): void; | ||
allow_publish?(user: RemoteUser, pkg: T & PackageAccess, cb: Callback): void; | ||
allow_access?(user: RemoteUser, pkg: AllowAccess & PackageAccess, cb: Callback): void; | ||
allow_publish?(user: RemoteUser, pkg: AllowAccess & PackageAccess, cb: Callback): void; | ||
allow_unpublish?(user: RemoteUser, pkg: AllowAccess & PackageAccess, cb: Callback): void; | ||
authenticate(user: string, password: string, cb: AuthCallback): void; | ||
adduser?(user: string, password: string, cb: AuthCallback): void; | ||
changePassword?(user: string, password: string, newPassword: string, cb: AuthCallback): void; | ||
allow_access?(user: RemoteUser, pkg: T & PackageAccess, cb: AuthCallback): void; | ||
allow_publish?(user: RemoteUser, pkg: T & PackageAccess, cb: AuthCallback): void; | ||
allow_access?(user: RemoteUser, pkg: AllowAccess & PackageAccess, cb: AuthCallback): void; | ||
allow_publish?(user: RemoteUser, pkg: AllowAccess & PackageAccess, cb: AuthCallback): void; | ||
allow_unpublish?(user: RemoteUser, pkg: AllowAccess & PackageAccess, cb: AuthCallback): void; | ||
apiJWTmiddleware?(helpers: any): Function; | ||
@@ -470,0 +472,0 @@ } |
{ | ||
"name": "@verdaccio/types", | ||
"version": "8.1.0", | ||
"version": "8.3.0", | ||
"description": "verdaccio types definitions", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "83fb9055659791e7ec0f8513cab50d3e1383599e" | ||
"gitHead": "b0599e31925653bd5bf8d224c7daad9d468e0455" | ||
} |
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
33028
442