@nsshunt/stsappframework 3.0.186 → 3.1.1

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.
Files changed (55) hide show
  1. package/build.sh +0 -1
  2. package/dist/authutilsnode.js +3 -9
  3. package/dist/authutilsnode.js.map +1 -1
  4. package/dist/index.js +2 -2
  5. package/dist/index.js.map +1 -1
  6. package/dist/influxdb/influxDBManager.js +15 -18
  7. package/dist/influxdb/influxDBManager.js.map +1 -1
  8. package/dist/influxdb/influxDBManagerAgent.js +1 -4
  9. package/dist/influxdb/influxDBManagerAgent.js.map +1 -1
  10. package/dist/influxdb/influxDBManagerService.js +2 -4
  11. package/dist/influxdb/influxDBManagerService.js.map +1 -1
  12. package/dist/kafka/IMKafkaManager.js +5 -8
  13. package/dist/kafka/IMKafkaManager.js.map +1 -1
  14. package/dist/middleware/serverNetworkMiddleware.js +22 -96
  15. package/dist/middleware/serverNetworkMiddleware.js.map +1 -1
  16. package/dist/publishertransports/publishTransportDirect.js.map +1 -1
  17. package/dist/socketIoServerHelper.js +15 -12
  18. package/dist/socketIoServerHelper.js.map +1 -1
  19. package/dist/{stsTransportLoggerWinston.js → stsAppFrameworkTransportWinston.js} +7 -5
  20. package/dist/stsAppFrameworkTransportWinston.js.map +1 -0
  21. package/dist/{stsTransportDebuggerWinston.js → stsTransportWinston.js} +5 -5
  22. package/dist/stsTransportWinston.js.map +1 -0
  23. package/package.json +1 -1
  24. package/src/authutilsnode.ts +10 -20
  25. package/src/index.ts +2 -2
  26. package/src/influxdb/influxDBManager.ts +15 -19
  27. package/src/influxdb/influxDBManagerAgent.ts +1 -5
  28. package/src/influxdb/influxDBManagerService.ts +1 -5
  29. package/src/kafka/IMKafkaManager.ts +5 -9
  30. package/src/middleware/serverNetworkMiddleware.ts +22 -98
  31. package/src/publishertransports/publishTransportDirect.ts +1 -0
  32. package/src/socketIoServerHelper.ts +12 -13
  33. package/src/stsAppFrameworkTransportWinston.ts +28 -0
  34. package/src/{stsTransportDebuggerWinston.ts → stsTransportWinston.ts} +6 -6
  35. package/types/authutilsnode.d.ts +1 -5
  36. package/types/authutilsnode.d.ts.map +1 -1
  37. package/types/index.d.ts +2 -2
  38. package/types/index.d.ts.map +1 -1
  39. package/types/influxdb/influxDBManager.d.ts.map +1 -1
  40. package/types/influxdb/influxDBManagerAgent.d.ts.map +1 -1
  41. package/types/influxdb/influxDBManagerService.d.ts.map +1 -1
  42. package/types/kafka/IMKafkaManager.d.ts.map +1 -1
  43. package/types/middleware/serverNetworkMiddleware.d.ts.map +1 -1
  44. package/types/publishertransports/publishTransportDirect.d.ts.map +1 -1
  45. package/types/socketIoServerHelper.d.ts.map +1 -1
  46. package/types/stsAppFrameworkTransportWinston.d.ts +12 -0
  47. package/types/stsAppFrameworkTransportWinston.d.ts.map +1 -0
  48. package/types/{stsTransportDebuggerWinston.d.ts → stsTransportWinston.d.ts} +4 -4
  49. package/types/stsTransportWinston.d.ts.map +1 -0
  50. package/dist/stsTransportDebuggerWinston.js.map +0 -1
  51. package/dist/stsTransportLoggerWinston.js.map +0 -1
  52. package/src/stsTransportLoggerWinston.ts +0 -23
  53. package/types/stsTransportDebuggerWinston.d.ts.map +0 -1
  54. package/types/stsTransportLoggerWinston.d.ts +0 -12
  55. package/types/stsTransportLoggerWinston.d.ts.map +0 -1
@@ -283,25 +283,21 @@ export class InfluxDBManager
283
283
  this.#options.logger.error(message);
284
284
  }
285
285
 
286
- #LogDebugMessage(message: any) {
287
- this.#options.logger.debug(message);
288
- }
289
-
290
286
  #BoostrapInfluxDB = async(): Promise<void> => {
291
287
  const tasksAPI = new TasksAPI(this.#client);
292
288
  const tasks: Tasks = await tasksAPI.getTasks({
293
289
  org: 'my-org'
294
290
  });
295
291
  if (tasks.tasks) {
296
- this.#LogDebugMessage(chalk.cyan(`[InfluxDB Tasks] - Count: [${tasks.tasks.length}]`));
292
+ debug(chalk.cyan(`[InfluxDB Tasks] - Count: [${tasks.tasks.length}]`));
297
293
  tasks.tasks.forEach((task: Task) => {
298
- this.#LogDebugMessage(chalk.cyan(`-- [ Start Task Definition ]--`));
299
- this.#LogDebugMessage(chalk.green(`${JSON.stringify(task)}`));
300
- this.#LogDebugMessage(chalk.yellow(`authorizationID: [${task.authorizationID}]`));
301
- this.#LogDebugMessage(chalk.cyan(`-- [ End Task Definition ]--`));
294
+ debug(chalk.cyan(`-- [ Start Task Definition ]--`));
295
+ debug(chalk.green(`${JSON.stringify(task)}`));
296
+ debug(chalk.yellow(`authorizationID: [${task.authorizationID}]`));
297
+ debug(chalk.cyan(`-- [ End Task Definition ]--`));
302
298
  });
303
299
  } else {
304
- this.#LogDebugMessage(chalk.magenta(`[InfluxDB Tasks] - Could not get tasks from the InfluxDB API`));
300
+ debug(chalk.magenta(`[InfluxDB Tasks] - Could not get tasks from the InfluxDB API`));
305
301
  }
306
302
  }
