xml-crypto
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -9,3 +9,3 @@ var xpath = require('./xpath'); | ||
EnvelopedSignature.prototype.process = function (node) { | ||
var signature = xpath.SelectNodes(node.ownerDocument, "/*/*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']")[0]; | ||
var signature = xpath.SelectNodes(node.ownerDocument, "//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']")[0]; | ||
if (signature) signature.parentNode.removeChild(signature) | ||
@@ -12,0 +12,0 @@ return node.toString(); |
{ | ||
"name": "xml-crypto", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Xml digital signature and encryption library for Node.js", | ||
@@ -8,3 +8,3 @@ "engines": { "node": ">=0.4.0" }, | ||
"dependencies": { | ||
"xmldom": "=0.1.2" | ||
"xmldom": ">=0.1.8" | ||
}, | ||
@@ -24,4 +24,4 @@ "devDependencies": { | ||
"scripts": { | ||
"test": "./node_modules/nodeunit/bin/nodeunit test" | ||
"test": "nodeunit ./test/canonicalization-unit-tests.js ./test/signature-unit-tests.js ./test/saml-response-test.js ./test/signature-integration-tests.js" | ||
} | ||
} |
@@ -17,4 +17,3 @@ ## xml-crypto | ||
`````javascript | ||
var SignedXml = require('xml-crypto').SignedXml | ||
, FileKeyInfo = require('xml-crypto').FileKeyInfo | ||
var SignedXml = require('xml-crypto').SignedXml | ||
, fs = require('fs') | ||
@@ -21,0 +20,0 @@ |
@@ -24,3 +24,3 @@ var select = require('../lib/xpath.js').SelectNodes | ||
"</author>" + | ||
"</book>" | ||
"</book>" + | ||
"</library>" | ||
@@ -27,0 +27,0 @@ |
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
322565
263
+ Addedxmldom@0.6.0(transitive)
Updatedxmldom@>=0.1.8