object-scan
Advanced tools
Comparing version 16.1.0 to 16.1.1
@@ -241,9 +241,10 @@ "use strict"; | ||
searchesOut.index = Buffer.from(searchesOut.map(e => getOrder(e)).sort()); | ||
let insertIdx = stack.length - kIdx * 4; | ||
let checkIdx = stack.length - 3; | ||
const checkIdxMin = checkIdx - kIdx * 4; | ||
while (insertIdx < stack.length && Buffer.compare(searchesOut.index, stack[insertIdx + 1].index) !== 1) { | ||
insertIdx += 4; | ||
while (checkIdx !== checkIdxMin && Buffer.compare(searchesOut.index, stack[checkIdx].index) === 1) { | ||
checkIdx -= 4; | ||
} | ||
stack.splice(insertIdx, 0, false, searchesOut, isArray ? Number(key) : key, depth + 1); | ||
stack.splice(checkIdx + 3, 0, false, searchesOut, isArray ? Number(key) : key, depth + 1); | ||
} else { | ||
@@ -250,0 +251,0 @@ stack.push(false, searchesOut, isArray ? Number(key) : key, depth + 1); |
{ | ||
"name": "object-scan", | ||
"version": "16.1.0", | ||
"version": "16.1.1", | ||
"description": "Traverse object hierarchies using matching and callbacks.", | ||
@@ -74,3 +74,3 @@ "main": "lib/index.js", | ||
"nyc": "15.1.0", | ||
"object-scan": "16.0.2", | ||
"object-scan": "16.1.0", | ||
"semantic-release": "17.4.4", | ||
@@ -77,0 +77,0 @@ "smart-fs": "2.0.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63642
887