login-plus 1.7.2 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/login-plus.js +3 -3
  2. package/package.json +14 -14
package/lib/login-plus.js CHANGED
@@ -181,14 +181,14 @@ function checkAlreadyLoggedIn(app, opts){
181
181
  loginPlus.Manager.prototype.init = function init(app,opts){
182
182
  var thisManager = this;
183
183
  if(!this.passport){
184
- if(app._router){
185
- var forbidensMiddlewares=app._router.stack.filter(function(layer){
184
+ if(app.router){
185
+ var forbidensMiddlewares=app.router.stack.filter(function(layer){
186
186
  return layer.name==='cookieParser';
187
187
  });
188
188
  if(forbidensMiddlewares.length){
189
189
  console.log('Forbien Middlewares in login-plus:');
190
190
  console.dir(forbidensMiddlewares);
191
- throw new Error('loginPlus unexpected _router. Check that cookie-parse was set with initCookieParse');
191
+ throw new Error('loginPlus unexpected router. Check that cookie-parse was set with initCookieParse');
192
192
  }
193
193
  }
194
194
  SetInitialOptions.call(this,app,opts);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "login-plus",
3
3
  "description": "login service for express",
4
- "version": "1.7.2",
4
+ "version": "1.7.3",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/login-plus",
@@ -22,34 +22,34 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "connect-flash": "^0.1.1",
25
- "express-session": "^1.18.0",
26
- "fs-extra": "^11.2.0",
25
+ "express-session": "^1.18.1",
26
+ "fs-extra": "^11.3.0",
27
27
  "passport": "^0.7.0",
28
28
  "passport-local": "^1.0.0",
29
29
  "session-file-store": "^1.5.0",
30
- "best-globals": "^1.1.6",
30
+ "best-globals": "^2.0.1",
31
31
  "ensure-login": "^0.1.5",
32
- "mini-tools": "^1.12.2",
32
+ "mini-tools": "^1.13.3",
33
33
  "regexplicit": "^0.1.3"
34
34
  },
35
35
  "devDependencies": {
36
- "body-parser": "^1.20.3",
36
+ "body-parser": "^2.2.0",
37
37
  "concat-stream": "^2.0.0",
38
- "cookie-parser": "^1.4.6",
38
+ "cookie-parser": "^1.4.7",
39
39
  "expect.js": "^0.3.1",
40
- "express": "^4.21.0",
40
+ "express": "^5.1.0",
41
41
  "nyc": "^17.1.0",
42
42
  "pug": "^3.0.3",
43
- "mocha": "^10.7.3",
43
+ "mocha": "^11.7.0",
44
44
  "php-session": "^0.1.0",
45
45
  "read-yaml-promise": "^1.0.2",
46
- "sinon": "^19.0.2",
47
- "stylus": "^0.63.0",
48
- "supertest": "^7.0.0",
46
+ "sinon": "^21.0.0",
47
+ "stylus": "^0.64.0",
48
+ "supertest": "^7.1.1",
49
49
  "ajax-best-promise": "^0.4.2",
50
- "pg-promise-strict": "^1.4.1",
50
+ "pg-promise-strict": "^1.4.2",
51
51
  "self-explain": "^0.11.0",
52
- "serve-content": "^0.3.20"
52
+ "serve-content": "^0.4.0"
53
53
  },
54
54
  "optionalDependencies": {
55
55
  "php-session": "^0.1.0"