@denevads/dnv-smo 1.0.33 → 1.0.34

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/smo.js CHANGED
@@ -22,11 +22,11 @@ var SMO = /** @class */ (function () {
22
22
  while (match = search.exec(query)) {
23
23
  this.vars[decode(match[1])] = decode(match[2]);
24
24
  }
25
- console.log("vars->", JSON.stringify(this.vars));
25
+ //console.log("vars->",JSON.stringify(this.vars));
26
26
  // @ts-ignore
27
- console.log("resultados " + window.objJS != undefined + " " + window !== window.parent + " " + this.vars.ontop != undefined + " " + this.vars.ontop != "");
27
+ //console.log( "resultados " +window.objJS != undefined + " " + window !== window.parent + " " + this.vars.ontop != undefined + " " + this.vars.ontop != "");
28
28
  // @ts-ignore
29
- if (window.objJS != undefined && this.vars.ontop !== undefined && this.vars.ontop !== "") {
29
+ if (window.objJS != undefined && this.vars != undefined && this.vars.ontop !== undefined && this.vars.ontop !== "") {
30
30
  // @ts-ignore
31
31
  console.log("Existe objJS en window -->" + JSON.stringify(window.objJS));
32
32
  // @ts-ignore
@@ -640,7 +640,7 @@ var Utils = /** @class */ (function () {
640
640
  Utils.prototype.sendToParent = function (obj, dest) {
641
641
  console.log('sendToParent->', JSON.stringify(obj));
642
642
  //@ts-ignore
643
- if (window.objJS != undefined && this.smo.vars.ontop != undefined && this.smo.vars.ontop != "") {
643
+ if (window.objJS != undefined && this.smo.vars != undefined && this.smo.vars.ontop != undefined && this.smo.vars.ontop != "") {
644
644
  switch (obj.target) {
645
645
  case "Dnv.smoCallbacks.onSmoLoad":
646
646
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@denevads/dnv-smo",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "SMO module",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
package/src/smo.ts CHANGED
@@ -42,11 +42,11 @@ export class SMO {
42
42
  while (match = search.exec(query)) {
43
43
  this.vars[decode(match[1])] = decode(match[2]);
44
44
  }
45
- console.log("vars->",JSON.stringify(this.vars));
45
+ //console.log("vars->",JSON.stringify(this.vars));
46
46
  // @ts-ignore
47
- console.log( "resultados " +window.objJS != undefined + " " + window !== window.parent + " " + this.vars.ontop != undefined + " " + this.vars.ontop != "");
47
+ //console.log( "resultados " +window.objJS != undefined + " " + window !== window.parent + " " + this.vars.ontop != undefined + " " + this.vars.ontop != "");
48
48
  // @ts-ignore
49
- if(window.objJS != undefined && this.vars.ontop !== undefined && this.vars.ontop !== ""){
49
+ if(window.objJS != undefined && this.vars != undefined && this.vars.ontop !== undefined && this.vars.ontop !== ""){
50
50
  // @ts-ignore
51
51
  console.log("Existe objJS en window -->" + JSON.stringify(window.objJS));
52
52
  // @ts-ignore
@@ -665,7 +665,7 @@ class Utils{
665
665
  sendToParent(obj:any,dest:string){
666
666
  console.log('sendToParent->',JSON.stringify(obj));
667
667
  //@ts-ignore
668
- if(window.objJS != undefined && this.smo.vars.ontop != undefined && this.smo.vars.ontop != ""){
668
+ if(window.objJS != undefined && this.smo.vars != undefined && this.smo.vars.ontop != undefined && this.smo.vars.ontop != ""){
669
669
  switch (obj.target) {
670
670
  case "Dnv.smoCallbacks.onSmoLoad":
671
671
  // @ts-ignore