File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " json-logic-engine" ,
3
- "version" : " 1.2.4 " ,
3
+ "version" : " 1.2.5 " ,
4
4
"description" : " Construct complex rules with JSON & process them." ,
5
5
"main" : " ./dist/cjs/index.js" ,
6
6
"module" : " ./dist/esm/index.js" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const getIsOptionalChainingSupported = () => {
9
9
// eslint-disable-next-line no-unused-vars
10
10
const test = { }
11
11
// eslint-disable-next-line no-eval
12
- const isUndefined = eval ( 'test?.foo?.bar' )
12
+ const isUndefined = eval ( '( test) => test ?.foo?.bar' ) ( test )
13
13
return isUndefined === undefined
14
14
} catch {
15
15
return false
Original file line number Diff line number Diff line change 2
2
'use strict'
3
3
4
4
import { Sync } from '../constants.js'
5
- export default ( function declareSync ( obj , sync = true ) {
5
+ export default function declareSync ( obj , sync = true ) {
6
6
obj [ Sync ] = sync
7
7
return obj
8
- } )
8
+ }
You can’t perform that action at this time.
0 commit comments