Socket
Socket
Sign inDemoInstall

object-scan

Package Overview
Dependencies
Maintainers
1
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-scan - npm Package Compare versions

Comparing version 16.1.0 to 16.1.1

9

lib/core/find.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc