Skip to content

Commit 77c4a72

Browse files
committed
Bump version to release val and misc optimizations
1 parent 5a3d842 commit 77c4a72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

optimizer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function getMethod (logic, engine, methodName, above) {
3535
if (typeof optimizedArgs === 'function') return (data, abv) => called(optimizedArgs(data, abv), data, abv || above, engine)
3636
return (data, abv) => called(optimizedArgs, data, abv || above, engine)
3737
}
38-
if (typeof optimizedArgs === 'function') return (data, abv) => called(optimizedArgs(data, abv), data, abv || above, engine)
38+
if (typeof optimizedArgs === 'function') return (data, abv) => called(coerceArray(optimizedArgs(data, abv)), data, abv || above, engine)
3939
return (data, abv) => called(coerceArray(optimizedArgs), data, abv || above, engine)
4040
}
4141
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-logic-engine",
3-
"version": "4.0.4",
3+
"version": "4.0.5",
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)