@everymatrix/casino-games-category-section 1.17.3 → 1.17.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-games-category-section",
3
- "version": "1.17.3",
3
+ "version": "1.17.4",
4
4
  "main": "dist/casino-games-category-section.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "89baba5648f1fb1c1ff4fbe9369eb83965480ce7"
38
+ "gitHead": "9bb18c43ff2bfc607d04dde35cedd5c861f4d483"
39
39
  }
@@ -191,11 +191,12 @@
191
191
  let vendorFilters = JSON.parse(localStorage.getItem('vendorFiltersByCategory'));
192
192
  let vendorSort = JSON.parse(localStorage.getItem('vendorSortingBy'));
193
193
 
194
+ let tempEndpoint:string = endpoint.replace(/.$/, "2"); // @TODO remove after we migrate with all endpoints to v2 - hack for the endpoint since the filtering of categories functionality was developed only for the v2 api
194
195
  if((categoryid.match(/\$/g) || []).length > 1) {
195
196
  categoryidparsed = categoryid.split('$').slice(0, 2).join('$');
196
- url = new URL(`${endpoint}/v2/casino/groups/${datasource}/${categoryidparsed}/subGroups`);
197
+ url = new URL(`${tempEndpoint}/casino/groups/${datasource}/${categoryidparsed}/subGroups`);
197
198
  } else {
198
- url = new URL(`${endpoint}/v2/casino/groups/${datasource}/${categoryid}`);
199
+ url = new URL(`${tempEndpoint}/casino/groups/${datasource}/${categoryid}`);
199
200
  }
200
201
 
201
202
  return new Promise((resolve, reject) => {
@@ -469,7 +470,7 @@
469
470
  playerID = e.data.userID;
470
471
  if (favorites == 'true') {
471
472
  if (playerID && playerID.length && sessionID && sessionID.length > 0) {
472
- getFavoredGames(`${endpoint}/v1/player/${playerID}/favorites/`, sessionID);
473
+ getFavoredGames(`${endpoint}/player/${playerID}/favorites/`, sessionID);
473
474
  }
474
475
  }
475
476