@everymatrix/general-player-register-form 1.19.5 → 1.20.0

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