307
303
 
@@ -332,7 +328,7 @@ export class InfluxDBManager
332
328
 
333
329
  Terminate = async () => {
334
330
  if (this.#shuttingDown) {
335
- this.#LogDebugMessage(chalk.yellow(`${_logPrefix}Terminate: Terminate already called. Ignoring.`));
331
+ debug(chalk.yellow(`${_logPrefix}Terminate: Terminate already called. Ignoring.`));
336
332
  } else {
337
333
  this.#shuttingDown = true;
338
334
  if (this.#writeClient) {
@@ -351,7 +347,7 @@ export class InfluxDBManager
351
347
 
352
348
  this.#writeClient = null;
353
349
 
354
- this.#LogDebugMessage(chalk.yellow(`ProducerDisconnect`));
350
+ debug(chalk.yellow(`ProducerDisconnect`));
355
351
  } catch (error) {
356
352
  this.#LogErrorMessage(chalk.red(`${_logPrefix}#Terminate: Error: [${error}]`));
357
353
  }
@@ -446,15 +442,15 @@ export class InfluxDBManager
446
442
  // ... there are more write options that can be customized, see
447
443
  // https://influxdata.github.io/influxdb-client-js/influxdb-client.writeoptions.html and
448
444
  // https://influxdata.github.io/influxdb-client-js/influxdb-client.writeretryoptions.html
449
- writeFailed: (error, lines, attempt, expires) => {
450
- this.#LogDebugMessage(chalk.red(`writeOptions:writeSuccess(): Error: [${error}], Attempt: [${attempt}], Expires: [${expires}], Lines: [${lines}]`));
445
+ writeFailed(error, lines, attempt, expires) {
446
+ debug(chalk.red(`writeOptions:writeSuccess(): Error: [${error}], Attempt: [${attempt}], Expires: [${expires}], Lines: [${lines}]`));
451
447
  },
452
- writeSuccess: (lines) => {
448
+ writeSuccess(lines) {
453
449
  // Needs option
454
- //@@this.#LogDebugMessage(chalk.green(`writeOptions:writeSuccess(): Lines: [${lines}]`));
450
+ //@@debug(chalk.green(`writeOptions:writeSuccess(): Lines: [${lines}]`));
455
451
  },
456
- writeRetrySkipped: (entry) => {
457
- this.#LogDebugMessage(chalk.magenta(`writeOptions:writeSuccess(): Expires: [${entry.expires}], Lines: [${entry.lines}]`));
452
+ writeRetrySkipped(entry) {
453
+ debug(chalk.magenta(`writeOptions:writeSuccess(): Expires: [${entry.expires}], Lines: [${entry.lines}]`));
458
454
  }
459
455
  }
460
456
 
@@ -474,7 +470,7 @@ export class InfluxDBManager
474
470
  await this.#writeClient.flush();
475
471
  const end = performance.now();
476
472
  // Needs option
477
- //@@this.#LogDebugMessage(chalk.gray(`InfluxDB Flush time: [${end-start}]`));
473
+ //@@debug(chalk.gray(`InfluxDB Flush time: [${end-start}]`));
478
474
  attemptCount = 0;
479
475
  StartWriteClient(normalFlushDelay);
480
476
  } catch (error) {
@@ -133,10 +133,6 @@ export class InfluxDBManagerAgent extends InfluxDBManagerBase
133
133
  this.options.logger.error(message);
134
134
  }
135
135
 
136
- #LogDebugMessage(message: any) {
137
- this.options.logger.debug(message);
138
- }
139
-
140
136
  // Queries --------------------------------------------------------------------------------------------------------
141
137
 
142
138
  // Counter metrics
@@ -148,7 +144,7 @@ export class InfluxDBManagerAgent extends InfluxDBManagerBase
148
144
  |> filter(fn: (r) => r["_measurement"] == "${measurement}" ${filterClause})`;
149
145
 
150
146
  if (showOutput) {
151
- this.#LogDebugMessage(`GetSTSCountGenericAgent(): query: [${query}]`);
147
+ debug(`GetSTSCountGenericAgent(): query: [${query}]`);
152
148
  }
153
149
 
154
150
  return this.queryApi.collectRows(query)
@@ -146,10 +146,6 @@ export class InfluxDBManagerService extends InfluxDBManagerBase
146
146
  this.options.logger.error(message);
147
147
  }
148
148
 
149
- #LogDebugMessage(message: any) {
150
- this.options.logger.debug(message);
151
- }
152
-
153
149
  override get modelType(): string {
154
150
  return 'service'
155
151
  }
@@ -187,7 +183,7 @@ data
187
183
  union(tables: [r1, r2])`;
188
184
 
189
185
  if (showOutput) {
190
- this.#LogDebugMessage(`InfluxDBManagerService:GetSTSCountGenericService(): query: [${query}]`);
186
+ debug(`InfluxDBManagerService:GetSTSCountGenericService(): query: [${query}]`);
191
187
  }
192
188
 
193
189
  return this.queryApi.collectRows(query)
@@ -61,10 +61,6 @@ export class IMKafkaManager {
61
61
  this.#options.logger.error(message);
62
62
  }
63
63
 
64
- #LogDebugMessage(message: any) {
65
- this.#options.logger.debug(message);
66
- }
67
-
68
64
  #RaiseError = (msg: string, errorCb: (error: any) => void) => {
69
65
  this.#LogErrorMessage(chalk.red(msg));
70
66
  errorCb(msg);
@@ -84,10 +80,10 @@ export class IMKafkaManager {
84
80
  Terminate = async (errorCb: (error: any) => void): Promise<void> => {
85
81
  try {
86
82
  if (this.#shuttingDown) {
87
- this.#LogDebugMessage(chalk.yellow(`${process.pid}:IMKafkaManager:Terminate: Terminate already called. Ignoring.`));
83
+ debug(chalk.yellow(`${process.pid}:IMKafkaManager:Terminate: Terminate already called. Ignoring.`));
88
84
  } else {
89
85
  this.#shuttingDown = true;
90
- this.#LogDebugMessage(chalk.yellow(`${process.pid}:ProducerDisconnect`));
86
+ debug(chalk.yellow(`${process.pid}:ProducerDisconnect`));
91
87
  if (this.#producer) {
92
88
  await this.#producer.Disconnect((error) => {
93
89
  this.#RaiseError(`${process.pid}:IMKafkaManager:Terminate(): Error in producer.Disconnect: [${error}]`, errorCb);
@@ -103,7 +99,7 @@ export class IMKafkaManager {
103
99
  const topic = topicRaw.toLowerCase();
104
100
  try {
105
101
  if (!this.#topics[topic]) {
106
- this.#LogDebugMessage(chalk.yellow(`${process.pid}:IMKafkaManager:OutputLogsToKafkaTopic(): Setting up kafka topic: [${topic}] Starting`));
102
+ debug(chalk.yellow(`${process.pid}:IMKafkaManager:OutputLogsToKafkaTopic(): Setting up kafka topic: [${topic}] Starting`));
107
103
  this.#topics[topic] = true;
108
104
 
109
105
  let createTopicError = false;
@@ -113,9 +109,9 @@ export class IMKafkaManager {
113
109
  });
114
110
  if (!createTopicError) {
115
111
  if (result) {
116
- this.#LogDebugMessage(chalk.yellow(`${process.pid}:IMKafkaManager:OutputLogsToKafkaTopic(): Setting up kafka topic: [${topic}] Completed`));
112
+ debug(chalk.yellow(`${process.pid}:IMKafkaManager:OutputLogsToKafkaTopic(): Setting up kafka topic: [${topic}] Completed`));
117
113
  } else {
118
- this.#LogDebugMessage(chalk.cyan(`${process.pid}:IMKafkaManager:OutputLogsToKafkaTopic(): Setting up kafka topic: [${topic}] Completed - topic already exists`));
114
+ debug(chalk.cyan(`${process.pid}:IMKafkaManager:OutputLogsToKafkaTopic(): Setting up kafka topic: [${topic}] Completed - topic already exists`));
119
115
  }
120
116
  }
121
117
  }
@@ -51,58 +51,6 @@ export class ServerNetworkMiddleware extends STSOptionsBase
51
51
  }
52
52
  }
53
53
 
54
- #LogDebugMessage2(message: any) {
55
- try {
56
- this.options?.logger.debug(message);
57
- } catch (error) {
58
- console.log(`*********************************************************************************`)
59
- console.log(`*********************************************************************************`)
60
- console.log(`*********************************************************************************`)
61
- console.log(`*********************************************************************************`)
62
- console.log(`*********************************************************************************`)
63
- console.log(`*********************************************************************************`)
64
- console.log(`*********************************************************************************`)
65
- console.log(`*********************************************************************************`)
66
- console.error(error);
67
- }
68
- }
69
-
70
- #LogDebugMessage(message: any) {
71
- console.log(`*********************************************************************************`)
72
- console.log(`*********************************************************************************`)
73
- console.log(`*********************************************************************************`)
74
- console.log(`*********************************************************************************`)
75
- console.log(`*********************************************************************************`)
76
- console.log(`*********************************************************************************`)
77
- console.log(`*********************************************************************************`)
78
- console.log(`*********************************************************************************`)
79
- setImmediate(() => {
80
- if (this.options) {
81
- try {
82
- console.log(`*********************************************************************************`)
83
- console.log(`*********************************************************************************`)
84
- console.log(`*********************************************************************************`)
85
- console.log(`*********************************************************************************`)
86
- console.log(`*********************************************************************************`)
87
- console.log(`*********************************************************************************`)
88
- console.log(`*********************************************************************************`)
89
- console.log(`*********************************************************************************`)
90
- this.options?.logger.debug(message)
91
- } catch (error) {
92
- console.log(`*********************************************************************************`)
93
- console.log(`*********************************************************************************`)
94
- console.log(`*********************************************************************************`)
95
- console.log(`*********************************************************************************`)
96
- console.log(`*********************************************************************************`)
97
- console.log(`*********************************************************************************`)
98
- console.log(`*********************************************************************************`)
99
- console.log(`*********************************************************************************`)
100
- console.error(error);
101
- }
102
- }
103
- });
104
- }
105
-
106
54
  on(eventName: ServerNetworkMiddlewareEventName, callBackFn: ServerNetworkMiddlewareEventFunc) {
107
55
  this.#tinyEmitter.on(eventName, callBackFn);
108
56
  }
@@ -126,12 +74,12 @@ export class ServerNetworkMiddleware extends STSOptionsBase
126
74
  workingSocketRecord.requestBytesRead = workingSocketRecord.currentBytesRead - workingSocketRecord.lastBytesRead;
127
75
  workingSocketRecord.requestBytesWritten = workingSocketRecord.currentBytesWritten - workingSocketRecord.lastBytesWritten;
128
76
 
129
- //this.#LogDebugMessage(chalk.gray(`totalBytesRead: [${workingSocketRecord.id}] [${workingSocketRecord.originalUrl}] [${eventName}] [${workingSocketRecord.requestBytesRead}]`));
130
- //this.#LogDebugMessage(chalk.gray(`totalBytesWritten: [${workingSocketRecord.id}] [${workingSocketRecord.originalUrl}] [${eventName}] [${workingSocketRecord.requestBytesWritten}]`));
77
+ //this.#debug(chalk.gray(`totalBytesRead: [${workingSocketRecord.id}] [${workingSocketRecord.originalUrl}] [${eventName}] [${workingSocketRecord.requestBytesRead}]`));
78
+ //this.#debug(chalk.gray(`totalBytesWritten: [${workingSocketRecord.id}] [${workingSocketRecord.originalUrl}] [${eventName}] [${workingSocketRecord.requestBytesWritten}]`));
131
79
 
132
80
  const workingSocketEventRecord = { ...workingSocketRecord };
133
81
  delete (workingSocketEventRecord as any).socket;
134
- this.#LogDebugMessage(chalk.gray(`Sending event: [${JSON.stringify(workingSocketEventRecord)}]`));
82
+ this.#debug(chalk.gray(`Sending event: [${JSON.stringify(workingSocketEventRecord)}]`));
135
83
  this.#tinyEmitter.emit(ServerNetworkMiddlewareEventName.UpdateInstrument_SERVER_NET_VAL, workingSocketEventRecord);
136
84
 
137
85
  workingSocketRecord.lastBytesRead = workingSocketRecord.currentBytesRead;
@@ -150,7 +98,7 @@ export class ServerNetworkMiddleware extends STSOptionsBase
150
98
  }
151
99
  return contentLength;
152
100
  } catch (error) {
153
- this.#LogDebugMessage(chalk.red(`ServerNetworkMiddleware:#GetRequestContentSize(): Error: [${error}]`));
101
+ this.#debug(chalk.red(`ServerNetworkMiddleware:#GetRequestContentSize(): Error: [${error}]`));
154
102
  return 0;
155
103
  }
156
104
  }
