@opra/kafka 1.11.1 → 1.12.1
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/cjs/kafka-adapter.js +3 -3
- package/esm/kafka-adapter.js +3 -3
- package/package.json +3 -3
package/cjs/kafka-adapter.js
CHANGED
|
@@ -367,14 +367,14 @@ class KafkaAdapter extends core_1.PlatformAdapter {
|
|
|
367
367
|
context.errors.push(error);
|
|
368
368
|
context.errors = this._wrapExceptions(context.errors);
|
|
369
369
|
if (context.listenerCount('error')) {
|
|
370
|
-
await
|
|
370
|
+
await context.emitAsync('error', context.errors[0], context);
|
|
371
371
|
}
|
|
372
372
|
if (logger?.error) {
|
|
373
373
|
context.errors.forEach(err => logger.error(err));
|
|
374
374
|
}
|
|
375
|
-
return;
|
|
376
375
|
}
|
|
377
|
-
|
|
376
|
+
else
|
|
377
|
+
logger?.error(error);
|
|
378
378
|
if (this.listenerCount('error'))
|
|
379
379
|
this.emit('error', error);
|
|
380
380
|
})
|
package/esm/kafka-adapter.js
CHANGED
|
@@ -364,14 +364,14 @@ export class KafkaAdapter extends PlatformAdapter {
|
|
|
364
364
|
context.errors.push(error);
|
|
365
365
|
context.errors = this._wrapExceptions(context.errors);
|
|
366
366
|
if (context.listenerCount('error')) {
|
|
367
|
-
await
|
|
367
|
+
await context.emitAsync('error', context.errors[0], context);
|
|
368
368
|
}
|
|
369
369
|
if (logger?.error) {
|
|
370
370
|
context.errors.forEach(err => logger.error(err));
|
|
371
371
|
}
|
|
372
|
-
return;
|
|
373
372
|
}
|
|
374
|
-
|
|
373
|
+
else
|
|
374
|
+
logger?.error(error);
|
|
375
375
|
if (this.listenerCount('error'))
|
|
376
376
|
this.emit('error', error);
|
|
377
377
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/kafka",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "Opra Kafka package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"valgen": "^5.13.0"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@opra/common": "^1.
|
|
14
|
-
"@opra/core": "^1.
|
|
13
|
+
"@opra/common": "^1.12.1",
|
|
14
|
+
"@opra/core": "^1.12.1",
|
|
15
15
|
"kafkajs": ">=2.2.4 <3"
|
|
16
16
|
},
|
|
17
17
|
"type": "module",
|