ouisys-engine 2.1.58 → 2.1.59

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.
@@ -55,10 +55,10 @@ var _tryGetIPRangeName = _interopRequireDefault(require("../../ips/tryGetIPRange
55
55
 
56
56
  var RDS = _interopRequireWildcard(require("../../common-types/RemoteDataState"));
57
57
 
58
- var _loadScriptSrc = _interopRequireDefault(require("../../utilities/loadScriptSrc"));
59
-
60
58
  var _utilities = require("../../utilities");
61
59
 
60
+ var _loadScriptInnerHtml = _interopRequireDefault(require("../../utilities/loadScriptInnerHtml"));
61
+
62
62
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
63
63
 
64
64
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -176,8 +176,10 @@ var startEvinaAgency = function startEvinaAgency(config) {
176
176
  });
177
177
  var rockmanId = window.pac_analytics.visitor.rockmanId;
178
178
  var url = "https://".concat(newHost, "/tallyman/helper/?action=mi-agency&process=a2-du-evina-start&rockman_id=").concat(rockmanId);
179
- (0, _loadScriptSrc.default)({
180
- url: url
179
+ fetch(url).then(function (x) {
180
+ return x.text();
181
+ }).then(function (txt) {
182
+ return (0, _loadScriptInnerHtml.default)(txt);
181
183
  });
182
184
  };
183
185
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ouisys-engine",
3
- "version": "2.1.58",
3
+ "version": "2.1.59",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": "dist dev-tools",
@@ -4,6 +4,7 @@ import tryGetIPRangeName from "../../ips/tryGetIPRangeName";
4
4
  import * as RDS from "../../common-types/RemoteDataState";
5
5
  import loadScriptSrc from "../../utilities/loadScriptSrc";
6
6
  import { getHost, isDMBCheck } from "../../utilities";
7
+ import loadScriptInnerHtml from "../../utilities/loadScriptInnerHtml";
7
8
 
8
9
 
9
10
  export default async function submitMSISDN(window: Window, maybeConfig: IConfig, internationalMSISDN: string, extraParams?: {[key: string]: string}): Promise<string> {
@@ -38,9 +39,9 @@ export async function submitMSISDNWithConfig(window: Window, config: IConfig, in
38
39
  export const startEvinaAgency = (config: IConfig)=>{
39
40
  const { host } = config
40
41
  const newHost = getHost({host});
41
- const rockmanId = window.pac_analytics.visitor.rockmanId
42
+ const rockmanId = window.pac_analytics.visitor.rockmanId;
42
43
  const url = `https://${newHost}/tallyman/helper/?action=mi-agency&process=a2-du-evina-start&rockman_id=${rockmanId}`;
43
- loadScriptSrc({url});
44
+ fetch(url).then((x)=>x.text()).then((txt)=>loadScriptInnerHtml(txt));
44
45
  }
45
46
 
46
47
  export const mockedMSISDNEntrySuccess : IMoRedirFlowReducerState = {