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 10.0.0 to 11.0.0-6-next.7

15

.eslintrc.json
{
"rules": {
"@typescript-eslint/adjacent-overload-signatures": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off"
}
"rules": {
"spaced-comment": 0,
"@typescript-eslint/adjacent-overload-signatures": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off"
}
}
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## 11.0.0-6-next.7
# [10.0.0](https://github.com/verdaccio/monorepo/compare/v9.7.5...v10.0.0) (2021-03-29)
### Minor Changes
**Note:** Version bump only for package @verdaccio/types
- 0da7031e: allow disable login on ui and endpoints
To be able disable the login, set `login: false`, anything else would enable login. This flag will disable access via UI and web endpoints.
```yml
web:
title: verdaccio
login: false
```
## 11.0.0-6-next.6
### Minor Changes
## [9.7.2](https://github.com/verdaccio/monorepo/compare/v9.7.1...v9.7.2) (2020-07-20)
- aecbd226: web: allow ui hide package managers on sidebar
If there is a package manager of preference over others, you can define the package managers to be displayed on the detail page and sidebar, just define in the `config.yaml` and web section the list of package managers to be displayed.
### Bug Fixes
```
web:
title: Verdaccio
sort_packages: asc
primary_color: #cccccc
pkgManagers:
- pnpm
- yarn
# - npm
```
* 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)
To disable all package managers, just define empty:
```
web:
title: Verdaccio
sort_packages: asc
primary_color: #cccccc
pkgManagers:
```
and the section would be hidden.
## 11.0.0-6-next.5
### Patch Changes
# [9.7.0](https://github.com/verdaccio/monorepo/compare/v9.6.1...v9.7.0) (2020-06-24)
- 19d272d1: fix: restore logger on init
Enable logger after parse configuration and log the very first step on startup phase.
### Features
```bash
warn --- experiments are enabled, it is recommended do not use experiments in production comment out this section to disable it
info --- support for experiment [token] is disabled
info --- support for experiment [search] is disabled
(node:50831) Warning: config.logs is deprecated, rename configuration to "config.log"
(Use `node --trace-warnings ...` to show where the warning was created)
info --- http address http://localhost:4873/
info --- version: 6.0.0-6-next.11
info --- server started
```
* types for https config ([#368](https://github.com/verdaccio/monorepo/issues/368)) ([aa4aa83](https://github.com/verdaccio/monorepo/commit/aa4aa83e8a2f6a29ebe7c0b43ccc560a37fe2da9))
## 11.0.0-6-next.4
### Major Changes
- 5c5057fc: feat: node api new structure based on promise
```js
import { runServer } from '@verdaccio/node-api';
// or
import { runServer } from 'verdaccio';
const app = await runServer(); // default configuration
const app = await runServer('./config/config.yaml');
const app = await runServer({ configuration });
app.listen(4000, event => {
// do something
});
```
# [9.5.0](https://github.com/verdaccio/monorepo/compare/v9.4.1...v9.5.0) (2020-05-02)
### Breaking Change
If you are using the node-api, the new structure is Promise based and less arguments.
### Features
## 10.0.0-alpha.3
* **types:** custom favicon ([#356](https://github.com/verdaccio/monorepo/issues/356)) ([bd78861](https://github.com/verdaccio/monorepo/commit/bd78861f46cd5189808b6689d2018a7bac6755f7))
### Patch Changes
- fecbb9be: chore: add release step to private regisry on merge changeset pr
## 10.0.0-alpha.2
### Minor Changes
- 54c58d1e: feat: add server rate limit protection to all request
# [9.3.0](https://github.com/verdaccio/monorepo/compare/v9.2.0...v9.3.0) (2020-01-29)
To modify custom values, use the server settings property.
```markdown
server:
### Features
## https://www.npmjs.com/package/express-rate-limit#configuration-options
* **types:** adding tag type for auth plugins ([#318](https://github.com/verdaccio/monorepo/issues/318)) ([7f07c94](https://github.com/verdaccio/monorepo/commit/7f07c94d9dba5ac45b35aef3bd1ffd3080fb35db))
rateLimit:
windowMs: 1000
max: 10000
```
The values are intended to be high, if you want to improve security of your server consider
using different values.
## 10.0.0-alpha.1
### Major Changes
- d87fa026: feat!: experiments config renamed to flags
# [9.0.0](https://github.com/verdaccio/monorepo/compare/v8.5.3...v9.0.0) (2020-01-07)
- The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
**Note:** Version bump only for package @verdaccio/types
```js
flags: token: false;
search: false;
```
- The `self_path` property from the config file is being removed in favor of `config_file` full path.
- Refactor `config` module, better types and utilities
- da1ee9c8: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
- Introduce environment variables for legacy tokens
### Code Improvements
## [8.5.2](https://github.com/verdaccio/monorepo/compare/v8.5.1...v8.5.2) (2019-12-25)
- Add debug library for improve developer experience
### Breaking change
### Bug Fixes
- The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
- The secret key must have 32 characters long.
* add types for storage handler ([#307](https://github.com/verdaccio/monorepo/issues/307)) ([c35746e](https://github.com/verdaccio/monorepo/commit/c35746ebba071900db172608dedff66a7d27c23d))
### New environment variables
- `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
- `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
### Minor Changes
- 26b494cb: feat: add typescript project references settings
Reading https://ebaytech.berlin/optimizing-multi-package-apps-with-typescript-project-references-d5c57a3b4440 I realized I can use project references to solve the issue to pre-compile modules on develop mode.
## [8.5.1](https://github.com/verdaccio/monorepo/compare/v8.5.0...v8.5.1) (2019-12-24)
It allows to navigate (IDE) trough the packages without need compile the packages.
Add two `tsconfig`, one using the previous existing configuration that is able to produce declaration files (`tsconfig.build`) and a new one `tsconfig` which is enables [_projects references_](https://www.typescriptlang.org/docs/handbook/project-references.html).
### Bug Fixes
### Patch Changes
* add new types for local storage ([#306](https://github.com/verdaccio/monorepo/issues/306)) ([e715e24](https://github.com/verdaccio/monorepo/commit/e715e24ec7b7e7b3dca31a3321714ebccadf2a8d))
- b57b4338: Enable prerelease mode with **changesets**
- 31af0164: ESLint Warnings Fixed
Related to issue #1461
- max-len: most of the sensible max-len errors are fixed
- no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
- @typescript-eslint/no-unused-vars: same as above
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [9.7.2](https://github.com/verdaccio/monorepo/compare/v9.7.1...v9.7.2) (2020-07-20)
# [8.5.0](https://github.com/verdaccio/monorepo/compare/v8.4.2...v8.5.0) (2019-12-22)
### Bug Fixes
* **types:** add allow_unpublish generic ([#305](https://github.com/verdaccio/monorepo/issues/305)) ([aeaf64c](https://github.com/verdaccio/monorepo/commit/aeaf64c67cafb9ec16fa5a66aad9c4912f2a3710))
- 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)
### Features
- types for https config ([#368](https://github.com/verdaccio/monorepo/issues/368)) ([aa4aa83](https://github.com/verdaccio/monorepo/commit/aa4aa83e8a2f6a29ebe7c0b43ccc560a37fe2da9))
# [9.5.0](https://github.com/verdaccio/monorepo/compare/v9.4.1...v9.5.0) (2020-05-02)
## [8.4.2](https://github.com/verdaccio/monorepo/compare/v8.4.1...v8.4.2) (2019-11-23)
### Features
**Note:** Version bump only for package @verdaccio/types
- **types:** custom favicon ([#356](https://github.com/verdaccio/monorepo/issues/356)) ([bd78861](https://github.com/verdaccio/monorepo/commit/bd78861f46cd5189808b6689d2018a7bac6755f7))
# [9.3.0](https://github.com/verdaccio/monorepo/compare/v9.2.0...v9.3.0) (2020-01-29)
### Features
- **types:** adding tag type for auth plugins ([#318](https://github.com/verdaccio/monorepo/issues/318)) ([7f07c94](https://github.com/verdaccio/monorepo/commit/7f07c94d9dba5ac45b35aef3bd1ffd3080fb35db))
# [9.0.0](https://github.com/verdaccio/monorepo/compare/v8.5.3...v9.0.0) (2020-01-07)
## [8.4.1](https://github.com/verdaccio/monorepo/compare/v8.4.0...v8.4.1) (2019-11-22)
**Note:** Version bump only for package @verdaccio/types
## [8.5.2](https://github.com/verdaccio/monorepo/compare/v8.5.1...v8.5.2) (2019-12-25)
### Bug Fixes
- add types for storage handler ([#307](https://github.com/verdaccio/monorepo/issues/307)) ([c35746e](https://github.com/verdaccio/monorepo/commit/c35746ebba071900db172608dedff66a7d27c23d))
## [8.5.1](https://github.com/verdaccio/monorepo/compare/v8.5.0...v8.5.1) (2019-12-24)
# [8.4.0](https://github.com/verdaccio/monorepo/compare/v8.3.0...v8.4.0) (2019-11-22)
### 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)
### Bug Fixes
* adds sort_packages in WebConf Interface ([#227](https://github.com/verdaccio/monorepo/issues/227)) ([5b60ade](https://github.com/verdaccio/monorepo/commit/5b60adef5da49d7d1b62aa9f484b27c9fa319bdd))
- **types:** add allow_unpublish generic ([#305](https://github.com/verdaccio/monorepo/issues/305)) ([aeaf64c](https://github.com/verdaccio/monorepo/commit/aeaf64c67cafb9ec16fa5a66aad9c4912f2a3710))
## [8.4.2](https://github.com/verdaccio/monorepo/compare/v8.4.1...v8.4.2) (2019-11-23)
**Note:** Version bump only for package @verdaccio/types
## [8.4.1](https://github.com/verdaccio/monorepo/compare/v8.4.0...v8.4.1) (2019-11-22)
**Note:** Version bump only for package @verdaccio/types
# [8.3.0](https://github.com/verdaccio/monorepo/compare/v8.2.0...v8.3.0) (2019-10-27)
# [8.4.0](https://github.com/verdaccio/monorepo/compare/v8.3.0...v8.4.0) (2019-11-22)
### Bug Fixes
### Features
- adds sort_packages in WebConf Interface ([#227](https://github.com/verdaccio/monorepo/issues/227)) ([5b60ade](https://github.com/verdaccio/monorepo/commit/5b60adef5da49d7d1b62aa9f484b27c9fa319bdd))
* improve auth callback TS types ([#225](https://github.com/verdaccio/monorepo/issues/225)) ([ee442a0](https://github.com/verdaccio/monorepo/commit/ee442a0))
# [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)

@@ -141,6 +245,2 @@

## [8.0.1-next.1](https://github.com/verdaccio/monorepo/compare/v8.0.1-next.0...v8.0.1-next.1) (2019-08-29)

@@ -150,6 +250,2 @@

## [8.0.1-next.0](https://github.com/verdaccio/monorepo/compare/v8.0.0...v8.0.1-next.0) (2019-08-29)

@@ -159,6 +255,2 @@

# [8.0.0](https://github.com/verdaccio/monorepo/compare/v8.0.0-next.4...v8.0.0) (2019-08-22)

@@ -168,6 +260,2 @@

# [8.0.0-next.4](https://github.com/verdaccio/monorepo/compare/v8.0.0-next.3...v8.0.0-next.4) (2019-08-18)

@@ -177,17 +265,8 @@

# [8.0.0-next.2](https://github.com/verdaccio/monorepo/compare/v8.0.0-next.1...v8.0.0-next.2) (2019-08-03)
### Bug Fixes
* update types for tokens ([9734fa8](https://github.com/verdaccio/monorepo/commit/9734fa8))
- update types for tokens ([9734fa8](https://github.com/verdaccio/monorepo/commit/9734fa8))
# [8.0.0-next.1](https://github.com/verdaccio/monorepo/compare/v8.0.0-next.0...v8.0.0-next.1) (2019-08-01)

@@ -197,81 +276,70 @@

# [8.0.0-next.0](https://github.com/verdaccio/monorepo/compare/v2.0.0...v8.0.0-next.0) (2019-08-01)
### Bug Fixes
* add _autogenerated to UpLinkConf ([436bd91](https://github.com/verdaccio/monorepo/commit/436bd91))
* add config prop to IBasicAuth ([2481d6f](https://github.com/verdaccio/monorepo/commit/2481d6f))
* add missing adduser method ([22cdb4e](https://github.com/verdaccio/monorepo/commit/22cdb4e))
* add missing properties ([973c5e4](https://github.com/verdaccio/monorepo/commit/973c5e4))
* allow extend config ([0aea94f](https://github.com/verdaccio/monorepo/commit/0aea94f))
* allow sub types on allow auth methods ([7325f74](https://github.com/verdaccio/monorepo/commit/7325f74))
* deprecated methods are optional ([b77155a](https://github.com/verdaccio/monorepo/commit/b77155a))
* entry point [#14](https://github.com/verdaccio/monorepo/issues/14) ([7575e75](https://github.com/verdaccio/monorepo/commit/7575e75))
* export Author type ([bf7115b](https://github.com/verdaccio/monorepo/commit/bf7115b))
* fix/token i local package manager ([#61](https://github.com/verdaccio/monorepo/issues/61)) ([a7e0fc8](https://github.com/verdaccio/monorepo/commit/a7e0fc8))
* fixes for storage plugin types per code review ([#59](https://github.com/verdaccio/monorepo/issues/59)) ([04fccb8](https://github.com/verdaccio/monorepo/commit/04fccb8))
* getPackageStorage allowed to return undefined ([8a859d0](https://github.com/verdaccio/monorepo/commit/8a859d0))
* improvements config interface ([1dac321](https://github.com/verdaccio/monorepo/commit/1dac321))
* methods return Stream ([22e0672](https://github.com/verdaccio/monorepo/commit/22e0672))
* remove options from get package metadata ([2bfc048](https://github.com/verdaccio/monorepo/commit/2bfc048))
* remove wrong definition ([acba624](https://github.com/verdaccio/monorepo/commit/acba624))
* remove wrong imports ([c82f51c](https://github.com/verdaccio/monorepo/commit/c82f51c))
* restore missing type on RemoteUser ([b596896](https://github.com/verdaccio/monorepo/commit/b596896))
* storage types ([1285675](https://github.com/verdaccio/monorepo/commit/1285675))
* tokens are accesible also in local-storage ([08b342d](https://github.com/verdaccio/monorepo/commit/08b342d))
* update https ([c93c3fc](https://github.com/verdaccio/monorepo/commit/c93c3fc))
* update readTarball with right parameters ([8cbc7d1](https://github.com/verdaccio/monorepo/commit/8cbc7d1))
* update streams type ([7fa7be5](https://github.com/verdaccio/monorepo/commit/7fa7be5))
* update types for local data ([6706770](https://github.com/verdaccio/monorepo/commit/6706770))
* update utils types ([7c37133](https://github.com/verdaccio/monorepo/commit/7c37133))
* wrong signature for auth plugin ([e3e2508](https://github.com/verdaccio/monorepo/commit/e3e2508))
- add \_autogenerated to UpLinkConf ([436bd91](https://github.com/verdaccio/monorepo/commit/436bd91))
- add config prop to IBasicAuth ([2481d6f](https://github.com/verdaccio/monorepo/commit/2481d6f))
- add missing adduser method ([22cdb4e](https://github.com/verdaccio/monorepo/commit/22cdb4e))
- add missing properties ([973c5e4](https://github.com/verdaccio/monorepo/commit/973c5e4))
- allow extend config ([0aea94f](https://github.com/verdaccio/monorepo/commit/0aea94f))
- allow sub types on allow auth methods ([7325f74](https://github.com/verdaccio/monorepo/commit/7325f74))
- deprecated methods are optional ([b77155a](https://github.com/verdaccio/monorepo/commit/b77155a))
- entry point [#14](https://github.com/verdaccio/monorepo/issues/14) ([7575e75](https://github.com/verdaccio/monorepo/commit/7575e75))
- export Author type ([bf7115b](https://github.com/verdaccio/monorepo/commit/bf7115b))
- fix/token i local package manager ([#61](https://github.com/verdaccio/monorepo/issues/61)) ([a7e0fc8](https://github.com/verdaccio/monorepo/commit/a7e0fc8))
- fixes for storage plugin types per code review ([#59](https://github.com/verdaccio/monorepo/issues/59)) ([04fccb8](https://github.com/verdaccio/monorepo/commit/04fccb8))
- getPackageStorage allowed to return undefined ([8a859d0](https://github.com/verdaccio/monorepo/commit/8a859d0))
- improvements config interface ([1dac321](https://github.com/verdaccio/monorepo/commit/1dac321))
- methods return Stream ([22e0672](https://github.com/verdaccio/monorepo/commit/22e0672))
- remove options from get package metadata ([2bfc048](https://github.com/verdaccio/monorepo/commit/2bfc048))
- remove wrong definition ([acba624](https://github.com/verdaccio/monorepo/commit/acba624))
- remove wrong imports ([c82f51c](https://github.com/verdaccio/monorepo/commit/c82f51c))
- restore missing type on RemoteUser ([b596896](https://github.com/verdaccio/monorepo/commit/b596896))
- storage types ([1285675](https://github.com/verdaccio/monorepo/commit/1285675))
- tokens are accesible also in local-storage ([08b342d](https://github.com/verdaccio/monorepo/commit/08b342d))
- update https ([c93c3fc](https://github.com/verdaccio/monorepo/commit/c93c3fc))
- update readTarball with right parameters ([8cbc7d1](https://github.com/verdaccio/monorepo/commit/8cbc7d1))
- update streams type ([7fa7be5](https://github.com/verdaccio/monorepo/commit/7fa7be5))
- update types for local data ([6706770](https://github.com/verdaccio/monorepo/commit/6706770))
- update utils types ([7c37133](https://github.com/verdaccio/monorepo/commit/7c37133))
- wrong signature for auth plugin ([e3e2508](https://github.com/verdaccio/monorepo/commit/e3e2508))
### Features
* add AuthPluginPackage type ([f0e1cea](https://github.com/verdaccio/monorepo/commit/f0e1cea))
* add callback to database methods ([d0d55e9](https://github.com/verdaccio/monorepo/commit/d0d55e9))
* add config file types ([188a3e5](https://github.com/verdaccio/monorepo/commit/188a3e5))
* add gravatar prop for web config ([b3ac873](https://github.com/verdaccio/monorepo/commit/b3ac873))
* add interface for middleware and storage plugin ([2b18e22](https://github.com/verdaccio/monorepo/commit/2b18e22))
* add IStorageManager for middleware plugin ([0ac1cc4](https://github.com/verdaccio/monorepo/commit/0ac1cc4))
* Add locking library on typings ([7f7ab67](https://github.com/verdaccio/monorepo/commit/7f7ab67))
* add RemoteUser type ([7d11892](https://github.com/verdaccio/monorepo/commit/7d11892))
* add search method BREAKING CHANGE: search method must be implemented to allow search functionality ([b6d94e6](https://github.com/verdaccio/monorepo/commit/b6d94e6))
* add secret gateway methods ([5300147](https://github.com/verdaccio/monorepo/commit/5300147))
* add Security configuration ([0cdc0dd](https://github.com/verdaccio/monorepo/commit/0cdc0dd))
* add types for auth plugin ([6378186](https://github.com/verdaccio/monorepo/commit/6378186))
* add types for PackageUsers ([ad5f917](https://github.com/verdaccio/monorepo/commit/ad5f917))
* add types for search class ([e23782d](https://github.com/verdaccio/monorepo/commit/e23782d))
* callback does not return ([fd78bfc](https://github.com/verdaccio/monorepo/commit/fd78bfc))
* merge changes from 5.x ([5f61009](https://github.com/verdaccio/monorepo/commit/5f61009))
* package access props are not optional ([61708e2](https://github.com/verdaccio/monorepo/commit/61708e2))
* remove flow [#70](https://github.com/verdaccio/monorepo/issues/70) ([2218b74](https://github.com/verdaccio/monorepo/commit/2218b74))
* remove sync method ([f60f81c](https://github.com/verdaccio/monorepo/commit/f60f81c))
* secret methods are async ([d5eacf5](https://github.com/verdaccio/monorepo/commit/d5eacf5))
* support for an IPluginStorageFilter ([#58](https://github.com/verdaccio/monorepo/issues/58)) ([eab219e](https://github.com/verdaccio/monorepo/commit/eab219e))
* token types ([#60](https://github.com/verdaccio/monorepo/issues/60)) @Eomm ([6e74da6](https://github.com/verdaccio/monorepo/commit/6e74da6))
* **auth:** add method to update password ([e257c3a](https://github.com/verdaccio/monorepo/commit/e257c3a))
* **storage:** path is not mandatory ([2c42931](https://github.com/verdaccio/monorepo/commit/2c42931))
- add AuthPluginPackage type ([f0e1cea](https://github.com/verdaccio/monorepo/commit/f0e1cea))
- add callback to database methods ([d0d55e9](https://github.com/verdaccio/monorepo/commit/d0d55e9))
- add config file types ([188a3e5](https://github.com/verdaccio/monorepo/commit/188a3e5))
- add gravatar prop for web config ([b3ac873](https://github.com/verdaccio/monorepo/commit/b3ac873))
- add interface for middleware and storage plugin ([2b18e22](https://github.com/verdaccio/monorepo/commit/2b18e22))
- add IStorageManager for middleware plugin ([0ac1cc4](https://github.com/verdaccio/monorepo/commit/0ac1cc4))
- Add locking library on typings ([7f7ab67](https://github.com/verdaccio/monorepo/commit/7f7ab67))
- add RemoteUser type ([7d11892](https://github.com/verdaccio/monorepo/commit/7d11892))
- add search method BREAKING CHANGE: search method must be implemented to allow search functionality ([b6d94e6](https://github.com/verdaccio/monorepo/commit/b6d94e6))
- add secret gateway methods ([5300147](https://github.com/verdaccio/monorepo/commit/5300147))
- add Security configuration ([0cdc0dd](https://github.com/verdaccio/monorepo/commit/0cdc0dd))
- add types for auth plugin ([6378186](https://github.com/verdaccio/monorepo/commit/6378186))
- add types for PackageUsers ([ad5f917](https://github.com/verdaccio/monorepo/commit/ad5f917))
- add types for search class ([e23782d](https://github.com/verdaccio/monorepo/commit/e23782d))
- callback does not return ([fd78bfc](https://github.com/verdaccio/monorepo/commit/fd78bfc))
- merge changes from 5.x ([5f61009](https://github.com/verdaccio/monorepo/commit/5f61009))
- package access props are not optional ([61708e2](https://github.com/verdaccio/monorepo/commit/61708e2))
- remove flow [#70](https://github.com/verdaccio/monorepo/issues/70) ([2218b74](https://github.com/verdaccio/monorepo/commit/2218b74))
- remove sync method ([f60f81c](https://github.com/verdaccio/monorepo/commit/f60f81c))
- secret methods are async ([d5eacf5](https://github.com/verdaccio/monorepo/commit/d5eacf5))
- support for an IPluginStorageFilter ([#58](https://github.com/verdaccio/monorepo/issues/58)) ([eab219e](https://github.com/verdaccio/monorepo/commit/eab219e))
- token types ([#60](https://github.com/verdaccio/monorepo/issues/60)) @Eomm ([6e74da6](https://github.com/verdaccio/monorepo/commit/6e74da6))
- **auth:** add method to update password ([e257c3a](https://github.com/verdaccio/monorepo/commit/e257c3a))
- **storage:** path is not mandatory ([2c42931](https://github.com/verdaccio/monorepo/commit/2c42931))
### BREAKING CHANGES
* remove flow definitions
* storage needs to add new methods
- remove flow definitions
- storage needs to add new methods
* add: token types
- add: token types
* add: typescripts types
* **auth:** it will affect all auth plugins
- add: typescripts types
- **auth:** it will affect all auth plugins
# Changelog

@@ -283,398 +351,320 @@

### Bug Fixes
* add _autogenerated to UpLinkConf ([971e52e](https://github.com/verdaccio/flow-types/commit/971e52e))
* **IPluginAuth:** adduser, changePassword optional ([40d4e7a](https://github.com/verdaccio/flow-types/commit/40d4e7a)), closes [/github.com/verdaccio/verdaccio/blob/66f4197236d9d71af149314aae15102b336f45e1/src/lib/auth.ts#L67-L71](https://github.com/verdaccio/flow-types/issues/L67-L71) [/github.com/verdaccio/verdaccio/blob/66f4197236d9d71af149314aae15102b336f45e1/src/lib/auth.ts#L138-L166](https://github.com/verdaccio/flow-types/issues/L138-L166)
* **IPluginAuth:** remove `login_url` ([1663c07](https://github.com/verdaccio/flow-types/commit/1663c07)), closes [#69](https://github.com/verdaccio/flow-types/issues/69)
- add \_autogenerated to UpLinkConf ([971e52e](https://github.com/verdaccio/flow-types/commit/971e52e))
- **IPluginAuth:** adduser, changePassword optional ([40d4e7a](https://github.com/verdaccio/flow-types/commit/40d4e7a)), closes [/github.com/verdaccio/verdaccio/blob/66f4197236d9d71af149314aae15102b336f45e1/src/lib/auth.ts#L67-L71](https://github.com/verdaccio/flow-types/issues/L67-L71) [/github.com/verdaccio/verdaccio/blob/66f4197236d9d71af149314aae15102b336f45e1/src/lib/auth.ts#L138-L166](https://github.com/verdaccio/flow-types/issues/L138-L166)
- **IPluginAuth:** remove `login_url` ([1663c07](https://github.com/verdaccio/flow-types/commit/1663c07)), closes [#69](https://github.com/verdaccio/flow-types/issues/69)
### Features
* merge changes from 5.x ([7d2d526](https://github.com/verdaccio/flow-types/commit/7d2d526))
* remove flow [#70](https://github.com/verdaccio/flow-types/issues/70) ([826d5fe](https://github.com/verdaccio/flow-types/commit/826d5fe))
- merge changes from 5.x ([7d2d526](https://github.com/verdaccio/flow-types/commit/7d2d526))
- remove flow [#70](https://github.com/verdaccio/flow-types/issues/70) ([826d5fe](https://github.com/verdaccio/flow-types/commit/826d5fe))
### BREAKING CHANGES
* remove flow definitions
- remove flow definitions
<a name="6.2.0"></a>
<a name="6.2.0"></a>
# [6.2.0](https://github.com/verdaccio/flow-types/compare/v6.1.0...v6.2.0) (2019-05-28)
### Features
* add types for Version ([900861d](https://github.com/verdaccio/flow-types/commit/900861d))
- add types for Version ([900861d](https://github.com/verdaccio/flow-types/commit/900861d))
<a name="6.1.0"></a>
<a name="6.1.0"></a>
# [6.1.0](https://github.com/verdaccio/flow-types/compare/v6.0.2...v6.1.0) (2019-05-14)
### Bug Fixes
* revert token signature ([59a03e7](https://github.com/verdaccio/flow-types/commit/59a03e7))
- revert token signature ([59a03e7](https://github.com/verdaccio/flow-types/commit/59a03e7))
### Features
* moved token api signature ([e51991c](https://github.com/verdaccio/flow-types/commit/e51991c))
- moved token api signature ([e51991c](https://github.com/verdaccio/flow-types/commit/e51991c))
<a name="6.0.2"></a>
<a name="6.0.2"></a>
## [6.0.2](https://github.com/verdaccio/flow-types/compare/v6.0.1...v6.0.2) (2019-05-06)
### Bug Fixes
* fix/token i local package manager ([#61](https://github.com/verdaccio/flow-types/issues/61)) ([14adfb2](https://github.com/verdaccio/flow-types/commit/14adfb2))
- fix/token i local package manager ([#61](https://github.com/verdaccio/flow-types/issues/61)) ([14adfb2](https://github.com/verdaccio/flow-types/commit/14adfb2))
<a name="6.0.1"></a>
<a name="6.0.1"></a>
## [6.0.1](https://github.com/verdaccio/flow-types/compare/v6.0.0...v6.0.1) (2019-05-04)
### Bug Fixes
* tokens are accesible also in local-storage ([56551cf](https://github.com/verdaccio/flow-types/commit/56551cf))
- tokens are accesible also in local-storage ([56551cf](https://github.com/verdaccio/flow-types/commit/56551cf))
<a name="6.0.0"></a>
<a name="6.0.0"></a>
# [6.0.0](https://github.com/verdaccio/flow-types/compare/v5.0.2...v6.0.0) (2019-04-30)
### Bug Fixes
* remove wrong imports ([a75476a](https://github.com/verdaccio/flow-types/commit/a75476a))
- remove wrong imports ([a75476a](https://github.com/verdaccio/flow-types/commit/a75476a))
### Features
* token types ([#60](https://github.com/verdaccio/flow-types/issues/60)) @Eomm ([7b74982](https://github.com/verdaccio/flow-types/commit/7b74982))
- token types ([#60](https://github.com/verdaccio/flow-types/issues/60)) @Eomm ([7b74982](https://github.com/verdaccio/flow-types/commit/7b74982))
### BREAKING CHANGES
* storage needs to add new methods
- storage needs to add new methods
* add: token types
- add: token types
* add: typescripts types
- add: typescripts types
<a name="5.0.2"></a>
<a name="5.0.2"></a>
## [5.0.2](https://github.com/verdaccio/flow-types/compare/v5.0.1...v5.0.2) (2019-04-22)
### Bug Fixes
* fixes for storage plugin types per code review ([#59](https://github.com/verdaccio/flow-types/issues/59)) ([c2ea90b](https://github.com/verdaccio/flow-types/commit/c2ea90b))
- fixes for storage plugin types per code review ([#59](https://github.com/verdaccio/flow-types/issues/59)) ([c2ea90b](https://github.com/verdaccio/flow-types/commit/c2ea90b))
<a name="5.0.1"></a>
<a name="5.0.1"></a>
## [5.0.1](https://github.com/verdaccio/flow-types/compare/v5.0.0...v5.0.1) (2019-04-18)
<a name="5.0.0"></a>
<a name="5.0.0"></a>
# [5.0.0](https://github.com/verdaccio/flow-types/compare/v5.0.0-beta.4...v5.0.0) (2019-04-18)
### Features
* support for an IPluginStorageFilter ([#58](https://github.com/verdaccio/flow-types/issues/58)) ([e67559f](https://github.com/verdaccio/flow-types/commit/e67559f))
- support for an IPluginStorageFilter ([#58](https://github.com/verdaccio/flow-types/issues/58)) ([e67559f](https://github.com/verdaccio/flow-types/commit/e67559f))
<a name="5.0.0-beta.4"></a>
<a name="5.0.0-beta.4"></a>
# [5.0.0-beta.4](https://github.com/verdaccio/flow-types/compare/v5.0.0-beta.3...v5.0.0-beta.4) (2019-03-29)
### Features
* **storage:** path is not mandatory ([784f1bb](https://github.com/verdaccio/flow-types/commit/784f1bb))
- **storage:** path is not mandatory ([784f1bb](https://github.com/verdaccio/flow-types/commit/784f1bb))
<a name="5.0.0-beta.3"></a>
<a name="5.0.0-beta.3"></a>
# [5.0.0-beta.3](https://github.com/verdaccio/flow-types/compare/v5.0.0-beta.2...v5.0.0-beta.3) (2019-03-09)
### Features
* add types for PackageUsers ([9bb3c26](https://github.com/verdaccio/flow-types/commit/9bb3c26))
- add types for PackageUsers ([9bb3c26](https://github.com/verdaccio/flow-types/commit/9bb3c26))
<a name="5.0.0-beta.2"></a>
<a name="5.0.0-beta.2"></a>
# [5.0.0-beta.2](https://github.com/verdaccio/flow-types/compare/v5.0.0-beta.1...v5.0.0-beta.2) (2019-02-03)
### Features
* allow_access and allow_publish are optional for auth plugin ([0d5a53c](https://github.com/verdaccio/flow-types/commit/0d5a53c))
- allow_access and allow_publish are optional for auth plugin ([0d5a53c](https://github.com/verdaccio/flow-types/commit/0d5a53c))
<a name="5.0.0-beta.1"></a>
<a name="5.0.0-beta.1"></a>
# [5.0.0-beta.1](https://github.com/verdaccio/flow-types/compare/v5.0.0-beta.0...v5.0.0-beta.1) (2019-02-01)
<a name="5.0.0-beta.0"></a>
<a name="5.0.0-beta.0"></a>
# [5.0.0-beta.0](https://github.com/verdaccio/flow-types/compare/v4.3.0...v5.0.0-beta.0) (2019-01-27)
<a name="4.3.0"></a>
<a name="4.3.0"></a>
# [4.3.0](https://github.com/verdaccio/flow-types/compare/v4.2.0...v4.3.0) (2019-01-12)
### Features
* add gravatar prop for web config ([99ceae9](https://github.com/verdaccio/flow-types/commit/99ceae9))
- add gravatar prop for web config ([99ceae9](https://github.com/verdaccio/flow-types/commit/99ceae9))
<a name="4.2.0"></a>
<a name="4.2.0"></a>
# [4.2.0](https://github.com/verdaccio/flow-types/compare/v4.1.2...v4.2.0) (2019-01-12)
### Features
* add AuthPluginPackage type ([0e46b04](https://github.com/verdaccio/flow-types/commit/0e46b04))
- add AuthPluginPackage type ([0e46b04](https://github.com/verdaccio/flow-types/commit/0e46b04))
<a name="4.1.2"></a>
<a name="4.1.2"></a>
## [4.1.2](https://github.com/verdaccio/flow-types/compare/v4.1.1...v4.1.2) (2018-11-11)
### Bug Fixes
* remove wrong definition ([9bc53fc](https://github.com/verdaccio/flow-types/commit/9bc53fc))
- remove wrong definition ([9bc53fc](https://github.com/verdaccio/flow-types/commit/9bc53fc))
<a name="4.1.1"></a>
<a name="4.1.1"></a>
## [4.1.1](https://github.com/verdaccio/flow-types/compare/v4.1.0...v4.1.1) (2018-10-06)
### Bug Fixes
* deprecated methods are optional ([4c96e89](https://github.com/verdaccio/flow-types/commit/4c96e89))
- deprecated methods are optional ([4c96e89](https://github.com/verdaccio/flow-types/commit/4c96e89))
<a name="4.1.0"></a>
<a name="4.1.0"></a>
# [4.1.0](https://github.com/verdaccio/flow-types/compare/v4.0.0...v4.1.0) (2018-10-06)
### Features
* package access props are not optional ([afabaf1](https://github.com/verdaccio/flow-types/commit/afabaf1))
- package access props are not optional ([afabaf1](https://github.com/verdaccio/flow-types/commit/afabaf1))
<a name="4.0.0"></a>
<a name="4.0.0"></a>
# [4.0.0](https://github.com/verdaccio/flow-types/compare/v3.7.2...v4.0.0) (2018-09-30)
### Features
* **auth:** add method to update password ([21fc43f](https://github.com/verdaccio/flow-types/commit/21fc43f))
- **auth:** add method to update password ([21fc43f](https://github.com/verdaccio/flow-types/commit/21fc43f))
### BREAKING CHANGES
* **auth:** it will affect all auth plugins
- **auth:** it will affect all auth plugins
<a name="3.7.2"></a>
<a name="3.7.2"></a>
## [3.7.2](https://github.com/verdaccio/flow-types/compare/v3.7.1...v3.7.2) (2018-09-27)
### Bug Fixes
* entry point [#14](https://github.com/verdaccio/flow-types/issues/14) ([f7b8982](https://github.com/verdaccio/flow-types/commit/f7b8982))
* export Author type ([7869dde](https://github.com/verdaccio/flow-types/commit/7869dde))
- entry point [#14](https://github.com/verdaccio/flow-types/issues/14) ([f7b8982](https://github.com/verdaccio/flow-types/commit/f7b8982))
- export Author type ([7869dde](https://github.com/verdaccio/flow-types/commit/7869dde))
<a name="3.7.1"></a>
<a name="3.7.1"></a>
## [3.7.1](https://github.com/verdaccio/flow-types/compare/v3.7.0...v3.7.1) (2018-08-11)
### Bug Fixes
* restore missing type on RemoteUser ([88d809e](https://github.com/verdaccio/flow-types/commit/88d809e))
- restore missing type on RemoteUser ([88d809e](https://github.com/verdaccio/flow-types/commit/88d809e))
<a name="3.7.0"></a>
<a name="3.7.0"></a>
# [3.7.0](https://github.com/verdaccio/flow-types/compare/v3.6.0...v3.7.0) (2018-08-05)
### Features
* add Security configuration ([0d9aece](https://github.com/verdaccio/flow-types/commit/0d9aece))
- add Security configuration ([0d9aece](https://github.com/verdaccio/flow-types/commit/0d9aece))
<a name="3.6.0"></a>
<a name="3.6.0"></a>
# [3.6.0](https://github.com/verdaccio/flow-types/compare/v3.5.1...v3.6.0) (2018-07-30)
### Features
* changes max_users type to number ([1fa6e73](https://github.com/verdaccio/flow-types/commit/1fa6e73))
- changes max_users type to number ([1fa6e73](https://github.com/verdaccio/flow-types/commit/1fa6e73))
<a name="3.5.1"></a>
<a name="3.5.1"></a>
## [3.5.1](https://github.com/verdaccio/flow-types/compare/v3.5.0...v3.5.1) (2018-07-21)
### Bug Fixes
* login_url should be an optional property ([0fcfb9c](https://github.com/verdaccio/flow-types/commit/0fcfb9c))
- login_url should be an optional property ([0fcfb9c](https://github.com/verdaccio/flow-types/commit/0fcfb9c))
<a name="3.5.0"></a>
<a name="3.5.0"></a>
# [3.5.0](https://github.com/verdaccio/flow-types/compare/v3.4.3...v3.5.0) (2018-07-21)
### Features
* add `login_url` to verdaccio$IPluginAuth ([6e03209](https://github.com/verdaccio/flow-types/commit/6e03209)), closes [verdaccio/verdaccio#834](https://github.com/verdaccio/verdaccio/issues/834)
- add `login_url` to verdaccio\$IPluginAuth ([6e03209](https://github.com/verdaccio/flow-types/commit/6e03209)), closes [verdaccio/verdaccio#834](https://github.com/verdaccio/verdaccio/issues/834)
<a name="3.4.3"></a>
<a name="3.4.3"></a>
## [3.4.3](https://github.com/verdaccio/flow-types/compare/v3.4.2...v3.4.3) (2018-07-19)
### Bug Fixes
* allow extend config ([06e810f](https://github.com/verdaccio/flow-types/commit/06e810f))
- allow extend config ([06e810f](https://github.com/verdaccio/flow-types/commit/06e810f))
<a name="3.4.2"></a>
<a name="3.4.2"></a>
## [3.4.2](https://github.com/verdaccio/flow-types/compare/v3.4.1...v3.4.2) (2018-07-17)
<a name="3.4.1"></a>
<a name="3.4.1"></a>
## [3.4.1](https://github.com/verdaccio/flow-types/compare/v3.4.0...v3.4.1) (2018-07-16)
### Bug Fixes
* allow sub types on allow auth methods ([fa8125b](https://github.com/verdaccio/flow-types/commit/fa8125b))
- allow sub types on allow auth methods ([fa8125b](https://github.com/verdaccio/flow-types/commit/fa8125b))
<a name="3.4.0"></a>
<a name="3.4.0"></a>
# [3.4.0](https://github.com/verdaccio/flow-types/compare/v3.3.3...v3.4.0) (2018-07-16)
### Features
* add RemoteUser type ([aa83839](https://github.com/verdaccio/flow-types/commit/aa83839))
- add RemoteUser type ([aa83839](https://github.com/verdaccio/flow-types/commit/aa83839))
<a name="3.3.3"></a>
<a name="3.3.3"></a>
## [3.3.3](https://github.com/verdaccio/flow-types/compare/v3.3.2...v3.3.3) (2018-07-16)
### Bug Fixes
* wrong signature for auth plugin ([11a0ce6](https://github.com/verdaccio/flow-types/commit/11a0ce6))
- wrong signature for auth plugin ([11a0ce6](https://github.com/verdaccio/flow-types/commit/11a0ce6))
<a name="3.3.2"></a>
<a name="3.3.2"></a>
## [3.3.2](https://github.com/verdaccio/flow-types/compare/v3.3.1...v3.3.2) (2018-07-16)
### Bug Fixes
* add missing adduser method ([0b54fe7](https://github.com/verdaccio/flow-types/commit/0b54fe7))
- add missing adduser method ([0b54fe7](https://github.com/verdaccio/flow-types/commit/0b54fe7))
<a name="3.3.1"></a>
<a name="3.3.1"></a>
## [3.3.1](https://github.com/verdaccio/flow-types/compare/v3.3.0...v3.3.1) (2018-07-15)
### Bug Fixes
* add config prop to IBasicAuth ([0714316](https://github.com/verdaccio/flow-types/commit/0714316))
- add config prop to IBasicAuth ([0714316](https://github.com/verdaccio/flow-types/commit/0714316))
<a name="3.3.0"></a>
<a name="3.3.0"></a>
# [3.3.0](https://github.com/verdaccio/flow-types/compare/v3.2.0...v3.3.0) (2018-07-15)
### Features
* add IStorageManager for middleware plugin ([d473b4c](https://github.com/verdaccio/flow-types/commit/d473b4c))
- add IStorageManager for middleware plugin ([d473b4c](https://github.com/verdaccio/flow-types/commit/d473b4c))
<a name="3.2.0"></a>
<a name="3.2.0"></a>
# [3.2.0](https://github.com/verdaccio/flow-types/compare/v3.1.0...v3.2.0) (2018-07-15)
### Features
* add interface for middleware and storage plugin ([0028085](https://github.com/verdaccio/flow-types/commit/0028085))
- add interface for middleware and storage plugin ([0028085](https://github.com/verdaccio/flow-types/commit/0028085))
<a name="3.1.0"></a>
<a name="3.1.0"></a>
# [3.1.0](https://github.com/verdaccio/flow-types/compare/v3.0.1...v3.1.0) (2018-07-14)
### Features
* add types for auth plugin ([a9b7bc9](https://github.com/verdaccio/flow-types/commit/a9b7bc9))
- add types for auth plugin ([a9b7bc9](https://github.com/verdaccio/flow-types/commit/a9b7bc9))
<a name="3.0.1"></a>
<a name="3.0.1"></a>
## [3.0.1](https://github.com/verdaccio/flow-types/compare/v3.0.0...v3.0.1) (2018-07-02)
### Bug Fixes
* improvements config interface ([8ea6276](https://github.com/verdaccio/flow-types/commit/8ea6276))
- improvements config interface ([8ea6276](https://github.com/verdaccio/flow-types/commit/8ea6276))
<a name="3.0.0"></a>
<a name="3.0.0"></a>
# [3.0.0](https://github.com/verdaccio/flow-types/compare/v2.2.2...v3.0.0) (2018-06-08)
### Features
* add search method ([2cf3ce9](https://github.com/verdaccio/flow-types/commit/2cf3ce9))
- add search method ([2cf3ce9](https://github.com/verdaccio/flow-types/commit/2cf3ce9))
### BREAKING CHANGES
* search method must be implemented to allow search functionality
- search method must be implemented to allow search functionality

@@ -0,1 +1,3 @@

/// <reference types="node" />
import { PassThrough } from 'stream';

@@ -10,3 +12,2 @@

type CallbackAction = (err: any | null) => void;
type CallbackError = (err: NodeJS.ErrnoException) => void;
interface Author {

@@ -18,2 +19,47 @@ name: string;

type PackageManagers = 'pnpm' | 'yarn' | 'npm';
// FUTURE: WebConf and TemplateUIOptions should be merged .
type CommonWebConf = {
title?: string;
logo?: string;
favicon?: string;
gravatar?: boolean;
sort_packages?: string;
darkMode?: boolean;
url_prefix?: string;
language?: string;
login?: boolean;
scope?: string;
pkgManagers?: PackageManagers[];
};
/**
* Options are passed to the index.html
*/
export type TemplateUIOptions = {
uri?: string;
darkMode?: boolean;
protocol?: string;
host?: string;
base: string;
primaryColor?: string;
version?: string;
logoURI?: string;
} & CommonWebConf;
/**
* Options on config.yaml for web
*/
type WebConf = {
// FIXME: rename to primaryColor and move it to CommonWebConf
primary_color?: string;
enable?: boolean;
scriptsHead?: string[];
scriptsBodyAfter?: string[];
metaScripts?: string[];
bodyBefore?: string[];
bodyAfter?: string[];
} & CommonWebConf;
interface Dist {

@@ -150,3 +196,3 @@ integrity?: string;

class IUploadTarball extends PassThrough {
interface IUploadTarball extends PassThrough {
abort(): void;

@@ -156,3 +202,3 @@ done(): void;

class IReadTarball extends PassThrough {
interface IReadTarball extends PassThrough {
abort(): void;

@@ -192,4 +238,14 @@ }

access?: string[];
unpublish: string[];
}
// info passed to the auth plugin when a package is package is being published
interface AllowAccess {
name: string;
version?: string;
tag?: string;
}
interface AuthPackageAllow extends PackageAccess, AllowAccess {}
interface PackageList {

@@ -224,2 +280,3 @@ [key: string]: PackageAccess;

// FUTURE: rename to Notification
interface Notifications {

@@ -234,21 +291,3 @@ method: string;

interface ConfigFile {
storage: string;
plugins: string;
self_path: string;
packages: PackageList;
uplinks: UpLinksConfList;
logs: LoggerConf[];
web: WebConf;
auth: AuthConf;
publish?: PublishOptions;
url_prefix?: string;
listen?: ListenAddress;
https?: HttpsConf;
http_proxy?: string;
https_proxy?: string;
no_proxy?: string;
max_body_size?: string;
notifications: Notifications;
}
type Notification = Notifications;

@@ -269,3 +308,2 @@ interface Token {

type SyncReturn = Error | void;
type IPackageStorage = ILocalPackageManager | void;

@@ -294,12 +332,2 @@ type IPackageStorageManager = ILocalPackageManager;

}
interface WebConf {
enable?: boolean;
title?: string;
logo?: string;
favicon?: string;
gravatar?: boolean;
sort_packages?: string;
}
interface HttpsConfKeyCert {

@@ -351,13 +379,37 @@ key: string;

interface Config {
user_agent: string;
server_id: any;
interface ConfigFlags {
token?: boolean;
search?: boolean;
changePassword?: boolean;
}
export type RateLimit = {
windowMs: number;
max: number;
};
export type ServerSettingsConf = {
// express-rate-limit settings
rateLimit: RateLimit;
keepAliveTimeout?: number;
// force http2 if https is defined
http2?: boolean;
};
type URLPrefix = {
// if is false, it would be relative by default
absolute: boolean;
// base path
// eg: absolute: true, https://somedomain.com/xxx/
// eg: absolute: false, /xxx/ (default) if url_prefix is an string instead an object
basePath: string;
};
interface ConfigYaml {
_debug?: boolean;
storage?: string | void;
plugins?: string | void;
secret: string;
self_path: string;
packages: PackageList;
uplinks: UpLinksConfList;
// @deprecated in favor of log
logs?: LoggerConf[];
log?: LoggerConf[];
web?: WebConf;

@@ -367,3 +419,2 @@ auth?: AuthConf;

publish?: PublishOptions;
url_prefix?: string;
store?: any;

@@ -373,2 +424,3 @@ listen?: ListenAddress;

http_proxy?: string;
plugins?: string | void;
https_proxy?: string;

@@ -378,4 +430,19 @@ no_proxy?: string;

notifications?: Notifications;
notify?: Notifications | Notifications[];
middlewares?: any;
filters?: any;
url_prefix?: string;
server?: ServerSettingsConf;
flags?: ConfigFlags;
}
interface ConfigRuntime extends ConfigYaml {
config_path: string;
}
interface Config extends ConfigYaml, ConfigRuntime {
user_agent: string;
server_id: string;
secret: string;
// deprecated
checkSecretKey(token: string): string;

@@ -390,3 +457,3 @@ getMatchedPackagesSpec(storage: string): PackageAccess | void;

interface ITokenActions {
export interface ITokenActions {
saveToken(token: Token): Promise<any>;

@@ -422,6 +489,11 @@ deleteToken(user: string, tokenKey: string): Promise<any>;

get(callback: Callback): void;
init(): Promise<void>;
getSecret(): Promise<string>;
setSecret(secret: string): Promise<any>;
getPackageStorage(packageInfo: string): IPackageStorage;
search(onPackage: onSearchPackage, onEnd: onEndSearchPackage, validateName: onValidatePackage): void;
search(
onPackage: onSearchPackage,
onEnd: onEndSearchPackage,
validateName: onValidatePackage
): void;
}

@@ -460,3 +532,9 @@

interface StoragePackageActions extends TarballActions {
addVersion(name: string, version: string, metadata: Version, tag: StringValue, callback: Callback): void;
addVersion(
name: string,
version: string,
metadata: Version,
tag: StringValue,
callback: Callback
): void;
mergeTags(name: string, tags: MergeTags, callback: Callback): void;

@@ -477,13 +555,6 @@ removePackage(name: string, callback: Callback): void;

interface IBasicStorage<T> extends StoragePackageActions {
addPackage(name: string, info: Package, callback: Callback): void;
updateVersions(name: string, packageInfo: Package, callback: Callback): void;
getPackageMetadata(name: string, callback: Callback): void;
search(startKey: string, options: any): IReadTarball;
getSecret(config: T & Config): Promise<any>;
}
// @deprecated use IBasicAuth from @verdaccio/auth
interface IBasicAuth<T> {
config: T & Config;
aesEncrypt(buf: Buffer): Buffer;
aesEncrypt(buf: string): string;
authenticate(user: string, password: string, cb: Callback): void;

@@ -495,4 +566,4 @@ changePassword(user: string, password: string, newPassword: string, cb: Callback): void;

class Plugin<T> {
constructor(config: T, options: PluginOptions<T>);
export interface Plugin<T> {
new (config: T, options: PluginOptions<T>): T;
}

@@ -511,9 +582,4 @@

interface AllowAccess {
name: string;
version?: string;
tag?: string;
}
// FIXME: error should be export type `VerdaccioError = HttpError & { code: number };` instead of AuthError
// 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)

@@ -538,11 +604,20 @@ interface HttpError extends Error {

changePassword?(user: string, password: string, newPassword: string, cb: AuthCallback): void;
allow_publish?(user: RemoteUser, pkg: T & PackageAccess, cb: AuthAccessCallback): void;
allow_publish?(user: RemoteUser, pkg: T & AuthPackageAllow, cb: AuthAccessCallback): void;
allow_access?(user: RemoteUser, pkg: T & PackageAccess, cb: AuthAccessCallback): void;
allow_unpublish?(user: RemoteUser, pkg: T & PackageAccess, cb: AuthAccessCallback): void;
allow_publish?(user: RemoteUser, pkg: AllowAccess & PackageAccess, cb: AuthAccessCallback): void;
allow_unpublish?(user: RemoteUser, pkg: T & AuthPackageAllow, cb: AuthAccessCallback): void;
allow_publish?(
user: RemoteUser,
pkg: AllowAccess & PackageAccess,
cb: AuthAccessCallback
): void;
allow_access?(user: RemoteUser, pkg: AllowAccess & PackageAccess, cb: AuthAccessCallback): void;
allow_unpublish?(user: RemoteUser, pkg: AllowAccess & PackageAccess, cb: AuthAccessCallback): void;
allow_unpublish?(
user: RemoteUser,
pkg: AllowAccess & PackageAccess,
cb: AuthAccessCallback
): void;
apiJWTmiddleware?(helpers: any): Function;
}
// @deprecated use @verdaccio/server
interface IPluginMiddleware<T> extends IPlugin<T> {

@@ -549,0 +624,0 @@ register_middlewares(app: any, auth: IBasicAuth<T>, storage: IStorageManager<T>): void;

{
"name": "@verdaccio/types",
"version": "10.0.0",
"version": "11.0.0-6-next.7",
"description": "verdaccio types definitions",
"keywords": [
"verdaccio",
"typescript",
"types"
"private",
"package",
"repository",
"registry",
"enterprise",
"modules",
"proxy",
"server",
"verdaccio"
],

@@ -13,9 +19,13 @@ "author": "Juan Picado <juanpicado19@gmail.com>",

"homepage": "https://verdaccio.org",
"engines": {
"node": ">=10",
"npm": ">=6"
},
"repository": {
"type": "git",
"url": "https://github.com/verdaccio/monorepo",
"directory": "core/types"
"type": "https",
"url": "https://github.com/verdaccio/verdaccio",
"directory": "packages/core/types"
},
"bugs": {
"url": "https://github.com/verdaccio/monorepo/issues"
"url": "https://github.com/verdaccio/verdaccio/issues"
},

@@ -28,11 +38,12 @@ "publishConfig": {

"scripts": {
"lint": "eslint \"**/*.{js,ts}\"",
"lint:stage": "lint-staged",
"test": "tsc --noEmit"
"test": "exit 0",
"build": "exit 0"
},
"devDependencies": {
"@types/node": "14.6.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/verdaccio"
},
"gitHead": "e33b0509f6dcb10c9b893fdcd3846ca69eca0bd9"
}
}

@@ -6,2 +6,3 @@ # Typescript types for Verdaccio

# Typescript
For usage with the library, the `tsconfig.json` should looks like this.

@@ -48,3 +49,1 @@

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