@sap-ux/telemetry 0.6.45 → 0.6.47

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.
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.TelemetrySettings = void 0;
7
- // @ts-ignore
8
7
  const package_json_1 = __importDefault(require("../../package.json"));
9
8
  /**
10
9
  * Runtime telemetry settings
@@ -25,7 +25,6 @@ const notifyAsync = (target, originalFn, evtName, sampleRate) => {
25
25
  };
26
26
  exports.notifyAsync = notifyAsync;
27
27
  const duration = (target, originalFn, evtName, sampleRate) => {
28
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
29
28
  return (...args) => {
30
29
  const markName = api_1.PerformanceMeasurementAPI.startMark('mark');
31
30
  const result = originalFn.apply(target, args);
@@ -40,7 +39,6 @@ const duration = (target, originalFn, evtName, sampleRate) => {
40
39
  };
41
40
  exports.duration = duration;
42
41
  const durationAsync = (target, originalFn, evtName, sampleRate) => {
43
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
44
42
  return async (...args) => {
45
43
  const markName = api_1.PerformanceMeasurementAPI.startMark('mark');
46
44
  const result = await originalFn.apply(target, args);
@@ -55,7 +53,6 @@ const durationAsync = (target, originalFn, evtName, sampleRate) => {
55
53
  };
56
54
  exports.durationAsync = durationAsync;
57
55
  const captureParam = (target, originalFn, evtName, sampleRate, instructions) => {
58
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
59
56
  return (...args) => {
60
57
  const result = originalFn.apply(target, args);
61
58
  const [customDimensions, customMeasurements] = (0, param_processing_1.getParamsData)(args, instructions);
@@ -67,7 +64,6 @@ const captureParam = (target, originalFn, evtName, sampleRate, instructions) =>
67
64
  };
68
65
  exports.captureParam = captureParam;
69
66
  const captureParamAsync = (target, originalFn, evtName, sampleRate, instructions) => {
70
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
71
67
  return async (...args) => {
72
68
  const result = await originalFn.apply(target, args);
73
69
  const [customDimensions, customMeasurements] = (0, param_processing_1.getParamsData)(args, instructions);
@@ -41,7 +41,6 @@ export declare class ParamRecordConfig {
41
41
  export declare const wrongPathErr: (field: string, index: number) => Error;
42
42
  export declare const getValue: (obj: any, path: string, field: string, paramIndex: number) => number | string;
43
43
  export declare const paramsProcessing: (params: any, instructions: ParamRecordConfig) => [dimensions, measurements];
44
- export declare const getParamsData: (params: any, // eslint-disable-line @typescript-eslint/no-explicit-any
45
- instructions: ParamRecordConfig[] | ParamRecordConfig) => [dimensions, measurements];
44
+ export declare const getParamsData: (params: any, instructions: ParamRecordConfig[] | ParamRecordConfig) => [dimensions, measurements];
46
45
  export {};
47
46
  //# sourceMappingURL=param-processing.d.ts.map
@@ -44,7 +44,6 @@ class ParamRecordConfig {
44
44
  exports.ParamRecordConfig = ParamRecordConfig;
45
45
  const wrongPathErr = (field, index) => new Error(`Wrong path for '${field}' field is specified in instructions with index - ${index}`);
46
46
  exports.wrongPathErr = wrongPathErr;
47
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
48
47
  const getValue = (obj, path, field, paramIndex) => {
49
48
  const pathArr = path.split('/');
50
49
  let node = obj, i = 0;
@@ -58,11 +57,10 @@ const getValue = (obj, path, field, paramIndex) => {
58
57
  return node;
59
58
  };
60
59
  exports.getValue = getValue;
61
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
62
60
  const paramsProcessing = (params, instructions) => {
63
61
  const processedDimensions = {};
64
62
  const processedMeasurements = {};
65
- let param = null; // eslint-disable-line @typescript-eslint/no-explicit-any
63
+ let param = null;
66
64
  if (instructions.paramIndex !== undefined) {
67
65
  param = params[instructions.paramIndex];
68
66
  }
@@ -86,8 +84,7 @@ const paramsProcessing = (params, instructions) => {
86
84
  return [processedDimensions, processedMeasurements];
87
85
  };
88
86
  exports.paramsProcessing = paramsProcessing;
89
- const getParamsData = (params, // eslint-disable-line @typescript-eslint/no-explicit-any
90
- instructions) => {
87
+ const getParamsData = (params, instructions) => {
91
88
  let processedDimensions, processedMeasurements;
92
89
  let customDimensions = {};
93
90
  let customMeasurements = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/telemetry",
3
- "version": "0.6.45",
3
+ "version": "0.6.47",
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.4",
22
- "@sap-ux/project-access": "1.32.14",
23
- "@sap-ux/btp-utils": "1.1.5",
24
- "@sap-ux/ui5-config": "0.29.10",
25
- "@sap-ux/logger": "0.7.1",
26
- "@sap-ux/nodejs-utils": "0.2.9"
21
+ "@sap-ux/store": "1.3.5",
22
+ "@sap-ux/project-access": "1.32.16",
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"
27
27
  },
28
28
  "devDependencies": {
29
29
  "jest-extended": "6.0.0",
@@ -45,8 +45,8 @@
45
45
  "watch": "tsc --watch",
46
46
  "clean": "rimraf --glob dist coverage *.tsbuildinfo",
47
47
  "format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
48
- "lint": "eslint . --ext .ts",
49
- "lint:fix": "eslint . --ext .ts --fix",
48
+ "lint": "eslint",
49
+ "lint:fix": "eslint --fix",
50
50
  "test": "jest --ci --forceExit --detectOpenHandles --colors",
51
51
  "test-u": "jest --ci --forceExit --detectOpenHandles --colors -u",
52
52
  "link": "pnpm link --global",