Comparing version 3.1.0 to 4.0.0
@@ -26,3 +26,3 @@ // Generated by CoffeeScript 1.12.7 | ||
xmldom = require('xmldom'); | ||
xmldom = require('@xmldom/xmldom'); | ||
@@ -348,5 +348,4 @@ xmlenc = require('xml-encryption'); | ||
check_saml_signature = function(_xml, certificate) { | ||
var doc, sig, signature, valid, xml; | ||
xml = _xml.replace(/\r\n?/g, '\n'); | ||
check_saml_signature = function(xml, certificate) { | ||
var doc, sig, signature, valid; | ||
doc = (new xmldom.DOMParser()).parseFromString(xml); | ||
@@ -353,0 +352,0 @@ signature = xmlcrypto.xpath(doc.documentElement, "./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']"); |
{ | ||
"name": "saml2-js", | ||
"version": "3.1.0", | ||
"version": "4.0.0", | ||
"description": "SAML 2.0 node helpers", | ||
@@ -13,4 +13,4 @@ "author": "Clever", | ||
"build": "coffee --bare -c -o lib-js lib", | ||
"test": "NODE_ENV=test mocha --require coffee-script/register test/*.coffee", | ||
"test-cov": "NODE_ENV=test nyc --extension .coffee -r html -r text mocha --require coffee-script/register test/*.coffee", | ||
"test": "NODE_ENV=test mocha --require coffeescript/register test/*.coffee", | ||
"test-cov": "NODE_ENV=test nyc --extension .coffee -r html -r text mocha --require coffeescript/register test/*.coffee", | ||
"prepare": "npm run build" | ||
@@ -30,16 +30,16 @@ }, | ||
"devDependencies": { | ||
"coffee-script": "^1.12.0", | ||
"mocha": "^8.2.0", | ||
"coffeescript": "^1.12.7", | ||
"mocha": "^8.4.0", | ||
"nyc": "^15.0.0" | ||
}, | ||
"dependencies": { | ||
"@xmldom/xmldom": "^0.8.3", | ||
"async": "^3.2.0", | ||
"debug": "^4.3.0", | ||
"underscore": "^1.8.0", | ||
"xml-crypto": "^2.0.0", | ||
"xml-encryption": "^1.2.1", | ||
"xml-crypto": "^3.0.0", | ||
"xml-encryption": "^2.0.0", | ||
"xml2js": "^0.4.0", | ||
"xmlbuilder2": "^2.4.0", | ||
"xmldom": "^0.4.0" | ||
"xmlbuilder2": "^2.4.0" | ||
} | ||
} |
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
241458
47
925
+ Added@xmldom/xmldom@^0.8.3
+ Added@xmldom/xmldom@0.8.10(transitive)
+ Addedxml-crypto@3.2.0(transitive)
+ Addedxml-encryption@2.0.0(transitive)
- Removedxmldom@^0.4.0
- Removednode-forge@0.10.0(transitive)
- Removedxml-crypto@2.1.5(transitive)
- Removedxml-encryption@1.3.0(transitive)
- Removedxmldom@0.4.0(transitive)
Updatedxml-crypto@^3.0.0
Updatedxml-encryption@^2.0.0