@nxtedition/lib 19.9.1 → 19.9.2

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 +3 -1
  2. package/package.json +1 -1
package/app.js CHANGED
@@ -260,6 +260,7 @@ export function makeApp(appConfig, onTerminate) {
260
260
  for (const lag of lagMap.values()) {
261
261
  appLag = Math.max(appLag, lag)
262
262
  }
263
+ appLag$.next(appLag)
263
264
  }, interval).unref()
264
265
 
265
266
  destroyers.unshift(() => {
@@ -270,6 +271,7 @@ export function makeApp(appConfig, onTerminate) {
270
271
  toobusy = () => currentLag$.value > maxLag
271
272
  toobusy.lag = () => currentLag$.value
272
273
  toobusy.lag$ = currentLag$
274
+ toobusy.appLag = () => appLag$.value
273
275
  toobusy.appLag$ = appLag$
274
276
  toobusy.maxLag = maxLag
275
277
  }
@@ -497,7 +499,7 @@ export function makeApp(appConfig, onTerminate) {
497
499
  rx.distinctUntilChanged(fp.isEqual),
498
500
  rx.repeatWhen((complete$) => complete$.pipe(rx.delay(10e3))),
499
501
  ),
500
- toobusy?.allLag$.pipe(
502
+ toobusy?.appLag$.pipe(
501
503
  rx.map((lag) => [
502
504
  {
503
505
  id: 'app:toobusy_lag',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "19.9.1",
3
+ "version": "19.9.2",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",