@rotorsoft/act 1.31.1 → 1.31.2
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/act.d.ts +3 -3
- package/dist/@types/act.d.ts.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3590,15 +3590,15 @@ var Act = class {
|
|
|
3590
3590
|
* One DrainController per active lane. The implicit "default" lane is
|
|
3591
3591
|
* always present unless onlyLanes excludes it. Each controller filters
|
|
3592
3592
|
* its claim() by its lane name; the legacy single-controller path is the
|
|
3593
|
-
*
|
|
3594
|
-
*
|
|
3595
|
-
*
|
|
3593
|
+
* no-lane-declared case with `lane: undefined` deps so claim() doesn't
|
|
3594
|
+
* filter (preserves the single-lane SQL planner shape for apps that never
|
|
3595
|
+
* call withLane).
|
|
3596
3596
|
*/
|
|
3597
3597
|
_build_drain_controllers(options, lanes) {
|
|
3598
3598
|
const all_lanes = ["default", ...lanes.map((l) => l.name)];
|
|
3599
3599
|
const only_set = options.onlyLanes && options.onlyLanes.length > 0 ? new Set(options.onlyLanes) : void 0;
|
|
3600
3600
|
const active_lanes = only_set ? all_lanes.filter((n) => only_set.has(n)) : all_lanes;
|
|
3601
|
-
const single_default_lane =
|
|
3601
|
+
const single_default_lane = lanes.length === 0;
|
|
3602
3602
|
const controllers = /* @__PURE__ */ new Map();
|
|
3603
3603
|
for (const name of active_lanes) {
|
|
3604
3604
|
const cfg = lanes.find((l) => l.name === name);
|