@theia/telemetry 1.77.0-next.0 → 1.77.0-next.101
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/lib/browser/browser-telemetry-service.d.ts +4 -3
- package/lib/browser/browser-telemetry-service.d.ts.map +1 -1
- package/lib/browser/browser-telemetry-service.js +26 -33
- package/lib/browser/browser-telemetry-service.js.map +1 -1
- package/lib/browser/browser-telemetry-service.spec.js +48 -50
- package/lib/browser/browser-telemetry-service.spec.js.map +1 -1
- package/lib/browser/index.d.ts +1 -1
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +1 -4
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/telemetry-frontend-module.js +15 -17
- package/lib/browser/telemetry-frontend-module.js.map +1 -1
- package/lib/browser-only/browser-only-telemetry-service.d.ts +2 -1
- package/lib/browser-only/browser-only-telemetry-service.d.ts.map +1 -1
- package/lib/browser-only/browser-only-telemetry-service.js +5 -8
- package/lib/browser-only/browser-only-telemetry-service.js.map +1 -1
- package/lib/browser-only/browser-only-telemetry-service.spec.js +16 -18
- package/lib/browser-only/browser-only-telemetry-service.spec.js.map +1 -1
- package/lib/browser-only/telemetry-frontend-only-module.js +8 -10
- package/lib/browser-only/telemetry-frontend-only-module.js.map +1 -1
- package/lib/common/index.d.ts +6 -6
- package/lib/common/index.d.ts.map +1 -1
- package/lib/common/index.js +6 -9
- package/lib/common/index.js.map +1 -1
- package/lib/common/telemetry-consent-provider.d.ts +2 -2
- package/lib/common/telemetry-consent-provider.d.ts.map +1 -1
- package/lib/common/telemetry-consent-provider.js +18 -25
- package/lib/common/telemetry-consent-provider.js.map +1 -1
- package/lib/common/telemetry-consent-provider.spec.js +23 -25
- package/lib/common/telemetry-consent-provider.spec.js.map +1 -1
- package/lib/common/telemetry-preferences.d.ts +1 -1
- package/lib/common/telemetry-preferences.d.ts.map +1 -1
- package/lib/common/telemetry-preferences.js +27 -32
- package/lib/common/telemetry-preferences.js.map +1 -1
- package/lib/common/telemetry-preferences.spec.js +9 -11
- package/lib/common/telemetry-preferences.spec.js.map +1 -1
- package/lib/common/telemetry-protocol.d.ts +1 -2
- package/lib/common/telemetry-protocol.d.ts.map +1 -1
- package/lib/common/telemetry-protocol.js +18 -27
- package/lib/common/telemetry-protocol.js.map +1 -1
- package/lib/common/telemetry-protocol.spec.d.ts +2 -0
- package/lib/common/telemetry-protocol.spec.d.ts.map +1 -0
- package/lib/common/telemetry-protocol.spec.js +34 -0
- package/lib/common/telemetry-protocol.spec.js.map +1 -0
- package/lib/common/telemetry-service.d.ts +1 -18
- package/lib/common/telemetry-service.d.ts.map +1 -1
- package/lib/common/telemetry-service.js +1 -43
- package/lib/common/telemetry-service.js.map +1 -1
- package/lib/common/telemetry-service.spec.js +2 -92
- package/lib/common/telemetry-service.spec.js.map +1 -1
- package/lib/common/telemetry-topic.js +4 -10
- package/lib/common/telemetry-topic.js.map +1 -1
- package/lib/common/telemetry-topic.spec.js +19 -21
- package/lib/common/telemetry-topic.spec.js.map +1 -1
- package/lib/common/telemetry-types.d.ts +17 -0
- package/lib/common/telemetry-types.d.ts.map +1 -1
- package/lib/common/telemetry-types.js +40 -8
- package/lib/common/telemetry-types.js.map +1 -1
- package/lib/common/telemetry-types.spec.js +85 -7
- package/lib/common/telemetry-types.spec.js.map +1 -1
- package/lib/common/test/recording-logger.js +2 -6
- package/lib/common/test/recording-logger.js.map +1 -1
- package/lib/node/index.d.ts +2 -2
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/index.js +2 -5
- package/lib/node/index.js.map +1 -1
- package/lib/node/telemetry-backend-module.js +18 -20
- package/lib/node/telemetry-backend-module.js.map +1 -1
- package/lib/node/telemetry-service-impl.d.ts +6 -5
- package/lib/node/telemetry-service-impl.d.ts.map +1 -1
- package/lib/node/telemetry-service-impl.js +37 -47
- package/lib/node/telemetry-service-impl.js.map +1 -1
- package/lib/node/telemetry-service-impl.spec.js +108 -110
- package/lib/node/telemetry-service-impl.spec.js.map +1 -1
- package/lib/node/telemetry-sink.d.ts +1 -1
- package/lib/node/telemetry-sink.d.ts.map +1 -1
- package/lib/node/telemetry-sink.js +1 -4
- package/lib/node/telemetry-sink.js.map +1 -1
- package/package.json +14 -3
- package/src/browser/browser-telemetry-service.spec.ts +5 -5
- package/src/browser/browser-telemetry-service.ts +5 -5
- package/src/browser/index.ts +1 -1
- package/src/browser/telemetry-frontend-module.ts +5 -5
- package/src/browser-only/browser-only-telemetry-service.spec.ts +3 -3
- package/src/browser-only/browser-only-telemetry-service.ts +2 -1
- package/src/browser-only/telemetry-frontend-only-module.ts +2 -2
- package/src/common/index.ts +6 -6
- package/src/common/telemetry-consent-provider.spec.ts +3 -3
- package/src/common/telemetry-consent-provider.ts +2 -2
- package/src/common/telemetry-preferences.spec.ts +1 -1
- package/src/common/telemetry-preferences.ts +1 -1
- package/src/common/telemetry-protocol.spec.ts +36 -0
- package/src/common/telemetry-protocol.ts +4 -3
- package/src/common/telemetry-service.spec.ts +2 -102
- package/src/common/telemetry-service.ts +1 -59
- package/src/common/telemetry-topic.spec.ts +1 -1
- package/src/common/telemetry-types.spec.ts +94 -1
- package/src/common/telemetry-types.ts +59 -0
- package/src/node/index.ts +2 -2
- package/src/node/telemetry-backend-module.ts +6 -6
- package/src/node/telemetry-service-impl.spec.ts +7 -7
- package/src/node/telemetry-service-impl.ts +7 -7
- package/src/node/telemetry-sink.ts +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FrontendIdProvider } from '@theia/core/lib/browser/messaging/frontend-id-provider';
|
|
2
2
|
import { ILogger } from '@theia/core/lib/common';
|
|
3
|
-
import { TelemetryConsentProvider } from '../common/telemetry-consent-provider';
|
|
4
|
-
import { TelemetryRpc } from '../common/telemetry-protocol';
|
|
5
|
-
import {
|
|
3
|
+
import { TelemetryConsentProvider } from '../common/telemetry-consent-provider.js';
|
|
4
|
+
import { TelemetryRpc } from '../common/telemetry-protocol.js';
|
|
5
|
+
import { TelemetryService } from '../common/telemetry-service.js';
|
|
6
|
+
import { TelemetryData, TelemetryReportOptions } from '../common/telemetry-types.js';
|
|
6
7
|
export declare class BrowserTelemetryService implements TelemetryService {
|
|
7
8
|
protected localSinkInterests: readonly string[] | undefined;
|
|
8
9
|
protected localSinkInterestsPromise: Promise<void> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-telemetry-service.d.ts","sourceRoot":"","sources":["../../src/browser/browser-telemetry-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"browser-telemetry-service.d.ts","sourceRoot":"","sources":["../../src/browser/browser-telemetry-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EACH,YAAY,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAwB,MAAM,8BAA8B,CAAC;AAE3G,qBACa,uBAAwB,YAAW,gBAAgB;IAE5D,SAAS,CAAC,kBAAkB,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAC5D,SAAS,CAAC,yBAAyB,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IAG/D,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAG1D,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,wBAAwB,CAAC;IAG7D,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAEnC,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,IAAI;IAexG,SAAS,CAAC,uBAAuB,IAAI,IAAI;CAS5C"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2026 STMicroelectronics and others.
|
|
4
3
|
//
|
|
@@ -14,30 +13,28 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const telemetry_types_1 = require("../common/telemetry-types");
|
|
26
|
-
const telemetry_topic_1 = require("../common/telemetry-topic");
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { FrontendIdProvider } from '@theia/core/lib/browser/messaging/frontend-id-provider';
|
|
18
|
+
import { ILogger } from '@theia/core/lib/common';
|
|
19
|
+
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
20
|
+
import { TelemetryConsentProvider } from '../common/telemetry-consent-provider.js';
|
|
21
|
+
import { TelemetryRpc, createTelemetryEvent, describeTelemetryTopic, isValidTelemetryEvent, snapshotTelemetryEvent } from '../common/telemetry-protocol.js';
|
|
22
|
+
import { matchesTelemetryTopic } from '../common/telemetry-topic.js';
|
|
23
|
+
import { isKindAllowedByLevel } from '../common/telemetry-types.js';
|
|
27
24
|
let BrowserTelemetryService = class BrowserTelemetryService {
|
|
28
25
|
report(topic, data, options) {
|
|
29
|
-
const event =
|
|
30
|
-
if (!
|
|
31
|
-
this.logger.warn(`Ignoring malformed telemetry event for topic '${
|
|
26
|
+
const event = createTelemetryEvent(topic, this.frontendIdProvider.getId(), data, options);
|
|
27
|
+
if (!isValidTelemetryEvent(event)) {
|
|
28
|
+
this.logger.warn(`Ignoring malformed telemetry event for topic '${describeTelemetryTopic(topic)}'.`);
|
|
32
29
|
return;
|
|
33
30
|
}
|
|
34
31
|
this.fetchLocalSinkInterests();
|
|
35
|
-
if (!
|
|
32
|
+
if (!isKindAllowedByLevel(this.consentProvider.level, event.kind)
|
|
36
33
|
&& this.localSinkInterests !== undefined
|
|
37
|
-
&& !this.localSinkInterests.some(pattern =>
|
|
34
|
+
&& !this.localSinkInterests.some(pattern => matchesTelemetryTopic(pattern, event.topic))) {
|
|
38
35
|
return;
|
|
39
36
|
}
|
|
40
|
-
this.rpc.notifyEvent(
|
|
37
|
+
this.rpc.notifyEvent(snapshotTelemetryEvent(event));
|
|
41
38
|
}
|
|
42
39
|
fetchLocalSinkInterests() {
|
|
43
40
|
if (!this.localSinkInterestsPromise) {
|
|
@@ -45,25 +42,21 @@ let BrowserTelemetryService = class BrowserTelemetryService {
|
|
|
45
42
|
}
|
|
46
43
|
}
|
|
47
44
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
(0, inversify_1.inject)(telemetry_protocol_1.TelemetryRpc),
|
|
51
|
-
tslib_1.__metadata("design:type", Object)
|
|
45
|
+
__decorate([
|
|
46
|
+
inject(TelemetryRpc)
|
|
52
47
|
], BrowserTelemetryService.prototype, "rpc", void 0);
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
tslib_1.__metadata("design:type", Object)
|
|
48
|
+
__decorate([
|
|
49
|
+
inject(FrontendIdProvider)
|
|
56
50
|
], BrowserTelemetryService.prototype, "frontendIdProvider", void 0);
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
tslib_1.__metadata("design:type", Object)
|
|
51
|
+
__decorate([
|
|
52
|
+
inject(TelemetryConsentProvider)
|
|
60
53
|
], BrowserTelemetryService.prototype, "consentProvider", void 0);
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
tslib_1.__metadata("design:type", Object)
|
|
54
|
+
__decorate([
|
|
55
|
+
inject(ILogger),
|
|
56
|
+
named('telemetry:BrowserTelemetryService')
|
|
65
57
|
], BrowserTelemetryService.prototype, "logger", void 0);
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
BrowserTelemetryService = __decorate([
|
|
59
|
+
injectable()
|
|
68
60
|
], BrowserTelemetryService);
|
|
61
|
+
export { BrowserTelemetryService };
|
|
69
62
|
//# sourceMappingURL=browser-telemetry-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-telemetry-service.js","sourceRoot":"","sources":["../../src/browser/browser-telemetry-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"browser-telemetry-service.js","sourceRoot":"","sources":["../../src/browser/browser-telemetry-service.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EACH,YAAY,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,sBAAsB,EAC5G,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAyC,oBAAo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AC,YAAY,CAAC;oDACgB;AAGlB;IADlB,MAAM,CAAC,kBAAkB,CAAC;mEAC+B;AAGvC;IADlB,MAAM,CAAC,wBAAwB,CAAC;gEAC4B;AAG1C;IADlB,MAAM,CAAC,OAAO,CAAC;IAAE,KAAK,CAAC,mCAAmC,CAAC;uDACzB;AAf1B,uBAAuB;IADnC,UAAU,EAAE;GACA,uBAAuB,CAyCnC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2026 STMicroelectronics and others.
|
|
4
3
|
//
|
|
@@ -14,19 +13,18 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const browser_telemetry_service_1 = require("./browser-telemetry-service");
|
|
16
|
+
import { expect } from 'chai';
|
|
17
|
+
import { FrontendIdProvider } from '@theia/core/lib/browser/messaging/frontend-id-provider';
|
|
18
|
+
import { Emitter, ILogger } from '@theia/core/lib/common';
|
|
19
|
+
import * as sinon from 'sinon';
|
|
20
|
+
import { Container } from '@theia/core/shared/inversify';
|
|
21
|
+
import { TelemetryConsentProvider } from '../common/telemetry-consent-provider.js';
|
|
22
|
+
import { TelemetryRpc } from '../common/telemetry-protocol.js';
|
|
23
|
+
import { RecordingLogger } from '../common/test/recording-logger.js';
|
|
24
|
+
import { BrowserTelemetryService } from './browser-telemetry-service.js';
|
|
27
25
|
const FRONTEND_ID = 'test-frontend-id';
|
|
28
26
|
function createConsentProvider(initialLevel) {
|
|
29
|
-
const emitter = new
|
|
27
|
+
const emitter = new Emitter();
|
|
30
28
|
let level = initialLevel;
|
|
31
29
|
return {
|
|
32
30
|
get level() {
|
|
@@ -46,14 +44,14 @@ function createRpc(events, localSinkInterests = Promise.resolve([])) {
|
|
|
46
44
|
getLocalSinkInterests: () => localSinkInterests
|
|
47
45
|
};
|
|
48
46
|
}
|
|
49
|
-
function createService(rpc, consentProvider, logger = new
|
|
50
|
-
const container = new
|
|
51
|
-
container.bind(
|
|
52
|
-
container.bind(
|
|
53
|
-
container.bind(
|
|
54
|
-
container.bind(
|
|
55
|
-
container.bind(
|
|
56
|
-
return container.get(
|
|
47
|
+
function createService(rpc, consentProvider, logger = new RecordingLogger()) {
|
|
48
|
+
const container = new Container();
|
|
49
|
+
container.bind(TelemetryRpc).toConstantValue(rpc);
|
|
50
|
+
container.bind(FrontendIdProvider).toConstantValue({ getId: () => FRONTEND_ID });
|
|
51
|
+
container.bind(TelemetryConsentProvider).toConstantValue(consentProvider);
|
|
52
|
+
container.bind(ILogger).toConstantValue(logger).whenTargetNamed('telemetry:BrowserTelemetryService');
|
|
53
|
+
container.bind(BrowserTelemetryService).toSelf();
|
|
54
|
+
return container.get(BrowserTelemetryService);
|
|
57
55
|
}
|
|
58
56
|
describe('BrowserTelemetryService', () => {
|
|
59
57
|
let clock;
|
|
@@ -67,10 +65,10 @@ describe('BrowserTelemetryService', () => {
|
|
|
67
65
|
service.report('company/action', { enabled: true });
|
|
68
66
|
clock.tick(10);
|
|
69
67
|
service.report('company/other', { count: 3 });
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
expect(events).to.have.length(2);
|
|
69
|
+
expect(events[0]).to.deep.include({ topic: 'company/action', kind: 'usage', data: { enabled: true }, timestamp: 1234 });
|
|
70
|
+
expect(events[1]).to.deep.include({ topic: 'company/other', kind: 'usage', data: { count: 3 }, timestamp: 1244 });
|
|
71
|
+
expect(events.map(event => event.session)).to.deep.equal([FRONTEND_ID, FRONTEND_ID]);
|
|
74
72
|
});
|
|
75
73
|
it('forwards optimistically until local interests are ready, then applies consent and local interests', async () => {
|
|
76
74
|
const events = [];
|
|
@@ -86,7 +84,7 @@ describe('BrowserTelemetryService', () => {
|
|
|
86
84
|
service.report('company/local/action');
|
|
87
85
|
consentProvider.setLevel('all');
|
|
88
86
|
service.report('company/enabled');
|
|
89
|
-
|
|
87
|
+
expect(events.map(event => event.topic)).to.deep.equal(['company/optimistic', 'company/local/action', 'company/enabled']);
|
|
90
88
|
});
|
|
91
89
|
it('fetches local interests once and treats RPC failure as no local interests', async () => {
|
|
92
90
|
const events = [];
|
|
@@ -97,8 +95,8 @@ describe('BrowserTelemetryService', () => {
|
|
|
97
95
|
await Promise.resolve();
|
|
98
96
|
await Promise.resolve();
|
|
99
97
|
service.report('company/dropped');
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
expect(getLocalSinkInterests.calledOnce).to.be.true;
|
|
99
|
+
expect(events.map(event => event.topic)).to.deep.equal(['company/optimistic']);
|
|
102
100
|
});
|
|
103
101
|
it('forwards immutable snapshots of data and attributes with report options', () => {
|
|
104
102
|
const events = [];
|
|
@@ -114,34 +112,34 @@ describe('BrowserTelemetryService', () => {
|
|
|
114
112
|
};
|
|
115
113
|
const attributes = { source: 'browser', labels: ['stable'] };
|
|
116
114
|
service.report('company/action', data, { kind: 'error', attributes });
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
115
|
+
expect(events).to.have.length(1);
|
|
116
|
+
expect(events[0].kind).to.equal('error');
|
|
117
|
+
expect(events[0].session).to.equal(FRONTEND_ID);
|
|
118
|
+
expect(events[0].data).to.deep.equal(data);
|
|
119
|
+
expect(events[0].attributes).to.deep.equal(attributes);
|
|
120
|
+
expect(events[0].attributes).not.to.equal(attributes);
|
|
121
|
+
expect(events[0].attributes?.labels).not.to.equal(attributes.labels);
|
|
122
|
+
expect(events[0].data).not.to.equal(data);
|
|
123
|
+
expect(events[0].data?.strings).not.to.equal(data.strings);
|
|
124
|
+
expect(events[0].data?.numbers).not.to.equal(data.numbers);
|
|
125
|
+
expect(events[0].data?.booleans).not.to.equal(data.booleans);
|
|
126
|
+
expect(events[0].data?.empty).not.to.equal(data.empty);
|
|
127
|
+
expect(Object.isFrozen(events[0])).to.be.true;
|
|
128
|
+
expect(Object.isFrozen(events[0].data)).to.be.true;
|
|
129
|
+
expect(Object.isFrozen(events[0].data?.strings)).to.be.true;
|
|
130
|
+
expect(Object.isFrozen(events[0].attributes)).to.be.true;
|
|
131
|
+
expect(Object.isFrozen(events[0].attributes?.labels)).to.be.true;
|
|
134
132
|
data.text = 'changed';
|
|
135
133
|
attributes.source = 'changed';
|
|
136
134
|
attributes.labels.push('changed');
|
|
137
135
|
data.strings.push('changed');
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
expect(events[0].data?.text).to.equal('value');
|
|
137
|
+
expect(events[0].data?.strings).to.deep.equal(['first', 'second']);
|
|
138
|
+
expect(events[0].attributes).to.deep.equal({ source: 'browser', labels: ['stable'] });
|
|
141
139
|
});
|
|
142
140
|
it('does not forward invalid topics or payloads', () => {
|
|
143
141
|
const events = [];
|
|
144
|
-
const logger = new
|
|
142
|
+
const logger = new RecordingLogger();
|
|
145
143
|
const service = createService(createRpc(events), createConsentProvider('all'), logger);
|
|
146
144
|
const sparse = new Array(2);
|
|
147
145
|
sparse[1] = 'value';
|
|
@@ -157,8 +155,8 @@ describe('BrowserTelemetryService', () => {
|
|
|
157
155
|
}
|
|
158
156
|
service.report('company/action', undefined, { kind: 'invalid' });
|
|
159
157
|
service.report('company/action', undefined, { attributes: { nested: {} } });
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
expect(events).to.be.empty;
|
|
159
|
+
expect(logger.warnings).to.have.length(invalidCases.length + 2);
|
|
162
160
|
});
|
|
163
161
|
});
|
|
164
162
|
//# sourceMappingURL=browser-telemetry-service.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-telemetry-service.spec.js","sourceRoot":"","sources":["../../src/browser/browser-telemetry-service.spec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"browser-telemetry-service.spec.js","sourceRoot":"","sources":["../../src/browser/browser-telemetry-service.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAkB,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,MAAM,WAAW,GAAG,kBAAkB,CAAC;AAMvC,SAAS,qBAAqB,CAAC,YAA4B;IACvD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAkB,CAAC;IAC9C,IAAI,KAAK,GAAG,YAAY,CAAC;IACzB,OAAO;QACH,IAAI,KAAK;YACL,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,yBAAyB,EAAE,OAAO,CAAC,KAAK;QACxC,KAAK,EAAE,OAAO,CAAC,OAAO,EAAE;QACxB,QA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SACzC,CAAC;QAEF,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,YAAY,EAAE,CAAC;YACvC,OAAO,CAAC,MAAM,CAAC,KAAe,EAAE,IAAa,CAAC,CAAC;QACnD,CAAC;QACD,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,SAAkB,EAAE,CAAC,CAAC;QAC1E,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,EAAE,MAAM,EAAE,EAAE,EAAW,EAAE,CAAC,CAAC;QAErF,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QAC3B,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/lib/browser/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './browser-telemetry-service';
|
|
1
|
+
export * from './browser-telemetry-service.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAgBA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAgBA,cAAc,gCAAgC,CAAC"}
|
package/lib/browser/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2026 STMicroelectronics and others.
|
|
4
3
|
//
|
|
@@ -14,7 +13,5 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
const tslib_1 = require("tslib");
|
|
19
|
-
tslib_1.__exportStar(require("./browser-telemetry-service"), exports);
|
|
16
|
+
export * from './browser-telemetry-service.js';
|
|
20
17
|
//# sourceMappingURL=index.js.map
|
package/lib/browser/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,cAAc,gCAAgC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2026 STMicroelectronics and others.
|
|
4
3
|
//
|
|
@@ -14,22 +13,21 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
(
|
|
27
|
-
bind(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return connectionProvider.createProxy(telemetry_protocol_1.telemetryServicePath);
|
|
16
|
+
import { RemoteConnectionProvider } from '@theia/core/lib/browser';
|
|
17
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
+
import { PreferenceTelemetryConsentProvider, TelemetryConsentProvider } from '../common/telemetry-consent-provider.js';
|
|
19
|
+
import { bindTelemetryPreferences } from '../common/telemetry-preferences.js';
|
|
20
|
+
import { telemetryServicePath, TelemetryRpc } from '../common/telemetry-protocol.js';
|
|
21
|
+
import { TelemetryService } from '../common/telemetry-service.js';
|
|
22
|
+
import { BrowserTelemetryService } from './browser-telemetry-service.js';
|
|
23
|
+
export default new ContainerModule(bind => {
|
|
24
|
+
bindTelemetryPreferences(bind);
|
|
25
|
+
bind(TelemetryConsentProvider).to(PreferenceTelemetryConsentProvider).inSingletonScope();
|
|
26
|
+
bind(TelemetryRpc).toDynamicValue(ctx => {
|
|
27
|
+
const connectionProvider = ctx.container.get(RemoteConnectionProvider);
|
|
28
|
+
return connectionProvider.createProxy(telemetryServicePath);
|
|
31
29
|
}).inSingletonScope();
|
|
32
|
-
bind(
|
|
33
|
-
bind(
|
|
30
|
+
bind(BrowserTelemetryService).toSelf().inSingletonScope();
|
|
31
|
+
bind(TelemetryService).toService(BrowserTelemetryService);
|
|
34
32
|
});
|
|
35
33
|
//# sourceMappingURL=telemetry-frontend-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry-frontend-module.js","sourceRoot":"","sources":["../../src/browser/telemetry-frontend-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"telemetry-frontend-module.js","sourceRoot":"","sources":["../../src/browser/telemetry-frontend-module.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,wBAAwB,EAA6B,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,kCAAkC,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACvH,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACtC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAC/B,IAAI,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,kCAAkC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACzF,IAAI,CAAC,YAAY,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;QACpC,MAAM,kBAAkB,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAA4B,wBAAwB,CAAC,CAAC;QAClG,OAAO,kBAAkB,CAAC,WAAW,CAAe,oBAAoB,CAAC,CAAC;IAC9E,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACtB,IAAI,CAAC,uBAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1D,IAAI,CAAC,gBAAgB,CAAC,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;AAC9D,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TelemetryService } from '../common/telemetry-service.js';
|
|
2
|
+
import { TelemetryData, TelemetryReportOptions } from '../common/telemetry-types.js';
|
|
2
3
|
export declare class BrowserOnlyTelemetryService implements TelemetryService {
|
|
3
4
|
report<T extends object>(_topic: string, _data?: TelemetryData<T>, _options?: TelemetryReportOptions): void;
|
|
4
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-only-telemetry-service.d.ts","sourceRoot":"","sources":["../../src/browser-only/browser-only-telemetry-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"browser-only-telemetry-service.d.ts","sourceRoot":"","sources":["../../src/browser-only/browser-only-telemetry-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAErF,qBACa,2BAA4B,YAAW,gBAAgB;IAChE,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,sBAAsB,GAAG,IAAI;CAC9G"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2026 STMicroelectronics and others.
|
|
4
3
|
//
|
|
@@ -14,15 +13,13 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { injectable } from '@theia/core/shared/inversify';
|
|
21
18
|
let BrowserOnlyTelemetryService = class BrowserOnlyTelemetryService {
|
|
22
19
|
report(_topic, _data, _options) { }
|
|
23
20
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
(0, inversify_1.injectable)()
|
|
21
|
+
BrowserOnlyTelemetryService = __decorate([
|
|
22
|
+
injectable()
|
|
27
23
|
], BrowserOnlyTelemetryService);
|
|
24
|
+
export { BrowserOnlyTelemetryService };
|
|
28
25
|
//# sourceMappingURL=browser-only-telemetry-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-only-telemetry-service.js","sourceRoot":"","sources":["../../src/browser-only/browser-only-telemetry-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"browser-only-telemetry-service.js","sourceRoot":"","sources":["../../src/browser-only/browser-only-telemetry-service.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAKnD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACpC,MAAM,CAAmB,MAAc,EAAE,KAAwB,EAAE,QAAiC,IAAU,CAAC;CAClH,CAAA;AAFY,2BAA2B;IADvC,UAAU,EAAE;GACA,2BAA2B,CAEvC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2026 STMicroelectronics and others.
|
|
4
3
|
//
|
|
@@ -14,29 +13,28 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const telemetry_frontend_only_module_1 = require("./telemetry-frontend-only-module");
|
|
16
|
+
import { Container } from '@theia/core/shared/inversify';
|
|
17
|
+
import { expect } from 'chai';
|
|
18
|
+
import { TelemetryService } from '../common/telemetry-service.js';
|
|
19
|
+
import { BrowserOnlyTelemetryService } from './browser-only-telemetry-service.js';
|
|
20
|
+
import telemetryFrontendOnlyModule from './telemetry-frontend-only-module.js';
|
|
23
21
|
describe('browser-only telemetry service', () => {
|
|
24
22
|
it('binds the no-op service when telemetry is not already bound', () => {
|
|
25
|
-
const container = new
|
|
26
|
-
container.load(
|
|
27
|
-
const service = container.get(
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
const container = new Container();
|
|
24
|
+
container.load(telemetryFrontendOnlyModule);
|
|
25
|
+
const service = container.get(TelemetryService);
|
|
26
|
+
expect(service).to.be.instanceOf(BrowserOnlyTelemetryService);
|
|
27
|
+
expect(() => service.report('invalid', { malformed: { nested: true } })).not.to.throw();
|
|
30
28
|
});
|
|
31
29
|
it('replaces an existing telemetry service without invoking it', () => {
|
|
32
|
-
const container = new
|
|
30
|
+
const container = new Container();
|
|
33
31
|
let reports = 0;
|
|
34
|
-
container.bind(
|
|
35
|
-
container.load(
|
|
36
|
-
const service = container.get(
|
|
32
|
+
container.bind(TelemetryService).toConstantValue({ report: () => reports++ });
|
|
33
|
+
container.load(telemetryFrontendOnlyModule);
|
|
34
|
+
const service = container.get(TelemetryService);
|
|
37
35
|
service.report('company/action');
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
expect(service).to.be.instanceOf(BrowserOnlyTelemetryService);
|
|
37
|
+
expect(reports).to.equal(0);
|
|
40
38
|
});
|
|
41
39
|
});
|
|
42
40
|
//# sourceMappingURL=browser-only-telemetry-service.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-only-telemetry-service.spec.js","sourceRoot":"","sources":["../../src/browser-only/browser-only-telemetry-service.spec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"browser-only-telemetry-service.spec.js","sourceRoot":"","sources":["../../src/browser-only/browser-only-telemetry-service.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7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CAAmB,gBAAgB,CAAC,CAAC;QAClE,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjC,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;QAC9D,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2026 STMicroelectronics and others.
|
|
4
3
|
//
|
|
@@ -14,17 +13,16 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
rebind(telemetry_service_1.TelemetryService).toService(browser_only_telemetry_service_1.BrowserOnlyTelemetryService);
|
|
16
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
17
|
+
import { TelemetryService } from '../common/telemetry-service.js';
|
|
18
|
+
import { BrowserOnlyTelemetryService } from './browser-only-telemetry-service.js';
|
|
19
|
+
export default new ContainerModule((bind, _unbind, isBound, rebind) => {
|
|
20
|
+
bind(BrowserOnlyTelemetryService).toSelf().inSingletonScope();
|
|
21
|
+
if (isBound(TelemetryService)) {
|
|
22
|
+
rebind(TelemetryService).toService(BrowserOnlyTelemetryService);
|
|
25
23
|
}
|
|
26
24
|
else {
|
|
27
|
-
bind(
|
|
25
|
+
bind(TelemetryService).toService(BrowserOnlyTelemetryService);
|
|
28
26
|
}
|
|
29
27
|
});
|
|
30
28
|
//# sourceMappingURL=telemetry-frontend-only-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry-frontend-only-module.js","sourceRoot":"","sources":["../../src/browser-only/telemetry-frontend-only-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"telemetry-frontend-only-module.js","sourceRoot":"","sources":["../../src/browser-only/telemetry-frontend-only-module.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAElF,eAAe,IAAI,eAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IAClE,IAAI,CAAC,2BAA2B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC9D,IAAI,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC5B,MAAM,CAAC,gBAAgB,CAAC,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;IACpE,CAAC;SAAM,CAAC;QACJ,IAAI,CAAC,gBAAgB,CAAC,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;IAClE,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/lib/common/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './telemetry-consent-provider';
|
|
2
|
-
export * from './telemetry-preferences';
|
|
3
|
-
export * from './telemetry-protocol';
|
|
4
|
-
export * from './telemetry-service';
|
|
5
|
-
export * from './telemetry-topic';
|
|
6
|
-
export * from './telemetry-types';
|
|
1
|
+
export * from './telemetry-consent-provider.js';
|
|
2
|
+
export * from './telemetry-preferences.js';
|
|
3
|
+
export * from './telemetry-protocol.js';
|
|
4
|
+
export * from './telemetry-service.js';
|
|
5
|
+
export * from './telemetry-topic.js';
|
|
6
|
+
export * from './telemetry-types.js';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAgBA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAgBA,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
|