mol_wire_lib 1.0.439 → 1.0.440
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 +8 -8
- package/node.deps.json +1 -1
- package/node.esm.js +43 -39
- package/node.esm.js.map +1 -1
- package/node.js +43 -39
- package/node.js.map +1 -1
- package/node.test.js +43 -39
- package/node.test.js.map +1 -1
- package/package.json +4 -4
- package/web.d.ts +8 -8
- package/web.deps.json +1 -1
- package/web.esm.js +43 -39
- package/web.esm.js.map +1 -1
- package/web.js +43 -39
- package/web.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -1039,6 +1039,39 @@ var $;
|
|
|
1039
1039
|
;
|
|
1040
1040
|
"use strict";
|
|
1041
1041
|
var $;
|
|
1042
|
+
(function ($) {
|
|
1043
|
+
const cacthed = new WeakMap();
|
|
1044
|
+
function $mol_fail_catch(error) {
|
|
1045
|
+
if (typeof error !== 'object')
|
|
1046
|
+
return false;
|
|
1047
|
+
if (error instanceof Promise)
|
|
1048
|
+
$mol_fail_hidden(error);
|
|
1049
|
+
if (cacthed.get(error))
|
|
1050
|
+
return false;
|
|
1051
|
+
cacthed.set(error, true);
|
|
1052
|
+
return true;
|
|
1053
|
+
}
|
|
1054
|
+
$.$mol_fail_catch = $mol_fail_catch;
|
|
1055
|
+
})($ || ($ = {}));
|
|
1056
|
+
//mol/fail/catch/catch.ts
|
|
1057
|
+
;
|
|
1058
|
+
"use strict";
|
|
1059
|
+
var $;
|
|
1060
|
+
(function ($) {
|
|
1061
|
+
function $mol_fail_log(error) {
|
|
1062
|
+
if (error instanceof Promise)
|
|
1063
|
+
return false;
|
|
1064
|
+
if (!$mol_fail_catch(error))
|
|
1065
|
+
return false;
|
|
1066
|
+
console.error(error);
|
|
1067
|
+
return true;
|
|
1068
|
+
}
|
|
1069
|
+
$.$mol_fail_log = $mol_fail_log;
|
|
1070
|
+
})($ || ($ = {}));
|
|
1071
|
+
//mol/fail/log/log.ts
|
|
1072
|
+
;
|
|
1073
|
+
"use strict";
|
|
1074
|
+
var $;
|
|
1042
1075
|
(function ($) {
|
|
1043
1076
|
class $mol_wire_atom extends $mol_wire_fiber {
|
|
1044
1077
|
static solo(host, task) {
|
|
@@ -1122,7 +1155,14 @@ var $;
|
|
|
1122
1155
|
}
|
|
1123
1156
|
put(next) {
|
|
1124
1157
|
const prev = this.cache;
|
|
1125
|
-
if (next !== prev) {
|
|
1158
|
+
update: if (next !== prev) {
|
|
1159
|
+
try {
|
|
1160
|
+
if ($mol_compare_deep(prev, next))
|
|
1161
|
+
break update;
|
|
1162
|
+
}
|
|
1163
|
+
catch (error) {
|
|
1164
|
+
$mol_fail_log(error);
|
|
1165
|
+
}
|
|
1126
1166
|
if ($mol_owning_check(this, prev)) {
|
|
1127
1167
|
prev.destructor();
|
|
1128
1168
|
}
|
|
@@ -1135,11 +1175,8 @@ var $;
|
|
|
1135
1175
|
Object.defineProperty(next, Symbol.toStringTag, { value: this[Symbol.toStringTag] });
|
|
1136
1176
|
}
|
|
1137
1177
|
}
|
|
1138
|
-
if (this.
|
|
1139
|
-
|
|
1140
|
-
this.emit();
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1178
|
+
if (!this.sub_empty)
|
|
1179
|
+
this.emit();
|
|
1143
1180
|
}
|
|
1144
1181
|
this.cursor = $mol_wire_cursor.fresh;
|
|
1145
1182
|
if (next instanceof Promise)
|
|
@@ -2131,39 +2168,6 @@ var $;
|
|
|
2131
2168
|
;
|
|
2132
2169
|
"use strict";
|
|
2133
2170
|
var $;
|
|
2134
|
-
(function ($) {
|
|
2135
|
-
const cacthed = new WeakMap();
|
|
2136
|
-
function $mol_fail_catch(error) {
|
|
2137
|
-
if (typeof error !== 'object')
|
|
2138
|
-
return false;
|
|
2139
|
-
if (error instanceof Promise)
|
|
2140
|
-
$mol_fail_hidden(error);
|
|
2141
|
-
if (cacthed.get(error))
|
|
2142
|
-
return false;
|
|
2143
|
-
cacthed.set(error, true);
|
|
2144
|
-
return true;
|
|
2145
|
-
}
|
|
2146
|
-
$.$mol_fail_catch = $mol_fail_catch;
|
|
2147
|
-
})($ || ($ = {}));
|
|
2148
|
-
//mol/fail/catch/catch.ts
|
|
2149
|
-
;
|
|
2150
|
-
"use strict";
|
|
2151
|
-
var $;
|
|
2152
|
-
(function ($) {
|
|
2153
|
-
function $mol_fail_log(error) {
|
|
2154
|
-
if (error instanceof Promise)
|
|
2155
|
-
return false;
|
|
2156
|
-
if (!$mol_fail_catch(error))
|
|
2157
|
-
return false;
|
|
2158
|
-
console.error(error);
|
|
2159
|
-
return true;
|
|
2160
|
-
}
|
|
2161
|
-
$.$mol_fail_log = $mol_fail_log;
|
|
2162
|
-
})($ || ($ = {}));
|
|
2163
|
-
//mol/fail/log/log.ts
|
|
2164
|
-
;
|
|
2165
|
-
"use strict";
|
|
2166
|
-
var $;
|
|
2167
2171
|
(function ($) {
|
|
2168
2172
|
class $mol_wire_log extends $mol_object2 {
|
|
2169
2173
|
static watch(task) {
|