@zumito-team/analytics-module 0.3.0 → 0.5.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.
- package/README.md +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
npm install @zumito-team/analytics-module
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Add to your `zumito.config.ts
|
|
11
|
+
Add to your `zumito.config.ts` (note the `/dist` suffix):
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
14
|
{
|
|
15
|
-
path: path.join(__dirname, "node_modules", "@zumito-team", "analytics-module"),
|
|
15
|
+
path: path.join(__dirname, "node_modules", "@zumito-team", "analytics-module", "dist"),
|
|
16
16
|
}
|
|
17
17
|
```
|
|
18
18
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
import { Module } from 'zumito-framework';
|
|
2
3
|
export declare class AnalyticsModule extends Module {
|
|
4
|
+
static moduleName: string;
|
|
3
5
|
static dependencies: readonly [];
|
|
4
6
|
static optionalDependencies: readonly ["admin-module", "user-panel-module"];
|
|
5
7
|
constructor(modulePath?: string);
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
import { Module, ServiceContainer } from 'zumito-framework';
|
|
2
3
|
import { AnalyticsCollector } from './services/AnalyticsCollector.js';
|
|
3
4
|
export class AnalyticsModule extends Module {
|
|
@@ -51,6 +52,7 @@ export class AnalyticsModule extends Module {
|
|
|
51
52
|
collector.clearVoiceSessions();
|
|
52
53
|
}
|
|
53
54
|
}
|
|
55
|
+
AnalyticsModule.moduleName = 'analytics-module';
|
|
54
56
|
AnalyticsModule.dependencies = [];
|
|
55
57
|
AnalyticsModule.optionalDependencies = ['admin-module', 'user-panel-module'];
|
|
56
58
|
export { AnalyticsCollector } from './services/AnalyticsCollector.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zumito-team/analytics-module",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Server analytics module with configurable tracking and optional panel integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"@zumito-team/admin-module": "^1.8.0",
|
|
17
17
|
"@zumito-team/user-panel-module": "^0.10.0",
|
|
18
18
|
"ejs": "^3.1.10",
|
|
19
|
+
"reflect-metadata": "^0.2.2",
|
|
19
20
|
"zumito-framework": "^1.22.2"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|