xml-beautify
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -1,1 +0,1 @@ | ||
/*! XmlBeautify v1.2.2 Copyright (c) 2019-2022 https://github.com/riversun(riversun.org@gmail.com) */ | ||
/*! XmlBeautify v1.2.3 Copyright (c) 2019-2022 https://github.com/riversun(riversun.org@gmail.com) */ |
/** | ||
* To use it with node.js, install an external DOMParser as follows | ||
* `npm install xmldom` | ||
* `npm install @xmldom/xmldom` | ||
* @type {*} | ||
*/ | ||
const XmlBeautify = require("../dist/XmlBeautify.js"); | ||
const { DOMParser } = require('xmldom');// When used in a node.js environment, DOMParser is needed. | ||
const { DOMParser } = require('@xmldom/xmldom');// When used in a node.js environment, DOMParser is needed. | ||
const srcXmlText = `<?xml version="1.0" encoding="utf-8"?><example version="2.0"> | ||
@@ -9,0 +9,0 @@ <head> |
{ | ||
"name": "xml-beautify", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "XML pretty formatter that corresponds to the self-closing empty elements.", | ||
@@ -25,2 +25,3 @@ "main": "dist/XmlBeautify.js", | ||
"@babel/preset-env": "^7.16.11", | ||
"@xmldom/xmldom": "^0.8.2", | ||
"babel-jest": "^27.5.1", | ||
@@ -32,4 +33,3 @@ "babel-loader": "^8.2.4", | ||
"webpack-cli": "^4.9.2", | ||
"webpack-dev-server": "^4.8.1", | ||
"xmldom": "^0.6.0" | ||
"webpack-dev-server": "^4.8.1" | ||
}, | ||
@@ -36,0 +36,0 @@ "directories": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
121248