@sap-ux/telemetry 0.6.47 → 0.6.49

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.
@@ -5,7 +5,7 @@ import type { TelemetryMeasurements, TelemetryProperties } from '../types';
5
5
  *
6
6
  */
7
7
  declare class ApplicationInsightClient extends Client {
8
- private clients;
8
+ private readonly clients;
9
9
  /**
10
10
  *
11
11
  * @param applicationKey Application key to identify the Azure Application Insight resource
@@ -4,7 +4,7 @@ import { ToolsSuiteTelemetryClient } from '../../tooling-telemetry';
4
4
  * Factory to get telemetry client instance.
5
5
  */
6
6
  declare class ClientFactory {
7
- private static clientMap;
7
+ private static readonly clientMap;
8
8
  /**
9
9
  * Get singleton instance of default telemetry client for Azure app insights.
10
10
  *
@@ -5,7 +5,7 @@ import { EntryType, PerformanceMeasurement } from './types';
5
5
  */
6
6
  declare class PerformanceMeasurementAPI extends PerformanceMeasurement {
7
7
  static initTiming: number;
8
- private static now;
8
+ private static readonly now;
9
9
  static entries: EntriesArray;
10
10
  static initialize(): void;
11
11
  /**
@@ -2,8 +2,8 @@
2
2
  * Hierarchical event name for a telemetry event submitted to Auzre Application Insights.
3
3
  */
4
4
  declare class EventHeader {
5
- private extensionName;
6
- private eventName;
5
+ private readonly extensionName;
6
+ private readonly eventName;
7
7
  /**
8
8
  * Event header that is composed of two parts.
9
9
  *
@@ -75,7 +75,7 @@ const paramsProcessing = (params, instructions) => {
75
75
  else {
76
76
  val = param;
77
77
  }
78
- if (!isNaN(val)) {
78
+ if (typeof val === 'number' && !Number.isNaN(val)) {
79
79
  processedMeasurements[key] = val;
80
80
  }
81
81
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/telemetry",
3
- "version": "0.6.47",
3
+ "version": "0.6.49",
4
4
  "description": "Library for sending usage telemetry data",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,12 +18,12 @@
18
18
  "axios": "1.12.2",
19
19
  "performance-now": "2.1.0",
20
20
  "yaml": "2.3.3",
21
- "@sap-ux/store": "1.3.5",
22
- "@sap-ux/project-access": "1.32.16",
21
+ "@sap-ux/store": "1.4.1",
22
+ "@sap-ux/project-access": "1.32.17",
23
23
  "@sap-ux/btp-utils": "1.1.6",
24
- "@sap-ux/ui5-config": "0.29.11",
25
- "@sap-ux/logger": "0.7.2",
26
- "@sap-ux/nodejs-utils": "0.2.10"
24
+ "@sap-ux/ui5-config": "0.29.12",
25
+ "@sap-ux/logger": "0.7.3",
26
+ "@sap-ux/nodejs-utils": "0.2.11"
27
27
  },
28
28
  "devDependencies": {
29
29
  "jest-extended": "6.0.0",