@ladjs/web 14.0.3 → 14.0.6
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.
- package/index.js +8 -5
- package/package.json +10 -10
package/index.js
CHANGED
|
@@ -95,10 +95,10 @@ class Web {
|
|
|
95
95
|
},
|
|
96
96
|
buildDir: path.resolve('./build'),
|
|
97
97
|
|
|
98
|
-
// <https://github.com/
|
|
98
|
+
// <https://github.com/ladjs/koa-better-static#options>
|
|
99
99
|
serveStatic: {},
|
|
100
100
|
|
|
101
|
-
// <https://github.com/
|
|
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(
|
|
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
|
-
|
|
421
|
-
|
|
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
|
+
"version": "14.0.6",
|
|
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.
|
|
51
|
+
"koa-redirect-loop": "^2.0.6",
|
|
52
52
|
"koa-redis": "^4.0.1",
|
|
53
53
|
"koa-views": "^8.0.0",
|
|
54
54
|
"lodash": "^4.17.21",
|
|
@@ -58,24 +58,24 @@
|
|
|
58
58
|
"response-time": "^2.3.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@commitlint/cli": "^17.0.
|
|
62
|
-
"@commitlint/config-conventional": "^17.0.
|
|
63
|
-
"@ladjs/passport": "^5.0.
|
|
61
|
+
"@commitlint/cli": "^17.0.3",
|
|
62
|
+
"@commitlint/config-conventional": "^17.0.3",
|
|
63
|
+
"@ladjs/passport": "^5.0.2",
|
|
64
64
|
"ava": "^4.3.0",
|
|
65
65
|
"cross-env": "^7.0.3",
|
|
66
|
-
"eslint": "^8.
|
|
66
|
+
"eslint": "^8.18.0",
|
|
67
67
|
"eslint-config-xo-lass": "^2.0.1",
|
|
68
68
|
"fixpack": "^4.0.0",
|
|
69
69
|
"husky": "^8.0.1",
|
|
70
|
-
"ioredis": "^5.0
|
|
70
|
+
"ioredis": "^5.1.0",
|
|
71
71
|
"ioredis-mock": "^8.2.2",
|
|
72
|
-
"lint-staged": "^13.0.
|
|
72
|
+
"lint-staged": "^13.0.3",
|
|
73
73
|
"nyc": "^15.1.0",
|
|
74
74
|
"pug": "^3.0.2",
|
|
75
|
-
"remark-cli": "^
|
|
75
|
+
"remark-cli": "^11.0.0",
|
|
76
76
|
"remark-preset-github": "^4.0.4",
|
|
77
77
|
"supertest": "^6.2.3",
|
|
78
|
-
"xo": "^0.
|
|
78
|
+
"xo": "^0.50.0"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=14"
|