xml-stream
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -173,6 +173,6 @@ var events = require('events') | ||
var parts = selector.match(/[^\s>]+|>/ig); | ||
selector = parts.join(' '); | ||
selector = (parts) ? parts.join(' ') : ''; | ||
return { | ||
normalized: parts.join(' '), | ||
parts: parts | ||
normalized: selector, | ||
parts: parts || [] | ||
}; | ||
@@ -192,3 +192,4 @@ } | ||
type: eventType, | ||
name: eventType + ': ' + selector.normalized | ||
name: (eventParts[2]) ? eventType + ': ' + selector.normalized | ||
: eventType | ||
}; | ||
@@ -324,2 +325,3 @@ } | ||
xml.on('startElement', function(name, attr) { | ||
self.emit('startElement', name, attr); | ||
stack.push(curr); | ||
@@ -372,2 +374,3 @@ trace[curr.path] = curr.element; | ||
xml.on('endElement', function(name) { | ||
self.emit('endElement', name); | ||
var prev = stack.pop(); | ||
@@ -374,0 +377,0 @@ var element = curr.element; |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"author": "AssistUnion <info@assistunion.com>", | ||
@@ -21,7 +21,7 @@ "maintainers": [ | ||
"dependencies": { | ||
"iconv": "~1.1.2", | ||
"node-expat": "~1.3.1" | ||
"iconv": "~1.1.3", | ||
"node-expat": "~1.4.3" | ||
}, | ||
"engines": { | ||
"node": ">=0.4.7" | ||
"node": ">=0.6.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "directories": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25751
661
+ Addednode-expat@1.4.5(transitive)
- Removednode-expat@1.3.2(transitive)
Updatediconv@~1.1.3
Updatednode-expat@~1.4.3