Skip to content

Commit 965b073

Browse files
committed
use ts parser
1 parent 3759938 commit 965b073

File tree

4 files changed

+531
-6
lines changed

4 files changed

+531
-6
lines changed

lib/core/bucketer/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
*/
2020
import { LoggerFacade } from '../../logging/logger';
2121
import {
22-
export const __supportedPlatforms = ['__universal__'] as const;
23-
24-
2522
DecisionResponse,
2623
BucketerParams,
2724
TrafficAllocation,
@@ -32,6 +29,8 @@ import { OptimizelyError } from '../../error/optimizly_error';
3229
import { generateBucketValue } from './bucket_value_generator';
3330
import { DecisionReason } from '../decision_service';
3431

32+
export const __supportedPlatforms = ['__universal__'] as const;
33+
3534
export const USER_NOT_IN_ANY_EXPERIMENT = 'User %s is not in any experiment of group %s.';
3635
export const USER_NOT_BUCKETED_INTO_EXPERIMENT_IN_GROUP = 'User %s is not in experiment %s of group %s.';
3736
export const USER_BUCKETED_INTO_EXPERIMENT_IN_GROUP = 'User %s is in experiment %s of group %s.';

lib/core/custom_attribute_condition_evaluator/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ import { Condition, OptimizelyUserContext } from '../../shared_types';
1818
import fns from '../../utils/fns';
1919
import { compareVersion } from '../../utils/semantic_version';
2020
import {
21-
export const __supportedPlatforms = ['__universal__'] as const;
22-
23-
2421
MISSING_ATTRIBUTE_VALUE,
2522
UNEXPECTED_TYPE_NULL,
2623
} from 'log_message';

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"clean:win": "(if exist dist rd /s/q dist)",
5959
"lint": "tsc --noEmit && eslint 'lib/**/*.js' 'lib/**/*.ts'",
6060
"validate-platform-isolation": "node scripts/validate-platform-isolation.js",
61+
"validate-platform-isolation-ts": "node scripts/validate-platform-isolation-ts.js",
6162
"test-platform-isolation": "node scripts/test-validator.js",
6263
"add-platform-exports": "node scripts/add-platform-exports.js",
6364
"test-vitest": "vitest run",

0 commit comments

Comments
 (0)