@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@denevads/dnv-smo",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "SMO module",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
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 xmlDoc = getxml.parseFromString(xml,"text/xml");
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>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>