mol_wire_lib 1.0.591 → 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.d.ts +1 -1
- package/node.deps.json +1 -1
- package/node.js +5 -2
- package/node.js.map +1 -1
- package/node.mjs +5 -2
- package/node.mjs.map +1 -1
- package/node.test.js +5 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +1 -1
- package/web.deps.json +1 -1
- package/web.js +5 -2
- package/web.js.map +1 -1
- package/web.mjs +5 -2
- package/web.mjs.map +1 -1
package/node.test.js
CHANGED
|
@@ -1235,11 +1235,14 @@ var $;
|
|
|
1235
1235
|
"use strict";
|
|
1236
1236
|
var $;
|
|
1237
1237
|
(function ($) {
|
|
1238
|
-
function $mol_wire_probe(task,
|
|
1238
|
+
function $mol_wire_probe(task, def) {
|
|
1239
1239
|
const warm = $mol_wire_fiber.warm;
|
|
1240
1240
|
try {
|
|
1241
1241
|
$mol_wire_fiber.warm = false;
|
|
1242
|
-
|
|
1242
|
+
const res = task();
|
|
1243
|
+
if (res === undefined)
|
|
1244
|
+
return def;
|
|
1245
|
+
return res;
|
|
1243
1246
|
}
|
|
1244
1247
|
finally {
|
|
1245
1248
|
$mol_wire_fiber.warm = warm;
|