New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

micro-dev

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micro-dev - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

5

lib/listening.js

@@ -111,2 +111,7 @@ // Native

destroySockets(sockets)
// Ensure the same port when restarting server
flags.port = details.port
// Restart server
server.close(restartServer.bind(this, file, flags, watcher))

@@ -113,0 +118,0 @@ })

24

lib/log.js

@@ -94,5 +94,6 @@ // Packages

const requestIndex = ++requestCounter
const end = res.end
res.end = async (chunk, encoding) => {
res.end = (chunk, encoding, callback) => {
res.end = end

@@ -106,13 +107,14 @@ const endTime = new Date()

await logRequest({ req, start, requestIndex })
await logResponse({
res,
start,
end: requestTime,
endTime,
requestIndex,
chunk
logRequest({ req, start, requestIndex }).then(() => {
logResponse({
res,
start,
end: requestTime,
endTime,
requestIndex,
chunk
})
})
res.end(chunk, encoding)
return res.end(chunk, encoding, callback)
}

@@ -130,4 +132,4 @@ }

const { statusCode = 500, stack } = err
send(res, statusCode, stack)
return send(res, statusCode, stack)
}
}

@@ -29,3 +29,4 @@ // Packages

if (inUse) {
// Only overwrite the port when restarting
if (inUse && !restarting) {
port = open

@@ -32,0 +33,0 @@ inUse = { old, open }

{
"name": "micro-dev",
"version": "1.1.1",
"version": "1.1.2",
"files": [

@@ -58,3 +58,3 @@ "bin",

"husky": "0.14.3",
"lint-staged": "4.0.2",
"lint-staged": "4.0.3",
"prettier": "1.5.3",

@@ -61,0 +61,0 @@ "xo": "0.18.2"

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