@everymatrix/player-account-controller 1.20.4 → 1.20.6

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/player-account-controller",
3
- "version": "1.20.4",
3
+ "version": "1.20.6",
4
4
  "main": "dist/player-account-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": "0056fac44771374c5d3153d4d4b07081b8961af0"
38
+ "gitHead": "e4f47bdc03ed557d4c75d636513ad077e402c2e6"
39
39
  }
@@ -286,7 +286,7 @@
286
286
  break;
287
287
 
288
288
  case 'SetPlayerAccountTimeout':
289
- url = new URL(`v2/player/${userId}/limits`, endpoint.slice(0, -2));
289
+ url = new URL(`/v2/player/${userId}/limits`, endpoint);
290
290
  url.searchParams.append('playerId', userId);
291
291
 
292
292
  let timeoutValue = e.data.timeoutSelected;
@@ -321,7 +321,7 @@
321
321
  break;
322
322
 
323
323
  case 'SetSelfExclusion':
324
- url = new URL(`v2/player/${userId}/limits`, endpoint.slice(0, -2));
324
+ url = new URL(`/v2/player/${userId}/limits`, endpoint);
325
325
  url.searchParams.append('playerId', userId);
326
326
 
327
327
  let selfExclusionPeriod = e.data.selfExclusionPeriod;
@@ -359,7 +359,7 @@
359
359
  break;
360
360
 
361
361
  case 'AccountClosure':
362
- url = new URL(`v2/player/${userId}/limits`, endpoint.slice(0, -2))
362
+ url = new URL(`/v2/player/${userId}/limits`, endpoint)
363
363
  url.searchParams.append('playerId', userId);
364
364
 
365
365
  let accountClosureData = 'UserRequest';
@@ -403,7 +403,7 @@
403
403
  break;
404
404
 
405
405
  case 'PlayerAccountGamingLimitsUpdate':
406
- url = new URL(`v2/player/${userId}/limits`, endpoint.slice(0, -2));
406
+ url = new URL(`/v2/player/${userId}/limits`, endpoint);
407
407
 
408
408
  let limitsData = e.data.payload;
409
409
  let optionsEditLimits = {
@@ -425,7 +425,7 @@
425
425
  type: 'success',
426
426
  message: $_('limitsUpdateSuccess')
427
427
  }}, window.location.href);
428
- getGamingLimits(new URL(`v2/player/${userId}/limits`, endpoint.slice(0, -2)));
428
+ getGamingLimits(new URL(`/v2/player/${userId}/limits`, endpoint));
429
429
  } else {
430
430
  // ERROR
431
431
  }
@@ -470,7 +470,7 @@
470
470
  body: JSON.stringify(limitsDeleteData)
471
471
  };
472
472
 
473
- url = new URL(`v2/player/${userId}/limits/${limitName}`, endpoint.slice(0, -2))
473
+ url = new URL(`/v2/player/${userId}/limits/${limitName}`, endpoint)
474
474
 
475
475
  //if single limit send string
476
476
  if (Array.isArray(deletedPeriodLimit)) {
@@ -493,18 +493,18 @@
493
493
  // ERROR
494
494
  }
495
495
  }).then((res:any):void => {
496
- getGamingLimits(new URL(`v2/player/${userId}/limits`, endpoint.slice(0, -2)));
496
+ getGamingLimits(new URL(`/v2/player/${userId}/limits`, endpoint));
497
497
  });
498
498
 
499
499
 
500
500
  break;
501
501
 
502
502
  case 'GamingLimitsConfirmChanges':
503
- getGamingLimits(new URL(`v2/player/${userId}/limits`, endpoint.slice(0, -2)));
503
+ getGamingLimits(new URL(`/v2/player/${userId}/limits`, endpoint));
504
504
  break;
505
505
 
506
506
  case 'CancelGamingLimitsChanges':
507
- getGamingLimits(new URL(`v2/player/${userId}/limits`, endpoint.slice(0, -2)));
507
+ getGamingLimits(new URL(`/v2/player/${userId}/limits`, endpoint));
508
508
  break;
509
509
 
510
510
  case 'SubmittedRealityCheck':
@@ -739,7 +739,7 @@
739
739
  }
740
740
 
741
741
  const sendLimitsData = (e:any):void => {
742
- getGamingLimits(new URL(`v2/player/${userId}/limits`, endpoint.slice(0, -2)));
742
+ getGamingLimits(new URL(`/v2/player/${userId}/limits`, endpoint));
743
743
  }
744
744
 
745
745
  const initialLoad = ():void => {
@@ -796,9 +796,9 @@
796
796
  </script>
797
797
 
798
798
  <svelte:head>
799
- <script type="module" src="https://unpkg.com/@everymatrix/user-deposit-withdrawal@1.17.0"></script>
800
- <script type="module" src="https://unpkg.com/@everymatrix/player-kyc-verification@1.17.0"></script>
801
- <script type="module" src="https://unpkg.com/@everymatrix/user-transaction-history@1.17.0"></script>
799
+ <script type="module" src="https://unpkg.com/@everymatrix/user-deposit-withdrawal"></script>
800
+ <script type="module" src="https://unpkg.com/@everymatrix/player-kyc-verification"></script>
801
+ <script type="module" src="https://unpkg.com/@everymatrix/user-transaction-history"></script>
802
802
  </svelte:head>
803
803
 
804
804
  <div bind:this={customStylingContainer}>
@@ -848,9 +848,9 @@
848
848
  {:else if switchContent && pagePath === widgetPath[16]}
849
849
  <player-kyc-verification {endpoint} {session} user-id={playerid} language={lang} kyc-title={kyctitle} description={kycdescription} translation-url={translationurl} client-styling={clientstyling} client-styling-url={clientstylingurl}></player-kyc-verification>
850
850
  {:else if switchContent && pagePath === widgetPath[17] }
851
- <user-deposit-withdrawal {endpoint} type="deposit" channel="Mobile" language={lang} product-type={producttype} user-id={playerid} {session} success-url={window.location.hostname + '/' + lang + successurl} cancel-url={window.location.hostname + '/' + lang + cancelurl} fail-url={window.location.hostname + '/' + lang + failurl} sports-url={window.location.hostname + '/' + lang + sportsurl} casino-url={window.location.hostname + '/' + lang + casinourl} contact-url={window.location.hostname + '/' + lang + contacturl} home-url={window.location.hostname + '/' + lang + homeurl} ></user-deposit-withdrawal>
851
+ <user-deposit-withdrawal {endpoint} type="deposit" channel="Mobile" language={lang} product-type={producttype} user-id={playerid} {session} success-url={'https://' + window.location.hostname + '/' + lang + successurl} cancel-url={'https://' + window.location.hostname + '/' + lang + cancelurl} fail-url={'https://' + window.location.hostname + '/' + lang + failurl} sports-url={'https://' + window.location.hostname + '/' + lang + sportsurl} casino-url={'https://' + window.location.hostname + '/' + lang + casinourl} contact-url={'https://' + window.location.hostname + '/' + lang + contacturl} home-url={'https://' + window.location.hostname + '/' + lang + homeurl} ></user-deposit-withdrawal>
852
852
  {:else if switchContent && pagePath === widgetPath[18] }
853
- <user-deposit-withdrawal {endpoint} type="withdraw" channel="Mobile" language={lang} product-type={producttype} user-id={playerid} {session} success-url={window.location.hostname + '/' + lang + successurl} cancel-url={window.location.hostname + '/' + lang + cancelurl} fail-url={window.location.hostname + '/' + lang + failurl} sports-url={window.location.hostname + '/' + lang + sportsurl} casino-url={window.location.hostname + '/' + lang + casinourl} contact-url={window.location.hostname + '/' + lang + contacturl} home-url={window.location.hostname + '/' + lang + homeurl} ></user-deposit-withdrawal>
853
+ <user-deposit-withdrawal {endpoint} type="withdraw" channel="Mobile" language={lang} product-type={producttype} user-id={playerid} {session} success-url={'https://' + window.location.hostname + '/' + lang + successurl} cancel-url={'https://' + window.location.hostname + '/' + lang + cancelurl} fail-url={'https://' + window.location.hostname + '/' + lang + failurl} sports-url={'https://' + window.location.hostname + '/' + lang + sportsurl} casino-url={'https://' + window.location.hostname + '/' + lang + casinourl} contact-url={'https://' + window.location.hostname + '/' + lang + contacturl} home-url={'https://' + window.location.hostname + '/' + lang + homeurl} ></user-deposit-withdrawal>
854
854
  {:else if switchContent && pagePath === widgetPath[19] }
855
855
  <user-transaction-history endpoint={endpoint} user-id={playerid} session={session} mobile={isMobile} translation-url={translationurl} language={lang}></user-transaction-history>
856
856
  {/if}
@@ -895,9 +895,9 @@
895
895
  {:else if switchContent && pagePath === widgetPath[16]}
896
896
  <player-kyc-verification {endpoint} {session} user-id={playerid} language={lang} kyc-title={kyctitle} description={kycdescription} translation-url={translationurl} client-styling={clientstyling} client-styling-url={clientstylingurl}></player-kyc-verification>
897
897
  {:else if switchContent && pagePath === widgetPath[17] }
898
- <user-deposit-withdrawal {endpoint} type="deposit" channel="Desktop" language={lang} product-type={producttype} user-id={playerid} {session} success-url={window.location.hostname + '/' + lang + successurl} cancel-url={window.location.hostname + '/' + lang + cancelurl} fail-url={window.location.hostname + '/' + lang + failurl} sports-url={window.location.hostname + '/' + lang + sportsurl} casino-url={window.location.hostname + '/' + lang + casinourl} contact-url={window.location.hostname + '/' + lang + contacturl} home-url={window.location.hostname + '/' + lang + homeurl} ></user-deposit-withdrawal>
898
+ <user-deposit-withdrawal endpoint={endpoint} type="deposit" channel="Desktop" language={lang} product-type={producttype} user-id={playerid} {session} success-url={'https://' + window.location.hostname + '/' + lang + successurl} cancel-url={'https://' + window.location.hostname + '/' + lang + cancelurl} fail-url={'https://' + window.location.hostname + '/' + lang + failurl} sports-url={'https://' + window.location.hostname + '/' + lang + sportsurl} casino-url={'https://' + window.location.hostname + '/' + lang + casinourl} contact-url={'https://' + window.location.hostname + '/' + lang + contacturl} home-url={'https://' + window.location.hostname + '/' + lang + homeurl} ></user-deposit-withdrawal>
899
899
  {:else if switchContent && pagePath === widgetPath[18] }
900
- <user-deposit-withdrawal {endpoint} type="withdraw" channel="Desktop" language={lang} product-type={producttype} user-id={playerid} {session} success-url={window.location.hostname + '/' + lang + successurl} cancel-url={window.location.hostname + '/' + lang + cancelurl} fail-url={window.location.hostname + '/' + lang + failurl} sports-url={window.location.hostname + '/' + lang + sportsurl} casino-url={window.location.hostname + '/' + lang + casinourl} contact-url={window.location.hostname + '/' + lang + contacturl} home-url={window.location.hostname + '/' + lang + homeurl} ></user-deposit-withdrawal>
900
+ <user-deposit-withdrawal endpoint={endpoint} type="withdraw" channel="Desktop" language={lang} product-type={producttype} user-id={playerid} {session} success-url={'https://' + window.location.hostname + '/' + lang + successurl} cancel-url={'https://' + window.location.hostname + '/' + lang + cancelurl} fail-url={'https://' + window.location.hostname + '/' + lang + failurl} sports-url={'https://' + window.location.hostname + '/' + lang + sportsurl} casino-url={'https://' + window.location.hostname + '/' + lang + casinourl} contact-url={'https://' + window.location.hostname + '/' + lang + contacturl} home-url={'https://' + window.location.hostname + '/' + lang + homeurl} ></user-deposit-withdrawal>
901
901
  {:else if switchContent && pagePath === widgetPath[19] }
902
902
  <user-transaction-history endpoint={endpoint} user-id={playerid} session={session} mobile={isMobile} translation-url={translationurl} language={lang}></user-transaction-history>
903
903
  {/if}