@nxtedition/lib 28.0.26 → 28.0.27

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 (2) hide show
  1. package/app.js +4 -4
  2. package/package.json +2 -2
package/app.js CHANGED
@@ -769,7 +769,7 @@ export function makeApp(appConfig, onTerminateOrMeta, metaOrNull) {
769
769
  monitorProviders.stats$
770
770
  .subscribe((stats) => {
771
771
  try {
772
- statsBC.postMessage({ id: threadId, data: stats })
772
+ statsBC.postMessage({ id: threadId, data: JSON.stringify(JSON.parse(stats)) })
773
773
  } catch (err) {
774
774
  statsBC.postMessage({ id: threadId, data: { error: serializeError(err) } })
775
775
  logger.error(
@@ -1093,9 +1093,9 @@ export function makeApp(appConfig, onTerminateOrMeta, metaOrNull) {
1093
1093
 
1094
1094
  appDestroyers.unshift(
1095
1095
  monitorProviders.status$
1096
- .subscribe((stats) => {
1096
+ .subscribe((status) => {
1097
1097
  try {
1098
- statusBC.postMessage({ id: threadId, data: stats })
1098
+ statusBC.postMessage({ id: threadId, data: JSON.stringify(JSON.parse(status)) })
1099
1099
  } catch (err) {
1100
1100
  statusBC.postMessage({
1101
1101
  id: threadId,
@@ -1110,7 +1110,7 @@ export function makeApp(appConfig, onTerminateOrMeta, metaOrNull) {
1110
1110
  },
1111
1111
  })
1112
1112
  logger.error(
1113
- { err, data: util.inspect(stats, { depth: 16 }) },
1113
+ { err, data: util.inspect(status, { depth: 16 }) },
1114
1114
  'status broadcast failed',
1115
1115
  )
1116
1116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "28.0.26",
3
+ "version": "28.0.27",
4
4
  "license": "UNLICENSED",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",
@@ -92,5 +92,5 @@
92
92
  "canvas": "^3.1.0",
93
93
  "rxjs": "^7.0.0"
94
94
  },
95
- "gitHead": "007b8e2002dfc572af40f794575ded6ad79620e7"
95
+ "gitHead": "974526e5bb5a547662e75a360137e1e590f0a399"
96
96
  }