@nxtedition/lib 23.12.1 → 23.12.3

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 (4) hide show
  1. package/app.js +6 -1
  2. package/couch.js +2 -2
  3. package/http.js +1 -1
  4. package/package.json +1 -1
package/app.js CHANGED
@@ -898,10 +898,15 @@ export function makeApp(appConfig, onTerminate) {
898
898
  .pipe(rx.pluck('messages'), rx.startWith([]), rx.pairwise())
899
899
  .subscribe(([prev, next]) => {
900
900
  for (const { level, msg, ...message } of fp.differenceBy('id', next, prev)) {
901
- if (level >= 40) {
901
+ if (level >= 50) {
902
+ logger.error(message, `status added: ${msg}`)
903
+ } else if (level >= 40) {
904
+ logger.warn(message, `status added: ${msg}`)
905
+ } else {
902
906
  logger.info(message, `status added: ${msg}`)
903
907
  }
904
908
  }
909
+
905
910
  for (const { level, msg, ...message } of fp.differenceBy('id', prev, next)) {
906
911
  if (level >= 40) {
907
912
  logger.info(message, `status removed: ${msg}`)
package/couch.js CHANGED
@@ -1057,8 +1057,8 @@ class PromiseOutput {
1057
1057
  }
1058
1058
 
1059
1059
  const defaultDispatcher = new Agent({
1060
- pipelining: 4,
1061
- connections: 8,
1060
+ // pipelining: 4,
1061
+ connections: 8 * 4,
1062
1062
  connectTimeout: 2e3,
1063
1063
  })
1064
1064
  const blockingDispatcher = new Agent({
package/http.js CHANGED
@@ -799,7 +799,7 @@ export function createServer(...args) {
799
799
  (req, res) => (middleware ? middleware(factory(req, res)) : factory(req, res)),
800
800
  )
801
801
 
802
- server.setTimeout(options.socketTimeout ?? options.timeout ?? 2 * 60e3)
802
+ server.setTimeout(options?.socketTimeout ?? options?.timeout ?? 2 * 60e3)
803
803
 
804
804
  if (options?.signal?.aborted) {
805
805
  queueMicrotask(() => server.close())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "23.12.1",
3
+ "version": "23.12.3",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",