@mtgame/core 0.2.44 → 0.2.46
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 +19 -17
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/basketball-statistic.js +5 -2
- package/esm2015/models/football-statistic.js +2 -2
- package/esm2015/models/hockey-statistic.js +3 -3
- package/esm2015/models/rugby-statistic.js +2 -2
- package/esm2015/models/waterpolo-statistic.js +3 -3
- package/esm2015/services/centrifugo.service.js +10 -11
- package/fesm2015/mtgame-core.js +19 -17
- package/fesm2015/mtgame-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -3518,7 +3518,10 @@
|
|
|
3518
3518
|
}
|
|
3519
3519
|
Object.defineProperty(BasketballStatistic.prototype, "totalFouls", {
|
|
3520
3520
|
get: function () {
|
|
3521
|
-
return
|
|
3521
|
+
return Math.floor(10 * ((this.personalFouls || 0) +
|
|
3522
|
+
(this.technicalFouls || 0) +
|
|
3523
|
+
(this.unsportsmanlikeFouls || 0) +
|
|
3524
|
+
(this.disqualificationFouls || 0))) / 10;
|
|
3522
3525
|
},
|
|
3523
3526
|
enumerable: false,
|
|
3524
3527
|
configurable: true
|
|
@@ -4886,14 +4889,14 @@
|
|
|
4886
4889
|
}
|
|
4887
4890
|
Object.defineProperty(HockeyStatistic.prototype, "assists", {
|
|
4888
4891
|
get: function () {
|
|
4889
|
-
return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
|
|
4892
|
+
return Math.floor(10 * ((this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0))) / 10;
|
|
4890
4893
|
},
|
|
4891
4894
|
enumerable: false,
|
|
4892
4895
|
configurable: true
|
|
4893
4896
|
});
|
|
4894
4897
|
Object.defineProperty(HockeyStatistic.prototype, "goalpass", {
|
|
4895
4898
|
get: function () {
|
|
4896
|
-
return (this.totalGoals || 0) + (this.assists || 0);
|
|
4899
|
+
return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
|
|
4897
4900
|
},
|
|
4898
4901
|
enumerable: false,
|
|
4899
4902
|
configurable: true
|
|
@@ -5499,7 +5502,7 @@
|
|
|
5499
5502
|
});
|
|
5500
5503
|
Object.defineProperty(FootballStatistic.prototype, "goalpass", {
|
|
5501
5504
|
get: function () {
|
|
5502
|
-
return (this.totalGoals || 0) + (this.assists || 0);
|
|
5505
|
+
return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
|
|
5503
5506
|
},
|
|
5504
5507
|
enumerable: false,
|
|
5505
5508
|
configurable: true
|
|
@@ -6662,7 +6665,7 @@
|
|
|
6662
6665
|
});
|
|
6663
6666
|
Object.defineProperty(RugbyStatistic.prototype, "totalFouls", {
|
|
6664
6667
|
get: function () {
|
|
6665
|
-
return (this.fouls || 0) + (this.teamFouls || 0);
|
|
6668
|
+
return Math.floor(10 * ((this.fouls || 0) + (this.teamFouls || 0))) / 10;
|
|
6666
6669
|
},
|
|
6667
6670
|
enumerable: false,
|
|
6668
6671
|
configurable: true
|
|
@@ -6846,14 +6849,14 @@
|
|
|
6846
6849
|
}
|
|
6847
6850
|
Object.defineProperty(WaterpoloStatistic.prototype, "assists", {
|
|
6848
6851
|
get: function () {
|
|
6849
|
-
return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
|
|
6852
|
+
return Math.floor(10 * ((this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0))) / 10;
|
|
6850
6853
|
},
|
|
6851
6854
|
enumerable: false,
|
|
6852
6855
|
configurable: true
|
|
6853
6856
|
});
|
|
6854
6857
|
Object.defineProperty(WaterpoloStatistic.prototype, "goalpass", {
|
|
6855
6858
|
get: function () {
|
|
6856
|
-
return (this.totalGoals || 0) + (this.assists || 0);
|
|
6859
|
+
return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
|
|
6857
6860
|
},
|
|
6858
6861
|
enumerable: false,
|
|
6859
6862
|
configurable: true
|
|
@@ -13609,9 +13612,8 @@
|
|
|
13609
13612
|
CentrifugoService.prototype.listen = function (channel) {
|
|
13610
13613
|
var _this = this;
|
|
13611
13614
|
if (!common.isPlatformBrowser(this.platformId)) {
|
|
13612
|
-
|
|
13613
|
-
|
|
13614
|
-
});
|
|
13615
|
+
console.error('Centrifugo is not available in ssr mode');
|
|
13616
|
+
return new rxjs.Observable(function (observer) { });
|
|
13615
13617
|
}
|
|
13616
13618
|
if (channel in this.channels$) {
|
|
13617
13619
|
return this.channels$[channel];
|
|
@@ -13636,9 +13638,8 @@
|
|
|
13636
13638
|
CentrifugoService.prototype.connect = function () {
|
|
13637
13639
|
var _this = this;
|
|
13638
13640
|
if (!common.isPlatformBrowser(this.platformId)) {
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
});
|
|
13641
|
+
console.error('Centrifugo is not available in ssr mode');
|
|
13642
|
+
return new rxjs.Observable(function (observer) { });
|
|
13642
13643
|
}
|
|
13643
13644
|
if (!this.initializeEngineSubject) {
|
|
13644
13645
|
this.initializeEngineSubject = new rxjs.ReplaySubject(1);
|
|
@@ -13665,15 +13666,16 @@
|
|
|
13665
13666
|
CentrifugoService.prototype.publish = function (channel, message) {
|
|
13666
13667
|
var _this = this;
|
|
13667
13668
|
if (!common.isPlatformBrowser(this.platformId)) {
|
|
13668
|
-
|
|
13669
|
-
|
|
13670
|
-
});
|
|
13669
|
+
console.error('Centrifugo is not available in ssr mode');
|
|
13670
|
+
return new rxjs.Observable(function (observer) { });
|
|
13671
13671
|
}
|
|
13672
13672
|
return this.connect().pipe(operators.tap(function () { return _this.centrifuge.publish(channel, message); }));
|
|
13673
13673
|
};
|
|
13674
13674
|
CentrifugoService.prototype.disconnect = function () {
|
|
13675
13675
|
var e_1, _a;
|
|
13676
|
-
this.centrifuge
|
|
13676
|
+
if (this.centrifuge) {
|
|
13677
|
+
this.centrifuge.disconnect();
|
|
13678
|
+
}
|
|
13677
13679
|
this.initializeEngineSubject = undefined;
|
|
13678
13680
|
try {
|
|
13679
13681
|
for (var _b = __values(Object.keys(this.channels$)), _c = _b.next(); !_c.done; _c = _b.next()) {
|