From 36d446250446fa3b960b994f9d5381360a975bfd Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 19 Mar 2024 19:39:54 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/tapbundle.classes.tap.ts | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 5d98f00..9fc67a9 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/tapbundle', - version: '5.0.21', + version: '5.0.22', description: 'tap bundled for tapbuffer' } diff --git a/ts/tapbundle.classes.tap.ts b/ts/tapbundle.classes.tap.ts index 5441b20..3f5cc07 100644 --- a/ts/tapbundle.classes.tap.ts +++ b/ts/tapbundle.classes.tap.ts @@ -143,6 +143,17 @@ export class Tap { } } + public async stopForcefully(codeArg = 0, directArg = false) { + console.log(`tap stopping forcefully! Code: ${codeArg} / Direct: ${directArg}`); + if (directArg) { + process.exit(codeArg); + } else { + setTimeout(() => { + process.exit(codeArg); + }, 10) + } + } + /** * handle errors */