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

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.1.24 to 0.1.25

4

lib/exclusive-canonicalization.js

@@ -45,2 +45,4 @@ /* jshint laxcomma: true */

for (a in attrListToRender) {
if (!attrListToRender.hasOwnProperty(a)) continue;
attr = attrListToRender[a];

@@ -109,2 +111,4 @@ res.push(" ", attr.name, '="', utils.normalizeXmlIncludingCR(attr.value), '"');

for (a in nsListToRender) {
if (!nsListToRender.hasOwnProperty(a)) continue;
p = nsListToRender[a];

@@ -111,0 +115,0 @@ res.push(" xmlns:", p.prefix, '="', p.namespaceURI, '"');

@@ -186,4 +186,4 @@ var select = require('xpath.js')

}
if (!this.validateSignatureValue()) {
if (!this.validateSignatureValue()) {
return false;

@@ -227,3 +227,5 @@ }

for (var r in this.references) {
var ref = this.references[r]
if (!this.references.hasOwnProperty(r)) continue;
var ref = this.references[r]

@@ -238,2 +240,4 @@ var uri = ref.uri[0]=="#" ? ref.uri.substring(1) : ref.uri

for (var index in this.idAttributes) {
if (!this.idAttributes.hasOwnProperty(index)) continue;
elem = select(doc, "//*[@*[local-name(.)='" + this.idAttributes[index] + "']='" + uri + "']")

@@ -283,3 +287,5 @@ if (elem.length > 0) break;

for (var i in references) {
this.loadReference(references[i])
if (!references.hasOwnProperty(i)) continue;
this.loadReference(references[i])
}

@@ -321,2 +327,4 @@

for (var t in transformsAll) {
if (!transformsAll.hasOwnProperty(t)) continue;
var trans = transformsAll[t]

@@ -402,2 +410,4 @@ transforms.push(utils.findAttr(trans, "Algorithm").value)

for (var n in this.references) {
if (!this.references.hasOwnProperty(n)) continue;
var ref = this.references[n]

@@ -410,3 +420,5 @@ , nodes = select(doc, ref.xpath)

for (var h in nodes) {
for (var h in nodes) {
if (!nodes.hasOwnProperty(h)) continue;
var node = nodes[h]

@@ -423,2 +435,4 @@ if (ref.isEmptyUri) {

for (var t in ref.transforms) {
if (!ref.transforms.hasOwnProperty(t)) continue;
var trans = ref.transforms[t]

@@ -445,2 +459,4 @@ var transform = this.findCanonicalizationAlgorithm(trans)

for (var t in transforms) {
if (!transforms.hasOwnProperty(t)) continue;
var transform = this.findCanonicalizationAlgorithm(transforms[t])

@@ -473,2 +489,4 @@ canonXml = transform.process(canonXml, options);

for (var index in this.idAttributes) {
if (!this.idAttributes.hasOwnProperty(index)) continue;
attr = utils.findAttr(node, this.idAttributes[index], null);

@@ -475,0 +493,0 @@ if (attr) break;

2

package.json
{
"name": "xml-crypto",
"version": "0.1.24",
"version": "0.1.25",
"description": "Xml digital signature and encryption library for Node.js",

@@ -5,0 +5,0 @@ "engines": { "node": ">=0.4.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