@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.cjs +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1690,7 +1690,12 @@ function thinWorkerProviders() {
|
|
|
1690
1690
|
// optional `@dudousxd/durable-worker` peer, so an operator that never runs a worker must not
|
|
1691
1691
|
// reach this branch at all.
|
|
1692
1692
|
useFactory: /* @__PURE__ */ __name((options) => isPureThinWorker(options) ? createWorkerRuntime({
|
|
1693
|
-
workflowGroup: options.partition ?? ""
|
|
1693
|
+
workflowGroup: options.partition ?? "",
|
|
1694
|
+
// The worker unwinds a failed turn's `localStep` undos itself, so it takes the
|
|
1695
|
+
// module's `compensationRetries` as the engine does.
|
|
1696
|
+
...options.compensationRetries !== void 0 ? {
|
|
1697
|
+
compensationRetries: options.compensationRetries
|
|
1698
|
+
} : {}
|
|
1694
1699
|
}) : null, "useFactory"),
|
|
1695
1700
|
inject: [
|
|
1696
1701
|
import_nestjs_durable_core9.DURABLE_OPTIONS_CANONICAL
|
|
@@ -1991,7 +1996,12 @@ function inAppWorkerProviders() {
|
|
|
1991
1996
|
// optional `@dudousxd/durable-worker` peer, so an operator that never runs a worker must not
|
|
1992
1997
|
// reach this branch at all.
|
|
1993
1998
|
useFactory: /* @__PURE__ */ __name((options) => isCoLocatedWorker(options) ? createWorkerRuntime({
|
|
1994
|
-
workflowGroup: options.partition ?? ""
|
|
1999
|
+
workflowGroup: options.partition ?? "",
|
|
2000
|
+
// The worker unwinds a failed turn's `localStep` undos itself, so it takes the
|
|
2001
|
+
// module's `compensationRetries` as the engine does.
|
|
2002
|
+
...options.compensationRetries !== void 0 ? {
|
|
2003
|
+
compensationRetries: options.compensationRetries
|
|
2004
|
+
} : {}
|
|
1995
2005
|
}) : null, "useFactory"),
|
|
1996
2006
|
inject: [
|
|
1997
2007
|
import_nestjs_durable_core11.DURABLE_OPTIONS_CANONICAL
|