@etainabl/nodejs-sdk 1.3.140 → 1.3.141

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
@@ -16930,7 +16930,7 @@ var convertItems = (items, type, defaultUnits, accountFactor) => {
16930
16930
  return convertedItems;
16931
16931
  };
16932
16932
  var simpleConvert = (value, fromUnit, toUnit) => {
16933
- if (!value) throw new Error("Value is required");
16933
+ if (typeof value !== "number" || isNaN(value)) throw new Error("Value must be a valid number");
16934
16934
  if (!fromUnit) throw new Error("From unit is required");
16935
16935
  if (!toUnit) throw new Error("To unit is required");
16936
16936
  const conversionFactor = _getConversionFactor(fromUnit, toUnit);