@flareapp/electron 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs +22 -4
- package/dist/main.mjs +23 -5
- package/dist/renderer.cjs +1 -1
- package/dist/renderer.mjs +1 -1
- package/package.json +3 -3
package/dist/main.cjs
CHANGED
|
@@ -34,7 +34,7 @@ let node_fs_promises = require("node:fs/promises");
|
|
|
34
34
|
let node_url = require("node:url");
|
|
35
35
|
|
|
36
36
|
//#region src/env.ts
|
|
37
|
-
const CLIENT_VERSION = typeof process !== "undefined" && true ? "2.
|
|
37
|
+
const CLIENT_VERSION = typeof process !== "undefined" && true ? "2.11.0" : "?";
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/types.ts
|
|
@@ -48,6 +48,26 @@ const DEFAULT_ELECTRON_OPTIONS = {
|
|
|
48
48
|
maxReportBytes: 1e6
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/main/deviceInfo.ts
|
|
53
|
+
/** Electron main os + runtime as normalised device info. */
|
|
54
|
+
var ElectronDeviceInfoProvider = class {
|
|
55
|
+
collect() {
|
|
56
|
+
const versions = process.versions;
|
|
57
|
+
return {
|
|
58
|
+
os: {
|
|
59
|
+
name: node_os.default.type(),
|
|
60
|
+
version: node_os.default.release()
|
|
61
|
+
},
|
|
62
|
+
runtime: {
|
|
63
|
+
name: "electron",
|
|
64
|
+
version: versions.electron
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const electronDeviceInfoProvider = new ElectronDeviceInfoProvider();
|
|
70
|
+
|
|
51
71
|
//#endregion
|
|
52
72
|
//#region src/main/collectElectron.ts
|
|
53
73
|
/**
|
|
@@ -61,13 +81,11 @@ function collectElectronAppAttributes(app) {
|
|
|
61
81
|
"service.name": app.getName(),
|
|
62
82
|
"app.version": app.getVersion(),
|
|
63
83
|
"app.packaged": app.isPackaged,
|
|
64
|
-
"process.runtime.name": "electron",
|
|
65
|
-
"process.runtime.version": versions.electron ?? "",
|
|
66
84
|
"process.versions.electron": versions.electron ?? "",
|
|
67
85
|
"process.versions.chrome": versions.chrome ?? "",
|
|
68
86
|
"process.versions.node": versions.node ?? process.version,
|
|
69
87
|
"host.arch": process.arch,
|
|
70
|
-
|
|
88
|
+
...(0, _flareapp_core.deviceInfoToAttributes)(electronDeviceInfoProvider.collect())
|
|
71
89
|
};
|
|
72
90
|
if (app.isReady()) try {
|
|
73
91
|
attrs["app.locale"] = app.getLocale();
|
package/dist/main.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { app, ipcMain } from "electron";
|
|
2
|
-
import { Api, DEFAULT_URL_DENYLIST, Flare, FrameworkName, GlobalScopeProvider, GlobalScopeProvider as GlobalScopeProvider$1, Logger, NullFileReader, Scope, USER_IDENTITY_KEYS, convertToError, redactUrlQuery, resolveDenylist, userIdentityAttributes } from "@flareapp/core";
|
|
2
|
+
import { Api, DEFAULT_URL_DENYLIST, Flare, FrameworkName, GlobalScopeProvider, GlobalScopeProvider as GlobalScopeProvider$1, Logger, NullFileReader, Scope, USER_IDENTITY_KEYS, convertToError, deviceInfoToAttributes, redactUrlQuery, resolveDenylist, userIdentityAttributes } from "@flareapp/core";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import { readFile } from "node:fs/promises";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
|
|
7
7
|
//#region src/env.ts
|
|
8
|
-
const CLIENT_VERSION = typeof process !== "undefined" && true ? "2.
|
|
8
|
+
const CLIENT_VERSION = typeof process !== "undefined" && true ? "2.11.0" : "?";
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/types.ts
|
|
@@ -19,6 +19,26 @@ const DEFAULT_ELECTRON_OPTIONS = {
|
|
|
19
19
|
maxReportBytes: 1e6
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/main/deviceInfo.ts
|
|
24
|
+
/** Electron main os + runtime as normalised device info. */
|
|
25
|
+
var ElectronDeviceInfoProvider = class {
|
|
26
|
+
collect() {
|
|
27
|
+
const versions = process.versions;
|
|
28
|
+
return {
|
|
29
|
+
os: {
|
|
30
|
+
name: os.type(),
|
|
31
|
+
version: os.release()
|
|
32
|
+
},
|
|
33
|
+
runtime: {
|
|
34
|
+
name: "electron",
|
|
35
|
+
version: versions.electron
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const electronDeviceInfoProvider = new ElectronDeviceInfoProvider();
|
|
41
|
+
|
|
22
42
|
//#endregion
|
|
23
43
|
//#region src/main/collectElectron.ts
|
|
24
44
|
/**
|
|
@@ -32,13 +52,11 @@ function collectElectronAppAttributes(app) {
|
|
|
32
52
|
"service.name": app.getName(),
|
|
33
53
|
"app.version": app.getVersion(),
|
|
34
54
|
"app.packaged": app.isPackaged,
|
|
35
|
-
"process.runtime.name": "electron",
|
|
36
|
-
"process.runtime.version": versions.electron ?? "",
|
|
37
55
|
"process.versions.electron": versions.electron ?? "",
|
|
38
56
|
"process.versions.chrome": versions.chrome ?? "",
|
|
39
57
|
"process.versions.node": versions.node ?? process.version,
|
|
40
58
|
"host.arch": process.arch,
|
|
41
|
-
|
|
59
|
+
...deviceInfoToAttributes(electronDeviceInfoProvider.collect())
|
|
42
60
|
};
|
|
43
61
|
if (app.isReady()) try {
|
|
44
62
|
attrs["app.locale"] = app.getLocale();
|
package/dist/renderer.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const FLARE_BRIDGE_KEY = "__flare";
|
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/env.ts
|
|
11
|
-
const CLIENT_VERSION = typeof process !== "undefined" && true ? "2.
|
|
11
|
+
const CLIENT_VERSION = typeof process !== "undefined" && true ? "2.11.0" : "?";
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/renderer/RendererFlare.ts
|
package/dist/renderer.mjs
CHANGED
|
@@ -7,7 +7,7 @@ const FLARE_BRIDGE_KEY = "__flare";
|
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/env.ts
|
|
10
|
-
const CLIENT_VERSION = typeof process !== "undefined" && true ? "2.
|
|
10
|
+
const CLIENT_VERSION = typeof process !== "undefined" && true ? "2.11.0" : "?";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/renderer/RendererFlare.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flareapp/electron",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "Electron SDK for flareapp.io",
|
|
5
5
|
"homepage": "https://flareapp.io",
|
|
6
6
|
"bugs": {
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"release": "release-it"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@flareapp/core": "2.
|
|
69
|
-
"@flareapp/js": "2.
|
|
68
|
+
"@flareapp/core": "2.11.0",
|
|
69
|
+
"@flareapp/js": "2.11.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"electron": ">=35"
|