mol_wire_lib 1.0.558 → 1.0.560

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/node.d.ts CHANGED
@@ -217,7 +217,7 @@ declare namespace $ {
217
217
 
218
218
  declare namespace $ {
219
219
  class $mol_wire_task<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
220
- static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result): (host: Host, args: Args) => $mol_wire_task<Host, [...Args], Result>;
220
+ static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result): (host: Host, args: Args) => $mol_wire_task<Host, Args, Result>;
221
221
  complete(): void;
222
222
  put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
223
223
  }
package/node.js CHANGED
@@ -917,7 +917,7 @@ var $;
917
917
  const sub = $mol_wire_auto();
918
918
  const existen = sub?.track_next();
919
919
  reuse: if (existen) {
920
- if (!(existen instanceof $mol_wire_task))
920
+ if (!(existen.constructor.name === '$mol_wire_task'))
921
921
  break reuse;
922
922
  if (existen.host !== host)
923
923
  break reuse;