@@ -177,37 +125,37 @@ export class ServerNetworkMiddleware extends STSOptionsBase
177
125
 
178
126
  this.#socketCollection[workingSocketRecord.id] = workingSocketRecord;
179
127
 
180
- this.#LogDebugMessage(chalk.gray(`Adding new socket to recordset: ID: [${workingSocketRecord.id}], originalUrl: [${workingSocketRecord.originalUrl}]`));
128
+ this.#debug(chalk.gray(`Adding new socket to recordset: ID: [${workingSocketRecord.id}], originalUrl: [${workingSocketRecord.originalUrl}]`));
181
129
 
182
130
  workingSocketRecord.socket.on('data', () => {
183
131
  const socketRecord = this.GetSocketRecord((workingSocketRecord as ISocketRecord).socket);
184
132
  if (socketRecord) {
185
- this.#LogDebugMessage(chalk.gray(`Socket data event: ID: [${socketRecord.id}], originalUrl: [${socketRecord.originalUrl}]`));
133
+ this.#debug(chalk.gray(`Socket data event: ID: [${socketRecord.id}], originalUrl: [${socketRecord.originalUrl}]`));
186
134
  this.UpdateNetworkStats(socketRecord, 'socket_data', req);
187
135
  } else {
188
- this.#LogDebugMessage(chalk.magenta(`Socket data event: Could not find socket within recordset`));
136
+ this.#debug(chalk.magenta(`Socket data event: Could not find socket within recordset`));
189
137
  }
190
138
  });
