b2m-utils 0.0.206 → 0.0.208

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/build/index.js CHANGED
@@ -507,7 +507,7 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
507
507
  return ((_a = fee.fee) === null || _a === void 0 ? void 0 : _a.id) === ((_b = ratecardLaneFee.fee) === null || _b === void 0 ? void 0 : _b.id) &&
508
508
  fee.maxWeight &&
509
509
  (cte === null || cte === void 0 ? void 0 : cte.taxedWeight) &&
510
- fee.maxWeight < cte.taxedWeight;
510
+ +fee.maxWeight < +cte.taxedWeight;
511
511
  });
512
512
  // Ordenar pelo maxWeight do maior para o menor
513
513
  feesWithMaxWeight === null || feesWithMaxWeight === void 0 ? void 0 : feesWithMaxWeight.sort(function (a, b) { return b.maxWeight - a.maxWeight; });
@@ -516,6 +516,7 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
516
516
  console.log({
517
517
  feesWithMaxWeight: feesWithMaxWeight,
518
518
  highestIntervalFee: highestIntervalFee,
519
+ allFeesForCalc: allFeesForCalc,
519
520
  });
520
521
  if (highestIntervalFee) {
521
522
  // Calcula baseado na taxa do intervalo mais alto que tem maxWeight
package/build/index.js.gz CHANGED
Binary file