miqro 6.2.5 → 6.2.7

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.
@@ -30,7 +30,7 @@ export class LocalCache {
30
30
  if (!(list instanceof Set)) {
31
31
  throw new Error("cannot apply on non Set");
32
32
  }
33
- if (list.has(value)) {
33
+ if (!list.has(value)) {
34
34
  list.add(value);
35
35
  }
36
36
  this.localCache.set(key, list);
@@ -33,7 +33,7 @@ export class ClusterCache {
33
33
  if (!(list instanceof Set)) {
34
34
  throw new Error("cannot apply push on non array");
35
35
  }
36
- if (list.has(msg.value)) {
36
+ if (!list.has(msg.value)) {
37
37
  list.add(msg.value);
38
38
  }
39
39
  this.localCache.set(msg.key, list);
@@ -124,7 +124,7 @@ export class ClusterCache {
124
124
  if (!(list instanceof Set)) {
125
125
  throw new Error("cannot apply on non Set");
126
126
  }
127
- if (list.has(value)) {
127
+ if (!list.has(value)) {
128
128
  list.add(value);
129
129
  }
130
130
  this.localCache.set(key, list);
package/build/lib.cjs CHANGED
@@ -8784,7 +8784,7 @@ var ClusterCache = class {
8784
8784
  if (!(list instanceof Set)) {
8785
8785
  throw new Error("cannot apply push on non array");
8786
8786
  }
8787
- if (list.has(msg.value)) {
8787
+ if (!list.has(msg.value)) {
8788
8788
  list.add(msg.value);
8789
8789
  }
8790
8790
  this.localCache.set(msg.key, list);
@@ -8875,7 +8875,7 @@ var ClusterCache = class {
8875
8875
  if (!(list instanceof Set)) {
8876
8876
  throw new Error("cannot apply on non Set");
8877
8877
  }
8878
- if (list.has(value)) {
8878
+ if (!list.has(value)) {
8879
8879
  list.add(value);
8880
8880
  }
8881
8881
  this.localCache.set(key, list);
@@ -8995,7 +8995,7 @@ var LocalCache = class {
8995
8995
  if (!(list instanceof Set)) {
8996
8996
  throw new Error("cannot apply on non Set");
8997
8997
  }
8998
- if (list.has(value)) {
8998
+ if (!list.has(value)) {
8999
8999
  list.add(value);
9000
9000
  }
9001
9001
  this.localCache.set(key, list);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miqro",
3
- "version": "6.2.5",
3
+ "version": "6.2.7",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "build/esm/src/lib.js",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env sh
2
2
 
3
3
  TARGET="${PWD}/sea/deps/esbuild"
4
- VERSION="0.25.4"
4
+ VERSION="0.25.5"
5
5
 
6
6
  if [ -d "$TARGET" ]; then
7
7
  echo "$TARGET already exists exist."
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env sh
2
2
 
3
3
  TARGET="${PWD}/sea/deps/nodejs"
4
- VERSION="24.1.0"
4
+ VERSION="24.2.0"
5
5
 
6
6
  if [ -d "$TARGET" ]; then
7
7
  echo "$TARGET already exists exist."
@@ -1 +1 @@
1
- 24.1.0
1
+ 24.2.0
@@ -34,7 +34,7 @@ export class LocalCache implements CacheInterface {
34
34
  if (!(list instanceof Set)) {
35
35
  throw new Error("cannot apply on non Set");
36
36
  }
37
- if (list.has(value)) {
37
+ if (!list.has(value)) {
38
38
  list.add(value);
39
39
  }
40
40
  this.localCache.set(key, list);
@@ -45,7 +45,7 @@ export class ClusterCache implements CacheInterface {
45
45
  if (!(list instanceof Set)) {
46
46
  throw new Error("cannot apply push on non array");
47
47
  }
48
- if (list.has(msg.value)) {
48
+ if (!list.has(msg.value)) {
49
49
  list.add(msg.value);
50
50
  }
51
51
  this.localCache.set(msg.key, list);
@@ -139,7 +139,7 @@ export class ClusterCache implements CacheInterface {
139
139
  if (!(list instanceof Set)) {
140
140
  throw new Error("cannot apply on non Set");
141
141
  }
142
- if (list.has(value)) {
142
+ if (!list.has(value)) {
143
143
  list.add(value);
144
144
  }
145
145
  this.localCache.set(key, list);