@splitsoftware/splitio-commons 1.13.2-rc.6 → 1.13.2-rc.8
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/CHANGES.txt +3 -1
- package/cjs/evaluator/index.js +1 -1
- package/cjs/evaluator/matchers/all.js +3 -1
- package/cjs/evaluator/matchers/between.js +3 -1
- package/cjs/evaluator/matchers/boolean.js +3 -1
- package/cjs/evaluator/matchers/cont_all.js +3 -1
- package/cjs/evaluator/matchers/cont_any.js +3 -1
- package/cjs/evaluator/matchers/cont_str.js +3 -1
- package/cjs/evaluator/matchers/dependency.js +1 -1
- package/cjs/evaluator/matchers/eq.js +3 -1
- package/cjs/evaluator/matchers/eq_set.js +3 -1
- package/cjs/evaluator/matchers/ew.js +3 -1
- package/cjs/evaluator/matchers/gte.js +3 -1
- package/cjs/evaluator/matchers/index.js +1 -1
- package/cjs/evaluator/matchers/lte.js +3 -1
- package/cjs/evaluator/matchers/part_of.js +3 -1
- package/cjs/evaluator/matchers/segment.js +6 -1
- package/cjs/evaluator/matchers/semver_between.js +1 -1
- package/cjs/evaluator/matchers/semver_eq.js +1 -1
- package/cjs/evaluator/matchers/semver_gte.js +1 -1
- package/cjs/evaluator/matchers/semver_inlist.js +2 -2
- package/cjs/evaluator/matchers/semver_lte.js +1 -1
- package/cjs/evaluator/matchers/string.js +3 -1
- package/cjs/evaluator/matchers/sw.js +3 -1
- package/cjs/evaluator/matchers/whitelist.js +3 -1
- package/cjs/evaluator/matchersTransform/index.js +1 -0
- package/cjs/evaluator/matchersTransform/whitelist.js +1 -1
- package/cjs/evaluator/parser/index.js +10 -18
- package/cjs/logger/constants.js +19 -4
- package/cjs/logger/messages/debug.js +19 -4
- package/cjs/logger/messages/error.js +1 -1
- package/cjs/logger/messages/warn.js +1 -1
- package/cjs/services/splitApi.js +5 -5
- package/cjs/storages/KeyBuilder.js +3 -2
- package/cjs/storages/inLocalStorage/SplitsCacheInLocal.js +1 -1
- package/cjs/storages/pluggable/index.js +1 -1
- package/cjs/utils/constants/index.js +2 -1
- package/cjs/utils/labels/index.js +1 -1
- package/esm/evaluator/index.js +1 -1
- package/esm/evaluator/matchers/all.js +3 -1
- package/esm/evaluator/matchers/between.js +3 -1
- package/esm/evaluator/matchers/boolean.js +3 -1
- package/esm/evaluator/matchers/cont_all.js +3 -1
- package/esm/evaluator/matchers/cont_any.js +3 -1
- package/esm/evaluator/matchers/cont_str.js +3 -1
- package/esm/evaluator/matchers/dependency.js +1 -1
- package/esm/evaluator/matchers/eq.js +3 -1
- package/esm/evaluator/matchers/eq_set.js +3 -1
- package/esm/evaluator/matchers/ew.js +3 -1
- package/esm/evaluator/matchers/gte.js +3 -1
- package/esm/evaluator/matchers/index.js +1 -1
- package/esm/evaluator/matchers/lte.js +3 -1
- package/esm/evaluator/matchers/part_of.js +3 -1
- package/esm/evaluator/matchers/segment.js +6 -1
- package/esm/evaluator/matchers/semver_between.js +1 -1
- package/esm/evaluator/matchers/semver_eq.js +1 -1
- package/esm/evaluator/matchers/semver_gte.js +1 -1
- package/esm/evaluator/matchers/semver_inlist.js +2 -2
- package/esm/evaluator/matchers/semver_lte.js +1 -1
- package/esm/evaluator/matchers/string.js +3 -1
- package/esm/evaluator/matchers/sw.js +3 -1
- package/esm/evaluator/matchers/whitelist.js +3 -1
- package/esm/evaluator/matchersTransform/index.js +1 -0
- package/esm/evaluator/matchersTransform/whitelist.js +1 -1
- package/esm/evaluator/parser/index.js +11 -19
- package/esm/logger/constants.js +16 -1
- package/esm/logger/messages/debug.js +19 -4
- package/esm/logger/messages/error.js +1 -1
- package/esm/logger/messages/warn.js +1 -1
- package/esm/services/splitApi.js +6 -6
- package/esm/storages/KeyBuilder.js +3 -2
- package/esm/storages/inLocalStorage/SplitsCacheInLocal.js +1 -1
- package/esm/storages/pluggable/index.js +1 -1
- package/esm/utils/constants/index.js +1 -0
- package/esm/utils/labels/index.js +1 -1
- package/package.json +1 -1
- package/src/evaluator/index.ts +1 -1
- package/src/evaluator/matchers/all.ts +5 -1
- package/src/evaluator/matchers/between.ts +7 -3
- package/src/evaluator/matchers/boolean.ts +6 -2
- package/src/evaluator/matchers/cont_all.ts +5 -1
- package/src/evaluator/matchers/cont_any.ts +5 -1
- package/src/evaluator/matchers/cont_str.ts +6 -2
- package/src/evaluator/matchers/dependency.ts +1 -1
- package/src/evaluator/matchers/eq.ts +6 -2
- package/src/evaluator/matchers/eq_set.ts +5 -1
- package/src/evaluator/matchers/ew.ts +6 -2
- package/src/evaluator/matchers/gte.ts +6 -2
- package/src/evaluator/matchers/index.ts +1 -1
- package/src/evaluator/matchers/lte.ts +6 -2
- package/src/evaluator/matchers/part_of.ts +5 -1
- package/src/evaluator/matchers/segment.ts +8 -1
- package/src/evaluator/matchers/semver_between.ts +2 -1
- package/src/evaluator/matchers/semver_eq.ts +2 -1
- package/src/evaluator/matchers/semver_gte.ts +2 -1
- package/src/evaluator/matchers/semver_inlist.ts +3 -3
- package/src/evaluator/matchers/semver_lte.ts +2 -1
- package/src/evaluator/matchers/string.ts +6 -1
- package/src/evaluator/matchers/sw.ts +6 -2
- package/src/evaluator/matchers/whitelist.ts +5 -1
- package/src/evaluator/matchersTransform/index.ts +2 -1
- package/src/evaluator/matchersTransform/whitelist.ts +1 -1
- package/src/evaluator/parser/index.ts +8 -13
- package/src/evaluator/types.ts +1 -0
- package/src/logger/constants.ts +16 -1
- package/src/logger/messages/debug.ts +19 -4
- package/src/logger/messages/error.ts +1 -1
- package/src/logger/messages/warn.ts +1 -1
- package/src/services/splitApi.ts +5 -6
- package/src/storages/KeyBuilder.ts +3 -2
- package/src/storages/inLocalStorage/SplitsCacheInLocal.ts +1 -1
- package/src/storages/pluggable/index.ts +1 -1
- package/src/utils/constants/index.ts +2 -0
- package/src/utils/labels/index.ts +1 -1
- package/types/evaluator/matchers/all.d.ts +2 -1
- package/types/evaluator/matchers/between.d.ts +2 -1
- package/types/evaluator/matchers/boolean.d.ts +2 -1
- package/types/evaluator/matchers/cont_all.d.ts +2 -1
- package/types/evaluator/matchers/cont_any.d.ts +2 -1
- package/types/evaluator/matchers/cont_str.d.ts +2 -1
- package/types/evaluator/matchers/dependency.d.ts +1 -1
- package/types/evaluator/matchers/eq.d.ts +2 -1
- package/types/evaluator/matchers/eq_set.d.ts +2 -1
- package/types/evaluator/matchers/ew.d.ts +2 -1
- package/types/evaluator/matchers/gte.d.ts +2 -1
- package/types/evaluator/matchers/lte.d.ts +2 -1
- package/types/evaluator/matchers/part_of.d.ts +2 -1
- package/types/evaluator/matchers/segment.d.ts +2 -1
- package/types/evaluator/matchers/semver_between.d.ts +2 -1
- package/types/evaluator/matchers/semver_eq.d.ts +2 -1
- package/types/evaluator/matchers/semver_gte.d.ts +2 -1
- package/types/evaluator/matchers/semver_inlist.d.ts +2 -1
- package/types/evaluator/matchers/semver_lte.d.ts +2 -1
- package/types/evaluator/matchers/string.d.ts +2 -1
- package/types/evaluator/matchers/sw.d.ts +2 -1
- package/types/evaluator/matchers/whitelist.d.ts +2 -1
- package/types/evaluator/matchersTransform/set.d.ts +2 -2
- package/types/evaluator/matchersTransform/whitelist.d.ts +1 -1
- package/types/evaluator/types.d.ts +1 -0
- package/types/logger/constants.d.ts +16 -1
- package/types/storages/KeyBuilder.d.ts +1 -1
- package/types/trackers/impressionObserver/utils.d.ts +1 -1
- package/types/utils/constants/index.d.ts +1 -0
- package/types/utils/labels/index.d.ts +1 -1
- package/types/evaluator/matchers/sember_inlist.d.ts +0 -3
- package/types/evaluator/matchersTransform/string.d.ts +0 -7
- package/types/sdkClient/identity.d.ts +0 -6
- package/types/storages/AbstractSplitsCache.d.ts +0 -46
- package/types/sync/streaming/mySegmentsV2utils.d.ts +0 -27
- package/types/utils/inputValidation/sdkKey.d.ts +0 -7
- package/types/utils/settingsValidation/logger/globalLogLevel.d.ts +0 -8
- /package/types/utils/{semVer.d.ts → Semver.d.ts} +0 -0
|
@@ -2,4 +2,4 @@ import { IDependencyMatcherData, MaybeThenable } from '../../dtos/types';
|
|
|
2
2
|
import { IStorageAsync, IStorageSync } from '../../storages/types';
|
|
3
3
|
import { ILogger } from '../../logger/types';
|
|
4
4
|
import { IDependencyMatcherValue, ISplitEvaluator } from '../types';
|
|
5
|
-
export declare function dependencyMatcherContext({ split, treatments }: IDependencyMatcherData, storage: IStorageSync | IStorageAsync
|
|
5
|
+
export declare function dependencyMatcherContext(log: ILogger, { split, treatments }: IDependencyMatcherData, storage: IStorageSync | IStorageAsync): ({ key, attributes }: IDependencyMatcherValue, splitEvaluator: ISplitEvaluator) => MaybeThenable<boolean>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ILogger } from '../../logger/types';
|
|
2
|
+
export declare function equalToMatcherContext(log: ILogger, ruleAttr: number): (runtimeAttr: number) => boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ILogger } from '../../logger/types';
|
|
2
|
+
export declare function equalToSetMatcherContext(log: ILogger, ruleAttr: string[]): (runtimeAttr: string[]) => boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ILogger } from '../../logger/types';
|
|
2
|
+
export declare function endsWithMatcherContext(log: ILogger, ruleAttr: string[]): (runtimeAttr: string) => boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ILogger } from '../../logger/types';
|
|
2
|
+
export declare function greaterThanEqualMatcherContext(log: ILogger, ruleAttr: number): (runtimeAttr: number) => boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ILogger } from '../../logger/types';
|
|
2
|
+
export declare function lessThanEqualMatcherContext(log: ILogger, ruleAttr: number): (runtimeAttr: number) => boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ILogger } from '../../logger/types';
|
|
2
|
+
export declare function partOfSetMatcherContext(log: ILogger, ruleAttr: string[]): (runtimeAttr: string[]) => boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MaybeThenable } from '../../dtos/types';
|
|
2
2
|
import { ISegmentsCacheBase } from '../../storages/types';
|
|
3
|
-
|
|
3
|
+
import { ILogger } from '../../logger/types';
|
|
4
|
+
export declare function segmentMatcherContext(log: ILogger, segmentName: string, storage: {
|
|
4
5
|
segments: ISegmentsCacheBase;
|
|
5
6
|
}): (key: string) => MaybeThenable<boolean>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { IBetweenStringMatcherData } from '../../dtos/types';
|
|
2
|
-
|
|
2
|
+
import { ILogger } from '../../logger/types';
|
|
3
|
+
export declare function betweenSemverMatcherContext(log: ILogger, ruleAttr: IBetweenStringMatcherData): (runtimeAttr: string) => boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ILogger } from '../../logger/types';
|
|
2
|
+
export declare function equalToSemverMatcherContext(log: ILogger, ruleAttr: string): (runtimeAttr: string) => boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ILogger } from '../../logger/types';
|
|
2
|
+
export declare function greaterThanEqualToSemverMatcherContext(log: ILogger, ruleAttr: string): (runtimeAttr: string) => boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ILogger } from '../../logger/types';
|
|
2
|
+
export declare function inListSemverMatcherContext(log: ILogger, ruleAttr: string[]): (runtimeAttr: string) => boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ILogger } from '../../logger/types';
|
|
2
|
+
export declare function lessThanEqualToSemverMatcherContext(log: ILogger, ruleAttr: string): (runtimeAttr: string) => boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ILogger } from '../../logger/types';
|
|
2
|
+
export declare function stringMatcherContext(log: ILogger, ruleAttr: string): (runtimeAttr: string) => boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ILogger } from '../../logger/types';
|
|
2
|
+
export declare function startsWithMatcherContext(log: ILogger, ruleAttr: string[]): (runtimeAttr: string) => boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ILogger } from '../../logger/types';
|
|
2
|
+
export declare function whitelistMatcherContext(log: ILogger, ruleAttr: string[]): (runtimeAttr: string) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IWhitelistMatcherData } from '../../dtos/types';
|
|
2
2
|
/**
|
|
3
3
|
* Extract whitelist array. Used by set and string matchers
|
|
4
4
|
*/
|
|
5
|
-
export declare function setTransform(whitelistObject:
|
|
5
|
+
export declare function setTransform(whitelistObject: IWhitelistMatcherData): string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ISplitMatcher } from '../../dtos/types';
|
|
2
2
|
/**
|
|
3
|
-
* Extract whitelist
|
|
3
|
+
* Extract whitelist array.
|
|
4
4
|
*/
|
|
5
5
|
export declare function whitelistTransform(whitelistObject: ISplitMatcher['whitelistMatcherData']): string[] | null | undefined;
|
|
@@ -8,6 +8,7 @@ export interface IDependencyMatcherValue {
|
|
|
8
8
|
}
|
|
9
9
|
export interface IMatcherDto {
|
|
10
10
|
type: number;
|
|
11
|
+
name: string;
|
|
11
12
|
value?: string | number | boolean | string[] | IDependencyMatcherData | IBetweenMatcherData | IBetweenStringMatcherData | null;
|
|
12
13
|
attribute: string | null;
|
|
13
14
|
negate: boolean;
|
|
@@ -9,8 +9,24 @@ export declare const ENGINE_COMBINER_AND = 0;
|
|
|
9
9
|
export declare const ENGINE_COMBINER_IFELSEIF = 1;
|
|
10
10
|
export declare const ENGINE_COMBINER_IFELSEIF_NO_TREATMENT = 2;
|
|
11
11
|
export declare const ENGINE_BUCKET = 3;
|
|
12
|
+
export declare const ENGINE_MATCHER_ALL = 4;
|
|
13
|
+
export declare const ENGINE_MATCHER_BETWEEN = 5;
|
|
14
|
+
export declare const ENGINE_MATCHER_BOOLEAN = 6;
|
|
15
|
+
export declare const ENGINE_MATCHER_CONTAINS_ALL = 7;
|
|
16
|
+
export declare const ENGINE_MATCHER_CONTAINS_ANY = 8;
|
|
17
|
+
export declare const ENGINE_MATCHER_CONTAINS_STRING = 9;
|
|
12
18
|
export declare const ENGINE_MATCHER_DEPENDENCY = 10;
|
|
13
19
|
export declare const ENGINE_MATCHER_DEPENDENCY_PRE = 11;
|
|
20
|
+
export declare const ENGINE_MATCHER_EQUAL = 12;
|
|
21
|
+
export declare const ENGINE_MATCHER_EQUAL_TO_SET = 13;
|
|
22
|
+
export declare const ENGINE_MATCHER_ENDS_WITH = 14;
|
|
23
|
+
export declare const ENGINE_MATCHER_GREATER = 15;
|
|
24
|
+
export declare const ENGINE_MATCHER_LESS = 16;
|
|
25
|
+
export declare const ENGINE_MATCHER_PART_OF = 17;
|
|
26
|
+
export declare const ENGINE_MATCHER_SEGMENT = 18;
|
|
27
|
+
export declare const ENGINE_MATCHER_STRING = 19;
|
|
28
|
+
export declare const ENGINE_MATCHER_STARTS_WITH = 21;
|
|
29
|
+
export declare const ENGINE_MATCHER_WHITELIST = 22;
|
|
14
30
|
export declare const ENGINE_VALUE = 23;
|
|
15
31
|
export declare const ENGINE_SANITIZE = 24;
|
|
16
32
|
export declare const CLEANUP_REGISTERING = 25;
|
|
@@ -28,7 +44,6 @@ export declare const SYNC_TASK_START = 36;
|
|
|
28
44
|
export declare const SYNC_TASK_EXECUTE = 37;
|
|
29
45
|
export declare const SYNC_TASK_STOP = 38;
|
|
30
46
|
export declare const SETTINGS_SPLITS_FILTER = 39;
|
|
31
|
-
export declare const ENGINE_MATCHER_RESULT = 40;
|
|
32
47
|
export declare const CLIENT_READY_FROM_CACHE = 100;
|
|
33
48
|
export declare const CLIENT_READY = 101;
|
|
34
49
|
export declare const IMPRESSION = 102;
|
|
@@ -16,7 +16,7 @@ export declare class KeyBuilder {
|
|
|
16
16
|
buildHashKey(): string;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* Generates a murmur32 hash based on the authorization key
|
|
19
|
+
* Generates a murmur32 hash based on the authorization key, the feature flags filter query, and version of SplitChanges API.
|
|
20
20
|
* The hash is in hexadecimal format (8 characters max, 32 bits).
|
|
21
21
|
*/
|
|
22
22
|
export declare function getStorageHash(settings: ISettings): string;
|
|
@@ -5,4 +5,4 @@ export declare const SDK_NOT_READY = "not ready";
|
|
|
5
5
|
export declare const EXCEPTION = "exception";
|
|
6
6
|
export declare const SPLIT_ARCHIVED = "archived";
|
|
7
7
|
export declare const NOT_IN_SPLIT = "not in split";
|
|
8
|
-
export declare const UNSUPPORTED_MATCHER_TYPE = "unsupported
|
|
8
|
+
export declare const UNSUPPORTED_MATCHER_TYPE = "targeting rule type unsupported by sdk";
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ISplit, MaybeThenable } from '../dtos/types';
|
|
2
|
-
/**
|
|
3
|
-
* This class provides a skeletal implementation of the ISplitsCacheAsync interface
|
|
4
|
-
* to minimize the effort required to implement this interface.
|
|
5
|
-
*/
|
|
6
|
-
export declare abstract class AbstractSplitsCache {
|
|
7
|
-
/**
|
|
8
|
-
* Check if the splits information is already stored in cache. This data can be preloaded.
|
|
9
|
-
* It is used as condition to emit SDK_SPLITS_CACHE_LOADED, and then SDK_READY_FROM_CACHE.
|
|
10
|
-
*/
|
|
11
|
-
checkCache(): boolean;
|
|
12
|
-
protected abstract addSplit(name: string, split: ISplit): MaybeThenable<boolean>;
|
|
13
|
-
/**
|
|
14
|
-
* Add a list of splits.
|
|
15
|
-
* The returned promise is resolved when the operation success or rejected if it fails (e.g., wrapper operation fails).
|
|
16
|
-
*/
|
|
17
|
-
protected addSplits(entries: [string, ISplit][]): Promise<boolean[]>;
|
|
18
|
-
protected abstract removeSplit(name: string): MaybeThenable<boolean>;
|
|
19
|
-
/**
|
|
20
|
-
* Remove a list of splits.
|
|
21
|
-
* The returned promise is resolved when the operation success, with a boolean array indicating if the splits existed or not.
|
|
22
|
-
* or rejected if it fails (e.g., wrapper operation fails).
|
|
23
|
-
*/
|
|
24
|
-
protected removeSplits(names: string[]): Promise<boolean[]>;
|
|
25
|
-
protected abstract setChangeNumber(changeNumber: number): MaybeThenable<boolean | void>;
|
|
26
|
-
/**
|
|
27
|
-
* Updates the cache with the provided changeNumber, feature flags to add and feature flags to remove.
|
|
28
|
-
*
|
|
29
|
-
* @returns {Promise<boolean>} a promise that resolved once the operation is performed successfully. The fulfillment value is `true` if at least one feature flag was added, modified or removed; or `false` if there was no change.
|
|
30
|
-
* The promise will reject if some storage operation rejects.
|
|
31
|
-
*/
|
|
32
|
-
update(changeNumber: number, toAdd: [string, ISplit][], toRemove?: string[]): Promise<boolean>;
|
|
33
|
-
abstract getSplit(name: string): MaybeThenable<ISplit | null>;
|
|
34
|
-
/**
|
|
35
|
-
* Kill `name` split and set `defaultTreatment` and `changeNumber`.
|
|
36
|
-
* Used for SPLIT_KILL push notifications.
|
|
37
|
-
*
|
|
38
|
-
* @param {string} name
|
|
39
|
-
* @param {string} defaultTreatment
|
|
40
|
-
* @param {number} changeNumber
|
|
41
|
-
* @returns {Promise} a promise that is resolved once the split kill operation is performed. The fulfillment value is a boolean: `true` if the operation successed updating the split or `false` if no split is updated,
|
|
42
|
-
* for instance, if the `changeNumber` is old, or if the split is not found (e.g., `/splitchanges` hasn't been fetched yet), or if the storage fails to apply the update.
|
|
43
|
-
* The promise will never be rejected.
|
|
44
|
-
*/
|
|
45
|
-
killLocally(name: string, defaultTreatment: string, changeNumber: number): Promise<boolean>;
|
|
46
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Compression, KeyList } from './SSEHandler/types';
|
|
2
|
-
/**
|
|
3
|
-
* Decode, decompress and parse the provided 'data' into a KeyList object
|
|
4
|
-
*
|
|
5
|
-
* @param {string} data
|
|
6
|
-
* @param {number} compression
|
|
7
|
-
* @returns {{a?: string[], r?: string[] }}
|
|
8
|
-
* @throws if data string cannot be decoded, decompressed or parsed
|
|
9
|
-
*/
|
|
10
|
-
export declare function parseKeyList(data: string, compression: Compression): KeyList;
|
|
11
|
-
/**
|
|
12
|
-
* Decode, decompress and parse the provided 'data' into a Bitmap object
|
|
13
|
-
*
|
|
14
|
-
* @param {string} data
|
|
15
|
-
* @param {number} compression
|
|
16
|
-
* @returns {Uint8Array}
|
|
17
|
-
* @throws if data string cannot be decoded or decompressed
|
|
18
|
-
*/
|
|
19
|
-
export declare function parseBitmap(data: string, compression: Compression): Uint8Array;
|
|
20
|
-
/**
|
|
21
|
-
* Check if the 'bitmap' bit at 'hash64hex' position is 1
|
|
22
|
-
*
|
|
23
|
-
* @param {Uint8Array} bitmap
|
|
24
|
-
* @param {string} hash64hex 16-chars string, representing a number in hexa
|
|
25
|
-
* @returns {boolean}
|
|
26
|
-
*/
|
|
27
|
-
export declare function isInBitmap(bitmap: Uint8Array, hash64hex: string): boolean;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ILogger } from '../../logger/types';
|
|
2
|
-
/** validates the given SDK key */
|
|
3
|
-
export declare function validateApiKey(log: ILogger, maybeSdkKey: any): string | false;
|
|
4
|
-
export declare const usedKeysMap: Record<string, number>;
|
|
5
|
-
/** validates the given SDK key and also warns if it is in use */
|
|
6
|
-
export declare function validateAndTrackApiKey(log: ILogger, maybeSdkKey: any): string | false;
|
|
7
|
-
export declare function releaseApiKey(sdkKey: string): void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LogLevel } from '../../../types';
|
|
2
|
-
/**
|
|
3
|
-
* The debug level can be set globally via the `localStorage.splitio_debug` item in browser, or the `SPLITIO_DEBUG` env var in NodeJS.
|
|
4
|
-
* Acceptable values are: 'DEBUG', 'INFO', 'WARN', 'ERROR', 'NONE'.
|
|
5
|
-
* Other acceptable values are 'on', 'enable' and 'enabled', which are equivalent to 'DEBUG'.
|
|
6
|
-
* Any other value, like undefined, null or an invalid string, returns `undefined` and means that the global log level is not set.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getGlobalLogLevel(): LogLevel | undefined;
|
|
File without changes
|