hyoo_sync_client 0.0.59 → 0.0.61

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.meta.tree CHANGED
@@ -30,6 +30,7 @@
30
30
  pack lamps git \https://github.com/hyoo-ru/lamps.hyoo.ru.git
31
31
  pack life git \https://github.com/hyoo-ru/life.hyoo.ru.git
32
32
  pack lingua git \https://github.com/hyoo-ru/lingua.hyoo.ru.git
33
+ pack lupa git \https://github.com/hyoo-ru/lupa.hyoo.ru.git
33
34
  pack mail git \https://github.com/hyoo-ru/mail.hyoo.ru.git
34
35
  pack map git \https://github.com/hyoo-ru/map.hyoo.ru.git
35
36
  pack marked git \https://github.com/hyoo-ru/marked.hyoo.ru.git
package/web.mjs CHANGED
@@ -4135,6 +4135,5 @@ var $;
4135
4135
  $.$hyoo_sync_client = $hyoo_sync_client;
4136
4136
  })($ || ($ = {}));
4137
4137
  //hyoo/sync/client/client.ts
4138
- ;
4139
- export default $
4140
- //# sourceMappingURL=web.mjs.map
4138
+
4139
+ //# sourceMappingURL=web.js.map
package/web.test.js CHANGED
@@ -3591,12 +3591,19 @@ var $;
3591
3591
  cut(seat) {
3592
3592
  return this.land.wipe(this.units()[seat]);
3593
3593
  }
3594
- has(val) {
3595
- for (const unit of this.units()) {
3596
- if (unit.data === val)
3597
- return true;
3594
+ has(val, next) {
3595
+ if (next === undefined) {
3596
+ for (const unit of this.units()) {
3597
+ if (unit.data === val)
3598
+ return true;
3599
+ }
3600
+ return false;
3598
3601
  }
3599
- return false;
3602
+ if (next)
3603
+ this.add(val);
3604
+ else
3605
+ this.drop(val);
3606
+ return next;
3600
3607
  }
3601
3608
  add(val) {
3602
3609
  if (this.has(val))