@goldfishjs/reactive-connect
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -68,3 +68,3 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; | ||
var len = keyPathList.length; | ||
keyPathList.forEach(function (keyPath, index) { | ||
keyPathList.some(function (keyPath, index) { | ||
if (curNode.children === undefined) { | ||
@@ -87,3 +87,6 @@ if (typeof keyPath === 'number') { | ||
} else if (child instanceof Leaf) { | ||
_this.setValue(child.value, keyPathList.slice(index + 1), cloneDeep(value)); | ||
_this.setValue(child.value, keyPathList.slice(index + 1), cloneDeep(value)); // Reach the leaf of the Tree, break. | ||
return true; | ||
} else { | ||
@@ -90,0 +93,0 @@ curNode = child; |
{ | ||
"name": "@goldfishjs/reactive-connect", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "goldfish-reactive-connect", | ||
@@ -18,4 +18,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@goldfishjs/reactive": "^1.1.9", | ||
"@goldfishjs/utils": "^1.1.9", | ||
"@goldfishjs/reactive": "^1.1.10", | ||
"@goldfishjs/utils": "^1.1.10", | ||
"mini-types": "^0.1.0" | ||
@@ -22,0 +22,0 @@ }, |
@@ -63,3 +63,3 @@ import { generateKeyPathString } from '@goldfishjs/reactive'; | ||
const len = keyPathList.length; | ||
keyPathList.forEach((keyPath, index) => { | ||
keyPathList.some((keyPath, index) => { | ||
if (curNode.children === undefined) { | ||
@@ -82,2 +82,4 @@ if (typeof keyPath === 'number') { | ||
this.setValue(child.value, keyPathList.slice(index + 1), cloneDeep(value)); | ||
// Reach the leaf of the Tree, break. | ||
return true; | ||
} else { | ||
@@ -84,0 +86,0 @@ curNode = child; |
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
78028
2166
Updated@goldfishjs/reactive@^1.1.10
Updated@goldfishjs/utils@^1.1.10