@foblex/m-render 2.8.0 → 2.8.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.
|
@@ -1520,8 +1520,8 @@ class Mediatr {
|
|
|
1520
1520
|
_injector = inject(Injector);
|
|
1521
1521
|
static _executions = new Map();
|
|
1522
1522
|
static register(type, handler) {
|
|
1523
|
-
if (!type
|
|
1524
|
-
throw new Error('Type must have static
|
|
1523
|
+
if (!type || !type.requestToken) {
|
|
1524
|
+
throw new Error('Type must have a fToken static property: ' + JSON.stringify(type));
|
|
1525
1525
|
}
|
|
1526
1526
|
Mediatr._executions.set(type?.requestToken, handler);
|
|
1527
1527
|
}
|