Bump versions of server / dev dependencies.
This commit is contained in:
parent
b6a67d6e74
commit
84ac9bd256
6 changed files with 550 additions and 393 deletions
6
server/@types/http-auth-connect/index.d.ts
vendored
Normal file
6
server/@types/http-auth-connect/index.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
declare module "http-auth-connect" {
|
||||
import {Auth} from "http-auth";
|
||||
import {RequestHandler} from "express"
|
||||
|
||||
export default function (auth: Auth): RequestHandler
|
||||
}
|
3
server/@types/http-auth/index.d.ts
vendored
3
server/@types/http-auth/index.d.ts
vendored
|
@ -1,6 +1,4 @@
|
|||
declare module "http-auth" {
|
||||
import {RequestHandler} from "express"
|
||||
|
||||
class Auth {}
|
||||
|
||||
class BasicAuth extends Auth {}
|
||||
|
@ -11,5 +9,4 @@ declare module "http-auth" {
|
|||
type BasicAuthCheckerCallback = (result: boolean | Error, customUser?: string) => void
|
||||
|
||||
function basic(options: BasicAuthOptions, checker: BasicAuthChecker): BasicAuth
|
||||
function connect(auth: Auth): RequestHandler
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
declare module "nodemailer-html-to-text" {
|
||||
import {PluginFunction} from "nodemailer/lib/mailer";
|
||||
import {HtmlToTextOptions} from "html-to-text";
|
||||
|
||||
export function htmlToText(options: HtmlToTextOptions): PluginFunction;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import _ from "lodash"
|
||||
import auth, {BasicAuthCheckerCallback} from "http-auth"
|
||||
import authConnect from "http-auth-connect"
|
||||
import bodyParser from "body-parser"
|
||||
import compress from "compression"
|
||||
import express, {Express, NextFunction, Request, Response} from "express"
|
||||
|
@ -25,7 +26,7 @@ export function init(): void {
|
|||
);
|
||||
}
|
||||
);
|
||||
router.use('/internal', auth.connect(internalAuth));
|
||||
router.use('/internal', authConnect(internalAuth));
|
||||
|
||||
router.use(bodyParser.json());
|
||||
router.use(bodyParser.urlencoded({ extended: true }));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue