@dudousxd/nestjs-durable 0.36.0 → 0.37.0
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.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -96,7 +96,8 @@ function Workflow(options) {
|
|
|
96
96
|
searchAttributes: options.searchAttributes,
|
|
97
97
|
onEvent: options.onEvent,
|
|
98
98
|
debounce: options.debounce,
|
|
99
|
-
batch: options.batch
|
|
99
|
+
batch: options.batch,
|
|
100
|
+
requires: options.requires
|
|
100
101
|
};
|
|
101
102
|
Reflect.defineMetadata(WORKFLOW_METADATA, meta, target);
|
|
102
103
|
Object.defineProperty(target, import_nestjs_durable_core.WORKFLOW_NAME_KEY, {
|
|
@@ -118,7 +119,8 @@ function stepConfigFrom(options) {
|
|
|
118
119
|
backoffMs: options.backoffMs,
|
|
119
120
|
backoffMaxMs: options.backoffMaxMs,
|
|
120
121
|
jitter: options.jitter,
|
|
121
|
-
timeoutMs: options.timeoutMs
|
|
122
|
+
timeoutMs: options.timeoutMs,
|
|
123
|
+
requires: options.requires
|
|
122
124
|
};
|
|
123
125
|
const hasAnyField = Object.values(config).some((value) => value !== void 0);
|
|
124
126
|
return hasAnyField ? config : void 0;
|
|
@@ -1621,6 +1623,7 @@ var WorkflowRegistrar = class {
|
|
|
1621
1623
|
tags: meta.tags,
|
|
1622
1624
|
singleton: meta.singleton,
|
|
1623
1625
|
executionTimeout: meta.executionTimeout,
|
|
1626
|
+
requires: meta.requires,
|
|
1624
1627
|
validateInput,
|
|
1625
1628
|
searchAttributesSchema: meta.searchAttributes,
|
|
1626
1629
|
onEvent: getOnEvents(meta, workflowCtor),
|