@schorts/shared-kernel 5.2.3 → 5.2.4
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/cjs/cqrs/in-memory/in-memory-command-bus.js +2 -2
- package/dist/cjs/cqrs/in-memory/in-memory-command-bus.js.map +1 -1
- package/dist/cjs/cqrs/in-memory/in-memory-query-bus.js +2 -2
- package/dist/cjs/cqrs/in-memory/in-memory-query-bus.js.map +1 -1
- package/dist/esm/cqrs/in-memory/in-memory-command-bus.js +2 -2
- package/dist/esm/cqrs/in-memory/in-memory-command-bus.js.map +1 -1
- package/dist/esm/cqrs/in-memory/in-memory-query-bus.js +2 -2
- package/dist/esm/cqrs/in-memory/in-memory-query-bus.js.map +1 -1
- package/dist/types/cqrs/command.d.ts +1 -1
- package/dist/types/cqrs/command.d.ts.map +1 -1
- package/dist/types/cqrs/query.d.ts +1 -1
- package/dist/types/cqrs/query.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -8,9 +8,9 @@ class InMemoryCommandBus {
|
|
|
8
8
|
this.handlers.set(type, handler);
|
|
9
9
|
}
|
|
10
10
|
async dispatch(command) {
|
|
11
|
-
const handler = this.handlers.get(command.
|
|
11
|
+
const handler = this.handlers.get(command.getType());
|
|
12
12
|
if (!handler) {
|
|
13
|
-
throw new __1.CommandNotRegistered(command.
|
|
13
|
+
throw new __1.CommandNotRegistered(command.getType());
|
|
14
14
|
}
|
|
15
15
|
await handler.handle(command);
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-memory-command-bus.js","sourceRoot":"","sources":["../../../../src/cqrs/in-memory/in-memory-command-bus.ts"],"names":[],"mappings":";;;AAAA,2BAAgF;AAEhF,MAAa,kBAAkB;IACZ,QAAQ,GAAG,IAAI,GAAG,EAA0B,CAAC;IAE9D,QAAQ,CAAoB,IAAY,EAAE,OAA0B;QAClE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAoB,OAAU;QAC1C,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"in-memory-command-bus.js","sourceRoot":"","sources":["../../../../src/cqrs/in-memory/in-memory-command-bus.ts"],"names":[],"mappings":";;;AAAA,2BAAgF;AAEhF,MAAa,kBAAkB;IACZ,QAAQ,GAAG,IAAI,GAAG,EAA0B,CAAC;IAE9D,QAAQ,CAAoB,IAAY,EAAE,OAA0B;QAClE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAoB,OAAU;QAC1C,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QAErD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,wBAAoB,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QACpD,CAAC;QAED,MAAM,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;CACF;AAhBD,gDAgBC"}
|
|
@@ -8,9 +8,9 @@ class InMemoryQueryBus {
|
|
|
8
8
|
this.handlers.set(type, handler);
|
|
9
9
|
}
|
|
10
10
|
async dispatch(query) {
|
|
11
|
-
const handler = this.handlers.get(query.
|
|
11
|
+
const handler = this.handlers.get(query.getType());
|
|
12
12
|
if (!handler) {
|
|
13
|
-
throw new __1.QueryNotRegistered(query.
|
|
13
|
+
throw new __1.QueryNotRegistered(query.getType());
|
|
14
14
|
}
|
|
15
15
|
return await handler.handle(query);
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-memory-query-bus.js","sourceRoot":"","sources":["../../../../src/cqrs/in-memory/in-memory-query-bus.ts"],"names":[],"mappings":";;;AAAA,2BAAwE;AAExE,MAAa,gBAAgB;IACV,QAAQ,GAAG,IAAI,GAAG,EAAwB,CAAC;IAE5D,QAAQ,CAAqB,IAAY,EAAE,OAA2B;QACpE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAqB,KAAQ;QACzC,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"in-memory-query-bus.js","sourceRoot":"","sources":["../../../../src/cqrs/in-memory/in-memory-query-bus.ts"],"names":[],"mappings":";;;AAAA,2BAAwE;AAExE,MAAa,gBAAgB;IACV,QAAQ,GAAG,IAAI,GAAG,EAAwB,CAAC;IAE5D,QAAQ,CAAqB,IAAY,EAAE,OAA2B;QACpE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAqB,KAAQ;QACzC,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,CAAmC,CAAC;QAErF,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,sBAAkB,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QAChD,CAAC;QAED,OAAO,MAAM,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;CACF;AAhBD,4CAgBC"}
|
|
@@ -8,9 +8,9 @@ class InMemoryCommandBus {
|
|
|
8
8
|
this.handlers.set(type, handler);
|
|
9
9
|
}
|
|
10
10
|
async dispatch(command) {
|
|
11
|
-
const handler = this.handlers.get(command.
|
|
11
|
+
const handler = this.handlers.get(command.getType());
|
|
12
12
|
if (!handler) {
|
|
13
|
-
throw new __1.CommandNotRegistered(command.
|
|
13
|
+
throw new __1.CommandNotRegistered(command.getType());
|
|
14
14
|
}
|
|
15
15
|
await handler.handle(command);
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-memory-command-bus.js","sourceRoot":"","sources":["../../../../src/cqrs/in-memory/in-memory-command-bus.ts"],"names":[],"mappings":";;;AAAA,2BAAgF;AAEhF,MAAa,kBAAkB;IACZ,QAAQ,GAAG,IAAI,GAAG,EAA0B,CAAC;IAE9D,QAAQ,CAAoB,IAAY,EAAE,OAA0B;QAClE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAoB,OAAU;QAC1C,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"in-memory-command-bus.js","sourceRoot":"","sources":["../../../../src/cqrs/in-memory/in-memory-command-bus.ts"],"names":[],"mappings":";;;AAAA,2BAAgF;AAEhF,MAAa,kBAAkB;IACZ,QAAQ,GAAG,IAAI,GAAG,EAA0B,CAAC;IAE9D,QAAQ,CAAoB,IAAY,EAAE,OAA0B;QAClE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAoB,OAAU;QAC1C,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QAErD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,wBAAoB,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QACpD,CAAC;QAED,MAAM,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;CACF;AAhBD,gDAgBC"}
|
|
@@ -8,9 +8,9 @@ class InMemoryQueryBus {
|
|
|
8
8
|
this.handlers.set(type, handler);
|
|
9
9
|
}
|
|
10
10
|
async dispatch(query) {
|
|
11
|
-
const handler = this.handlers.get(query.
|
|
11
|
+
const handler = this.handlers.get(query.getType());
|
|
12
12
|
if (!handler) {
|
|
13
|
-
throw new __1.QueryNotRegistered(query.
|
|
13
|
+
throw new __1.QueryNotRegistered(query.getType());
|
|
14
14
|
}
|
|
15
15
|
return await handler.handle(query);
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-memory-query-bus.js","sourceRoot":"","sources":["../../../../src/cqrs/in-memory/in-memory-query-bus.ts"],"names":[],"mappings":";;;AAAA,2BAAwE;AAExE,MAAa,gBAAgB;IACV,QAAQ,GAAG,IAAI,GAAG,EAAwB,CAAC;IAE5D,QAAQ,CAAqB,IAAY,EAAE,OAA2B;QACpE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAqB,KAAQ;QACzC,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"in-memory-query-bus.js","sourceRoot":"","sources":["../../../../src/cqrs/in-memory/in-memory-query-bus.ts"],"names":[],"mappings":";;;AAAA,2BAAwE;AAExE,MAAa,gBAAgB;IACV,QAAQ,GAAG,IAAI,GAAG,EAAwB,CAAC;IAE5D,QAAQ,CAAqB,IAAY,EAAE,OAA2B;QACpE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAqB,KAAQ;QACzC,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,CAAmC,CAAC;QAErF,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,sBAAkB,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QAChD,CAAC;QAED,OAAO,MAAM,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;CACF;AAhBD,4CAgBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/cqrs/command.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/cqrs/command.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,OAAO,IAAI,MAAM,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/cqrs/query.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/cqrs/query.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,OAAO,IAAI,MAAM,CAAC;CACnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schorts/shared-kernel",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.4",
|
|
4
4
|
"description": "A modular, type-safe foundation for building expressive, maintainable applications. This package provides core abstractions for domain modeling, HTTP integration, authentication, state management, and more — designed to be framework-agnostic and highly extensible.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|