Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ac-bootstrap-bull

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ac-bootstrap-bull - npm Package Compare versions

Comparing version 2.0.6 to 2.1.0

15

CHANGELOG.md

@@ -0,1 +1,16 @@

<a name="2.1.0"></a>
# [2.1.0](https://github.com/admiralcloud/ac-bootstrap-bull/compare/v2.0.6..v2.1.0) (2024-09-06 12:34:14)
### Feature
* **App:** Add parameter ignore for addJob | MP | [89bf456567bb16d7462948dfdf9e772931d7d549](https://github.com/admiralcloud/ac-bootstrap-bull/commit/89bf456567bb16d7462948dfdf9e772931d7d549)
This way it is possible to disbale localDevelopment prefix for Bull lists.
Related issues: [undefined/undefined#master](undefined/browse/master)
### Chores
* **App:** Updated packages | MP | [1b34ab342c7147d531ec24a8ae7ac084bb786a4a](https://github.com/admiralcloud/ac-bootstrap-bull/commit/1b34ab342c7147d531ec24a8ae7ac084bb786a4a)
Updated packages
Related issues: [undefined/undefined#master](undefined/browse/master)
<a name="2.0.6"></a>

@@ -2,0 +17,0 @@

5

index.js

@@ -26,5 +26,6 @@ const Queue = require('bull')

const jobListConfig = _.find(_.get(acapi.config, configPath + '.jobLists'), { jobList })
const ignore = _.get(params, 'ignore')
if (!jobListConfig) return false
const queueName = _.get(params, 'customJobList.environment', (acapi.config.environment + (acapi.config.localDevelopment ? acapi.config.localDevelopment : ''))) + '.' + jobList
const queueName = _.get(params, 'customJobList.environment', (acapi.config.environment + ((!_.get(ignore, 'localDevelopment') && acapi.config.localDevelopment) ? acapi.config.localDevelopment : ''))) + '.' + jobList
return { queueName, jobListConfig }

@@ -155,3 +156,3 @@ }

const functionIdentifier = _.padEnd('addJob', _.get(acapi.config, 'bull.log.functionIdentifierLength'))
const { queueName } = this.prepareQueue({ jobList, configPath: _.get(params, 'configPath'), customJobList: _.get(params, 'customJobList') })
const { queueName } = this.prepareQueue({ jobList, configPath: _.get(params, 'configPath'), customJobList: _.get(params, 'customJobList'), ignore: _.get(params, 'ignore') })
if (!queueName) return cb({ message: 'jobListNotDefined', additionalInfo: { jobList } })

@@ -158,0 +159,0 @@

8

package.json
{
"name": "ac-bootstrap-bull",
"version": "2.0.6",
"version": "2.1.0",
"description": "Bull helper",

@@ -10,4 +10,4 @@ "repository": "admiralcloud/ac-bootstrap-bull",

"ac-redislock": "^3.0.0",
"async": "^3.2.5",
"bull": "^4.13.0",
"async": "^3.2.6",
"bull": "^4.16.2",
"ioredis": "^5.4.1",

@@ -17,4 +17,4 @@ "lodash": "^4.17.21"

"devDependencies": {
"eslint": "^9.4.0"
"eslint": "^9.9.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc