@rotorsoft/act 1.23.14 → 1.23.15

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
@@ -4049,8 +4049,13 @@ var Act = class {
4049
4049
  * @param options - Query window + per-category thresholds.
4050
4050
  * @returns Async iterable of {@link AuditFinding}.
4051
4051
  */
4052
- audit(categories, options) {
4053
- return audit(this._audit_deps, categories, options);
4052
+ async *audit(categories, options) {
4053
+ const it = audit(this._audit_deps, categories, options)[Symbol.asyncIterator]();
4054
+ while (true) {
4055
+ const { value, done } = await this._scoped(() => it.next());
4056
+ if (done) break;
4057
+ yield value;
4058
+ }
4054
4059
  }
4055
4060
  /**
4056
4061
  * Bulk-update scheduling priority for streams matching `filter`.