@nsshunt/stsappframework 3.0.187 → 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 +29 -80
  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 +28 -82
  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
  }
@@ -40,45 +40,15 @@ export class ServerNetworkMiddleware extends STSOptionsBase
40
40
  #tinyEmitter: TinyEmitter = new TinyEmitter();
41
41
  #socketCollection: Record<string, ISocketRecord> = { };
42
42
  #id: string = '';
43
+ #debug: any;
43
44
 
44
45
  constructor(options: IServerNetworkMiddleware) {
45
46
  super(options);
46
- }
47
-
48
- #LogDebugMessage(message: any) {
49
- console.log(`*********************************************************************************`)
50
- console.log(`*********************************************************************************`)
51
- console.log(`*********************************************************************************`)
52
- console.log(`*********************************************************************************`)
53
- console.log(`*********************************************************************************`)
54
- console.log(`*********************************************************************************`)
55
- console.log(`*********************************************************************************`)
56
- console.log(`*********************************************************************************`)
57
- setImmediate(() => {
58
- if (this.options) {
59
- try {
60
- console.log(`*********************************************************************************`)
61
- console.log(`*********************************************************************************`)
62
- console.log(`*********************************************************************************`)
63
- console.log(`*********************************************************************************`)
64
- console.log(`*********************************************************************************`)
65
- console.log(`*********************************************************************************`)
66
- console.log(`*********************************************************************************`)
67
- console.log(`*********************************************************************************`)
68
- this.options?.logger.debug(message)
69
- } catch (error) {
70
- console.log(`*********************************************************************************`)
71
- console.log(`*********************************************************************************`)
72
- console.log(`*********************************************************************************`)
73
- console.log(`*********************************************************************************`)
74
- console.log(`*********************************************************************************`)
75
- console.log(`*********************************************************************************`)
76
- console.log(`*********************************************************************************`)
77
- console.log(`*********************************************************************************`)
78
- console.error(error);
79
- }
80
- }
81
- });
47
+ if (options.outputDebug) {
48
+ this.#debug = debug;
49
+ } else {
50
+ this.#debug = () => { };
51
+ }
82
52
  }
83
53
 
84
54
  on(eventName: ServerNetworkMiddlewareEventName, callBackFn: ServerNetworkMiddlewareEventFunc) {
@@ -104,12 +74,12 @@ export class ServerNetworkMiddleware extends STSOptionsBase
104
74
  workingSocketRecord.requestBytesRead = workingSocketRecord.currentBytesRead - workingSocketRecord.lastBytesRead;
105
75
  workingSocketRecord.requestBytesWritten = workingSocketRecord.currentBytesWritten - workingSocketRecord.lastBytesWritten;
106
76
 
107
- //this.#LogDebugMessage(chalk.gray(`totalBytesRead: [${workingSocketRecord.id}] [${workingSocketRecord.originalUrl}] [${eventName}] [${workingSocketRecord.requestBytesRead}]`));
108
- //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}]`));
109
79
 
110
80
  const workingSocketEventRecord = { ...workingSocketRecord };
111
81
  delete (workingSocketEventRecord as any).socket;
112
- this.#LogDebugMessage(chalk.gray(`Sending event: [${JSON.stringify(workingSocketEventRecord)}]`));
82
+ this.#debug(chalk.gray(`Sending event: [${JSON.stringify(workingSocketEventRecord)}]`));
113
83
  this.#tinyEmitter.emit(ServerNetworkMiddlewareEventName.UpdateInstrument_SERVER_NET_VAL, workingSocketEventRecord);
114
84
 
115
85
  workingSocketRecord.lastBytesRead = workingSocketRecord.currentBytesRead;
@@ -128,7 +98,7 @@ export class ServerNetworkMiddleware extends STSOptionsBase
128
98
  }
129
99
  return contentLength;
130
100
  } catch (error) {
131
- this.#LogDebugMessage(chalk.red(`ServerNetworkMiddleware:#GetRequestContentSize(): Error: [${error}]`));
101
+ this.#debug(chalk.red(`ServerNetworkMiddleware:#GetRequestContentSize(): Error: [${error}]`));
132
102
  return 0;
133
103
  }
