@everymatrix/casino-tournaments-controller 1.27.10 → 1.28.1
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/documentation.md
CHANGED
|
@@ -49,7 +49,7 @@ Inside your page you need to add the webcomponent tag for the `Casino Tournament
|
|
|
49
49
|
|
|
50
50
|
```html
|
|
51
51
|
<casino-tournaments-controller
|
|
52
|
-
endpoint="https://demo-api.stage.norway.everymatrix.com
|
|
52
|
+
endpoint="https://demo-api.stage.norway.everymatrix.com"
|
|
53
53
|
cmsendpoint="https://wp-one-widgets.everymatrix.com/wp-json/wpone-rest/v1/tournaments"
|
|
54
54
|
numberoftournaments="4"
|
|
55
55
|
showmorestep="3"
|
|
@@ -76,7 +76,7 @@ Full example:
|
|
|
76
76
|
<body>
|
|
77
77
|
<div class="container">
|
|
78
78
|
<casino-tournaments-controller
|
|
79
|
-
endpoint="https://demo-api.stage.norway.everymatrix.com
|
|
79
|
+
endpoint="https://demo-api.stage.norway.everymatrix.com"
|
|
80
80
|
cmsendpoint="https://wp-one-widgets.everymatrix.com/wp-json/wpone-rest/v1/tournaments"
|
|
81
81
|
numberoftournaments="4"
|
|
82
82
|
showmorestep="3"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-tournaments-controller",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.1",
|
|
4
4
|
"main": "dist/casino-tournaments-controller.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": "9f9aed70319897b043ee39f9eeadc29458edf2cf"
|
|
39
39
|
}
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
|
|
153
153
|
const fetcher = async (url:string, offset:number, limit:number) => {
|
|
154
154
|
|
|
155
|
-
let tournamentsUrl:URL = new URL(`${url}/tournaments`);
|
|
155
|
+
let tournamentsUrl:URL = new URL(`${url}/v1/tournaments`);
|
|
156
156
|
let reqHeaders:Headers = new Headers();
|
|
157
157
|
|
|
158
158
|
tournamentsUrl.searchParams.append('pagination', `offset=${offset},limit=${limit}`);
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
tournamentsUpdateEventSource.removeEventListener('message', tournamentsUpdateMessageHandler);
|
|
244
244
|
tournamentsUpdateEventSource.close();
|
|
245
245
|
}
|
|
246
|
-
let endpointURL: string = `${endpoint}/tournaments/updates?${tournamentsSearchParams}`;
|
|
246
|
+
let endpointURL: string = `${endpoint}/v1/tournaments/updates?${tournamentsSearchParams}`;
|
|
247
247
|
tournamentsUpdateEventSource = new EventSourcePolyfill(endpointURL, {headers: {'accept': 'text/event-stream','X-SessionId': session}});
|
|
248
248
|
if(typeof(tournamentsUpdateEventSource) != "undefined"){
|
|
249
249
|
tournamentsUpdateEventSource.addEventListener('message', tournamentsUpdateMessageHandler);
|