Skip to content

Commit 025ecba

Browse files
committed
Additional bun modifications (ensuring decent perf)
1 parent c242616 commit 025ecba

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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.2.4",
3+
"version": "1.2.5",
44
"description": "Construct complex rules with JSON & process them.",
55
"main": "./dist/cjs/index.js",
66
"module": "./dist/esm/index.js",

utilities/chainingSupported.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const getIsOptionalChainingSupported = () => {
99
// eslint-disable-next-line no-unused-vars
1010
const test = {}
1111
// eslint-disable-next-line no-eval
12-
const isUndefined = eval('test?.foo?.bar')
12+
const isUndefined = eval('(test) => test?.foo?.bar')(test)
1313
return isUndefined === undefined
1414
} catch {
1515
return false

utilities/declareSync.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'use strict'
33

44
import { Sync } from '../constants.js'
5-
export default (function declareSync (obj, sync = true) {
5+
export default function declareSync (obj, sync = true) {
66
obj[Sync] = sync
77
return obj
8-
})
8+
}

0 commit comments

Comments
 (0)