@absolutejs/absolute 0.19.0-beta.757 → 0.19.0-beta.759
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/angular/index.js +24 -13
- package/dist/angular/index.js.map +4 -4
- package/dist/angular/server.js +24 -13
- package/dist/angular/server.js.map +4 -4
- package/dist/build.js +24 -13
- package/dist/build.js.map +4 -4
- package/dist/cli/index.js +34 -10
- package/dist/index.js +24 -13
- package/dist/index.js.map +4 -4
- package/dist/react/index.js +5 -2
- package/dist/react/index.js.map +3 -3
- package/dist/react/server.js +5 -2
- package/dist/react/server.js.map +3 -3
- package/dist/src/build/compileAngular.d.ts +1 -0
- package/dist/svelte/index.js +5 -2
- package/dist/svelte/index.js.map +3 -3
- package/dist/svelte/server.js +5 -2
- package/dist/svelte/server.js.map +3 -3
- package/dist/vue/index.js +5 -2
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +5 -2
- package/dist/vue/server.js.map +3 -3
- package/package.json +7 -7
package/dist/react/index.js
CHANGED
|
@@ -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
|
-
|
|
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=
|
|
3607
|
+
//# debugId=6DB9A702F811A8FF64756E2164756E21
|
|
3605
3608
|
//# sourceMappingURL=index.js.map
|