edge-runtime
Advanced tools
Comparing version 2.5.9 to 2.5.10
@@ -10,2 +10,3 @@ "use strict"; | ||
const http_1 = __importDefault(require("http")); | ||
const util_1 = require("util"); | ||
/** | ||
@@ -22,14 +23,6 @@ * This helper will create a handler based on the given options and then | ||
const url = await (0, async_listen_1.default)(server, options); | ||
const closeServer = (0, util_1.promisify)(server.close.bind(server)); | ||
return { | ||
url: String(url), | ||
close: async () => { | ||
await waitUntil(); | ||
await new Promise((resolve, reject) => { | ||
return server.close((err) => { | ||
if (err) | ||
reject(err); | ||
resolve(); | ||
}); | ||
}); | ||
}, | ||
close: () => Promise.all([waitUntil(), closeServer()]).then(() => void 0), | ||
waitUntil, | ||
@@ -36,0 +29,0 @@ }; |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/runtime", | ||
"version": "2.5.9", | ||
"version": "2.5.10", | ||
"main": "dist/index.js", | ||
@@ -8,0 +8,0 @@ "bin": { |
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
78611
650