@digipair/skill-sendmail 0.57.1 → 0.57.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -21418,7 +21418,7 @@ let SendMailService = class SendMailService {
21418
21418
  html,
21419
21419
  attachments: attachments.map((attachment)=>({
21420
21420
  filename: attachment.filename,
21421
- content: Buffer.from(attachment.content, 'base64')
21421
+ content: Buffer.from(attachment.content.replace(/^data:.*;base64,/, ''), 'base64')
21422
21422
  }))
21423
21423
  });
21424
21424
  return info;
package/index.esm.js CHANGED
@@ -21396,7 +21396,7 @@ let SendMailService = class SendMailService {
21396
21396
  html,
21397
21397
  attachments: attachments.map((attachment)=>({
21398
21398
  filename: attachment.filename,
21399
- content: Buffer.from(attachment.content, 'base64')
21399
+ content: Buffer.from(attachment.content.replace(/^data:.*;base64,/, ''), 'base64')
21400
21400
  }))
21401
21401
  });
21402
21402
  return info;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-sendmail",
3
- "version": "0.57.1",
3
+ "version": "0.57.3",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"