@nxtedition/lib 21.0.14 → 21.0.15

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 +8 -1
  2. package/package.json +1 -1
package/app.js CHANGED
@@ -6,7 +6,13 @@ import stream from 'node:stream'
6
6
  import { Buffer } from 'node:buffer'
7
7
  import { getDockerSecretsSync } from './docker-secrets.js'
8
8
  import fp from 'lodash/fp.js'
9
- import { isMainThread, parentPort, threadId, BroadcastChannel } from 'node:worker_threads'
9
+ import {
10
+ isMainThread,
11
+ parentPort,
12
+ threadId,
13
+ BroadcastChannel,
14
+ resourceLimits,
15
+ } from 'node:worker_threads'
10
16
  import deepstream from '@nxtedition/deepstream.io-client-js'
11
17
  import { createLogger } from './logger.js'
12
18
  import nconf from 'nconf'
@@ -492,6 +498,7 @@ export function makeApp(appConfig, onTerminate) {
492
498
  cpu,
493
499
  memory,
494
500
  totalMemory,
501
+ resourceLimits,
495
502
  utilization: performance.eventLoopUtilization?.(elu2, elu1),
496
503
  heap: v8.getHeapStatistics(),
497
504
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "21.0.14",
3
+ "version": "21.0.15",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",