From 48c3e67dd1d68f5e0314e1662af451d52f925511 Mon Sep 17 00:00:00 2001 From: Forbes Lindesay Date: Thu, 29 Jan 2026 12:13:26 +0000 Subject: [PATCH] Fix typo: 'thumprints' to 'thumbprints' in signers.js --- lib/signers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/signers.js b/lib/signers.js index c2f7780..9b3853c 100644 --- a/lib/signers.js +++ b/lib/signers.js @@ -61,8 +61,8 @@ module.exports.validateXmlEmbeddedSignature = function (xml, options) { return ['Signature is missing']; } - if (options.thumprints){ - // Make sure thumprints is an array for the validation + if (options.thumbprints){ + // Make sure thumbprints is an array for the validation options.thumbprints = options.thumbprints instanceof Array ? options.thumbprints : [options.thumbprints]; } @@ -79,7 +79,7 @@ module.exports.validateXmlEmbeddedSignature = function (xml, options) { return certToPEM(options.signingCert); } - //If there's an embedded signature and thumprints are provided check that + //If there's an embedded signature and thumbprints are provided check that if (options.thumbprints && options.thumbprints.length > 0) { var embeddedSignature = keyInfo[0].getElementsByTagNameNS("http://www.w3.org/2000/09/xmldsig#", "X509Certificate"); if (embeddedSignature.length > 0) { @@ -92,7 +92,7 @@ module.exports.validateXmlEmbeddedSignature = function (xml, options) { } } - // If there's an embedded signature, but no thumprints are supplied, use options.cert + // If there's an embedded signature, but no thumbprints are supplied, use options.cert // either options.cert or options.thumbprints must be specified so at this point there // must be an options.cert return certToPEM(options.signingCert);