@todesktop/runtime
Advanced tools
Comparing version 1.6.3-13 to 1.6.3-14
@@ -22,7 +22,14 @@ "use strict"; | ||
const buildId = (0, getPackageJson_1.default)().tdBuildId; | ||
const updateYamlPath = path.join(process.resourcesPath, "app-update.yml"); | ||
const updateYaml = yield readFlatYaml(updateYamlPath); | ||
const autoUpdateUrl = updateYaml.url || ""; | ||
const isDev = autoUpdateUrl.includes("todesktop-builds-dev.") || | ||
autoUpdateUrl.includes("dl-dev."); | ||
let isDev; | ||
try { | ||
const updateYamlPath = path.join(process.resourcesPath, "app-update.yml"); | ||
const updateYaml = yield readFlatYaml(updateYamlPath); | ||
const autoUpdateUrl = updateYaml.url || ""; | ||
isDev = | ||
autoUpdateUrl.includes("todesktop-builds-dev.") || | ||
autoUpdateUrl.includes("dl-dev."); | ||
} | ||
catch (e) { | ||
isDev = false; | ||
} | ||
if (isDev) { | ||
@@ -29,0 +36,0 @@ logger.debug("Running in dev mode, use api-dev server"); |
@@ -86,3 +86,3 @@ "use strict"; | ||
function callApi(event, data = {}) { | ||
sendHttpRequest(config.apiUrl, Object.assign({ event }, data)).catch((e) => { | ||
sendHttpRequest(config.apiUrl, Object.assign({ event, pid: process.pid }, data)).catch((e) => { | ||
console.error("Smoke Test API:", e); | ||
@@ -89,0 +89,0 @@ }); |
@@ -1,1 +0,1 @@ | ||
export declare const CLIENT_VERSION = "1.6.3-13"; | ||
export declare const CLIENT_VERSION = "1.6.3-14"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CLIENT_VERSION = void 0; | ||
exports.CLIENT_VERSION = "1.6.3-13"; | ||
exports.CLIENT_VERSION = "1.6.3-14"; |
@@ -7,3 +7,3 @@ { | ||
"name": "@todesktop/runtime", | ||
"version": "1.6.3-13", | ||
"version": "1.6.3-14", | ||
"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
104468
1771