ac-bootstrap-bull 1.0.4 → 1.0.7

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 (3) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/index.js +7 -2
  3. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ <a name="1.0.7"></a>
2
+
3
+ ## [1.0.7](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v1.0.6..v1.0.7) (2022-04-25 12:39:03)
4
+
5
+
6
+ ### Bug Fix
7
+
8
+ * **App:** Allow all parameters for localRedis | MP | [e658619b936a385bc3f96e6893eb3bc6a541ffa7](https://github.com/admiralcloud/ac-bootstrap-bull/commit/e658619b936a385bc3f96e6893eb3bc6a541ffa7)
9
+ Allow all parameters for localRedis
10
+ <a name="1.0.6"></a>
11
+
12
+ ## [1.0.6](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v1.0.5..v1.0.6) (2022-04-25 12:31:49)
13
+
14
+
15
+ ### Bug Fix
16
+
17
+ * **App:** Packages updated | MP | [c6fd26b4c7c7d023c4249a6f8308a28b9c42206f](https://github.com/admiralcloud/ac-bootstrap-bull/commit/c6fd26b4c7c7d023c4249a6f8308a28b9c42206f)
18
+ Packages updated
19
+ Related issues: [/issues#undefined](https://github.com//issues/undefined)
20
+ <a name="1.0.5"></a>
21
+
22
+ ## [1.0.5](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v1.0.4..v1.0.5) (2022-01-14 20:54:15)
23
+
24
+
25
+ ### Bug Fix
26
+
27
+ * **App:** Package updates | MP | [e3ec60495085be2402f8356f964f26995fe1fda7](https://github.com/admiralcloud/ac-bootstrap-bull/commit/e3ec60495085be2402f8356f964f26995fe1fda7)
28
+ Package updates
1
29
  <a name="1.0.4"></a>
2
30
 
3
31
  ## [1.0.4](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v1.0.3..v1.0.4) (2021-12-12 14:04:52)
package/index.js CHANGED
@@ -37,11 +37,10 @@ module.exports = function(acapi) {
37
37
 
38
38
  const redisServer = _.find(acapi.config.redis.servers, { server: _.get(params, 'redis.server', 'jobProcessing') })
39
39
  const redisConfig = _.find(acapi.config.redis.databases, { name: _.get(acapi.config, 'bull.redis.database.name') })
40
- const port = acapi.config.localRedis ? 6379 : _.get(redisServer, 'port')
41
40
 
42
41
  let redisConf = {
43
42
  host: _.get(redisServer, 'host', 'localhost'),
44
- port,
43
+ port: _.get(redisServer, 'port', 6379),
45
44
  db: _.get(redisConfig, 'db', 3),
46
45
  retryStrategy: (times) => {
47
46
  const delay = Math.min(Math.pow(2, times) * 1000, 300000)
@@ -50,6 +49,12 @@ module.exports = function(acapi) {
50
49
  enableReadyCheck: false,
51
50
  maxRetriesPerRequest: null
52
51
  }
52
+
53
+ if (acapi.config.localRedis) {
54
+ _.forOwn(acapi.config.localRedis, (val, key) => {
55
+ _.set(redisConf, key, val)
56
+ })
57
+ }
53
58
 
54
59
  acapi.aclog.serverInfo(redisConf)
55
60
 
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "ac-bootstrap-bull",
3
- "version": "1.0.4",
3
+ "version": "1.0.7",
4
4
  "description": "Bull helper",
5
5
  "repository": "admiralcloud/ac-bootstrap-bull",
6
6
  "author": "Mark Poepping <mark.poepping@admiralcloud.com>",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
9
  "ac-redislock": "^1.0.11",
10
- "async": "^3.2.2",
11
- "bull": "^4.1.1",
12
- "ioredis": "^4.28.2",
10
+ "async": "^3.2.3",
11
+ "bull": "^4.8.2",
12
+ "ioredis": "^5.0.4",
13
13
  "lodash": "^4.17.21"
14
14
  },
15
15
  "devDependencies": {
16
- "eslint": "^8.4.1"
16
+ "eslint": "^8.14.0"
17
17
  }
18
18
  }