Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion flagsmith-engine/segments/evaluators.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as jsonpath from 'jsonpath';
import * as jsonpathModule from 'jsonpath';
import {
GenericEvaluationContext,
InSegmentCondition,
Expand All @@ -10,6 +10,9 @@ import { getHashedPercentageForObjIds } from '../utils/hashing/index.js';
import { SegmentConditionModel } from './models.js';
import { IS_NOT_SET, IS_SET, PERCENTAGE_SPLIT } from './constants.js';

// Handle ESM/CJS interop - jsonpath exports default in ESM
const jsonpath = (jsonpathModule as any).default || jsonpathModule;

/**
* Returns all segments that the identity belongs to based on segment rules evaluation.
*
Expand Down