qvdjs 0.8.0 → 0.9.0

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/index.js CHANGED
@@ -664,6 +664,9 @@ function estimateMemoryUsage(symbolTableSize, maxRows, totalRows) {
664
664
  return keptSymbolsMemory + skippedSymbolsMemory;
665
665
  }
666
666
  function validateMemoryAvailability(symbolTableSize, maxRows, totalRows, filePath, safetyFactor = 0.3) {
667
+ if (typeof safetyFactor !== "number" || safetyFactor < 0 || safetyFactor > 1) {
668
+ throw new QvdValidationError("safetyFactor must be a number between 0.0 and 1.0", { safetyFactor });
669
+ }
667
670
  const availableMemory = os.freemem();
668
671
  const heapLimit = getHeapLimit();
669
672
  const estimatedMemory = estimateMemoryUsage(symbolTableSize, maxRows, totalRows);