@everymatrix/casino-games-category-section 0.0.363 → 0.0.365
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": "0.0.
|
|
3
|
+
"version": "0.0.365",
|
|
4
4
|
"main": "dist/casino-games-category-section.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "f4dabfce4df55a591981f327a670cc250a2ed257"
|
|
40
40
|
}
|
|
@@ -97,7 +97,6 @@
|
|
|
97
97
|
let hidden;
|
|
98
98
|
let visibilityChange;
|
|
99
99
|
let dataloaded;
|
|
100
|
-
let categoriesCache:Object = {};
|
|
101
100
|
|
|
102
101
|
let favoriteGamesData:any = {
|
|
103
102
|
items: [],
|
|
@@ -210,29 +209,21 @@
|
|
|
210
209
|
}
|
|
211
210
|
}
|
|
212
211
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}, (err:any) => {
|
|
229
|
-
hasErrors = true;
|
|
230
|
-
|
|
231
|
-
console.error(err);
|
|
232
|
-
|
|
233
|
-
reject(err);
|
|
234
|
-
});
|
|
235
|
-
}
|
|
212
|
+
fetch(url)
|
|
213
|
+
.then((res:any) => res.json())
|
|
214
|
+
.then((categoryData:any) => {
|
|
215
|
+
dataloaded = true
|
|
216
|
+
hasErrors = false;
|
|
217
|
+
maxTotal = categoryData.games.total;
|
|
218
|
+
|
|
219
|
+
resolve(categoryData);
|
|
220
|
+
}, (err:any) => {
|
|
221
|
+
hasErrors = true;
|
|
222
|
+
|
|
223
|
+
console.error(err);
|
|
224
|
+
|
|
225
|
+
reject(err);
|
|
226
|
+
});
|
|
236
227
|
});
|
|
237
228
|
}
|
|
238
229
|
|