134
104
  }
@@ -155,37 +125,37 @@ export class ServerNetworkMiddleware extends STSOptionsBase
155
125
 
156
126
  this.#socketCollection[workingSocketRecord.id] = workingSocketRecord;
157
127
 
158
- 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}]`));
159
129
 
160
130
  workingSocketRecord.socket.on('data', () => {
161
131
  const socketRecord = this.GetSocketRecord((workingSocketRecord as ISocketRecord).socket);
162
132
  if (socketRecord) {
163
- 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}]`));
164
134
  this.UpdateNetworkStats(socketRecord, 'socket_data', req);
165
135
  } else {
166
- 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`));
167
137
  }
168
138
  });
169
139
 
170
140
  workingSocketRecord.socket.on('close', () => {
171
141
  const socketRecord = this.GetSocketRecord((workingSocketRecord as ISocketRecord).socket);
172
142
  if (socketRecord) {
173
- 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}]`));
174
144
  this.UpdateNetworkStats(socketRecord, 'socket_close', req);
175
145
  delete this.#socketCollection[socketRecord.id];
176
- 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}]`));
177
147
  } else {
178
- 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`));
179
149
  }
180
150
  });
181
151
 
182
152
  workingSocketRecord.socket.on('end', () => {
183
153
  const socketRecord = this.GetSocketRecord((workingSocketRecord as ISocketRecord).socket);
184
154
  if (socketRecord) {
185
- 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}]`));
186
156
  this.UpdateNetworkStats(socketRecord, 'socket_end', req);
187
157
  } else {
188
- 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`));
189
159
  }
190
160
  });
191
161
  }
@@ -210,27 +180,27 @@ export class ServerNetworkMiddleware extends STSOptionsBase
210
180
  const headerLength = JSON.stringify(res.getHeaders()).length;
211
181
  const totalSize = contentLength + headerLength;
212
182
 
213
- 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}]`));
214
184
  });
215
185
 
216
186
  // This event is the one where bytesWritten is generally recorded
217
187
  req.on('end', () => {
218
188
  const socketRecord = this.GetSocketRecord(req.socket);
219
189
  if (socketRecord) {
220
- 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}]`))
221
191
  this.UpdateNetworkStats(socketRecord, 'req_end', req);
222
192
  } else {
223
- 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`));
224
194
  }
225
195
  });
226
196
 
227
197
  req.on('close', () => {
228
198
  const socketRecord = this.GetSocketRecord(req.socket);
229
199
  if (socketRecord) {
230
- 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}]`));
231
201
  this.UpdateNetworkStats(socketRecord, 'req_close', req);
232
202
  } else {
233
- 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`));
234
204
  }
235
205
  });
236
206
 
@@ -238,20 +208,20 @@ export class ServerNetworkMiddleware extends STSOptionsBase
238
208
  req.on('data', () => {
239
209
  workingSocketRecord = this.GetSocketRecord(req.socket);
240
210
  if (workingSocketRecord) {
241
- 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}]`));
242
212
  this.UpdateNetworkStats(workingSocketRecord, 'data', req);
243
213
  } else {
244
- 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`));
245
215
  }
246
216
  });
247
217
 
248
218
  req.on('readable', () => {
249
219
  workingSocketRecord = this.GetSocketRecord(req.socket);
250
220
  if (workingSocketRecord) {
251
- 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}]`));
252
222
  this.UpdateNetworkStats(workingSocketRecord, 'readable', req);
