Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/core-xml

Package Overview
Dependencies
Maintainers
1
Versions
250
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/core-xml - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

11

dist-esm/src/xml.js

@@ -19,3 +19,3 @@ // Copyright (c) Microsoft Corporation.

function getParserOptions(options = {}) {
return Object.assign(Object.assign({}, getCommonOptions(options)), { parseAttributeValue: false, parseTagValue: false, attributeNamePrefix: "", stopNodes: options.stopNodes, processEntities: false });
return Object.assign(Object.assign({}, getCommonOptions(options)), { parseAttributeValue: false, parseTagValue: false, attributeNamePrefix: "", stopNodes: options.stopNodes, processEntities: true });
}

@@ -50,3 +50,3 @@ /**

const parser = new XMLParser(getParserOptions(opts));
const parsedXml = parser.parse(unescapeHTML(str));
const parsedXml = parser.parse(str);
// Remove the <?xml version="..." ?> node.

@@ -65,9 +65,2 @@ // This is a change in behavior on fxp v4. Issue #424

}
function unescapeHTML(str) {
return str
.replace(/&amp;/g, "&")
.replace(/&lt;/g, "<")
.replace(/&gt;/g, ">")
.replace(/&quot;/g, '"');
}
//# sourceMappingURL=xml.js.map

@@ -33,3 +33,3 @@ 'use strict';

function getParserOptions(options = {}) {
return Object.assign(Object.assign({}, getCommonOptions(options)), { parseAttributeValue: false, parseTagValue: false, attributeNamePrefix: "", stopNodes: options.stopNodes, processEntities: false });
return Object.assign(Object.assign({}, getCommonOptions(options)), { parseAttributeValue: false, parseTagValue: false, attributeNamePrefix: "", stopNodes: options.stopNodes, processEntities: true });
}

@@ -64,3 +64,3 @@ /**

const parser = new fastXmlParser.XMLParser(getParserOptions(opts));
const parsedXml = parser.parse(unescapeHTML(str));
const parsedXml = parser.parse(str);
// Remove the <?xml version="..." ?> node.

@@ -79,9 +79,2 @@ // This is a change in behavior on fxp v4. Issue #424

}
function unescapeHTML(str) {
return str
.replace(/&amp;/g, "&")
.replace(/&lt;/g, "<")
.replace(/&gt;/g, ">")
.replace(/&quot;/g, '"');
}

@@ -88,0 +81,0 @@ exports.XML_ATTRKEY = XML_ATTRKEY;

2

package.json
{
"name": "@azure/core-xml",
"version": "1.3.1",
"version": "1.3.2",
"description": "Core library for interacting with XML payloads",

@@ -5,0 +5,0 @@ "sdk-type": "client",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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