We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7488e1 commit 889ef31Copy full SHA for 889ef31
flagsmith-engine/segments/evaluators.ts
@@ -1,4 +1,4 @@
1
-import * as jsonpath from 'jsonpath';
+import * as jsonpathModule from 'jsonpath';
2
import {
3
GenericEvaluationContext,
4
InSegmentCondition,
@@ -10,6 +10,9 @@ import { getHashedPercentageForObjIds } from '../utils/hashing/index.js';
10
import { SegmentConditionModel } from './models.js';
11
import { IS_NOT_SET, IS_SET, PERCENTAGE_SPLIT } from './constants.js';
12
13
+// Handle ESM/CJS interop - jsonpath exports default in ESM
14
+const jsonpath = (jsonpathModule as any).default || jsonpathModule;
15
+
16
/**
17
* Returns all segments that the identity belongs to based on segment rules evaluation.
18
*
0 commit comments