@mtgame/core 0.0.59 → 0.0.60
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/bundles/mtgame-core.umd.js +6 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/models/football-statistic.js +4 -1
- package/esm2015/models/hockey-statistic.js +4 -1
- package/esm5/models/football-statistic.js +4 -1
- package/esm5/models/hockey-statistic.js +4 -1
- package/fesm2015/mtgame-core.js +6 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +6 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -2827,6 +2827,9 @@ var HockeyStatistic = /** @class */ (function (_super) {
|
|
|
2827
2827
|
});
|
|
2828
2828
|
Object.defineProperty(HockeyStatistic.prototype, "userMinutes", {
|
|
2829
2829
|
get: function () {
|
|
2830
|
+
if (!this.gameTime) {
|
|
2831
|
+
return '00:00';
|
|
2832
|
+
}
|
|
2830
2833
|
var minutes = Math.floor(this.gameTime / 60);
|
|
2831
2834
|
var seconds = Math.floor(this.gameTime - minutes * 60);
|
|
2832
2835
|
return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
|
|
@@ -3326,6 +3329,9 @@ var FootballStatistic = /** @class */ (function (_super) {
|
|
|
3326
3329
|
}
|
|
3327
3330
|
Object.defineProperty(FootballStatistic.prototype, "userMinutes", {
|
|
3328
3331
|
get: function () {
|
|
3332
|
+
if (!this.gameTime) {
|
|
3333
|
+
return '00:00';
|
|
3334
|
+
}
|
|
3329
3335
|
var minutes = Math.floor(this.gameTime / 60);
|
|
3330
3336
|
var seconds = Math.floor(this.gameTime - minutes * 60);
|
|
3331
3337
|
return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
|