Skip to content

Commit 234bc0b

Browse files
committed
enable more use cases by returning the xml object in callback
1 parent 01d462d commit 234bc0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/signed-xml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ SignedXml.prototype.computeSignature = function(xml, opts, callback) {
820820
signatureDoc.insertBefore(self.createSignature(prefix), signedInfoNode.nextSibling)
821821
self.signatureXml = signatureDoc.toString()
822822
self.signedXml = doc.toString()
823-
callback()
823+
callback(null, self)
824824
}
825825
})
826826
}

0 commit comments

Comments
 (0)