@absolutejs/absolute 0.19.0-beta.756 → 0.19.0-beta.758

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.
@@ -841,7 +841,10 @@ var getDurationString = (duration) => {
841
841
  } else if (duration < MILLISECONDS_IN_A_MINUTE) {
842
842
  durationString = `${(duration / MILLISECONDS_IN_A_SECOND).toFixed(TIME_PRECISION)}s`;
843
843
  } else {
844
- durationString = `${(duration / MILLISECONDS_IN_A_MINUTE).toFixed(TIME_PRECISION)}m`;
844
+ const totalSeconds = Math.round(duration / MILLISECONDS_IN_A_SECOND);
845
+ const minutes = Math.floor(totalSeconds / 60);
846
+ const seconds = totalSeconds % 60;
847
+ durationString = seconds === 0 ? `${minutes}m` : `${minutes}m ${seconds}s`;
845
848
  }
846
849
  return durationString;
847
850
  };
@@ -3601,5 +3604,5 @@ export {
3601
3604
  Island
3602
3605
  };
3603
3606
 
3604
- //# debugId=D6E8EB6C5390D86864756E2164756E21
3607
+ //# debugId=6DB9A702F811A8FF64756E2164756E21
3605
3608
  //# sourceMappingURL=index.js.map