skip unsafe keys

This commit is contained in:
Pete Matsyburka committed 2026-11-14 15:46:25 +02:00
1 parent 1cd3212736
commit e5b9ee9502
1 file changed
+3 -1
@@ -432,8 +432,10 @@ function buildOperators (tags) {
return operators
}
const UNSAFE_KEYS = ['__proto__', 'constructor', 'prototype']
function hasBlankKey (keyString) {
return !keyString || keyString.split('.').some((key) => !key.trim())
return !keyString || keyString.split('.').some((key) => !key.trim() || UNSAFE_KEYS.includes(key.trim()))
}
function digProperties (properties, keys) {