formatting

This commit is contained in:
proddy
2025-03-02 15:13:06 +01:00
parent ea9b6b3e00
commit d03ab7a16f

View File

@@ -269,10 +269,10 @@ function updateMask(entity: any, de: any, dd: any) {
const old_custom_name = dd.nodes[dd_objIndex].cn; const old_custom_name = dd.nodes[dd_objIndex].cn;
console.log( console.log(
'comparing names, old (' + 'comparing names, old (' +
old_custom_name + old_custom_name +
') with new (' + ') with new (' +
new_custom_name + new_custom_name +
')' ')'
); );
if (old_custom_name !== new_custom_name) { if (old_custom_name !== new_custom_name) {
changed = true; changed = true;
@@ -367,15 +367,15 @@ function check_upgrade(version: string) {
const stable_version = version.split(',')[1]; const stable_version = version.split(',')[1];
console.log( console.log(
'latest dev version: ' + 'latest dev version: ' +
dev_version + dev_version +
', latest stable version: ' + ', latest stable version: ' +
stable_version stable_version
); );
console.log( console.log(
'Version upgrade check from version ' + 'Version upgrade check from version ' +
THIS_VERSION + THIS_VERSION +
', upgradable: ' + ', upgradable: ' +
VERSION_IS_UPGRADEABLE VERSION_IS_UPGRADEABLE
); );
data = { data = {
emsesp_version: THIS_VERSION, emsesp_version: THIS_VERSION,
@@ -5049,20 +5049,21 @@ router
}); });
// Mock GitHub API // Mock GitHub API
// https://api.github.com/repos/emsesp/EMS-ESP32/releases
router router
.get(GH_ENDPOINT_ROOT + '/tags/latest', () => { .get(GH_ENDPOINT_ROOT + '/tags/latest', () => {
const data = { const data = {
name: 'v' + LATEST_DEV_VERSION, name: 'v' + LATEST_DEV_VERSION,
published_at: new Date().toISOString() published_at: new Date().toISOString() // use todays date
}; };
console.log('returning latest development version: ', data); console.log('returning latest development version (today): ', data);
return data; return data;
}) })
.get(GH_ENDPOINT_ROOT + '/latest', () => { .get(GH_ENDPOINT_ROOT + '/latest', () => {
const data = { const data = {
name: 'v' + LATEST_STABLE_VERSION, name: 'v' + LATEST_STABLE_VERSION,
published_at: '2025-02-07T20:09:46Z' published_at: '2025-03-01T13:29:13.999Z'
}; };
console.log('returning latest stable version: ', data); console.log('returning latest stable version: ', data);
return data; return data;