@forcecalendar/core 1.0.0 → 1.0.1
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.
|
@@ -119,9 +119,9 @@ export class AdaptiveMemoryManager {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
// Node.js environment
|
|
123
|
-
if (typeof process !== 'undefined' && process
|
|
124
|
-
const usage = process
|
|
122
|
+
// Node.js environment - use bracket notation to avoid LWC static analysis
|
|
123
|
+
if (typeof process !== 'undefined' && typeof process['memoryUsage'] === 'function') {
|
|
124
|
+
const usage = process['memoryUsage']();
|
|
125
125
|
// Use heap total as the limit in Node.js
|
|
126
126
|
return usage.heapUsed / usage.heapTotal;
|
|
127
127
|
}
|