@dkx/http-middleware-mount
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -22,9 +22,11 @@ "use strict"; | ||
} | ||
const innerState = Object.assign({}, state); | ||
const newReq = forkRequest(req, newPath); | ||
const newRes = forkResponse(res); | ||
res = yield app.middleware(newReq, newRes, innerState); | ||
state.mount = { | ||
path, | ||
innerState, | ||
url: newPath, | ||
}; | ||
const newReq = forkRequest(req, newPath); | ||
const newRes = forkResponse(res); | ||
res = yield app.middleware(newReq, newRes, state); | ||
return next(res); | ||
@@ -31,0 +33,0 @@ }); |
{ | ||
"name": "@dkx/http-middleware-mount", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Mount middleware for @dkx/http-server", | ||
@@ -11,13 +11,13 @@ "repository": "git@gitlab.com:dkx/http/middlewares/mount.git", | ||
"dependencies": { | ||
"@dkx/http-server": "^1.3.2" | ||
"@dkx/http-server": "^1.5.0" | ||
}, | ||
"devDependencies": { | ||
"@dkx/http-middleware-response": "^0.3.0", | ||
"@types/chai": "^4.1.4", | ||
"@types/chai": "^4.1.6", | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.9.2", | ||
"chai": "^4.1.2", | ||
"@types/node": "^10.11.7", | ||
"chai": "^4.2.0", | ||
"mocha": "^5.2.0", | ||
"ts-node": "^7.0.1", | ||
"typescript": "^3.0.1" | ||
"typescript": "^3.1.3" | ||
}, | ||
@@ -24,0 +24,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6448
62
Updated@dkx/http-server@^1.5.0