hyoo_sync_client 0.0.17 → 0.0.19

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/web.test.js CHANGED
@@ -542,6 +542,261 @@ var $;
542
542
  ;
543
543
  "use strict";
544
544
  var $;
545
+ (function ($) {
546
+ $mol_test({
547
+ 'encode utf8 string'() {
548
+ const str = 'Hello, ΧΨΩЫ';
549
+ const encoded = new Uint8Array([72, 101, 108, 108, 111, 44, 32, 206, 167, 206, 168, 206, 169, 208, 171]);
550
+ $mol_assert_like($mol_charset_encode(str), encoded);
551
+ },
552
+ });
553
+ })($ || ($ = {}));
554
+ //mol/charset/encode/encode.test.ts
555
+ ;
556
+ "use strict";
557
+ var $;
558
+ (function ($) {
559
+ $mol_test({
560
+ 'config by value'() {
561
+ const N = $mol_data_setup((a) => a, 5);
562
+ $mol_assert_equal(N.config, 5);
563
+ },
564
+ });
565
+ })($ || ($ = {}));
566
+ //mol/data/setup/setup.test.ts
567
+ ;
568
+ "use strict";
569
+ var $;
570
+ (function ($) {
571
+ $mol_test({
572
+ 'equal paths'() {
573
+ const diff = $mol_diff_path([1, 2, 3, 4], [1, 2, 3, 4], [1, 2, 3, 4]);
574
+ $mol_assert_like(diff, {
575
+ prefix: [1, 2, 3, 4],
576
+ suffix: [[], [], []],
577
+ });
578
+ },
579
+ 'different suffix'() {
580
+ const diff = $mol_diff_path([1, 2, 3, 4], [1, 2, 3, 5], [1, 2, 5, 4]);
581
+ $mol_assert_like(diff, {
582
+ prefix: [1, 2],
583
+ suffix: [[3, 4], [3, 5], [5, 4]],
584
+ });
585
+ },
586
+ 'one contains other'() {
587
+ const diff = $mol_diff_path([1, 2, 3, 4], [1, 2], [1, 2, 3]);
588
+ $mol_assert_like(diff, {
589
+ prefix: [1, 2],
590
+ suffix: [[3, 4], [], [3]],
591
+ });
592
+ },
593
+ 'fully different'() {
594
+ const diff = $mol_diff_path([1, 2], [3, 4], [5, 6]);
595
+ $mol_assert_like(diff, {
596
+ prefix: [],
597
+ suffix: [[1, 2], [3, 4], [5, 6]],
598
+ });
599
+ },
600
+ });
601
+ })($ || ($ = {}));
602
+ //mol/diff/path/path.test.ts
603
+ ;
604
+ "use strict";
605
+ var $;
606
+ (function ($) {
607
+ let sex;
608
+ (function (sex) {
609
+ sex[sex["male"] = 0] = "male";
610
+ sex[sex["female"] = 1] = "female";
611
+ })(sex || (sex = {}));
612
+ let gender;
613
+ (function (gender) {
614
+ gender["bisexual"] = "bisexual";
615
+ gender["trans"] = "transgender";
616
+ })(gender || (gender = {}));
617
+ $mol_test({
618
+ 'config of enum'() {
619
+ const Sex = $mol_data_enum('sex', sex);
620
+ $mol_assert_like(Sex.config, {
621
+ name: 'sex',
622
+ dict: sex,
623
+ });
624
+ },
625
+ 'name of enum'() {
626
+ const Sex = $mol_data_enum('sex', sex);
627
+ $mol_assert_equal(Sex.config.name, 'sex');
628
+ },
629
+ 'Is right value of enum'() {
630
+ const Sex = $mol_data_enum('sex', sex);
631
+ $mol_assert_equal(Sex(0), sex.male);
632
+ },
633
+ 'Is wrong value of enum'() {
634
+ const Sex = $mol_data_enum('sex', sex);
635
+ $mol_assert_fail(() => Sex(2), `2 is not value of sex enum`);
636
+ },
637
+ 'Is name instead of value'() {
638
+ const Sex = $mol_data_enum('sex', sex);
639
+ $mol_assert_fail(() => Sex('male'), `male is not value of sex enum`);
640
+ },
641
+ 'Is common object field'() {
642
+ const Sex = $mol_data_enum('sex', sex);
643
+ $mol_assert_fail(() => Sex('__proto__'), `__proto__ is not value of sex enum`);
644
+ },
645
+ });
646
+ $mol_test({
647
+ 'config of enum'() {
648
+ const Gender = $mol_data_enum('gender', gender);
649
+ $mol_assert_like(Gender.config, {
650
+ name: 'gender',
651
+ dict: gender,
652
+ });
653
+ },
654
+ 'Is right value of enum'() {
655
+ const Gender = $mol_data_enum('gender', gender);
656
+ $mol_assert_equal(Gender('transgender'), gender.trans);
657
+ },
658
+ 'Is wrong value of enum'() {
659
+ const Gender = $mol_data_enum('gender', gender);
660
+ $mol_assert_fail(() => Gender('xxx'), `xxx is not value of gender enum`);
661
+ },
662
+ 'Is name instead of value'() {
663
+ const Gender = $mol_data_enum('gender', gender);
664
+ $mol_assert_fail(() => Gender('trans'), `trans is not value of gender enum`);
665
+ },
666
+ 'Is common object field'() {
667
+ const Gender = $mol_data_enum('gender', gender);
668
+ $mol_assert_fail(() => Gender('__proto__'), `__proto__ is not value of gender enum`);
669
+ },
670
+ });
671
+ })($ || ($ = {}));
672
+ //mol/data/enum/enum.test.ts
673
+ ;
674
+ "use strict";
675
+ var $;
676
+ (function ($) {
677
+ $mol_test({
678
+ async 'sizes'() {
679
+ const pair = await $$.$mol_crypto_auditor_pair();
680
+ const key_public = await pair.public.serial();
681
+ $mol_assert_equal(key_public.length, $mol_crypto_auditor_public.size);
682
+ const key_private = await pair.private.serial();
683
+ $mol_assert_equal(key_private.length, $mol_crypto_auditor_private.size);
684
+ const data = new Uint8Array([1, 2, 3]);
685
+ const sign = await pair.private.sign(data);
686
+ $mol_assert_equal(sign.byteLength, $mol_crypto_auditor_sign_size);
687
+ },
688
+ async 'verify self signed with auto generated key'() {
689
+ const auditor = await $$.$mol_crypto_auditor_pair();
690
+ const data = new Uint8Array([1, 2, 3]);
691
+ const sign = await auditor.private.sign(data);
692
+ $mol_assert_ok(await auditor.public.verify(data, sign));
693
+ },
694
+ async 'verify signed with exported auto generated key'() {
695
+ const pair = await $$.$mol_crypto_auditor_pair();
696
+ const data = new Uint8Array([1, 2, 3]);
697
+ const Alice = await $mol_crypto_auditor_private.from(await pair.private.serial());
698
+ const sign = await Alice.sign(data);
699
+ const Bob = await $mol_crypto_auditor_public.from(await pair.public.serial());
700
+ $mol_assert_ok(await Bob.verify(data, sign));
701
+ },
702
+ async 'take public key from private'() {
703
+ const pair = await $$.$mol_crypto_auditor_pair();
704
+ const data = new Uint8Array([1, 2, 3]);
705
+ const Alice = pair.private;
706
+ const sign = await Alice.sign(data);
707
+ const Bob = await pair.private.public();
708
+ const Carol = await $mol_crypto_auditor_public.from(await pair.private.serial());
709
+ $mol_assert_ok(await Bob.verify(data, sign));
710
+ $mol_assert_ok(await Carol.verify(data, sign));
711
+ },
712
+ });
713
+ })($ || ($ = {}));
714
+ //mol/crypto/auditor/auditor.web.test.ts
715
+ ;
716
+ "use strict";
717
+ var $;
718
+ (function ($) {
719
+ $mol_test({
720
+ 'decode utf8 string'() {
721
+ const str = 'Hello, ΧΨΩЫ';
722
+ const encoded = new Uint8Array([72, 101, 108, 108, 111, 44, 32, 206, 167, 206, 168, 206, 169, 208, 171]);
723
+ $mol_assert_equal($mol_charset_decode(encoded), str);
724
+ $mol_assert_equal($mol_charset_decode(encoded, 'utf8'), str);
725
+ },
726
+ 'decode empty string'() {
727
+ const encoded = new Uint8Array([]);
728
+ $mol_assert_equal($mol_charset_decode(encoded), '');
729
+ },
730
+ });
731
+ })($ || ($ = {}));
732
+ //mol/charset/decode/decode.test.ts
733
+ ;
734
+ "use strict";
735
+ var $;
736
+ (function ($_1) {
737
+ const common = [
738
+ $mol_int62_to_string({
739
+ lo: 12 << 0 | 13 << 8 | 14 << 16 | 15 << 24,
740
+ hi: 13 << 0 | 14 << 8 | 15 << 16 | 16 << 24,
741
+ }),
742
+ $mol_int62_to_string({
743
+ lo: 2 << 0 | 3 << 8 | 4 << 16 | 5 << 24,
744
+ hi: 3 << 0 | 4 << 8 | 5 << 16 | 6 << 24,
745
+ }),
746
+ $mol_int62_to_string({
747
+ lo: 4 << 0 | 5 << 8 | 6 << 16 | 7 << 24,
748
+ hi: 5 << 0 | 6 << 8 | 7 << 16 | 8 << 24,
749
+ }),
750
+ $mol_int62_to_string({
751
+ lo: 10 << 0 | 11 << 8 | 12 << 16 | 13 << 24,
752
+ hi: 11 << 0 | 12 << 8 | 13 << 16 | 14 << 24,
753
+ }),
754
+ $mol_int62_to_string({
755
+ lo: 6 << 0 | 7 << 8 | 8 << 16 | 9 << 24,
756
+ hi: 7 << 0 | 8 << 8 | 9 << 16 | 10 << 24,
757
+ }),
758
+ $mol_int62_to_string({
759
+ lo: 8 << 0 | 9 << 8 | 10 << 16 | 11 << 24,
760
+ hi: 9 << 0 | 10 << 8 | 11 << 16 | 12 << 24,
761
+ }),
762
+ 1 << 0 | 2 << 8 | 3 << 16 | 4 << 24,
763
+ ];
764
+ $mol_test({
765
+ 'pack and unpack unit with null'($) {
766
+ const source = new $hyoo_crowd_unit(...common, null, null);
767
+ const packed = $hyoo_crowd_unit_bin.from_unit(source);
768
+ const unpacked = packed.unit();
769
+ source.bin = packed;
770
+ $mol_assert_like(source, unpacked);
771
+ },
772
+ 'pack and unpack unit with json'($) {
773
+ const source = new $hyoo_crowd_unit(...common, { a: [1] }, null);
774
+ const packed = $hyoo_crowd_unit_bin.from_unit(source);
775
+ const unpacked = packed.unit();
776
+ source.bin = packed;
777
+ $mol_assert_like(source, unpacked);
778
+ },
779
+ 'pack and unpack unit with bin'($) {
780
+ const source = new $hyoo_crowd_unit(...common, new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]), null);
781
+ const packed = $hyoo_crowd_unit_bin.from_unit(source);
782
+ const unpacked = packed.unit();
783
+ source.bin = packed;
784
+ $mol_assert_like(source, unpacked);
785
+ },
786
+ async 'sign / verify'($) {
787
+ const source = new $hyoo_crowd_unit(...common, { a: [1] }, null);
788
+ const packed = $hyoo_crowd_unit_bin.from_unit(source);
789
+ const key = await $.$mol_crypto_auditor_pair();
790
+ packed.sign(new Uint8Array(await key.private.sign(packed.sens())));
791
+ const sign = packed.sign();
792
+ $mol_assert_ok(await key.public.verify(packed.sens(), sign));
793
+ },
794
+ });
795
+ })($ || ($ = {}));
796
+ //hyoo/crowd/unit/unit.test.ts
797
+ ;
798
+ "use strict";
799
+ var $;
545
800
  (function ($_1) {
546
801
  $mol_test({
547
802
  'Collect deps'() {
@@ -1426,61 +1681,6 @@ var $;
1426
1681
  ;
1427
1682
  "use strict";
1428
1683
  var $;
1429
- (function ($) {
1430
- $mol_test({
1431
- 'encode utf8 string'() {
1432
- const str = 'Hello, ΧΨΩЫ';
1433
- const encoded = new Uint8Array([72, 101, 108, 108, 111, 44, 32, 206, 167, 206, 168, 206, 169, 208, 171]);
1434
- $mol_assert_like($mol_charset_encode(str), encoded);
1435
- },
1436
- });
1437
- })($ || ($ = {}));
1438
- //mol/charset/encode/encode.test.ts
1439
- ;
1440
- "use strict";
1441
- var $;
1442
- (function ($) {
1443
- $mol_test({
1444
- async 'sizes'() {
1445
- const pair = await $$.$mol_crypto_auditor_pair();
1446
- const key_public = await pair.public.serial();
1447
- $mol_assert_equal(key_public.length, $mol_crypto_auditor_public.size);
1448
- const key_private = await pair.private.serial();
1449
- $mol_assert_equal(key_private.length, $mol_crypto_auditor_private.size);
1450
- const data = new Uint8Array([1, 2, 3]);
1451
- const sign = await pair.private.sign(data);
1452
- $mol_assert_equal(sign.byteLength, $mol_crypto_auditor_sign_size);
1453
- },
1454
- async 'verify self signed with auto generated key'() {
1455
- const auditor = await $$.$mol_crypto_auditor_pair();
1456
- const data = new Uint8Array([1, 2, 3]);
1457
- const sign = await auditor.private.sign(data);
1458
- $mol_assert_ok(await auditor.public.verify(data, sign));
1459
- },
1460
- async 'verify signed with exported auto generated key'() {
1461
- const pair = await $$.$mol_crypto_auditor_pair();
1462
- const data = new Uint8Array([1, 2, 3]);
1463
- const Alice = await $mol_crypto_auditor_private.from(await pair.private.serial());
1464
- const sign = await Alice.sign(data);
1465
- const Bob = await $mol_crypto_auditor_public.from(await pair.public.serial());
1466
- $mol_assert_ok(await Bob.verify(data, sign));
1467
- },
1468
- async 'take public key from private'() {
1469
- const pair = await $$.$mol_crypto_auditor_pair();
1470
- const data = new Uint8Array([1, 2, 3]);
1471
- const Alice = pair.private;
1472
- const sign = await Alice.sign(data);
1473
- const Bob = await pair.private.public();
1474
- const Carol = await $mol_crypto_auditor_public.from(await pair.private.serial());
1475
- $mol_assert_ok(await Bob.verify(data, sign));
1476
- $mol_assert_ok(await Carol.verify(data, sign));
1477
- },
1478
- });
1479
- })($ || ($ = {}));
1480
- //mol/crypto/auditor/auditor.web.test.ts
1481
- ;
1482
- "use strict";
1483
- var $;
1484
1684
  (function ($) {
1485
1685
  $mol_test({
1486
1686
  'run callback'() {
@@ -1624,206 +1824,6 @@ var $;
1624
1824
  ;
1625
1825
  "use strict";
1626
1826
  var $;
1627
- (function ($) {
1628
- $mol_test({
1629
- 'config by value'() {
1630
- const N = $mol_data_setup((a) => a, 5);
1631
- $mol_assert_equal(N.config, 5);
1632
- },
1633
- });
1634
- })($ || ($ = {}));
1635
- //mol/data/setup/setup.test.ts
1636
- ;
1637
- "use strict";
1638
- var $;
1639
- (function ($) {
1640
- $mol_test({
1641
- 'equal paths'() {
1642
- const diff = $mol_diff_path([1, 2, 3, 4], [1, 2, 3, 4], [1, 2, 3, 4]);
1643
- $mol_assert_like(diff, {
1644
- prefix: [1, 2, 3, 4],
1645
- suffix: [[], [], []],
1646
- });
1647
- },
1648
- 'different suffix'() {
1649
- const diff = $mol_diff_path([1, 2, 3, 4], [1, 2, 3, 5], [1, 2, 5, 4]);
1650
- $mol_assert_like(diff, {
1651
- prefix: [1, 2],
1652
- suffix: [[3, 4], [3, 5], [5, 4]],
1653
- });
1654
- },
1655
- 'one contains other'() {
1656
- const diff = $mol_diff_path([1, 2, 3, 4], [1, 2], [1, 2, 3]);
1657
- $mol_assert_like(diff, {
1658
- prefix: [1, 2],
1659
- suffix: [[3, 4], [], [3]],
1660
- });
1661
- },
1662
- 'fully different'() {
1663
- const diff = $mol_diff_path([1, 2], [3, 4], [5, 6]);
1664
- $mol_assert_like(diff, {
1665
- prefix: [],
1666
- suffix: [[1, 2], [3, 4], [5, 6]],
1667
- });
1668
- },
1669
- });
1670
- })($ || ($ = {}));
1671
- //mol/diff/path/path.test.ts
1672
- ;
1673
- "use strict";
1674
- var $;
1675
- (function ($) {
1676
- let sex;
1677
- (function (sex) {
1678
- sex[sex["male"] = 0] = "male";
1679
- sex[sex["female"] = 1] = "female";
1680
- })(sex || (sex = {}));
1681
- let gender;
1682
- (function (gender) {
1683
- gender["bisexual"] = "bisexual";
1684
- gender["trans"] = "transgender";
1685
- })(gender || (gender = {}));
1686
- $mol_test({
1687
- 'config of enum'() {
1688
- const Sex = $mol_data_enum('sex', sex);
1689
- $mol_assert_like(Sex.config, {
1690
- name: 'sex',
1691
- dict: sex,
1692
- });
1693
- },
1694
- 'name of enum'() {
1695
- const Sex = $mol_data_enum('sex', sex);
1696
- $mol_assert_equal(Sex.config.name, 'sex');
1697
- },
1698
- 'Is right value of enum'() {
1699
- const Sex = $mol_data_enum('sex', sex);
1700
- $mol_assert_equal(Sex(0), sex.male);
1701
- },
1702
- 'Is wrong value of enum'() {
1703
- const Sex = $mol_data_enum('sex', sex);
1704
- $mol_assert_fail(() => Sex(2), `2 is not value of sex enum`);
1705
- },
1706
- 'Is name instead of value'() {
1707
- const Sex = $mol_data_enum('sex', sex);
1708
- $mol_assert_fail(() => Sex('male'), `male is not value of sex enum`);
1709
- },
1710
- 'Is common object field'() {
1711
- const Sex = $mol_data_enum('sex', sex);
1712
- $mol_assert_fail(() => Sex('__proto__'), `__proto__ is not value of sex enum`);
1713
- },
1714
- });
1715
- $mol_test({
1716
- 'config of enum'() {
1717
- const Gender = $mol_data_enum('gender', gender);
1718
- $mol_assert_like(Gender.config, {
1719
- name: 'gender',
1720
- dict: gender,
1721
- });
1722
- },
1723
- 'Is right value of enum'() {
1724
- const Gender = $mol_data_enum('gender', gender);
1725
- $mol_assert_equal(Gender('transgender'), gender.trans);
1726
- },
1727
- 'Is wrong value of enum'() {
1728
- const Gender = $mol_data_enum('gender', gender);
1729
- $mol_assert_fail(() => Gender('xxx'), `xxx is not value of gender enum`);
1730
- },
1731
- 'Is name instead of value'() {
1732
- const Gender = $mol_data_enum('gender', gender);
1733
- $mol_assert_fail(() => Gender('trans'), `trans is not value of gender enum`);
1734
- },
1735
- 'Is common object field'() {
1736
- const Gender = $mol_data_enum('gender', gender);
1737
- $mol_assert_fail(() => Gender('__proto__'), `__proto__ is not value of gender enum`);
1738
- },
1739
- });
1740
- })($ || ($ = {}));
1741
- //mol/data/enum/enum.test.ts
1742
- ;
1743
- "use strict";
1744
- var $;
1745
- (function ($) {
1746
- $mol_test({
1747
- 'decode utf8 string'() {
1748
- const str = 'Hello, ΧΨΩЫ';
1749
- const encoded = new Uint8Array([72, 101, 108, 108, 111, 44, 32, 206, 167, 206, 168, 206, 169, 208, 171]);
1750
- $mol_assert_equal($mol_charset_decode(encoded), str);
1751
- $mol_assert_equal($mol_charset_decode(encoded, 'utf8'), str);
1752
- },
1753
- 'decode empty string'() {
1754
- const encoded = new Uint8Array([]);
1755
- $mol_assert_equal($mol_charset_decode(encoded), '');
1756
- },
1757
- });
1758
- })($ || ($ = {}));
1759
- //mol/charset/decode/decode.test.ts
1760
- ;
1761
- "use strict";
1762
- var $;
1763
- (function ($_1) {
1764
- const common = [
1765
- $mol_int62_to_string({
1766
- lo: 12 << 0 | 13 << 8 | 14 << 16 | 15 << 24,
1767
- hi: 13 << 0 | 14 << 8 | 15 << 16 | 16 << 24,
1768
- }),
1769
- $mol_int62_to_string({
1770
- lo: 2 << 0 | 3 << 8 | 4 << 16 | 5 << 24,
1771
- hi: 3 << 0 | 4 << 8 | 5 << 16 | 6 << 24,
1772
- }),
1773
- $mol_int62_to_string({
1774
- lo: 4 << 0 | 5 << 8 | 6 << 16 | 7 << 24,
1775
- hi: 5 << 0 | 6 << 8 | 7 << 16 | 8 << 24,
1776
- }),
1777
- $mol_int62_to_string({
1778
- lo: 10 << 0 | 11 << 8 | 12 << 16 | 13 << 24,
1779
- hi: 11 << 0 | 12 << 8 | 13 << 16 | 14 << 24,
1780
- }),
1781
- $mol_int62_to_string({
1782
- lo: 6 << 0 | 7 << 8 | 8 << 16 | 9 << 24,
1783
- hi: 7 << 0 | 8 << 8 | 9 << 16 | 10 << 24,
1784
- }),
1785
- $mol_int62_to_string({
1786
- lo: 8 << 0 | 9 << 8 | 10 << 16 | 11 << 24,
1787
- hi: 9 << 0 | 10 << 8 | 11 << 16 | 12 << 24,
1788
- }),
1789
- 1 << 0 | 2 << 8 | 3 << 16 | 4 << 24,
1790
- ];
1791
- $mol_test({
1792
- 'pack and unpack unit with null'($) {
1793
- const source = new $hyoo_crowd_unit(...common, null, null);
1794
- const packed = $hyoo_crowd_unit_bin.from_unit(source);
1795
- const unpacked = packed.unit();
1796
- source.bin = packed;
1797
- $mol_assert_like(source, unpacked);
1798
- },
1799
- 'pack and unpack unit with json'($) {
1800
- const source = new $hyoo_crowd_unit(...common, { a: [1] }, null);
1801
- const packed = $hyoo_crowd_unit_bin.from_unit(source);
1802
- const unpacked = packed.unit();
1803
- source.bin = packed;
1804
- $mol_assert_like(source, unpacked);
1805
- },
1806
- 'pack and unpack unit with bin'($) {
1807
- const source = new $hyoo_crowd_unit(...common, new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]), null);
1808
- const packed = $hyoo_crowd_unit_bin.from_unit(source);
1809
- const unpacked = packed.unit();
1810
- source.bin = packed;
1811
- $mol_assert_like(source, unpacked);
1812
- },
1813
- async 'sign / verify'($) {
1814
- const source = new $hyoo_crowd_unit(...common, { a: [1] }, null);
1815
- const packed = $hyoo_crowd_unit_bin.from_unit(source);
1816
- const key = await $.$mol_crypto_auditor_pair();
1817
- packed.sign(new Uint8Array(await key.private.sign(packed.sens())));
1818
- const sign = packed.sign();
1819
- $mol_assert_ok(await key.public.verify(packed.sens(), sign));
1820
- },
1821
- });
1822
- })($ || ($ = {}));
1823
- //hyoo/crowd/unit/unit.test.ts
1824
- ;
1825
- "use strict";
1826
- var $;
1827
1827
  (function ($) {
1828
1828
  $mol_test({
1829
1829
  'fresh'() {
@@ -1880,7 +1880,7 @@ var $;
1880
1880
  const clocks1 = [new $hyoo_crowd_clock, new $hyoo_crowd_clock];
1881
1881
  clocks1[$hyoo_crowd_unit_group.auth].see_peer('b_33', 1);
1882
1882
  clocks1[$hyoo_crowd_unit_group.data].see_peer('b_33', 2);
1883
- const bin = $hyoo_crowd_clock_bin.from('2_b', clocks1);
1883
+ const bin = $hyoo_crowd_clock_bin.from('2_b', clocks1, 0);
1884
1884
  $mol_assert_like(bin.land(), '2_b');
1885
1885
  const clocks2 = [new $hyoo_crowd_clock, new $hyoo_crowd_clock];
1886
1886
  clocks2[$hyoo_crowd_unit_group.auth].see_bin(bin, $hyoo_crowd_unit_group.auth);
@@ -3731,7 +3731,7 @@ var $;
3731
3731
  land1.leave();
3732
3732
  const batch2 = await world1.delta_batch(land1);
3733
3733
  $mol_assert_like([...(await world2.apply(batch2)).forbid.values()], ['No auth key']);
3734
- $mol_assert_like(land2.chief.as($hyoo_crowd_reg).numb(), 234);
3734
+ $mol_assert_like(land2.chief.as($hyoo_crowd_reg).numb(), 123);
3735
3735
  },
3736
3736
  async 'levels'() {
3737
3737
  const world1 = new $hyoo_crowd_world(await $hyoo_crowd_peer.generate());