Socket
Socket
Sign inDemoInstall

xml-parser

Package Overview
Dependencies
1
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.2.0

4

index.js

@@ -72,3 +72,3 @@

debug('tag %j', xml);
var m = match(/^<([\w+:]+)\s*/);
var m = match(/^<([\w+:.]+)\s*/);
if (!m) return;

@@ -107,3 +107,3 @@

// closing
match(/^<\/[\w:]+>\s*/);
match(/^<\/[\w:.]+>\s*/);

@@ -110,0 +110,0 @@ return node;

{
"name": "xml-parser",
"version": "1.1.0",
"version": "1.2.0",
"repository": "segmentio/xml-parser",

@@ -5,0 +5,0 @@ "description": "the little xml parser that could",

@@ -203,1 +203,33 @@

})
it('should support tags with a dot', function () {
var node = parse('<root><c:Key.Columns><o:Column Ref="ol1"/></c:Key.Columns><c:Key.Columns><o:Column Ref="ol2"/></c:Key.Columns></root>');
node.root.should.eql({
name: "root",
attributes: {},
children: [{
name: "c:Key.Columns",
attributes: {},
children: [{
name: "o:Column",
attributes: {
Ref: "ol1"
},
children: []
}],
content: ""
}, {
name: "c:Key.Columns",
attributes: {},
children: [{
name: "o:Column",
attributes: {
"Ref": "ol2"
},
children: []
}],
content: ""
}],
content: ""
})
})
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc