Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
prostgles committed Nov 27, 2024
1 parent 5f91a95 commit c66da7a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/Auth/sendEmail.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Email, SMTPConfig } from "./AuthTypes";
import nodemailer from "nodemailer";
import aws from "@aws-sdk/client-ses";
import * as aws from "@aws-sdk/client-ses";
import SESTransport from "nodemailer/lib/ses-transport";

type SESTransporter = nodemailer.Transporter<SESTransport.SentMessageInfo, SESTransport.Options>;
Expand Down
3 changes: 2 additions & 1 deletion lib/Auth/setAuthProviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import { AUTH_ROUTES_AND_PARAMS, AuthHandler, getLoginClientInfo } from "./AuthH
import { Auth } from './AuthTypes';
import { setEmailProvider } from "./setEmailProvider";
/** For some reason normal import is undefined */
const passport = require("passport") as typeof import("passport");
// const passport = require("passport") as typeof import("passport");
import * as passport from "passport";

export const upsertNamedExpressMiddleware = (app: e.Express, handler: RequestHandler, name: string) => {
const funcName = name;
Expand Down
3 changes: 3 additions & 0 deletions lib/Auth/setEmailProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export async function setEmailProvider(this: AuthHandler, app: e.Express) {
await checkDmarc(websiteUrl);
}

/**
* Setup nodemailer transporters
*/
if(email.signupType === "withPassword"){
if(email.emailConfirmation){
tryGetTransporter(email.emailConfirmation.smtp);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prostgles-server",
"version": "4.2.162",
"version": "4.2.163",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion tests/server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c66da7a

Please sign in to comment.