@event-driven-io/emmett-esdb 0.43.0-beta.1 → 0.43.0-beta.2
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/dist/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -57,6 +57,7 @@ var _uuid = require('uuid');
|
|
|
57
57
|
var _asyncretry = require('async-retry'); var _asyncretry2 = _interopRequireDefault(_asyncretry);
|
|
58
58
|
|
|
59
59
|
|
|
60
|
+
|
|
60
61
|
var emmettPrefix = "emt";
|
|
61
62
|
var defaultTag = `${emmettPrefix}:default`;
|
|
62
63
|
var unknownTag = `${emmettPrefix}:unknown`;
|
|
@@ -318,12 +319,12 @@ var asyncRetry = async (fn, opts) => {
|
|
|
318
319
|
);
|
|
319
320
|
}
|
|
320
321
|
return result;
|
|
321
|
-
} catch (
|
|
322
|
-
if (_optionalChain([opts, 'optionalAccess', _15 => _15.shouldRetryError]) && !opts.shouldRetryError(
|
|
323
|
-
bail(
|
|
322
|
+
} catch (error) {
|
|
323
|
+
if (_optionalChain([opts, 'optionalAccess', _15 => _15.shouldRetryError]) && !opts.shouldRetryError(error)) {
|
|
324
|
+
bail(error);
|
|
324
325
|
return void 0;
|
|
325
326
|
}
|
|
326
|
-
throw
|
|
327
|
+
throw error;
|
|
327
328
|
}
|
|
328
329
|
},
|
|
329
330
|
_nullishCoalesce(opts, () => ( { retries: 0 }))
|
|
@@ -666,6 +667,7 @@ var reactor = (options) => {
|
|
|
666
667
|
id: processorId,
|
|
667
668
|
instanceId,
|
|
668
669
|
type,
|
|
670
|
+
canHandle,
|
|
669
671
|
init,
|
|
670
672
|
start: async (startOptions) => {
|
|
671
673
|
if (isActive) return;
|