Skip to content

Commit 3759938

Browse files
committed
mandatory export
1 parent 96e1b80 commit 3759938

File tree

125 files changed

+666
-74
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+666
-74
lines changed

lib/client_factory.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import { InMemoryLruCache } from "./utils/cache/in_memory_lru_cache";
2929
import { transformCache, CacheWithRemove } from "./utils/cache/cache";
3030
import { ConstantBackoff } from "./utils/repeater/repeater";
3131

32+
export const __supportedPlatforms = ['__universal__'] as const;
33+
3234
export type OptimizelyFactoryConfig = Config & {
3335
requestHandler: RequestHandler;
3436
}

lib/common_exports.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
export const __supportedPlatforms = ['__universal__'] as const;
18+
1719
export { createStaticProjectConfigManager } from './project_config/config_manager_factory';
1820

1921
export { LogLevel } from './logging/logger';

lib/core/audience_evaluator/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import { CONDITION_EVALUATOR_ERROR, UNKNOWN_CONDITION_TYPE } from 'error_message
2121
import { AUDIENCE_EVALUATION_RESULT, EVALUATING_AUDIENCE} from 'log_message';
2222
import { LoggerFacade } from '../../logging/logger';
2323

24+
export const __supportedPlatforms = ['__universal__'] as const;
25+
2426
export class AudienceEvaluator {
2527
private logger?: LoggerFacade;
2628

lib/core/audience_evaluator/odp_segment_condition_evaluator/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import { UNKNOWN_MATCH_TYPE } from 'error_message';
1717
import { LoggerFacade } from '../../../logging/logger';
1818
import { Condition, OptimizelyUserContext } from '../../../shared_types';
1919

20+
export const __supportedPlatforms = ['__universal__'] as const;
21+
2022
const QUALIFIED_MATCH_TYPE = 'qualified';
2123

2224
const MATCH_TYPES = [

lib/core/bucketer/bucket_value_generator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import murmurhash from 'murmurhash';
1717
import { INVALID_BUCKETING_ID } from 'error_message';
1818
import { OptimizelyError } from '../../error/optimizly_error';
1919

20+
export const __supportedPlatforms = ['__universal__'] as const;
21+
2022
const HASH_SEED = 1;
2123
const MAX_HASH_VALUE = Math.pow(2, 32);
2224
const MAX_TRAFFIC_VALUE = 10000;

lib/core/bucketer/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
*/
2020
import { LoggerFacade } from '../../logging/logger';
2121
import {
22+
export const __supportedPlatforms = ['__universal__'] as const;
23+
24+
2225
DecisionResponse,
2326
BucketerParams,
2427
TrafficAllocation,

lib/core/condition_tree_evaluator/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License. *
1515
***************************************************************************/
1616

17+
export const __supportedPlatforms = ['__universal__'] as const;
18+
1719
const AND_CONDITION = 'and';
1820
const OR_CONDITION = 'or';
1921
const NOT_CONDITION = 'not';

lib/core/custom_attribute_condition_evaluator/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ import { Condition, OptimizelyUserContext } from '../../shared_types';
1818
import fns from '../../utils/fns';
1919
import { compareVersion } from '../../utils/semantic_version';
2020
import {
21+
export const __supportedPlatforms = ['__universal__'] as const;
22+
23+
2124
MISSING_ATTRIBUTE_VALUE,
2225
UNEXPECTED_TYPE_NULL,
2326
} from 'log_message';

lib/core/decision/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ import { DecisionObj } from '../decision_service';
2121
* @param {DecisionObj} decisionObj Object representing decision
2222
* @returns {string} Experiment key or empty string if experiment is null
2323
*/
24+
export const __supportedPlatforms = ['__universal__'] as const;
25+
26+
2427
export function getExperimentKey(decisionObj: DecisionObj): string {
2528
return decisionObj.experiment?.key ?? '';
2629
}

lib/core/decision_service/cmab/cmab_client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import { isSuccessStatusCode } from "../../../utils/http_request_handler/http_ut
2424
import { BackoffController } from "../../../utils/repeater/repeater";
2525
import { Producer } from "../../../utils/type";
2626

27+
export const __supportedPlatforms = ['__universal__'] as const;
28+
2729
export interface CmabClient {
2830
fetchDecision(
2931
ruleId: string,

0 commit comments

Comments
 (0)