bb-api-platforma 0.1.179 → 0.1.180

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.
@@ -380,7 +380,7 @@ export class BetBoosterOfficeApi {
380
380
  url,
381
381
  method: 'GET',
382
382
  params: { _: now },
383
- headers: Object.assign({}, (this.token ? { 'X-Token': this.token } : {})),
383
+ headers: Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), { 'X-API-Host': this._ENDPOINT_DOMAIN }),
384
384
  responseType: 'json',
385
385
  signal: abortController.signal,
386
386
  };
@@ -500,7 +500,7 @@ export class BetBoosterOfficeApi {
500
500
  }, this.maxTimeExecutionMs);
501
501
  const requestConfig = {
502
502
  params: this.queryStringHandler(Object.assign(Object.assign({}, queryParams), { _: now })),
503
- headers: Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), (headers !== null && headers !== void 0 ? headers : {})),
503
+ headers: Object.assign(Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), { 'X-API-Host': this._ENDPOINT_DOMAIN }), (headers !== null && headers !== void 0 ? headers : {})),
504
504
  responseType: 'json',
505
505
  signal: abortController.signal,
506
506
  };
@@ -522,7 +522,7 @@ export class BetBoosterOfficeApi {
522
522
  }, this.maxTimeExecutionMs);
523
523
  const requestConfig = {
524
524
  params: this.queryStringHandler(queryParams),
525
- headers: Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), (headers !== null && headers !== void 0 ? headers : {})),
525
+ headers: Object.assign(Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), { 'X-API-Host': this._ENDPOINT_DOMAIN }), (headers !== null && headers !== void 0 ? headers : {})),
526
526
  responseType: 'json',
527
527
  signal: abortController.signal,
528
528
  };
@@ -546,7 +546,7 @@ export class BetBoosterOfficeApi {
546
546
  }, this.maxTimeExecutionMs);
547
547
  const requestConfig = {
548
548
  params: this.queryStringHandler(queryParams),
549
- headers: Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), (headers !== null && headers !== void 0 ? headers : {})),
549
+ headers: Object.assign(Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), { 'X-API-Host': this._ENDPOINT_DOMAIN }), (headers !== null && headers !== void 0 ? headers : {})),
550
550
  responseType: 'json',
551
551
  signal: abortController.signal,
552
552
  data: payload,
@@ -569,7 +569,7 @@ export class BetBoosterOfficeApi {
569
569
  }, this.maxTimeExecutionMs);
570
570
  const requestConfig = {
571
571
  params: this.queryStringHandler(queryParams),
572
- headers: Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), (headers !== null && headers !== void 0 ? headers : {})),
572
+ headers: Object.assign(Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), { 'X-API-Host': this._ENDPOINT_DOMAIN }), (headers !== null && headers !== void 0 ? headers : {})),
573
573
  responseType: 'json',
574
574
  signal: abortController.signal,
575
575
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bb-api-platforma",
3
- "version": "0.1.179",
3
+ "version": "0.1.180",
4
4
  "description": "API module for BetBooster Platform",
5
5
  "productName": "BetBooster Platform API",
6
6
  "author": "Tomy Bet <tomybet.com@gmail.com>",