ouisys-engine 2.1.69 → 2.1.70
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/.eslintrc.js
ADDED
package/.prettierignore
ADDED
|
@@ -178,7 +178,7 @@ function submitMSISDNOnce(_x7, _x8, _x9, _x10) {
|
|
|
178
178
|
|
|
179
179
|
function _submitMSISDNOnce() {
|
|
180
180
|
_submitMSISDNOnce = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(window, config, internationalMSISDN, extraParams) {
|
|
181
|
-
var submissionError, msisdn, rockmanId, supportedSlugs, identifiedUser, slug, country, device, offer, host, search, extraParamsQs, uniqid, result, error,
|
|
181
|
+
var submissionError, msisdn, rockmanId, supportedSlugs, identifiedUser, slug, country, device, offer, host, search, extraParamsQs, uniqid, result, error, codesWithMcpShied, mcpShieldResult;
|
|
182
182
|
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
183
183
|
while (1) {
|
|
184
184
|
switch (_context3.prev = _context3.next) {
|
|
@@ -246,16 +246,22 @@ function _submitMSISDNOnce() {
|
|
|
246
246
|
throw error;
|
|
247
247
|
|
|
248
248
|
case 27:
|
|
249
|
-
|
|
249
|
+
codesWithMcpShied = {
|
|
250
250
|
kw: {
|
|
251
251
|
kw_viva: "kw_viva"
|
|
252
252
|
},
|
|
253
253
|
k2: {
|
|
254
254
|
k2_viva: "k2_viva"
|
|
255
|
+
},
|
|
256
|
+
sa: {
|
|
257
|
+
sa_zain: "sa_zain",
|
|
258
|
+
sa_mobily: "sa_mobily",
|
|
259
|
+
sa_virgin: "sa_virgin",
|
|
260
|
+
sa_stc: "sa_stc"
|
|
255
261
|
}
|
|
256
262
|
};
|
|
257
263
|
|
|
258
|
-
if (!(country && result.operator && (
|
|
264
|
+
if (!(country && result.operator && (codesWithMcpShied[country.toLowerCase()] && codesWithMcpShied[country.toLowerCase()][result.operator.toLowerCase()] || country.toLowerCase() == "iq"))) {
|
|
259
265
|
_context3.next = 39;
|
|
260
266
|
break;
|
|
261
267
|
}
|
package/package.json
CHANGED
|
@@ -87,16 +87,22 @@ async function submitMSISDNOnce(window: Window, config: IConfig, internationalMS
|
|
|
87
87
|
throw error
|
|
88
88
|
} else {
|
|
89
89
|
|
|
90
|
-
const
|
|
90
|
+
const codesWithMcpShied:{[key:string]:{[key:string]:string}} = {
|
|
91
91
|
kw:{
|
|
92
92
|
kw_viva:"kw_viva"
|
|
93
93
|
},
|
|
94
94
|
k2:{
|
|
95
95
|
k2_viva:"k2_viva"
|
|
96
|
+
},
|
|
97
|
+
sa:{
|
|
98
|
+
sa_zain:"sa_zain",
|
|
99
|
+
sa_mobily: "sa_mobily",
|
|
100
|
+
sa_virgin: "sa_virgin",
|
|
101
|
+
sa_stc: "sa_stc"
|
|
96
102
|
}
|
|
97
103
|
}
|
|
98
104
|
if(country && result.operator && (
|
|
99
|
-
(
|
|
105
|
+
(codesWithMcpShied[country.toLowerCase()] && codesWithMcpShied[country.toLowerCase()][result.operator.toLowerCase()]) ||
|
|
100
106
|
country.toLowerCase() == "iq"
|
|
101
107
|
)
|
|
102
108
|
){
|