diff --git a/packages/node/src/local/client.ts b/packages/node/src/local/client.ts index 50be6ee..8dc393c 100644 --- a/packages/node/src/local/client.ts +++ b/packages/node/src/local/client.ts @@ -5,15 +5,13 @@ import { topologicalSort, } from '@amplitude/experiment-core'; import EventSource from 'eventsource'; -import { USER_GROUP_TYPE } from 'src/types/cohort'; -import { CohortUtils } from 'src/util/cohort'; -import { populateLocalConfigDefaults } from 'src/util/config'; import { Assignment, AssignmentService } from '../assignment/assignment'; import { InMemoryAssignmentFilter } from '../assignment/assignment-filter'; import { AmplitudeAssignmentService } from '../assignment/assignment-service'; import { FetchHttpClient } from '../transport/http'; import { StreamEventSourceFactory } from '../transport/stream'; +import { USER_GROUP_TYPE } from '../types/cohort'; import { AssignmentConfig, AssignmentConfigDefaults, @@ -23,6 +21,8 @@ import { FlagConfigCache } from '../types/flag'; import { HttpClient } from '../types/transport'; import { ExperimentUser } from '../types/user'; import { Variant, Variants } from '../types/variant'; +import { CohortUtils } from '../util/cohort'; +import { populateLocalConfigDefaults } from '../util/config'; import { ConsoleLogger } from '../util/logger'; import { Logger } from '../util/logger'; import { convertUserToEvaluationContext } from '../util/user'; diff --git a/packages/node/src/local/cohort/cohort-api.ts b/packages/node/src/local/cohort/cohort-api.ts index 95d1f76..3986499 100644 --- a/packages/node/src/local/cohort/cohort-api.ts +++ b/packages/node/src/local/cohort/cohort-api.ts @@ -1,5 +1,6 @@ import { HttpClient } from '@amplitude/experiment-core'; -import { Cohort } from 'src/types/cohort'; + +import { Cohort } from '../../types/cohort'; export type GetCohortOptions = { libraryName: string; diff --git a/packages/node/src/local/cohort/fetcher.ts b/packages/node/src/local/cohort/fetcher.ts index a9d78d2..3673995 100644 --- a/packages/node/src/local/cohort/fetcher.ts +++ b/packages/node/src/local/cohort/fetcher.ts @@ -1,12 +1,11 @@ -import { WrapperClient } from 'src/transport/http'; -import { Cohort } from 'src/types/cohort'; -import { CohortConfigDefaults } from 'src/types/config'; -import { HttpClient } from 'src/types/transport'; -import { BackoffPolicy, doWithBackoffFailLoudly } from 'src/util/backoff'; -import { ConsoleLogger, Logger } from 'src/util/logger'; -import { Mutex, Executor } from 'src/util/threading'; - import { version as PACKAGE_VERSION } from '../../../gen/version'; +import { WrapperClient } from '../../transport/http'; +import { Cohort } from '../../types/cohort'; +import { CohortConfigDefaults } from '../../types/config'; +import { HttpClient } from '../../types/transport'; +import { BackoffPolicy, doWithBackoffFailLoudly } from '../../util/backoff'; +import { ConsoleLogger, Logger } from '../../util/logger'; +import { Mutex, Executor } from '../../util/threading'; import { SdkCohortApi } from './cohort-api'; diff --git a/packages/node/src/local/cohort/storage.ts b/packages/node/src/local/cohort/storage.ts index 42e114a..90aecce 100644 --- a/packages/node/src/local/cohort/storage.ts +++ b/packages/node/src/local/cohort/storage.ts @@ -1,4 +1,4 @@ -import { Cohort, CohortStorage, USER_GROUP_TYPE } from 'src/types/cohort'; +import { Cohort, CohortStorage, USER_GROUP_TYPE } from '../../types/cohort'; export class InMemoryCohortStorage implements CohortStorage { store: Record = {}; diff --git a/packages/node/src/local/cohort/updater.ts b/packages/node/src/local/cohort/updater.ts index 7b93c87..b696313 100644 --- a/packages/node/src/local/cohort/updater.ts +++ b/packages/node/src/local/cohort/updater.ts @@ -1,4 +1,4 @@ -import { CohortStorage } from 'src/types/cohort'; +import { CohortStorage } from '../../types/cohort'; export interface CohortUpdater { /** diff --git a/packages/node/src/local/poller.ts b/packages/node/src/local/poller.ts index 4ca1332..b523d3e 100644 --- a/packages/node/src/local/poller.ts +++ b/packages/node/src/local/poller.ts @@ -1,5 +1,4 @@ -import { CohortStorage } from 'src/types/cohort'; - +import { CohortStorage } from '../types/cohort'; import { LocalEvaluationDefaults } from '../types/config'; import { FlagConfigCache } from '../types/flag'; import { BackoffPolicy, doWithBackoffFailLoudly } from '../util/backoff'; diff --git a/packages/node/src/local/updater.ts b/packages/node/src/local/updater.ts index f07c903..1068c58 100644 --- a/packages/node/src/local/updater.ts +++ b/packages/node/src/local/updater.ts @@ -1,8 +1,7 @@ -import { CohortStorage } from 'src/types/cohort'; -import { CohortUtils } from 'src/util/cohort'; -import { ConsoleLogger, Logger } from 'src/util/logger'; - import { FlagConfig, FlagConfigCache } from '..'; +import { CohortStorage } from '../types/cohort'; +import { CohortUtils } from '../util/cohort'; +import { ConsoleLogger, Logger } from '../util/logger'; import { CohortFetcher } from './cohort/fetcher';