Skip to content

Commit b62aad8

Browse files
committed
fix imports
1 parent c7be4d4 commit b62aad8

File tree

121 files changed

+122
-238
lines changed

Some content is hidden

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

121 files changed

+122
-238
lines changed

lib/client_factory.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { Platform } from './platform_support';
1716
import { Config } from "./shared_types";
1817
import { extractLogger } from "./logging/logger_factory";
1918
import { extractErrorNotifier } from "./error/error_notifier_factory";
@@ -29,7 +28,7 @@ import { CmabCacheValue, DefaultCmabService } from "./core/decision_service/cmab
2928
import { InMemoryLruCache } from "./utils/cache/in_memory_lru_cache";
3029
import { transformCache, CacheWithRemove } from "./utils/cache/cache";
3130
import { ConstantBackoff } from "./utils/repeater/repeater";
32-
31+
import { Platform } from './platform_support';
3332

3433
export type OptimizelyFactoryConfig = Config & {
3534
requestHandler: RequestHandler;

lib/common_exports.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Platform } from './platform_support';
2-
31
/**
42
* Copyright 2023-2025 Optimizely
53
*
@@ -17,6 +15,8 @@ import { Platform } from './platform_support';
1715
*/
1816

1917

18+
import { Platform } from './platform_support';
19+
2020
export { createStaticProjectConfigManager } from './project_config/config_manager_factory';
2121

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

lib/core/audience_evaluator/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { Platform } from './../../platform_support';
1716
import * as conditionTreeEvaluator from '../condition_tree_evaluator';
1817
import * as customAttributeConditionEvaluator from '../custom_attribute_condition_evaluator';
1918
import * as odpSegmentsConditionEvaluator from './odp_segment_condition_evaluator';
2019
import { Audience, Condition, OptimizelyUserContext } from '../../shared_types';
2120
import { CONDITION_EVALUATOR_ERROR, UNKNOWN_CONDITION_TYPE } from 'error_message';
2221
import { AUDIENCE_EVALUATION_RESULT, EVALUATING_AUDIENCE} from 'log_message';
2322
import { LoggerFacade } from '../../logging/logger';
24-
23+
import { Platform } from '../../platform_support';
2524

2625
export class AudienceEvaluator {
2726
private logger?: LoggerFacade;

lib/core/audience_evaluator/odp_segment_condition_evaluator/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
* See the License for the specific language governing permissions and *
1414
* limitations under the License. *
1515
***************************************************************************/
16-
import { Platform } from './../../../platform_support';
1716
import { UNKNOWN_MATCH_TYPE } from 'error_message';
1817
import { LoggerFacade } from '../../../logging/logger';
1918
import { Condition, OptimizelyUserContext } from '../../../shared_types';
20-
19+
import { Platform } from '../../../platform_support';
2120

2221
const QUALIFIED_MATCH_TYPE = 'qualified';
2322

lib/core/bucketer/bucket_value_generator.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { Platform } from './../../platform_support';
1716
import murmurhash from 'murmurhash';
1817
import { INVALID_BUCKETING_ID } from 'error_message';
1918
import { OptimizelyError } from '../../error/optimizly_error';
20-
19+
import { Platform } from '../../platform_support';
2120

2221
const HASH_SEED = 1;
2322
const MAX_HASH_VALUE = Math.pow(2, 32);

lib/core/bucketer/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
/**
1818
* Bucketer API for determining the variation id from the specified parameters
1919
*/
20-
import { Platform } from './../../platform_support';
2120
import { LoggerFacade } from '../../logging/logger';
2221
import {
2322
DecisionResponse,
@@ -29,7 +28,7 @@ import { INVALID_GROUP_ID } from 'error_message';
2928
import { OptimizelyError } from '../../error/optimizly_error';
3029
import { generateBucketValue } from './bucket_value_generator';
3130
import { DecisionReason } from '../decision_service';
32-
31+
import { Platform } from '../../platform_support';
3332

3433
export const USER_NOT_IN_ANY_EXPERIMENT = 'User %s is not in any experiment of group %s.';
3534
export const USER_NOT_BUCKETED_INTO_EXPERIMENT_IN_GROUP = 'User %s is not in experiment %s of group %s.';

lib/core/condition_tree_evaluator/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Platform } from './../../platform_support';
2-
31
/****************************************************************************
42
* Copyright 2018, 2021, Optimizely, Inc. and contributors *
53
* *
@@ -17,6 +15,8 @@ import { Platform } from './../../platform_support';
1715
***************************************************************************/
1816

1917

18+
import { Platform } from '../../platform_support';
19+
2020
const AND_CONDITION = 'and';
2121
const OR_CONDITION = 'or';
2222
const NOT_CONDITION = 'not';

lib/core/custom_attribute_condition_evaluator/index.ts

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

17-
import { Platform } from './../../platform_support';
1817
import { Condition, OptimizelyUserContext } from '../../shared_types';
1918

2019
import fns from '../../utils/fns';
@@ -30,7 +29,7 @@ import {
3029
UNKNOWN_MATCH_TYPE
3130
} from 'error_message';
3231
import { LoggerFacade } from '../../logging/logger';
33-
32+
import { Platform } from '../../platform_support';
3433
const EXACT_MATCH_TYPE = 'exact';
3534
const EXISTS_MATCH_TYPE = 'exists';
3635
const GREATER_OR_EQUAL_THAN_MATCH_TYPE = 'ge';

lib/core/decision/index.ts

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

17-
import { Platform } from './../../platform_support';
1817
import { DecisionObj } from '../decision_service';
19-
18+
import { Platform } from '../../platform_support';
2019
/**
2120
* Get experiment key from the provided decision object
2221
* @param {DecisionObj} decisionObj Object representing decision

lib/core/decision_service/cmab/cmab_client.ts

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

17-
import { Platform } from './../../../platform_support';
1817
import { OptimizelyError } from "../../../error/optimizly_error";
1918
import { CMAB_FETCH_FAILED, INVALID_CMAB_FETCH_RESPONSE } from "../../../message/error_message";
2019
import { UserAttributes } from "../../../shared_types";
@@ -24,7 +23,7 @@ import { RequestHandler } from "../../../utils/http_request_handler/http";
2423
import { isSuccessStatusCode } from "../../../utils/http_request_handler/http_util";
2524
import { BackoffController } from "../../../utils/repeater/repeater";
2625
import { Producer } from "../../../utils/type";
27-
26+
import { Platform } from '../../../platform_support';
2827

2928
export interface CmabClient {
3029
fetchDecision(

0 commit comments

Comments
 (0)