no deprecation on node16?

This commit is contained in:
2026-04-02 14:42:35 -05:00
parent f13035f8c5
commit e3f3d5a289
9 changed files with 25 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
import FormData from 'form-data';
import Mailgun from 'mailgun.js';
const mailgun = new Mailgun(FormData);
const mailgun = new (Mailgun as any)(FormData);
const mg = mailgun.client({
username: 'api',
key: process.env.MAILGUN_API_KEY || '',