xml-toolkit 1.0.52 → 1.0.53

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.
Files changed (2) hide show
  1. package/lib/XMLNode.js +1 -1
  2. package/package.json +1 -1
package/lib/XMLNode.js CHANGED
@@ -186,7 +186,7 @@ const XMLNode = class extends SAXEvent {
186
186
 
187
187
  get innerText () {
188
188
 
189
- const {children} = this; if (!Array.isArray (children) || children.length === 0) return this.text
189
+ const {children} = this; if (!Array.isArray (children) || children.length === 0) return this [TYPE] === SAXEvent.TYPES.END_ELEMENT ? '' : this.text
190
190
 
191
191
  let s = ''; for (const child of children) s += child.innerText; return s
192
192
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xml-toolkit",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "description": "XML parser, marshaller, SOAP adapter",
5
5
  "main": "index.js",
6
6
  "files": [