@rotorsoft/act 1.23.16 → 1.23.17
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/.tsbuildinfo +1 -1
- package/dist/@types/internal/build-classify.d.ts.map +1 -1
- package/dist/index.cjs +10 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -775,6 +775,7 @@ function synthesize_autoclose_reactions(registry, states, config2) {
|
|
|
775
775
|
var ALL_LANES = /* @__PURE__ */ Symbol("act-1103/all-lanes");
|
|
776
776
|
function classify_registry(registry, states) {
|
|
777
777
|
const statics = /* @__PURE__ */ new Map();
|
|
778
|
+
const target_lanes = /* @__PURE__ */ new Map();
|
|
778
779
|
const reactive_events = /* @__PURE__ */ new Set();
|
|
779
780
|
const event_to_lanes = /* @__PURE__ */ new Map();
|
|
780
781
|
let has_dynamic_resolvers = false;
|
|
@@ -793,18 +794,19 @@ function classify_registry(registry, states) {
|
|
|
793
794
|
set.add(lane_name);
|
|
794
795
|
event_to_lanes.set(name, set);
|
|
795
796
|
}
|
|
797
|
+
if (!target_lanes.has(target)) {
|
|
798
|
+
target_lanes.set(target, lane);
|
|
799
|
+
} else if ((target_lanes.get(target) ?? void 0) !== (lane ?? void 0)) {
|
|
800
|
+
throw new Error(
|
|
801
|
+
`Stream "${target}" has conflicting lane assignments ("${target_lanes.get(target) ?? "default"}" vs "${lane ?? "default"}")`
|
|
802
|
+
);
|
|
803
|
+
}
|
|
796
804
|
const key = `${target}|${source ?? ""}`;
|
|
797
805
|
const existing = statics.get(key);
|
|
798
806
|
if (!existing) {
|
|
799
807
|
statics.set(key, { stream: target, source, priority, lane });
|
|
800
|
-
} else {
|
|
801
|
-
|
|
802
|
-
throw new Error(
|
|
803
|
-
`Stream "${target}" has conflicting lane assignments ("${existing.lane ?? "default"}" vs "${lane ?? "default"}")`
|
|
804
|
-
);
|
|
805
|
-
if (priority > existing.priority) {
|
|
806
|
-
statics.set(key, { ...existing, priority });
|
|
807
|
-
}
|
|
808
|
+
} else if (priority > existing.priority) {
|
|
809
|
+
statics.set(key, { ...existing, priority });
|
|
808
810
|
}
|
|
809
811
|
}
|
|
810
812
|
}
|