@platforma-sdk/workflow-tengo 2.15.11 → 2.15.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.
@@ -204,8 +204,8 @@ processColumn := func(input, bodyTpl, outputs, ...opts) {
204
204
 
205
205
 
206
206
  trace := undefined
207
- if !is_undefined(opts.traceSteps) {
208
- trace = pSpec.makeTrace(input.spec, opts.traceSteps...)
207
+ if !is_undefined(opts.traceSteps) || !is_undefined(input.spec.annotations[pSpec.A_TRACE]) {
208
+ trace = pSpec.makeTrace(input.spec, (opts.traceSteps ? opts.traceSteps : [])...)
209
209
  }
210
210
 
211
211
 
@@ -235,7 +235,9 @@ makeTrace := func(input, ...steps) {
235
235
  validation.assertType(currentTrace, _TRACE_SCHEMA)
236
236
  }
237
237
 
238
- currentTrace = append(currentTrace, steps...)
238
+ if len(steps) > 0 {
239
+ currentTrace = append(currentTrace, steps...)
240
+ }
239
241
  currentTraceStr := string(json.encode(currentTrace))
240
242
 
241
243
  return ll.toStrict({
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-sdk/workflow-tengo",
3
- "version": "2.15.11",
3
+ "version": "2.15.12",
4
4
  "description": "Tengo SDK library",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",