ouisys-engine 2.1.71 → 2.1.74
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.
|
@@ -468,7 +468,7 @@ function _submitPIN() {
|
|
|
468
468
|
|
|
469
469
|
isAlreadySubscribed = pinResult.message == "ALREADY SUBSCRIBED" ? true : false;
|
|
470
470
|
return _context6.abrupt("return", {
|
|
471
|
-
productUrl:
|
|
471
|
+
productUrl: checkResult.product_url || null,
|
|
472
472
|
isAlreadySubscribed: isAlreadySubscribed
|
|
473
473
|
});
|
|
474
474
|
|
package/dist/utilities/index.js
CHANGED
|
@@ -26,16 +26,18 @@ var getHost = function getHost(_ref) {
|
|
|
26
26
|
exports.getHost = getHost;
|
|
27
27
|
|
|
28
28
|
var setOnLoadUtilities = function setOnLoadUtilities(config) {
|
|
29
|
-
if (
|
|
30
|
-
(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
(
|
|
29
|
+
if (typeof window != "undefined") {
|
|
30
|
+
if (process.env.country.toLowerCase() === "cz") {
|
|
31
|
+
(0, _utils.getGoogleReCaptchaConfig)(config);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if (process.env.country.toLowerCase() === "a2" && process.env.NODE_ENV === "production") {
|
|
35
|
+
(0, _utils2.startEvinaAgency)(config);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (process.env.country.toLowerCase() === "sa" || process.env.country.toLowerCase() === "iq") {
|
|
39
|
+
(0, _utils3.loadMcpShield)(window, config);
|
|
40
|
+
}
|
|
39
41
|
}
|
|
40
42
|
};
|
|
41
43
|
|
package/package.json
CHANGED
|
@@ -189,7 +189,7 @@ export async function submitPIN(window:Window, pin: string, config:IConfig, extr
|
|
|
189
189
|
)
|
|
190
190
|
if(true === checkResult.success) {
|
|
191
191
|
const isAlreadySubscribed = (pinResult.message == "ALREADY SUBSCRIBED") ? true : false;
|
|
192
|
-
return {productUrl:
|
|
192
|
+
return {productUrl:checkResult.product_url || null, isAlreadySubscribed}
|
|
193
193
|
} else {
|
|
194
194
|
const pinError = new Error(`Error in submitMSISDN() verify-pin action:\n${checkResult.message}`) as IError & {type:string}
|
|
195
195
|
pinError['type'] = "InvalidPIN";
|
package/src/utilities/index.ts
CHANGED
|
@@ -13,13 +13,15 @@ export const getHost = ({host}:{host: string}): string=>{
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const setOnLoadUtilities = (config:IConfig)=>{
|
|
16
|
-
if(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
if(typeof window != "undefined"){
|
|
17
|
+
if(process.env.country.toLowerCase() === "cz"){
|
|
18
|
+
getGoogleReCaptchaConfig(config)
|
|
19
|
+
}
|
|
20
|
+
if(process.env.country.toLowerCase() === "a2" && process.env.NODE_ENV === "production"){
|
|
21
|
+
startEvinaAgency(config)
|
|
22
|
+
}
|
|
23
|
+
if(process.env.country.toLowerCase() === "sa" || process.env.country.toLowerCase() === "iq"){
|
|
24
|
+
loadMcpShield(window, config);
|
|
25
|
+
}
|
|
24
26
|
}
|
|
25
27
|
}
|