@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.
@@ -2301,6 +2301,7 @@ var BasketballGameLogTypes;
2301
2301
  BasketballGameLogTypes[BasketballGameLogTypes["one_point_attempt"] = 20] = "one_point_attempt";
2302
2302
  BasketballGameLogTypes[BasketballGameLogTypes["one_point_made"] = 21] = "one_point_made";
2303
2303
  BasketballGameLogTypes[BasketballGameLogTypes["timeout"] = 22] = "timeout";
2304
+ BasketballGameLogTypes[BasketballGameLogTypes["team_rebound"] = 23] = "team_rebound";
2304
2305
  })(BasketballGameLogTypes || (BasketballGameLogTypes = {}));
2305
2306
  var BasketballGameLog = /** @class */ (function (_super) {
2306
2307
  __extends(BasketballGameLog, _super);
@@ -7779,6 +7780,7 @@ var BasketballGameLogTypeLocalization = (_a$1 = {},
7779
7780
  _a$1[BasketballGameLogTypes.technical_foul] = 'Технический фол',
7780
7781
  _a$1[BasketballGameLogTypes.unsportsmanlike_foul] = 'Неспортиный фол',
7781
7782
  _a$1[BasketballGameLogTypes.timeout] = 'Таймаут',
7783
+ _a$1[BasketballGameLogTypes.team_rebound] = 'Командный подбор',
7782
7784
  _a$1);
7783
7785
 
7784
7786
  var _a$2;
@@ -8392,8 +8394,9 @@ function fileSizeValidator(maxFileSize) {
8392
8394
  }
8393
8395
 
8394
8396
  var HttpCookieInterceptor = /** @class */ (function () {
8395
- function HttpCookieInterceptor(injector, platformId) {
8397
+ function HttpCookieInterceptor(injector, configService, platformId) {
8396
8398
  this.injector = injector;
8399
+ this.configService = configService;
8397
8400
  this.platformId = platformId;
8398
8401
  this.isBrowser = isPlatformBrowser(this.platformId);
8399
8402
  }
@@ -8401,7 +8404,8 @@ var HttpCookieInterceptor = /** @class */ (function () {
8401
8404
  if (!this.isBrowser) {
8402
8405
  return next.handle(req);
8403
8406
  }
8404
- if (req.withCredentials !== false) {
8407
+ var apiUrl = this.configService.get('apiUrl');
8408
+ if (apiUrl === req.url.substr(0, apiUrl.length)) {
8405
8409
  req = req.clone({ withCredentials: true });
8406
8410
  }
8407
8411
  var csrf = getCookie('csrftoken');
@@ -8414,11 +8418,12 @@ var HttpCookieInterceptor = /** @class */ (function () {
8414
8418
  };
8415
8419
  HttpCookieInterceptor.ctorParameters = function () { return [
8416
8420
  { type: Injector },
8421
+ { type: ConfigService },
8417
8422
  { type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }
8418
8423
  ]; };
8419
8424
  HttpCookieInterceptor = __decorate([
8420
8425
  Injectable(),
8421
- __param(1, Inject(PLATFORM_ID))
8426
+ __param(2, Inject(PLATFORM_ID))
8422
8427
  ], HttpCookieInterceptor);
8423
8428
  return HttpCookieInterceptor;
8424
8429
  }());