From 234bc0b99003fd0fbf06cb4f38174660c667a123 Mon Sep 17 00:00:00 2001 From: troyfactor4 Date: Sun, 12 Apr 2020 23:55:25 -0300 Subject: [PATCH] enable more use cases by returning the xml object in callback --- lib/signed-xml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/signed-xml.js b/lib/signed-xml.js index 54e09fd6..b02ff078 100644 --- a/lib/signed-xml.js +++ b/lib/signed-xml.js @@ -820,7 +820,7 @@ SignedXml.prototype.computeSignature = function(xml, opts, callback) { signatureDoc.insertBefore(self.createSignature(prefix), signedInfoNode.nextSibling) self.signatureXml = signatureDoc.toString() self.signedXml = doc.toString() - callback() + callback(null, self) } }) }