hyoo_sync_client 0.0.50 → 0.0.52
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 +2 -2
- package/node.deps.json +1 -1
- package/node.js +7 -5
- package/node.js.map +1 -1
- package/node.mjs +7 -5
- package/node.mjs.map +1 -1
- package/node.test.js +13 -6
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +2 -2
- package/web.deps.json +1 -1
- package/web.js +7 -5
- package/web.js.map +1 -1
- package/web.mjs +7 -5
- package/web.mjs.map +1 -1
- package/web.test.js +6 -1
- package/web.test.js.map +1 -1
package/node.mjs
CHANGED
|
@@ -32,7 +32,7 @@ $.$$ = $
|
|
|
32
32
|
//hyoo/hyoo.ts
|
|
33
33
|
;
|
|
34
34
|
"use strict";
|
|
35
|
-
let $hyoo_sync_revision = "
|
|
35
|
+
let $hyoo_sync_revision = "3406820";
|
|
36
36
|
//hyoo/sync/-meta.tree/revision.meta.tree.ts
|
|
37
37
|
;
|
|
38
38
|
"use strict";
|
|
@@ -2074,6 +2074,8 @@ var $;
|
|
|
2074
2074
|
result = compare_map(left, right);
|
|
2075
2075
|
else if (ArrayBuffer.isView(left))
|
|
2076
2076
|
result = compare_buffer(left, right);
|
|
2077
|
+
else if (Symbol.iterator in left)
|
|
2078
|
+
result = compare_iterator(left[Symbol.iterator](), right[Symbol.iterator]());
|
|
2077
2079
|
else if (Symbol.toPrimitive in left)
|
|
2078
2080
|
result = compare_primitive(left, right);
|
|
2079
2081
|
else
|
|
@@ -2600,8 +2602,8 @@ var $;
|
|
|
2600
2602
|
"use strict";
|
|
2601
2603
|
var $;
|
|
2602
2604
|
(function ($) {
|
|
2603
|
-
async function $hyoo_sync_peer(path) {
|
|
2604
|
-
let serial = $mol_state_local.value('$hyoo_sync_peer');
|
|
2605
|
+
async function $hyoo_sync_peer(path, next) {
|
|
2606
|
+
let serial = $mol_state_local.value('$hyoo_sync_peer', next);
|
|
2605
2607
|
if (typeof serial === 'string') {
|
|
2606
2608
|
return await $hyoo_crowd_peer.restore(serial);
|
|
2607
2609
|
}
|
|
@@ -3719,8 +3721,8 @@ var $;
|
|
|
3719
3721
|
log_pack(data) {
|
|
3720
3722
|
return data;
|
|
3721
3723
|
}
|
|
3722
|
-
peer() {
|
|
3723
|
-
return $mol_wire_sync($hyoo_sync_peer)(this + '.peer()');
|
|
3724
|
+
peer(next) {
|
|
3725
|
+
return $mol_wire_sync($hyoo_sync_peer)(this + '.peer()', next);
|
|
3724
3726
|
}
|
|
3725
3727
|
world() {
|
|
3726
3728
|
$mol_wire_solid();
|