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/node.d.ts +2 -2
- package/node.deps.json +1 -1
- package/node.js.map +1 -1
- package/node.meta.tree +1 -0
- package/node.mjs +2 -3
- package/node.test.js +12 -5
- 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.map +1 -1
- package/web.meta.tree +1 -0
- package/web.mjs +2 -3
- package/web.test.js +12 -5
- package/web.test.js.map +1 -1
- package/node.mjs.map +0 -1
- package/web.mjs.map +0 -1
package/node.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/node.mjs
CHANGED
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
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
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
|
-
|
|
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))
|