Socket
Socket
Sign inDemoInstall

xml-parser-xo

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml-parser-xo - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

24

index.js

@@ -156,12 +156,16 @@ /**

function cdata() {
const m = match(/^<!\[CDATA\[[^\]\]>]*]]>/);
if (m) {
const node = {
type: 'CDATA',
content: m[0]
};
return {
excluded: options.filter(node) === false,
node
};
if (xml.startsWith('<![CDATA[')) {
const endPositionStart = xml.indexOf(']]>');
if (endPositionStart > -1) {
const endPositionFinish = endPositionStart + 3;
const node = {
type: 'CDATA',
content: xml.substring(0, endPositionFinish)
};
xml = xml.slice(endPositionFinish);
return {
excluded: options.filter(node) === false,
node
};
}
}

@@ -168,0 +172,0 @@ }

{
"name": "xml-parser-xo",
"version": "3.1.0",
"version": "3.1.1",
"repository": "github:chrisbottin/xml-parser",

@@ -5,0 +5,0 @@ "bugs": {

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