Skip to content

Commit e5ff00c

Browse files
committed
Changed it so the deterministic check is only two layers up for iterators
1 parent 51bbff5 commit e5ff00c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

defaultMethods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ Object.keys(defaultMethods).forEach((item) => {
505505
})
506506
// @ts-ignore Allow custom attribute
507507
defaultMethods.var.deterministic = (data, buildState) => {
508-
return buildState.insideIterator && !String(data).includes('../')
508+
return buildState.insideIterator && !String(data).includes('../../')
509509
}
510510
Object.assign(defaultMethods.var, { traverse: false })
511511
Object.assign(defaultMethods.missing, {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-logic-engine",
3-
"version": "1.3.8",
3+
"version": "1.3.9",
44
"description": "Construct complex rules with JSON & process them.",
55
"main": "./dist/cjs/index.js",
66
"module": "./dist/esm/index.js",

0 commit comments

Comments
 (0)