@mtgame/core 0.2.45 → 0.2.47
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 +14 -11
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/localization/rugby-game-log-types.js +2 -1
- package/esm2015/models/rugby-game-log.js +3 -2
- package/esm2015/models/rugby-game-statistic.js +2 -1
- package/esm2015/models/rugby-statistic.js +2 -1
- package/esm2015/services/centrifugo.service.js +10 -11
- package/fesm2015/mtgame-core.js +14 -11
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/rugby-game-log-types.d.ts +1 -0
- package/models/rugby-game-log.d.ts +2 -1
- package/models/rugby-game-statistic.d.ts +1 -0
- package/models/rugby-statistic.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6761,6 +6761,7 @@
|
|
|
6761
6761
|
opponent_mauls_lost: 'opponentMaulsLost',
|
|
6762
6762
|
fouls: 'fouls',
|
|
6763
6763
|
team_fouls: 'teamFouls',
|
|
6764
|
+
outs: 'outs',
|
|
6764
6765
|
},
|
|
6765
6766
|
relation: {
|
|
6766
6767
|
leaguePlayer: exports.LeaguePlayer,
|
|
@@ -9310,6 +9311,7 @@
|
|
|
9310
9311
|
foot_kicks_50_22: 'footKicks5022',
|
|
9311
9312
|
fouls: 'fouls',
|
|
9312
9313
|
team_fouls: 'teamFouls',
|
|
9314
|
+
outs: 'outs',
|
|
9313
9315
|
game_time: 'gameTime',
|
|
9314
9316
|
plus_minus: 'plusMinus'
|
|
9315
9317
|
},
|
|
@@ -9420,6 +9422,7 @@
|
|
|
9420
9422
|
RugbyGameLogTypes[RugbyGameLogTypes["start_kick"] = 40] = "start_kick";
|
|
9421
9423
|
RugbyGameLogTypes[RugbyGameLogTypes["twenty_two_meters_kick"] = 41] = "twenty_two_meters_kick";
|
|
9422
9424
|
RugbyGameLogTypes[RugbyGameLogTypes["goal_kick"] = 42] = "goal_kick";
|
|
9425
|
+
RugbyGameLogTypes[RugbyGameLogTypes["out"] = 43] = "out";
|
|
9423
9426
|
})(exports.RugbyGameLogTypes || (exports.RugbyGameLogTypes = {}));
|
|
9424
9427
|
var RUGBY_GAME_LOG_TYPE_POINTS = (_a$g = {},
|
|
9425
9428
|
_a$g[exports.RugbyGameLogTypes.penalty_try] = 7,
|
|
@@ -9436,7 +9439,7 @@
|
|
|
9436
9439
|
exports.RugbyGameLogTypes.maul_won, exports.RugbyGameLogTypes.maul_lost, exports.RugbyGameLogTypes.team_foul,
|
|
9437
9440
|
exports.RugbyGameLogTypes.penalty_kick_to_touch, exports.RugbyGameLogTypes.tap_penalty,
|
|
9438
9441
|
exports.RugbyGameLogTypes.start_kick, exports.RugbyGameLogTypes.twenty_two_meters_kick, exports.RugbyGameLogTypes.goal_kick,
|
|
9439
|
-
exports.RugbyGameLogTypes.penalty_try
|
|
9442
|
+
exports.RugbyGameLogTypes.penalty_try, exports.RugbyGameLogTypes.out
|
|
9440
9443
|
];
|
|
9441
9444
|
exports.RugbyGameLog = /** @class */ (function (_super) {
|
|
9442
9445
|
__extends(RugbyGameLog, _super);
|
|
@@ -13259,6 +13262,7 @@
|
|
|
13259
13262
|
_a$6[exports.RugbyGameLogTypes.start_kick] = 'Начальный удар',
|
|
13260
13263
|
_a$6[exports.RugbyGameLogTypes.twenty_two_meters_kick] = 'Удар с 22 метров',
|
|
13261
13264
|
_a$6[exports.RugbyGameLogTypes.goal_kick] = 'Удар от ворот',
|
|
13265
|
+
_a$6[exports.RugbyGameLogTypes.out] = 'Аут',
|
|
13262
13266
|
_a$6);
|
|
13263
13267
|
|
|
13264
13268
|
var _a$5;
|
|
@@ -13612,9 +13616,8 @@
|
|
|
13612
13616
|
CentrifugoService.prototype.listen = function (channel) {
|
|
13613
13617
|
var _this = this;
|
|
13614
13618
|
if (!common.isPlatformBrowser(this.platformId)) {
|
|
13615
|
-
|
|
13616
|
-
|
|
13617
|
-
});
|
|
13619
|
+
console.error('Centrifugo is not available in ssr mode');
|
|
13620
|
+
return new rxjs.Observable(function (observer) { });
|
|
13618
13621
|
}
|
|
13619
13622
|
if (channel in this.channels$) {
|
|
13620
13623
|
return this.channels$[channel];
|
|
@@ -13639,9 +13642,8 @@
|
|
|
13639
13642
|
CentrifugoService.prototype.connect = function () {
|
|
13640
13643
|
var _this = this;
|
|
13641
13644
|
if (!common.isPlatformBrowser(this.platformId)) {
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
});
|
|
13645
|
+
console.error('Centrifugo is not available in ssr mode');
|
|
13646
|
+
return new rxjs.Observable(function (observer) { });
|
|
13645
13647
|
}
|
|
13646
13648
|
if (!this.initializeEngineSubject) {
|
|
13647
13649
|
this.initializeEngineSubject = new rxjs.ReplaySubject(1);
|
|
@@ -13668,15 +13670,16 @@
|
|
|
13668
13670
|
CentrifugoService.prototype.publish = function (channel, message) {
|
|
13669
13671
|
var _this = this;
|
|
13670
13672
|
if (!common.isPlatformBrowser(this.platformId)) {
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
});
|
|
13673
|
+
console.error('Centrifugo is not available in ssr mode');
|
|
13674
|
+
return new rxjs.Observable(function (observer) { });
|
|
13674
13675
|
}
|
|
13675
13676
|
return this.connect().pipe(operators.tap(function () { return _this.centrifuge.publish(channel, message); }));
|
|
13676
13677
|
};
|
|
13677
13678
|
CentrifugoService.prototype.disconnect = function () {
|
|
13678
13679
|
var e_1, _a;
|
|
13679
|
-
this.centrifuge
|
|
13680
|
+
if (this.centrifuge) {
|
|
13681
|
+
this.centrifuge.disconnect();
|
|
13682
|
+
}
|
|
13680
13683
|
this.initializeEngineSubject = undefined;
|
|
13681
13684
|
try {
|
|
13682
13685
|
for (var _b = __values(Object.keys(this.channels$)), _c = _b.next(); !_c.done; _c = _b.next()) {
|