mol_plot_all 1.2.863 → 1.2.865
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 +15 -8
- package/node.js.map +1 -1
- package/node.mjs +15 -8
- package/node.test.js +15 -8
- 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 +15 -8
- package/web.js.map +1 -1
- package/web.mjs +15 -8
package/web.js
CHANGED
|
@@ -399,9 +399,6 @@ var $;
|
|
|
399
399
|
function $mol_dev_format_auto(obj) {
|
|
400
400
|
if (obj == null)
|
|
401
401
|
return $.$mol_dev_format_shade(String(obj));
|
|
402
|
-
if (typeof obj === 'object' && $.$mol_dev_format_head in obj) {
|
|
403
|
-
return obj[$.$mol_dev_format_head]();
|
|
404
|
-
}
|
|
405
402
|
return [
|
|
406
403
|
'object',
|
|
407
404
|
{
|
|
@@ -741,7 +738,12 @@ var $;
|
|
|
741
738
|
[$mol_wire_cursor.fresh]: '🟢',
|
|
742
739
|
[$mol_wire_cursor.final]: '🔵',
|
|
743
740
|
}[this.cursor] ?? this.cursor.toString();
|
|
744
|
-
return $mol_dev_format_div({}, $
|
|
741
|
+
return $mol_dev_format_div({}, $mol_owning_check(this, this.cache)
|
|
742
|
+
? $mol_dev_format_auto({
|
|
743
|
+
[$mol_dev_format_head]: () => $mol_dev_format_shade(cursor),
|
|
744
|
+
[$mol_dev_format_body]: () => $mol_dev_format_native(this),
|
|
745
|
+
})
|
|
746
|
+
: $mol_dev_format_shade($mol_dev_format_native(this), cursor), $mol_dev_format_auto(this.cache));
|
|
745
747
|
}
|
|
746
748
|
get $() {
|
|
747
749
|
return (this.host ?? this.task)['$'];
|
|
@@ -889,6 +891,8 @@ var $;
|
|
|
889
891
|
function $mol_key(value) {
|
|
890
892
|
if (typeof value === 'bigint')
|
|
891
893
|
return value.toString() + 'n';
|
|
894
|
+
if (typeof value === 'symbol')
|
|
895
|
+
return value.description;
|
|
892
896
|
if (!value)
|
|
893
897
|
return JSON.stringify(value);
|
|
894
898
|
if (typeof value !== 'object' && typeof value !== 'function')
|
|
@@ -896,6 +900,8 @@ var $;
|
|
|
896
900
|
return JSON.stringify(value, (field, value) => {
|
|
897
901
|
if (typeof value === 'bigint')
|
|
898
902
|
return value.toString() + 'n';
|
|
903
|
+
if (typeof value === 'symbol')
|
|
904
|
+
return value.description;
|
|
899
905
|
if (!value)
|
|
900
906
|
return value;
|
|
901
907
|
if (typeof value !== 'object' && typeof value !== 'function')
|
|
@@ -1265,17 +1271,18 @@ var $;
|
|
|
1265
1271
|
const field = task.name + '()';
|
|
1266
1272
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1267
1273
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1268
|
-
const
|
|
1274
|
+
const key_str = $mol_key(key);
|
|
1269
1275
|
if (dict) {
|
|
1270
|
-
const existen = dict.get(
|
|
1276
|
+
const existen = dict.get(key_str);
|
|
1271
1277
|
if (existen)
|
|
1272
1278
|
return existen;
|
|
1273
1279
|
}
|
|
1274
1280
|
else {
|
|
1275
1281
|
dict = (host ?? task)[field] = new Map();
|
|
1276
1282
|
}
|
|
1283
|
+
const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
|
|
1277
1284
|
const fiber = new $mol_wire_atom(id, task, host, [key]);
|
|
1278
|
-
dict.set(
|
|
1285
|
+
dict.set(key_str, fiber);
|
|
1279
1286
|
return fiber;
|
|
1280
1287
|
}
|
|
1281
1288
|
static watching = new Set();
|
|
@@ -1330,7 +1337,7 @@ var $;
|
|
|
1330
1337
|
}
|
|
1331
1338
|
else {
|
|
1332
1339
|
;
|
|
1333
|
-
(this.host ?? this.task)[this.field()].delete(this[
|
|
1340
|
+
(this.host ?? this.task)[this.field()].delete($mol_key(this.args[0]));
|
|
1334
1341
|
}
|
|
1335
1342
|
}
|
|
1336
1343
|
put(next) {
|