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

@dkx/http-middleware-mount

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dkx/http-middleware-mount - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

8

lib/mount-middleware.js

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

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