From 4ab279d3ed54626bd393aa9282ab378a952e0460 Mon Sep 17 00:00:00 2001 From: Michael Ruth Date: Mon, 9 Mar 2026 06:28:03 -0700 Subject: [PATCH] fix(AS2MimeNode): remove double-dash prefix from default boundary prefix --- src/AS2MimeNode/AS2MimeNode.ts | 4 ++-- src/AS2MimeNode/Interfaces.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AS2MimeNode/AS2MimeNode.ts b/src/AS2MimeNode/AS2MimeNode.ts index 40371ec..1ff4845 100644 --- a/src/AS2MimeNode/AS2MimeNode.ts +++ b/src/AS2MimeNode/AS2MimeNode.ts @@ -12,7 +12,7 @@ import { hostname } from 'os' * @property {string|Buffer | Readable} [content] * @property {string} [boundary] * @property {string} [baseBoundary] - * @property {false|string} [boundaryPrefix='--LibAs2_'] + * @property {false|string} [boundaryPrefix='LibAs2'] * @property {string} [contentType] * @property {boolean|'inline'|'attachment'} [contentDisposition] * @property {string} [messageId] @@ -77,7 +77,7 @@ export class AS2MimeNode extends MimeNode { this.contentType = contentType this.boundaryPrefix = isNullOrUndefined(boundaryPrefix) && isNullOrUndefined(boundary) - ? '--LibAs2' + ? 'LibAs2' : boundaryPrefix === false || !isNullOrUndefined(boundary) ? '' : boundaryPrefix diff --git a/src/AS2MimeNode/Interfaces.ts b/src/AS2MimeNode/Interfaces.ts index 9037202..2baf6ba 100644 --- a/src/AS2MimeNode/Interfaces.ts +++ b/src/AS2MimeNode/Interfaces.ts @@ -12,7 +12,7 @@ export interface AS2MimeNodeOptions { boundary?: string /** Shared part of the unique multipart boundary. */ baseBoundary?: string - /** Prefix for the boundary; default is '--LibAs2_'. */ + /** Prefix for the boundary; default is 'LibAs2'. */ boundaryPrefix?: false | string /** Content type of the node; will be auto-calculated from the filename if not set. */ contentType?: string