Socket
Socket
Sign inDemoInstall

@verdaccio/types

Package Overview
Dependencies
Maintainers
4
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verdaccio/types - npm Package Compare versions

Comparing version 8.1.0 to 8.3.0

11

CHANGELOG.md

@@ -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 @@

18

index.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc