@ladjs/web 21.0.11 → 21.0.13
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 -8
- package/package.json +9 -9
package/index.js
CHANGED
|
@@ -194,10 +194,10 @@ class Web {
|
|
|
194
194
|
this.logger = _.isPlainObject(this.config.logger)
|
|
195
195
|
? new Cabin(this.config.logger)
|
|
196
196
|
: this.config.logger instanceof Cabin
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
? this.config.logger
|
|
198
|
+
: new Cabin({
|
|
199
|
+
logger: this.config.logger || console
|
|
200
|
+
});
|
|
201
201
|
app.context.logger = this.logger;
|
|
202
202
|
|
|
203
203
|
// initialize redis
|
|
@@ -205,8 +205,8 @@ class Web {
|
|
|
205
205
|
this.config.redis === false
|
|
206
206
|
? false
|
|
207
207
|
: _.isPlainObject(this.config.redis)
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
? new Redis(this.config.redis, this.logger, this.config.redisMonitor)
|
|
209
|
+
: this.config.redis;
|
|
210
210
|
app.context.client = this.client;
|
|
211
211
|
|
|
212
212
|
// expose passport
|
|
@@ -214,8 +214,8 @@ class Web {
|
|
|
214
214
|
this.config.passport === false
|
|
215
215
|
? false
|
|
216
216
|
: _.isPlainObject(this.config.passport)
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
? new Passport(this.config.passport, Users)
|
|
218
|
+
: this.config.passport;
|
|
219
219
|
app.context.passport = this.passport;
|
|
220
220
|
|
|
221
221
|
// listen for errors emitted by app
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ladjs/web",
|
|
3
3
|
"description": "Web server for Lad",
|
|
4
|
-
"version": "21.0.
|
|
4
|
+
"version": "21.0.13",
|
|
5
5
|
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/ladjs/web/issues",
|
|
@@ -18,11 +18,14 @@
|
|
|
18
18
|
"@ladjs/koa-isajax": "^2.0.0",
|
|
19
19
|
"@ladjs/koa-simple-ratelimit": "^4.1.1",
|
|
20
20
|
"@ladjs/koa-views": "^9.0.0",
|
|
21
|
+
"@ladjs/passport": "^5.1.1",
|
|
21
22
|
"@ladjs/redis": "^1.1.1",
|
|
22
23
|
"@ladjs/shared-config": "^9.1.3",
|
|
23
24
|
"@ladjs/state-helper": "^3.0.1",
|
|
24
25
|
"@ladjs/store-ip-address": "^0.0.7",
|
|
26
|
+
"axe": "^12.2.3",
|
|
25
27
|
"boolean": "^3.2.0",
|
|
28
|
+
"cabin": "^13.2.5",
|
|
26
29
|
"crypto-random-string": "3",
|
|
27
30
|
"express-request-id": "1.4.1",
|
|
28
31
|
"is-string-and-not-blank": "^0.0.2",
|
|
@@ -53,20 +56,17 @@
|
|
|
53
56
|
"response-time": "^2.3.2"
|
|
54
57
|
},
|
|
55
58
|
"devDependencies": {
|
|
56
|
-
"@commitlint/cli": "^18.
|
|
57
|
-
"@commitlint/config-conventional": "^18.
|
|
58
|
-
"
|
|
59
|
-
"ava": "^5.3.1",
|
|
60
|
-
"axe": "^12.2.3",
|
|
61
|
-
"cabin": "^13.2.5",
|
|
59
|
+
"@commitlint/cli": "^18.4.3",
|
|
60
|
+
"@commitlint/config-conventional": "^18.4.3",
|
|
61
|
+
"ava": "5",
|
|
62
62
|
"cross-env": "^7.0.3",
|
|
63
|
-
"eslint": "^8.
|
|
63
|
+
"eslint": "^8.55.0",
|
|
64
64
|
"eslint-config-xo-lass": "^2.0.1",
|
|
65
65
|
"fixpack": "^4.0.0",
|
|
66
66
|
"husky": "^8.0.3",
|
|
67
67
|
"ioredis": "^5.3.2",
|
|
68
68
|
"ioredis-mock": "^8.9.0",
|
|
69
|
-
"lint-staged": "^15.0
|
|
69
|
+
"lint-staged": "^15.2.0",
|
|
70
70
|
"nyc": "^15.1.0",
|
|
71
71
|
"pug": "^3.0.2",
|
|
72
72
|
"remark-cli": "11",
|