@jsenv/server
Advanced tools
Comparing version 12.5.6 to 12.5.7
{ | ||
"name": "@jsenv/server", | ||
"version": "12.5.6", | ||
"version": "12.5.7", | ||
"description": "Write your Node.js server using pure functions", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -731,2 +731,9 @@ import http from "node:http" | ||
const addEffect = (callback) => { | ||
const cleanup = callback() | ||
if (typeof cleanup === "function") { | ||
stopCallbackList.add(cleanup) | ||
} | ||
} | ||
return { | ||
@@ -738,2 +745,3 @@ getStatus: () => status, | ||
stoppedPromise, | ||
addEffect, | ||
} | ||
@@ -740,0 +748,0 @@ } |
135122
4220