@dudousxd/nestjs-durable 0.66.0 → 0.67.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.js CHANGED
@@ -1578,7 +1578,12 @@ function thinWorkerProviders() {
1578
1578
  // optional `@dudousxd/durable-worker` peer, so an operator that never runs a worker must not
1579
1579
  // reach this branch at all.
1580
1580
  useFactory: /* @__PURE__ */ __name((options) => isPureThinWorker(options) ? createWorkerRuntime({
1581
- workflowGroup: options.partition ?? ""
1581
+ workflowGroup: options.partition ?? "",
1582
+ // The worker unwinds a failed turn's `localStep` undos itself, so it takes the
1583
+ // module's `compensationRetries` as the engine does.
1584
+ ...options.compensationRetries !== void 0 ? {
1585
+ compensationRetries: options.compensationRetries
1586
+ } : {}
1582
1587
  }) : null, "useFactory"),
1583
1588
  inject: [
1584
1589
  DURABLE_OPTIONS_CANONICAL
@@ -1879,7 +1884,12 @@ function inAppWorkerProviders() {
1879
1884
  // optional `@dudousxd/durable-worker` peer, so an operator that never runs a worker must not
1880
1885
  // reach this branch at all.
1881
1886
  useFactory: /* @__PURE__ */ __name((options) => isCoLocatedWorker(options) ? createWorkerRuntime({
1882
- workflowGroup: options.partition ?? ""
1887
+ workflowGroup: options.partition ?? "",
1888
+ // The worker unwinds a failed turn's `localStep` undos itself, so it takes the
1889
+ // module's `compensationRetries` as the engine does.
1890
+ ...options.compensationRetries !== void 0 ? {
1891
+ compensationRetries: options.compensationRetries
1892
+ } : {}
1883
1893
  }) : null, "useFactory"),
1884
1894
  inject: [
1885
1895
  DURABLE_OPTIONS_CANONICAL3