diff --git a/.github/main.workflow b/.github/main.workflow
new file mode 100644
index 000000000..66ba045e2
--- /dev/null
+++ b/.github/main.workflow
@@ -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"
+}
diff --git a/.vscode/launch.json b/.vscode/launch.json
index e8d07e068..90d61a19a 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -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"
}
]
-}
\ No newline at end of file
+}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e217fd40a..4ff65456b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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))
+
+## [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))
+
+
## [3.11.3](https://github.com/verdaccio/verdaccio/compare/v3.11.2...v3.11.3) (2019-02-07)
diff --git a/package.json b/package.json
index 3d7a56ac8..7e082d400 100644
--- a/package.json
+++ b/package.json
@@ -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"
diff --git a/src/lib/auth.js b/src/lib/auth.js
index 7694b0d4e..e046a50e9 100644
--- a/src/lib/auth.js
+++ b/src/lib/auth.js
@@ -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();
diff --git a/yarn.lock b/yarn.lock
index a74ad7e8b..5e464a94d 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1795,6 +1795,11 @@ async@2.6.1, async@^2.1.4, async@^2.5.0:
dependencies:
lodash "^4.17.10"
+async@3.0.1-0:
+ version "3.0.1-0"
+ resolved "https://registry.verdaccio.org/async/-/async-3.0.1-0.tgz#ca06713f91c3d9eea3e966ace4093f41ef89f200"
+ integrity sha512-b+lONkCWH/GCAIrU0j4m5zed5t+5dfjM2TbUSmKCagx6TZp2jQrNkGL7j1SUb0fF1yH6sKBiXC7Zid8Zj94O6A==
+
async@^1.5.2:
version "1.5.2"
resolved "https://registry.verdaccio.org/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"