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/web.mjs CHANGED
@@ -1249,11 +1249,14 @@ var $;
1249
1249
  "use strict";
1250
1250
  var $;
1251
1251
  (function ($) {
1252
- function $mol_wire_probe(task, next) {
1252
+ function $mol_wire_probe(task, def) {
1253
1253
  const warm = $mol_wire_fiber.warm;
1254
1254
  try {
1255
1255
  $mol_wire_fiber.warm = false;
1256
- return task();
1256
+ const res = task();
1257
+ if (res === undefined)
1258
+ return def;
1259
+ return res;
1257
1260
  }
1258
1261
  finally {
1259
1262
  $mol_wire_fiber.warm = warm;