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

@@ -3,7 +3,7 @@ import { hash as argon2Hash, verify as argon2Verify } from '@node-rs/argon2';
import { kyselyAdapter } from '@better-auth/kysely-adapter';
import { Kysely, PostgresDialect } from 'kysely';
import { Pool } from 'pg';
import { sendEmail, verificationEmailHtml, resetPasswordEmailHtml } from './email';
import { sendEmail, verificationEmailHtml, resetPasswordEmailHtml } from './email.js';
const db = new Kysely({
dialect: new PostgresDialect({

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 || '',

View File

@@ -1,5 +1,5 @@
import { Request, Response, NextFunction } from 'express';
import { auth } from './auth';
import { auth } from './auth.js';
import { fromNodeHeaders } from 'better-auth/node';
declare global {