@wrongstack/core 0.269.0 → 0.270.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/dist/hq/index.js +3 -3
- package/dist/hq/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/hq/index.js
CHANGED
|
@@ -554,7 +554,7 @@ function taskSummary(message) {
|
|
|
554
554
|
return Object.keys(task).length > 0 ? task : void 0;
|
|
555
555
|
}
|
|
556
556
|
function mapMailboxMessageToHqSummary(message, options = {}) {
|
|
557
|
-
const previewLength = options.previewLength ??
|
|
557
|
+
const previewLength = options.previewLength ?? 500;
|
|
558
558
|
const bodyPreview = previewText(message.body, previewLength, options.redactionPolicy);
|
|
559
559
|
const outcomePreview = previewText(message.outcome, previewLength, options.redactionPolicy);
|
|
560
560
|
const task = taskSummary(message);
|
|
@@ -642,8 +642,8 @@ function createMailboxEventPayload(input) {
|
|
|
642
642
|
var OPEN_STATE = 1;
|
|
643
643
|
var DEFAULT_RECONNECT_BASE_MS = 1e3;
|
|
644
644
|
var DEFAULT_RECONNECT_MAX_MS = 3e4;
|
|
645
|
-
var DEFAULT_MAX_QUEUED_MESSAGES =
|
|
646
|
-
var DEFAULT_COMMAND_POLL_INTERVAL_MS =
|
|
645
|
+
var DEFAULT_MAX_QUEUED_MESSAGES = 2e3;
|
|
646
|
+
var DEFAULT_COMMAND_POLL_INTERVAL_MS = 2e3;
|
|
647
647
|
var DEFAULT_COMMAND_POLL_LIMIT = 25;
|
|
648
648
|
function defaultSocketFactory(url) {
|
|
649
649
|
const WebSocketCtor = globalThis.WebSocket;
|