@ngn-net/nestjs-telescope 0.2.7 → 0.2.8

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,5 +1,5 @@
1
1
  {
2
2
  "name": "@ngn-net/nestjs-telescope",
3
- "version": "0.2.7",
4
- "builtAt": "2026-06-08T12:38:36.547Z"
3
+ "version": "0.2.8",
4
+ "builtAt": "2026-06-08T12:41:45.083Z"
5
5
  }
@@ -11,6 +11,7 @@ export declare class ModelSubscriber implements EntitySubscriberInterface, OnMod
11
11
  constructor(telescope: TelescopeService, dataSource?: DataSource | undefined);
12
12
  onModuleInit(): void;
13
13
  listenTo(): ObjectConstructor;
14
+ private isTelescopeEntity;
14
15
  afterInsert(event: InsertEvent<any>): void;
15
16
  afterUpdate(event: UpdateEvent<any>): void;
16
17
  afterRemove(event: RemoveEvent<any>): void;
@@ -46,7 +46,14 @@ let ModelSubscriber = ModelSubscriber_1 = class ModelSubscriber {
46
46
  // Listen to all entities
47
47
  return Object;
48
48
  }
49
+ isTelescopeEntity(event) {
50
+ const name = event.metadata?.name;
51
+ const tableName = event.metadata?.tableName;
52
+ return name === 'TelescopeEntry' || tableName === 'telescope_entries';
53
+ }
49
54
  afterInsert(event) {
55
+ if (this.isTelescopeEntity(event))
56
+ return;
50
57
  this.telescope.record({
51
58
  type: entry_type_enum_1.EntryType.MODEL,
52
59
  content: {
@@ -58,6 +65,8 @@ let ModelSubscriber = ModelSubscriber_1 = class ModelSubscriber {
58
65
  }).catch(() => { });
59
66
  }
60
67
  afterUpdate(event) {
68
+ if (this.isTelescopeEntity(event))
69
+ return;
61
70
  this.telescope.record({
62
71
  type: entry_type_enum_1.EntryType.MODEL,
63
72
  content: {
@@ -70,6 +79,8 @@ let ModelSubscriber = ModelSubscriber_1 = class ModelSubscriber {
70
79
  }).catch(() => { });
71
80
  }
72
81
  afterRemove(event) {
82
+ if (this.isTelescopeEntity(event))
83
+ return;
73
84
  this.telescope.record({
74
85
  type: entry_type_enum_1.EntryType.MODEL,
75
86
  content: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngn-net/nestjs-telescope",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },