ouisys-engine 2.1.47 → 2.1.48

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/dist/api/index.js CHANGED
@@ -367,7 +367,7 @@ var RealTallyman = {
367
367
  console.log("RealTallyman");
368
368
  isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb") != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")) != -1 ? true : false;
369
369
  newHost = isDMB ? "de.tallymans.com" : host;
370
- isCleanTraffic = typeof window != "undefined" && !!window.shouldBlock && country.toLowerCase() === "be" ? window.shouldBlock === true ? '&is-clean-traffic=false' : '&is-clean-traffic=true' : '';
370
+ isCleanTraffic = country.toLowerCase() === "be" ? typeof window != "undefined" && window.shouldBlock === true ? '&is-clean-traffic=false' : '&is-clean-traffic=true' : '';
371
371
  _context12.next = 6;
372
372
  return fetch("https://".concat(newHost, "/tallyman/v1/?action=trigger-pin&country=").concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=").concat(device, "&offerId=").concat(offer, "&msisdn=").concat(msisdn, "&rockman_id=").concat(rockmanId).concat(uniqid).concat(isCleanTraffic).concat(extraParamsQs, "&").concat(search)).then(function (x) {
373
373
  return x.json();
@@ -400,7 +400,7 @@ var RealTallyman = {
400
400
  console.log("RealTallyman");
401
401
  isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb") != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")) != -1 ? true : false;
402
402
  newHost = isDMB ? "de.tallymans.com" : host;
403
- isCleanTraffic = typeof window != "undefined" && !!window.shouldBlock && country.toLowerCase() === "be" ? window.shouldBlock === true ? '&is-clean-traffic=false' : '&is-clean-traffic=true' : '';
403
+ isCleanTraffic = country.toLowerCase() === "be" ? typeof window != "undefined" && window.shouldBlock === true ? '&is-clean-traffic=false' : '&is-clean-traffic=true' : '';
404
404
  _context13.next = 6;
405
405
  return fetch("https://".concat(newHost, "/tallyman/v1/?action=verify-pin&country=").concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&pin=").concat(pin).concat(uniqid, "&sam_evina_tid=").concat(evinaTid).concat(isCleanTraffic).concat(extraParamsQs)).then(function (x) {
406
406
  return x.json();
@@ -287,7 +287,7 @@ var subscribe = /*#__PURE__*/function () {
287
287
  extraParamsQs = !extraParams ? '' : '&' + Object.keys(extraParams).map(function (k) {
288
288
  return "".concat(k, "=").concat(extraParams[k]);
289
289
  }).join('&');
290
- isCleanTraffic = typeof window != "undefined" && !!window.shouldBlock ? window.shouldBlock === true ? '&is-clean-traffic=false' : '&is-clean-traffic=true' : '';
290
+ isCleanTraffic = typeof window != "undefined" && window.shouldBlock === true ? '&is-clean-traffic=false' : '&is-clean-traffic=true';
291
291
  _context2.next = 5;
292
292
  return fetch("".concat(url, "&sam_evina_tid=").concat(evinaTid).concat(isCleanTraffic).concat(extraParamsQs)).then(function (x) {
293
293
  return x.json();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ouisys-engine",
3
- "version": "2.1.47",
3
+ "version": "2.1.48",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": "dist dev-tools",
package/src/api/index.ts CHANGED
@@ -147,7 +147,7 @@ export const RealTallyman:ITallyman = {
147
147
  console.log("RealTallyman")
148
148
  const isDMB = (window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb") != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")) != -1) ? true : false;
149
149
  const newHost = isDMB ? "de.tallymans.com" : host;
150
- const isCleanTraffic = (typeof window != "undefined" && !!window.shouldBlock && country.toLowerCase() === "be") ? (window.shouldBlock === true) ? '&is-clean-traffic=false' : '&is-clean-traffic=true' : '';
150
+ const isCleanTraffic = (country.toLowerCase() === "be") ? (typeof window != "undefined" && window.shouldBlock === true) ? '&is-clean-traffic=false' : '&is-clean-traffic=true' : '';
151
151
 
152
152
  return await fetch(`https://${newHost}/tallyman/v1/?action=trigger-pin&country=${bupperizeCountry(country)}&slug=${slug}&device=${device}&offerId=${offer}&msisdn=${msisdn}&rockman_id=${rockmanId}${uniqid}${isCleanTraffic}${extraParamsQs}&${search}`).then(x => x.json());
153
153
  },
@@ -155,7 +155,7 @@ export const RealTallyman:ITallyman = {
155
155
  console.log("RealTallyman");
156
156
  const isDMB = (window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb") != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")) != -1) ? true : false;
157
157
  const newHost = isDMB ? "de.tallymans.com" : host;
158
- const isCleanTraffic = (typeof window != "undefined" && !!window.shouldBlock && country.toLowerCase() === "be") ? (window.shouldBlock === true) ? '&is-clean-traffic=false' : '&is-clean-traffic=true' : '';
158
+ const isCleanTraffic = (country.toLowerCase() === "be") ? (typeof window != "undefined" && window.shouldBlock === true) ? '&is-clean-traffic=false' : '&is-clean-traffic=true' : '';
159
159
 
160
160
  return await fetch(`https://${newHost}/tallyman/v1/?action=verify-pin&country=${bupperizeCountry(country)}&slug=${slug}&device=${device}&offerId=${offer}&rockman_id=${rockmanId}&pin=${pin}${uniqid}&sam_evina_tid=${evinaTid}${isCleanTraffic}${extraParamsQs}`).then(x => x.json())
161
161
  },
@@ -164,7 +164,7 @@ export const subscribe:(url:string, extraParams?:IHash)=>Promise<string> = async
164
164
  const evinaTid = (typeof window != "undefined" && window.tid) ? window.tid : "";
165
165
  const extraParamsQs = !extraParams ? '' : '&' + Object.keys(extraParams).map(k => `${k}=${extraParams[k]}`).join('&')
166
166
 
167
- const isCleanTraffic = (typeof window != "undefined" && !!window.shouldBlock) ? (window.shouldBlock === true) ? '&is-clean-traffic=false' : '&is-clean-traffic=true' : '';
167
+ const isCleanTraffic = (typeof window != "undefined" && window.shouldBlock === true) ? '&is-clean-traffic=false' : '&is-clean-traffic=true';
168
168
 
169
169
  const result:ISubscribeResult = await fetch(`${url}&sam_evina_tid=${evinaTid}${isCleanTraffic}${extraParamsQs}`).then((x)=>x.json())
170
170