191
139
 
192
140
  workingSocketRecord.socket.on('close', () => {
193
141
  const socketRecord = this.GetSocketRecord((workingSocketRecord as ISocketRecord).socket);
194
142
  if (socketRecord) {
195
- this.#LogDebugMessage(chalk.gray(`Socket close event: ID: [${socketRecord.id}], originalUrl: [${socketRecord.originalUrl}]`));
143
+ this.#debug(chalk.gray(`Socket close event: ID: [${socketRecord.id}], originalUrl: [${socketRecord.originalUrl}]`));
196
144
  this.UpdateNetworkStats(socketRecord, 'socket_close', req);
197
145
  delete this.#socketCollection[socketRecord.id];
198
- this.#LogDebugMessage(chalk.gray(`Socket removed from recordset: ID: [${socketRecord.id}], originalUrl: [${socketRecord.originalUrl}]`));
146
+ this.#debug(chalk.gray(`Socket removed from recordset: ID: [${socketRecord.id}], originalUrl: [${socketRecord.originalUrl}]`));
199
147
  } else {
200
- this.#LogDebugMessage(chalk.magenta(`Socket close event: Could not find socket within recordset`));
148
+ this.#debug(chalk.magenta(`Socket close event: Could not find socket within recordset`));
201
149
  }
202
150
  });
203
151
 
204
152
  workingSocketRecord.socket.on('end', () => {
205
153
  const socketRecord = this.GetSocketRecord((workingSocketRecord as ISocketRecord).socket);
206
154
  if (socketRecord) {
207
- this.#LogDebugMessage(chalk.gray(`Socket end event: ID: [${socketRecord.id}], originalUrl: [${socketRecord.originalUrl}]`));
155
+ this.#debug(chalk.gray(`Socket end event: ID: [${socketRecord.id}], originalUrl: [${socketRecord.originalUrl}]`));
208
156
  this.UpdateNetworkStats(socketRecord, 'socket_end', req);
209
157
  } else {
210
- this.#LogDebugMessage(chalk.magenta(`Socket end event: Could not find socket within recordset`));
158
+ this.#debug(chalk.magenta(`Socket end event: Could not find socket within recordset`));
211
159
  }
212
160
  });
