Socket
Socket
Sign inDemoInstall

xml-crypto

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml-crypto - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

lib/enveloped-signature.js

@@ -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 @@

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