@todesktop/runtime
Advanced tools
Comparing version 1.6.1-0 to 1.6.1-1
@@ -17,4 +17,6 @@ "use strict"; | ||
function getCallStack() { | ||
const stackLines = new Error().stack.split("\n").map((line) => line.trim()); | ||
return stackLines.slice(2).join("\n"); | ||
const stackLines = new Error().stack | ||
.split("\n") | ||
.map((line) => line.trim().replace(/^at /, " - ")); | ||
return stackLines.slice(3).join("\n"); | ||
} | ||
@@ -114,3 +116,3 @@ function sendHttpRequest(url, body) { | ||
const originalProcessExit = process.exit; | ||
process.exit = function patchedProcessExit(code) { | ||
process.exit = function patchedProcessExit(code = 0) { | ||
callApi("processExit", { code, stack: getCallStack() }); | ||
@@ -117,0 +119,0 @@ return originalProcessExit(code); |
@@ -1,1 +0,1 @@ | ||
export declare const CLIENT_VERSION = "1.6.1-0"; | ||
export declare const CLIENT_VERSION = "1.6.1-1"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CLIENT_VERSION = void 0; | ||
exports.CLIENT_VERSION = "1.6.1-0"; | ||
exports.CLIENT_VERSION = "1.6.1-1"; |
@@ -7,3 +7,3 @@ { | ||
"name": "@todesktop/runtime", | ||
"version": "1.6.1-0", | ||
"version": "1.6.1-1", | ||
"license": "MIT", | ||
@@ -10,0 +10,0 @@ "author": "ToDesktop <hi@todesktop.com> (https://www.todesktop.com/)", |
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
79985
1308