Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@verdaccio/types

Package Overview
Dependencies
Maintainers
4
Versions
145
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.5.0 to 8.5.1

11

CHANGELOG.md

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

22

index.d.ts

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

4

package.json
{
"name": "@verdaccio/types",
"version": "8.5.0",
"version": "8.5.1",
"description": "verdaccio types definitions",

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

},
"gitHead": "a404d4afcdc885f9db544a5f84273d835deeed02"
"gitHead": "f0887bdc71a239e013fb4142d5e23e3cae9068b7"
}
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