@typescript/server-replay
Advanced tools
Comparing version 0.2.10 to 0.2.11
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/microsoft/typescript-server-replay#readme", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "description": "Replay server requests from a file", |
@@ -161,2 +161,12 @@ const sh = require("@typescript/server-harness"); | ||
// On Linux, it's idiomatic to shut down your child processes when you receive SIGTERM. | ||
// This helps us ensure clean teardown during lab runs. | ||
// NB: As of Node 16, SIGTERM never fires on Windows. | ||
process.once("SIGTERM", async () => { | ||
exitRequested = true; // Shouldn't matter, but might as well | ||
await server.kill(); | ||
// This is a sneaky way to invoke node's default SIGTERM handler | ||
process.kill(process.pid, "SIGTERM"); | ||
}); | ||
server.on("close", (code, signal) => { | ||
@@ -163,0 +173,0 @@ if (!unattended || !exitRequested || code || signal) { |
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
15304
211