@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.d.mts
CHANGED
|
@@ -896,4 +896,4 @@ declare class SignalTask extends Task {
|
|
|
896
896
|
constructor(signal: string, description?: string);
|
|
897
897
|
}
|
|
898
898
|
|
|
899
|
-
export { type AnyObject, DebounceTask, EphemeralTask, GraphContext, GraphRegistry, GraphRoutine, GraphRun, type SchemaConstraints, type SchemaDefinition, type SchemaType, SignalEmitter, SignalParticipant, SignalTask, Task, type TaskOptions, type TaskResult, type ThrottleTagGetter, Cadenza as default };
|
|
899
|
+
export { type AnyObject, type CadenzaMode, type DebounceOptions, DebounceTask, EphemeralTask, GraphContext, GraphRegistry, GraphRoutine, GraphRun, GraphRunner, type SchemaConstraints, type SchemaDefinition, type SchemaType, SignalBroker, SignalEmitter, SignalParticipant, SignalTask, Task, type TaskFunction, type TaskOptions, type TaskResult, type ThrottleTagGetter, Cadenza as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -896,4 +896,4 @@ declare class SignalTask extends Task {
|
|
|
896
896
|
constructor(signal: string, description?: string);
|
|
897
897
|
}
|
|
898
898
|
|
|
899
|
-
export { type AnyObject, DebounceTask, EphemeralTask, GraphContext, GraphRegistry, GraphRoutine, GraphRun, type SchemaConstraints, type SchemaDefinition, type SchemaType, SignalEmitter, SignalParticipant, SignalTask, Task, type TaskOptions, type TaskResult, type ThrottleTagGetter, Cadenza as default };
|
|
899
|
+
export { type AnyObject, type CadenzaMode, type DebounceOptions, DebounceTask, EphemeralTask, GraphContext, GraphRegistry, GraphRoutine, GraphRun, GraphRunner, type SchemaConstraints, type SchemaDefinition, type SchemaType, SignalBroker, SignalEmitter, SignalParticipant, SignalTask, Task, type TaskFunction, type TaskOptions, type TaskResult, type ThrottleTagGetter, Cadenza as default };
|
package/dist/index.js
CHANGED
|
@@ -26,6 +26,8 @@ __export(index_exports, {
|
|
|
26
26
|
GraphRegistry: () => GraphRegistry,
|
|
27
27
|
GraphRoutine: () => GraphRoutine,
|
|
28
28
|
GraphRun: () => GraphRun,
|
|
29
|
+
GraphRunner: () => GraphRunner,
|
|
30
|
+
SignalBroker: () => SignalBroker,
|
|
29
31
|
SignalEmitter: () => SignalEmitter,
|
|
30
32
|
SignalParticipant: () => SignalParticipant,
|
|
31
33
|
SignalTask: () => SignalTask,
|
|
@@ -58,17 +60,21 @@ var SignalBroker = class _SignalBroker {
|
|
|
58
60
|
}
|
|
59
61
|
sanitizeSignalName(signalName) {
|
|
60
62
|
if (signalName.length > 100) {
|
|
61
|
-
throw new Error(
|
|
63
|
+
throw new Error(
|
|
64
|
+
`Signal name must be less than 100 characters: ${signalName}`
|
|
65
|
+
);
|
|
62
66
|
}
|
|
63
67
|
if (signalName.includes(" ")) {
|
|
64
|
-
throw new Error(
|
|
68
|
+
throw new Error(`Signal name must not contain spaces: ${signalName}"`);
|
|
65
69
|
}
|
|
66
70
|
if (signalName.includes("\\")) {
|
|
67
|
-
throw new Error(
|
|
71
|
+
throw new Error(
|
|
72
|
+
`Signal name must not contain backslashes: ${signalName}`
|
|
73
|
+
);
|
|
68
74
|
}
|
|
69
75
|
if (/[A-Z]/.test(signalName.split(".").slice(1).join("."))) {
|
|
70
76
|
throw new Error(
|
|
71
|
-
|
|
77
|
+
`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}`
|
|
72
78
|
);
|
|
73
79
|
}
|
|
74
80
|
}
|
|
@@ -3060,6 +3066,8 @@ var index_default = Cadenza;
|
|
|
3060
3066
|
GraphRegistry,
|
|
3061
3067
|
GraphRoutine,
|
|
3062
3068
|
GraphRun,
|
|
3069
|
+
GraphRunner,
|
|
3070
|
+
SignalBroker,
|
|
3063
3071
|
SignalEmitter,
|
|
3064
3072
|
SignalParticipant,
|
|
3065
3073
|
SignalTask,
|