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

melanke-watchjs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

melanke-watchjs - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

2

package.json
{
"name": "melanke-watchjs",
"version": "1.4.2",
"version": "1.4.3",
"description": "A utility for watching object changes.",

@@ -5,0 +5,0 @@ "main": "src/watch.js",

@@ -572,8 +572,8 @@ /**

if (prop) {
if (obj.watchers[prop]) {
if (watcher===undefined) {
if (obj.watchers && obj.watchers[prop]) {
if (watcher === undefined) {
delete obj.watchers[prop]; // remove all property watchers
}
else {
for (var i=0; i<obj.watchers[prop].length; i++) {
for (var i = 0; i < obj.watchers[prop].length; i++) {
var w = obj.watchers[prop][i];

@@ -586,7 +586,6 @@ if (w == watcher) {

}
}
else
{
} else {
delete obj.watchers;
}
removeFromLengthSubjects(obj, prop, watcher);

@@ -593,0 +592,0 @@ removeFromDirtyChecklist(obj, prop);

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