@everymatrix/casino-random-game 1.28.4 → 1.28.5
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-random-game",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.5",
|
|
4
4
|
"main": "dist/casino-random-game.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": "
|
|
38
|
+
"gitHead": "a79b46ea6029e0c4cfe17ebfabd15cec443fc85f"
|
|
39
39
|
}
|
|
@@ -55,16 +55,9 @@
|
|
|
55
55
|
show = true;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
let intervalId;
|
|
58
|
+
let intervalId;
|
|
59
59
|
const getRandomGame = (refresh?:boolean):void => {
|
|
60
|
-
|
|
61
|
-
do {
|
|
62
|
-
randomizeGame();
|
|
63
|
-
} while(!filteredrandomgamecategories.includes(randomGame.vendor.name));
|
|
64
|
-
} else {
|
|
65
|
-
randomizeGame();
|
|
66
|
-
}
|
|
67
|
-
|
|
60
|
+
randomizeGame();
|
|
68
61
|
clearInterval(intervalId);
|
|
69
62
|
|
|
70
63
|
intervalId = setInterval(() => {
|
|
@@ -127,8 +120,11 @@
|
|
|
127
120
|
|
|
128
121
|
url.searchParams.append('platform', getDevice(userAgent));
|
|
129
122
|
url.searchParams.append('datasource', datasource);
|
|
130
|
-
url.searchParams.append('fields', 'gId,id,href,thumbnail,name,vendor')
|
|
131
|
-
|
|
123
|
+
url.searchParams.append('fields', 'gId,id,href,thumbnail,name,vendor,categories')
|
|
124
|
+
if (filteredrandomgamecategories) {
|
|
125
|
+
url.searchParams.append('filter', `categories(id=${filteredrandomgamecategories})`)
|
|
126
|
+
}
|
|
127
|
+
url.searchParams.append('expand', 'categories');
|
|
132
128
|
url.searchParams.append('pagination', 'offset=0,limit=1000');
|
|
133
129
|
|
|
134
130
|
fetch(url.href)
|
|
@@ -166,6 +162,7 @@
|
|
|
166
162
|
$: lang && setActiveLanguage();
|
|
167
163
|
$: translationurl && setTranslationUrl();
|
|
168
164
|
$: endpoint && datasource && fetchGameList();
|
|
165
|
+
$: endpoint && datasource && filteredrandomgamecategories && fetchGameList();
|
|
169
166
|
$: clientstyling && customStylingContainer && setClientStyling();
|
|
170
167
|
$: clientstylingurl && customStylingContainer && setClientStylingURL();
|
|
171
168
|
</script>
|