dankgrinder 7.83.0 → 8.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.
package/lib/rawLogger.js CHANGED
@@ -30,14 +30,7 @@ const memRing = [];
30
30
  let memIdx = 0;
31
31
 
32
32
  // ── Redis init ──
33
- async function init(redisUrlOrInstance) {
34
- // Support passing an existing Redis instance directly (preferred)
35
- if (redisUrlOrInstance && typeof redisUrlOrInstance.status !== 'undefined') {
36
- redis = redisUrlOrInstance;
37
- redisReady = redis.status === 'ready';
38
- return;
39
- }
40
- const redisUrl = redisUrlOrInstance;
33
+ async function init(redisUrl) {
41
34
  if (!redisUrl) {
42
35
  console.log('[rawLogger] No Redis URL — raw logging disabled');
43
36
  return;
@@ -61,10 +54,7 @@ async function init(redisUrlOrInstance) {
61
54
  redisReady = true;
62
55
  console.log('[rawLogger] Redis connected');
63
56
  redis.on('error', (e) => {
64
- // Suppress common transient network errors from spamming stderr
65
- const msg = e?.message || '';
66
- if (msg.includes('ETIMEDOUT') || msg.includes('ECONNRESET') || msg.includes('ENOTFOUND') || msg.includes('read') || msg.includes('connect')) return;
67
- console.error(`[rawLogger] Redis error: ${msg}`);
57
+ console.error(`[rawLogger] Redis error: ${e.message}`);
68
58
  redisReady = false;
69
59
  });
70
60
  redis.on('close', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dankgrinder",
3
- "version": "7.83.0",
3
+ "version": "8.1.0",
4
4
  "description": "Dank Memer automation engine — grind coins while you sleep",
5
5
  "bin": {
6
6
  "dankgrinder": "bin/dankgrinder.js"