@univerjs/telemetry 0.16.1 → 0.17.0

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.
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -26,14 +26,14 @@ export interface ITelemetryService {
26
26
  * @param token
27
27
  * @param options
28
28
  */
29
- init: (options?: Record<string, any>) => void;
29
+ init: (options?: object) => void;
30
30
  /**
31
31
  * Identify the user.
32
32
  * @param id
33
33
  * @param params
34
34
  * @returns
35
35
  */
36
- identify: (id: string, params?: Record<string, any>) => void;
36
+ identify: (id: string, params?: object) => void;
37
37
  /**
38
38
  * Reset the user.
39
39
  */
@@ -43,7 +43,7 @@ export interface ITelemetryService {
43
43
  * @param eventName
44
44
  * @param params
45
45
  */
46
- capture: (eventName: string, params?: Record<string, any>) => void;
46
+ capture: (eventName: string, params?: object) => void;
47
47
  /**
48
48
  * Start the timer.
49
49
  * @param functionName
@@ -61,7 +61,7 @@ export interface ITelemetryService {
61
61
  trackPerformance: (params: {
62
62
  duration: number;
63
63
  functionName: string;
64
- [prop: string]: any;
64
+ [prop: string]: unknown;
65
65
  }) => void;
66
66
  /**
67
67
  * Track the page view.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/telemetry",
3
- "version": "0.16.1",
3
+ "version": "0.17.0",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,13 +42,13 @@
42
42
  "lib"
43
43
  ],
44
44
  "dependencies": {
45
- "@univerjs/core": "0.16.1"
45
+ "@univerjs/core": "0.17.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "typescript": "^5.9.3",
49
49
  "vite": "^7.3.1",
50
50
  "vitest": "^4.0.18",
51
- "@univerjs-infra/shared": "0.16.1"
51
+ "@univerjs-infra/shared": "0.17.0"
52
52
  },
53
53
  "scripts": {
54
54
  "test": "vitest run",