mol_wire_lib 1.0.592 → 1.0.593

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.mjs CHANGED
@@ -1243,11 +1243,14 @@ var $;
1243
1243
  "use strict";
1244
1244
  var $;
1245
1245
  (function ($) {
1246
- function $mol_wire_probe(task, next) {
1246
+ function $mol_wire_probe(task, def) {
1247
1247
  const warm = $mol_wire_fiber.warm;
1248
1248
  try {
1249
1249
  $mol_wire_fiber.warm = false;
1250
- return task();
1250
+ const res = task();
1251
+ if (res === undefined)
1252
+ return def;
1253
+ return res;
1251
1254
  }
1252
1255
  finally {
1253
1256
  $mol_wire_fiber.warm = warm;