ac-bootstrap-bull 2.0.4 → 2.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/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ <a name="2.0.6"></a>
2
+
3
+ ## [2.0.6](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v2.0.5..v2.0.6) (2024-06-14 16:57:00)
4
+
5
+
6
+ ### Bug Fix
7
+
8
+ * **App:** Package updates | MP | [dfcdde66c133f1e1b9620b400de18fe259612782](https://github.com/admiralcloud/ac-bootstrap-bull/commit/dfcdde66c133f1e1b9620b400de18fe259612782)
9
+ Package updates
10
+ Related issues: [undefined/undefined#master](undefined/browse/master)
11
+ <a name="2.0.5"></a>
12
+
13
+ ## [2.0.5](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v2.0.4..v2.0.5) (2024-05-07 11:29:43)
14
+
15
+
16
+ ### Bug Fix
17
+
18
+ * **App:** Package updates | MP | [2858b5437c45f5d53d761d5478aeb29462d5000b](https://github.com/admiralcloud/ac-bootstrap-bull/commit/2858b5437c45f5d53d761d5478aeb29462d5000b)
19
+ Package updates
20
+ Related issues: [undefined/undefined#master](undefined/browse/master)
1
21
  <a name="2.0.4"></a>
2
22
 
3
23
  ## [2.0.4](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v2.0.3..v2.0.4) (2023-08-29 12:08:23)
@@ -0,0 +1,30 @@
1
+ const globals = require('globals');
2
+
3
+ module.exports = {
4
+ ignores: [
5
+ 'config/env/**'
6
+ ],
7
+ languageOptions: {
8
+ ecmaVersion: 2022,
9
+ sourceType: 'module',
10
+ globals: {
11
+ ...globals.commonjs,
12
+ ...globals.es6,
13
+ ...globals.node,
14
+ expect: 'readonly',
15
+ describe: 'readonly',
16
+ it: 'readonly'
17
+ }
18
+ },
19
+ rules: {
20
+ 'no-const-assign': 'error', // Ensure this rule is enabled
21
+ 'space-before-function-paren': 'off',
22
+ 'no-extra-semi': 'off',
23
+ 'object-curly-spacing': ['error', 'always'],
24
+ 'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
25
+ 'no-useless-escape': 'off',
26
+ 'standard/no-callback-literal': 'off',
27
+ 'new-cap': 'off',
28
+ 'no-console': ['warn', { allow: ['warn', 'error'] }]
29
+ }
30
+ };
package/index.js CHANGED
@@ -187,7 +187,7 @@ module.exports = function(acapi) {
187
187
  jobId = _.get(job, 'id')
188
188
  return done()
189
189
  }).catch(err => {
190
- acapi.log.error('%s | %s | %s | Name %s | Adding job failed %j', functionName, functionIdentifier, queueName, name, err)
190
+ acapi.log.error('%s | %s | %s | Name %s | Adding job failed %j', functionName, functionIdentifier, queueName, name, err?.message)
191
191
  })
192
192
  }
193
193
  else {
@@ -195,7 +195,7 @@ module.exports = function(acapi) {
195
195
  jobId = _.get(job, 'id')
196
196
  return done()
197
197
  }).catch(err => {
198
- acapi.log.error('%s | %s | %s | Adding job failed %j', functionName, functionIdentifier, queueName, err)
198
+ acapi.log.error('%s | %s | %s | Adding job failed %j', functionName, functionIdentifier, queueName, err?.message)
199
199
  })
200
200
  }
201
201
  },
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "ac-bootstrap-bull",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
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.4",
11
- "bull": "^4.11.3",
12
- "ioredis": "^5.3.2",
10
+ "async": "^3.2.5",
11
+ "bull": "^4.13.0",
12
+ "ioredis": "^5.4.1",
13
13
  "lodash": "^4.17.21"
14
14
  },
15
15
  "devDependencies": {
16
- "eslint": "^8.48.0"
16
+ "eslint": "^9.4.0"
17
17
  }
18
18
  }
package/.eslintrc.js DELETED
@@ -1,27 +0,0 @@
1
- const config = {
2
- root: true,
3
- 'env': {
4
- 'commonjs': true,
5
- 'es6': true,
6
- 'node': true
7
- },
8
- 'extends': 'eslint:recommended',
9
- "rules": {
10
- "space-before-function-paren": 0,
11
- "no-extra-semi": 0,
12
- "object-curly-spacing": ["error", "always"],
13
- "brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
14
- "no-useless-escape": 0,
15
- "standard/no-callback-literal": 0,
16
- "new-cap": 0
17
- },
18
- globals: {
19
- describe: true,
20
- it: true
21
- },
22
- 'parserOptions': {
23
- 'ecmaVersion': 2022
24
- },
25
- }
26
-
27
- module.exports = config