@tachybase/module-instrumentation 1.3.21 → 1.3.23

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,14 +1,11 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "1.3.21",
4
- "@tachybase/components": "1.3.21",
5
- "@tachybase/schema": "1.3.21",
3
+ "@tachybase/client": "1.3.23",
4
+ "@tachybase/schema": "1.3.43",
5
+ "@tego/client": "1.3.43",
6
6
  "antd": "5.22.5",
7
7
  "@ant-design/icons": "5.6.1",
8
8
  "lodash": "4.17.21",
9
- "@tachybase/database": "1.3.21",
10
- "@tachybase/actions": "1.3.21",
11
- "@tachybase/server": "1.3.21",
12
- "dayjs": "1.11.13",
13
- "@tachybase/utils": "1.3.21"
9
+ "@tego/server": "1.3.43",
10
+ "dayjs": "1.11.13"
14
11
  };
@@ -1,4 +1,4 @@
1
- import Database, { Transaction } from '@tachybase/database';
1
+ import { Database, Transaction } from '@tego/server';
2
2
  export type WhiteListItem = {
3
3
  title: string;
4
4
  resourceName: string;
@@ -1,4 +1,4 @@
1
- import { Context } from '@tachybase/actions';
1
+ import { Context } from '@tego/server';
2
2
  export declare class TrackingController {
3
3
  create(ctx: Context, next: () => Promise<any>): Promise<any>;
4
4
  list(ctx: Context, next: () => Promise<any>): Promise<any>;
@@ -65,12 +65,12 @@ __export(tracking_controller_exports, {
65
65
  TrackingController: () => TrackingController
66
66
  });
67
67
  module.exports = __toCommonJS(tracking_controller_exports);
68
- var import_utils = require("@tachybase/utils");
68
+ var import_server = require("@tego/server");
69
69
  var import_getActiveUser = require("../hooks/getActiveUser");
70
70
  var import_getQueryResult = require("../hooks/getQueryResult");
71
71
  var import_getStatistics = require("../hooks/getStatistics");
72
72
  var _query_dec, _list_dec, _create_dec, _TrackingController_decorators, _init;
73
- _TrackingController_decorators = [(0, import_utils.Controller)("instrumentation")], _create_dec = [(0, import_utils.Action)("create", { acl: "public" })], _list_dec = [(0, import_utils.Action)("list", { acl: "private" })], _query_dec = [(0, import_utils.Action)("query", { acl: "private" })];
73
+ _TrackingController_decorators = [(0, import_server.Controller)("instrumentation")], _create_dec = [(0, import_server.Action)("create", { acl: "public" })], _list_dec = [(0, import_server.Action)("list", { acl: "private" })], _query_dec = [(0, import_server.Action)("query", { acl: "private" })];
74
74
  class TrackingController {
75
75
  constructor() {
76
76
  __runInitializers(_init, 5, this);
@@ -1,3 +1,3 @@
1
- import { CollectionOptions } from '@tachybase/database';
1
+ import { CollectionOptions } from '@tego/server';
2
2
  declare const _default: CollectionOptions;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { CollectionOptions } from '@tachybase/database';
1
+ import { CollectionOptions } from '@tego/server';
2
2
  declare const _default: CollectionOptions;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { CollectionOptions } from '@tachybase/database';
1
+ import { CollectionOptions } from '@tego/server';
2
2
  declare const _default: CollectionOptions;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { CollectionOptions } from '@tachybase/database';
1
+ import { CollectionOptions } from '@tego/server';
2
2
  declare const _default: CollectionOptions;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Context } from '@tachybase/actions';
1
+ import { Context } from '@tego/server';
2
2
  import { WhiteListItem } from '../ServerTrackingFilter';
3
3
  export declare function handleOtherAction(ctx: Context, next: any, whiteList: WhiteListItem[]): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { Context } from '@tachybase/actions';
1
+ import { Context } from '@tego/server';
2
2
  export declare const getDailyActiveUser: (ctx: Context) => Promise<{
3
3
  todayActiveUserCount: number;
4
4
  average7: number;
@@ -1,4 +1,4 @@
1
- import { Plugin } from '@tachybase/server';
1
+ import { Plugin } from '@tego/server';
2
2
  import { ServerTrackingFilter } from './ServerTrackingFilter';
3
3
  export declare class ModuleInstrumentationServer extends Plugin {
4
4
  serverTrackingFilter: ServerTrackingFilter;
@@ -67,7 +67,7 @@ __export(plugin_exports, {
67
67
  });
68
68
  module.exports = __toCommonJS(plugin_exports);
69
69
  var import_node_worker_threads = require("node:worker_threads");
70
- var import_server = require("@tachybase/server");
70
+ var import_server = require("@tego/server");
71
71
  var import_tracking_controller = require("./actions/tracking-controller");
72
72
  var import_afterAction = require("./hooks/afterAction");
73
73
  var import_ServerTrackingFilter = require("./ServerTrackingFilter");
package/package.json CHANGED
@@ -1,28 +1,23 @@
1
1
  {
2
2
  "name": "@tachybase/module-instrumentation",
3
3
  "displayName": "Custom instrumentation",
4
- "version": "1.3.21",
4
+ "version": "1.3.23",
5
5
  "description": "A module for tracking and instrumentation in Tachybase.",
6
6
  "keywords": [
7
7
  "Logging and monitoring"
8
8
  ],
9
9
  "main": "dist/server/index.js",
10
10
  "devDependencies": {
11
- "@ant-design/icons": "^5.5.2",
11
+ "@ant-design/icons": "^5.6.1",
12
12
  "@antv/g2": "^5.3.0",
13
+ "@tachybase/schema": "^1.3.43",
14
+ "@tachybase/test": "^1.3.43",
15
+ "@tego/client": "^1.3.43",
16
+ "@tego/server": "^1.3.43",
13
17
  "antd": "5.22.5",
14
18
  "dayjs": "1.11.13",
15
- "lodash": "^4.17.21"
16
- },
17
- "peerDependencies": {
18
- "@tachybase/actions": "1.3.21",
19
- "@tachybase/client": "1.3.21",
20
- "@tachybase/components": "1.3.21",
21
- "@tachybase/database": "1.3.21",
22
- "@tachybase/schema": "1.3.21",
23
- "@tachybase/server": "1.3.21",
24
- "@tachybase/test": "1.3.21",
25
- "@tachybase/utils": "1.3.21"
19
+ "lodash": "4.17.21",
20
+ "@tachybase/client": "1.3.23"
26
21
  },
27
22
  "description.zh-CN": "Tachybase 应用的追踪和埋点模块",
28
23
  "displayName.zh-CN": "埋点追踪"