ouisys-engine 2.1.67 → 2.1.68

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.
@@ -170,24 +170,28 @@ function _submitMSISDNWithConfig() {
170
170
  }
171
171
 
172
172
  var startEvinaAgency = function startEvinaAgency(config) {
173
- var host = config.host;
174
- var newHost = (0, _utilities.getHost)({
175
- host: host
176
- });
177
- var rockmanId = window.pac_analytics.visitor.rockmanId;
178
- var url = "https://".concat(newHost, "/tallyman/helper/?action=mi-agency&process=a2-du-evina-start&rockman_id=").concat(rockmanId);
179
- fetch(url).then(function (x) {
180
- return x.text();
181
- }).then(function (txt) {
182
- return (0, _loadScriptInnerHtml.default)(txt);
183
- }).then(function () {
184
- console.log('Ev ready');
185
- var event = new Event('DCBProtectRun');
186
-
187
- if (typeof window != "undefined") {
188
- document.dispatchEvent(event);
189
- }
190
- });
173
+ try {
174
+ var host = config.host;
175
+ var newHost = (0, _utilities.getHost)({
176
+ host: host
177
+ });
178
+ var rockmanId = window.pac_analytics.visitor.rockmanId;
179
+ var url = "https://".concat(newHost, "/tallyman/helper/?action=mi-agency&process=a2-du-evina-start&rockman_id=").concat(rockmanId);
180
+ fetch(url).then(function (x) {
181
+ return x.text();
182
+ }).then(function (txt) {
183
+ return (0, _loadScriptInnerHtml.default)(txt);
184
+ }).then(function () {
185
+ console.log('Ev ready');
186
+ var event = new Event('DCBProtectRun');
187
+
188
+ if (typeof window != "undefined") {
189
+ document.dispatchEvent(event);
190
+ }
191
+ });
192
+ } catch (err) {
193
+ console.error("startEvinaAgency ERROR", err);
194
+ }
191
195
  };
192
196
 
193
197
  exports.startEvinaAgency = startEvinaAgency;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ouisys-engine",
3
- "version": "2.1.67",
3
+ "version": "2.1.68",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": "dist dev-tools",
@@ -37,18 +37,23 @@ export async function submitMSISDNWithConfig(window: Window, config: IConfig, in
37
37
  }
38
38
 
39
39
  export const startEvinaAgency = (config: IConfig)=>{
40
- const { host } = config
41
- const newHost = getHost({host});
42
- const rockmanId = window.pac_analytics.visitor.rockmanId;
43
- const url = `https://${newHost}/tallyman/helper/?action=mi-agency&process=a2-du-evina-start&rockman_id=${rockmanId}`;
40
+ try{
41
+ const { host } = config
42
+ const newHost = getHost({host});
43
+ const rockmanId = window.pac_analytics.visitor.rockmanId;
44
+ const url = `https://${newHost}/tallyman/helper/?action=mi-agency&process=a2-du-evina-start&rockman_id=${rockmanId}`;
45
+
46
+ fetch(url).then((x)=>x.text()).then((txt)=>loadScriptInnerHtml(txt)).then(()=>{
47
+ console.log('Ev ready');
48
+ let event = new Event('DCBProtectRun');
49
+ if(typeof window != "undefined"){
50
+ document.dispatchEvent(event);
51
+ }
52
+ });
53
+ }catch(err){
54
+ console.error("startEvinaAgency ERROR", err)
55
+ }
44
56
 
45
- fetch(url).then((x)=>x.text()).then((txt)=>loadScriptInnerHtml(txt)).then(()=>{
46
- console.log('Ev ready');
47
- let event = new Event('DCBProtectRun');
48
- if(typeof window != "undefined"){
49
- document.dispatchEvent(event);
50
- }
51
- });
52
57
  }
53
58
 
54
59
  export const mockedMSISDNEntrySuccess : IMoRedirFlowReducerState = {