querysub 0.249.0 → 0.251.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.249.0",
3
+ "version": "0.251.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -25,7 +25,7 @@ import { onServiceConfigChange } from "./machineController";
25
25
  import { PromiseObj } from "../promise";
26
26
  import path from "path";
27
27
 
28
- const PIPE_FILE_LINE_LIMIT = 10;
28
+ const PIPE_FILE_LINE_LIMIT = 10_000;
29
29
 
30
30
  const getLiveMachineInfo = measureWrap(async function getLiveMachineInfo() {
31
31
  let machineInfo: MachineInfo = {
@@ -371,6 +371,8 @@ while IFS= read -r line; do
371
371
  sleep 2
372
372
  # Keep only the last ${PIPE_FILE_LINE_LIMIT} lines when file gets too many lines
373
373
  tail -n ${Math.floor(PIPE_FILE_LINE_LIMIT / 2)} "${pipeFile}" > "${pipeFile}.tmp" && mv "${pipeFile}.tmp" "${pipeFile}"
374
+ # AND, give it time to read the truncation
375
+ sleep 2
374
376
  fi
375
377
  fi
376
378
  fi
@@ -1,7 +1,3 @@
1
- 2) Verify when the file is truncated it still works
2
-
3
- 2) Apply ansi coloring / whatever type we use
4
-
5
1
  4) Destroy our testing digital ocean server
6
2
 
7
3
  5) Setup on our regular digital ocean server