@travetto/base
Advanced tools
Comparing version 0.0.35 to 0.0.36
@@ -22,3 +22,3 @@ { | ||
"scripts": {}, | ||
"version": "0.0.35" | ||
"version": "0.0.36" | ||
} |
import { AppEnv } from './env'; | ||
import { initStackHandler } from './stacktrace'; | ||
import { Shutdown } from './shutdown'; | ||
@@ -20,2 +21,4 @@ export function init() { | ||
}); | ||
Shutdown.register(); | ||
} |
@@ -11,2 +11,8 @@ import { EventEmitter } from 'events'; | ||
static register() { | ||
process.on('exit', Shutdown.shutdown.bind(Shutdown, 0)); | ||
process.on('SIGINT', Shutdown.shutdown.bind(Shutdown, 130)); | ||
process.on('uncaughtException', Shutdown.shutdown.bind(Shutdown, 1)); | ||
} | ||
static onShutdownPromise() { | ||
@@ -75,6 +81,2 @@ return Shutdown.shutdownPromise; | ||
} | ||
} | ||
process.on('exit', Shutdown.shutdown.bind(Shutdown, 0)); | ||
process.on('SIGINT', Shutdown.shutdown.bind(Shutdown, 130)); | ||
process.on('uncaughtException', Shutdown.shutdown.bind(Shutdown, 1)); | ||
} |
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
12113
379