mol_wire_pub 1.0.45 → 1.0.48
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.deps.json +1 -1
- package/node.test.js +6 -6
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.test.js +6 -6
- package/web.test.js.map +1 -1
package/node.deps.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"files":["LICENSE","README.md","lang.lang.tree","mam.jam.js","mam.ts","package.json","sandbox.config.json","tsconfig.json","tsfmt.json","yarn.lock","mol/CNAME","mol/CODE_OF_CONDUCT.md","mol/CONTRIBUTING.md","mol/LICENSE","mol/index.html","mol/mol.meta.tree","mol/readme.md","mol/fail/fail.ts","mol/wire/cursor/cursor.ts","mol/wire/pub/pub.ts","mol/wire/sub/sub.ts","mol/wire/README.md","mol/wire/wire.ts"],"mods":{},"deps_in":{"mol/wire":{},"mol":{"mol/wire":-9007199254740991,"mol/fail":-9007199254740991},"":{"mol":-9007199254740991},"mol/wire/sub":{"mol/wire":-1},"mol/wire/pub":{"mol/wire/sub":-1},"mol/wire/cursor":{"mol/wire/sub":-2,"mol/wire/pub":-2},"mol/fail":{"mol/wire/pub":-4}},"deps_out":{"mol/wire/pub":{"mol/fail":-4,"mol/wire/cursor":-2},"mol/wire":{"mol":-9007199254740991,"mol/wire/sub":-1},"mol":{"":-9007199254740991},"mol/wire/sub":{"mol/wire/pub":-1,"mol/wire/cursor":-2},"mol/wire/cursor":{},"mol/fail":{"mol":-9007199254740991}},"sloc":{"LICENSE":113,"md":602,"tree":31,"js":10,"ts":170,"json":85,"lock":
|
|
1
|
+
{"files":["LICENSE","README.md","lang.lang.tree","mam.jam.js","mam.ts","package.json","sandbox.config.json","tsconfig.json","tsfmt.json","yarn.lock","mol/CNAME","mol/CODE_OF_CONDUCT.md","mol/CONTRIBUTING.md","mol/LICENSE","mol/index.html","mol/mol.meta.tree","mol/readme.md","mol/fail/fail.ts","mol/wire/cursor/cursor.ts","mol/wire/pub/pub.ts","mol/wire/sub/sub.ts","mol/wire/README.md","mol/wire/wire.ts"],"mods":{},"deps_in":{"mol/wire":{},"mol":{"mol/wire":-9007199254740991,"mol/fail":-9007199254740991},"":{"mol":-9007199254740991},"mol/wire/sub":{"mol/wire":-1},"mol/wire/pub":{"mol/wire/sub":-1},"mol/wire/cursor":{"mol/wire/sub":-2,"mol/wire/pub":-2},"mol/fail":{"mol/wire/pub":-4}},"deps_out":{"mol/wire/pub":{"mol/fail":-4,"mol/wire/cursor":-2},"mol/wire":{"mol":-9007199254740991,"mol/wire/sub":-1},"mol":{"":-9007199254740991},"mol/wire/sub":{"mol/wire/pub":-1,"mol/wire/cursor":-2},"mol/wire/cursor":{},"mol/fail":{"mol":-9007199254740991}},"sloc":{"LICENSE":113,"md":602,"tree":31,"js":10,"ts":170,"json":85,"lock":943,"CNAME":1,"html":1},"deps":{"mol/wire/pub":{"..":-9007199254740991,"/mol/wire/pub":-1,"/mol/wire/sub":-3,"/mol/fail":-4,"/mol/wire/auto":-3,"/mol/wire/cursor/stale":-2},"mol/wire":{"..":-9007199254740991,"/mol/wire/sub":-1,"/mol/wire/auto":-1,"/mol/wire/affected":-1},"mol":{"..":-9007199254740991},"":{},"mol/wire/sub":{"..":-9007199254740991,"/mol/wire/sub":-1,"/mol/wire/pub":-1,"/mol/wire/cursor":-2},"mol/wire/cursor":{"..":-9007199254740991,"/mol/wire/cursor":-1},"mol/fail":{"..":-9007199254740991,"/mol/fail":-1}}}
|
package/node.test.js
CHANGED
|
@@ -2467,8 +2467,8 @@ var $;
|
|
|
2467
2467
|
(function ($) {
|
|
2468
2468
|
const handled = new WeakSet();
|
|
2469
2469
|
class $mol_wire_fiber extends $mol_wire_pub_sub {
|
|
2470
|
-
host;
|
|
2471
2470
|
task;
|
|
2471
|
+
host;
|
|
2472
2472
|
static temp(host, task, ...args) {
|
|
2473
2473
|
const existen = $mol_wire_auto()?.track_next();
|
|
2474
2474
|
reuse: if (existen) {
|
|
@@ -2482,7 +2482,7 @@ var $;
|
|
|
2482
2482
|
break reuse;
|
|
2483
2483
|
return existen;
|
|
2484
2484
|
}
|
|
2485
|
-
return new this(
|
|
2485
|
+
return new this(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, ...args);
|
|
2486
2486
|
}
|
|
2487
2487
|
static persist(task, keys) {
|
|
2488
2488
|
const field = task.name + '()';
|
|
@@ -2499,7 +2499,7 @@ var $;
|
|
|
2499
2499
|
else {
|
|
2500
2500
|
dict = (host ?? task)[field] = new Map();
|
|
2501
2501
|
}
|
|
2502
|
-
fiber = new $mol_wire_fiber(
|
|
2502
|
+
fiber = new $mol_wire_fiber(key, task, host, ...args);
|
|
2503
2503
|
dict.set(key, fiber);
|
|
2504
2504
|
return fiber;
|
|
2505
2505
|
};
|
|
@@ -2510,7 +2510,7 @@ var $;
|
|
|
2510
2510
|
if (existen)
|
|
2511
2511
|
return existen;
|
|
2512
2512
|
const key = `${host?.[Symbol.toStringTag] ?? host}.${field}`;
|
|
2513
|
-
const fiber = new $mol_wire_fiber(
|
|
2513
|
+
const fiber = new $mol_wire_fiber(key, task, host, ...args);
|
|
2514
2514
|
(host ?? task)[field] = fiber;
|
|
2515
2515
|
return fiber;
|
|
2516
2516
|
};
|
|
@@ -2566,10 +2566,10 @@ var $;
|
|
|
2566
2566
|
field() {
|
|
2567
2567
|
return this.task.name + '()';
|
|
2568
2568
|
}
|
|
2569
|
-
constructor(
|
|
2569
|
+
constructor(id, task, host, ...args) {
|
|
2570
2570
|
super(...args, undefined, undefined);
|
|
2571
|
-
this.host = host;
|
|
2572
2571
|
this.task = task;
|
|
2572
|
+
this.host = host;
|
|
2573
2573
|
this.pop();
|
|
2574
2574
|
this.pop();
|
|
2575
2575
|
this.pub_from = this.sub_from = args.length;
|