@everymatrix/player-account-controller 1.17.2 → 1.17.3
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.17.
|
|
3
|
+
"version": "1.17.3",
|
|
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": "
|
|
38
|
+
"gitHead": "89baba5648f1fb1c1ff4fbe9369eb83965480ce7"
|
|
39
39
|
}
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
securityAnswer: profileData.securityAnswer,
|
|
249
249
|
};
|
|
250
250
|
|
|
251
|
-
url = new URL(`${endpoint}/player/${userId}/profile`);
|
|
251
|
+
url = new URL(`${endpoint}/v1/player/${userId}/profile`);
|
|
252
252
|
|
|
253
253
|
let options = {
|
|
254
254
|
method: "POST",
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
break;
|
|
274
274
|
|
|
275
275
|
case 'UpdatePlayerConsent':
|
|
276
|
-
url = new URL(`${endpoint}/player/${userId}/consent`);
|
|
276
|
+
url = new URL(`${endpoint}/v1/player/${userId}/consent`);
|
|
277
277
|
|
|
278
278
|
let optionsConsent = {
|
|
279
279
|
method: "POST",
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
const getUserProfileInfo = ():void => {
|
|
554
|
-
let url:URL = new URL(`${endpoint}/player/${userId}/profile`);
|
|
554
|
+
let url:URL = new URL(`${endpoint}/v1/player/${userId}/profile`);
|
|
555
555
|
let options = {
|
|
556
556
|
method: "GET",
|
|
557
557
|
headers: {
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
}
|
|
574
574
|
|
|
575
575
|
const getUserProfileConsent = ():void => {
|
|
576
|
-
let url:URL = new URL(`${endpoint}/player/${userId}/consent`);
|
|
576
|
+
let url:URL = new URL(`${endpoint}/v1/player/${userId}/consent`);
|
|
577
577
|
let options = {
|
|
578
578
|
method: "GET",
|
|
579
579
|
headers: {
|
|
@@ -591,7 +591,7 @@
|
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
const sendChangePassword = async (playerCurrentPassword:string, playerNewPassword:string) => {
|
|
594
|
-
let url:URL = new URL(`${endpoint}/player/${userId}/password`)
|
|
594
|
+
let url:URL = new URL(`${endpoint}/v1/player/${userId}/password`)
|
|
595
595
|
let data = {
|
|
596
596
|
currentPassword: playerCurrentPassword,
|
|
597
597
|
newPassword: playerNewPassword
|
|
@@ -644,7 +644,7 @@
|
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
const setRealityCheckValue = (updatedData:string):void => {
|
|
647
|
-
let url:URL = new URL(`${endpoint}/player/${userId}/realitycheck`);
|
|
647
|
+
let url:URL = new URL(`${endpoint}/v1/player/${userId}/realitycheck`);
|
|
648
648
|
|
|
649
649
|
if (updatedData) {
|
|
650
650
|
storedRealityCheck = updatedData;
|
|
@@ -663,7 +663,7 @@
|
|
|
663
663
|
fetch(url.href, optionsRealityCheck)
|
|
664
664
|
.then((res:any) => {
|
|
665
665
|
if (res.status == 200) {
|
|
666
|
-
getRealityCheckData(new URL(`${endpoint}/player/${playerid}/realitycheck`));
|
|
666
|
+
getRealityCheckData(new URL(`${endpoint}/v1/player/${playerid}/realitycheck`));
|
|
667
667
|
window.postMessage({ type: 'RealityCheckValueUpdated' }, window.location.href);
|
|
668
668
|
window.postMessage({ type: 'WidgetNotification', data: {
|
|
669
669
|
type: 'success',
|
|
@@ -743,7 +743,7 @@
|
|
|
743
743
|
getNotificationsDetails(new URL(`${cmsendpoint}/${lang}/support-information?env=${env}`));
|
|
744
744
|
getUserProfileInfo();
|
|
745
745
|
getUserProfileConsent();
|
|
746
|
-
getRealityCheckData(new URL(`${endpoint}/player/${playerid}/realitycheck`));
|
|
746
|
+
getRealityCheckData(new URL(`${endpoint}/v1/player/${playerid}/realitycheck`));
|
|
747
747
|
}
|
|
748
748
|
|
|
749
749
|
const setActiveLanguage = ():void => {
|
|
@@ -964,7 +964,7 @@
|
|
|
964
964
|
background: var(--emfe-w-pam-color-nav-desktop-bg, var(--emfe-w-color-gray-300, #58586B));
|
|
965
965
|
&.PlayerAccountMobile {
|
|
966
966
|
background: var(--emfe-w-pam-color-nav-mobile-bg, var(--emfe-w-color-background, #07072A));
|
|
967
|
-
color: var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-
|
|
967
|
+
color: var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
970
|
.PlayerAccountPage > main {
|