Skip to content

Commit

Permalink
fix relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
zhukaihan committed Jul 30, 2024
1 parent d5e4cd7 commit 1010ec4
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 20 deletions.
6 changes: 3 additions & 3 deletions packages/node/src/local/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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';
Expand Down
3 changes: 2 additions & 1 deletion packages/node/src/local/cohort/cohort-api.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
15 changes: 7 additions & 8 deletions packages/node/src/local/cohort/fetcher.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/local/cohort/storage.ts
Original file line number Diff line number Diff line change
@@ -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<string, Cohort> = {};
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/local/cohort/updater.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CohortStorage } from 'src/types/cohort';
import { CohortStorage } from '../../types/cohort';

export interface CohortUpdater {
/**
Expand Down
3 changes: 1 addition & 2 deletions packages/node/src/local/poller.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
7 changes: 3 additions & 4 deletions packages/node/src/local/updater.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down

0 comments on commit 1010ec4

Please sign in to comment.