@webiny/telemetry 6.0.0-rc.3 → 6.0.0-rc.5

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.
Files changed (3) hide show
  1. package/cli.js +2 -2
  2. package/package.json +3 -3
  3. package/react.js +2 -2
package/cli.js CHANGED
@@ -38,8 +38,8 @@ export const sendEvent = async ({ event, user, version, properties }) => {
38
38
  };
39
39
 
40
40
  const getWcpOrgProjectId = () => {
41
- // In CLI, WCP project ID is stored in the `WCP_PROJECT_ID` environment variable.
42
- const id = process.env.WCP_PROJECT_ID;
41
+ // In CLI, project ID is stored in the `WEBINY_PROJECT_ID` or `WCP_PROJECT_ID` environment variable.
42
+ const id = process.env.WEBINY_PROJECT_ID || process.env.WCP_PROJECT_ID;
43
43
  if (typeof id === "string") {
44
44
  return id.split("/");
45
45
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@webiny/telemetry",
3
- "version": "6.0.0-rc.3",
3
+ "version": "6.0.0-rc.5",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
- "@webiny/global-config": "6.0.0-rc.3",
7
+ "@webiny/global-config": "6.0.0-rc.5",
8
8
  "ci-info": "4.4.0",
9
9
  "jsesc": "3.1.0",
10
10
  "load-json-file": "7.0.1",
@@ -15,5 +15,5 @@
15
15
  "access": "public",
16
16
  "directory": "."
17
17
  },
18
- "gitHead": "228fe25e1a17f248d566bce1c33d11c291955513"
18
+ "gitHead": "8f9b60f1193682a21e037e6f771b19f1dfd65045"
19
19
  }
package/react.js CHANGED
@@ -31,8 +31,8 @@ export const sendEvent = async (event, properties = {}) => {
31
31
  };
32
32
 
33
33
  const getWcpOrgProjectId = () => {
34
- // In React applications, WCP project ID is stored in the `REACT_APP_WCP_PROJECT_ID` environment variable.
35
- const id = process.env.REACT_APP_WCP_PROJECT_ID;
34
+ // In React applications, project ID is stored in the `REACT_APP_WEBINY_PROJECT_ID` or `REACT_APP_WCP_PROJECT_ID` environment variable.
35
+ const id = process.env.REACT_APP_WEBINY_PROJECT_ID || process.env.REACT_APP_WCP_PROJECT_ID;
36
36
  if (typeof id === "string") {
37
37
  return id.split("/");
38
38
  }