ac-bootstrap-bull 2.0.6 → 2.1.0

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 +15 -0
  2. package/index.js +3 -2
  3. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ <a name="2.1.0"></a>
2
+
3
+ # [2.1.0](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v2.0.6..v2.1.0) (2024-09-06 12:34:14)
4
+
5
+
6
+ ### Feature
7
+
8
+ * **App:** Add parameter ignore for addJob | MP | [89bf456567bb16d7462948dfdf9e772931d7d549](https://github.com/admiralcloud/ac-bootstrap-bull/commit/89bf456567bb16d7462948dfdf9e772931d7d549)
9
+ This way it is possible to disbale localDevelopment prefix for Bull lists.
10
+ Related issues: [undefined/undefined#master](undefined/browse/master)
11
+ ### Chores
12
+
13
+ * **App:** Updated packages | MP | [1b34ab342c7147d531ec24a8ae7ac084bb786a4a](https://github.com/admiralcloud/ac-bootstrap-bull/commit/1b34ab342c7147d531ec24a8ae7ac084bb786a4a)
14
+ Updated packages
15
+ Related issues: [undefined/undefined#master](undefined/browse/master)
1
16
  <a name="2.0.6"></a>
2
17
 
3
18
  ## [2.0.6](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v2.0.5..v2.0.6) (2024-06-14 16:57:00)
package/index.js CHANGED
@@ -23,9 +23,10 @@ module.exports = function(acapi) {
23
23
  const jobList = _.get(params, 'jobList')
24
24
  const configPath = _.get(params, 'configPath', 'bull')
25
25
  const jobListConfig = _.find(_.get(acapi.config, configPath + '.jobLists'), { jobList })
26
+ const ignore = _.get(params, 'ignore')
26
27
  if (!jobListConfig) return false
27
28
 
28
- const queueName = _.get(params, 'customJobList.environment', (acapi.config.environment + (acapi.config.localDevelopment ? acapi.config.localDevelopment : ''))) + '.' + jobList
29
+ const queueName = _.get(params, 'customJobList.environment', (acapi.config.environment + ((!_.get(ignore, 'localDevelopment') && acapi.config.localDevelopment) ? acapi.config.localDevelopment : ''))) + '.' + jobList
29
30
  return { queueName, jobListConfig }
30
31
  }
31
32
 
@@ -151,7 +152,7 @@ module.exports = function(acapi) {
151
152
 
152
153
  const addJob = function(jobList, params, cb) {
153
154
  const functionIdentifier = _.padEnd('addJob', _.get(acapi.config, 'bull.log.functionIdentifierLength'))
154
- const { queueName } = this.prepareQueue({ jobList, configPath: _.get(params, 'configPath'), customJobList: _.get(params, 'customJobList') })
155
+ const { queueName } = this.prepareQueue({ jobList, configPath: _.get(params, 'configPath'), customJobList: _.get(params, 'customJobList'), ignore: _.get(params, 'ignore') })
155
156
  if (!queueName) return cb({ message: 'jobListNotDefined', additionalInfo: { jobList } })
156
157
 
157
158
  const name = _.get(params, 'name') // named job
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "ac-bootstrap-bull",
3
- "version": "2.0.6",
3
+ "version": "2.1.0",
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": "^3.0.0",
10
- "async": "^3.2.5",
11
- "bull": "^4.13.0",
10
+ "async": "^3.2.6",
11
+ "bull": "^4.16.2",
12
12
  "ioredis": "^5.4.1",
13
13
  "lodash": "^4.17.21"
14
14
  },
15
15
  "devDependencies": {
16
- "eslint": "^9.4.0"
16
+ "eslint": "^9.9.1"
17
17
  }
18
18
  }