hyoo_sync_client 0.0.295 → 0.0.296
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 +11 -8
- package/node.js.map +1 -1
- package/node.mjs +11 -8
- package/node.test.js +11 -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 +11 -8
- package/web.js.map +1 -1
- package/web.mjs +11 -8
package/web.mjs
CHANGED
|
@@ -706,9 +706,6 @@ var $;
|
|
|
706
706
|
function $mol_dev_format_auto(obj) {
|
|
707
707
|
if (obj == null)
|
|
708
708
|
return $.$mol_dev_format_shade(String(obj));
|
|
709
|
-
if (typeof obj === 'object' && $.$mol_dev_format_head in obj) {
|
|
710
|
-
return obj[$.$mol_dev_format_head]();
|
|
711
|
-
}
|
|
712
709
|
return [
|
|
713
710
|
'object',
|
|
714
711
|
{
|
|
@@ -1379,7 +1376,12 @@ var $;
|
|
|
1379
1376
|
[$mol_wire_cursor.fresh]: '🟢',
|
|
1380
1377
|
[$mol_wire_cursor.final]: '🔵',
|
|
1381
1378
|
}[this.cursor] ?? this.cursor.toString();
|
|
1382
|
-
return $mol_dev_format_div({}, $
|
|
1379
|
+
return $mol_dev_format_div({}, $mol_owning_check(this, this.cache)
|
|
1380
|
+
? $mol_dev_format_auto({
|
|
1381
|
+
[$mol_dev_format_head]: () => $mol_dev_format_shade(cursor),
|
|
1382
|
+
[$mol_dev_format_body]: () => $mol_dev_format_native(this),
|
|
1383
|
+
})
|
|
1384
|
+
: $mol_dev_format_shade($mol_dev_format_native(this), cursor), $mol_dev_format_auto(this.cache));
|
|
1383
1385
|
}
|
|
1384
1386
|
get $() {
|
|
1385
1387
|
return (this.host ?? this.task)['$'];
|
|
@@ -1903,17 +1905,18 @@ var $;
|
|
|
1903
1905
|
const field = task.name + '()';
|
|
1904
1906
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1905
1907
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1906
|
-
const
|
|
1908
|
+
const key_str = $mol_key(key);
|
|
1907
1909
|
if (dict) {
|
|
1908
|
-
const existen = dict.get(
|
|
1910
|
+
const existen = dict.get(key_str);
|
|
1909
1911
|
if (existen)
|
|
1910
1912
|
return existen;
|
|
1911
1913
|
}
|
|
1912
1914
|
else {
|
|
1913
1915
|
dict = (host ?? task)[field] = new Map();
|
|
1914
1916
|
}
|
|
1917
|
+
const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
|
|
1915
1918
|
const fiber = new $mol_wire_atom(id, task, host, [key]);
|
|
1916
|
-
dict.set(
|
|
1919
|
+
dict.set(key_str, fiber);
|
|
1917
1920
|
return fiber;
|
|
1918
1921
|
}
|
|
1919
1922
|
static watching = new Set();
|
|
@@ -1968,7 +1971,7 @@ var $;
|
|
|
1968
1971
|
}
|
|
1969
1972
|
else {
|
|
1970
1973
|
;
|
|
1971
|
-
(this.host ?? this.task)[this.field()].delete(this[
|
|
1974
|
+
(this.host ?? this.task)[this.field()].delete($mol_key(this.args[0]));
|
|
1972
1975
|
}
|
|
1973
1976
|
}
|
|
1974
1977
|
put(next) {
|