@knowlearning/agents 0.3.5 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",
@@ -28,7 +28,10 @@ export default function MutableProxy(state, interact, ephemeralPaths={}, parentP
28
28
  Object
29
29
  .entries(state)
30
30
  .filter(([, value]) => value instanceof Object)
31
- .forEach(([key, value]) => state[key] = childMutableProxy(key, value))
31
+ .forEach(([key, value]) => {
32
+ if (isArray && /^\d+$/.test(key)) key = parseInt(key)
33
+ state[key] = childMutableProxy(key, value)
34
+ })
32
35
 
33
36
  const traps = {
34
37
  set(target, prop, value) {