@fro.bot/systematic 3.6.1 → 3.6.2
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/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10734,6 +10734,7 @@ function createWorkflowGuard(options) {
|
|
|
10734
10734
|
var MARKER_OPEN = "<SYSTEMATIC_WORKFLOW_GUARD>";
|
|
10735
10735
|
var MARKER_CLOSE = "</SYSTEMATIC_WORKFLOW_GUARD>";
|
|
10736
10736
|
var MARKER_PROTOCOL_VERSION = 2;
|
|
10737
|
+
var LEGACY_MARKER_PROTOCOL_VERSION = 1;
|
|
10737
10738
|
var MAX_MARKER_LENGTH = 4096;
|
|
10738
10739
|
var MAX_MARKER_SOURCES = 8;
|
|
10739
10740
|
var MAX_CALL_ID_LENGTH = 256;
|
|
@@ -11384,8 +11385,9 @@ function parseMarkerBody(body2) {
|
|
|
11384
11385
|
return;
|
|
11385
11386
|
try {
|
|
11386
11387
|
const parsed = JSON.parse(body2);
|
|
11387
|
-
if (parsed.protocolVersion !== MARKER_PROTOCOL_VERSION)
|
|
11388
|
+
if (parsed.protocolVersion !== MARKER_PROTOCOL_VERSION && parsed.protocolVersion !== LEGACY_MARKER_PROTOCOL_VERSION) {
|
|
11388
11389
|
return;
|
|
11390
|
+
}
|
|
11389
11391
|
if (!Array.isArray(parsed.sources) || parsed.sources.length > MAX_MARKER_SOURCES) {
|
|
11390
11392
|
return;
|
|
11391
11393
|
}
|