@event-driven-io/emmett 0.20.1-alpha.5 → 0.20.2-alpha.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/dist/chunk-AEEEXE2R.js +130 -0
- package/dist/{chunk-6TXKRKDJ.js.map → chunk-AEEEXE2R.js.map} +1 -1
- package/dist/cli.cjs +3 -4
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +195 -11
- package/dist/cli.js.map +1 -1
- package/dist/{index-D9zse73H.d.cts → index-DKT3pluX.d.cts} +5 -4
- package/dist/{index-D9zse73H.d.ts → index-DKT3pluX.d.ts} +5 -4
- package/dist/index.cjs +0 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +1329 -13
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-6TXKRKDJ.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { C as ConcurrencyError, E as ErrorConstructor } from './index-
|
|
2
|
-
export { f as EmmettCliPlugin, d as EmmettCliPluginRegistration,
|
|
1
|
+
import { C as ConcurrencyError, E as ErrorConstructor } from './index-DKT3pluX.js';
|
|
2
|
+
export { f as EmmettCliCommand, g as EmmettCliPlugin, d as EmmettCliPluginRegistration, k as EmmettError, h as EmmettPlugin, b as EmmettPluginConfig, e as EmmettPluginRegistration, c as EmmettPluginType, a as EmmettPluginsConfig, I as IllegalStateError, N as NotFoundError, V as ValidationError, j as isErrorConstructor, i as isPluginConfig } from './index-DKT3pluX.js';
|
|
3
3
|
import retry from 'async-retry';
|
|
4
4
|
import * as web_streams_polyfill from 'web-streams-polyfill';
|
|
5
5
|
import { TransformStream, ReadableStream } from 'web-streams-polyfill';
|
|
6
|
-
import 'commander';
|
|
7
6
|
|
|
8
7
|
type Primitive = undefined | null | boolean | string | number | bigint | symbol | Function;
|
|
9
8
|
type ImmutableTypes = Date | RegExp;
|
|
@@ -260,7 +259,7 @@ type HandleOptions<StreamVersion, Store extends EventStore<StreamVersion>> = Par
|
|
|
260
259
|
} | {
|
|
261
260
|
retry?: CommandHandlerRetryOptions;
|
|
262
261
|
});
|
|
263
|
-
declare const CommandHandler$1: <State, StreamEvent extends Event, StreamVersion = bigint>(options: CommandHandlerOptions<State, StreamEvent>) => <Store extends EventStore<StreamVersion>>(store: Store, id: string, handle: (state: State) => StreamEvent | StreamEvent[] | Promise<StreamEvent> | Promise<StreamEvent[]>, handleOptions?: HandleOptions<StreamVersion,
|
|
262
|
+
declare const CommandHandler$1: <State, StreamEvent extends Event, StreamVersion = bigint>(options: CommandHandlerOptions<State, StreamEvent>) => <Store extends EventStore<StreamVersion>>(store: Store, id: string, handle: (state: State) => StreamEvent | StreamEvent[] | Promise<StreamEvent> | Promise<StreamEvent[]>, handleOptions?: HandleOptions<StreamVersion, Store>) => Promise<CommandHandlerResult<State, StreamEvent, StreamVersion>>;
|
|
264
263
|
|
|
265
264
|
type DeciderCommandHandlerOptions<State, CommandType extends Command, StreamEvent extends Event> = CommandHandlerOptions<State, StreamEvent> & Decider<State, CommandType, StreamEvent>;
|
|
266
265
|
declare const DeciderCommandHandler: <State, CommandType extends Command, StreamEvent extends Event, StreamVersion = bigint>(options: DeciderCommandHandlerOptions<State, CommandType, StreamEvent>) => (eventStore: EventStore<StreamVersion>, id: string, command: CommandType, handleOptions?: HandleOptions<StreamVersion, EventStore<StreamVersion>>) => Promise<CommandHandlerResult<State, StreamEvent, StreamVersion>>;
|