@emartech/rabbitmq-client
Advanced tools
Comparing version 4.2.0 to 5.0.0
@@ -24,12 +24,12 @@ { | ||
"chai-subset": "1.6.0", | ||
"eslint": "8.11.0", | ||
"eslint": "8.23.1", | ||
"eslint-config-emarsys": "5.1.0", | ||
"eslint-plugin-mocha": "10.0.3", | ||
"mocha": "9.2.2", | ||
"eslint-plugin-mocha": "10.1.0", | ||
"mocha": "10.0.0", | ||
"semantic-release": "19.0.2", | ||
"sinon": "13.0.1", | ||
"sinon": "14.0.0", | ||
"sinon-chai": "3.7.0" | ||
}, | ||
"dependencies": { | ||
"@emartech/json-logger": "3.4.1", | ||
"@emartech/json-logger": "7.0.3", | ||
"@emartech/object-batcher-js": "1.4.2", | ||
@@ -40,3 +40,3 @@ "amqplib": "0.8.0", | ||
}, | ||
"version": "4.2.0" | ||
"version": "5.0.0" | ||
} |
@@ -5,7 +5,7 @@ 'use strict'; | ||
const RabbitMq = require('../rabbit-mq'); | ||
const { getLogger } = require('../util'); | ||
const { createLogger } = require('@emartech/json-logger'); | ||
class RabbitMqBatchConsumer { | ||
constructor(amqpConfig, configuration) { | ||
this._logger = getLogger(configuration.logger); | ||
this._logger = createLogger(configuration.logger); | ||
this._channel = configuration.channel; | ||
@@ -103,5 +103,7 @@ this._connectionType = configuration.connectionType || 'default'; | ||
messageObjects.map( | ||
this._extendedMessages ? | ||
this._getMessageWithDecryptedContent.bind(this) : | ||
this._getDecryptedMessageContent.bind(this) | ||
/* eslint-disable operator-linebreak */ | ||
this._extendedMessages | ||
? this._getMessageWithDecryptedContent.bind(this) | ||
: this._getDecryptedMessageContent.bind(this) | ||
/* eslint-enable operator-linebreak */ | ||
) | ||
@@ -108,0 +110,0 @@ ) |
@@ -5,7 +5,7 @@ 'use strict'; | ||
const RabbitMq = require('../rabbit-mq/index'); | ||
const { getLogger } = require('../util'); | ||
const { createLogger } = require('@emartech/json-logger'); | ||
class RabbitMqConsumer { | ||
constructor(amqpConfig, configuration) { | ||
this._logger = getLogger(configuration.logger); | ||
this._logger = createLogger(configuration.logger); | ||
this._channel = configuration.channel; | ||
@@ -12,0 +12,0 @@ this._connectionType = configuration.connectionType || 'default'; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const sinonChai = require('sinon-chai'); | ||
const Logger = require('@emartech/json-logger').Logger; | ||
const { Logger } = require('@emartech/json-logger'); | ||
@@ -9,0 +9,0 @@ chai.use(sinonChai); |
@@ -5,7 +5,7 @@ 'use strict'; | ||
const RabbitMq = require('../rabbit-mq/index'); | ||
const { getLogger } = require('../util'); | ||
const { createLogger } = require('@emartech/json-logger'); | ||
class RabbitMqConsumer { | ||
constructor(amqpConfig, configuration) { | ||
this._logger = getLogger(configuration.logger); | ||
this._logger = createLogger(configuration.logger); | ||
this._channel = configuration.channel; | ||
@@ -12,0 +12,0 @@ this._connectionType = configuration.connectionType || 'default'; |
@@ -8,3 +8,3 @@ 'use strict'; | ||
const amqp = require('amqplib'); | ||
const logger = require('@emartech/json-logger')('rabbit-mq-client'); | ||
const logger = require('@emartech/json-logger').createLogger('rabbit-mq-client'); | ||
@@ -11,0 +11,0 @@ class RabbitMq { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
3
59437
20
1507
+ Added@emartech/json-logger@7.0.3(transitive)
- Removed@emartech/json-logger@3.4.1(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.1(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedsupports-color@5.5.0(transitive)
Updated@emartech/json-logger@7.0.3