Skip to content

Commit a086e62

Browse files
committed
saving
1 parent 2d25fd5 commit a086e62

Some content is hidden

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

41 files changed

+2031
-1743
lines changed

lib/common_exports.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@
1717
export { LogLevel, LogHandler, getLogger, setLogHandler } from './modules/logging';
1818
export { LOG_LEVEL } from './utils/enums';
1919
export { createLogger } from './plugins/logger';
20+
export { createStaticProjectConfigManager } from './project_config/config_manager_factory';
21+
export { PollingConfigManagerConfig } from './project_config/config_manager_factory';

lib/core/decision_service/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import {
3838
getVariationKeyFromId,
3939
isActive,
4040
ProjectConfig,
41-
} from '../project_config';
41+
} from '../../project_config';
4242
import { AudienceEvaluator, createAudienceEvaluator } from '../audience_evaluator';
4343
import * as stringValidator from '../../utils/string_value_validator';
4444
import {

lib/core/event_builder/event_helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
getEventId,
2828
getLayerId,
2929
ProjectConfig,
30-
} from '../project_config';
30+
} from '../../project_config';
3131

3232
const logger = getLogger('EVENT_BUILDER');
3333

lib/core/event_builder/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
getLayerId,
2525
getVariationKeyFromId,
2626
ProjectConfig,
27-
} from '../project_config';
27+
} from '../../project_config';
2828
import * as eventTagUtils from '../../utils/event_tag_utils';
2929
import { isAttributeValid } from '../../utils/attributes_validator';
3030
import { EventTags, UserAttributes, Event as EventLoggingEndpoint } from '../../shared_types';

lib/core/optimizely_config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616
import { LoggerFacade, getLogger } from '../../modules/logging';
17-
import { ProjectConfig } from '../project_config';
17+
import { ProjectConfig } from '../../project_config';
1818
import { DEFAULT_OPERATOR_TYPES } from '../condition_tree_evaluator';
1919
import {
2020
Audience,

lib/index.browser.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ import eventProcessorConfigValidator from './utils/event_processor_config_valida
2727
import { createNotificationCenter } from './core/notification_center';
2828
import { default as eventProcessor } from './plugins/event_processor';
2929
import { OptimizelyDecideOption, Client, Config, OptimizelyOptions } from './shared_types';
30-
import { createHttpPollingDatafileManager } from './plugins/datafile_manager/browser_http_polling_datafile_manager';
3130
import { BrowserOdpManager } from './plugins/odp_manager/index.browser';
3231
import Optimizely from './optimizely';
3332
import { IUserAgentParser } from './core/odp/user_agent_parser';
3433
import { getUserAgentParser } from './plugins/odp/user_agent_parser/index.browser';
3534
import * as commonExports from './common_exports';
35+
import { PollingConfigManagerConfig } from './project_config/config_manager_factory';
36+
import { createPollingProjectConfigManager } from './project_config/config_manager_factory.browser';
3637

3738
const logger = getLogger();
3839
logHelper.setLogHandler(loggerPlugin.createLogger());
@@ -198,6 +199,7 @@ export {
198199
OptimizelyDecideOption,
199200
IUserAgentParser,
200201
getUserAgentParser,
202+
createPollingProjectConfigManager,
201203
};
202204

203205
export * from './common_exports';
@@ -215,6 +217,7 @@ export default {
215217
__internalResetRetryState,
216218
OptimizelyDecideOption,
217219
getUserAgentParser,
220+
createPollingProjectConfigManager,
218221
};
219222

220223
export * from './export_types';

lib/index.node.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import eventProcessorConfigValidator from './utils/event_processor_config_valida
2525
import { createNotificationCenter } from './core/notification_center';
2626
import { createEventProcessor } from './plugins/event_processor';
2727
import { OptimizelyDecideOption, Client, Config } from './shared_types';
28-
import { createHttpPollingDatafileManager } from './plugins/datafile_manager/http_polling_datafile_manager';
2928
import { NodeOdpManager } from './plugins/odp_manager/index.node';
3029
import * as commonExports from './common_exports';
30+
import { createPollingProjectConfigManager } from './project_config/config_manager_factory.node';
3131

3232
const logger = getLogger();
3333
setLogLevel(LogLevel.ERROR);
@@ -144,6 +144,7 @@ export {
144144
setLogLevel,
145145
createInstance,
146146
OptimizelyDecideOption,
147+
createPollingProjectConfigManager
147148
};
148149

149150
export * from './common_exports';
@@ -158,6 +159,7 @@ export default {
158159
setLogLevel,
159160
createInstance,
160161
OptimizelyDecideOption,
162+
createPollingProjectConfigManager
161163
};
162164

163165
export * from './export_types';

lib/index.react_native.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import eventProcessorConfigValidator from './utils/event_processor_config_valida
2525
import { createNotificationCenter } from './core/notification_center';
2626
import { createEventProcessor } from './plugins/event_processor/index.react_native';
2727
import { OptimizelyDecideOption, Client, Config } from './shared_types';
28-
import { createHttpPollingDatafileManager } from './plugins/datafile_manager/react_native_http_polling_datafile_manager';
2928
import { BrowserOdpManager } from './plugins/odp_manager/index.browser';
3029
import * as commonExports from './common_exports';
30+
import { createPollingProjectConfigManager } from './project_config/config_manager_factory.react_native';
3131

3232
import 'fast-text-encoding';
3333
import 'react-native-get-random-values';
@@ -154,6 +154,7 @@ export {
154154
setLogLevel,
155155
createInstance,
156156
OptimizelyDecideOption,
157+
createPollingProjectConfigManager,
157158
};
158159

159160
export * from './common_exports';
@@ -168,6 +169,7 @@ export default {
168169
setLogLevel,
169170
createInstance,
170171
OptimizelyDecideOption,
172+
createPollingProjectConfigManager,
171173
};
172174

173175
export * from './export_types';

lib/modules/datafile-manager/browserDatafileManager.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { makeGetRequest } from './browserRequest';
18-
import HttpPollingDatafileManager from './httpPollingDatafileManager';
19-
import { Headers, AbortableRequest } from './http';
20-
import { DatafileManagerConfig } from './datafileManager';
17+
// import { makeGetRequest } from './browserRequest';
18+
// import HttpPollingDatafileManager from './httpPollingDatafileManager';
19+
// import { Headers, AbortableRequest } from './http';
20+
// import { DatafileManagerConfig } from './datafileManager';
2121

22-
export default class BrowserDatafileManager extends HttpPollingDatafileManager {
23-
protected makeGetRequest(reqUrl: string, headers: Headers): AbortableRequest {
24-
return makeGetRequest(reqUrl, headers);
25-
}
22+
// export default class BrowserDatafileManager extends HttpPollingDatafileManager {
23+
// protected makeGetRequest(reqUrl: string, headers: Headers): AbortableRequest {
24+
// return makeGetRequest(reqUrl, headers);
25+
// }
2626

27-
protected getConfigDefaults(): Partial<DatafileManagerConfig> {
28-
return {
29-
autoUpdate: false,
30-
};
31-
}
32-
}
27+
// protected getConfigDefaults(): Partial<DatafileManagerConfig> {
28+
// return {
29+
// autoUpdate: false,
30+
// };
31+
// }
32+
// }
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
/**
2-
* Copyright 2022, Optimizely
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
1+
// /**
2+
// * Copyright 2022, Optimizely
3+
// *
4+
// * Licensed under the Apache License, Version 2.0 (the "License");
5+
// * you may not use this file except in compliance with the License.
6+
// * You may obtain a copy of the License at
7+
// *
8+
// * http://www.apache.org/licenses/LICENSE-2.0
9+
// *
10+
// * Unless required by applicable law or agreed to in writing, software
11+
// * distributed under the License is distributed on an "AS IS" BASIS,
12+
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// * See the License for the specific language governing permissions and
14+
// * limitations under the License.
15+
// */
1616

17-
export * from './datafileManager';
18-
export { default as HttpPollingDatafileManager } from './reactNativeDatafileManager';
17+
// export * from './datafileManager';
18+
// export { default as HttpPollingDatafileManager } from './reactNativeDatafileManager';

0 commit comments

Comments
 (0)