Compare commits

...

2 Commits

Author SHA1 Message Date
7cd2993be0 5.0.22 2024-03-19 19:39:55 +01:00
36d4462504 fix(core): update 2024-03-19 19:39:54 +01:00
3 changed files with 13 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "@push.rocks/tapbundle",
"private": false,
"version": "5.0.21",
"version": "5.0.22",
"description": "tap bundled for tapbuffer",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/tapbundle',
version: '5.0.21',
version: '5.0.22',
description: 'tap bundled for tapbuffer'
}

View File

@ -143,6 +143,17 @@ export class Tap<T> {
}
}
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
*/