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 +1 -1
- package/node.js +1 -1
- package/node.js.map +1 -1
- package/node.mjs +1 -1
- package/node.mjs.map +1 -1
- package/node.test.js +1 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +1 -1
- package/web.js +1 -1
- package/web.js.map +1 -1
- package/web.mjs +1 -1
- package/web.mjs.map +1 -1
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,
|
|
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
|
|
920
|
+
if (!(existen.constructor.name === '$mol_wire_task'))
|
|
921
921
|
break reuse;
|
|
922
922
|
if (existen.host !== host)
|
|
923
923
|
break reuse;
|