253
223
  } else {
254
- 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`));
255
225
  }
256
226
  });
257
227
  */
@@ -260,35 +230,11 @@ export class ServerNetworkMiddleware extends STSOptionsBase
260
230
  const inContentLength = this.#GetRequestContentSize(req);
261
231
  const inTotal = inHeadersLength + inContentLength;
262
232
 
263
- this.#LogDebugMessage(chalk.white.bgGray(`inHeadersLength: [${inHeadersLength}], inContentLength: [${inContentLength}], inTotal: [${inTotal}]`));
233
+ this.#debug(chalk.white.bgGray(`inHeadersLength: [${inHeadersLength}], inContentLength: [${inContentLength}], inTotal: [${inTotal}]`));
264
234
 
265
235
  // This event is the one where bytesRead is generally recorded
266
236
  this.UpdateNetworkStats(workingSocketRecord, 'middleware', req);
267
237
 
268
- console.log(`*********************************************************************************`)
269
- console.log(`*********************************************************************************`)
270
- console.log(`*********************************************************************************`)
271
- console.log(`*********************************************************************************`)
272
- console.log(`*********************************************************************************`)
273
- console.log(`*********************************************************************************`)
274
- console.log(`*********************************************************************************`)
275
- console.log(`*********************************************************************************`)
276
-
277
- debug('*****************************************************************************')
278
- debug('*****************************************************************************')
279
- debug('*****************************************************************************')
280
- debug('*****************************************************************************')
281
- debug('*****************************************************************************')
282
- debug('*****************************************************************************')
283
- debug('*****************************************************************************')
284
- debug('*****************************************************************************')
285
- debug('*****************************************************************************')
286
- debug('*****************************************************************************')
287
- debug('*****************************************************************************')
288
- debug('*****************************************************************************')
289
- debug('*****************************************************************************')
290
- debug('*****************************************************************************')
291
-
292
238
  next();
293
239
  }
294
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/F;IAEF,iBAAiB,aAAoB,MAAM,KAAG,QAAQ,MAAM,MAAM,EAAE,CAAC,CAGnE;IAEF,WAAW,UAAiB,MAAM,YAAY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@@ -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;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CA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iB,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,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAC7E,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,C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AG,OAAO,CAAC,oBAAoB,CAAC;IAmBhG,6BAA6B,CAAC,eAAe,EAAE,gBAAgB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAsB/F,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;CA+CnG"}
@@ -1 +1 @@
1
- {"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;IAYhE,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
+ {"version":3,"file":"influxDBManagerService.d.ts","sourceRoot":"","sources":["../../src/influxdb/influxDBManagerService.ts"],"names":[],"mappings":";AAgHA,OAAO,EAAS,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AAG,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,MAAM,UAAU,CAAA;AAIjC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,oBAAY,gCAAgC;IACxC,+BAA+B,o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AAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAA;IACxB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,CAAA;IACxB,gBAAgB,EAAE,MAAM,CAAA;IACxB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,gCAAgC,GAAG,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;AAE7E,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,OAAO,CAAA;CACvB;AAED,qBAAa,uBAAwB,SAAQ,cAAc;;gBAO3C,OAAO,EAAE,wBAAwB;IAS7C,EAAE,CAAC,SAAS,EAAE,gCAAgC,EAAE,UAAU,EAAE,gCAAgC;IAI5F,eAAe,WAAY,MAAM,KAAG,aAAa,GAAG,IAAI,CAOvD;IAED,kBAAkB,wBAAyB,aAAa,aAAa,MAAM,OAAO,OAAO,UAoBxF;IAmBD,UAAU,QAAS,OAAO,OAAO,QAAQ,QAAQ,YAAY,UAqI5D;CACJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"publishTransportDirect.d.ts","sourceRoot":"","sources":["../../src/publishertransports/publishTransportDirect.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAOrF,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,WAAW,8BAA8B;IAC3C,MAAM,EAAE,UAAU,CAAA;CACrB;AAED,qBAAa,sBAAuB,YAAW,mBAAmB;;gBAMlD,OAAO,EAAE,8BAA8B;IAiBnD,OAAO,YAAmB,kBAAkB,KAAG,QAAQ,OAAO,CAAC,CAiB9D;IAEK,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC;CAGlC"}
1
+ {"version":3,"file":"publishTransportDirect.d.ts","sourceRoot":"","sources":["../../src/publishertransports/publishTransportDirect.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAOrF,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,WAAW,8BAA8B;IAC3C,MAAM,EAAE,UAAU,CAAA;CACrB;AAED,qBAAa,sBAAuB,YAAW,mBAAmB;;gBAMlD,OAAO,EAAE,8BAA8B;IAiBnD,OAAO,YAAmB,kBAAkB,KAAG,QAAQ,OAAO,CAAC,CAiB9D;IAEK,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC;CAGlC"}