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 9.7.0 to 9.7.2

11

CHANGELOG.md

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

17

index.d.ts

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

4

package.json
{
"name": "@verdaccio/types",
"version": "9.7.0",
"version": "9.7.2",
"description": "verdaccio types definitions",

@@ -35,3 +35,3 @@ "keywords": [

},
"gitHead": "2e40ebb1eb8760c2cd4b5a239f648c79a3667a56"
"gitHead": "5c7d3c5af1bf28da8ffe61f73dfc6380b5e91679"
}
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