@ladjs/web 14.0.4 → 14.0.5

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/index.js +8 -5
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -95,10 +95,10 @@ class Web {
95
95
  },
96
96
  buildDir: path.resolve('./build'),
97
97
 
98
- // <https://github.com/niftylettuce/koa-better-static#options>
98
+ // <https://github.com/ladjs/koa-better-static#options>
99
99
  serveStatic: {},
100
100
 
101
- // <https://github.com/niftylettuce/koa-redirect-loop>
101
+ // <https://github.com/ladjs/koa-redirect-loop>
102
102
  redirectLoop: {},
103
103
 
104
104
  // <https://github.com/koajs/cash>
@@ -356,7 +356,10 @@ class Web {
356
356
 
357
357
  // redirect loop (must come after sessions added)
358
358
  if (this.config.redirectLoop) {
359
- const redirectLoop = new RedirectLoop(this.config.redirectLoop);
359
+ const redirectLoop = new RedirectLoop({
360
+ ...this.config.redirectLoop,
361
+ logger: this.logger
362
+ });
360
363
  app.use(redirectLoop.middleware);
361
364
  }
362
365
 
@@ -417,8 +420,8 @@ class Web {
417
420
  // store the user's last ip address in the background
418
421
  if (this.config.storeIPAddress) {
419
422
  const storeIPAddress = new StoreIPAddress({
420
- logger: this.logger,
421
- ...this.config.storeIPAddress
423
+ ...this.config.storeIPAddress,
424
+ logger: this.logger
422
425
  });
423
426
  app.use(storeIPAddress.middleware);
424
427
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ladjs/web",
3
3
  "description": "Web server for Lad",
4
- "version": "14.0.4",
4
+ "version": "14.0.5",
5
5
  "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ladjs/web/issues",
@@ -48,7 +48,7 @@
48
48
  "koa-meta": "^3.0.3",
49
49
  "koa-methodoverride": "^2.0.0",
50
50
  "koa-no-trailing-slash": "^2.1.0",
51
- "koa-redirect-loop": "^2.0.2",
51
+ "koa-redirect-loop": "^2.0.4",
52
52
  "koa-redis": "^4.0.1",
53
53
  "koa-views": "^8.0.0",
54
54
  "lodash": "^4.17.21",