@knowlearning/agents 0.9.19 → 0.9.21

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
@@ -329,7 +329,7 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
329
329
 
330
330
  const unwatch = watch(id, ({ state }) => {
331
331
  if (references.length === 0) {
332
- callback(value)
332
+ callback(state)
333
333
  return
334
334
  }
335
335
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.9.19",
3
+ "version": "0.9.21",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  methods: {
31
31
  startWatching() {
32
- if (this.startWatching) this.stopWatching()
32
+ if (this.stopWatching) this.stopWatching()
33
33
  this.stopWatching = Agent.watch([this.id, ...this.path], value => this.value = value)
34
34
  }
35
35
  }