@knowlearning/agents 0.4.13 → 0.4.14

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
@@ -230,6 +230,7 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
230
230
  // -1 indicates the result is a computed scope, so
231
231
  // ii does not apply (we clear out the subscription to not cache value)
232
232
  delete states[k]
233
+ delete keyToSubscriptionId[k]
233
234
  delete subscriptions[id]
234
235
  }
235
236
  })
@@ -261,6 +262,7 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
261
262
  removeWatcher(k, watchFn)
262
263
  if (watchers[k].length === 0) {
263
264
  delete subscriptions[keyToSubscriptionId[k]]
265
+ delete keyToSubscriptionId[k]
264
266
  delete watchers[k]
265
267
  }
266
268
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",