miqro 6.2.4 → 6.2.6
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/build/esm/src/inflate/setup-http.js +327 -324
- package/build/esm/src/services/utils/cache.js +1 -1
- package/build/esm/src/services/utils/cluster-cache.js +2 -2
- package/build/lib.cjs +308 -305
- package/package.json +1 -1
- package/src/inflate/setup-http.ts +341 -338
- package/src/services/utils/cache.ts +1 -1
- package/src/services/utils/cluster-cache.ts +2 -2
|
@@ -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);
|