@xiboplayer/schedule 0.7.10 → 0.7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiboplayer/schedule",
3
- "version": "0.7.10",
3
+ "version": "0.7.12",
4
4
  "description": "Complete scheduling solution: campaigns, dayparting, interrupts, and overlays",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -12,10 +12,10 @@
12
12
  "./overlays": "./src/overlays.js"
13
13
  },
14
14
  "dependencies": {
15
- "@xiboplayer/utils": "0.7.10"
15
+ "@xiboplayer/utils": "0.7.12"
16
16
  },
17
17
  "devDependencies": {
18
- "vitest": "^2.1.9"
18
+ "vitest": "^4.1.2"
19
19
  },
20
20
  "keywords": [
21
21
  "xibo",
package/src/schedule.js CHANGED
@@ -459,11 +459,11 @@ export class ScheduleManager {
459
459
  }
460
460
 
461
461
  // Find maximum priority across all items (campaigns and layouts)
462
- let maxPriority = Math.max(...activeItems.map(item => item.priority));
462
+ const maxPriority = Math.max(...activeItems.map(item => item.priority));
463
463
  _log('[Schedule] Max priority:', maxPriority, 'from', activeItems.length, 'active items');
464
464
 
465
465
  // Collect all layouts from items with max priority
466
- let allLayouts = [];
466
+ const allLayouts = [];
467
467
  for (const item of activeItems) {
468
468
  if (item.priority === maxPriority) {
469
469
  _log('[Schedule] Including priority', item.priority, 'layouts:', item.layouts.map(l => l.file));
package/src/timeline.js CHANGED
@@ -198,7 +198,7 @@ export function calculateTimeline(queue, queuePosition, options = {}) {
198
198
  const entry = queue[pos];
199
199
  // Use live-corrected duration (from video metadata, etc.) if available,
200
200
  // otherwise fall back to the queue's baked-in duration
201
- let dur = (durations && durations.get(entry.layoutId)) || entry.duration;
201
+ const dur = (durations && durations.get(entry.layoutId)) || entry.duration;
202
202
 
203
203
  const endMs = currentTime.getTime() + dur * 1000;
204
204