@uipath/maestro-builder-sdk 6.85.2 → 6.85.3

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.
@@ -43,15 +43,19 @@ function delayAt(version) {
43
43
  serialize: ({ inputs }) => ({ inputs: delayInputs(inputs) }),
44
44
  // The three spellings delayInputs writes — `{ timerType, timerPreset,
45
45
  // timerValue? }` for a duration and `{ timerType: 'timeDate', timerDate }`
46
- // for an absolute wait — back to the factory's one.
47
- deserialize: (node) => {
46
+ // for an absolute wait — back to the factory's one. Each value is read
47
+ // through `ctx.sourceText`, not as a bare string: compile's migrate wraps an
48
+ // `=js:` duration or date into a `{ type: 'jsExpression', expression }`
49
+ // envelope (Studio Web writes the same), and a string-only read turned that
50
+ // into `duration: ""` — the wait silently lost on the next round trip (#1671).
51
+ deserialize: (node, ctx) => {
48
52
  const inputs = node.inputs ?? {};
53
+ const text = (raw) => ctx.sourceText(raw) ?? '';
49
54
  if (inputs.timerType === 'timeDate') {
50
- return { kind: 'delay', inputs: { until: typeof inputs.timerDate === 'string' ? inputs.timerDate : '' } };
55
+ return { kind: 'delay', inputs: { until: text(inputs.timerDate) } };
51
56
  }
52
- const duration = inputs.timerPreset === 'custom'
53
- ? (typeof inputs.timerValue === 'string' ? inputs.timerValue : '')
54
- : (typeof inputs.timerPreset === 'string' ? inputs.timerPreset : '');
57
+ const preset = text(inputs.timerPreset);
58
+ const duration = preset === 'custom' ? text(inputs.timerValue) : preset;
55
59
  return { kind: 'delay', inputs: { duration } };
56
60
  },
57
61
  check: ({ inputs }, ctx) => checkDelay(inputs, ctx),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.85.2",
3
+ "version": "6.85.3",
4
4
  "description": "Build UiPath Flow, Case, and BPMN artifacts by writing TypeScript.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.uipath.com/maestro",
@@ -103,5 +103,5 @@
103
103
  "@types/node": "^22.7.0",
104
104
  "esbuild": "^0.28.1"
105
105
  },
106
- "gitref": "a57b37eeea153a6556a9ec4a53754fb12b39c6c4"
106
+ "gitref": "78e095c8f23759ce52656ba998e071c274a11c03"
107
107
  }