Skip to content

Commit

Permalink
[FSSDK-10941] move notification_center to the lib root directory (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
raju-opti authored Nov 26, 2024
1 parent 95ea7d3 commit 5929210
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion lib/core/decision_service/index.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
} from '../../utils/enums';
import { createLogger } from '../../plugins/logger';
import { getForwardingEventProcessor } from '../../event_processor/forwarding_event_processor';
import { createNotificationCenter } from '../notification_center';
import { createNotificationCenter } from '../../notification_center';
import Optimizely from '../../optimizely';
import OptimizelyUserContext from '../../optimizely_user_context';
import projectConfig, { createProjectConfig } from '../../project_config/project_config';
Expand Down
2 changes: 1 addition & 1 deletion lib/index.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import defaultEventDispatcher from './event_processor/event_dispatcher/default_d
import sendBeaconEventDispatcher from './event_processor/event_dispatcher/send_beacon_dispatcher.browser';
import * as enums from './utils/enums';
import * as loggerPlugin from './plugins/logger';
import { createNotificationCenter } from './core/notification_center';
import { createNotificationCenter } from './notification_center';
import { OptimizelyDecideOption, Client, Config, OptimizelyOptions } from './shared_types';
import { BrowserOdpManager } from './plugins/odp_manager/index.browser';
import Optimizely from './optimizely';
Expand Down
2 changes: 1 addition & 1 deletion lib/index.lite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import defaultErrorHandler from './plugins/error_handler';
import * as enums from './utils/enums';
import * as loggerPlugin from './plugins/logger';
import Optimizely from './optimizely';
import { createNotificationCenter } from './core/notification_center';
import { createNotificationCenter } from './notification_center';
import { OptimizelyDecideOption, Client, ConfigLite } from './shared_types';
import * as commonExports from './common_exports';

Expand Down
2 changes: 1 addition & 1 deletion lib/index.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import * as loggerPlugin from './plugins/logger';
import configValidator from './utils/config_validator';
import defaultErrorHandler from './plugins/error_handler';
import defaultEventDispatcher from './event_processor/event_dispatcher/default_dispatcher.node';
import { createNotificationCenter } from './core/notification_center';
import { createNotificationCenter } from './notification_center';
import { OptimizelyDecideOption, Client, Config } from './shared_types';
import { NodeOdpManager } from './plugins/odp_manager/index.node';
import * as commonExports from './common_exports';
Expand Down
2 changes: 1 addition & 1 deletion lib/index.react_native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import configValidator from './utils/config_validator';
import defaultErrorHandler from './plugins/error_handler';
import * as loggerPlugin from './plugins/logger/index.react_native';
import defaultEventDispatcher from './event_processor/event_dispatcher/default_dispatcher.browser';
import { createNotificationCenter } from './core/notification_center';
import { createNotificationCenter } from './notification_center';
import { OptimizelyDecideOption, Client, Config } from './shared_types';
import { BrowserOdpManager } from './plugins/odp_manager/index.browser';
import * as commonExports from './common_exports';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import sinon from 'sinon';
import { assert } from 'chai';

import { createNotificationCenter } from './';
import * as enums from '../../utils/enums';
import { createLogger } from '../../plugins/logger';
import errorHandler from '../../plugins/error_handler';
import * as enums from '../utils/enums';
import { createLogger } from '../plugins/logger';
import errorHandler from '../plugins/error_handler';

var LOG_LEVEL = enums.LOG_LEVEL;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { LogHandler, ErrorHandler } from '../../modules/logging';
import { objectValues } from '../../utils/fns';
import { NotificationListener, ListenerPayload } from '../../shared_types';
import { LogHandler, ErrorHandler } from '../modules/logging';
import { objectValues } from '../utils/fns';
import { NotificationListener, ListenerPayload } from '../shared_types';

import {
LOG_LEVEL,
LOG_MESSAGES,
NOTIFICATION_TYPES,
} from '../../utils/enums';
} from '../utils/enums';

const MODULE_NAME = 'NOTIFICATION_CENTER';

Expand Down
2 changes: 1 addition & 1 deletion lib/optimizely/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { getMockProjectConfigManager } from '../tests/mock/mock_project_config_m
import * as logger from '../plugins/logger';
import * as jsonSchemaValidator from '../utils/json_schema_validator';
import { LOG_LEVEL } from '../common_exports';
import { createNotificationCenter } from '../core/notification_center';
import { createNotificationCenter } from '../notification_center';
import testData from '../tests/test_data';
import { getForwardingEventProcessor } from '../event_processor/forwarding_event_processor';
import { LoggerFacade } from '../modules/logging';
Expand Down
2 changes: 1 addition & 1 deletion lib/optimizely/index.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import * as jsonSchemaValidator from '../utils/json_schema_validator';
import * as projectConfig from '../project_config/project_config';
import testData from '../tests/test_data';
import { getForwardingEventProcessor } from '../event_processor/forwarding_event_processor';
import { createNotificationCenter } from '../core/notification_center';
import { createNotificationCenter } from '../notification_center';
import { createProjectConfig } from '../project_config/project_config';
import { getMockProjectConfigManager } from '../tests/mock/mock_project_config_manager';

Expand Down
2 changes: 1 addition & 1 deletion lib/optimizely/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import { LoggerFacade, ErrorHandler } from '../modules/logging';
import { sprintf, objectValues } from '../utils/fns';
import { NotificationCenter } from '../core/notification_center';
import { NotificationCenter } from '../notification_center';
import { EventProcessor } from '../event_processor/event_processor';

import { IOdpManager } from '../core/odp/odp_manager';
Expand Down
2 changes: 1 addition & 1 deletion lib/optimizely_user_context/index.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { NOTIFICATION_TYPES } from '../utils/enums';

import OptimizelyUserContext from './';
import { createLogger } from '../plugins/logger';
import { createNotificationCenter } from '../core/notification_center';
import { createNotificationCenter } from '../notification_center';
import Optimizely from '../optimizely';
import errorHandler from '../plugins/error_handler';
import { CONTROL_ATTRIBUTES, LOG_LEVEL, LOG_MESSAGES } from '../utils/enums';
Expand Down
2 changes: 1 addition & 1 deletion lib/shared_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import { ErrorHandler, LogHandler, LogLevel, LoggerFacade } from './modules/logging';

import { NotificationCenter as NotificationCenterImpl } from './core/notification_center';
import { NotificationCenter as NotificationCenterImpl } from './notification_center';
import { NOTIFICATION_TYPES } from './utils/enums';

import { IOptimizelyUserContext as OptimizelyUserContext } from './optimizely_user_context';
Expand Down

0 comments on commit 5929210

Please sign in to comment.