@lvce-editor/about-view 4.4.0 → 4.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/aboutWorkerMain.js +26 -5
- package/package.json +1 -1
package/dist/aboutWorkerMain.js
CHANGED
@@ -1183,6 +1183,21 @@ const getDate = () => {
|
|
1183
1183
|
};
|
1184
1184
|
const productNameLong$1 = 'Lvce Editor - OSS';
|
1185
1185
|
|
1186
|
+
const Process = {
|
1187
|
+
__proto__: null,
|
1188
|
+
commit,
|
1189
|
+
date,
|
1190
|
+
getChromeVersion,
|
1191
|
+
getCommit,
|
1192
|
+
getDate,
|
1193
|
+
getElectronVersion,
|
1194
|
+
getNodeVersion,
|
1195
|
+
getV8Version,
|
1196
|
+
getVersion,
|
1197
|
+
productNameLong: productNameLong$1,
|
1198
|
+
version
|
1199
|
+
};
|
1200
|
+
|
1186
1201
|
const getDetailString = async () => {
|
1187
1202
|
const [electronVersion, nodeVersion, chromeVersion, version, commit, v8Version, date] = await Promise.all([getElectronVersion(), getNodeVersion(), getChromeVersion(), getVersion(), getCommit(), getV8Version(), getDate()]);
|
1188
1203
|
const now = Date.now();
|
@@ -1196,13 +1211,19 @@ const getBrowser = () => {
|
|
1196
1211
|
};
|
1197
1212
|
|
1198
1213
|
const getDetailStringWeb = () => {
|
1199
|
-
const
|
1200
|
-
|
1201
|
-
|
1214
|
+
const {
|
1215
|
+
version
|
1216
|
+
} = Process;
|
1217
|
+
const {
|
1218
|
+
commit
|
1219
|
+
} = Process;
|
1220
|
+
const {
|
1221
|
+
date
|
1222
|
+
} = Process;
|
1202
1223
|
const now = Date.now();
|
1203
|
-
const formattedDate = formatAboutDate(date
|
1224
|
+
const formattedDate = formatAboutDate(date, now);
|
1204
1225
|
const browser = getBrowser();
|
1205
|
-
const lines = [`Version: ${version
|
1226
|
+
const lines = [`Version: ${version}`, `Commit: ${commit}`, `Date: ${formattedDate}`, `Browser: ${browser}`];
|
1206
1227
|
return lines;
|
1207
1228
|
};
|
1208
1229
|
|