ultimate.mvc
Advanced tools
Comparing version 1.1.24 to 1.1.25
@@ -31,3 +31,5 @@ import { createRequire } from 'module' | ||
function exitHandler(options, exitCode) { | ||
async function exitHandler(options, exitCode) { | ||
if (options.cleanup){ | ||
@@ -41,4 +43,5 @@ debugSys.log('Closing Application'); | ||
if (options.exit){ | ||
appView.close(); | ||
process.exit(); | ||
await webService.close(); | ||
await appView.close(); | ||
await process.exit(); | ||
} | ||
@@ -45,0 +48,0 @@ } |
@@ -24,5 +24,16 @@ import md5 from 'md5' | ||
var __public_ledger; | ||
var closeCallbacks=[]; | ||
export default class webService { | ||
static onClose(callback){ | ||
closeCallbacks.push(callback); | ||
} | ||
static async close(closeCode){ | ||
for await(let callback of closeCallbacks){ | ||
await callback(closeCode); | ||
} | ||
} | ||
static getHttpServer() { | ||
@@ -29,0 +40,0 @@ return this.app_server; |
{ | ||
"name": "ultimate.mvc", | ||
"version": "1.1.24", | ||
"version": "1.1.25", | ||
"description": "It is node js MVC for creating interactive chromium based cross-platform desktop-app and web-app", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
14249691
53150