Browse Source

node - update packages

master
Ruben Meyer 11 months ago
parent
commit
dc0ab91951
Signed by: rxbn_ GPG Key ID: BE3BF898BE352FE2
  1. 6
      bin/web/module.js
  2. 10
      package.json

6
bin/web/module.js

@ -18,7 +18,7 @@ methods.start = () => {
// init express framework
let express = require('express');
let session_handler = require('express-session');
let session_store = require('connect-mongo')(session_handler);
let MongoStore = require('connect-mongo');
// utilities
let fs = require('fs');
@ -87,8 +87,8 @@ methods.start = () => {
cookie: {
maxAge: cfg.web.cookieMaxAge
},
store: new session_store({
mongooseConnection: con,
store: MongoStore.create({
client: con.getClient(),
dbName: cfg.mongoose.db,
ttl: cfg.web.cookieMaxAge,
secret: (app.get('env') === 'production') ? true : false

10
package.json

@ -7,14 +7,14 @@
"license": "",
"dependencies": {
"body-parser": "^1.19.0",
"connect-mongo": "^3.2.0",
"connect-mongo": "^4.4.1",
"cookie-parser": "^1.4.5",
"express": "^4.17.1",
"express-async-handler": "^1.1.4",
"express-session": "^1.17.1",
"express-session": "^1.17.2",
"mongo-sanitize": "^1.1.0",
"mongoose": "^5.9.28",
"prom-client": "^12.0.0",
"pug": "^3.0.0"
"mongoose": "^5.13.7",
"prom-client": "^13.2.0",
"pug": "^3.0.2"
}
}

Loading…
Cancel
Save