xml-formatter
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -157,12 +157,16 @@ require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | ||
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 | ||
}; | ||
} | ||
} | ||
@@ -169,0 +173,0 @@ } |
{ | ||
"name": "xml-formatter", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"repository": "github:chrisbottin/xml-formatter", | ||
@@ -34,3 +34,3 @@ "bugs": { | ||
"dependencies": { | ||
"xml-parser-xo": "^3.1.0" | ||
"xml-parser-xo": "^3.1.1" | ||
}, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
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
21665
532
Updatedxml-parser-xo@^3.1.1