@milaboratories/pl-middle-layer 2.7.11 → 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.
@@ -1,7 +1,7 @@
1
1
  // src/middle_layer/build_stamp.ts
2
2
  function injectedStamp() {
3
3
  try {
4
- return "27f6555b644c-dirty-1795193524515";
4
+ return "35fc8eeee6a7-dirty-1795431145665";
5
5
  } catch {
6
6
  return;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  // src/middle_layer/build_stamp.ts
2
2
  function injectedStamp() {
3
3
  try {
4
- return "27f6555b644c-dirty-1795193524483";
4
+ return "35fc8eeee6a7-dirty-1795431145644";
5
5
  } catch {
6
6
  return;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-middle-layer",
3
- "version": "2.7.11",
3
+ "version": "2.7.12",
4
4
  "description": "Pl Middle Layer",
5
5
  "keywords": [],
6
6
  "license": "UNLICENSED",
@@ -38,7 +38,7 @@
38
38
  "@milaboratories/ts-helpers": "1.9.1",
39
39
  "@platforma-sdk/block-tools": "2.20.5",
40
40
  "@platforma-sdk/model": "1.90.2",
41
- "@platforma-sdk/workflow-tengo": "6.24.2",
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
- expect(Object.keys(first.baggage).sort()).toEqual([
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");