@rotorsoft/act 1.31.10 → 1.31.11

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/dist/index.js CHANGED
@@ -95,11 +95,12 @@ function classify_registry(registry, states) {
95
95
  set.add(lane_name);
96
96
  event_to_lanes.set(name, set);
97
97
  }
98
- if (!target_lanes.has(target)) {
99
- target_lanes.set(target, lane);
100
- } else if ((target_lanes.get(target) ?? void 0) !== (lane ?? void 0)) {
98
+ const recorded_lane = target_lanes.get(target);
99
+ if (recorded_lane === void 0) {
100
+ target_lanes.set(target, lane_name);
101
+ } else if (recorded_lane !== lane_name) {
101
102
  throw new Error(
102
- `Stream "${target}" has conflicting lane assignments ("${target_lanes.get(target) ?? "default"}" vs "${lane ?? "default"}")`
103
+ `Stream "${target}" has conflicting lane assignments ("${recorded_lane}" vs "${lane_name}")`
103
104
  );
104
105
  }
105
106
  const key = `${target}|${source ?? ""}`;