hyoo_sync_client 0.0.60 → 0.0.62

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.mjs CHANGED
@@ -4448,6 +4448,5 @@ var $;
4448
4448
  $.$hyoo_sync_client = $hyoo_sync_client;
4449
4449
  })($ || ($ = {}));
4450
4450
  //hyoo/sync/client/client.ts
4451
- ;
4452
- export default $
4453
- //# sourceMappingURL=node.mjs.map
4451
+
4452
+ //# sourceMappingURL=node.js.map
package/node.test.js CHANGED
@@ -8167,12 +8167,19 @@ var $;
8167
8167
  cut(seat) {
8168
8168
  return this.land.wipe(this.units()[seat]);
8169
8169
  }
8170
- has(val) {
8171
- for (const unit of this.units()) {
8172
- if (unit.data === val)
8173
- return true;
8170
+ has(val, next) {
8171
+ if (next === undefined) {
8172
+ for (const unit of this.units()) {
8173
+ if (unit.data === val)
8174
+ return true;
8175
+ }
8176
+ return false;
8174
8177
  }
8175
- return false;
8178
+ if (next)
8179
+ this.add(val);
8180
+ else
8181
+ this.drop(val);
8182
+ return next;
8176
8183
  }
8177
8184
  add(val) {
8178
8185
  if (this.has(val))