@knowlearning/agents 0.4.7 → 0.4.8

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/agents/generic.js CHANGED
@@ -345,7 +345,7 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
345
345
 
346
346
  function mutate(scope, initialize=true) {
347
347
  const mp = s => new MutableProxy(s || {}, patch => interact(scope, patch))
348
- return initialize ? state.then(mp) : mp({})
348
+ return initialize ? state(scope).then(mp) : mp({})
349
349
  }
350
350
 
351
351
  function reset(scope) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",