straightforward
Advanced tools
Comparing version 4.2.1 to 4.2.2
@@ -162,3 +162,5 @@ "use strict"; | ||
} | ||
req.pipe(proxyReq); | ||
req.pipe(proxyReq).on("error", (e) => { | ||
debug("req.pipe(proxyReq) has error: " + e.message); | ||
}); | ||
}); | ||
@@ -174,3 +176,5 @@ } | ||
if (!res.writableEnded) { | ||
proxyRes.pipe(res); | ||
proxyRes.pipe(res).on("error", (e) => { | ||
debug("proxyRes.pipe(res) has error: " + e.message); | ||
}); | ||
} | ||
@@ -197,4 +201,8 @@ } | ||
if (!req.destroyed && clientSocket.writable) { | ||
serverSocket.pipe(clientSocket); | ||
clientSocket.pipe(serverSocket); | ||
serverSocket.pipe(clientSocket).on("error", (e) => { | ||
debug("serverSocket.pipe(clientSocket) has error: " + e.message); | ||
}); | ||
clientSocket.pipe(serverSocket).on("error", (e) => { | ||
debug("clientSocket.pipe(serverSocket) has error: " + e.message); | ||
}); | ||
} | ||
@@ -201,0 +209,0 @@ } |
{ | ||
"name": "straightforward", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "A straightforward forward-proxy.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
33386
835
2