@dudousxd/nestjs-durable-core 0.55.1 → 0.56.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 +0 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -17
- package/dist/index.d.ts +1 -17
- package/dist/index.js +0 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1204,17 +1204,6 @@ var TransportPool = class {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
return void 0;
|
|
1206
1206
|
}
|
|
1207
|
-
/**
|
|
1208
|
-
* Propagate the engine's `namespace` to every transport that partitions by it — so the same
|
|
1209
|
-
* namespace that scopes the store also scopes each transport's queues/keys. A transport that
|
|
1210
|
-
* doesn't partition (no `useNamespace`) is skipped. Idempotent; a transport given an explicit
|
|
1211
|
-
* namespace at construction ignores this (see {@link Transport.useNamespace}).
|
|
1212
|
-
*/
|
|
1213
|
-
useNamespace(namespace) {
|
|
1214
|
-
for (const { transport } of this.transports) {
|
|
1215
|
-
transport.useNamespace?.(namespace);
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
1207
|
/** Pinned `preferId` first, then the rest (failover order). */
|
|
1219
1208
|
ordered(preferId) {
|
|
1220
1209
|
if (!preferId) return this.transports;
|
|
@@ -2036,9 +2025,6 @@ var WorkflowEngine = class {
|
|
|
2036
2025
|
this.admission.onFreed?.((queue) => this.wakeQueueWaiters(queue));
|
|
2037
2026
|
this.instanceId = deps.instanceId ?? globalThis.crypto.randomUUID();
|
|
2038
2027
|
this.namespace = deps.namespace;
|
|
2039
|
-
if (this.namespace !== void 0) {
|
|
2040
|
-
this.pool.useNamespace(this.namespace);
|
|
2041
|
-
}
|
|
2042
2028
|
this.leaseMs = deps.leaseMs ?? 3e4;
|
|
2043
2029
|
this.maxRecoveryAttempts = deps.maxRecoveryAttempts;
|
|
2044
2030
|
this.remoteAdvanceSilenceMs = deps.remoteAdvanceSilenceMs;
|