@forcecalendar/core 2.1.0 → 2.1.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.
@@ -31,7 +31,7 @@ export class PerformanceOptimizer {
31
31
  this.memoryManager = new AdaptiveMemoryManager({
32
32
  checkInterval: 30000,
33
33
  memoryThreshold: 0.75,
34
- criticalThreshold: 0.90
34
+ criticalThreshold: 0.9
35
35
  });
36
36
 
37
37
  // Register caches with memory manager
@@ -220,9 +220,7 @@ export class PerformanceOptimizer {
220
220
  * @returns {boolean} True if should use lazy indexing
221
221
  */
222
222
  shouldUseLazyIndexing(event) {
223
- const daySpan = Math.ceil(
224
- (event.end - event.start) / (24 * 60 * 60 * 1000)
225
- );
223
+ const daySpan = Math.ceil((event.end - event.start) / (24 * 60 * 60 * 1000));
226
224
  return daySpan > this.config.maxIndexDays;
227
225
  }
228
226
 
@@ -273,7 +271,7 @@ export class PerformanceOptimizer {
273
271
 
274
272
  markers.pending = true;
275
273
 
276
- const promise = new Promise((resolve) => {
274
+ const promise = new Promise(resolve => {
277
275
  // Simulate async indexing (in real app, could be in worker)
278
276
  setTimeout(() => {
279
277
  const indexed = new Set();
@@ -520,4 +518,4 @@ export class PerformanceOptimizer {
520
518
  this.lazyIndexes.clear();
521
519
  this.pendingIndexes.clear();
522
520
  }
523
- }
521
+ }