querysub 0.334.0 → 0.336.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.334.0",
3
+ "version": "0.336.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",
@@ -22,7 +22,7 @@
22
22
  "js-sha512": "^0.9.0",
23
23
  "node-forge": "https://github.com/sliftist/forge#e618181b469b07bdc70b968b0391beb8ef5fecd6",
24
24
  "pako": "^2.1.0",
25
- "socket-function": "^0.141.0",
25
+ "socket-function": "^0.142.0",
26
26
  "terser": "^5.31.0",
27
27
  "typesafecss": "^0.22.0",
28
28
  "yaml": "^2.5.0",
@@ -12,6 +12,7 @@ import { user_data } from "../../../user-implementation/userData";
12
12
  import { createLink } from "../../../library-components/ATag";
13
13
  import { getErrorLogsLink } from "./ErrorWarning";
14
14
  import { magenta } from "socket-function/src/formatting/logColors";
15
+ import { ellipsisMiddle } from "../../../misc";
15
16
 
16
17
  const MAX_IMS_PER_DAY = 3;
17
18
  const MAX_IMS_PER_HOURS = 1;
@@ -121,8 +122,9 @@ const sendIMs = batchFunction(({ delay: BATCH_TIME }), async (logsAll: LogDatum[
121
122
  }
122
123
  let url = createLink(getErrorLogsLink());
123
124
  let message = Object.values(info.perFile).flat().map(
124
- x => `[${formatDateTime(x.time)}](${url}) | ${x.param0} (${x.__NAME__})`
125
+ x => `[${formatDateTime(x.time)}](${url}) | ${ellipsisMiddle(String(x.param0), 100)} (${x.__NAME__})`
125
126
  ).join("\n");
127
+ message = ellipsisMiddle(message, 900);
126
128
  if (countFiltered > 0) {
127
129
  message += `\n+${countFiltered} more errors`;
128
130
  }