@rotorsoft/act 1.23.21 → 1.23.23

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.
@@ -963,7 +963,7 @@ var InMemoryStore = class {
963
963
  await sleep();
964
964
  let count = 0;
965
965
  if (Array.isArray(input)) {
966
- for (const name of input) {
966
+ for (const name of new Set(input)) {
967
967
  const s = this._streams.get(name);
968
968
  if (s) {
969
969
  s.defer(deferred_at);
@@ -1017,7 +1017,7 @@ var InMemoryStore = class {
1017
1017
  await sleep();
1018
1018
  let count = 0;
1019
1019
  if (Array.isArray(input)) {
1020
- for (const name of input) {
1020
+ for (const name of new Set(input)) {
1021
1021
  const s = this._streams.get(name);
1022
1022
  if (s) {
1023
1023
  s.reset();
@@ -1222,7 +1222,7 @@ var InMemoryStore = class {
1222
1222
  a.names[n] = (a.names[n] ?? 0) + 1;
1223
1223
  }
1224
1224
  }
1225
- const ordered = [...acc.keys()].sort((x, y) => x.localeCompare(y));
1225
+ const ordered = [...acc.keys()].sort();
1226
1226
  const out = /* @__PURE__ */ new Map();
1227
1227
  for (const stream of ordered) {
1228
1228
  if (after !== void 0 && stream <= after) continue;