@goldfishjs/reactive-connect
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -53,2 +53,3 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; | ||
curObj[keyPathList[i]] = typeof keyPathList[i + 1] === 'number' ? [] : {}; | ||
curObj = curObj[keyPathList[i]]; | ||
} | ||
@@ -55,0 +56,0 @@ } |
{ | ||
"name": "@goldfishjs/reactive-connect", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "goldfish-reactive-connect", | ||
@@ -18,4 +18,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@goldfishjs/reactive": "^1.1.7", | ||
"@goldfishjs/utils": "^1.1.7", | ||
"@goldfishjs/reactive": "^1.1.8", | ||
"@goldfishjs/utils": "^1.1.8", | ||
"mini-types": "^0.1.0" | ||
@@ -22,0 +22,0 @@ }, |
@@ -44,3 +44,3 @@ import { generateKeyPathString } from '@goldfishjs/reactive'; | ||
private setValue(obj: any, keyPathList: keyPath.KeyPathList, value: any) { | ||
const curObj = obj; | ||
let curObj = obj; | ||
for (let i = 0, il = keyPathList.length; i < il; i += 1) { | ||
@@ -51,2 +51,3 @@ if (i === il - 1) { | ||
curObj[keyPathList[i]] = typeof keyPathList[i + 1] === 'number' ? [] : {}; | ||
curObj = curObj[keyPathList[i]]; | ||
} | ||
@@ -53,0 +54,0 @@ } |
77895
2163
Updated@goldfishjs/reactive@^1.1.8
Updated@goldfishjs/utils@^1.1.8