@milaboratories/pl-middle-layer 2.7.10 → 2.7.12
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": "@milaboratories/pl-middle-layer",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.12",
|
|
4
4
|
"description": "Pl Middle Layer",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@milaboratories/pl-tree": "1.18.7",
|
|
37
37
|
"@milaboratories/resolve-helper": "1.1.3",
|
|
38
38
|
"@milaboratories/ts-helpers": "1.9.1",
|
|
39
|
-
"@platforma-sdk/block-tools": "2.20.
|
|
39
|
+
"@platforma-sdk/block-tools": "2.20.5",
|
|
40
40
|
"@platforma-sdk/model": "1.90.2",
|
|
41
|
-
"@platforma-sdk/workflow-tengo": "6.24.
|
|
41
|
+
"@platforma-sdk/workflow-tengo": "6.24.3",
|
|
42
42
|
"canonicalize": "~2.1.0",
|
|
43
43
|
"denque": "^2.1.0",
|
|
44
44
|
"es-toolkit": "^1.39.10",
|
|
@@ -122,13 +122,16 @@ test("block action context outlives its renderer and is replaced on re-render",
|
|
|
122
122
|
}
|
|
123
123
|
const first = (await readActionContext(pl, prj, "block1"))!;
|
|
124
124
|
expect(first).toBeDefined();
|
|
125
|
-
|
|
125
|
+
// The middle layer writes these keys; a newer backend also adds "user-id", the caller's id.
|
|
126
|
+
const { "user-id": userId, ...middleLayerBaggage } = first.baggage;
|
|
127
|
+
expect(Object.keys(middleLayerBaggage).sort()).toEqual([
|
|
126
128
|
"block-id",
|
|
127
129
|
"block-pack",
|
|
128
130
|
"name",
|
|
129
131
|
"project-id",
|
|
130
132
|
"run-id",
|
|
131
133
|
]);
|
|
134
|
+
if (userId !== undefined) expect(userId).not.toEqual("");
|
|
132
135
|
expect(first.baggage["block-id"]).toEqual("block1");
|
|
133
136
|
expect(first.baggage["project-id"]).toEqual(resourceIdToString(prj));
|
|
134
137
|
expect(first.baggage["name"]).toEqual("Block1");
|