mol_jsx_lib 0.0.299 → 0.0.301

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.js CHANGED
@@ -1776,6 +1776,12 @@ var $;
1776
1776
  //mol/wire/method/method.ts
1777
1777
  ;
1778
1778
  "use strict";
1779
+ //mol/type/tail/tail.ts
1780
+ ;
1781
+ "use strict";
1782
+ //mol/type/foot/foot.ts
1783
+ ;
1784
+ "use strict";
1779
1785
  var $;
1780
1786
  (function ($) {
1781
1787
  class $mol_wire_atom extends $mol_wire_fiber {
@@ -1829,6 +1835,20 @@ var $;
1829
1835
  once() {
1830
1836
  return this.sync();
1831
1837
  }
1838
+ channel() {
1839
+ return Object.assign((next) => {
1840
+ if (next !== undefined)
1841
+ return this.resync([...this.args, next]);
1842
+ if (!$mol_wire_fiber.warm)
1843
+ return this.result();
1844
+ if ($mol_wire_auto() instanceof $mol_wire_task) {
1845
+ return this.once();
1846
+ }
1847
+ else {
1848
+ return this.sync();
1849
+ }
1850
+ }, { atom: this });
1851
+ }
1832
1852
  destructor() {
1833
1853
  super.destructor();
1834
1854
  const prev = this.cache;
@@ -1917,9 +1937,6 @@ var $;
1917
1937
  //mol/wire/field/field.ts
1918
1938
  ;
1919
1939
  "use strict";
1920
- //mol/type/tail/tail.ts
1921
- ;
1922
- "use strict";
1923
1940
  var $;
1924
1941
  (function ($) {
1925
1942
  function $mol_wire_solo(host, field, descr) {
@@ -2274,6 +2291,22 @@ var $;
2274
2291
  //mol/wire/patch/patch.ts
2275
2292
  ;
2276
2293
  "use strict";
2294
+ //mol/type/result/result.ts
2295
+ ;
2296
+ "use strict";
2297
+ var $;
2298
+ (function ($) {
2299
+ function $mol_wire_let(host) {
2300
+ for (const field of Object.keys(host)) {
2301
+ host[field] = new $mol_wire_atom(field, host[field], host).channel();
2302
+ }
2303
+ return host;
2304
+ }
2305
+ $.$mol_wire_let = $mol_wire_let;
2306
+ })($ || ($ = {}));
2307
+ //mol/wire/let/let.ts
2308
+ ;
2309
+ "use strict";
2277
2310
  var $;
2278
2311
  (function ($) {
2279
2312
  class $mol_wire_set extends Set {