Comparing version 2.2.5 to 2.2.7
@@ -152,2 +152,3 @@ 'use strict'; | ||
var stdout = ''; | ||
var stale_cache_timer = void 0; | ||
@@ -158,4 +159,8 @@ (0, _logger.log)('Consuming ' + topic + ' at offset ' + offset); | ||
consumer.stdout.on('data', function (data) { | ||
clearTimeout(stale_cache_timer); | ||
stdout += data.toString(); | ||
stdout = handle_consumer_data(stdout, topic, id, work, exit); | ||
stale_cache_timer = setTimeout(function () { | ||
return stdout = ''; | ||
}, process.env.STALE_CACHE_TIMER || 3600000); | ||
}); | ||
@@ -162,0 +167,0 @@ consumer.stderr.on('data', function (data) { |
{ | ||
"name": "elytron", | ||
"version": "2.2.5", | ||
"version": "2.2.7", | ||
"description": "An interface for Kafka in Node", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
@@ -138,2 +138,3 @@ import uuid from 'uuid'; | ||
let stdout = ''; | ||
let stale_cache_timer; | ||
@@ -144,4 +145,9 @@ log(`Consuming ${topic} at offset ${offset}`); | ||
consumer.stdout.on('data', (data) => { | ||
clearTimeout(stale_cache_timer); | ||
stdout += data.toString(); | ||
stdout = handle_consumer_data(stdout, topic, id, work, exit); | ||
stale_cache_timer = setTimeout( | ||
() => stdout = '', | ||
process.env.STALE_CACHE_TIMER || 3600000 | ||
); | ||
}); | ||
@@ -148,0 +154,0 @@ consumer.stderr.on('data', (data) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
624
37821
24
6