@everymatrix/casino-games-category-section 1.20.1 → 1.20.2

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.20.1",
3
+ "version": "1.20.2",
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": "0b1fb1b94c3fde91682c565fa9920e559c6b2a80"
38
+ "gitHead": "027e7d2b02e02eb30b70db42d22c137dc427288b"
39
39
  }
@@ -192,12 +192,11 @@
192
192
  let vendorFilters = JSON.parse(localStorage.getItem('vendorFiltersByCategory'));
193
193
  let vendorSort = JSON.parse(localStorage.getItem('vendorSortingBy'));
194
194
 
195
- 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
196
195
  if((categoryid.match(/\$/g) || []).length > 1) {
197
196
  categoryidparsed = categoryid.split('$').slice(0, 2).join('$');
198
- url = new URL(`${tempEndpoint}/v2/casino/groups/${datasource}/${categoryidparsed}/subGroups`);
197
+ url = new URL(`${endpoint}/casino/groups/${datasource}/${categoryidparsed}/subGroups`);
199
198
  } else {
200
- url = new URL(`${tempEndpoint}/v2/casino/groups/${datasource}/${categoryid}`);
199
+ url = new URL(`${endpoint}/casino/groups/${datasource}/${categoryid}`);
201
200
  }
202
201
 
203
202
  return new Promise((resolve, reject) => {