Bump versions of server / dev dependencies.
This commit is contained in:
parent
b6a67d6e74
commit
84ac9bd256
6 changed files with 550 additions and 393 deletions
905
package-lock.json
generated
905
package-lock.json
generated
File diff suppressed because it is too large
Load diff
25
package.json
25
package.json
|
@ -39,20 +39,20 @@
|
|||
"glob": "^7.1.6",
|
||||
"graceful-fs": "^4.2.3",
|
||||
"html-to-text": "^5.1.1",
|
||||
"http-auth": "^3.2.4",
|
||||
"http-auth": "^4.1.2",
|
||||
"http-auth-connect": "^1.0.4",
|
||||
"http-errors": "^1.7.3",
|
||||
"lodash": "^4.17.15",
|
||||
"moment": "^2.22.2",
|
||||
"moment": "^2.27.0",
|
||||
"ng-admin": "^1.0.13",
|
||||
"node-cron": "^2.0.1",
|
||||
"nodemailer": "^6.4.2",
|
||||
"nodemailer": "^6.4.10",
|
||||
"nodemailer-html-to-text": "^3.1.0",
|
||||
"request": "^2.88.2",
|
||||
"scribe-js": "^2.0.4",
|
||||
"serve-static": "^1.14.1",
|
||||
"sparkson": "^1.3.3",
|
||||
"sqlite": "^3.0.3",
|
||||
"sqlite3": "^4.1.1"
|
||||
"sqlite": "^3.0.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/async": "^3.2.0",
|
||||
|
@ -63,17 +63,16 @@
|
|||
"@types/express": "^4.17.4",
|
||||
"@types/glob": "^7.1.1",
|
||||
"@types/graceful-fs": "^4.1.3",
|
||||
"@types/html-to-text": "^1.4.31",
|
||||
"@types/html-to-text": "^5.1.1",
|
||||
"@types/jest": "^26.0.3",
|
||||
"@types/lodash": "^4.14.149",
|
||||
"@types/node": "^13.11.0",
|
||||
"@types/node": "^14.0.14",
|
||||
"@types/node-cron": "^2.0.3",
|
||||
"@types/nodemailer": "^6.4.0",
|
||||
"@types/request": "^2.48.4",
|
||||
"@types/sqlite3": "^3.1.6",
|
||||
"bower": "^1.8.8",
|
||||
"escape-string-regexp": "^2.0.0",
|
||||
"grunt": "^1.0.4",
|
||||
"escape-string-regexp": "^4.0.0",
|
||||
"grunt": "^1.1.0",
|
||||
"grunt-autoprefixer": "^3.0.4",
|
||||
"grunt-cli": "^1.3.2",
|
||||
"grunt-concurrent": "^3.0.0",
|
||||
|
@ -85,20 +84,20 @@
|
|||
"grunt-contrib-copy": "^1.0.0",
|
||||
"grunt-contrib-cssmin": "^3.0.0",
|
||||
"grunt-contrib-htmlmin": "^3.1.0",
|
||||
"grunt-contrib-imagemin": "^3.1.0",
|
||||
"grunt-contrib-imagemin": "^4.0.0",
|
||||
"grunt-contrib-jshint": "^2.0.0",
|
||||
"grunt-contrib-uglify": "^4.0.0",
|
||||
"grunt-contrib-watch": "^1.1.0",
|
||||
"grunt-develop": "^0.4.0",
|
||||
"grunt-html2js": "^0.7.1",
|
||||
"grunt-newer": "^1.3.0",
|
||||
"grunt-ng-annotate": "^3.0.0",
|
||||
"grunt-ng-annotate": "^4.0.0",
|
||||
"grunt-replace": "^1.0.1",
|
||||
"grunt-rev": "^0.1.0",
|
||||
"grunt-svgmin": "^6.0.0",
|
||||
"grunt-usemin": "^3.1.1",
|
||||
"grunt-wiredep": "^3.0.1",
|
||||
"imagemin-gifsicle": "^6.0.1",
|
||||
"imagemin-gifsicle": "^7.0.0",
|
||||
"jest": "^26.1.0",
|
||||
"jshint-stylish": "^2.2.1",
|
||||
"load-grunt-tasks": "^5.1.0",
|
||||
|
|
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…
Reference in a new issue