@cadenza.io/core 1.7.2 → 1.7.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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -22,17 +22,21 @@ var SignalBroker = class _SignalBroker {
|
|
|
22
22
|
}
|
|
23
23
|
sanitizeSignalName(signalName) {
|
|
24
24
|
if (signalName.length > 100) {
|
|
25
|
-
throw new Error(
|
|
25
|
+
throw new Error(
|
|
26
|
+
`Signal name must be less than 100 characters: ${signalName}`
|
|
27
|
+
);
|
|
26
28
|
}
|
|
27
29
|
if (signalName.includes(" ")) {
|
|
28
|
-
throw new Error(
|
|
30
|
+
throw new Error(`Signal name must not contain spaces: ${signalName}"`);
|
|
29
31
|
}
|
|
30
32
|
if (signalName.includes("\\")) {
|
|
31
|
-
throw new Error(
|
|
33
|
+
throw new Error(
|
|
34
|
+
`Signal name must not contain backslashes: ${signalName}`
|
|
35
|
+
);
|
|
32
36
|
}
|
|
33
37
|
if (/[A-Z]/.test(signalName.split(".").slice(1).join("."))) {
|
|
34
38
|
throw new Error(
|
|
35
|
-
|
|
39
|
+
`Signal name must not contain uppercase letters in the middle of the signal name. It is only allowed in the first part of the signal name: ${signalName}`
|
|
36
40
|
);
|
|
37
41
|
}
|
|
38
42
|
}
|
|
@@ -3023,6 +3027,8 @@ export {
|
|
|
3023
3027
|
GraphRegistry,
|
|
3024
3028
|
GraphRoutine,
|
|
3025
3029
|
GraphRun,
|
|
3030
|
+
GraphRunner,
|
|
3031
|
+
SignalBroker,
|
|
3026
3032
|
SignalEmitter,
|
|
3027
3033
|
SignalParticipant,
|
|
3028
3034
|
SignalTask,
|