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 0.1.0 to 1.0.0

4

index.js

@@ -26,3 +26,3 @@

// strip comments
xml = xml.replace(/<!--.*?-->/g, '');
xml = xml.replace(/<!--[\s\S]*?-->/g, '');

@@ -168,2 +168,2 @@ return document();

}
}
}
{
"name": "xml-parser",
"version": "0.1.0",
"version": "1.0.0",
"repository": "segmentio/xml-parser",

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

@@ -180,1 +180,11 @@

})
it('should support multi-line comments', function () {
var node = parse('<a><!-- multi-line\n comment\n test -->foo</a>')
node.root.should.eql({
"name": "a",
"attributes": {},
"children": [],
"content": "foo"
})
})
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