|
1 |
| -/**************************************************************************** |
2 |
| - * Copyright 2020-2024, Optimizely, Inc. and contributors * |
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 |
| - * https://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 2020-2024, 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 | + * https://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 | + */ |
16 | 16 |
|
17 | 17 | import { LoggerFacade, ErrorHandler } from '../modules/logging';
|
18 | 18 | import { sprintf, objectValues } from '../utils/fns';
|
19 | 19 | import { NotificationCenter } from '../core/notification_center';
|
20 | 20 | import { EventProcessor } from '../modules/event_processor';
|
21 | 21 |
|
22 | 22 | import { IOdpManager } from '../core/odp/odp_manager';
|
23 |
| -import { OdpConfig } from '../core/odp/odp_config'; |
24 | 23 | import { OdpEvent } from '../core/odp/odp_event';
|
25 | 24 | import { OptimizelySegmentOption } from '../core/odp/optimizely_segment_option';
|
26 | 25 |
|
@@ -1328,12 +1327,12 @@ export default class Optimizely implements Client {
|
1328 | 1327 | });
|
1329 | 1328 | this.readyTimeouts = {};
|
1330 | 1329 | return eventProcessorStoppedPromise.then(
|
1331 |
| - function() { |
| 1330 | + function () { |
1332 | 1331 | return {
|
1333 | 1332 | success: true,
|
1334 | 1333 | };
|
1335 | 1334 | },
|
1336 |
| - function(err) { |
| 1335 | + function (err) { |
1337 | 1336 | return {
|
1338 | 1337 | success: false,
|
1339 | 1338 | reason: String(err),
|
@@ -1404,7 +1403,7 @@ export default class Optimizely implements Client {
|
1404 | 1403 | });
|
1405 | 1404 | };
|
1406 | 1405 | const readyTimeout = setTimeout(onReadyTimeout, timeoutValue);
|
1407 |
| - const onClose = function() { |
| 1406 | + const onClose = function () { |
1408 | 1407 | resolveTimeoutPromise({
|
1409 | 1408 | success: false,
|
1410 | 1409 | reason: 'Instance closed',
|
@@ -1765,7 +1764,7 @@ export default class Optimizely implements Client {
|
1765 | 1764 | }
|
1766 | 1765 |
|
1767 | 1766 | if (!this.odpManager.isVuidEnabled()) {
|
1768 |
| - this.logger.log(LOG_LEVEL.WARNING, 'getVuid() unavailable for this platform', MODULE_NAME); |
| 1767 | + this.logger.log(LOG_LEVEL.WARNING, 'getVuid() unavailable for this platform or was not explicitly enabled.', MODULE_NAME); |
1769 | 1768 | return undefined;
|
1770 | 1769 | }
|
1771 | 1770 |
|
|
0 commit comments