@dudousxd/nestjs-durable 0.34.1 → 0.34.2

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 CHANGED
@@ -1854,8 +1854,8 @@ function assertValidRole(options) {
1854
1854
  if (!hasStore && !hasConnection) {
1855
1855
  throw new Error("a durable module needs either a `store` (operator) or a `connection` (worker)");
1856
1856
  }
1857
- if (hasStore && options.transport === void 0) {
1858
- throw new Error("an operator (`store`) needs a `transport`");
1857
+ if (hasStore && options.transport === void 0 && options.transports === void 0) {
1858
+ throw new Error("an operator (`store`) needs a `transport` (or `transports`)");
1859
1859
  }
1860
1860
  }
1861
1861
  __name(assertValidRole, "assertValidRole");