@event-driven-io/emmett 0.23.0-alpha.6 → 0.23.0-alpha.7
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 +68 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -44
- package/dist/index.d.ts +87 -44
- package/dist/index.js +35 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17,18 +17,6 @@
|
|
|
17
17
|
|
|
18
18
|
var _chunkFNITWKARcjs = require('./chunk-FNITWKAR.cjs');
|
|
19
19
|
|
|
20
|
-
// src/eventStore/eventStore.ts
|
|
21
|
-
var canCreateEventStoreSession = (eventStore) => "withSession" in eventStore;
|
|
22
|
-
var nulloSessionFactory = (eventStore) => ({
|
|
23
|
-
withSession: (callback) => {
|
|
24
|
-
const nulloSession = {
|
|
25
|
-
eventStore,
|
|
26
|
-
close: () => Promise.resolve()
|
|
27
|
-
};
|
|
28
|
-
return callback(nulloSession);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
|
|
32
20
|
// src/typing/command.ts
|
|
33
21
|
var command = (type, data, metadata) => {
|
|
34
22
|
return {
|
|
@@ -94,16 +82,47 @@ var accept = () => {
|
|
|
94
82
|
return { kind: "Accept" };
|
|
95
83
|
};
|
|
96
84
|
|
|
85
|
+
// src/eventStore/afterCommit/afterEventStoreCommitHandler.ts
|
|
86
|
+
async function tryPublishMessagesAfterCommit(messages, options, context) {
|
|
87
|
+
if (_optionalChain([options, 'optionalAccess', _2 => _2.onAfterCommit]) === void 0) return false;
|
|
88
|
+
try {
|
|
89
|
+
await _optionalChain([options, 'optionalAccess', _3 => _3.onAfterCommit, 'call', _4 => _4(messages, context)]);
|
|
90
|
+
return true;
|
|
91
|
+
} catch (error2) {
|
|
92
|
+
console.error(`Error in on after commit hook`, error2);
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// src/eventStore/afterCommit/forwardToMessageBus.ts
|
|
98
|
+
var forwardToMessageBus = (eventPublisher) => async (messages) => {
|
|
99
|
+
for (const message of messages) {
|
|
100
|
+
await eventPublisher.publish(message);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
97
104
|
// src/eventStore/events/index.ts
|
|
98
105
|
var GlobalStreamCaughtUpType = "__emt:GlobalStreamCaughtUp";
|
|
99
106
|
var isGlobalStreamCaughtUp = (event2) => event2.type === GlobalStreamCaughtUpType;
|
|
100
|
-
var caughtUpEventFrom = (position) => (event2) => event2.type === GlobalStreamCaughtUpType && _optionalChain([event2, 'access',
|
|
107
|
+
var caughtUpEventFrom = (position) => (event2) => event2.type === GlobalStreamCaughtUpType && _optionalChain([event2, 'access', _5 => _5.metadata, 'optionalAccess', _6 => _6.globalPosition]) >= position;
|
|
101
108
|
var globalStreamCaughtUp = (data) => event(GlobalStreamCaughtUpType, data, {
|
|
102
109
|
globalPosition: data.globalPosition
|
|
103
110
|
});
|
|
104
111
|
var isSubscriptionEvent = (event2) => isGlobalStreamCaughtUp(event2);
|
|
105
112
|
var isNotInternalEvent = (event2) => !isGlobalStreamCaughtUp(event2);
|
|
106
113
|
|
|
114
|
+
// src/eventStore/eventStore.ts
|
|
115
|
+
var canCreateEventStoreSession = (eventStore) => "withSession" in eventStore;
|
|
116
|
+
var nulloSessionFactory = (eventStore) => ({
|
|
117
|
+
withSession: (callback) => {
|
|
118
|
+
const nulloSession = {
|
|
119
|
+
eventStore,
|
|
120
|
+
close: () => Promise.resolve()
|
|
121
|
+
};
|
|
122
|
+
return callback(nulloSession);
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
|
|
107
126
|
// src/eventStore/expectedVersion.ts
|
|
108
127
|
var STREAM_EXISTS = "STREAM_EXISTS";
|
|
109
128
|
var STREAM_DOES_NOT_EXIST = "STREAM_DOES_NOT_EXIST";
|
|
@@ -121,7 +140,7 @@ var assertExpectedVersionMatchesCurrent = (current, expected, defaultVersion) =>
|
|
|
121
140
|
};
|
|
122
141
|
var ExpectedVersionConflictError = class _ExpectedVersionConflictError extends _chunkFNITWKARcjs.ConcurrencyError {
|
|
123
142
|
constructor(current, expected) {
|
|
124
|
-
super(_optionalChain([current, 'optionalAccess',
|
|
143
|
+
super(_optionalChain([current, 'optionalAccess', _7 => _7.toString, 'call', _8 => _8()]), _optionalChain([expected, 'optionalAccess', _9 => _9.toString, 'call', _10 => _10()]));
|
|
125
144
|
Object.setPrototypeOf(this, _ExpectedVersionConflictError.prototype);
|
|
126
145
|
}
|
|
127
146
|
};
|
|
@@ -178,9 +197,9 @@ var NotifyAboutNoActiveReadersStream = (_class = class extends _webstreamspolyfi
|
|
|
178
197
|
}
|
|
179
198
|
});_class.prototype.__init.call(this);_class.prototype.__init2.call(this);;
|
|
180
199
|
this.onNoActiveReaderCallback = onNoActiveReaderCallback;
|
|
181
|
-
this.streamId = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
200
|
+
this.streamId = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _11 => _11.streamId]), () => ( _uuid.v4.call(void 0, )));
|
|
182
201
|
this.onNoActiveReaderCallback = onNoActiveReaderCallback;
|
|
183
|
-
this.startChecking(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
202
|
+
this.startChecking(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _12 => _12.intervalCheckInMs]), () => ( 20)));
|
|
184
203
|
}
|
|
185
204
|
__init() {this.checkInterval = null}
|
|
186
205
|
|
|
@@ -257,7 +276,7 @@ var StreamingCoordinator = () => {
|
|
|
257
276
|
|
|
258
277
|
// src/eventStore/inMemoryEventStore.ts
|
|
259
278
|
var InMemoryEventStoreDefaultStreamVersion = 0n;
|
|
260
|
-
var getInMemoryEventStore = () => {
|
|
279
|
+
var getInMemoryEventStore = (eventStoreOptions) => {
|
|
261
280
|
const streams = /* @__PURE__ */ new Map();
|
|
262
281
|
const streamingCoordinator = StreamingCoordinator();
|
|
263
282
|
const getAllEventsCount = () => {
|
|
@@ -267,7 +286,7 @@ var getInMemoryEventStore = () => {
|
|
|
267
286
|
async aggregateStream(streamName, options) {
|
|
268
287
|
const { evolve, initialState, read } = options;
|
|
269
288
|
const result = await this.readStream(streamName, read);
|
|
270
|
-
const events = _nullishCoalesce(_optionalChain([result, 'optionalAccess',
|
|
289
|
+
const events = _nullishCoalesce(_optionalChain([result, 'optionalAccess', _13 => _13.events]), () => ( []));
|
|
271
290
|
return {
|
|
272
291
|
currentStreamVersion: BigInt(events.length),
|
|
273
292
|
state: events.reduce(evolve, initialState()),
|
|
@@ -279,12 +298,12 @@ var getInMemoryEventStore = () => {
|
|
|
279
298
|
const currentStreamVersion = events ? BigInt(events.length) : InMemoryEventStoreDefaultStreamVersion;
|
|
280
299
|
assertExpectedVersionMatchesCurrent(
|
|
281
300
|
currentStreamVersion,
|
|
282
|
-
_optionalChain([options, 'optionalAccess',
|
|
301
|
+
_optionalChain([options, 'optionalAccess', _14 => _14.expectedStreamVersion]),
|
|
283
302
|
InMemoryEventStoreDefaultStreamVersion
|
|
284
303
|
);
|
|
285
304
|
const from = Number(options && "from" in options ? options.from : 0);
|
|
286
305
|
const to = Number(
|
|
287
|
-
options && "to" in options ? options.to : options && "maxCount" in options && options.maxCount ? options.from + options.maxCount : _nullishCoalesce(_optionalChain([events, 'optionalAccess',
|
|
306
|
+
options && "to" in options ? options.to : options && "maxCount" in options && options.maxCount ? options.from + options.maxCount : _nullishCoalesce(_optionalChain([events, 'optionalAccess', _15 => _15.length]), () => ( 1))
|
|
288
307
|
);
|
|
289
308
|
const resultEvents = events !== void 0 && events.length > 0 ? events.map(
|
|
290
309
|
(e) => e
|
|
@@ -301,7 +320,7 @@ var getInMemoryEventStore = () => {
|
|
|
301
320
|
const currentStreamVersion = currentEvents.length > 0 ? BigInt(currentEvents.length) : InMemoryEventStoreDefaultStreamVersion;
|
|
302
321
|
assertExpectedVersionMatchesCurrent(
|
|
303
322
|
currentStreamVersion,
|
|
304
|
-
_optionalChain([options, 'optionalAccess',
|
|
323
|
+
_optionalChain([options, 'optionalAccess', _16 => _16.expectedStreamVersion]),
|
|
305
324
|
InMemoryEventStoreDefaultStreamVersion
|
|
306
325
|
);
|
|
307
326
|
const newEvents = events.map((event2, index) => {
|
|
@@ -325,6 +344,7 @@ var getInMemoryEventStore = () => {
|
|
|
325
344
|
nextExpectedStreamVersion: positionOfLastEventInTheStream,
|
|
326
345
|
createdNewStream: currentStreamVersion === InMemoryEventStoreDefaultStreamVersion
|
|
327
346
|
};
|
|
347
|
+
await tryPublishMessagesAfterCommit(newEvents, _optionalChain([eventStoreOptions, 'optionalAccess', _17 => _17.hooks]));
|
|
328
348
|
return result;
|
|
329
349
|
}
|
|
330
350
|
//streamEvents: streamingCoordinator.stream,
|
|
@@ -425,7 +445,7 @@ var TaskProcessor = (_class2 = class {
|
|
|
425
445
|
while (this.activeTasks < this.options.maxActiveTasks && this.queue.length > 0) {
|
|
426
446
|
const item = this.takeFirstAvailableItem();
|
|
427
447
|
if (item === null) return;
|
|
428
|
-
const groupId = _optionalChain([item, 'access',
|
|
448
|
+
const groupId = _optionalChain([item, 'access', _22 => _22.options, 'optionalAccess', _23 => _23.taskGroupId]);
|
|
429
449
|
if (groupId) {
|
|
430
450
|
this.activeGroups.add(groupId);
|
|
431
451
|
}
|
|
@@ -455,7 +475,7 @@ var TaskProcessor = (_class2 = class {
|
|
|
455
475
|
}
|
|
456
476
|
__init7() {this.takeFirstAvailableItem = () => {
|
|
457
477
|
const taskIndex = this.queue.findIndex(
|
|
458
|
-
(item2) => !_optionalChain([item2, 'access',
|
|
478
|
+
(item2) => !_optionalChain([item2, 'access', _24 => _24.options, 'optionalAccess', _25 => _25.taskGroupId]) || !this.activeGroups.has(item2.options.taskGroupId)
|
|
459
479
|
);
|
|
460
480
|
if (taskIndex === -1) {
|
|
461
481
|
return null;
|
|
@@ -464,7 +484,7 @@ var TaskProcessor = (_class2 = class {
|
|
|
464
484
|
return _nullishCoalesce(item, () => ( null));
|
|
465
485
|
}}
|
|
466
486
|
__init8() {this.hasItemsToProcess = () => this.queue.findIndex(
|
|
467
|
-
(item) => !_optionalChain([item, 'access',
|
|
487
|
+
(item) => !_optionalChain([item, 'access', _26 => _26.options, 'optionalAccess', _27 => _27.taskGroupId]) || !this.activeGroups.has(item.options.taskGroupId)
|
|
468
488
|
) !== -1}
|
|
469
489
|
}, _class2);
|
|
470
490
|
var DEFAULT_PROMISE_DEADLINE = 2147483647;
|
|
@@ -571,7 +591,7 @@ var asyncRetry = async (fn, opts) => {
|
|
|
571
591
|
try {
|
|
572
592
|
return await fn();
|
|
573
593
|
} catch (error2) {
|
|
574
|
-
if (_optionalChain([opts, 'optionalAccess',
|
|
594
|
+
if (_optionalChain([opts, 'optionalAccess', _28 => _28.shouldRetryError]) && !opts.shouldRetryError(error2)) {
|
|
575
595
|
bail(error2);
|
|
576
596
|
}
|
|
577
597
|
throw error2;
|
|
@@ -615,7 +635,7 @@ var CommandHandler = (options) => async (store, id, handle, handleOptions) => as
|
|
|
615
635
|
// expected stream version is passed to fail fast
|
|
616
636
|
// if stream is in the wrong state
|
|
617
637
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
618
|
-
expectedStreamVersion: _nullishCoalesce(_optionalChain([handleOptions, 'optionalAccess',
|
|
638
|
+
expectedStreamVersion: _nullishCoalesce(_optionalChain([handleOptions, 'optionalAccess', _29 => _29.expectedStreamVersion]), () => ( NO_CONCURRENCY_CHECK))
|
|
619
639
|
}
|
|
620
640
|
});
|
|
621
641
|
const {
|
|
@@ -637,7 +657,7 @@ var CommandHandler = (options) => async (store, id, handle, handleOptions) => as
|
|
|
637
657
|
createdNewStream: false
|
|
638
658
|
};
|
|
639
659
|
}
|
|
640
|
-
const expectedStreamVersion = _nullishCoalesce(_optionalChain([handleOptions, 'optionalAccess',
|
|
660
|
+
const expectedStreamVersion = _nullishCoalesce(_optionalChain([handleOptions, 'optionalAccess', _30 => _30.expectedStreamVersion]), () => ( (aggregationResult.streamExists ? currentStreamVersion : STREAM_DOES_NOT_EXIST)));
|
|
641
661
|
const appendResult = await eventStore.appendToStream(
|
|
642
662
|
streamName,
|
|
643
663
|
newEvents,
|
|
@@ -745,17 +765,17 @@ var ParseError = class extends Error {
|
|
|
745
765
|
var JSONParser = {
|
|
746
766
|
stringify: (value, options) => {
|
|
747
767
|
return JSON.stringify(
|
|
748
|
-
_optionalChain([options, 'optionalAccess',
|
|
768
|
+
_optionalChain([options, 'optionalAccess', _31 => _31.map]) ? options.map(value) : value,
|
|
749
769
|
//TODO: Consider adding support to DateTime and adding specific format to mark that's a bigint
|
|
750
770
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
751
771
|
(_, v) => typeof v === "bigint" ? v.toString() : v
|
|
752
772
|
);
|
|
753
773
|
},
|
|
754
774
|
parse: (text, options) => {
|
|
755
|
-
const parsed = JSON.parse(text, _optionalChain([options, 'optionalAccess',
|
|
756
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
775
|
+
const parsed = JSON.parse(text, _optionalChain([options, 'optionalAccess', _32 => _32.reviver]));
|
|
776
|
+
if (_optionalChain([options, 'optionalAccess', _33 => _33.typeCheck]) && !_optionalChain([options, 'optionalAccess', _34 => _34.typeCheck, 'call', _35 => _35(parsed)]))
|
|
757
777
|
throw new ParseError(text);
|
|
758
|
-
return _optionalChain([options, 'optionalAccess',
|
|
778
|
+
return _optionalChain([options, 'optionalAccess', _36 => _36.map]) ? options.map(parsed) : parsed;
|
|
759
779
|
}
|
|
760
780
|
};
|
|
761
781
|
|
|
@@ -882,7 +902,7 @@ var CompositeDecoder = class {
|
|
|
882
902
|
return decoder[1];
|
|
883
903
|
}
|
|
884
904
|
addToBuffer(data) {
|
|
885
|
-
_optionalChain([this, 'access',
|
|
905
|
+
_optionalChain([this, 'access', _37 => _37.decoderFor, 'call', _38 => _38(data), 'optionalAccess', _39 => _39.addToBuffer, 'call', _40 => _40(data)]);
|
|
886
906
|
}
|
|
887
907
|
clearBuffer() {
|
|
888
908
|
for (const decoder of this.decoders.map((d) => d[1])) {
|
|
@@ -894,7 +914,7 @@ var CompositeDecoder = class {
|
|
|
894
914
|
}
|
|
895
915
|
decode() {
|
|
896
916
|
const decoder = this.decoders.map((d) => d[1]).find((d) => d.hasCompleteMessage());
|
|
897
|
-
return _nullishCoalesce(_optionalChain([decoder, 'optionalAccess',
|
|
917
|
+
return _nullishCoalesce(_optionalChain([decoder, 'optionalAccess', _41 => _41.decode, 'call', _42 => _42()]), () => ( null));
|
|
898
918
|
}
|
|
899
919
|
};
|
|
900
920
|
var DefaultDecoder = class extends CompositeDecoder {
|
|
@@ -1109,7 +1129,7 @@ var decodeAndTransform = (decoder, transform, controller) => {
|
|
|
1109
1129
|
const transformed = transform(decoded);
|
|
1110
1130
|
controller.enqueue(transformed);
|
|
1111
1131
|
} catch (error2) {
|
|
1112
|
-
controller.error(new Error(`Decoding error: ${_optionalChain([error2, 'optionalAccess',
|
|
1132
|
+
controller.error(new Error(`Decoding error: ${_optionalChain([error2, 'optionalAccess', _43 => _43.toString, 'call', _44 => _44()])}`));
|
|
1113
1133
|
}
|
|
1114
1134
|
};
|
|
1115
1135
|
|
|
@@ -1270,39 +1290,39 @@ var argMatches = (matches) => (arg) => matches(arg);
|
|
|
1270
1290
|
function verifyThat(fn) {
|
|
1271
1291
|
return {
|
|
1272
1292
|
calledTimes: (times) => {
|
|
1273
|
-
assertEqual(_optionalChain([fn, 'access',
|
|
1293
|
+
assertEqual(_optionalChain([fn, 'access', _45 => _45.mock, 'optionalAccess', _46 => _46.calls, 'optionalAccess', _47 => _47.length]), times);
|
|
1274
1294
|
},
|
|
1275
1295
|
notCalled: () => {
|
|
1276
|
-
assertEqual(_optionalChain([fn, 'optionalAccess',
|
|
1296
|
+
assertEqual(_optionalChain([fn, 'optionalAccess', _48 => _48.mock, 'optionalAccess', _49 => _49.calls, 'optionalAccess', _50 => _50.length]), 0);
|
|
1277
1297
|
},
|
|
1278
1298
|
called: () => {
|
|
1279
1299
|
assertTrue(
|
|
1280
|
-
_optionalChain([fn, 'access',
|
|
1300
|
+
_optionalChain([fn, 'access', _51 => _51.mock, 'optionalAccess', _52 => _52.calls, 'access', _53 => _53.length]) !== void 0 && fn.mock.calls.length > 0
|
|
1281
1301
|
);
|
|
1282
1302
|
},
|
|
1283
1303
|
calledWith: (...args) => {
|
|
1284
1304
|
assertTrue(
|
|
1285
|
-
_optionalChain([fn, 'access',
|
|
1305
|
+
_optionalChain([fn, 'access', _54 => _54.mock, 'optionalAccess', _55 => _55.calls, 'access', _56 => _56.length]) !== void 0 && fn.mock.calls.length >= 1 && fn.mock.calls.some((call) => deepEquals(call.arguments, args))
|
|
1286
1306
|
);
|
|
1287
1307
|
},
|
|
1288
1308
|
calledOnceWith: (...args) => {
|
|
1289
1309
|
assertTrue(
|
|
1290
|
-
_optionalChain([fn, 'access',
|
|
1310
|
+
_optionalChain([fn, 'access', _57 => _57.mock, 'optionalAccess', _58 => _58.calls, 'access', _59 => _59.length]) !== void 0 && fn.mock.calls.length === 1 && fn.mock.calls.some((call) => deepEquals(call.arguments, args))
|
|
1291
1311
|
);
|
|
1292
1312
|
},
|
|
1293
1313
|
calledWithArgumentMatching: (...matches) => {
|
|
1294
1314
|
assertTrue(
|
|
1295
|
-
_optionalChain([fn, 'access',
|
|
1315
|
+
_optionalChain([fn, 'access', _60 => _60.mock, 'optionalAccess', _61 => _61.calls, 'access', _62 => _62.length]) !== void 0 && fn.mock.calls.length >= 1
|
|
1296
1316
|
);
|
|
1297
1317
|
assertTrue(
|
|
1298
|
-
_optionalChain([fn, 'access',
|
|
1318
|
+
_optionalChain([fn, 'access', _63 => _63.mock, 'optionalAccess', _64 => _64.calls, 'access', _65 => _65.length]) !== void 0 && fn.mock.calls.length >= 1 && fn.mock.calls.some(
|
|
1299
1319
|
(call) => call.arguments && call.arguments.length >= matches.length && matches.every((match, index) => match(call.arguments[index]))
|
|
1300
1320
|
)
|
|
1301
1321
|
);
|
|
1302
1322
|
},
|
|
1303
1323
|
notCalledWithArgumentMatching: (...matches) => {
|
|
1304
1324
|
assertFalse(
|
|
1305
|
-
_optionalChain([fn, 'access',
|
|
1325
|
+
_optionalChain([fn, 'access', _66 => _66.mock, 'optionalAccess', _67 => _67.calls, 'access', _68 => _68.length]) !== void 0 && fn.mock.calls.length >= 1 && fn.mock.calls[0].arguments && fn.mock.calls[0].arguments.length >= matches.length && matches.every(
|
|
1306
1326
|
(match, index) => match(fn.mock.calls[0].arguments[index])
|
|
1307
1327
|
)
|
|
1308
1328
|
);
|
|
@@ -1410,18 +1430,18 @@ var DeciderSpecification = {
|
|
|
1410
1430
|
if (!_chunkFNITWKARcjs.isErrorConstructor.call(void 0, args[0])) {
|
|
1411
1431
|
assertTrue(
|
|
1412
1432
|
args[0](error2),
|
|
1413
|
-
`Error didn't match the error condition: ${_optionalChain([error2, 'optionalAccess',
|
|
1433
|
+
`Error didn't match the error condition: ${_optionalChain([error2, 'optionalAccess', _69 => _69.toString, 'call', _70 => _70()])}`
|
|
1414
1434
|
);
|
|
1415
1435
|
return;
|
|
1416
1436
|
}
|
|
1417
1437
|
assertTrue(
|
|
1418
1438
|
error2 instanceof args[0],
|
|
1419
|
-
`Caught error is not an instance of the expected type: ${_optionalChain([error2, 'optionalAccess',
|
|
1439
|
+
`Caught error is not an instance of the expected type: ${_optionalChain([error2, 'optionalAccess', _71 => _71.toString, 'call', _72 => _72()])}`
|
|
1420
1440
|
);
|
|
1421
1441
|
if (args[1]) {
|
|
1422
1442
|
assertTrue(
|
|
1423
1443
|
args[1](error2),
|
|
1424
|
-
`Error didn't match the error condition: ${_optionalChain([error2, 'optionalAccess',
|
|
1444
|
+
`Error didn't match the error condition: ${_optionalChain([error2, 'optionalAccess', _73 => _73.toString, 'call', _74 => _74()])}`
|
|
1425
1445
|
);
|
|
1426
1446
|
}
|
|
1427
1447
|
}
|
|
@@ -1573,5 +1593,7 @@ var WrapEventStore = (eventStore) => {
|
|
|
1573
1593
|
|
|
1574
1594
|
|
|
1575
1595
|
|
|
1576
|
-
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
exports.AssertionError = AssertionError; exports.BinaryJsonDecoder = BinaryJsonDecoder; exports.CaughtUpTransformStream = CaughtUpTransformStream; exports.CommandHandler = CommandHandler; exports.CommandHandlerStreamVersionConflictRetryOptions = CommandHandlerStreamVersionConflictRetryOptions; exports.CompositeDecoder = CompositeDecoder; exports.ConcurrencyError = _chunkFNITWKARcjs.ConcurrencyError; exports.DeciderCommandHandler = DeciderCommandHandler; exports.DeciderSpecification = DeciderSpecification; exports.DefaultDecoder = DefaultDecoder; exports.EmmettError = _chunkFNITWKARcjs.EmmettError; exports.ExpectedVersionConflictError = ExpectedVersionConflictError; exports.GlobalStreamCaughtUpType = GlobalStreamCaughtUpType; exports.IllegalStateError = _chunkFNITWKARcjs.IllegalStateError; exports.InMemoryEventStoreDefaultStreamVersion = InMemoryEventStoreDefaultStreamVersion; exports.InProcessLock = InProcessLock; exports.JSONParser = JSONParser; exports.JsonDecoder = JsonDecoder; exports.NO_CONCURRENCY_CHECK = NO_CONCURRENCY_CHECK; exports.NoRetries = NoRetries; exports.NotFoundError = _chunkFNITWKARcjs.NotFoundError; exports.ObjectDecoder = ObjectDecoder; exports.ParseError = ParseError; exports.STREAM_DOES_NOT_EXIST = STREAM_DOES_NOT_EXIST; exports.STREAM_EXISTS = STREAM_EXISTS; exports.StreamingCoordinator = StreamingCoordinator; exports.StringDecoder = StringDecoder; exports.TaskProcessor = TaskProcessor; exports.ValidationError = _chunkFNITWKARcjs.ValidationError; exports.ValidationErrors = _chunkFNITWKARcjs.ValidationErrors; exports.WrapEventStore = WrapEventStore; exports.accept = accept; exports.argMatches = argMatches; exports.argValue = argValue; exports.assertDeepEqual = assertDeepEqual; exports.assertDoesNotThrow = assertDoesNotThrow; exports.assertEqual = assertEqual; exports.assertExpectedVersionMatchesCurrent = assertExpectedVersionMatchesCurrent; exports.assertFails = assertFails; exports.assertFalse = assertFalse; exports.assertIsNotNull = assertIsNotNull; exports.assertIsNull = assertIsNull; exports.assertMatches = assertMatches; exports.assertNotDeepEqual = assertNotDeepEqual; exports.assertNotEmptyString = _chunkFNITWKARcjs.assertNotEmptyString; exports.assertNotEqual = assertNotEqual; exports.assertOk = assertOk; exports.assertPositiveNumber = _chunkFNITWKARcjs.assertPositiveNumber; exports.assertRejects = assertRejects; exports.assertThat = assertThat; exports.assertThatArray = assertThatArray; exports.assertThrows = assertThrows; exports.assertThrowsAsync = assertThrowsAsync; exports.assertTrue = assertTrue; exports.assertUnsignedBigInt = _chunkFNITWKARcjs.assertUnsignedBigInt; exports.asyncProjections = asyncProjections; exports.asyncRetry = asyncRetry; exports.canCreateEventStoreSession = canCreateEventStoreSession; exports.caughtUpEventFrom = caughtUpEventFrom; exports.collect = collect; exports.command = command; exports.complete = complete; exports.concatUint8Arrays = concatUint8Arrays; exports.deepEquals = deepEquals; exports.error = error; exports.event = event; exports.formatDateToUtcYYYYMMDD = _chunkFNITWKARcjs.formatDateToUtcYYYYMMDD; exports.forwardToMessageBus = forwardToMessageBus; exports.getInMemoryEventStore = getInMemoryEventStore; exports.getInMemoryMessageBus = getInMemoryMessageBus; exports.globalStreamCaughtUp = globalStreamCaughtUp; exports.ignore = ignore; exports.inlineProjections = inlineProjections; exports.isEquatable = isEquatable; exports.isErrorConstructor = _chunkFNITWKARcjs.isErrorConstructor; exports.isExpectedVersionConflictError = isExpectedVersionConflictError; exports.isGlobalStreamCaughtUp = isGlobalStreamCaughtUp; exports.isNotInternalEvent = isNotInternalEvent; exports.isNumber = _chunkFNITWKARcjs.isNumber; exports.isPluginConfig = _chunkFNITWKARcjs.isPluginConfig; exports.isString = _chunkFNITWKARcjs.isString; exports.isSubscriptionEvent = isSubscriptionEvent; exports.isSubset = isSubset; exports.isValidYYYYMMDD = _chunkFNITWKARcjs.isValidYYYYMMDD; exports.matchesExpectedVersion = matchesExpectedVersion; exports.merge = merge; exports.nulloSessionFactory = nulloSessionFactory; exports.parseDateFromUtcYYYYMMDD = _chunkFNITWKARcjs.parseDateFromUtcYYYYMMDD; exports.projection = projection; exports.projections = projections; exports.publish = publish; exports.reply = reply; exports.restream = restream; exports.schedule = schedule; exports.send = send; exports.streamGenerators = streamGenerators; exports.streamTrackingGlobalPosition = streamTrackingGlobalPosition; exports.streamTransformations = streamTransformations; exports.sum = sum; exports.tryPublishMessagesAfterCommit = tryPublishMessagesAfterCommit; exports.verifyThat = verifyThat;
|
|
1577
1599
|
//# sourceMappingURL=index.cjs.map
|