Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

objectlisteners

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

objectlisteners - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

35

ObjectListener.js

@@ -487,18 +487,23 @@

var prev = parents[idx];
if (prev[key] === value || idx === 0) {
path.push(key);
parents.push(value.pushed);
} else {
while (idx-- >= 0) {
prev = parents[idx];
if (prev[key] === value) {
idx += 2;
parents.length = idx;
path.length = idx;
--idx;
parents[idx] = value;
path[idx] = key;
break;
if(typeof prev === 'object') {
if (prev[key] === value || idx === 0) {
path.push(key);
parents.push(value.pushed);
} else {
while (idx-- >= 0) {
prev = parents[idx];
if(typeof prev === 'object') {
if (prev[key] === value) {
idx += 2;
parents.length = idx;
path.length = idx;
--idx;
parents[idx] = value;
path[idx] = key;
break;
}
}
idx++;
}
}
}
}

@@ -505,0 +510,0 @@ }

{
"name": "objectlisteners",
"version": "1.0.2",
"version": "1.0.3",
"description": "Creates arbitrary event listeners that you can use to watch for changes in an object and fire event subscriptions ",

@@ -5,0 +5,0 @@ "main": "ObjectListener.js",

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