@sap-ux/telemetry 1.0.8 → 1.0.9

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.
@@ -1,3 +1,9 @@
1
+ // Before the appInsights import:
2
+ // Prevent applicationinsights from monkey-patching console and other modules via
3
+ // diagnostic-channel. We use manual TelemetryClient, not auto-instrumentation,
4
+ // so this channel provides no benefit and causes console.time/timeEnd warnings in
5
+ // apps (e.g. CAP) that hold pre-existing console timers.
6
+ process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL ??= 'true';
1
7
  import { Client } from './client.js';
2
8
  import * as appInsights from 'applicationinsights';
3
9
  import { EventHeader } from '../types/event-header.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/telemetry",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Library for sending usage telemetry data",
5
5
  "type": "module",
6
6
  "repository": {
@@ -20,10 +20,10 @@
20
20
  "performance-now": "2.1.0",
21
21
  "yaml": "2.8.3",
22
22
  "@sap-ux/store": "2.0.1",
23
- "@sap-ux/ui5-config": "1.0.3",
24
23
  "@sap-ux/project-access": "2.1.2",
25
- "@sap-ux/logger": "1.0.1",
26
24
  "@sap-ux/btp-utils": "2.0.2",
25
+ "@sap-ux/logger": "1.0.1",
26
+ "@sap-ux/ui5-config": "1.0.3",
27
27
  "@sap-ux/nodejs-utils": "1.0.3"
28
28
  },
29
29
  "devDependencies": {