node_modules: update

This commit is contained in:
dawidd6 authored and github-actions[bot] committed 2026-11-20 17:41:12 +00:00
1 parent 0989b5499d
commit a20949df3b
21 files changed
+129 -34

No files matched your search

+3 -2
View File
@@ -62,12 +62,13 @@ function unsupportedHashAlgoError(hashAlgo) {
*/
function sign(headers, hashAlgo, bodyHash, options) {
options = options || {};
// all listed fields from RFC4871 #5.5
// all listed fields from RFC4871 #5.5, plus List-Unsubscribe-Post: RFC 8058 only allows
// one-click unsubscribe when the signature covers it next to List-Unsubscribe
const defaultFieldNames = 'From:Sender:Reply-To:Subject:Date:Message-ID:To:' +
'Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:' +
'Content-Description:Resent-Date:Resent-From:Resent-Sender:' +
'Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:' +
'List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:' +
'List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post:List-Subscribe:List-Post:' +
'List-Owner:List-Archive:OTP-Token';
const fieldNames = options.headerFieldNames || defaultFieldNames;
const canonicalizedHeaderData = relaxedHeaders(headers, fieldNames, options.skipFields);