@denevads/dnv-smo 1.0.28 → 1.0.29
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/.idea/denevads_dnv-smo.iml +1 -1
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/README.md +29 -29
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -17
- package/dist/interfaces/callbacks.d.ts +65 -65
- package/dist/interfaces/callbacks.js +2 -2
- package/dist/smo.d.ts +168 -168
- package/dist/smo.js +805 -805
- package/package.json +1 -1
- package/src/smo.ts +4 -4
- package/dist/dist.rar +0 -0
- package/dist/dist.zip +0 -0
package/package.json
CHANGED
package/src/smo.ts
CHANGED
|
@@ -43,7 +43,7 @@ export class SMO {
|
|
|
43
43
|
this.vars[decode(match[1])] = decode(match[2]);
|
|
44
44
|
}
|
|
45
45
|
// @ts-ignore
|
|
46
|
-
if(window.objJS && window
|
|
46
|
+
if(window.objJS != undefined && window !== window.parent && this.vars.ontop != undefined && this.vars.ontop != ""){
|
|
47
47
|
// @ts-ignore
|
|
48
48
|
console.log("Existe objJS en window -->" + JSON.stringify(window.objJS));
|
|
49
49
|
// @ts-ignore
|
|
@@ -746,10 +746,10 @@ class Utils{
|
|
|
746
746
|
|
|
747
747
|
if (xml.nodeType == 1) { // Element
|
|
748
748
|
if (xml.attributes.length > 0) {
|
|
749
|
-
jsonObj["
|
|
749
|
+
jsonObj["ATTRIBUTES"] = {};
|
|
750
750
|
for (let j = 0; j < xml.attributes.length; j++) {
|
|
751
751
|
let attribute = xml.attributes.item(j);
|
|
752
|
-
jsonObj["
|
|
752
|
+
jsonObj["ATTRIBUTES"][attribute.nodeName] = attribute.nodeValue;
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
} else if (xml.nodeType == 3) { // Text
|
|
@@ -766,7 +766,7 @@ class Utils{
|
|
|
766
766
|
if (nodeName == "#text" && item.nodeType == 3) {
|
|
767
767
|
jsonObj = item.nodeValue.trim();
|
|
768
768
|
}else if (nodeName == "#cdata-section" && (item.nodeType == 4 || item.nodeType == 3)) { //Para que quede bonito
|
|
769
|
-
jsonObj["
|
|
769
|
+
jsonObj["CDATA"] = this.setJsonObj(item);
|
|
770
770
|
} else if (typeof jsonObj[nodeName] === "undefined") {
|
|
771
771
|
jsonObj[nodeName] = this.setJsonObj(item);
|
|
772
772
|
} else {
|
package/dist/dist.rar
DELETED
|
Binary file
|
package/dist/dist.zip
DELETED
|
Binary file
|