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
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+
3
+ extends: ['eslint-config-ouisys'],
4
+
5
+ };
@@ -0,0 +1,3 @@
1
+ build/
2
+ storybook-static/
3
+ stats.json
@@ -0,0 +1,6 @@
1
+ {
2
+ "eslint.format.enable": true,
3
+ "editor.codeActionsOnSave": {
4
+ "source.fixAll.eslint": true
5
+ }
6
+ }
@@ -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, kwCodesWithMcpShied, mcpShieldResult;
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
- kwCodesWithMcpShied = {
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 && (kwCodesWithMcpShied[country.toLowerCase()] && kwCodesWithMcpShied[country.toLowerCase()][result.operator.toLowerCase()] || country.toLowerCase() == "iq"))) {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ouisys-engine",
3
- "version": "2.1.69",
3
+ "version": "2.1.70",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": "dist dev-tools",
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "semi": true,
3
+ "trailingComma": "none",
4
+ "singleQuote": true,
5
+ "printWidth": 120,
6
+ "tabWidth": 2
7
+ };
@@ -87,16 +87,22 @@ async function submitMSISDNOnce(window: Window, config: IConfig, internationalMS
87
87
  throw error
88
88
  } else {
89
89
 
90
- const kwCodesWithMcpShied:{[key:string]:{[key:string]:string}} = {
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
- (kwCodesWithMcpShied[country.toLowerCase()] && kwCodesWithMcpShied[country.toLowerCase()][result.operator.toLowerCase()]) ||
105
+ (codesWithMcpShied[country.toLowerCase()] && codesWithMcpShied[country.toLowerCase()][result.operator.toLowerCase()]) ||
100
106
  country.toLowerCase() == "iq"
101
107
  )
102
108
  ){