MCPcopy Create free account
hub / github.com/TanStack/cli / markTelemetryNoticeSeen

Function markTelemetryNoticeSeen

packages/cli/src/telemetry-config.ts:169–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167}
168
169export async function markTelemetryNoticeSeen() {
170 const { config, configPath } = await readOrCreateTelemetryConfig(true)
171 if (!config || config.noticeVersion >= TELEMETRY_NOTICE_VERSION) {
172 return
173 }
174
175 await writeTelemetryConfigFile(configPath, {
176 ...config,
177 noticeVersion: TELEMETRY_NOTICE_VERSION,
178 })
179}
180
181export async function setTelemetryEnabled(enabled: boolean) {
182 const { config, configPath } = await readOrCreateTelemetryConfig(true)

Callers 1

createTelemetryClientFunction · 0.85

Calls 2

writeTelemetryConfigFileFunction · 0.85

Tested by

no test coverage detected