Skip to content

Commit eb9110c

Browse files
committed
saving
1 parent a961147 commit eb9110c

File tree

15 files changed

+532
-245
lines changed

15 files changed

+532
-245
lines changed

lib/core/project_config/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ interface TryCreatingProjectConfigConfig {
4343
jsonSchemaValidator?: {
4444
validate(jsonObject: unknown): boolean;
4545
};
46-
logger: LogHandler;
46+
logger?: LogHandler;
4747
}
4848

4949
interface Event {
@@ -819,12 +819,12 @@ export const tryCreatingProjectConfig = function(
819819
if (config.jsonSchemaValidator) {
820820
try {
821821
config.jsonSchemaValidator.validate(newDatafileObj);
822-
config.logger.log(LOG_LEVEL.INFO, LOG_MESSAGES.VALID_DATAFILE, MODULE_NAME);
822+
config.logger?.log(LOG_LEVEL.INFO, LOG_MESSAGES.VALID_DATAFILE, MODULE_NAME);
823823
} catch (error) {
824824
return { configObj: null, error };
825825
}
826826
} else {
827-
config.logger.log(LOG_LEVEL.INFO, LOG_MESSAGES.SKIPPING_JSON_VALIDATION, MODULE_NAME);
827+
config.logger?.log(LOG_LEVEL.INFO, LOG_MESSAGES.SKIPPING_JSON_VALIDATION, MODULE_NAME);
828828
}
829829

830830
const createProjectConfigArgs = [newDatafileObj];

lib/index.browser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ const createInstance = function(config: Config): Client | null {
139139
eventProcessor: eventProcessor.createEventProcessor(eventProcessorConfig),
140140
logger,
141141
errorHandler,
142-
datafileManager: config.sdkKey
143-
? createHttpPollingDatafileManager(config.sdkKey, logger, config.datafile, config.datafileOptions)
144-
: undefined,
142+
// datafileManager: config.sdkKey
143+
// ? createHttpPollingDatafileManager(config.sdkKey, logger, config.datafile, config.datafileOptions)
144+
// : undefined,
145145
notificationCenter,
146146
isValidInstance,
147147
odpManager: odpExplicitlyOff ? undefined

lib/index.node.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ const createInstance = function(config: Config): Client | null {
115115
eventProcessor,
116116
logger,
117117
errorHandler,
118-
datafileManager: config.sdkKey
119-
? createHttpPollingDatafileManager(config.sdkKey, logger, config.datafile, config.datafileOptions)
120-
: undefined,
118+
// datafileManager: config.sdkKey
119+
// ? createHttpPollingDatafileManager(config.sdkKey, logger, config.datafile, config.datafileOptions)
120+
// : undefined,
121121
notificationCenter,
122122
isValidInstance,
123123
odpManager: odpExplicitlyOff ? undefined

0 commit comments

Comments
 (0)