@unlaxer/tramli 0.2.0 → 1.0.0

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.
@@ -274,6 +274,18 @@ export class Builder {
274
274
  newAvailable.add(p);
275
275
  }
276
276
  this.checkRequiresProducesFrom(def, t.to, newAvailable, stateAvailable, errors);
277
+ // Error path analysis: if processor fails, its produces are NOT available
278
+ if (t.processor) {
279
+ const errorTarget = def.errorTransitions.get(t.from);
280
+ if (errorTarget) {
281
+ const errorAvailable = new Set(stateAvailable.get(state));
282
+ if (t.guard) {
283
+ for (const p of t.guard.produces)
284
+ errorAvailable.add(p);
285
+ }
286
+ this.checkRequiresProducesFrom(def, errorTarget, errorAvailable, stateAvailable, errors);
287
+ }
288
+ }
277
289
  }
278
290
  }
279
291
  checkAutoExternalConflict(def, errors) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unlaxer/tramli",
3
- "version": "0.2.0",
3
+ "version": "1.0.0",
4
4
  "description": "Constrained flow engine — state machines that prevent invalid transitions at build time",
5
5
  "type": "module",
6
6
  "exports": {