Notes/src/services/app_info.ts

22 lines
614 B
TypeScript
Raw Normal View History

2017-11-21 00:25:53 -05:00
"use strict";
import build from "./build.js";
import packageJson from "../../package.json.js";
import dataDir from "./data_dir.js";
2017-12-03 22:29:23 -05:00
2023-12-30 00:34:46 +01:00
const APP_DB_VERSION = 228;
const SYNC_VERSION = 32;
2019-07-20 14:27:36 +02:00
const CLIPPER_PROTOCOL_VERSION = "1.0";
2017-11-21 00:25:53 -05:00
2024-02-17 19:42:30 +02:00
export = {
2018-04-04 23:04:31 -04:00
appVersion: packageJson.version,
2018-04-02 21:47:46 -04:00
dbVersion: APP_DB_VERSION,
2023-11-27 23:12:22 +01:00
nodeVersion: process.version,
syncVersion: SYNC_VERSION,
2018-04-04 23:04:31 -04:00
buildDate: build.buildDate,
buildRevision: build.buildRevision,
2024-02-17 19:09:36 +02:00
dataDirectory: dataDir.TRILIUM_DATA_DIR,
2022-01-31 21:25:18 +01:00
clipperProtocolVersion: CLIPPER_PROTOCOL_VERSION,
2022-03-07 22:57:48 +01:00
utcDateTime: new Date().toISOString() // for timezone inference
2020-06-21 23:41:51 +02:00
};