You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@leafer/watcher

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer/watcher - npm Package Compare versions

Comparing version
1.6.2
to
1.6.3
+5
-5
package.json
{
"name": "@leafer/watcher",
"version": "1.6.2",
"version": "1.6.3",
"description": "@leafer/watcher",

@@ -25,9 +25,9 @@ "author": "Chao (Leafer) Wan",

"dependencies": {
"@leafer/event": "1.6.2",
"@leafer/data": "1.6.2",
"@leafer/list": "1.6.2"
"@leafer/event": "1.6.3",
"@leafer/data": "1.6.3",
"@leafer/list": "1.6.3"
},
"devDependencies": {
"@leafer/interface": "1.6.2"
"@leafer/interface": "1.6.3"
}
}

@@ -91,14 +91,12 @@ import { ILeaf, IWatcher, IEventListenerId, ILeafList, IWatcherConfig } from '@leafer/interface'

this.totalTimes++
this.changed = false
this.hasVisible = false
this.hasRemove = false
this.hasAdd = false
this.changed = this.hasVisible = this.hasRemove = this.hasAdd = false
}
protected __listenEvents(): void {
const { target } = this
this.__eventIds = [
target.on_(PropertyEvent.CHANGE, this.__onAttrChange, this),
target.on_([ChildEvent.ADD, ChildEvent.REMOVE], this.__onChildEvent, this),
target.on_(WatchEvent.REQUEST, this.__onRquestData, this)
this.target.on_([
[PropertyEvent.CHANGE, this.__onAttrChange, this],
[[ChildEvent.ADD, ChildEvent.REMOVE], this.__onChildEvent, this],
[WatchEvent.REQUEST, this.__onRquestData, this]
])
]

@@ -115,4 +113,3 @@ }

this.__removeListenEvents()
this.target = null
this.__updatedList = null
this.target = this.__updatedList = null
}

@@ -119,0 +116,0 @@ }