@denevads/dnv-smo 1.0.17 → 1.0.19
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/index.d.ts +1 -1
- package/dist/index.js +17 -17
- package/dist/interfaces/callbacks.d.ts +62 -62
- package/dist/interfaces/callbacks.js +2 -2
- package/dist/smo.d.ts +163 -163
- package/dist/smo.js +723 -720
- package/package.json +1 -1
- package/src/smo.ts +4 -1
- package/.idea/denevads_dnv-smo.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
package/package.json
CHANGED
package/src/smo.ts
CHANGED
|
@@ -50,6 +50,7 @@ export class SMO {
|
|
|
50
50
|
console.log("sendToIframefromNet->",target);
|
|
51
51
|
switch (target) {
|
|
52
52
|
case "SMO.setDatasource":
|
|
53
|
+
this.events.setDatasource.next(objData)
|
|
53
54
|
break;
|
|
54
55
|
case "SMO.checkHealthPrinter":
|
|
55
56
|
this.events.checkHealthPrinter.next(objData);
|
|
@@ -656,7 +657,9 @@ class Utils{
|
|
|
656
657
|
// Funciones para XML to JSON
|
|
657
658
|
xmlToJSON(xml:string) {
|
|
658
659
|
let getxml = new DOMParser();
|
|
659
|
-
let
|
|
660
|
+
let sinSaltosYTabulaciones = xml.replace(/[\n\r\t]/g, '');
|
|
661
|
+
let sinEspaciosEntreTags = sinSaltosYTabulaciones.replace(/>\s*</g, '><');
|
|
662
|
+
let xmlDoc = getxml.parseFromString(sinEspaciosEntreTags,"text/xml");
|
|
660
663
|
// gets the JSON string
|
|
661
664
|
let json_str = this.jsonToStr(this.setJsonObj(xmlDoc));
|
|
662
665
|
// sets and returns the JSON object, if "rstr" undefined (not passed), else, returns JSON string
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
</content>
|
|
9
|
-
<orderEntry type="inheritedJdk" />
|
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
-
</component>
|
|
12
|
-
</module>
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/denevads_dnv-smo.iml" filepath="$PROJECT_DIR$/.idea/denevads_dnv-smo.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|