Socket
Socket
Sign inDemoInstall

xml-formatter

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml-formatter - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

index.d.ts

13

dist/browser/xml-formatter.js

@@ -285,8 +285,11 @@ 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 processContentNode(node, output, preserveSpace) {
if (node.content.trim() !== '' || preserveSpace) {
if (!preserveSpace && output.content.length > 0) {
newLine(output);
}
appendContent(output, node.content);
if (!preserveSpace) {
node.content = node.content.trim();
}
if (node.content.length > 0) {
if (!preserveSpace && output.content.length > 0) {
newLine(output);
}
appendContent(output, node.content);
}
}

@@ -293,0 +296,0 @@

@@ -43,8 +43,11 @@ /**

function processContentNode(node, output, preserveSpace) {
if (node.content.trim() !== '' || preserveSpace) {
if (!preserveSpace && output.content.length > 0) {
newLine(output);
}
appendContent(output, node.content);
if (!preserveSpace) {
node.content = node.content.trim();
}
if (node.content.length > 0) {
if (!preserveSpace && output.content.length > 0) {
newLine(output);
}
appendContent(output, node.content);
}
}

@@ -51,0 +54,0 @@

{
"name": "xml-formatter",
"version": "2.1.0",
"version": "2.1.1",
"repository": "github:chrisbottin/xml-formatter",

@@ -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