@nsshunt/stsappframework 3.0.76 → 3.0.78

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/dist/server.js CHANGED
@@ -27,10 +27,10 @@ class STSExpressServer {
27
27
  serverNetworkMiddleware.on(serverNetworkMiddleware_1.ServerNetworkMiddlewareEventName.UpdateInstrument_SERVER_NET_VAL, (data) => {
28
28
  //console.log(`serverNetworkMiddleware: [${JSON.stringify(data)}]`.magenta)
29
29
  stsApp.UpdateInstrument(stsinstrumentation_1.Gauge.NETWORK_RX_GAUGE, {
30
- val: data.currentBytesRead
30
+ Inc: data.requestBytesRead
31
31
  });
32
32
  stsApp.UpdateInstrument(stsinstrumentation_1.Gauge.NETWORK_TX_GAUGE, {
33
- val: data.currentBytesWritten
33
+ Inc: data.requestBytesWritten
34
34
  });
35
35
  });
36
36
  requestLoggerMiddleware.on(stspublisherserver_1.RequestLoggerMiddlewareEventName.UpdateInstrument_AR_INC, () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsshunt/stsappframework",
3
- "version": "3.0.76",
3
+ "version": "3.0.78",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "./types/index.d.ts",
@@ -36,8 +36,8 @@
36
36
  "@types/lodash": "^4.14.201",
37
37
  "@types/pg": "^8.10.9",
38
38
  "@types/uuid": "^9.0.7",
39
- "@typescript-eslint/eslint-plugin": "^6.10.0",
40
- "@typescript-eslint/parser": "^6.10.0",
39
+ "@typescript-eslint/eslint-plugin": "^6.11.0",
40
+ "@typescript-eslint/parser": "^6.11.0",
41
41
  "@vitest/ui": "^0.34.6",
42
42
  "eslint": "^8.53.0",
43
43
  "jest": "^29.7.0",
@@ -48,17 +48,17 @@
48
48
  "dependencies": {
49
49
  "@influxdata/influxdb-client": "^1.33.2",
50
50
  "@influxdata/influxdb-client-apis": "^1.33.2",
51
- "@nsshunt/stsconfig": "^1.25.60",
52
- "@nsshunt/stsdatamanagement": "^1.17.130",
53
- "@nsshunt/stsinstrumentation": "^7.0.5",
54
- "@nsshunt/stspublisherserver": "^2.0.34",
55
- "@nsshunt/stssocketio-client": "^0.0.85",
56
- "@nsshunt/stsutils": "^1.16.15",
51
+ "@nsshunt/stsconfig": "^1.25.61",
52
+ "@nsshunt/stsdatamanagement": "^1.17.131",
53
+ "@nsshunt/stsinstrumentation": "^7.0.6",
54
+ "@nsshunt/stspublisherserver": "^2.0.35",
55
+ "@nsshunt/stssocketio-client": "^0.0.87",
56
+ "@nsshunt/stsutils": "^1.16.16",
57
57
  "@socket.io/cluster-adapter": "^0.2.2",
58
58
  "@socket.io/redis-streams-adapter": "^0.1.0",
59
59
  "@types/pidusage": "^2.0.5",
60
60
  "@types/tough-cookie": "^4.0.5",
61
- "axios": "^1.6.1",
61
+ "axios": "^1.6.2",
62
62
  "colors": "^1.4.0",
63
63
  "cookie-parser": "^1.4.6",
64
64
  "cors": "^2.8.5",
package/src/server.ts CHANGED
@@ -35,11 +35,11 @@ export class STSExpressServer
35
35
  serverNetworkMiddleware.on(ServerNetworkMiddlewareEventName.UpdateInstrument_SERVER_NET_VAL, (data: ISocketRecord) => {
36
36
  //console.log(`serverNetworkMiddleware: [${JSON.stringify(data)}]`.magenta)
37
37
  stsApp.UpdateInstrument(Gauge.NETWORK_RX_GAUGE, {
38
- val: data.currentBytesRead
38
+ Inc: data.requestBytesRead
39
39
  } as InstrumentGaugeTelemetry);
40
40
 
41
41
  stsApp.UpdateInstrument(Gauge.NETWORK_TX_GAUGE, {
42
- val: data.currentBytesWritten
42
+ Inc: data.requestBytesWritten
43
43
  } as InstrumentGaugeTelemetry);
44
44
  });
45
45