xml-crypto
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -58,3 +58,2 @@ var select = require('xpath').select | ||
return attributeValue | ||
.replace(/[\r\n\t ]+/g, ' ') // White space normalization (Note: this should normally be done by the xml parser) See: https://www.w3.org/TR/xml/#AVNormalize | ||
.replace(/([&<"\r\n\t])/g, function(str, item){ | ||
@@ -70,3 +69,2 @@ // Special character normalization. See: | ||
return text | ||
.replace(/\r\n?/g, '\n') // Line ending normalization (Note: this should normally be done by the xml parser). See: https://www.w3.org/TR/xml/#sec-line-ends | ||
.replace(/([&<>\r])/g, function(str, item){ | ||
@@ -73,0 +71,0 @@ // Special character normalization. See: |
{ | ||
"name": "xml-crypto", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Xml digital signature and encryption library for Node.js", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -130,3 +130,3 @@ ## xml-crypto | ||
var signature = select(doc, "/*/*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']")[0] | ||
var signature = select(doc, "//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']")[0] | ||
var sig = new SignedXml() | ||
@@ -133,0 +133,0 @@ sig.keyInfoProvider = new FileKeyInfo("client_public.pem") |
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
73568
1305