Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xml-stream

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml-stream - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

11

lib/xml-stream.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc