@webiny/telemetry 6.4.1-beta.0 → 6.4.2-beta.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/cli.js +8 -3
- package/package.json +3 -3
package/cli.js
CHANGED
|
@@ -11,9 +11,14 @@ export const sendEvent = async ({ event, version, properties }) => {
|
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
|
|
14
|
+
// Use the canonical Webiny machine id — the top-level `id` field in
|
|
15
|
+
// `~/.webiny/config`, owned by @webiny/global-config. The admin app
|
|
16
|
+
// (REACT_APP_WEBINY_TELEMETRY_USER_ID) and the website install/finish alias
|
|
17
|
+
// both key off this same id, so passing it here keeps CLI, admin, and
|
|
18
|
+
// website events on a single PostHog person. Without it, the WTS client
|
|
19
|
+
// falls back to its own `user.id` field, which is a different UUID and
|
|
20
|
+
// fragments funnels across surfaces.
|
|
21
|
+
const wts = new WTS({ source: "cli", distinctId: globalConfig.get("id") });
|
|
17
22
|
|
|
18
23
|
const wcpProperties = {};
|
|
19
24
|
const [wcpOrgId, wcpProjectId] = getWcpOrgProjectId();
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/telemetry",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.2-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@webiny/global-config": "6.4.
|
|
8
|
-
"@webiny/wts-client": "3.
|
|
7
|
+
"@webiny/global-config": "6.4.2-beta.0",
|
|
8
|
+
"@webiny/wts-client": "3.1.4",
|
|
9
9
|
"ci-info": "4.4.0",
|
|
10
10
|
"jsesc": "3.1.0",
|
|
11
11
|
"load-json-file": "7.0.1",
|