@dudousxd/nestjs-durable 0.40.0 → 0.41.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 +18 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -488,7 +488,15 @@ var ThinWorkflowRegistrar = class {
|
|
|
488
488
|
}
|
|
489
489
|
onModuleInit() {
|
|
490
490
|
if (!isPureThinWorker(this.options)) return;
|
|
491
|
-
scanWorkflows(this.discovery, (meta, instance) => this.runtime.registerWorkflow(meta.name, (ctx, input) => instance.run(ctx, input)
|
|
491
|
+
scanWorkflows(this.discovery, (meta, instance, origin) => this.runtime.registerWorkflow(meta.name, (ctx, input) => instance.run(ctx, input), {
|
|
492
|
+
version: meta.version,
|
|
493
|
+
...meta.requires !== void 0 ? {
|
|
494
|
+
requires: meta.requires
|
|
495
|
+
} : {},
|
|
496
|
+
...origin !== void 0 ? {
|
|
497
|
+
origin
|
|
498
|
+
} : {}
|
|
499
|
+
}));
|
|
492
500
|
}
|
|
493
501
|
};
|
|
494
502
|
ThinWorkflowRegistrar = _ts_decorate2([
|
|
@@ -882,7 +890,15 @@ var InAppWorkerBootstrap = class {
|
|
|
882
890
|
}
|
|
883
891
|
onModuleInit() {
|
|
884
892
|
if (!isCoLocatedWorker(this.options)) return;
|
|
885
|
-
scanWorkflows(this.discovery, (meta, instance) => this.runtime.registerWorkflow(meta.name, (ctx, input) => instance.run(ctx, input)
|
|
893
|
+
scanWorkflows(this.discovery, (meta, instance, origin) => this.runtime.registerWorkflow(meta.name, (ctx, input) => instance.run(ctx, input), {
|
|
894
|
+
version: meta.version,
|
|
895
|
+
...meta.requires !== void 0 ? {
|
|
896
|
+
requires: meta.requires
|
|
897
|
+
} : {},
|
|
898
|
+
...origin !== void 0 ? {
|
|
899
|
+
origin
|
|
900
|
+
} : {}
|
|
901
|
+
}));
|
|
886
902
|
scanSteps(this.discovery, this.metadataScanner, (meta, handler) => this.runtime.registerStep(meta.name, handler));
|
|
887
903
|
}
|
|
888
904
|
async onApplicationBootstrap() {
|