213
161
  }
@@ -232,27 +180,27 @@ export class ServerNetworkMiddleware extends STSOptionsBase
232
180
  const headerLength = JSON.stringify(res.getHeaders()).length;
233
181
  const totalSize = contentLength + headerLength;
234
182
 
235
- this.#LogDebugMessage(chalk.white.bgBlue(`contentLength: [${contentLength}], headerLength: [${headerLength}], total Size: [${totalSize}]`));
183
+ this.#debug(chalk.white.bgBlue(`contentLength: [${contentLength}], headerLength: [${headerLength}], total Size: [${totalSize}]`));
236
184
  });
237
185
 
238
186
  // This event is the one where bytesWritten is generally recorded
239
187
  req.on('end', () => {
240
188
  const socketRecord = this.GetSocketRecord(req.socket);
241
189
  if (socketRecord) {
242
- this.#LogDebugMessage(chalk.gray(`Request end event: ID: [${socketRecord.id}], originalUrl: [${socketRecord.originalUrl}]`))
190
+ this.#debug(chalk.gray(`Request end event: ID: [${socketRecord.id}], originalUrl: [${socketRecord.originalUrl}]`))
243
191
  this.UpdateNetworkStats(socketRecord, 'req_end', req);
244
192
  } else {
245
- this.#LogDebugMessage(chalk.magenta(`Request end event: Could not find socket within recordset`));
193
+ this.#debug(chalk.magenta(`Request end event: Could not find socket within recordset`));
246
194
  }
247
195
  });
248
196
 
249
197
  req.on('close', () => {
250
198
  const socketRecord = this.GetSocketRecord(req.socket);
251
199
  if (socketRecord) {
252
- this.#LogDebugMessage(chalk.gray(`Request close event: ID: [${socketRecord.id}], originalUrl: [${socketRecord.originalUrl}]`));
200
+ this.#debug(chalk.gray(`Request close event: ID: [${socketRecord.id}], originalUrl: [${socketRecord.originalUrl}]`));
253
201
  this.UpdateNetworkStats(socketRecord, 'req_close', req);
254
202
  } else {
255
- this.#LogDebugMessage(chalk.magenta(`Request close event: Could not find socket within recordset`));
203
+ this.#debug(chalk.magenta(`Request close event: Could not find socket within recordset`));
256
204
  }
257
205
  });
258
206
 
@@ -260,20 +208,20 @@ export class ServerNetworkMiddleware extends STSOptionsBase
260
208
  req.on('data', () => {
261
209
  workingSocketRecord = this.GetSocketRecord(req.socket);
262
210
  if (workingSocketRecord) {
263
- this.#LogDebugMessage(chalk.gray(`Request close event: ID: [${workingSocketRecord.id}], originalUrl: [${workingSocketRecord.originalUrl}]`));
211
+ this.#debug(chalk.gray(`Request close event: ID: [${workingSocketRecord.id}], originalUrl: [${workingSocketRecord.originalUrl}]`));
264
212
  this.UpdateNetworkStats(workingSocketRecord, 'data', req);
265
213
  } else {
266
- this.#LogDebugMessage(chalk.magenta(`Request close event: Could not find socket within recordset`));
214
+ this.#debug(chalk.magenta(`Request close event: Could not find socket within recordset`));
267
215
  }
268
216
  });
269
217
 
270
218
  req.on('readable', () => {
271
219
  workingSocketRecord = this.GetSocketRecord(req.socket);
272
220
  if (workingSocketRecord) {
273
- this.#LogDebugMessage(chalk.gray(`Request close event: ID: [${workingSocketRecord.id}], originalUrl: [${workingSocketRecord.originalUrl}]`));
221
+ this.#debug(chalk.gray(`Request close event: ID: [${workingSocketRecord.id}], originalUrl: [${workingSocketRecord.originalUrl}]`));
274
222
  this.UpdateNetworkStats(workingSocketRecord, 'readable', req);
275
223
  } else {
276
- this.#LogDebugMessage(chalk.magenta(`Request close event: Could not find socket within recordset`));
224
+ this.#debug(chalk.magenta(`Request close event: Could not find socket within recordset`));
277
225
  }
278
226
  });
279
227
  */
@@ -282,35 +230,11 @@ export class ServerNetworkMiddleware extends STSOptionsBase
282
230
  const inContentLength = this.#GetRequestContentSize(req);
283
231
  const inTotal = inHeadersLength + inContentLength;
284
232
 
285
- this.#LogDebugMessage(chalk.white.bgGray(`inHeadersLength: [${inHeadersLength}], inContentLength: [${inContentLength}], inTotal: [${inTotal}]`));
233
+ this.#debug(chalk.white.bgGray(`inHeadersLength: [${inHeadersLength}], inContentLength: [${inContentLength}], inTotal: [${inTotal}]`));
286
234
 
287
235
  // This event is the one where bytesRead is generally recorded
288
236
  this.UpdateNetworkStats(workingSocketRecord, 'middleware', req);
289
237
 
290
- console.log(`*********************************************************************************`)
291
- console.log(`*********************************************************************************`)
292
- console.log(`*********************************************************************************`)
293
- console.log(`*********************************************************************************`)
294
- console.log(`*********************************************************************************`)
295
- console.log(`*********************************************************************************`)
296
- console.log(`*********************************************************************************`)
297
- console.log(`*********************************************************************************`)
298
-
299
- debug('*****************************************************************************')
300
- debug('*****************************************************************************')
301
- debug('*****************************************************************************')
302
- debug('*****************************************************************************')
303
- debug('*****************************************************************************')
304
- debug('*****************************************************************************')
305
- debug('*****************************************************************************')
306
- debug('*****************************************************************************')
307
- debug('*****************************************************************************')
308
- debug('*****************************************************************************')
309
- debug('*****************************************************************************')
310
- debug('*****************************************************************************')
311
- debug('*****************************************************************************')
312
- debug('*****************************************************************************')
313
-
314
238
  next();
