@mtgame/core 0.0.71 → 0.0.73
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 +8 -3
- 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/http-cookie.interceptor.js +8 -4
- package/esm2015/localization/basketball-game-log-types.js +2 -1
- package/esm2015/models/basketball-game-log.js +2 -1
- package/esm5/http-cookie.interceptor.js +8 -4
- package/esm5/localization/basketball-game-log-types.js +2 -1
- package/esm5/models/basketball-game-log.js +2 -1
- package/fesm2015/mtgame-core.js +8 -3
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +8 -3
- package/fesm5/mtgame-core.js.map +1 -1
- package/http-cookie.interceptor.d.ts +3 -1
- package/localization/basketball-game-log-types.d.ts +1 -0
- package/models/basketball-game-log.d.ts +2 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2514,6 +2514,7 @@
|
|
|
2514
2514
|
BasketballGameLogTypes[BasketballGameLogTypes["one_point_attempt"] = 20] = "one_point_attempt";
|
|
2515
2515
|
BasketballGameLogTypes[BasketballGameLogTypes["one_point_made"] = 21] = "one_point_made";
|
|
2516
2516
|
BasketballGameLogTypes[BasketballGameLogTypes["timeout"] = 22] = "timeout";
|
|
2517
|
+
BasketballGameLogTypes[BasketballGameLogTypes["team_rebound"] = 23] = "team_rebound";
|
|
2517
2518
|
})(exports.BasketballGameLogTypes || (exports.BasketballGameLogTypes = {}));
|
|
2518
2519
|
var BasketballGameLog = /** @class */ (function (_super) {
|
|
2519
2520
|
__extends(BasketballGameLog, _super);
|
|
@@ -7992,6 +7993,7 @@
|
|
|
7992
7993
|
_a$1[exports.BasketballGameLogTypes.technical_foul] = 'Технический фол',
|
|
7993
7994
|
_a$1[exports.BasketballGameLogTypes.unsportsmanlike_foul] = 'Неспортиный фол',
|
|
7994
7995
|
_a$1[exports.BasketballGameLogTypes.timeout] = 'Таймаут',
|
|
7996
|
+
_a$1[exports.BasketballGameLogTypes.team_rebound] = 'Командный подбор',
|
|
7995
7997
|
_a$1);
|
|
7996
7998
|
|
|
7997
7999
|
var _a$2;
|
|
@@ -8605,8 +8607,9 @@
|
|
|
8605
8607
|
}
|
|
8606
8608
|
|
|
8607
8609
|
var HttpCookieInterceptor = /** @class */ (function () {
|
|
8608
|
-
function HttpCookieInterceptor(injector, platformId) {
|
|
8610
|
+
function HttpCookieInterceptor(injector, configService, platformId) {
|
|
8609
8611
|
this.injector = injector;
|
|
8612
|
+
this.configService = configService;
|
|
8610
8613
|
this.platformId = platformId;
|
|
8611
8614
|
this.isBrowser = common.isPlatformBrowser(this.platformId);
|
|
8612
8615
|
}
|
|
@@ -8614,7 +8617,8 @@
|
|
|
8614
8617
|
if (!this.isBrowser) {
|
|
8615
8618
|
return next.handle(req);
|
|
8616
8619
|
}
|
|
8617
|
-
|
|
8620
|
+
var apiUrl = this.configService.get('apiUrl');
|
|
8621
|
+
if (apiUrl === req.url.substr(0, apiUrl.length)) {
|
|
8618
8622
|
req = req.clone({ withCredentials: true });
|
|
8619
8623
|
}
|
|
8620
8624
|
var csrf = getCookie('csrftoken');
|
|
@@ -8627,11 +8631,12 @@
|
|
|
8627
8631
|
};
|
|
8628
8632
|
HttpCookieInterceptor.ctorParameters = function () { return [
|
|
8629
8633
|
{ type: core.Injector },
|
|
8634
|
+
{ type: ConfigService },
|
|
8630
8635
|
{ type: String, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] }
|
|
8631
8636
|
]; };
|
|
8632
8637
|
HttpCookieInterceptor = __decorate([
|
|
8633
8638
|
core.Injectable(),
|
|
8634
|
-
__param(
|
|
8639
|
+
__param(2, core.Inject(core.PLATFORM_ID))
|
|
8635
8640
|
], HttpCookieInterceptor);
|
|
8636
8641
|
return HttpCookieInterceptor;
|
|
8637
8642
|
}());
|