Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webiny Telemetry - Use wts-client NPM Package #4183

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/telemetry/cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { globalConfig } = require("@webiny/global-config");
const isCI = require("is-ci");
const { WTS } = require("wts/src/node");
const { WTS } = require("wts-client/node");
const baseSendEvent = require("./sendEvent");

const sendEvent = async ({ event, user, version, properties }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/telemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"is-ci": "3.0.0",
"jsesc": "^3.0.2",
"strip-ansi": "^6.0.1",
"wts": "https://github.com/webiny/wts#51fd5a89a8d12b27def57ff99a71e071e9085e6c"
"wts-client": "^1.0.1"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/telemetry/react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const baseSendEvent = require("./sendEvent");
const { WTS } = require("wts/src/admin");
const { WTS } = require("wts-client/admin");

const sendEvent = async (event, properties = {}) => {
const shouldSend = process.env.REACT_APP_WEBINY_TELEMETRY !== "false";
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18930,7 +18930,7 @@ __metadata:
is-ci: 3.0.0
jsesc: ^3.0.2
strip-ansi: ^6.0.1
wts: "https://github.com/webiny/wts#51fd5a89a8d12b27def57ff99a71e071e9085e6c"
wts-client: ^1.0.1
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -41570,14 +41570,14 @@ __metadata:
languageName: node
linkType: hard

"wts@https://github.com/webiny/wts#51fd5a89a8d12b27def57ff99a71e071e9085e6c":
version: 2.0.0
resolution: "wts@https://github.com/webiny/wts.git#commit=51fd5a89a8d12b27def57ff99a71e071e9085e6c"
"wts-client@npm:^1.0.1":
version: 1.0.1
resolution: "wts-client@npm:1.0.1"
dependencies:
btoa: ^1.2.1
js-cookie: ^2.2.1
node-fetch: ^2.6.1
checksum: d807a0ad235419c93662eb3da92250677c9baf5a93b3976784f0db6aca63ada465fb1e1a6716f1cbea7e069fcf43a2f9a175d84b860b78af52f54413d0f26a8a
checksum: 252b3f371dac0142df9e8cd1f6906fa557df46d9a124302fa1585703231309a8c6de257ad1ff4fa83aa9ccbcfc2f33be4764e12dfc2d0fef6e08be5fe17caa9e
languageName: node
linkType: hard

Expand Down