@everymatrix/general-player-register-form 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/general-player-register-form",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.4",
|
|
4
4
|
"main": "dist/general-player-register-form.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": "9bb18c43ff2bfc607d04dde35cedd5c861f4d483"
|
|
39
39
|
}
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
});
|
|
105
105
|
|
|
106
106
|
const verifyUserConsents = ():void => {
|
|
107
|
-
fetch(`${endpoint}/
|
|
107
|
+
fetch(`${endpoint}/player/consentRequirements`)
|
|
108
108
|
.then((res:any) => res.json())
|
|
109
109
|
.then(data => {
|
|
110
110
|
if(data.items.length > 0) {
|
|
@@ -334,7 +334,7 @@
|
|
|
334
334
|
body: JSON.stringify(userData)
|
|
335
335
|
};
|
|
336
336
|
|
|
337
|
-
let response:any = await fetch(`${endpoint}/
|
|
337
|
+
let response:any = await fetch(`${endpoint}/player/register`, sendRegistrationData);
|
|
338
338
|
let data:any = await response.json();
|
|
339
339
|
|
|
340
340
|
if (response.ok) {
|
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
const sendSmsToken = async (userData, playerId) => {
|
|
365
365
|
localStorage.setItem('smsTimer', JSON.stringify(Math.floor(Date.now() / 1000)));
|
|
366
366
|
try {
|
|
367
|
-
const res = await fetch(`${endpoint}/
|
|
367
|
+
const res = await fetch(`${endpoint}/player/sms/token`,{
|
|
368
368
|
method: 'POST',
|
|
369
369
|
headers: {
|
|
370
370
|
'Content-Type': 'application/json',
|