@splitsoftware/splitio 10.21.2-rc.4 → 10.21.2-rc.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export var packageVersion = '10.21.2-rc.
|
|
1
|
+
export var packageVersion = '10.21.2-rc.5';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splitsoftware/splitio",
|
|
3
|
-
"version": "10.21.2-rc.
|
|
3
|
+
"version": "10.21.2-rc.5",
|
|
4
4
|
"description": "Split SDK",
|
|
5
5
|
"files": [
|
|
6
6
|
"README.md",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@ably/bloomit": "^1.4.2",
|
|
37
|
-
"@splitsoftware/splitio-commons": "1.6.2-rc.
|
|
37
|
+
"@splitsoftware/splitio-commons": "1.6.2-rc.13",
|
|
38
38
|
"@types/google.analytics": "0.0.40",
|
|
39
39
|
"@types/ioredis": "^4.28.0",
|
|
40
40
|
"ioredis": "^4.28.0",
|
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
"test-ts-decls": "./scripts/ts-tests.sh",
|
|
113
113
|
"posttest-ts-decls": "npm unlink && npm install",
|
|
114
114
|
"test": "npm run test-node && npm run test-browser",
|
|
115
|
+
"all": "npm run check && npm run build && npm run test-ts-decls && npm run test",
|
|
115
116
|
"publish:rc": "npm run check && npm run build && npm publish --tag canary",
|
|
116
117
|
"publish:stable": "npm run check && npm run build && npm publish"
|
|
117
118
|
},
|
|
@@ -6,11 +6,11 @@ const REFRESH_RATE = 24 * 60 * 60000; // 24HS
|
|
|
6
6
|
|
|
7
7
|
export function bloomFilterFactory(expectedInsertions = EXPECTED_INSERTIONS, errorRate = ERROR_RATE, refreshRate = REFRESH_RATE) {
|
|
8
8
|
let filter = BloomFilter.create(expectedInsertions, errorRate);
|
|
9
|
-
|
|
10
|
-
return {
|
|
11
|
-
|
|
9
|
+
|
|
10
|
+
return {
|
|
11
|
+
|
|
12
12
|
refreshRate: refreshRate,
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
add(key, value) {
|
|
15
15
|
const data = `${key}:${value}`;
|
|
16
16
|
if (filter.has(data)) {
|
|
@@ -19,15 +19,15 @@ export function bloomFilterFactory(expectedInsertions = EXPECTED_INSERTIONS, err
|
|
|
19
19
|
filter.add(data);
|
|
20
20
|
return true;
|
|
21
21
|
},
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
contains(key, value) {
|
|
24
24
|
const data = `${key}:${value}`;
|
|
25
25
|
return filter.has(data);
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
clear() {
|
|
29
29
|
filter = BloomFilter.create(expectedInsertions, errorRate);
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
};
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = '10.21.2-rc.
|
|
1
|
+
export const packageVersion = '10.21.2-rc.5';
|