315
239
  }
316
240
  }
@@ -1,6 +1,7 @@
1
1
  /* eslint @typescript-eslint/no-explicit-any: 0, @typescript-eslint/no-unused-vars: 0 */ // --> OFF
2
2
 
3
3
  //import Debug from "debug";
4
+ //const debug = Debug(`proc:${process.pid}:PublishRESTServer`);
4
5
 
5
6
  import { IPublisherTransport, IInstrumentPayload } from '@nsshunt/stspublisherserver'
6
7
  import { IMKafkaManager } from './../kafka/IMKafkaManager'
@@ -1,4 +1,7 @@
1
1
  /* eslint @typescript-eslint/no-explicit-any: 0, @typescript-eslint/no-unused-vars: 0 */ // --> OFF
2
+ import Debug from "debug";
3
+ const debug = Debug(`proc:${process.pid}:socketiohelper`);
4
+
2
5
  import { JSONObject, ISTSLogger } from '@nsshunt/stsutils'
3
6
 
4
7
  import { Server, Namespace, Socket } from "socket.io";
@@ -23,10 +26,6 @@ export class SocketIoServerHelper<ClientToServerEvents extends STSDefaultClientT
23
26
 
24
27
  #namespace: Record<string, STSSocketIONamespace> = { };
25
28
 
