@ladjs/api 14.1.21 → 14.1.23

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 +3 -2
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -70,11 +70,12 @@ class API {
70
70
 
71
71
  // Initialize redis
72
72
  this.client =
73
- this.config.redis === false
73
+ this.config.client ||
74
+ (this.config.redis === false
74
75
  ? false
75
76
  : _.isPlainObject(this.config.redis)
76
77
  ? new Redis(this.config.redis, this.logger, this.config.redisMonitor)
77
- : this.config.redis;
78
+ : this.config.redis);
78
79
  app.context.client = this.client;
79
80
 
80
81
  // Expose passport
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ladjs/api",
3
3
  "description": "API server for Lad",
4
- "version": "14.1.21",
4
+ "version": "14.1.23",
5
5
  "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ladjs/api/issues",
@@ -11,7 +11,7 @@
11
11
  "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)"
12
12
  ],
13
13
  "dependencies": {
14
- "@koa/router": "^13.1.0",
14
+ "@koa/router": "^13.1.1",
15
15
  "@ladjs/i18n": "^8.0.3",
16
16
  "@ladjs/koa-simple-ratelimit": "^4.1.1",
17
17
  "@ladjs/passport": "^5.1.4",
@@ -55,7 +55,7 @@
55
55
  "nyc": "^17.1.0",
56
56
  "remark-cli": "11",
57
57
  "remark-preset-github": "^4.0.4",
58
- "supertest": "^7.1.1",
58
+ "supertest": "^7.1.3",
59
59
  "xo": "^0.56.0"
60
60
  },
61
61
  "engines": {