deep-state-observer
Advanced tools
Comparing version 5.5.1 to 5.5.2
@@ -956,4 +956,4 @@ import WildcardObject from "./wildcard-object-scan"; | ||
for (let [listenerPath, listenersCollection] of this.listeners) { | ||
listeners[listenerPath] = { single: [], bulk: [], bulkData: [] }; | ||
if (listenersCollection.match(updatePath)) { | ||
listeners[listenerPath] = { single: [], bulk: [], bulkData: [] }; | ||
const params = listenersCollection.paramsInfo | ||
@@ -1054,6 +1054,6 @@ ? this.getParams(listenersCollection.paramsInfo, updatePath) | ||
if (!listenersCollection.isRecursive) continue; | ||
listeners[listenerPath] = { single: [], bulk: [] }; | ||
// listenerPath is longer and is shortened - because we want to get listeners underneath change | ||
const currentAbovePathCut = this.cutPath(listenerPath, updatePath); | ||
if (this.match(currentAbovePathCut, updatePath)) { | ||
listeners[listenerPath] = { single: [], bulk: [] }; | ||
// listener is listening below updated node | ||
@@ -1060,0 +1060,0 @@ const restBelowPathCut = this.trimPath(listenerPath.substr(currentAbovePathCut.length)); |
{ | ||
"name": "deep-state-observer", | ||
"version": "5.5.1", | ||
"version": "5.5.2", | ||
"description": "Deep state observer is an state management library that will fire listeners only when specified object node (which also can be a wildcard) was changed.", | ||
@@ -5,0 +5,0 @@ "main": "index.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
545832