1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00

Merge branch 'fix-1163' of github.com:verdaccio/verdaccio into fix-1163

This commit is contained in:
Juan Picado @jotadeveloper 2019-02-18 07:59:24 +01:00
commit 5f9cdd2cfa
No known key found for this signature in database
GPG Key ID: 18AC54485952D158
6 changed files with 39 additions and 5 deletions

18
.github/main.workflow vendored Normal file

@ -0,0 +1,18 @@
workflow "New workflow" {
on = "push"
resolves = [
"Docker build health check",
"Test Publish Verdaccio",
]
}
action "Docker build health check" {
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108"
args = "build ."
}
action "Test Publish Verdaccio" {
uses = "verdaccio/github-actions/publish@v0.1.0"
needs = ["Docker build health check"]
args = "-ddd"
}

4
.vscode/launch.json vendored

@ -10,6 +10,7 @@
"name": "CLI Babel Registry",
"stopOnEntry": false,
"program": "${workspaceFolder}/debug/bootstrap.js",
"args": ["-l", "0.0.0.0:4873"],
"env": {
"BABEL_ENV": "registry"
},
@ -71,7 +72,8 @@
"name": "Verdaccio Compiled",
"preLaunchTask": "npm: code:build",
"program": "${workspaceRoot}/bin/verdaccio",
"args": ["-l", "0.0.0.0:4873"],
"console": "integratedTerminal"
}
]
}
}

@ -67,6 +67,15 @@ All notable changes to this project will be documented in this file. See [standa
* verdaccio update notification on CLI ([#988](https://github.com/verdaccio/verdaccio/issues/988)) ([#998](https://github.com/verdaccio/verdaccio/issues/998)) ([bc04703](https://github.com/verdaccio/verdaccio/commit/bc04703))
<a name="3.11.4"></a>
## [3.11.4](https://github.com/verdaccio/verdaccio/compare/v3.11.3...v3.11.4) (2019-02-11)
### Bug Fixes
* update dependencies due to security vulnerabilities ([f6f014a](https://github.com/verdaccio/verdaccio/commit/f6f014a))
<a name="3.11.3"></a>
## [3.11.3](https://github.com/verdaccio/verdaccio/compare/v3.11.2...v3.11.3) (2019-02-07)

@ -19,7 +19,7 @@
"@verdaccio/local-storage": "2.0.0-beta.1",
"@verdaccio/streams": "2.0.0-beta.0",
"JSONStream": "1.3.4",
"async": "2.6.1",
"async": "3.0.1-0",
"body-parser": "1.18.3",
"bunyan": "1.8.12",
"chalk": "2.4.1",
@ -176,9 +176,6 @@
"npm": ">=3"
},
"preferGlobal": true,
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && commitlint -e $GIT_PARAMS"

@ -223,6 +223,14 @@ class Auth implements IAuth {
}
apiJWTmiddleware() {
const plugins = this.plugins.slice(0);
const helpers = { createAnonymousRemoteUser, createRemoteUser };
for (const plugin of plugins) {
if (plugin.apiJWTmiddleware) {
return plugin.apiJWTmiddleware(helpers);
}
}
return (req: $RequestExtend, res: $Response, _next: NextFunction) => {
req.pause();

BIN
yarn.lock

Binary file not shown.