26
- #LogDebugMessage(message: any) {
27
- this.#socketIoServerHelperOptions.logger.debug(message);
28
- }
29
-
30
29
  LogMessage = (namespace: STSSocketIONamespace, message: string): void => {
31
30
 
32
31
  this.#socketIoServerHelperOptions.logger.info(`${namespace.namespace}: ${message}`);
@@ -39,32 +38,32 @@ export class SocketIoServerHelper<ClientToServerEvents extends STSDefaultClientT
39
38
 
40
39
  LeaveRoom = (namespace: STSSocketIONamespace, socket: Socket<ClientToServerEvents, ServerToClientEvents>, room: string): void => {
41
40
  const logMessage = `${namespace.socketionamespace.name}: Leaving room [${room}]`;
42
- this.#LogDebugMessage(logMessage);
41
+ debug(logMessage);
43
42
  this.LogMessage(namespace, logMessage);
44
43
  socket.leave(room);
45
44
  };
46
45
 
47
46
  JoinRoom = (namespace: STSSocketIONamespace, socket: Socket<ClientToServerEvents, ServerToClientEvents>, room: string): void => {
48
47
  const logMessage = `${namespace.socketionamespace.name}: Socket joining room [${room}], ID: [${socket.id}]`;
49
- this.#LogDebugMessage(logMessage);
48
+ debug(logMessage);
50
49
  this.LogMessage(namespace, logMessage);
51
50
  socket.join(room);
52
51
  };
53
52
 
54
53
  #SetupStandardEvents = (namespace: STSSocketIONamespace, socket: Socket<STSDefaultClientToServerEvents, STSDefaultServerToClientEvents>): void => {
55
54
  socket.on("__STSdisconnect", (reason) => {
56
- this.#LogDebugMessage(`${namespace.socketionamespace.name}: socket disconnect, ID: [${socket.id}] [${reason}]`);
55
+ debug(`${namespace.socketionamespace.name}: socket disconnect, ID: [${socket.id}] [${reason}]`);
57
56
  });
58
57
 
59
58
  socket.on("__STSdisconnecting", (reason, callBackResult) => {
60
- this.#LogDebugMessage(`${namespace.socketionamespace.name}: socket disconnecting, ID: [${socket.id}] [${reason}]`);
59
+ debug(`${namespace.socketionamespace.name}: socket disconnecting, ID: [${socket.id}] [${reason}]`);
61
60
  callBackResult("__STSdisconnecting accepted by server.");
62
61
  });
63
62
 
64
63
  socket.on('__STSjoinRoom', (rooms: string[]): void => { //@@ names
65
64
  rooms.forEach((room) => {
66
65
  const logMessage = `${namespace.socketionamespace.name}:socket.on:joinRoom: Socket joining room [${room}], ID: [${socket.id}]`;
67
- this.#LogDebugMessage(logMessage);
66
+ debug(logMessage);
68
67
  this.JoinRoom(namespace, socket, room)
69
68
  });
70
69
  });
@@ -72,7 +71,7 @@ export class SocketIoServerHelper<ClientToServerEvents extends STSDefaultClientT
72
71
  socket.on('__STSleaveRoom', (rooms: string[]): void => { //@@ names
73
72
  rooms.forEach((room) => {
74
73
  const logMessage = `${namespace.socketionamespace.name}:socket.on:joinRoom: Socket leaving room [${room}], ID: [${socket.id}]`;
75
- this.#LogDebugMessage(logMessage);
74
+ debug(logMessage);
76
75
  this.LeaveRoom(namespace, socket, room);
77
76
  });
78
77
  });
@@ -80,7 +79,7 @@ export class SocketIoServerHelper<ClientToServerEvents extends STSDefaultClientT
80
79
  socket.on('__STSsendToRoom', (rooms: string[], payload: { command: string, payload: JSONObject }): void => {
81
80
  rooms.forEach((room) => {
82
81
  const logMessage = `${namespace.socketionamespace.name}:socket.on:sendToRoom: Sending to room [${room}], ID: [${socket.id}]`;
83
- this.#LogDebugMessage(logMessage);
82
+ debug(logMessage);
84
83
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
85
84
  namespace.socketionamespace.to(room).emit(payload.command as any, payload);
86
85
  });
@@ -132,9 +131,9 @@ export class SocketIoServerHelper<ClientToServerEvents extends STSDefaultClientT
132
131
 
133
132
  this.#namespace[namespace].socketionamespace.on("connection", socket => {
134
133
  const logMessage = `${namespace}: Socket connected, ID: [${socket.id}]`;
135
- this.#LogDebugMessage(logMessage);
134
+ debug(logMessage);
136
135
  this.LogMessage(this.#namespace[namespace], logMessage);
137
- this.#LogDebugMessage(`${namespace}: Authentication Handshake: [${JSON.stringify(socket.handshake.auth)}]`);
136
+ debug(`${namespace}: Authentication Handshake: [${JSON.stringify(socket.handshake.auth)}]`);
138
137
 
139
138
  this.#SetupMessageMiddleware(socket);
140
139
 
@@ -0,0 +1,28 @@
1
+ /* eslint @typescript-eslint/no-explicit-any: 0 */ // --> OFF
2
+ import Transport, { TransportStreamOptions } from 'winston-transport'
3
+
4
+ import { IProcessBase } from './commonTypes'
5
+
6
+ export interface ISTSAppFrameworkTransportWinstonOptions extends TransportStreamOptions {
7
+ stsContext: string
8
+ app: IProcessBase
9
+ }
10
+
11
+ export class STSAppFrameworkTransportWinston extends Transport {
12
+
13
+ #options: ISTSAppFrameworkTransportWinstonOptions;
14
+
15
+ constructor(opts: ISTSAppFrameworkTransportWinstonOptions) {
16
+ super(opts);
17
+ this.#options = opts;
18
+ }
19
+
20
+ log(info: any, callback: any) {
21
+ //setImmediate(() => {
22
+ this.#options.app.LogEx(info.message);
23
+
24
+ this.emit('logged', info);
25
+ callback();
26
+ //});
27
+ }
28
+ }
@@ -3,25 +3,25 @@ import Transport, { TransportStreamOptions } from 'winston-transport'
3
3
 
4
4
  import debugModule from 'debug'
5
5
 
6
- export interface ISTSTransportDebuggerWinstonOptions extends TransportStreamOptions {
6
+ export interface ISTSTransportWinstonOptions extends TransportStreamOptions {
7
7
  stsContext: string
8
8
  debugger?: debugModule.Debugger
9
9
  }
10
10
 
11
11
  export function UpdateSTSTransportWithDebugger(logger: any, newDebugger: any): void {
12
12
  const stsTransport: Transport | undefined = logger.transports.find((transport: any) => {
13
- return transport instanceof STSTransportDebuggerWinston
13
+ return transport instanceof STSTransportWinston
14
14
  });
15
15
  if (stsTransport) {
16
- (stsTransport as STSTransportDebuggerWinston).debugger = newDebugger
16
+ (stsTransport as STSTransportWinston).debugger = newDebugger
17
17
  }
18
18
  }
19
19
 
20
- export class STSTransportDebuggerWinston extends Transport {
20
+ export class STSTransportWinston extends Transport {
21
21
 
22
- #options: ISTSTransportDebuggerWinstonOptions;
22
+ #options: ISTSTransportWinstonOptions;
23
23
 
24
- constructor(opts: ISTSTransportDebuggerWinstonOptions) {
24
+ constructor(opts: ISTSTransportWinstonOptions) {
25
25
  super(opts);
26
26
  this.#options = opts;
27
27
  }
@@ -1,5 +1,4 @@
1
1
  import tough from 'tough-cookie';
2
- import { ISTSLogger } from '@nsshunt/stsutils';
3
2
  import { PublishInstrumentControllerV2 } from '@nsshunt/stspublisherserver';
4
3
  export interface IAuthUtilsNodeOptions {
5
4
  permissions: string[];
@@ -11,12 +10,9 @@ export interface IGetAPITokenFromAuthServerUsingScopeOptions {
11
10
  endPoint: string;
12
11
  instrumentController?: PublishInstrumentControllerV2;
13
12
  }
14
- export interface IAuthUtilsNodeOptions {
15
- logger: ISTSLogger;
16
- }
17
13
  export declare class AuthUtilsNode {
18
14
  #private;
19
- constructor(options: IAuthUtilsNodeOptions);
15
+ constructor();
20
16
  VerifyRequestMiddlewareFactory(options: IAuthUtilsNodeOptions): (req: any, res: any, next: any) => Promise<void>;
21
17
  verifyRequestMiddleware(req: any, res: any, next: any): Promise<void>;
22
18
  SetCookiesToJar: (headers: Record<string, any>, endpoint: string) => Promise<tough.Cookie[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"authutilsnode.d.ts","sourceRoot":"","sources":["../src/authutilsnode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AAajC,OAAO,EAAmB,UAAU,EAAc,MAAM,mBAAmB,CAAA;AAQ3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAA;AAG3E,MAAM,WAAW,qBAAqB;IAClC,WAAW,EAAE,MAAM,EAAE,CAAA;CACxB;AAsBD,MAAM,WAAW,2CAA2C;IACxD,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,EAAE,MAAM,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,CAAC,EAAE,6BAA6B,CAAA;CACvD;AAED,MAAM,WAAW,qBAAqB;IAClC,MAAM,EAAE,UAAU,CAAA;CACrB;AAED,qBAAa,aAAa;;gBAQV,OAAO,EAAE,qBAAqB;IA0B1C,8BAA8B,CAAC,OAAO,EAAE,qBAAqB,SAE9B,GAAG,OAAO,GAAG,QAAQ,GAAG;IAqCjD,uBAAuB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG;IAyB3D,eAAe,YAAmB,OAAO,MAAM,EAAE,GAAG,CAAC,YAAY,MAAM,KAAG,QAAQ,MAAM,MAAM,EAAE,CAAC,CAgB/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AmB,2CAA2C,mBAAmB,KAAK,KAAK,IAAI,KAAG,QAAQ,MAAM,CAAC,CAuGnJ;CA4FJ"}
package/types/index.d.ts CHANGED
@@ -20,6 +20,6 @@ export * from './influxdb/influxDBManagerService';
20
20
  export * from './influxdb/influxDBManagerAgent';
21
21
  export * from './publishertransports/publishTransportUtils';
22
22
  export * from './instrumentationsubscriber';
23
- export * from './stsTransportDebuggerWinston';
24
- export * from './stsTransportLoggerWinston';
23
+ export * from './stsTransportWinston';
24
+ export * from './stsAppFrameworkTransportWinston';
25
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,mCAAmC,CAAA;AACjD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;A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AAE,OAAO,EAAE,MAAM,EAAE,GAAG,UAAU;IAW9E,IAAI,WAAW,IAAI,QAAQ,CAwG1B;IAIK,cAAc,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;CAe/E"}
1
+ {"version":3,"file":"influxDBManager.d.ts","sourceRoot":"","sources":["../../src/influxdb/influxDBManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,QAAQ,EAAgD,MAAM,6BAA6B,CAAA;AAQ9G,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAI1D,OAAO,EAAE,sBAAsB,EAAC,MAAM,0BAA0B,CAAA;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAA2B,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAkM7E,qBAAa,eAAe;;gBAiBZ,MAAM,EAAE,UAAU;IA6E9B,2BAA2B,CAAC,SAAS,EAAE,MAAM;IAa7C,IAAI,cAAc,IAAI,sBAAsB,CAE3C;IAED,IAAI,YAAY,IAAI,oBAAoB,CAEvC;IAED,KAAK,sBAEJ;IAED,SAAS,sBA2BR;IAQD,sBAAsB,aAAc,GAAG,EAAE,SAUxC;IAGD,kBAAkB,CAAC,eAAe,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,UAAU;IAW9E,IAAI,WAAW,IAAI,QAAQ,CAwG1B;IAIK,cAAc,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;CAe/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"influxDBManagerAgent.d.ts","sourceRoot":"","sources":["../../src/influxdb/influxDBManagerAgent.ts"],"names":[],"mappings":";AAuGA,OAAO,EAAS,QAAQ,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAIvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,EAAE,uBAAuB,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 {"version":3,"file":"influxDBManagerService.d.ts","sourceRoot":"","sources":["../../src/influxdb/influxDBManagerService.ts"],"names":[],"mappings":";AAgHA,OAAO,EAAS,QAAQ,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAIvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAC7E,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAmBpF,qBAAa,sBAAuB,SAAQ,mBAAmB;;gBAE/C,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,QAAQ;IAQhE,IAAa,SAAS,IAAI,MAAM,CAE/B;IA6FK,6BAA6B,CAAC,eAAe,EAAE,gBAAgB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAkB/F,yBAAyB,CAAC,eAAe,EAAE,gBAAgB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAmB3F,kCAAkC,CAAC,eAAe,EAAE,gBAAgB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAmBpG,iCAAiC,CAAC,eAAe,EAAE,gBAAgB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAsBnG,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;CAgEnG"}
@@ -1 +1 @@
1
- {"version":3,"file":"IMKafkaManager.d.ts","sourceRoot":"","sources":["../../src/kafka/IMKafkaManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAIpD,OAAO,EAAE,YAAY,EAAuB,MAAM,gBAAgB,CAAA;AAGlE,OAAO,EAAE,UAAU,EAAc,MAAM,mBAAmB,CAAA;AAW1D,MAAM,WAAW,qBAAqB;IAClC,MAAM,EAAE,UAAU,CAAA;CACrB;AAGD,qBAAa,cAAc;;gBAQX,OAAO,EAAE,qBAAqB;IAwC1C,IAAI,EAAE,IAAI,YAAY,CAErB;IAED,KAAK,oBAA2B,GAAG,KAAK,IAAI,KAAG,QAAQ,IAAI,CAAC,CAK3D;IAED,SAAS,oBAA2B,GAAG,KAAK,IAAI,KAAG,QAAQ,IAAI,CAAC,CAgB/D;IA4CK,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC;CA+D1G"}
1
+ {"version":3,"file":"IMKafkaManager.d.ts","sourceRoot":"","sources":["../../src/kafka/IMKafkaManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAIpD,OAAO,EAAE,YAAY,EAAuB,MAAM,gBAAgB,CAAA;AAGlE,OAAO,EAAE,UAAU,EAAc,MAAM,mBAAmB,CAAA;AAW1D,MAAM,WAAW,qBAAqB;IAClC,MAAM,EAAE,UAAU,CAAA;CACrB;AAGD,qBAAa,cAAc;;gBAQX,OAAO,EAAE,qBAAqB;IAoC1C,IAAI,EAAE,IAAI,YAAY,CAErB;IAED,KAAK,oBAA2B,GAAG,KAAK,IAAI,KAAG,QAAQ,IAAI,CAAC,CAK3D;IAED,SAAS,oBAA2B,GAAG,KAAK,IAAI,KAAG,QAAQ,IAAI,CAAC,CAgB/D;IA4CK,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC;CA+D1G"}
@@ -1 +1 @@
1
- {"version":3,"file":"serverNetworkMiddleware.d.ts","sourceRoot":"","sources":["../../src/middleware/serverNetworkMiddleware.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAA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